Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Commit ce966b9

Browse files
chore: Bump gapic-generator-python version to 1.3.0 (#144)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 472561635 Source-Link: googleapis/googleapis@332ecf5 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4313d682880fd9d7247291164d4e9d3d5bd9f177 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDMxM2Q2ODI4ODBmZDlkNzI0NzI5MTE2NGQ0ZTlkM2Q1YmQ5ZjE3NyJ9
1 parent e7f6d13 commit ce966b9

18 files changed

+333
-137
lines changed

google/cloud/essential_contacts_v1/services/essential_contacts_service/async_client.py

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,13 @@ async def create_contact(
227227
228228
.. code-block:: python
229229
230+
# This snippet has been automatically generated and should be regarded as a
231+
# code template only.
232+
# It will require modifications to work:
233+
# - It may require correct/in-range values for request initialization.
234+
# - It may require specifying regional endpoints when creating the service
235+
# client as shown in:
236+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
230237
from google.cloud import essential_contacts_v1
231238
232239
async def sample_create_contact():
@@ -335,6 +342,13 @@ async def update_contact(
335342
336343
.. code-block:: python
337344
345+
# This snippet has been automatically generated and should be regarded as a
346+
# code template only.
347+
# It will require modifications to work:
348+
# - It may require correct/in-range values for request initialization.
349+
# - It may require specifying regional endpoints when creating the service
350+
# client as shown in:
351+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
338352
from google.cloud import essential_contacts_v1
339353
340354
async def sample_update_contact():
@@ -443,6 +457,13 @@ async def list_contacts(
443457
444458
.. code-block:: python
445459
460+
# This snippet has been automatically generated and should be regarded as a
461+
# code template only.
462+
# It will require modifications to work:
463+
# - It may require correct/in-range values for request initialization.
464+
# - It may require specifying regional endpoints when creating the service
465+
# client as shown in:
466+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
446467
from google.cloud import essential_contacts_v1
447468
448469
async def sample_list_contacts():
@@ -561,6 +582,13 @@ async def get_contact(
561582
562583
.. code-block:: python
563584
585+
# This snippet has been automatically generated and should be regarded as a
586+
# code template only.
587+
# It will require modifications to work:
588+
# - It may require correct/in-range values for request initialization.
589+
# - It may require specifying regional endpoints when creating the service
590+
# client as shown in:
591+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
564592
from google.cloud import essential_contacts_v1
565593
566594
async def sample_get_contact():
@@ -667,6 +695,13 @@ async def delete_contact(
667695
668696
.. code-block:: python
669697
698+
# This snippet has been automatically generated and should be regarded as a
699+
# code template only.
700+
# It will require modifications to work:
701+
# - It may require correct/in-range values for request initialization.
702+
# - It may require specifying regional endpoints when creating the service
703+
# client as shown in:
704+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
670705
from google.cloud import essential_contacts_v1
671706
672707
async def sample_delete_contact():
@@ -753,6 +788,13 @@ async def compute_contacts(
753788
754789
.. code-block:: python
755790
791+
# This snippet has been automatically generated and should be regarded as a
792+
# code template only.
793+
# It will require modifications to work:
794+
# - It may require correct/in-range values for request initialization.
795+
# - It may require specifying regional endpoints when creating the service
796+
# client as shown in:
797+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
756798
from google.cloud import essential_contacts_v1
757799
758800
async def sample_compute_contacts():
@@ -840,6 +882,13 @@ async def send_test_message(
840882
841883
.. code-block:: python
842884
885+
# This snippet has been automatically generated and should be regarded as a
886+
# code template only.
887+
# It will require modifications to work:
888+
# - It may require correct/in-range values for request initialization.
889+
# - It may require specifying regional endpoints when creating the service
890+
# client as shown in:
891+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
843892
from google.cloud import essential_contacts_v1
844893
845894
async def sample_send_test_message():
@@ -848,7 +897,7 @@ async def sample_send_test_message():
848897
849898
# Initialize request argument(s)
850899
request = essential_contacts_v1.SendTestMessageRequest(
851-
contacts=['contacts_value_1', 'contacts_value_2'],
900+
contacts=['contacts_value1', 'contacts_value2'],
852901
resource="resource_value",
853902
notification_category="TECHNICAL_INCIDENTS",
854903
)

google/cloud/essential_contacts_v1/services/essential_contacts_service/client.py

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,13 @@ def create_contact(
442442
443443
.. code-block:: python
444444
445+
# This snippet has been automatically generated and should be regarded as a
446+
# code template only.
447+
# It will require modifications to work:
448+
# - It may require correct/in-range values for request initialization.
449+
# - It may require specifying regional endpoints when creating the service
450+
# client as shown in:
451+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
445452
from google.cloud import essential_contacts_v1
446453
447454
def sample_create_contact():
@@ -550,6 +557,13 @@ def update_contact(
550557
551558
.. code-block:: python
552559
560+
# This snippet has been automatically generated and should be regarded as a
561+
# code template only.
562+
# It will require modifications to work:
563+
# - It may require correct/in-range values for request initialization.
564+
# - It may require specifying regional endpoints when creating the service
565+
# client as shown in:
566+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
553567
from google.cloud import essential_contacts_v1
554568
555569
def sample_update_contact():
@@ -658,6 +672,13 @@ def list_contacts(
658672
659673
.. code-block:: python
660674
675+
# This snippet has been automatically generated and should be regarded as a
676+
# code template only.
677+
# It will require modifications to work:
678+
# - It may require correct/in-range values for request initialization.
679+
# - It may require specifying regional endpoints when creating the service
680+
# client as shown in:
681+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
661682
from google.cloud import essential_contacts_v1
662683
663684
def sample_list_contacts():
@@ -767,6 +788,13 @@ def get_contact(
767788
768789
.. code-block:: python
769790
791+
# This snippet has been automatically generated and should be regarded as a
792+
# code template only.
793+
# It will require modifications to work:
794+
# - It may require correct/in-range values for request initialization.
795+
# - It may require specifying regional endpoints when creating the service
796+
# client as shown in:
797+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
770798
from google.cloud import essential_contacts_v1
771799
772800
def sample_get_contact():
@@ -864,6 +892,13 @@ def delete_contact(
864892
865893
.. code-block:: python
866894
895+
# This snippet has been automatically generated and should be regarded as a
896+
# code template only.
897+
# It will require modifications to work:
898+
# - It may require correct/in-range values for request initialization.
899+
# - It may require specifying regional endpoints when creating the service
900+
# client as shown in:
901+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
867902
from google.cloud import essential_contacts_v1
868903
869904
def sample_delete_contact():
@@ -950,6 +985,13 @@ def compute_contacts(
950985
951986
.. code-block:: python
952987
988+
# This snippet has been automatically generated and should be regarded as a
989+
# code template only.
990+
# It will require modifications to work:
991+
# - It may require correct/in-range values for request initialization.
992+
# - It may require specifying regional endpoints when creating the service
993+
# client as shown in:
994+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
953995
from google.cloud import essential_contacts_v1
954996
955997
def sample_compute_contacts():
@@ -1038,6 +1080,13 @@ def send_test_message(
10381080
10391081
.. code-block:: python
10401082
1083+
# This snippet has been automatically generated and should be regarded as a
1084+
# code template only.
1085+
# It will require modifications to work:
1086+
# - It may require correct/in-range values for request initialization.
1087+
# - It may require specifying regional endpoints when creating the service
1088+
# client as shown in:
1089+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
10411090
from google.cloud import essential_contacts_v1
10421091
10431092
def sample_send_test_message():
@@ -1046,7 +1095,7 @@ def sample_send_test_message():
10461095
10471096
# Initialize request argument(s)
10481097
request = essential_contacts_v1.SendTestMessageRequest(
1049-
contacts=['contacts_value_1', 'contacts_value_2'],
1098+
contacts=['contacts_value1', 'contacts_value2'],
10501099
resource="resource_value",
10511100
notification_category="TECHNICAL_INCIDENTS",
10521101
)

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[mypy]
2-
python_version = 3.6
2+
python_version = 3.7
33
namespace_packages = True

samples/generated_samples/essentialcontacts_v1_generated_essential_contacts_service_compute_contacts_async.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424

2525

2626
# [START essentialcontacts_v1_generated_EssentialContactsService_ComputeContacts_async]
27+
# This snippet has been automatically generated and should be regarded as a
28+
# code template only.
29+
# It will require modifications to work:
30+
# - It may require correct/in-range values for request initialization.
31+
# - It may require specifying regional endpoints when creating the service
32+
# client as shown in:
33+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
2734
from google.cloud import essential_contacts_v1
2835

2936

samples/generated_samples/essentialcontacts_v1_generated_essential_contacts_service_compute_contacts_sync.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424

2525

2626
# [START essentialcontacts_v1_generated_EssentialContactsService_ComputeContacts_sync]
27+
# This snippet has been automatically generated and should be regarded as a
28+
# code template only.
29+
# It will require modifications to work:
30+
# - It may require correct/in-range values for request initialization.
31+
# - It may require specifying regional endpoints when creating the service
32+
# client as shown in:
33+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
2734
from google.cloud import essential_contacts_v1
2835

2936

samples/generated_samples/essentialcontacts_v1_generated_essential_contacts_service_create_contact_async.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424

2525

2626
# [START essentialcontacts_v1_generated_EssentialContactsService_CreateContact_async]
27+
# This snippet has been automatically generated and should be regarded as a
28+
# code template only.
29+
# It will require modifications to work:
30+
# - It may require correct/in-range values for request initialization.
31+
# - It may require specifying regional endpoints when creating the service
32+
# client as shown in:
33+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
2734
from google.cloud import essential_contacts_v1
2835

2936

samples/generated_samples/essentialcontacts_v1_generated_essential_contacts_service_create_contact_sync.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424

2525

2626
# [START essentialcontacts_v1_generated_EssentialContactsService_CreateContact_sync]
27+
# This snippet has been automatically generated and should be regarded as a
28+
# code template only.
29+
# It will require modifications to work:
30+
# - It may require correct/in-range values for request initialization.
31+
# - It may require specifying regional endpoints when creating the service
32+
# client as shown in:
33+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
2734
from google.cloud import essential_contacts_v1
2835

2936

samples/generated_samples/essentialcontacts_v1_generated_essential_contacts_service_delete_contact_async.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424

2525

2626
# [START essentialcontacts_v1_generated_EssentialContactsService_DeleteContact_async]
27+
# This snippet has been automatically generated and should be regarded as a
28+
# code template only.
29+
# It will require modifications to work:
30+
# - It may require correct/in-range values for request initialization.
31+
# - It may require specifying regional endpoints when creating the service
32+
# client as shown in:
33+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
2734
from google.cloud import essential_contacts_v1
2835

2936

samples/generated_samples/essentialcontacts_v1_generated_essential_contacts_service_delete_contact_sync.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424

2525

2626
# [START essentialcontacts_v1_generated_EssentialContactsService_DeleteContact_sync]
27+
# This snippet has been automatically generated and should be regarded as a
28+
# code template only.
29+
# It will require modifications to work:
30+
# - It may require correct/in-range values for request initialization.
31+
# - It may require specifying regional endpoints when creating the service
32+
# client as shown in:
33+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
2734
from google.cloud import essential_contacts_v1
2835

2936

samples/generated_samples/essentialcontacts_v1_generated_essential_contacts_service_get_contact_async.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424

2525

2626
# [START essentialcontacts_v1_generated_EssentialContactsService_GetContact_async]
27+
# This snippet has been automatically generated and should be regarded as a
28+
# code template only.
29+
# It will require modifications to work:
30+
# - It may require correct/in-range values for request initialization.
31+
# - It may require specifying regional endpoints when creating the service
32+
# client as shown in:
33+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
2734
from google.cloud import essential_contacts_v1
2835

2936

0 commit comments

Comments
 (0)