Skip to content

Commit f2a09ad

Browse files
feat: KMS configuration in settings (#489)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 431037888 Source-Link: googleapis/googleapis@b3397f5 Source-Link: https://github.com/googleapis/googleapis-gen/commit/510b54e1cdefd53173984df16645081308fe897e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTEwYjU0ZTFjZGVmZDUzMTczOTg0ZGYxNjY0NTA4MTMwOGZlODk3ZSJ9 chore: use gapic-generator-python 0.63.4 chore: fix snippet region tag format chore: fix docstring code block formatting PiperOrigin-RevId: 430730865 Source-Link: googleapis/googleapis@ea58002 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ca893ff8af25fc7fe001de1405a517d80446ecca Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2E4OTNmZjhhZjI1ZmM3ZmUwMDFkZTE0MDVhNTE3ZDgwNDQ2ZWNjYSJ9 chore: formatting changes PiperOrigin-RevId: 430243637 Source-Link: googleapis/googleapis@95da686 Source-Link: https://github.com/googleapis/googleapis-gen/commit/a1f056b7689ccbe5aebc0bfdd318e9945ee7602a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTFmMDU2Yjc2ODljY2JlNWFlYmMwYmZkZDMxOGU5OTQ1ZWU3NjAyYSJ9 feat: Update Logging API with latest changes PiperOrigin-RevId: 429289471 Source-Link: googleapis/googleapis@acd5f89 Source-Link: https://github.com/googleapis/googleapis-gen/commit/8a12622536ae2e9a8978198a151e89234b839b20 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGExMjYyMjUzNmFlMmU5YTg5NzgxOThhMTUxZTg5MjM0YjgzOWIyMCJ9 chore: use gapic-generator-python 0.63.2 docs: add generated snippets chore: update copyright year to 2022 PiperOrigin-RevId: 427792504 Source-Link: googleapis/googleapis@55b9e1e Source-Link: https://github.com/googleapis/googleapis-gen/commit/bf4e86b753f42cb0edb1fd51fbe840d7da0a1cde Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmY0ZTg2Yjc1M2Y0MmNiMGVkYjFmZDUxZmJlODQwZDdkYTBhMWNkZSJ9
1 parent 8a45dfa commit f2a09ad

File tree

75 files changed

+6687
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+6687
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CopyLogEntries
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-logging
24+
25+
26+
# [START logging_v2_generated_ConfigServiceV2_CopyLogEntries_async]
27+
from google.cloud import logging_v2
28+
29+
30+
async def sample_copy_log_entries():
31+
# Create a client
32+
client = logging_v2.ConfigServiceV2AsyncClient()
33+
34+
# Initialize request argument(s)
35+
request = logging_v2.CopyLogEntriesRequest(
36+
name="name_value",
37+
destination="destination_value",
38+
)
39+
40+
# Make the request
41+
operation = client.copy_log_entries(request=request)
42+
43+
print("Waiting for operation to complete...")
44+
45+
response = await operation.result()
46+
47+
# Handle the response
48+
print(response)
49+
50+
# [END logging_v2_generated_ConfigServiceV2_CopyLogEntries_async]
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CopyLogEntries
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-logging
24+
25+
26+
# [START logging_v2_generated_ConfigServiceV2_CopyLogEntries_sync]
27+
from google.cloud import logging_v2
28+
29+
30+
def sample_copy_log_entries():
31+
# Create a client
32+
client = logging_v2.ConfigServiceV2Client()
33+
34+
# Initialize request argument(s)
35+
request = logging_v2.CopyLogEntriesRequest(
36+
name="name_value",
37+
destination="destination_value",
38+
)
39+
40+
# Make the request
41+
operation = client.copy_log_entries(request=request)
42+
43+
print("Waiting for operation to complete...")
44+
45+
response = operation.result()
46+
47+
# Handle the response
48+
print(response)
49+
50+
# [END logging_v2_generated_ConfigServiceV2_CopyLogEntries_sync]
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CreateBucket
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-logging
24+
25+
26+
# [START logging_v2_generated_ConfigServiceV2_CreateBucket_async]
27+
from google.cloud import logging_v2
28+
29+
30+
async def sample_create_bucket():
31+
# Create a client
32+
client = logging_v2.ConfigServiceV2AsyncClient()
33+
34+
# Initialize request argument(s)
35+
request = logging_v2.CreateBucketRequest(
36+
parent="parent_value",
37+
bucket_id="bucket_id_value",
38+
)
39+
40+
# Make the request
41+
response = await client.create_bucket(request=request)
42+
43+
# Handle the response
44+
print(response)
45+
46+
# [END logging_v2_generated_ConfigServiceV2_CreateBucket_async]
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CreateBucket
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-logging
24+
25+
26+
# [START logging_v2_generated_ConfigServiceV2_CreateBucket_sync]
27+
from google.cloud import logging_v2
28+
29+
30+
def sample_create_bucket():
31+
# Create a client
32+
client = logging_v2.ConfigServiceV2Client()
33+
34+
# Initialize request argument(s)
35+
request = logging_v2.CreateBucketRequest(
36+
parent="parent_value",
37+
bucket_id="bucket_id_value",
38+
)
39+
40+
# Make the request
41+
response = client.create_bucket(request=request)
42+
43+
# Handle the response
44+
print(response)
45+
46+
# [END logging_v2_generated_ConfigServiceV2_CreateBucket_sync]
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CreateExclusion
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-logging
24+
25+
26+
# [START logging_v2_generated_ConfigServiceV2_CreateExclusion_async]
27+
from google.cloud import logging_v2
28+
29+
30+
async def sample_create_exclusion():
31+
# Create a client
32+
client = logging_v2.ConfigServiceV2AsyncClient()
33+
34+
# Initialize request argument(s)
35+
exclusion = logging_v2.LogExclusion()
36+
exclusion.name = "name_value"
37+
exclusion.filter = "filter_value"
38+
39+
request = logging_v2.CreateExclusionRequest(
40+
parent="parent_value",
41+
exclusion=exclusion,
42+
)
43+
44+
# Make the request
45+
response = await client.create_exclusion(request=request)
46+
47+
# Handle the response
48+
print(response)
49+
50+
# [END logging_v2_generated_ConfigServiceV2_CreateExclusion_async]
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CreateExclusion
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-logging
24+
25+
26+
# [START logging_v2_generated_ConfigServiceV2_CreateExclusion_sync]
27+
from google.cloud import logging_v2
28+
29+
30+
def sample_create_exclusion():
31+
# Create a client
32+
client = logging_v2.ConfigServiceV2Client()
33+
34+
# Initialize request argument(s)
35+
exclusion = logging_v2.LogExclusion()
36+
exclusion.name = "name_value"
37+
exclusion.filter = "filter_value"
38+
39+
request = logging_v2.CreateExclusionRequest(
40+
parent="parent_value",
41+
exclusion=exclusion,
42+
)
43+
44+
# Make the request
45+
response = client.create_exclusion(request=request)
46+
47+
# Handle the response
48+
print(response)
49+
50+
# [END logging_v2_generated_ConfigServiceV2_CreateExclusion_sync]
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CreateSink
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-logging
24+
25+
26+
# [START logging_v2_generated_ConfigServiceV2_CreateSink_async]
27+
from google.cloud import logging_v2
28+
29+
30+
async def sample_create_sink():
31+
# Create a client
32+
client = logging_v2.ConfigServiceV2AsyncClient()
33+
34+
# Initialize request argument(s)
35+
sink = logging_v2.LogSink()
36+
sink.name = "name_value"
37+
sink.destination = "destination_value"
38+
39+
request = logging_v2.CreateSinkRequest(
40+
parent="parent_value",
41+
sink=sink,
42+
)
43+
44+
# Make the request
45+
response = await client.create_sink(request=request)
46+
47+
# Handle the response
48+
print(response)
49+
50+
# [END logging_v2_generated_ConfigServiceV2_CreateSink_async]
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CreateSink
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-logging
24+
25+
26+
# [START logging_v2_generated_ConfigServiceV2_CreateSink_sync]
27+
from google.cloud import logging_v2
28+
29+
30+
def sample_create_sink():
31+
# Create a client
32+
client = logging_v2.ConfigServiceV2Client()
33+
34+
# Initialize request argument(s)
35+
sink = logging_v2.LogSink()
36+
sink.name = "name_value"
37+
sink.destination = "destination_value"
38+
39+
request = logging_v2.CreateSinkRequest(
40+
parent="parent_value",
41+
sink=sink,
42+
)
43+
44+
# Make the request
45+
response = client.create_sink(request=request)
46+
47+
# Handle the response
48+
print(response)
49+
50+
# [END logging_v2_generated_ConfigServiceV2_CreateSink_sync]

0 commit comments

Comments
 (0)