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

Commit cb4b6bf

Browse files
chore: Bump gapic-generator-python version to 1.3.0 (#239)
- [ ] 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 e966025 commit cb4b6bf

27 files changed

Lines changed: 473 additions & 193 deletions

File tree

google/cloud/billing/budgets_v1/services/budget_service/async_client.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,13 @@ async def create_budget(
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.billing import budgets_v1
229236
230237
async def sample_create_budget():
@@ -339,6 +346,13 @@ async def update_budget(
339346
340347
.. code-block:: python
341348
349+
# This snippet has been automatically generated and should be regarded as a
350+
# code template only.
351+
# It will require modifications to work:
352+
# - It may require correct/in-range values for request initialization.
353+
# - It may require specifying regional endpoints when creating the service
354+
# client as shown in:
355+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
342356
from google.cloud.billing import budgets_v1
343357
344358
async def sample_update_budget():
@@ -470,6 +484,13 @@ async def get_budget(
470484
471485
.. code-block:: python
472486
487+
# This snippet has been automatically generated and should be regarded as a
488+
# code template only.
489+
# It will require modifications to work:
490+
# - It may require correct/in-range values for request initialization.
491+
# - It may require specifying regional endpoints when creating the service
492+
# client as shown in:
493+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
473494
from google.cloud.billing import budgets_v1
474495
475496
async def sample_get_budget():
@@ -586,6 +607,13 @@ async def list_budgets(
586607
587608
.. code-block:: python
588609
610+
# This snippet has been automatically generated and should be regarded as a
611+
# code template only.
612+
# It will require modifications to work:
613+
# - It may require correct/in-range values for request initialization.
614+
# - It may require specifying regional endpoints when creating the service
615+
# client as shown in:
616+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
589617
from google.cloud.billing import budgets_v1
590618
591619
async def sample_list_budgets():
@@ -704,6 +732,13 @@ async def delete_budget(
704732
705733
.. code-block:: python
706734
735+
# This snippet has been automatically generated and should be regarded as a
736+
# code template only.
737+
# It will require modifications to work:
738+
# - It may require correct/in-range values for request initialization.
739+
# - It may require specifying regional endpoints when creating the service
740+
# client as shown in:
741+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
707742
from google.cloud.billing import budgets_v1
708743
709744
async def sample_delete_budget():

google/cloud/billing/budgets_v1/services/budget_service/client.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,13 @@ def create_budget(
445445
446446
.. code-block:: python
447447
448+
# This snippet has been automatically generated and should be regarded as a
449+
# code template only.
450+
# It will require modifications to work:
451+
# - It may require correct/in-range values for request initialization.
452+
# - It may require specifying regional endpoints when creating the service
453+
# client as shown in:
454+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
448455
from google.cloud.billing import budgets_v1
449456
450457
def sample_create_budget():
@@ -559,6 +566,13 @@ def update_budget(
559566
560567
.. code-block:: python
561568
569+
# This snippet has been automatically generated and should be regarded as a
570+
# code template only.
571+
# It will require modifications to work:
572+
# - It may require correct/in-range values for request initialization.
573+
# - It may require specifying regional endpoints when creating the service
574+
# client as shown in:
575+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
562576
from google.cloud.billing import budgets_v1
563577
564578
def sample_update_budget():
@@ -680,6 +694,13 @@ def get_budget(
680694
681695
.. code-block:: python
682696
697+
# This snippet has been automatically generated and should be regarded as a
698+
# code template only.
699+
# It will require modifications to work:
700+
# - It may require correct/in-range values for request initialization.
701+
# - It may require specifying regional endpoints when creating the service
702+
# client as shown in:
703+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
683704
from google.cloud.billing import budgets_v1
684705
685706
def sample_get_budget():
@@ -786,6 +807,13 @@ def list_budgets(
786807
787808
.. code-block:: python
788809
810+
# This snippet has been automatically generated and should be regarded as a
811+
# code template only.
812+
# It will require modifications to work:
813+
# - It may require correct/in-range values for request initialization.
814+
# - It may require specifying regional endpoints when creating the service
815+
# client as shown in:
816+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
789817
from google.cloud.billing import budgets_v1
790818
791819
def sample_list_budgets():
@@ -894,6 +922,13 @@ def delete_budget(
894922
895923
.. code-block:: python
896924
925+
# This snippet has been automatically generated and should be regarded as a
926+
# code template only.
927+
# It will require modifications to work:
928+
# - It may require correct/in-range values for request initialization.
929+
# - It may require specifying regional endpoints when creating the service
930+
# client as shown in:
931+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
897932
from google.cloud.billing import budgets_v1
898933
899934
def sample_delete_budget():

google/cloud/billing/budgets_v1beta1/services/budget_service/async_client.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,13 @@ async def create_budget(
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.billing import budgets_v1beta1
225232
226233
async def sample_create_budget():
@@ -304,6 +311,13 @@ async def update_budget(
304311
305312
.. code-block:: python
306313
314+
# This snippet has been automatically generated and should be regarded as a
315+
# code template only.
316+
# It will require modifications to work:
317+
# - It may require correct/in-range values for request initialization.
318+
# - It may require specifying regional endpoints when creating the service
319+
# client as shown in:
320+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
307321
from google.cloud.billing import budgets_v1beta1
308322
309323
async def sample_update_budget():
@@ -399,6 +413,13 @@ async def get_budget(
399413
400414
.. code-block:: python
401415
416+
# This snippet has been automatically generated and should be regarded as a
417+
# code template only.
418+
# It will require modifications to work:
419+
# - It may require correct/in-range values for request initialization.
420+
# - It may require specifying regional endpoints when creating the service
421+
# client as shown in:
422+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
402423
from google.cloud.billing import budgets_v1beta1
403424
404425
async def sample_get_budget():
@@ -493,6 +514,13 @@ async def list_budgets(
493514
494515
.. code-block:: python
495516
517+
# This snippet has been automatically generated and should be regarded as a
518+
# code template only.
519+
# It will require modifications to work:
520+
# - It may require correct/in-range values for request initialization.
521+
# - It may require specifying regional endpoints when creating the service
522+
# client as shown in:
523+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
496524
from google.cloud.billing import budgets_v1beta1
497525
498526
async def sample_list_budgets():
@@ -588,6 +616,13 @@ async def delete_budget(
588616
589617
.. code-block:: python
590618
619+
# This snippet has been automatically generated and should be regarded as a
620+
# code template only.
621+
# It will require modifications to work:
622+
# - It may require correct/in-range values for request initialization.
623+
# - It may require specifying regional endpoints when creating the service
624+
# client as shown in:
625+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
591626
from google.cloud.billing import budgets_v1beta1
592627
593628
async def sample_delete_budget():

google/cloud/billing/budgets_v1beta1/services/budget_service/client.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,13 @@ def create_budget(
441441
442442
.. code-block:: python
443443
444+
# This snippet has been automatically generated and should be regarded as a
445+
# code template only.
446+
# It will require modifications to work:
447+
# - It may require correct/in-range values for request initialization.
448+
# - It may require specifying regional endpoints when creating the service
449+
# client as shown in:
450+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
444451
from google.cloud.billing import budgets_v1beta1
445452
446453
def sample_create_budget():
@@ -525,6 +532,13 @@ def update_budget(
525532
526533
.. code-block:: python
527534
535+
# This snippet has been automatically generated and should be regarded as a
536+
# code template only.
537+
# It will require modifications to work:
538+
# - It may require correct/in-range values for request initialization.
539+
# - It may require specifying regional endpoints when creating the service
540+
# client as shown in:
541+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
528542
from google.cloud.billing import budgets_v1beta1
529543
530544
def sample_update_budget():
@@ -611,6 +625,13 @@ def get_budget(
611625
612626
.. code-block:: python
613627
628+
# This snippet has been automatically generated and should be regarded as a
629+
# code template only.
630+
# It will require modifications to work:
631+
# - It may require correct/in-range values for request initialization.
632+
# - It may require specifying regional endpoints when creating the service
633+
# client as shown in:
634+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
614635
from google.cloud.billing import budgets_v1beta1
615636
616637
def sample_get_budget():
@@ -696,6 +717,13 @@ def list_budgets(
696717
697718
.. code-block:: python
698719
720+
# This snippet has been automatically generated and should be regarded as a
721+
# code template only.
722+
# It will require modifications to work:
723+
# - It may require correct/in-range values for request initialization.
724+
# - It may require specifying regional endpoints when creating the service
725+
# client as shown in:
726+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
699727
from google.cloud.billing import budgets_v1beta1
700728
701729
def sample_list_budgets():
@@ -782,6 +810,13 @@ def delete_budget(
782810
783811
.. code-block:: python
784812
813+
# This snippet has been automatically generated and should be regarded as a
814+
# code template only.
815+
# It will require modifications to work:
816+
# - It may require correct/in-range values for request initialization.
817+
# - It may require specifying regional endpoints when creating the service
818+
# client as shown in:
819+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
785820
from google.cloud.billing import budgets_v1beta1
786821
787822
def sample_delete_budget():

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/billingbudgets_v1_generated_budget_service_create_budget_async.py

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

2525

2626
# [START billingbudgets_v1_generated_BudgetService_CreateBudget_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.billing import budgets_v1
2835

2936

samples/generated_samples/billingbudgets_v1_generated_budget_service_create_budget_sync.py

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

2525

2626
# [START billingbudgets_v1_generated_BudgetService_CreateBudget_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.billing import budgets_v1
2835

2936

samples/generated_samples/billingbudgets_v1_generated_budget_service_delete_budget_async.py

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

2525

2626
# [START billingbudgets_v1_generated_BudgetService_DeleteBudget_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.billing import budgets_v1
2835

2936

samples/generated_samples/billingbudgets_v1_generated_budget_service_delete_budget_sync.py

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

2525

2626
# [START billingbudgets_v1_generated_BudgetService_DeleteBudget_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.billing import budgets_v1
2835

2936

samples/generated_samples/billingbudgets_v1_generated_budget_service_get_budget_async.py

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

2525

2626
# [START billingbudgets_v1_generated_BudgetService_GetBudget_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.billing import budgets_v1
2835

2936

0 commit comments

Comments
 (0)