Skip to content

Commit

Permalink
chore: Bump gapic-generator-python version to 1.3.0 (#621)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 472561635

Source-Link: googleapis/googleapis@332ecf5

Source-Link: googleapis/googleapis-gen@4313d68
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDMxM2Q2ODI4ODBmZDlkNzI0NzI5MTE2NGQ0ZTlkM2Q1YmQ5ZjE3NyJ9
  • Loading branch information
gcf-owl-bot[bot] committed Sep 7, 2022
1 parent 2912a89 commit 752299f
Show file tree
Hide file tree
Showing 82 changed files with 1,757 additions and 721 deletions.
182 changes: 182 additions & 0 deletions google/cloud/logging_v2/services/config_service_v2/async_client.py

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions google/cloud/logging_v2/services/config_service_v2/client.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,13 @@ async def delete_log(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
async def sample_delete_log():
Expand Down Expand Up @@ -345,6 +352,13 @@ async def write_log_entries(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
async def sample_write_log_entries():
Expand Down Expand Up @@ -536,6 +550,13 @@ async def list_log_entries(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
async def sample_list_log_entries():
Expand All @@ -544,7 +565,7 @@ async def sample_list_log_entries():
# Initialize request argument(s)
request = logging_v2.ListLogEntriesRequest(
resource_names=['resource_names_value_1', 'resource_names_value_2'],
resource_names=['resource_names_value1', 'resource_names_value2'],
)
# Make the request
Expand Down Expand Up @@ -693,6 +714,13 @@ async def list_monitored_resource_descriptors(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
async def sample_list_monitored_resource_descriptors():
Expand Down Expand Up @@ -786,6 +814,13 @@ async def list_logs(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
async def sample_list_logs():
Expand Down Expand Up @@ -908,6 +943,13 @@ def tail_log_entries(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
async def sample_tail_log_entries():
Expand All @@ -916,7 +958,7 @@ async def sample_tail_log_entries():
# Initialize request argument(s)
request = logging_v2.TailLogEntriesRequest(
resource_names=['resource_names_value_1', 'resource_names_value_2'],
resource_names=['resource_names_value1', 'resource_names_value2'],
)
# This method expects an iterator which contains
Expand Down
46 changes: 44 additions & 2 deletions google/cloud/logging_v2/services/logging_service_v2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,13 @@ def delete_log(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
def sample_delete_log():
Expand Down Expand Up @@ -553,6 +560,13 @@ def write_log_entries(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
def sample_write_log_entries():
Expand Down Expand Up @@ -732,6 +746,13 @@ def list_log_entries(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
def sample_list_log_entries():
Expand All @@ -740,7 +761,7 @@ def sample_list_log_entries():
# Initialize request argument(s)
request = logging_v2.ListLogEntriesRequest(
resource_names=['resource_names_value_1', 'resource_names_value_2'],
resource_names=['resource_names_value1', 'resource_names_value2'],
)
# Make the request
Expand Down Expand Up @@ -878,6 +899,13 @@ def list_monitored_resource_descriptors(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
def sample_list_monitored_resource_descriptors():
Expand Down Expand Up @@ -963,6 +991,13 @@ def list_logs(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
def sample_list_logs():
Expand Down Expand Up @@ -1074,6 +1109,13 @@ def tail_log_entries(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
def sample_tail_log_entries():
Expand All @@ -1082,7 +1124,7 @@ def sample_tail_log_entries():
# Initialize request argument(s)
request = logging_v2.TailLogEntriesRequest(
resource_names=['resource_names_value_1', 'resource_names_value_2'],
resource_names=['resource_names_value1', 'resource_names_value2'],
)
# This method expects an iterator which contains
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,13 @@ async def list_log_metrics(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
async def sample_list_log_metrics():
Expand Down Expand Up @@ -339,6 +346,13 @@ async def get_log_metric(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
async def sample_get_log_metric():
Expand Down Expand Up @@ -459,6 +473,13 @@ async def create_log_metric(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
async def sample_create_log_metric():
Expand Down Expand Up @@ -584,6 +605,13 @@ async def update_log_metric(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
async def sample_update_log_metric():
Expand Down Expand Up @@ -720,6 +748,13 @@ async def delete_log_metric(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
async def sample_delete_log_metric():
Expand Down
35 changes: 35 additions & 0 deletions google/cloud/logging_v2/services/metrics_service_v2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,13 @@ def list_log_metrics(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
def sample_list_log_metrics():
Expand Down Expand Up @@ -548,6 +555,13 @@ def get_log_metric(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
def sample_get_log_metric():
Expand Down Expand Up @@ -657,6 +671,13 @@ def create_log_metric(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
def sample_create_log_metric():
Expand Down Expand Up @@ -782,6 +803,13 @@ def update_log_metric(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
def sample_update_log_metric():
Expand Down Expand Up @@ -907,6 +935,13 @@ def delete_log_metric(
.. code-block:: python
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2
def sample_delete_log_metric():
Expand Down
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[mypy]
python_version = 3.6
python_version = 3.7
namespace_packages = True
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@


# [START logging_v2_generated_ConfigServiceV2_CopyLogEntries_async]
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@


# [START logging_v2_generated_ConfigServiceV2_CopyLogEntries_sync]
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@


# [START logging_v2_generated_ConfigServiceV2_CreateBucket_async]
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import logging_v2


Expand Down
Loading

0 comments on commit 752299f

Please sign in to comment.