Skip to content

Commit 4de7f4b

Browse files
chore: use gapic-generator-python 0.63.4 (#231)
* 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: googleapis/googleapis-gen@ca893ff Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2E4OTNmZjhhZjI1ZmM3ZmUwMDFkZTE0MDVhNTE3ZDgwNDQ2ZWNjYSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: delete duplicates Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com>
1 parent db38b4e commit 4de7f4b

39 files changed

Lines changed: 180 additions & 198 deletions

File tree

packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/services/cloud_build/async_client.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ async def create_build(
245245
build status (such as ``SUCCESS`` or ``FAILURE``).
246246
247247
248-
.. code-block::
248+
.. code-block:: python
249249
250250
from google.cloud.devtools import cloudbuild_v1
251251
@@ -376,7 +376,7 @@ async def get_build(
376376
information.
377377
378378
379-
.. code-block::
379+
.. code-block:: python
380380
381381
from google.cloud.devtools import cloudbuild_v1
382382
@@ -500,7 +500,7 @@ async def list_builds(
500500
may have finished successfully or unsuccessfully.
501501
502502
503-
.. code-block::
503+
.. code-block:: python
504504
505505
from google.cloud.devtools import cloudbuild_v1
506506
@@ -610,7 +610,7 @@ async def cancel_build(
610610
) -> cloudbuild.Build:
611611
r"""Cancels a build in progress.
612612
613-
.. code-block::
613+
.. code-block:: python
614614
615615
from google.cloud.devtools import cloudbuild_v1
616616
@@ -751,7 +751,7 @@ async def retry_build(
751751
settings.
752752
753753
754-
.. code-block::
754+
.. code-block:: python
755755
756756
from google.cloud.devtools import cloudbuild_v1
757757
@@ -885,7 +885,7 @@ async def approve_build(
885885
If rejected, the returned LRO will be immediately done.
886886
887887
888-
.. code-block::
888+
.. code-block:: python
889889
890890
from google.cloud.devtools import cloudbuild_v1
891891
@@ -1023,7 +1023,7 @@ async def create_build_trigger(
10231023
This API is experimental.
10241024
10251025
1026-
.. code-block::
1026+
.. code-block:: python
10271027
10281028
from google.cloud.devtools import cloudbuild_v1
10291029
@@ -1123,7 +1123,7 @@ async def get_build_trigger(
11231123
This API is experimental.
11241124
11251125
1126-
.. code-block::
1126+
.. code-block:: python
11271127
11281128
from google.cloud.devtools import cloudbuild_v1
11291129
@@ -1231,7 +1231,7 @@ async def list_build_triggers(
12311231
This API is experimental.
12321232
12331233
1234-
.. code-block::
1234+
.. code-block:: python
12351235
12361236
from google.cloud.devtools import cloudbuild_v1
12371237
@@ -1338,7 +1338,7 @@ async def delete_build_trigger(
13381338
This API is experimental.
13391339
13401340
1341-
.. code-block::
1341+
.. code-block:: python
13421342
13431343
from google.cloud.devtools import cloudbuild_v1
13441344
@@ -1434,7 +1434,7 @@ async def update_build_trigger(
14341434
This API is experimental.
14351435
14361436
1437-
.. code-block::
1437+
.. code-block:: python
14381438
14391439
from google.cloud.devtools import cloudbuild_v1
14401440
@@ -1540,7 +1540,7 @@ async def run_build_trigger(
15401540
) -> operation_async.AsyncOperation:
15411541
r"""Runs a ``BuildTrigger`` at a particular source revision.
15421542
1543-
.. code-block::
1543+
.. code-block:: python
15441544
15451545
from google.cloud.devtools import cloudbuild_v1
15461546
@@ -1675,7 +1675,7 @@ async def receive_trigger_webhook(
16751675
receives a webhook request targeted at a specific trigger.
16761676
16771677
1678-
.. code-block::
1678+
.. code-block:: python
16791679
16801680
from google.cloud.devtools import cloudbuild_v1
16811681
@@ -1740,7 +1740,7 @@ async def create_worker_pool(
17401740
) -> operation_async.AsyncOperation:
17411741
r"""Creates a ``WorkerPool``.
17421742
1743-
.. code-block::
1743+
.. code-block:: python
17441744
17451745
from google.cloud.devtools import cloudbuild_v1
17461746
@@ -1881,7 +1881,7 @@ async def get_worker_pool(
18811881
) -> cloudbuild.WorkerPool:
18821882
r"""Returns details of a ``WorkerPool``.
18831883
1884-
.. code-block::
1884+
.. code-block:: python
18851885
18861886
from google.cloud.devtools import cloudbuild_v1
18871887
@@ -1995,7 +1995,7 @@ async def delete_worker_pool(
19951995
) -> operation_async.AsyncOperation:
19961996
r"""Deletes a ``WorkerPool``.
19971997
1998-
.. code-block::
1998+
.. code-block:: python
19991999
20002000
from google.cloud.devtools import cloudbuild_v1
20012001
@@ -2111,7 +2111,7 @@ async def update_worker_pool(
21112111
) -> operation_async.AsyncOperation:
21122112
r"""Updates a ``WorkerPool``.
21132113
2114-
.. code-block::
2114+
.. code-block:: python
21152115
21162116
from google.cloud.devtools import cloudbuild_v1
21172117
@@ -2242,7 +2242,7 @@ async def list_worker_pools(
22422242
) -> pagers.ListWorkerPoolsAsyncPager:
22432243
r"""Lists ``WorkerPool``\ s.
22442244
2245-
.. code-block::
2245+
.. code-block:: python
22462246
22472247
from google.cloud.devtools import cloudbuild_v1
22482248

packages/google-cloud-build/google/cloud/devtools/cloudbuild_v1/services/cloud_build/client.py

Lines changed: 18 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,7 @@ def create_build(
541541
build status (such as ``SUCCESS`` or ``FAILURE``).
542542
543543
544-
545-
.. code-block::
544+
.. code-block:: python
546545
547546
from google.cloud.devtools import cloudbuild_v1
548547
@@ -673,8 +672,7 @@ def get_build(
673672
information.
674673
675674
676-
677-
.. code-block::
675+
.. code-block:: python
678676
679677
from google.cloud.devtools import cloudbuild_v1
680678
@@ -788,8 +786,7 @@ def list_builds(
788786
may have finished successfully or unsuccessfully.
789787
790788
791-
792-
.. code-block::
789+
.. code-block:: python
793790
794791
from google.cloud.devtools import cloudbuild_v1
795792
@@ -889,8 +886,7 @@ def cancel_build(
889886
) -> cloudbuild.Build:
890887
r"""Cancels a build in progress.
891888
892-
893-
.. code-block::
889+
.. code-block:: python
894890
895891
from google.cloud.devtools import cloudbuild_v1
896892
@@ -1031,8 +1027,7 @@ def retry_build(
10311027
settings.
10321028
10331029
1034-
1035-
.. code-block::
1030+
.. code-block:: python
10361031
10371032
from google.cloud.devtools import cloudbuild_v1
10381033
@@ -1166,8 +1161,7 @@ def approve_build(
11661161
If rejected, the returned LRO will be immediately done.
11671162
11681163
1169-
1170-
.. code-block::
1164+
.. code-block:: python
11711165
11721166
from google.cloud.devtools import cloudbuild_v1
11731167
@@ -1305,8 +1299,7 @@ def create_build_trigger(
13051299
This API is experimental.
13061300
13071301
1308-
1309-
.. code-block::
1302+
.. code-block:: python
13101303
13111304
from google.cloud.devtools import cloudbuild_v1
13121305
@@ -1406,8 +1399,7 @@ def get_build_trigger(
14061399
This API is experimental.
14071400
14081401
1409-
1410-
.. code-block::
1402+
.. code-block:: python
14111403
14121404
from google.cloud.devtools import cloudbuild_v1
14131405
@@ -1505,8 +1497,7 @@ def list_build_triggers(
15051497
This API is experimental.
15061498
15071499
1508-
1509-
.. code-block::
1500+
.. code-block:: python
15101501
15111502
from google.cloud.devtools import cloudbuild_v1
15121503
@@ -1603,8 +1594,7 @@ def delete_build_trigger(
16031594
This API is experimental.
16041595
16051596
1606-
1607-
.. code-block::
1597+
.. code-block:: python
16081598
16091599
from google.cloud.devtools import cloudbuild_v1
16101600
@@ -1690,8 +1680,7 @@ def update_build_trigger(
16901680
This API is experimental.
16911681
16921682
1693-
1694-
.. code-block::
1683+
.. code-block:: python
16951684
16961685
from google.cloud.devtools import cloudbuild_v1
16971686
@@ -1797,8 +1786,7 @@ def run_build_trigger(
17971786
) -> operation.Operation:
17981787
r"""Runs a ``BuildTrigger`` at a particular source revision.
17991788
1800-
1801-
.. code-block::
1789+
.. code-block:: python
18021790
18031791
from google.cloud.devtools import cloudbuild_v1
18041792
@@ -1933,8 +1921,7 @@ def receive_trigger_webhook(
19331921
receives a webhook request targeted at a specific trigger.
19341922
19351923
1936-
1937-
.. code-block::
1924+
.. code-block:: python
19381925
19391926
from google.cloud.devtools import cloudbuild_v1
19401927
@@ -2000,8 +1987,7 @@ def create_worker_pool(
20001987
) -> operation.Operation:
20011988
r"""Creates a ``WorkerPool``.
20021989
2003-
2004-
.. code-block::
1990+
.. code-block:: python
20051991
20061992
from google.cloud.devtools import cloudbuild_v1
20071993
@@ -2142,8 +2128,7 @@ def get_worker_pool(
21422128
) -> cloudbuild.WorkerPool:
21432129
r"""Returns details of a ``WorkerPool``.
21442130
2145-
2146-
.. code-block::
2131+
.. code-block:: python
21472132
21482133
from google.cloud.devtools import cloudbuild_v1
21492134
@@ -2247,8 +2232,7 @@ def delete_worker_pool(
22472232
) -> operation.Operation:
22482233
r"""Deletes a ``WorkerPool``.
22492234
2250-
2251-
.. code-block::
2235+
.. code-block:: python
22522236
22532237
from google.cloud.devtools import cloudbuild_v1
22542238
@@ -2364,8 +2348,7 @@ def update_worker_pool(
23642348
) -> operation.Operation:
23652349
r"""Updates a ``WorkerPool``.
23662350
2367-
2368-
.. code-block::
2351+
.. code-block:: python
23692352
23702353
from google.cloud.devtools import cloudbuild_v1
23712354
@@ -2496,8 +2479,7 @@ def list_worker_pools(
24962479
) -> pagers.ListWorkerPoolsPager:
24972480
r"""Lists ``WorkerPool``\ s.
24982481
2499-
2500-
.. code-block::
2482+
.. code-block:: python
25012483
25022484
from google.cloud.devtools import cloudbuild_v1
25032485

packages/google-cloud-build/samples/generated_samples/cloudbuild_generated_cloudbuild_v1_cloud_build_approve_build_async.py renamed to packages/google-cloud-build/samples/generated_samples/cloudbuild_v1_generated_cloud_build_approve_build_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# python3 -m pip install google-cloud-build
2424

2525

26-
# [START cloudbuild_generated_cloudbuild_v1_CloudBuild_ApproveBuild_async]
26+
# [START cloudbuild_v1_generated_CloudBuild_ApproveBuild_async]
2727
from google.cloud.devtools import cloudbuild_v1
2828

2929

@@ -46,4 +46,4 @@ async def sample_approve_build():
4646
# Handle the response
4747
print(response)
4848

49-
# [END cloudbuild_generated_cloudbuild_v1_CloudBuild_ApproveBuild_async]
49+
# [END cloudbuild_v1_generated_CloudBuild_ApproveBuild_async]

packages/google-cloud-build/samples/generated_samples/cloudbuild_generated_cloudbuild_v1_cloud_build_approve_build_sync.py renamed to packages/google-cloud-build/samples/generated_samples/cloudbuild_v1_generated_cloud_build_approve_build_sync.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# python3 -m pip install google-cloud-build
2424

2525

26-
# [START cloudbuild_generated_cloudbuild_v1_CloudBuild_ApproveBuild_sync]
26+
# [START cloudbuild_v1_generated_CloudBuild_ApproveBuild_sync]
2727
from google.cloud.devtools import cloudbuild_v1
2828

2929

@@ -46,4 +46,4 @@ def sample_approve_build():
4646
# Handle the response
4747
print(response)
4848

49-
# [END cloudbuild_generated_cloudbuild_v1_CloudBuild_ApproveBuild_sync]
49+
# [END cloudbuild_v1_generated_CloudBuild_ApproveBuild_sync]

packages/google-cloud-build/samples/generated_samples/cloudbuild_generated_cloudbuild_v1_cloud_build_cancel_build_async.py renamed to packages/google-cloud-build/samples/generated_samples/cloudbuild_v1_generated_cloud_build_cancel_build_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# python3 -m pip install google-cloud-build
2424

2525

26-
# [START cloudbuild_generated_cloudbuild_v1_CloudBuild_CancelBuild_async]
26+
# [START cloudbuild_v1_generated_CloudBuild_CancelBuild_async]
2727
from google.cloud.devtools import cloudbuild_v1
2828

2929

@@ -43,4 +43,4 @@ async def sample_cancel_build():
4343
# Handle the response
4444
print(response)
4545

46-
# [END cloudbuild_generated_cloudbuild_v1_CloudBuild_CancelBuild_async]
46+
# [END cloudbuild_v1_generated_CloudBuild_CancelBuild_async]

0 commit comments

Comments
 (0)