google-cloud-build-v1 0.12.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 558b661c4f52fb18badd64ff64f61930ed2fbb0464debaba634ba86a28697705
4
- data.tar.gz: a43a8574a9b630341f6be8b3041f1411f9030ae665ecf97d37e64bf50ed0be32
3
+ metadata.gz: 324456e3db458718a4ff3226dc3bc1340ef687f85ba91d41fbc082fe7642a097
4
+ data.tar.gz: 45cfc1c346d5fa49bbcf10902b9754a90056a0aa961ba41b66fd49c496b54015
5
5
  SHA512:
6
- metadata.gz: af760ef91f8b6c9a13eb2435d04d8ccfcbd5649d3316b670de2305334f1de5f0af21712ba5c67b5f680b2ea11b8c41da02af7dc8b4cc9985cca659f01a892fc9
7
- data.tar.gz: c605b413385b47bf9d8e3cabc91662a628cfb70e779793f84fe1e1f0d75b1777dce1247248b9f8a5c99a356b96802071da31fd9bf70912d242dbbf278715afe6
6
+ metadata.gz: d7d3be48e1df3abb0a9bba223c62362854fdf8c649cc77b7de72cdd4df35f5b5ea9274549c0c095d60ee9b98b6c4d56f9db0ad325694708cea9789c58c2a305b
7
+ data.tar.gz: 876db8e87a296c70d954892ebe08c57b28c3240d91fe0829b2dc7c379de2464e41f0170052d943bb6a792002aa7999f226590d21b7990660dc2ff672c0d5dfc5
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Cloud Build V1 API
2
2
 
3
- API Client library for the Cloud Build V1 API
3
+ Creates and manages builds on Google Cloud Platform.
4
4
 
5
5
  Cloud Build is a service that executes your builds on Google Cloud Platform infrastructure. Cloud Build can import source code from Google Cloud Storage, Cloud Source Repositories, GitHub, or Bitbucket, execute a build to your specifications, and produce artifacts such as Docker containers or Java archives.
6
6
 
@@ -46,7 +46,7 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
49
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
50
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
@@ -267,14 +267,14 @@ module Google
267
267
  # # Call the create_build method.
268
268
  # result = client.create_build request
269
269
  #
270
- # # The returned object is of type Gapic::Operation. You can use this
271
- # # object to check the status of an operation, cancel it, or wait
272
- # # for results. Here is how to block until completion:
270
+ # # The returned object is of type Gapic::Operation. You can use it to
271
+ # # check the status of an operation, cancel it, or wait for results.
272
+ # # Here is how to wait for a response.
273
273
  # result.wait_until_done! timeout: 60
274
274
  # if result.response?
275
275
  # p result.response
276
276
  # else
277
- # puts "Error!"
277
+ # puts "No response received."
278
278
  # end
279
279
  #
280
280
  def create_build request, options = nil
@@ -476,13 +476,11 @@ module Google
476
476
  # # Call the list_builds method.
477
477
  # result = client.list_builds request
478
478
  #
479
- # # The returned object is of type Gapic::PagedEnumerable. You can
480
- # # iterate over all elements by calling #each, and the enumerable
481
- # # will lazily make API calls to fetch subsequent pages. Other
482
- # # methods are also available for managing paging directly.
483
- # result.each do |response|
479
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
480
+ # # over elements, and API calls will be issued to fetch pages as needed.
481
+ # result.each do |item|
484
482
  # # Each element is of type ::Google::Cloud::Build::V1::Build.
485
- # p response
483
+ # p item
486
484
  # end
487
485
  #
488
486
  def list_builds request, options = nil
@@ -692,14 +690,14 @@ module Google
692
690
  # # Call the retry_build method.
693
691
  # result = client.retry_build request
694
692
  #
695
- # # The returned object is of type Gapic::Operation. You can use this
696
- # # object to check the status of an operation, cancel it, or wait
697
- # # for results. Here is how to block until completion:
693
+ # # The returned object is of type Gapic::Operation. You can use it to
694
+ # # check the status of an operation, cancel it, or wait for results.
695
+ # # Here is how to wait for a response.
698
696
  # result.wait_until_done! timeout: 60
