google-cloud-build-v1 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/build/v1.rb +3 -0
- data/lib/google/cloud/build/v1/cloud_build/client.rb +1 -1
- data/lib/google/cloud/build/v1/cloud_build/operations.rb +1 -1
- data/lib/google/cloud/build/v1/version.rb +1 -1
- data/lib/google/devtools/cloudbuild/v1/cloudbuild_services_pb.rb +16 -16
- data/proto_docs/google/api/resource.rb +50 -14
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3913835b4f5322f7bc2c8e39d0a056f5e6583a4dca0ef9a7ccf0bbd1ab7e467c
|
4
|
+
data.tar.gz: 887fe149fed8598c4c49aac37eb92da177aac7988185848aa719be5382d6962b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8331f37a78d169ea07177655ebf28a19a8ad5a6567a3e586f7f2b8676c6d8e62bed7633faea143772397368a2dd0aba05cebda8df60ddfa447c7de2289898cc0
|
7
|
+
data.tar.gz: 337b33d43edfb7a58b7abb39be04f955affe9aabd8689ed2d9c8003ae2525c728b0fde98aadad707506ed5c64d12c0bee8dcbd0af0f877437b4934f115d89b9c
|
@@ -1510,7 +1510,7 @@ module Google
|
|
1510
1510
|
# Each configuration object is of type `Gapic::Config::Method` and includes
|
1511
1511
|
# the following configuration fields:
|
1512
1512
|
#
|
1513
|
-
# * `timeout` (*type:* `Numeric`) - The call timeout in
|
1513
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
1514
1514
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
1515
1515
|
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
1516
1516
|
# include the following keys:
|
@@ -515,7 +515,7 @@ module Google
|
|
515
515
|
# Each configuration object is of type `Gapic::Config::Method` and includes
|
516
516
|
# the following configuration fields:
|
517
517
|
#
|
518
|
-
# * `timeout` (*type:* `Numeric`) - The call timeout in
|
518
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
519
519
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
520
520
|
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
521
521
|
# include the following keys:
|
@@ -45,19 +45,19 @@ module Google
|
|
45
45
|
# This method returns a long-running `Operation`, which includes the build
|
46
46
|
# ID. Pass the build ID to `GetBuild` to determine the build status (such as
|
47
47
|
# `SUCCESS` or `FAILURE`).
|
48
|
-
rpc :CreateBuild, Google::Cloud::Build::V1::CreateBuildRequest, Google::Longrunning::Operation
|
48
|
+
rpc :CreateBuild, ::Google::Cloud::Build::V1::CreateBuildRequest, ::Google::Longrunning::Operation
|
49
49
|
# Returns information about a previously requested build.
|
50
50
|
#
|
51
51
|
# The `Build` that is returned includes its status (such as `SUCCESS`,
|
52
52
|
# `FAILURE`, or `WORKING`), and timing information.
|
53
|
-
rpc :GetBuild, Google::Cloud::Build::V1::GetBuildRequest, Google::Cloud::Build::V1::Build
|
53
|
+
rpc :GetBuild, ::Google::Cloud::Build::V1::GetBuildRequest, ::Google::Cloud::Build::V1::Build
|
54
54
|
# Lists previously requested builds.
|
55
55
|
#
|
56
56
|
# Previously requested builds may still be in-progress, or may have finished
|
57
57
|
# successfully or unsuccessfully.
|
58
|
-
rpc :ListBuilds, Google::Cloud::Build::V1::ListBuildsRequest, Google::Cloud::Build::V1::ListBuildsResponse
|
58
|
+
rpc :ListBuilds, ::Google::Cloud::Build::V1::ListBuildsRequest, ::Google::Cloud::Build::V1::ListBuildsResponse
|
59
59
|
# Cancels a build in progress.
|
60
|
-
rpc :CancelBuild, Google::Cloud::Build::V1::CancelBuildRequest, Google::Cloud::Build::V1::Build
|
60
|
+
rpc :CancelBuild, ::Google::Cloud::Build::V1::CancelBuildRequest, ::Google::Cloud::Build::V1::Build
|
61
61
|
# Creates a new build based on the specified build.
|
62
62
|
#
|
63
63
|
# This method creates a new build using the original build request, which may
|
@@ -85,49 +85,49 @@ module Google
|
|
85
85
|
# generation of the object, the new build will attempt to use the same
|
86
86
|
# object, which may or may not be available depending on the bucket's
|
87
87
|
# lifecycle management settings.
|
88
|
-
rpc :RetryBuild, Google::Cloud::Build::V1::RetryBuildRequest, Google::Longrunning::Operation
|
88
|
+
rpc :RetryBuild, ::Google::Cloud::Build::V1::RetryBuildRequest, ::Google::Longrunning::Operation
|
89
89
|
# Creates a new `BuildTrigger`.
|
90
90
|
#
|
91
91
|
# This API is experimental.
|
92
|
-
rpc :CreateBuildTrigger, Google::Cloud::Build::V1::CreateBuildTriggerRequest, Google::Cloud::Build::V1::BuildTrigger
|
92
|
+
rpc :CreateBuildTrigger, ::Google::Cloud::Build::V1::CreateBuildTriggerRequest, ::Google::Cloud::Build::V1::BuildTrigger
|
93
93
|
# Returns information about a `BuildTrigger`.
|
94
94
|
#
|
95
95
|
# This API is experimental.
|
96
|
-
rpc :GetBuildTrigger, Google::Cloud::Build::V1::GetBuildTriggerRequest, Google::Cloud::Build::V1::BuildTrigger
|
96
|
+
rpc :GetBuildTrigger, ::Google::Cloud::Build::V1::GetBuildTriggerRequest, ::Google::Cloud::Build::V1::BuildTrigger
|
97
97
|
# Lists existing `BuildTrigger`s.
|
98
98
|
#
|
99
99
|
# This API is experimental.
|
100
|
-
rpc :ListBuildTriggers, Google::Cloud::Build::V1::ListBuildTriggersRequest, Google::Cloud::Build::V1::ListBuildTriggersResponse
|
100
|
+
rpc :ListBuildTriggers, ::Google::Cloud::Build::V1::ListBuildTriggersRequest, ::Google::Cloud::Build::V1::ListBuildTriggersResponse
|
101
101
|
# Deletes a `BuildTrigger` by its project ID and trigger ID.
|
102
102
|
#
|
103
103
|
# This API is experimental.
|
104
|
-
rpc :DeleteBuildTrigger, Google::Cloud::Build::V1::DeleteBuildTriggerRequest, Google::Protobuf::Empty
|
104
|
+
rpc :DeleteBuildTrigger, ::Google::Cloud::Build::V1::DeleteBuildTriggerRequest, ::Google::Protobuf::Empty
|
105
105
|
# Updates a `BuildTrigger` by its project ID and trigger ID.
|
106
106
|
#
|
107
107
|
# This API is experimental.
|
108
|
-
rpc :UpdateBuildTrigger, Google::Cloud::Build::V1::UpdateBuildTriggerRequest, Google::Cloud::Build::V1::BuildTrigger
|
108
|
+
rpc :UpdateBuildTrigger, ::Google::Cloud::Build::V1::UpdateBuildTriggerRequest, ::Google::Cloud::Build::V1::BuildTrigger
|
109
109
|
# Runs a `BuildTrigger` at a particular source revision.
|
110
|
-
rpc :RunBuildTrigger, Google::Cloud::Build::V1::RunBuildTriggerRequest, Google::Longrunning::Operation
|
110
|
+
rpc :RunBuildTrigger, ::Google::Cloud::Build::V1::RunBuildTriggerRequest, ::Google::Longrunning::Operation
|
111
111
|
# Creates a `WorkerPool` to run the builds, and returns the new worker pool.
|
112
112
|
#
|
113
113
|
# This API is experimental.
|
114
|
-
rpc :CreateWorkerPool, Google::Cloud::Build::V1::CreateWorkerPoolRequest, Google::Cloud::Build::V1::WorkerPool
|
114
|
+
rpc :CreateWorkerPool, ::Google::Cloud::Build::V1::CreateWorkerPoolRequest, ::Google::Cloud::Build::V1::WorkerPool
|
115
115
|
# Returns information about a `WorkerPool`.
|
116
116
|
#
|
117
117
|
# This API is experimental.
|
118
|
-
rpc :GetWorkerPool, Google::Cloud::Build::V1::GetWorkerPoolRequest, Google::Cloud::Build::V1::WorkerPool
|
118
|
+
rpc :GetWorkerPool, ::Google::Cloud::Build::V1::GetWorkerPoolRequest, ::Google::Cloud::Build::V1::WorkerPool
|
119
119
|
# Deletes a `WorkerPool` by its project ID and WorkerPool name.
|
120
120
|
#
|
121
121
|
# This API is experimental.
|
122
|
-
rpc :DeleteWorkerPool, Google::Cloud::Build::V1::DeleteWorkerPoolRequest, Google::Protobuf::Empty
|
122
|
+
rpc :DeleteWorkerPool, ::Google::Cloud::Build::V1::DeleteWorkerPoolRequest, ::Google::Protobuf::Empty
|
123
123
|
# Update a `WorkerPool`.
|
124
124
|
#
|
125
125
|
# This API is experimental.
|
126
|
-
rpc :UpdateWorkerPool, Google::Cloud::Build::V1::UpdateWorkerPoolRequest, Google::Cloud::Build::V1::WorkerPool
|
126
|
+
rpc :UpdateWorkerPool, ::Google::Cloud::Build::V1::UpdateWorkerPoolRequest, ::Google::Cloud::Build::V1::WorkerPool
|
127
127
|
# List project's `WorkerPools`.
|
128
128
|
#
|
129
129
|
# This API is experimental.
|
130
|
-
rpc :ListWorkerPools, Google::Cloud::Build::V1::ListWorkerPoolsRequest, Google::Cloud::Build::V1::ListWorkerPoolsResponse
|
130
|
+
rpc :ListWorkerPools, ::Google::Cloud::Build::V1::ListWorkerPoolsRequest, ::Google::Cloud::Build::V1::ListWorkerPoolsResponse
|
131
131
|
end
|
132
132
|
|
133
133
|
Stub = Service.rpc_stub_class
|
@@ -43,12 +43,12 @@ module Google
|
|
43
43
|
#
|
44
44
|
# The ResourceDescriptor Yaml config will look like:
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
46
|
+
# resources:
|
47
|
+
# - type: "pubsub.googleapis.com/Topic"
|
48
|
+
# name_descriptor:
|
49
|
+
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
+
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
+
# parent_name_extractor: "projects/{project}"
|
52
52
|
#
|
53
53
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
54
|
# live under multiple parents.
|
@@ -183,15 +183,24 @@ module Google
|
|
183
183
|
# }
|
184
184
|
# @!attribute [rw] plural
|
185
185
|
# @return [::String]
|
186
|
-
# The plural name used in the resource name, such as
|
187
|
-
# the name of 'projects/\\{project}'
|
188
|
-
#
|
186
|
+
# The plural name used in the resource name and permission names, such as
|
187
|
+
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
188
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
|
189
|
+
# concept of the `plural` field in k8s CRD spec
|
189
190
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
191
|
+
#
|
192
|
+
# Note: The plural form is required even for singleton resources. See
|
193
|
+
# https://aip.dev/156
|
190
194
|
# @!attribute [rw] singular
|
191
195
|
# @return [::String]
|
192
196
|
# The same concept of the `singular` field in k8s CRD spec
|
193
197
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
194
198
|
# Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
199
|
+
# @!attribute [rw] style
|
200
|
+
# @return [::Array<::Google::Api::ResourceDescriptor::Style>]
|
201
|
+
# Style flag(s) for this resource.
|
202
|
+
# These indicate that a resource is expected to conform to a given
|
203
|
+
# style. See the specific style flags for additional information.
|
195
204
|
class ResourceDescriptor
|
196
205
|
include ::Google::Protobuf::MessageExts
|
197
206
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -211,6 +220,22 @@ module Google
|
|
211
220
|
# that from being necessary once there are multiple patterns.)
|
212
221
|
FUTURE_MULTI_PATTERN = 2
|
213
222
|
end
|
223
|
+
|
224
|
+
# A flag representing a specific style that a resource claims to conform to.
|
225
|
+
module Style
|
226
|
+
# The unspecified value. Do not use.
|
227
|
+
STYLE_UNSPECIFIED = 0
|
228
|
+
|
229
|
+
# This resource is intended to be "declarative-friendly".
|
230
|
+
#
|
231
|
+
# Declarative-friendly resources must be more strictly consistent, and
|
232
|
+
# setting this to true communicates to tools that this resource should
|
233
|
+
# adhere to declarative-friendly expectations.
|
234
|
+
#
|
235
|
+
# Note: This is used by the API linter (linter.aip.dev) to enable
|
236
|
+
# additional checks.
|
237
|
+
DECLARATIVE_FRIENDLY = 1
|
238
|
+
end
|
214
239
|
end
|
215
240
|
|
216
241
|
# Defines a proto annotation that describes a string field that refers to
|
@@ -226,6 +251,17 @@ module Google
|
|
226
251
|
# type: "pubsub.googleapis.com/Topic"
|
227
252
|
# }];
|
228
253
|
# }
|
254
|
+
#
|
255
|
+
# Occasionally, a field may reference an arbitrary resource. In this case,
|
256
|
+
# APIs use the special value * in their resource reference.
|
257
|
+
#
|
258
|
+
# Example:
|
259
|
+
#
|
260
|
+
# message GetIamPolicyRequest {
|
261
|
+
# string resource = 2 [(google.api.resource_reference) = {
|
262
|
+
# type: "*"
|
263
|
+
# }];
|
264
|
+
# }
|
229
265
|
# @!attribute [rw] child_type
|
230
266
|
# @return [::String]
|
231
267
|
# The resource type of a child collection that the annotated field
|
@@ -234,11 +270,11 @@ module Google
|
|
234
270
|
#
|
235
271
|
# Example:
|
236
272
|
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
241
|
-
#
|
273
|
+
# message ListLogEntriesRequest {
|
274
|
+
# string parent = 1 [(google.api.resource_reference) = {
|
275
|
+
# child_type: "logging.googleapis.com/LogEntry"
|
276
|
+
# };
|
277
|
+
# }
|
242
278
|
class ResourceReference
|
243
279
|
include ::Google::Protobuf::MessageExts
|
244
280
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-build-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -203,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
203
|
- !ruby/object:Gem::Version
|
204
204
|
version: '0'
|
205
205
|
requirements: []
|
206
|
-
rubygems_version: 3.
|
206
|
+
rubygems_version: 3.2.6
|
207
207
|
signing_key:
|
208
208
|
specification_version: 4
|
209
209
|
summary: API Client library for the Cloud Build V1 API
|