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 +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +2 -2
- data/lib/google/cloud/build/v1/cloud_build/client.rb +40 -46
- data/lib/google/cloud/build/v1/cloud_build/operations.rb +12 -14
- data/lib/google/cloud/build/v1/cloud_build/rest/client.rb +1773 -0
- data/lib/google/cloud/build/v1/cloud_build/rest/operations.rb +808 -0
- data/lib/google/cloud/build/v1/cloud_build/rest/service_stub.rb +1227 -0
- data/lib/google/cloud/build/v1/cloud_build/rest.rb +60 -0
- data/lib/google/cloud/build/v1/cloud_build.rb +7 -1
- data/lib/google/cloud/build/v1/rest.rb +37 -0
- data/lib/google/cloud/build/v1/version.rb +1 -1
- data/lib/google/cloud/build/v1.rb +7 -2
- data/lib/google/devtools/cloudbuild/v1/cloudbuild_pb.rb +32 -0
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb +123 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +15 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 324456e3db458718a4ff3226dc3bc1340ef687f85ba91d41fbc082fe7642a097
|
4
|
+
data.tar.gz: 45cfc1c346d5fa49bbcf10902b9754a90056a0aa961ba41b66fd49c496b54015
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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/
|
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
|
271
|
-
# #
|
272
|
-
# #
|
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 "
|
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
|
-
# #
|
481
|
-
#
|
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
|
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
|
696
|
-
# #
|
697
|
-
# #
|
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 "
|
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
|
800
|
-
# #
|
801
|
-
# #
|
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 "
|
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
|
-
# #
|
1090
|
-
#
|
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
|
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
|
1377
|
-
# #
|
1378
|
-
# #
|
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 "
|
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
|
1583
|
-
# #
|
1584
|
-
# #
|
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 "
|
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
|
1773
|
-
# #
|
1774
|
-
# #
|
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 "
|
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
|
1874
|
-
# #
|
1875
|
-
# #
|
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 "
|
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
|
-
# #
|
1975
|
-
#
|
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
|
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
|
-
# #
|
163
|
-
#
|
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
|
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
|
257
|
-
# #
|
258
|
-
# #
|
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 "
|
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
|
544
|
-
# #
|
545
|
-
# #
|
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 "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|