Skip to content

Commit b5f5157

Browse files
chore: Bump gapic-generator-python version to 1.3.0 (#180)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 472561635 Source-Link: googleapis/googleapis@332ecf5 Source-Link: googleapis/googleapis-gen@4313d68 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDMxM2Q2ODI4ODBmZDlkNzI0NzI5MTE2NGQ0ZTlkM2Q1YmQ5ZjE3NyJ9
1 parent 23762e9 commit b5f5157

File tree

40 files changed

+721
-301
lines changed

40 files changed

+721
-301
lines changed

packages/google-cloud-recommendations-ai/google/cloud/recommendationengine_v1beta1/services/catalog_service/async_client.py

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,13 @@ async def create_catalog_item(
225225
226226
.. code-block:: python
227227
228+
# This snippet has been automatically generated and should be regarded as a
229+
# code template only.
230+
# It will require modifications to work:
231+
# - It may require correct/in-range values for request initialization.
232+
# - It may require specifying regional endpoints when creating the service
233+
# client as shown in:
234+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
228235
from google.cloud import recommendationengine_v1beta1
229236
230237
async def sample_create_catalog_item():
@@ -234,7 +241,7 @@ async def sample_create_catalog_item():
234241
# Initialize request argument(s)
235242
catalog_item = recommendationengine_v1beta1.CatalogItem()
236243
catalog_item.id = "id_value"
237-
catalog_item.category_hierarchies.categories = ['categories_value_1', 'categories_value_2']
244+
catalog_item.category_hierarchies.categories = ['categories_value1', 'categories_value2']
238245
catalog_item.title = "title_value"
239246
240247
request = recommendationengine_v1beta1.CreateCatalogItemRequest(
@@ -343,6 +350,13 @@ async def get_catalog_item(
343350
344351
.. code-block:: python
345352
353+
# This snippet has been automatically generated and should be regarded as a
354+
# code template only.
355+
# It will require modifications to work:
356+
# - It may require correct/in-range values for request initialization.
357+
# - It may require specifying regional endpoints when creating the service
358+
# client as shown in:
359+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
346360
from google.cloud import recommendationengine_v1beta1
347361
348362
async def sample_get_catalog_item():
@@ -449,6 +463,13 @@ async def list_catalog_items(
449463
450464
.. code-block:: python
451465
466+
# This snippet has been automatically generated and should be regarded as a
467+
# code template only.
468+
# It will require modifications to work:
469+
# - It may require correct/in-range values for request initialization.
470+
# - It may require specifying regional endpoints when creating the service
471+
# client as shown in:
472+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
452473
from google.cloud import recommendationengine_v1beta1
453474
454475
async def sample_list_catalog_items():
@@ -579,6 +600,13 @@ async def update_catalog_item(
579600
580601
.. code-block:: python
581602
603+
# This snippet has been automatically generated and should be regarded as a
604+
# code template only.
605+
# It will require modifications to work:
606+
# - It may require correct/in-range values for request initialization.
607+
# - It may require specifying regional endpoints when creating the service
608+
# client as shown in:
609+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
582610
from google.cloud import recommendationengine_v1beta1
583611
584612
async def sample_update_catalog_item():
@@ -588,7 +616,7 @@ async def sample_update_catalog_item():
588616
# Initialize request argument(s)
589617
catalog_item = recommendationengine_v1beta1.CatalogItem()
590618
catalog_item.id = "id_value"
591-
catalog_item.category_hierarchies.categories = ['categories_value_1', 'categories_value_2']
619+
catalog_item.category_hierarchies.categories = ['categories_value1', 'categories_value2']
592620
catalog_item.title = "title_value"
593621
594622
request = recommendationengine_v1beta1.UpdateCatalogItemRequest(
@@ -709,6 +737,13 @@ async def delete_catalog_item(
709737
710738
.. code-block:: python
711739
740+
# This snippet has been automatically generated and should be regarded as a
741+
# code template only.
742+
# It will require modifications to work:
743+
# - It may require correct/in-range values for request initialization.
744+
# - It may require specifying regional endpoints when creating the service
745+
# client as shown in:
746+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
712747
from google.cloud import recommendationengine_v1beta1
713748
714749
async def sample_delete_catalog_item():
@@ -811,6 +846,13 @@ async def import_catalog_items(
811846
812847
.. code-block:: python
813848
849+
# This snippet has been automatically generated and should be regarded as a
850+
# code template only.
851+
# It will require modifications to work:
852+
# - It may require correct/in-range values for request initialization.
853+
# - It may require specifying regional endpoints when creating the service
854+
# client as shown in:
855+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
814856
from google.cloud import recommendationengine_v1beta1
815857
816858
async def sample_import_catalog_items():

packages/google-cloud-recommendations-ai/google/cloud/recommendationengine_v1beta1/services/catalog_service/client.py

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,13 @@ def create_catalog_item(
449449
450450
.. code-block:: python
451451
452+
# This snippet has been automatically generated and should be regarded as a
453+
# code template only.
454+
# It will require modifications to work:
455+
# - It may require correct/in-range values for request initialization.
456+
# - It may require specifying regional endpoints when creating the service
457+
# client as shown in:
458+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
452459
from google.cloud import recommendationengine_v1beta1
453460
454461
def sample_create_catalog_item():
@@ -458,7 +465,7 @@ def sample_create_catalog_item():
458465
# Initialize request argument(s)
459466
catalog_item = recommendationengine_v1beta1.CatalogItem()
460467
catalog_item.id = "id_value"
461-
catalog_item.category_hierarchies.categories = ['categories_value_1', 'categories_value_2']
468+
catalog_item.category_hierarchies.categories = ['categories_value1', 'categories_value2']
462469
catalog_item.title = "title_value"
463470
464471
request = recommendationengine_v1beta1.CreateCatalogItemRequest(
@@ -557,6 +564,13 @@ def get_catalog_item(
557564
558565
.. code-block:: python
559566
567+
# This snippet has been automatically generated and should be regarded as a
568+
# code template only.
569+
# It will require modifications to work:
570+
# - It may require correct/in-range values for request initialization.
571+
# - It may require specifying regional endpoints when creating the service
572+
# client as shown in:
573+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
560574
from google.cloud import recommendationengine_v1beta1
561575
562576
def sample_get_catalog_item():
@@ -653,6 +667,13 @@ def list_catalog_items(
653667
654668
.. code-block:: python
655669
670+
# This snippet has been automatically generated and should be regarded as a
671+
# code template only.
672+
# It will require modifications to work:
673+
# - It may require correct/in-range values for request initialization.
674+
# - It may require specifying regional endpoints when creating the service
675+
# client as shown in:
676+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
656677
from google.cloud import recommendationengine_v1beta1
657678
658679
def sample_list_catalog_items():
@@ -773,6 +794,13 @@ def update_catalog_item(
773794
774795
.. code-block:: python
775796
797+
# This snippet has been automatically generated and should be regarded as a
798+
# code template only.
799+
# It will require modifications to work:
800+
# - It may require correct/in-range values for request initialization.
801+
# - It may require specifying regional endpoints when creating the service
802+
# client as shown in:
803+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
776804
from google.cloud import recommendationengine_v1beta1
777805
778806
def sample_update_catalog_item():
@@ -782,7 +810,7 @@ def sample_update_catalog_item():
782810
# Initialize request argument(s)
783811
catalog_item = recommendationengine_v1beta1.CatalogItem()
784812
catalog_item.id = "id_value"
785-
catalog_item.category_hierarchies.categories = ['categories_value_1', 'categories_value_2']
813+
catalog_item.category_hierarchies.categories = ['categories_value1', 'categories_value2']
786814
catalog_item.title = "title_value"
787815
788816
request = recommendationengine_v1beta1.UpdateCatalogItemRequest(
@@ -893,6 +921,13 @@ def delete_catalog_item(
893921
894922
.. code-block:: python
895923
924+
# This snippet has been automatically generated and should be regarded as a
925+
# code template only.
926+
# It will require modifications to work:
927+
# - It may require correct/in-range values for request initialization.
928+
# - It may require specifying regional endpoints when creating the service
929+
# client as shown in:
930+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
896931
from google.cloud import recommendationengine_v1beta1
897932
898933
def sample_delete_catalog_item():
@@ -985,6 +1020,13 @@ def import_catalog_items(
9851020
9861021
.. code-block:: python
9871022
1023+
# This snippet has been automatically generated and should be regarded as a
1024+
# code template only.
1025+
# It will require modifications to work:
1026+
# - It may require correct/in-range values for request initialization.
1027+
# - It may require specifying regional endpoints when creating the service
1028+
# client as shown in:
1029+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
9881030
from google.cloud import recommendationengine_v1beta1
9891031
9901032
def sample_import_catalog_items():

packages/google-cloud-recommendations-ai/google/cloud/recommendationengine_v1beta1/services/prediction_api_key_registry/async_client.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,13 @@ async def create_prediction_api_key_registration(
242242
243243
.. code-block:: python
244244
245+
# This snippet has been automatically generated and should be regarded as a
246+
# code template only.
247+
# It will require modifications to work:
248+
# - It may require correct/in-range values for request initialization.
249+
# - It may require specifying regional endpoints when creating the service
250+
# client as shown in:
251+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
245252
from google.cloud import recommendationengine_v1beta1
246253
247254
async def sample_create_prediction_api_key_registration():
@@ -360,6 +367,13 @@ async def list_prediction_api_key_registrations(
360367
361368
.. code-block:: python
362369
370+
# This snippet has been automatically generated and should be regarded as a
371+
# code template only.
372+
# It will require modifications to work:
373+
# - It may require correct/in-range values for request initialization.
374+
# - It may require specifying regional endpoints when creating the service
375+
# client as shown in:
376+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
363377
from google.cloud import recommendationengine_v1beta1
364378
365379
async def sample_list_prediction_api_key_registrations():
@@ -485,6 +499,13 @@ async def delete_prediction_api_key_registration(
485499
486500
.. code-block:: python
487501
502+
# This snippet has been automatically generated and should be regarded as a
503+
# code template only.
504+
# It will require modifications to work:
505+
# - It may require correct/in-range values for request initialization.
506+
# - It may require specifying regional endpoints when creating the service
507+
# client as shown in:
508+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
488509
from google.cloud import recommendationengine_v1beta1
489510
490511
async def sample_delete_prediction_api_key_registration():

packages/google-cloud-recommendations-ai/google/cloud/recommendationengine_v1beta1/services/prediction_api_key_registry/client.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,13 @@ def create_prediction_api_key_registration(
482482
483483
.. code-block:: python
484484
485+
# This snippet has been automatically generated and should be regarded as a
486+
# code template only.
487+
# It will require modifications to work:
488+
# - It may require correct/in-range values for request initialization.
489+
# - It may require specifying regional endpoints when creating the service
490+
# client as shown in:
491+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
485492
from google.cloud import recommendationengine_v1beta1
486493
487494
def sample_create_prediction_api_key_registration():
@@ -597,6 +604,13 @@ def list_prediction_api_key_registrations(
597604
598605
.. code-block:: python
599606
607+
# This snippet has been automatically generated and should be regarded as a
608+
# code template only.
609+
# It will require modifications to work:
610+
# - It may require correct/in-range values for request initialization.
611+
# - It may require specifying regional endpoints when creating the service
612+
# client as shown in:
613+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
600614
from google.cloud import recommendationengine_v1beta1
601615
602616
def sample_list_prediction_api_key_registrations():
@@ -715,6 +729,13 @@ def delete_prediction_api_key_registration(
715729
716730
.. code-block:: python
717731
732+
# This snippet has been automatically generated and should be regarded as a
733+
# code template only.
734+
# It will require modifications to work:
735+
# - It may require correct/in-range values for request initialization.
736+
# - It may require specifying regional endpoints when creating the service
737+
# client as shown in:
738+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
718739
from google.cloud import recommendationengine_v1beta1
719740
720741
def sample_delete_prediction_api_key_registration():

packages/google-cloud-recommendations-ai/google/cloud/recommendationengine_v1beta1/services/prediction_service/async_client.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,13 @@ async def predict(
221221
222222
.. code-block:: python
223223
224+
# This snippet has been automatically generated and should be regarded as a
225+
# code template only.
226+
# It will require modifications to work:
227+
# - It may require correct/in-range values for request initialization.
228+
# - It may require specifying regional endpoints when creating the service
229+
# client as shown in:
230+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
224231
from google.cloud import recommendationengine_v1beta1
225232
226233
async def sample_predict():

packages/google-cloud-recommendations-ai/google/cloud/recommendationengine_v1beta1/services/prediction_service/client.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,13 @@ def predict(
450450
451451
.. code-block:: python
452452
453+
# This snippet has been automatically generated and should be regarded as a
454+
# code template only.
455+
# It will require modifications to work:
456+
# - It may require correct/in-range values for request initialization.
457+
# - It may require specifying regional endpoints when creating the service
458+
# client as shown in:
459+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
453460
from google.cloud import recommendationengine_v1beta1
454461
455462
def sample_predict():

packages/google-cloud-recommendations-ai/google/cloud/recommendationengine_v1beta1/services/user_event_service/async_client.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,13 @@ async def write_user_event(
226226
227227
.. code-block:: python
228228
229+
# This snippet has been automatically generated and should be regarded as a
230+
# code template only.
231+
# It will require modifications to work:
232+
# - It may require correct/in-range values for request initialization.
233+
# - It may require specifying regional endpoints when creating the service
234+
# client as shown in:
235+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
229236
from google.cloud import recommendationengine_v1beta1
230237
231238
async def sample_write_user_event():
@@ -353,6 +360,13 @@ async def collect_user_event(
353360
354361
.. code-block:: python
355362
363+
# This snippet has been automatically generated and should be regarded as a
364+
# code template only.
365+
# It will require modifications to work:
366+
# - It may require correct/in-range values for request initialization.
367+
# - It may require specifying regional endpoints when creating the service
368+
# client as shown in:
369+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
356370
from google.cloud import recommendationengine_v1beta1
357371
358372
async def sample_collect_user_event():
@@ -541,6 +555,13 @@ async def list_user_events(
541555
542556
.. code-block:: python
543557
558+
# This snippet has been automatically generated and should be regarded as a
559+
# code template only.
560+
# It will require modifications to work:
561+
# - It may require correct/in-range values for request initialization.
562+
# - It may require specifying regional endpoints when creating the service
563+
# client as shown in:
564+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
544565
from google.cloud import recommendationengine_v1beta1
545566
546567
async def sample_list_user_events():
@@ -708,6 +729,13 @@ async def purge_user_events(
708729
709730
.. code-block:: python
710731
732+
# This snippet has been automatically generated and should be regarded as a
733+
# code template only.
734+
# It will require modifications to work:
735+
# - It may require correct/in-range values for request initialization.
736+
# - It may require specifying regional endpoints when creating the service
737+
# client as shown in:
738+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
711739
from google.cloud import recommendationengine_v1beta1
712740
713741
async def sample_purge_user_events():
@@ -877,6 +905,13 @@ async def import_user_events(
877905
878906
.. code-block:: python
879907
908+
# This snippet has been automatically generated and should be regarded as a
909+
# code template only.
910+
# It will require modifications to work:
911+
# - It may require correct/in-range values for request initialization.
912+
# - It may require specifying regional endpoints when creating the service
913+
# client as shown in:
914+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
880915
from google.cloud import recommendationengine_v1beta1
881916
882917
async def sample_import_user_events():

0 commit comments

Comments
 (0)