699
697
  # if result.response?
700
698
  # p result.response
701
699
  # else
702
- # puts "Error!"
700
+ # puts "No response received."
703
701
  # end
704
702
  #
705
703
  def retry_build request, options = nil
@@ -796,14 +794,14 @@ module Google
796
794
  # # Call the approve_build method.
797
795
  # result = client.approve_build request
798
796
  #
799
- # # The returned object is of type Gapic::Operation. You can use this
800
- # # object to check the status of an operation, cancel it, or wait
801
- # # for results. Here is how to block until completion:
797
+ # # The returned object is of type Gapic::Operation. You can use it to
798
+ # # check the status of an operation, cancel it, or wait for results.
799
+ # # Here is how to wait for a response.
802
800
  # result.wait_until_done! timeout: 60
803
801
  # if result.response?
804
802
  # p result.response
805
803
  # else
806
- # puts "Error!"
804
+ # puts "No response received."
807
805
  # end
808
806
  #
809
807
  def approve_build request, options = nil
@@ -1085,13 +1083,11 @@ module Google
1085
1083
  # # Call the list_build_triggers method.
1086
1084
  # result = client.list_build_triggers request
1087
1085
  #
1088
- # # The returned object is of type Gapic::PagedEnumerable. You can
1089
- # # iterate over all elements by calling #each, and the enumerable
1090
- # # will lazily make API calls to fetch subsequent pages. Other
1091
- # # methods are also available for managing paging directly.
1092
- # result.each do |response|
1086
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1087
+ # # over elements, and API calls will be issued to fetch pages as needed.
1088
+ # result.each do |item|
1093
1089
  # # Each element is of type ::Google::Cloud::Build::V1::BuildTrigger.
1094
- # p response
1090
+ # p item
1095
1091
  # end
1096
1092
  #
1097
1093
  def list_build_triggers request, options = nil
@@ -1373,14 +1369,14 @@ module Google
1373
1369
  # # Call the run_build_trigger method.
1374
1370
  # result = client.run_build_trigger request
1375
1371
  #
1376
- # # The returned object is of type Gapic::Operation. You can use this
1377
- # # object to check the status of an operation, cancel it, or wait
1378
- # # for results. Here is how to block until completion:
1372
+ # # The returned object is of type Gapic::Operation. You can use it to
1373
+ # # check the status of an operation, cancel it, or wait for results.
1374
+ # # Here is how to wait for a response.
1379
1375
  # result.wait_until_done! timeout: 60
1380
1376
  # if result.response?
1381
1377
  # p result.response
1382
1378
  # else
1383
- # puts "Error!"
1379
+ # puts "No response received."
1384
1380
  # end
1385
1381
  #
1386
1382
  def run_build_trigger request, options = nil
@@ -1579,14 +1575,14 @@ module Google
1579
1575
  # # Call the create_worker_pool method.
1580
1576
  # result = client.create_worker_pool request
1581
1577
  #
1582
- # # The returned object is of type Gapic::Operation. You can use this
1583
- # # object to check the status of an operation, cancel it, or wait
1584
- # # for results. Here is how to block until completion:
1578
+ # # The returned object is of type Gapic::Operation. You can use it to
1579
+ # # check the status of an operation, cancel it, or wait for results.
1580
+ # # Here is how to wait for a response.
1585
1581
  # result.wait_until_done! timeout: 60
1586
1582
  # if result.response?
1587
1583
  # p result.response
1588
1584
  # else
1589
- # puts "Error!"
1585
+ # puts "No response received."
1590
1586
  # end
1591
1587
  #
1592
1588
  def create_worker_pool request, options = nil
@@ -1769,14 +1765,14 @@ module Google
1769
1765
  # # Call the delete_worker_pool method.
1770
1766
  # result = client.delete_worker_pool request
1771
1767
  #
