google-cloud-build-v1 0.1.3 → 0.5.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/LICENSE.md +188 -190
- data/README.md +66 -2
- data/lib/google/cloud/build/v1.rb +3 -0
- data/lib/google/cloud/build/v1/cloud_build.rb +1 -0
- data/lib/google/cloud/build/v1/cloud_build/client.rb +164 -52
- data/lib/google/cloud/build/v1/cloud_build/operations.rb +95 -10
- data/lib/google/cloud/build/v1/cloud_build/paths.rb +179 -0
- data/lib/google/cloud/build/v1/version.rb +1 -1
- data/lib/google/devtools/cloudbuild/v1/cloudbuild_pb.rb +43 -0
- data/lib/google/devtools/cloudbuild/v1/cloudbuild_services_pb.rb +19 -16
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/api/httpbody.rb +75 -0
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb +189 -21
- data/proto_docs/google/longrunning/operations.rb +17 -3
- data/proto_docs/google/protobuf/any.rb +5 -2
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- metadata +14 -9
@@ -0,0 +1,179 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Build
|
23
|
+
module V1
|
24
|
+
module CloudBuild
|
25
|
+
# Path helper methods for the CloudBuild API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Build resource string.
|
29
|
+
#
|
30
|
+
# @overload build_path(project:, build:)
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/builds/{build}`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param build [String]
|
37
|
+
#
|
38
|
+
# @overload build_path(project:, location:, build:)
|
39
|
+
# The resource will be in the following format:
|
40
|
+
#
|
41
|
+
# `projects/{project}/locations/{location}/builds/{build}`
|
42
|
+
#
|
43
|
+
# @param project [String]
|
44
|
+
# @param location [String]
|
45
|
+
# @param build [String]
|
46
|
+
#
|
47
|
+
# @return [::String]
|
48
|
+
def build_path **args
|
49
|
+
resources = {
|
50
|
+
"build:project" => (proc do |project:, build:|
|
51
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
52
|
+
|
53
|
+
"projects/#{project}/builds/#{build}"
|
54
|
+
end),
|
55
|
+
"build:location:project" => (proc do |project:, location:, build:|
|
56
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
57
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
58
|
+
|
59
|
+
"projects/#{project}/locations/#{location}/builds/#{build}"
|
60
|
+
end)
|
61
|
+
}
|
62
|
+
|
63
|
+
resource = resources[args.keys.sort.join(":")]
|
64
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
65
|
+
resource.call(**args)
|
66
|
+
end
|
67
|
+
|
68
|
+
##
|
69
|
+
# Create a fully-qualified BuildTrigger resource string.
|
70
|
+
#
|
71
|
+
# The resource will be in the following format:
|
72
|
+
#
|
73
|
+
# `projects/{project}/triggers/{trigger}`
|
74
|
+
#
|
75
|
+
# @param project [String]
|
76
|
+
# @param trigger [String]
|
77
|
+
#
|
78
|
+
# @return [::String]
|
79
|
+
def build_trigger_path project:, trigger:
|
80
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
81
|
+
|
82
|
+
"projects/#{project}/triggers/#{trigger}"
|
83
|
+
end
|
84
|
+
|
85
|
+
##
|
86
|
+
# Create a fully-qualified CryptoKey resource string.
|
87
|
+
#
|
88
|
+
# The resource will be in the following format:
|
89
|
+
#
|
90
|
+
# `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}`
|
91
|
+
#
|
92
|
+
# @param project [String]
|
93
|
+
# @param location [String]
|
94
|
+
# @param keyring [String]
|
95
|
+
# @param key [String]
|
96
|
+
#
|
97
|
+
# @return [::String]
|
98
|
+
def crypto_key_path project:, location:, keyring:, key:
|
99
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
100
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
101
|
+
raise ::ArgumentError, "keyring cannot contain /" if keyring.to_s.include? "/"
|
102
|
+
|
103
|
+
"projects/#{project}/locations/#{location}/keyRings/#{keyring}/cryptoKeys/#{key}"
|
104
|
+
end
|
105
|
+
|
106
|
+
##
|
107
|
+
# Create a fully-qualified Location resource string.
|
108
|
+
#
|
109
|
+
# The resource will be in the following format:
|
110
|
+
#
|
111
|
+
# `projects/{project}/locations/{location}`
|
112
|
+
#
|
113
|
+
# @param project [String]
|
114
|
+
# @param location [String]
|
115
|
+
#
|
116
|
+
# @return [::String]
|
117
|
+
def location_path project:, location:
|
118
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
119
|
+
|
120
|
+
"projects/#{project}/locations/#{location}"
|
121
|
+
end
|
122
|
+
|
123
|
+
##
|
124
|
+
# Create a fully-qualified Project resource string.
|
125
|
+
#
|
126
|
+
# The resource will be in the following format:
|
127
|
+
#
|
128
|
+
# `projects/{project}`
|
129
|
+
#
|
130
|
+
# @param project [String]
|
131
|
+
#
|
132
|
+
# @return [::String]
|
133
|
+
def project_path project:
|
134
|
+
"projects/#{project}"
|
135
|
+
end
|
136
|
+
|
137
|
+
##
|
138
|
+
# Create a fully-qualified SecretVersion resource string.
|
139
|
+
#
|
140
|
+
# The resource will be in the following format:
|
141
|
+
#
|
142
|
+
# `projects/{project}/secrets/{secret}/versions/{version}`
|
143
|
+
#
|
144
|
+
# @param project [String]
|
145
|
+
# @param secret [String]
|
146
|
+
# @param version [String]
|
147
|
+
#
|
148
|
+
# @return [::String]
|
149
|
+
def secret_version_path project:, secret:, version:
|
150
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
151
|
+
raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/"
|
152
|
+
|
153
|
+
"projects/#{project}/secrets/#{secret}/versions/#{version}"
|
154
|
+
end
|
155
|
+
|
156
|
+
##
|
157
|
+
# Create a fully-qualified ServiceAccount resource string.
|
158
|
+
#
|
159
|
+
# The resource will be in the following format:
|
160
|
+
#
|
161
|
+
# `projects/{project}/serviceAccounts/{service_account}`
|
162
|
+
#
|
163
|
+
# @param project [String]
|
164
|
+
# @param service_account [String]
|
165
|
+
#
|
166
|
+
# @return [::String]
|
167
|
+
def service_account_path project:, service_account:
|
168
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
169
|
+
|
170
|
+
"projects/#{project}/serviceAccounts/#{service_account}"
|
171
|
+
end
|
172
|
+
|
173
|
+
extend self
|
174
|
+
end
|
175
|
+
end
|
176
|
+
end
|
177
|
+
end
|
178
|
+
end
|
179
|
+
end
|
@@ -6,13 +6,17 @@ require 'google/protobuf'
|
|
6
6
|
require 'google/api/annotations_pb'
|
7
7
|
require 'google/api/client_pb'
|
8
8
|
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/api/httpbody_pb'
|
10
|
+
require 'google/api/resource_pb'
|
9
11
|
require 'google/longrunning/operations_pb'
|
10
12
|
require 'google/protobuf/duration_pb'
|
11
13
|
require 'google/protobuf/empty_pb'
|
14
|
+
require 'google/protobuf/field_mask_pb'
|
12
15
|
require 'google/protobuf/timestamp_pb'
|
13
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
17
|
add_file("google/devtools/cloudbuild/v1/cloudbuild.proto", :syntax => :proto3) do
|
15
18
|
add_message "google.devtools.cloudbuild.v1.RetryBuildRequest" do
|
19
|
+
optional :name, :string, 3
|
16
20
|
optional :project_id, :string, 1
|
17
21
|
optional :id, :string, 2
|
18
22
|
end
|
@@ -81,6 +85,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
81
85
|
repeated :file_hash, :message, 2, "google.devtools.cloudbuild.v1.FileHashes"
|
82
86
|
end
|
83
87
|
add_message "google.devtools.cloudbuild.v1.Build" do
|
88
|
+
optional :name, :string, 45
|
84
89
|
optional :id, :string, 1
|
85
90
|
optional :project_id, :string, 16
|
86
91
|
optional :status, :enum, 2, "google.devtools.cloudbuild.v1.Build.Status"
|
@@ -104,6 +109,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
104
109
|
repeated :tags, :string, 31
|
105
110
|
repeated :secrets, :message, 32, "google.devtools.cloudbuild.v1.Secret"
|
106
111
|
map :timing, :string, :message, 33, "google.devtools.cloudbuild.v1.TimeSpan"
|
112
|
+
optional :service_account, :string, 42
|
113
|
+
optional :available_secrets, :message, 47, "google.devtools.cloudbuild.v1.Secrets"
|
107
114
|
end
|
108
115
|
add_enum "google.devtools.cloudbuild.v1.Build.Status" do
|
109
116
|
value :STATUS_UNKNOWN, 0
|
@@ -149,19 +156,34 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
149
156
|
value :SHA256, 1
|
150
157
|
value :MD5, 2
|
151
158
|
end
|
159
|
+
add_message "google.devtools.cloudbuild.v1.Secrets" do
|
160
|
+
repeated :secret_manager, :message, 1, "google.devtools.cloudbuild.v1.SecretManagerSecret"
|
161
|
+
repeated :inline, :message, 2, "google.devtools.cloudbuild.v1.InlineSecret"
|
162
|
+
end
|
163
|
+
add_message "google.devtools.cloudbuild.v1.InlineSecret" do
|
164
|
+
optional :kms_key_name, :string, 1
|
165
|
+
map :env_map, :string, :bytes, 2
|
166
|
+
end
|
167
|
+
add_message "google.devtools.cloudbuild.v1.SecretManagerSecret" do
|
168
|
+
optional :version_name, :string, 1
|
169
|
+
optional :env, :string, 2
|
170
|
+
end
|
152
171
|
add_message "google.devtools.cloudbuild.v1.Secret" do
|
153
172
|
optional :kms_key_name, :string, 1
|
154
173
|
map :secret_env, :string, :bytes, 3
|
155
174
|
end
|
156
175
|
add_message "google.devtools.cloudbuild.v1.CreateBuildRequest" do
|
176
|
+
optional :parent, :string, 4
|
157
177
|
optional :project_id, :string, 1
|
158
178
|
optional :build, :message, 2, "google.devtools.cloudbuild.v1.Build"
|
159
179
|
end
|
160
180
|
add_message "google.devtools.cloudbuild.v1.GetBuildRequest" do
|
181
|
+
optional :name, :string, 4
|
161
182
|
optional :project_id, :string, 1
|
162
183
|
optional :id, :string, 2
|
163
184
|
end
|
164
185
|
add_message "google.devtools.cloudbuild.v1.ListBuildsRequest" do
|
186
|
+
optional :parent, :string, 9
|
165
187
|
optional :project_id, :string, 1
|
166
188
|
optional :page_size, :int32, 2
|
167
189
|
optional :page_token, :string, 3
|
@@ -172,6 +194,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
172
194
|
optional :next_page_token, :string, 2
|
173
195
|
end
|
174
196
|
add_message "google.devtools.cloudbuild.v1.CancelBuildRequest" do
|
197
|
+
optional :name, :string, 4
|
175
198
|
optional :project_id, :string, 1
|
176
199
|
optional :id, :string, 2
|
177
200
|
end
|
@@ -211,6 +234,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
211
234
|
add_enum "google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl" do
|
212
235
|
value :COMMENTS_DISABLED, 0
|
213
236
|
value :COMMENTS_ENABLED, 1
|
237
|
+
value :COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY, 2
|
214
238
|
end
|
215
239
|
add_message "google.devtools.cloudbuild.v1.PushFilter" do
|
216
240
|
optional :invert_regex, :bool, 4
|
@@ -251,6 +275,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
251
275
|
optional :machine_type, :enum, 3, "google.devtools.cloudbuild.v1.BuildOptions.MachineType"
|
252
276
|
optional :disk_size_gb, :int64, 6
|
253
277
|
optional :substitution_option, :enum, 4, "google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption"
|
278
|
+
optional :dynamic_substitutions, :bool, 17
|
254
279
|
optional :log_streaming_option, :enum, 5, "google.devtools.cloudbuild.v1.BuildOptions.LogStreamingOption"
|
255
280
|
optional :worker_pool, :string, 7
|
256
281
|
optional :logging, :enum, 11, "google.devtools.cloudbuild.v1.BuildOptions.LoggingMode"
|
@@ -266,6 +291,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
266
291
|
value :UNSPECIFIED, 0
|
267
292
|
value :N1_HIGHCPU_8, 1
|
268
293
|
value :N1_HIGHCPU_32, 2
|
294
|
+
value :E2_HIGHCPU_8, 5
|
295
|
+
value :E2_HIGHCPU_32, 6
|
269
296
|
end
|
270
297
|
add_enum "google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption" do
|
271
298
|
value :MUST_MATCH, 0
|
@@ -280,6 +307,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
280
307
|
value :LOGGING_UNSPECIFIED, 0
|
281
308
|
value :LEGACY, 1
|
282
309
|
value :GCS_ONLY, 2
|
310
|
+
value :STACKDRIVER_ONLY, 3
|
311
|
+
value :CLOUD_LOGGING_ONLY, 5
|
312
|
+
value :NONE, 4
|
313
|
+
end
|
314
|
+
add_message "google.devtools.cloudbuild.v1.ReceiveTriggerWebhookRequest" do
|
315
|
+
optional :body, :message, 1, "google.api.HttpBody"
|
316
|
+
optional :project_id, :string, 2
|
317
|
+
optional :trigger, :string, 3
|
318
|
+
optional :secret, :string, 4
|
319
|
+
end
|
320
|
+
add_message "google.devtools.cloudbuild.v1.ReceiveTriggerWebhookResponse" do
|
283
321
|
end
|
284
322
|
add_message "google.devtools.cloudbuild.v1.WorkerPool" do
|
285
323
|
optional :name, :string, 14
|
@@ -365,6 +403,9 @@ module Google
|
|
365
403
|
FileHashes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.FileHashes").msgclass
|
366
404
|
Hash = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Hash").msgclass
|
367
405
|
Hash::HashType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Hash.HashType").enummodule
|
406
|
+
Secrets = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Secrets").msgclass
|
407
|
+
InlineSecret = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.InlineSecret").msgclass
|
408
|
+
SecretManagerSecret = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.SecretManagerSecret").msgclass
|
368
409
|
Secret = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Secret").msgclass
|
369
410
|
CreateBuildRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.CreateBuildRequest").msgclass
|
370
411
|
GetBuildRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.GetBuildRequest").msgclass
|
@@ -388,6 +429,8 @@ module Google
|
|
388
429
|
BuildOptions::SubstitutionOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildOptions.SubstitutionOption").enummodule
|
389
430
|
BuildOptions::LogStreamingOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildOptions.LogStreamingOption").enummodule
|
390
431
|
BuildOptions::LoggingMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildOptions.LoggingMode").enummodule
|
432
|
+
ReceiveTriggerWebhookRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ReceiveTriggerWebhookRequest").msgclass
|
433
|
+
ReceiveTriggerWebhookResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ReceiveTriggerWebhookResponse").msgclass
|
391
434
|
WorkerPool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.WorkerPool").msgclass
|
392
435
|
WorkerPool::Region = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.WorkerPool.Region").enummodule
|
393
436
|
WorkerPool::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.WorkerPool.Status").enummodule
|
@@ -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,52 @@ 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
|
+
# ReceiveTriggerWebhook [Experimental] is called when the API receives a
|
112
|
+
# webhook request targeted at a specific trigger.
|
113
|
+
rpc :ReceiveTriggerWebhook, ::Google::Cloud::Build::V1::ReceiveTriggerWebhookRequest, ::Google::Cloud::Build::V1::ReceiveTriggerWebhookResponse
|
111
114
|
# Creates a `WorkerPool` to run the builds, and returns the new worker pool.
|
112
115
|
#
|
113
116
|
# This API is experimental.
|
114
|
-
rpc :CreateWorkerPool, Google::Cloud::Build::V1::CreateWorkerPoolRequest, Google::Cloud::Build::V1::WorkerPool
|
117
|
+
rpc :CreateWorkerPool, ::Google::Cloud::Build::V1::CreateWorkerPoolRequest, ::Google::Cloud::Build::V1::WorkerPool
|
115
118
|
# Returns information about a `WorkerPool`.
|
116
119
|
#
|
117
120
|
# This API is experimental.
|
118
|
-
rpc :GetWorkerPool, Google::Cloud::Build::V1::GetWorkerPoolRequest, Google::Cloud::Build::V1::WorkerPool
|
121
|
+
rpc :GetWorkerPool, ::Google::Cloud::Build::V1::GetWorkerPoolRequest, ::Google::Cloud::Build::V1::WorkerPool
|
119
122
|
# Deletes a `WorkerPool` by its project ID and WorkerPool name.
|
120
123
|
#
|
121
124
|
# This API is experimental.
|
122
|
-
rpc :DeleteWorkerPool, Google::Cloud::Build::V1::DeleteWorkerPoolRequest, Google::Protobuf::Empty
|
125
|
+
rpc :DeleteWorkerPool, ::Google::Cloud::Build::V1::DeleteWorkerPoolRequest, ::Google::Protobuf::Empty
|
123
126
|
# Update a `WorkerPool`.
|
124
127
|
#
|
125
128
|
# This API is experimental.
|
126
|
-
rpc :UpdateWorkerPool, Google::Cloud::Build::V1::UpdateWorkerPoolRequest, Google::Cloud::Build::V1::WorkerPool
|
129
|
+
rpc :UpdateWorkerPool, ::Google::Cloud::Build::V1::UpdateWorkerPoolRequest, ::Google::Cloud::Build::V1::WorkerPool
|
127
130
|
# List project's `WorkerPools`.
|
128
131
|
#
|
129
132
|
# This API is experimental.
|
130
|
-
rpc :ListWorkerPools, Google::Cloud::Build::V1::ListWorkerPoolsRequest, Google::Cloud::Build::V1::ListWorkerPoolsResponse
|
133
|
+
rpc :ListWorkerPools, ::Google::Cloud::Build::V1::ListWorkerPoolsRequest, ::Google::Cloud::Build::V1::ListWorkerPoolsResponse
|
131
134
|
end
|
132
135
|
|
133
136
|
Stub = Service.rpc_stub_class
|
@@ -54,6 +54,12 @@ module Google
|
|
54
54
|
# This indicates that the field may be set once in a request to create a
|
55
55
|
# resource, but may not be changed thereafter.
|
56
56
|
IMMUTABLE = 5
|
57
|
+
|
58
|
+
# Denotes that a (repeated) field is an unordered list.
|
59
|
+
# This indicates that the service may provide the elements of the list
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
|
+
# provided. Additionally, the list's order may or may not be stable.
|
62
|
+
UNORDERED_LIST = 6
|
57
63
|
end
|
58
64
|
end
|
59
65
|
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Api
|
22
|
+
# Message that represents an arbitrary HTTP body. It should only be used for
|
23
|
+
# payload formats that can't be represented as JSON, such as raw binary or
|
24
|
+
# an HTML page.
|
25
|
+
#
|
26
|
+
#
|
27
|
+
# This message can be used both in streaming and non-streaming API methods in
|
28
|
+
# the request as well as the response.
|
29
|
+
#
|
30
|
+
# It can be used as a top-level request field, which is convenient if one
|
31
|
+
# wants to extract parameters from either the URL or HTTP template into the
|
32
|
+
# request fields and also want access to the raw HTTP body.
|
33
|
+
#
|
34
|
+
# Example:
|
35
|
+
#
|
36
|
+
# message GetResourceRequest {
|
37
|
+
# // A unique request id.
|
38
|
+
# string request_id = 1;
|
39
|
+
#
|
40
|
+
# // The raw HTTP body is bound to this field.
|
41
|
+
# google.api.HttpBody http_body = 2;
|
42
|
+
# }
|
43
|
+
#
|
44
|
+
# service ResourceService {
|
45
|
+
# rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
|
46
|
+
# rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty);
|
47
|
+
# }
|
48
|
+
#
|
49
|
+
# Example with streaming methods:
|
50
|
+
#
|
51
|
+
# service CaldavService {
|
52
|
+
# rpc GetCalendar(stream google.api.HttpBody)
|
53
|
+
# returns (stream google.api.HttpBody);
|
54
|
+
# rpc UpdateCalendar(stream google.api.HttpBody)
|
55
|
+
# returns (stream google.api.HttpBody);
|
56
|
+
# }
|
57
|
+
#
|
58
|
+
# Use of this type only changes how the request and response bodies are
|
59
|
+
# handled, all other features will continue to work unchanged.
|
60
|
+
# @!attribute [rw] content_type
|
61
|
+
# @return [::String]
|
62
|
+
# The HTTP Content-Type string representing the content type of the body.
|
63
|
+
# @!attribute [rw] data
|
64
|
+
# @return [::String]
|
65
|
+
# HTTP body binary data.
|
66
|
+
# @!attribute [rw] extensions
|
67
|
+
# @return [::Array<::Google::Protobuf::Any>]
|
68
|
+
# Application specific response metadata. Must be set in the first response
|
69
|
+
# for streaming APIs.
|
70
|
+
class HttpBody
|
71
|
+
include ::Google::Protobuf::MessageExts
|
72
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|