1772
- # # The returned object is of type Gapic::Operation. You can use this
1773
- # # object to check the status of an operation, cancel it, or wait
1774
- # # for results. Here is how to block until completion:
1768
+ # # The returned object is of type Gapic::Operation. You can use it to
1769
+ # # check the status of an operation, cancel it, or wait for results.
1770
+ # # Here is how to wait for a response.
1775
1771
  # result.wait_until_done! timeout: 60
1776
1772
  # if result.response?
1777
1773
  # p result.response
1778
1774
  # else
1779
- # puts "Error!"
1775
+ # puts "No response received."
1780
1776
  # end
1781
1777
  #
1782
1778
  def delete_worker_pool request, options = nil
@@ -1870,14 +1866,14 @@ module Google
1870
1866
  # # Call the update_worker_pool method.
1871
1867
  # result = client.update_worker_pool request
1872
1868
  #
1873
- # # The returned object is of type Gapic::Operation. You can use this
1874
- # # object to check the status of an operation, cancel it, or wait
1875
- # # for results. Here is how to block until completion:
1869
+ # # The returned object is of type Gapic::Operation. You can use it to
1870
+ # # check the status of an operation, cancel it, or wait for results.
1871
+ # # Here is how to wait for a response.
1876
1872
  # result.wait_until_done! timeout: 60
1877
1873
  # if result.response?
1878
1874
  # p result.response
1879
1875
  # else
1880
- # puts "Error!"
1876
+ # puts "No response received."
1881
1877
  # end
1882
1878
  #
1883
1879
  def update_worker_pool request, options = nil
@@ -1970,13 +1966,11 @@ module Google
1970
1966
  # # Call the list_worker_pools method.
1971
1967
  # result = client.list_worker_pools request
1972
1968
  #
1973
- # # The returned object is of type Gapic::PagedEnumerable. You can
1974
- # # iterate over all elements by calling #each, and the enumerable
1975
- # # will lazily make API calls to fetch subsequent pages. Other
1976
- # # methods are also available for managing paging directly.
1977
- # result.each do |response|
1969
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1970
+ # # over elements, and API calls will be issued to fetch pages as needed.
1971
+ # result.each do |item|
1978
1972
  # # Each element is of type ::Google::Cloud::Build::V1::WorkerPool.
1979
- # p response
1973
+ # p item
1980
1974
  # end
1981
1975
  #
1982
1976
  def list_worker_pools request, options = nil
@@ -158,13 +158,11 @@ module Google
158
158
  # # Call the list_operations method.
159
159
  # result = client.list_operations request
160
160
  #
161
- # # The returned object is of type Gapic::PagedEnumerable. You can
162
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
164
- # # methods are also available for managing paging directly.
165
- # result.each do |response|
161
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
162
+ # # over elements, and API calls will be issued to fetch pages as needed.
163
+ # result.each do |item|
166
164
  # # Each element is of type ::Google::Longrunning::Operation.
167
- # p response
165
+ # p item
168
166
  # end
169
167
  #
170
168
  def list_operations request, options = nil
@@ -253,14 +251,14 @@ module Google
253
251
  # # Call the get_operation method.
254
252
  # result = client.get_operation request
255
253
  #
256
- # # The returned object is of type Gapic::Operation. You can use this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
254
+ # # The returned object is of type Gapic::Operation. You can use it to
255
+ # # check the status of an operation, cancel it, or wait for results.
256
+ # # Here is how to wait for a response.
259
257
  # result.wait_until_done! timeout: 60
260
258
  # if result.response?
261
259
  # p result.response
262
260
  # else
263
- # puts "Error!"
261
+ # puts "No response received."
264
262
  # end
265
263
  #
266
264
  def get_operation request, options = nil
@@ -540,14 +538,14 @@ module Google
540
538
  # # Call the wait_operation method.
541
539
  # result = client.wait_operation request
542
540
  #
543
- # # The returned object is of type Gapic::Operation. You can use this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
541
+ # # The returned object is of type Gapic::Operation. You can use it to
542
+ # # check the status of an operation, cancel it, or wait for results.
543
+ # # Here is how to wait for a response.
546
544
  # result.wait_until_done! timeout: 60
547
545
  # if result.response?
548
546
  # p result.response
549
547
  # else
550
- # puts "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil