google-cloud-build-v1 0.7.1 → 0.8.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 +5 -5
- data/README.md +1 -1
- data/lib/google/cloud/build/v1/cloud_build/client.rb +32 -35
- data/lib/google/cloud/build/v1/cloud_build/operations.rb +1 -1
- data/lib/google/cloud/build/v1/cloud_build/paths.rb +31 -7
- data/lib/google/cloud/build/v1/version.rb +1 -1
- data/lib/google/devtools/cloudbuild/v1/cloudbuild_pb.rb +35 -0
- data/proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb +108 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fd56485a3fdc9f9215f05e1d3635fb10f2ad27f8899f35170daeb98d0f26fae
|
4
|
+
data.tar.gz: f8b547de79d4f2a7a7ef0d8d8af57623e32b434c8d225dc4c8d2bf9e838e8943
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3173ebb82d6622a541e3bed982214c872637505a368b38928cc791d90eb6f6faedd8f936c26a0864ad0dc116408e857f82d5a347af505b1bd7bb072ed67bc4a
|
7
|
+
data.tar.gz: ffe588eee00a5e7e65b4743da9afa681c40f09a68230694441834a9a45febfedc25c31d3ee28f6d078de4dd45430f7733ccb34bb63edc90ccaef45c76f7b1e7d
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-build-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::Build::V1::CloudBuild::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `CLOUD_BUILD_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `CLOUD_BUILD_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/build/v1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/build/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::Build::V1::CloudBuild::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::Build::V1::CreateBuildRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.create_build request
|
38
38
|
```
|
39
39
|
|
@@ -76,18 +76,12 @@ module Google
|
|
76
76
|
|
77
77
|
default_config.rpcs.get_build.timeout = 600.0
|
78
78
|
default_config.rpcs.get_build.retry_policy = {
|
79
|
-
initial_delay: 0.1,
|
80
|
-
max_delay: 60.0,
|
81
|
-
multiplier: 1.3,
|
82
|
-
retry_codes: [14, 4]
|
79
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
83
80
|
}
|
84
81
|
|
85
82
|
default_config.rpcs.list_builds.timeout = 600.0
|
86
83
|
default_config.rpcs.list_builds.retry_policy = {
|
87
|
-
initial_delay: 0.1,
|
88
|
-
max_delay: 60.0,
|
89
|
-
multiplier: 1.3,
|
90
|
-
retry_codes: [14, 4]
|
84
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
91
85
|
}
|
92
86
|
|
93
87
|
default_config.rpcs.cancel_build.timeout = 600.0
|
@@ -98,26 +92,17 @@ module Google
|
|
98
92
|
|
99
93
|
default_config.rpcs.get_build_trigger.timeout = 600.0
|
100
94
|
default_config.rpcs.get_build_trigger.retry_policy = {
|
101
|
-
initial_delay: 0.1,
|
102
|
-
max_delay: 60.0,
|
103
|
-
multiplier: 1.3,
|
104
|
-
retry_codes: [14, 4]
|
95
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
105
96
|
}
|
106
97
|
|
107
98
|
default_config.rpcs.list_build_triggers.timeout = 600.0
|
108
99
|
default_config.rpcs.list_build_triggers.retry_policy = {
|
109
|
-
initial_delay: 0.1,
|
110
|
-
max_delay: 60.0,
|
111
|
-
multiplier: 1.3,
|
112
|
-
retry_codes: [14, 4]
|
100
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
113
101
|
}
|
114
102
|
|
115
103
|
default_config.rpcs.delete_build_trigger.timeout = 600.0
|
116
104
|
default_config.rpcs.delete_build_trigger.retry_policy = {
|
117
|
-
initial_delay: 0.1,
|
118
|
-
max_delay: 60.0,
|
119
|
-
multiplier: 1.3,
|
120
|
-
retry_codes: [14, 4]
|
105
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
121
106
|
}
|
122
107
|
|
123
108
|
default_config.rpcs.update_build_trigger.timeout = 600.0
|
@@ -128,10 +113,7 @@ module Google
|
|
128
113
|
|
129
114
|
default_config.rpcs.get_worker_pool.timeout = 600.0
|
130
115
|
default_config.rpcs.get_worker_pool.retry_policy = {
|
131
|
-
initial_delay: 0.1,
|
132
|
-
max_delay: 60.0,
|
133
|
-
multiplier: 1.3,
|
134
|
-
retry_codes: [14, 4]
|
116
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
135
117
|
}
|
136
118
|
|
137
119
|
default_config.rpcs.delete_worker_pool.timeout = 600.0
|
@@ -140,10 +122,7 @@ module Google
|
|
140
122
|
|
141
123
|
default_config.rpcs.list_worker_pools.timeout = 600.0
|
142
124
|
default_config.rpcs.list_worker_pools.retry_policy = {
|
143
|
-
initial_delay: 0.1,
|
144
|
-
max_delay: 60.0,
|
145
|
-
multiplier: 1.3,
|
146
|
-
retry_codes: [14, 4]
|
125
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
147
126
|
}
|
148
127
|
|
149
128
|
default_config
|
@@ -214,7 +193,7 @@ module Google
|
|
214
193
|
!@config.endpoint.split(".").first.include?("-")
|
215
194
|
credentials ||= Credentials.default scope: @config.scope,
|
216
195
|
enable_self_signed_jwt: enable_self_signed_jwt
|
217
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
196
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
218
197
|
credentials = Credentials.new credentials, scope: @config.scope
|
219
198
|
end
|
220
199
|
@quota_project_id = @config.quota_project
|
@@ -667,11 +646,14 @@ module Google
|
|
667
646
|
# @param options [::Gapic::CallOptions, ::Hash]
|
668
647
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
669
648
|
#
|
670
|
-
# @overload create_build_trigger(project_id: nil, trigger: nil)
|
649
|
+
# @overload create_build_trigger(parent: nil, project_id: nil, trigger: nil)
|
671
650
|
# Pass arguments to `create_build_trigger` via keyword arguments. Note that at
|
672
651
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
673
652
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
674
653
|
#
|
654
|
+
# @param parent [::String]
|
655
|
+
# The parent resource where this trigger will be created.
|
656
|
+
# Format: `projects/{project}/locations/{location}`
|
675
657
|
# @param project_id [::String]
|
676
658
|
# Required. ID of the project for which to configure automatic builds.
|
677
659
|
# @param trigger [::Google::Cloud::Build::V1::BuildTrigger, ::Hash]
|
@@ -737,11 +719,14 @@ module Google
|
|
737
719
|
# @param options [::Gapic::CallOptions, ::Hash]
|
738
720
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
739
721
|
#
|
740
|
-
# @overload get_build_trigger(project_id: nil, trigger_id: nil)
|
722
|
+
# @overload get_build_trigger(name: nil, project_id: nil, trigger_id: nil)
|
741
723
|
# Pass arguments to `get_build_trigger` via keyword arguments. Note that at
|
742
724
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
743
725
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
744
726
|
#
|
727
|
+
# @param name [::String]
|
728
|
+
# The name of the `Trigger` to retrieve.
|
729
|
+
# Format: `projects/{project}/locations/{location}/triggers/{trigger}`
|
745
730
|
# @param project_id [::String]
|
746
731
|
# Required. ID of the project that owns the trigger.
|
747
732
|
# @param trigger_id [::String]
|
@@ -808,11 +793,14 @@ module Google
|
|
808
793
|
# @param options [::Gapic::CallOptions, ::Hash]
|
809
794
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
810
795
|
#
|
811
|
-
# @overload list_build_triggers(project_id: nil, page_size: nil, page_token: nil)
|
796
|
+
# @overload list_build_triggers(parent: nil, project_id: nil, page_size: nil, page_token: nil)
|
812
797
|
# Pass arguments to `list_build_triggers` via keyword arguments. Note that at
|
813
798
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
814
799
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
815
800
|
#
|
801
|
+
# @param parent [::String]
|
802
|
+
# The parent of the collection of `Triggers`.
|
803
|
+
# Format: `projects/{project}/locations/{location}`
|
816
804
|
# @param project_id [::String]
|
817
805
|
# Required. ID of the project for which to list BuildTriggers.
|
818
806
|
# @param page_size [::Integer]
|
@@ -881,11 +869,14 @@ module Google
|
|
881
869
|
# @param options [::Gapic::CallOptions, ::Hash]
|
882
870
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
883
871
|
#
|
884
|
-
# @overload delete_build_trigger(project_id: nil, trigger_id: nil)
|
872
|
+
# @overload delete_build_trigger(name: nil, project_id: nil, trigger_id: nil)
|
885
873
|
# Pass arguments to `delete_build_trigger` via keyword arguments. Note that at
|
886
874
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
887
875
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
888
876
|
#
|
877
|
+
# @param name [::String]
|
878
|
+
# The name of the `Trigger` to delete.
|
879
|
+
# Format: `projects/{project}/locations/{location}/triggers/{trigger}`
|
889
880
|
# @param project_id [::String]
|
890
881
|
# Required. ID of the project that owns the trigger.
|
891
882
|
# @param trigger_id [::String]
|
@@ -1023,11 +1014,14 @@ module Google
|
|
1023
1014
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1024
1015
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1025
1016
|
#
|
1026
|
-
# @overload run_build_trigger(project_id: nil, trigger_id: nil, source: nil)
|
1017
|
+
# @overload run_build_trigger(name: nil, project_id: nil, trigger_id: nil, source: nil)
|
1027
1018
|
# Pass arguments to `run_build_trigger` via keyword arguments. Note that at
|
1028
1019
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1029
1020
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1030
1021
|
#
|
1022
|
+
# @param name [::String]
|
1023
|
+
# The name of the `Trigger` to run.
|
1024
|
+
# Format: `projects/{project}/locations/{location}/triggers/{trigger}`
|
1031
1025
|
# @param project_id [::String]
|
1032
1026
|
# Required. ID of the project.
|
1033
1027
|
# @param trigger_id [::String]
|
@@ -1096,11 +1090,14 @@ module Google
|
|
1096
1090
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1097
1091
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1098
1092
|
#
|
1099
|
-
# @overload receive_trigger_webhook(body: nil, project_id: nil, trigger: nil, secret: nil)
|
1093
|
+
# @overload receive_trigger_webhook(name: nil, body: nil, project_id: nil, trigger: nil, secret: nil)
|
1100
1094
|
# Pass arguments to `receive_trigger_webhook` via keyword arguments. Note that at
|
1101
1095
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1102
1096
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1103
1097
|
#
|
1098
|
+
# @param name [::String]
|
1099
|
+
# The name of the `ReceiveTriggerWebhook` to retrieve.
|
1100
|
+
# Format: `projects/{project}/locations/{location}/triggers/{trigger}`
|
1104
1101
|
# @param body [::Google::Api::HttpBody, ::Hash]
|
1105
1102
|
# HTTP request body.
|
1106
1103
|
# @param project_id [::String]
|
@@ -82,7 +82,7 @@ module Google
|
|
82
82
|
# Create credentials
|
83
83
|
credentials = @config.credentials
|
84
84
|
credentials ||= Credentials.default scope: @config.scope
|
85
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
85
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
86
86
|
credentials = Credentials.new credentials, scope: @config.scope
|
87
87
|
end
|
88
88
|
@quota_project_id = @config.quota_project
|
@@ -68,18 +68,42 @@ module Google
|
|
68
68
|
##
|
69
69
|
# Create a fully-qualified BuildTrigger resource string.
|
70
70
|
#
|
71
|
-
#
|
71
|
+
# @overload build_trigger_path(project:, trigger:)
|
72
|
+
# The resource will be in the following format:
|
72
73
|
#
|
73
|
-
#
|
74
|
+
# `projects/{project}/triggers/{trigger}`
|
74
75
|
#
|
75
|
-
#
|
76
|
-
#
|
76
|
+
# @param project [String]
|
77
|
+
# @param trigger [String]
|
78
|
+
#
|
79
|
+
# @overload build_trigger_path(project:, location:, trigger:)
|
80
|
+
# The resource will be in the following format:
|
81
|
+
#
|
82
|
+
# `projects/{project}/locations/{location}/triggers/{trigger}`
|
83
|
+
#
|
84
|
+
# @param project [String]
|
85
|
+
# @param location [String]
|
86
|
+
# @param trigger [String]
|
77
87
|
#
|
78
88
|
# @return [::String]
|
79
|
-
def build_trigger_path
|
80
|
-
|
89
|
+
def build_trigger_path **args
|
90
|
+
resources = {
|
91
|
+
"project:trigger" => (proc do |project:, trigger:|
|
92
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
93
|
+
|
94
|
+
"projects/#{project}/triggers/#{trigger}"
|
95
|
+
end),
|
96
|
+
"location:project:trigger" => (proc do |project:, location:, trigger:|
|
97
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
98
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
81
99
|
|
82
|
-
|
100
|
+
"projects/#{project}/locations/#{location}/triggers/#{trigger}"
|
101
|
+
end)
|
102
|
+
}
|
103
|
+
|
104
|
+
resource = resources[args.keys.sort.join(":")]
|
105
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
106
|
+
resource.call(**args)
|
83
107
|
end
|
84
108
|
|
85
109
|
##
|
@@ -21,6 +21,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
21
21
|
optional :id, :string, 2
|
22
22
|
end
|
23
23
|
add_message "google.devtools.cloudbuild.v1.RunBuildTriggerRequest" do
|
24
|
+
optional :name, :string, 4
|
24
25
|
optional :project_id, :string, 1
|
25
26
|
optional :trigger_id, :string, 2
|
26
27
|
optional :source, :message, 3, "google.devtools.cloudbuild.v1.RepoSource"
|
@@ -117,6 +118,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
117
118
|
map :timing, :string, :message, 33, "google.devtools.cloudbuild.v1.TimeSpan"
|
118
119
|
optional :service_account, :string, 42
|
119
120
|
optional :available_secrets, :message, 47, "google.devtools.cloudbuild.v1.Secrets"
|
121
|
+
repeated :warnings, :message, 49, "google.devtools.cloudbuild.v1.Build.Warning"
|
122
|
+
end
|
123
|
+
add_message "google.devtools.cloudbuild.v1.Build.Warning" do
|
124
|
+
optional :text, :string, 1
|
125
|
+
optional :priority, :enum, 2, "google.devtools.cloudbuild.v1.Build.Warning.Priority"
|
126
|
+
end
|
127
|
+
add_enum "google.devtools.cloudbuild.v1.Build.Warning.Priority" do
|
128
|
+
value :PRIORITY_UNSPECIFIED, 0
|
129
|
+
value :INFO, 1
|
130
|
+
value :WARNING, 2
|
131
|
+
value :ALERT, 3
|
120
132
|
end
|
121
133
|
add_enum "google.devtools.cloudbuild.v1.Build.Status" do
|
122
134
|
value :STATUS_UNKNOWN, 0
|
@@ -206,6 +218,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
206
218
|
optional :id, :string, 2
|
207
219
|
end
|
208
220
|
add_message "google.devtools.cloudbuild.v1.BuildTrigger" do
|
221
|
+
optional :resource_name, :string, 34
|
209
222
|
optional :id, :string, 1
|
210
223
|
optional :description, :string, 10
|
211
224
|
optional :name, :string, 21
|
@@ -213,6 +226,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
213
226
|
optional :trigger_template, :message, 7, "google.devtools.cloudbuild.v1.RepoSource"
|
214
227
|
optional :github, :message, 13, "google.devtools.cloudbuild.v1.GitHubEventsConfig"
|
215
228
|
optional :pubsub_config, :message, 29, "google.devtools.cloudbuild.v1.PubsubConfig"
|
229
|
+
optional :webhook_config, :message, 31, "google.devtools.cloudbuild.v1.WebhookConfig"
|
216
230
|
optional :create_time, :message, 5, "google.protobuf.Timestamp"
|
217
231
|
optional :disabled, :bool, 9
|
218
232
|
map :substitutions, :string, :string, 11
|
@@ -220,6 +234,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
220
234
|
repeated :included_files, :string, 16
|
221
235
|
optional :filter, :string, 30
|
222
236
|
oneof :build_template do
|
237
|
+
optional :autodetect, :bool, 18
|
223
238
|
optional :build, :message, 4, "google.devtools.cloudbuild.v1.Build"
|
224
239
|
optional :filename, :string, 8
|
225
240
|
end
|
@@ -246,6 +261,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
246
261
|
value :TOPIC_DELETED, 3
|
247
262
|
value :SUBSCRIPTION_MISCONFIGURED, 4
|
248
263
|
end
|
264
|
+
add_message "google.devtools.cloudbuild.v1.WebhookConfig" do
|
265
|
+
optional :state, :enum, 4, "google.devtools.cloudbuild.v1.WebhookConfig.State"
|
266
|
+
oneof :auth_method do
|
267
|
+
optional :secret, :string, 3
|
268
|
+
end
|
269
|
+
end
|
270
|
+
add_enum "google.devtools.cloudbuild.v1.WebhookConfig.State" do
|
271
|
+
value :STATE_UNSPECIFIED, 0
|
272
|
+
value :OK, 1
|
273
|
+
value :SECRET_DELETED, 2
|
274
|
+
end
|
249
275
|
add_message "google.devtools.cloudbuild.v1.PullRequestFilter" do
|
250
276
|
optional :comment_control, :enum, 5, "google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl"
|
251
277
|
optional :invert_regex, :bool, 6
|
@@ -266,14 +292,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
266
292
|
end
|
267
293
|
end
|
268
294
|
add_message "google.devtools.cloudbuild.v1.CreateBuildTriggerRequest" do
|
295
|
+
optional :parent, :string, 3
|
269
296
|
optional :project_id, :string, 1
|
270
297
|
optional :trigger, :message, 2, "google.devtools.cloudbuild.v1.BuildTrigger"
|
271
298
|
end
|
272
299
|
add_message "google.devtools.cloudbuild.v1.GetBuildTriggerRequest" do
|
300
|
+
optional :name, :string, 3
|
273
301
|
optional :project_id, :string, 1
|
274
302
|
optional :trigger_id, :string, 2
|
275
303
|
end
|
276
304
|
add_message "google.devtools.cloudbuild.v1.ListBuildTriggersRequest" do
|
305
|
+
optional :parent, :string, 4
|
277
306
|
optional :project_id, :string, 1
|
278
307
|
optional :page_size, :int32, 2
|
279
308
|
optional :page_token, :string, 3
|
@@ -283,6 +312,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
283
312
|
optional :next_page_token, :string, 2
|
284
313
|
end
|
285
314
|
add_message "google.devtools.cloudbuild.v1.DeleteBuildTriggerRequest" do
|
315
|
+
optional :name, :string, 3
|
286
316
|
optional :project_id, :string, 1
|
287
317
|
optional :trigger_id, :string, 2
|
288
318
|
end
|
@@ -334,6 +364,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
334
364
|
value :NONE, 4
|
335
365
|
end
|
336
366
|
add_message "google.devtools.cloudbuild.v1.ReceiveTriggerWebhookRequest" do
|
367
|
+
optional :name, :string, 5
|
337
368
|
optional :body, :message, 1, "google.api.HttpBody"
|
338
369
|
optional :project_id, :string, 2
|
339
370
|
optional :trigger, :string, 3
|
@@ -417,6 +448,8 @@ module Google
|
|
417
448
|
Results = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Results").msgclass
|
418
449
|
ArtifactResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ArtifactResult").msgclass
|
419
450
|
Build = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build").msgclass
|
451
|
+
Build::Warning = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build.Warning").msgclass
|
452
|
+
Build::Warning::Priority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build.Warning.Priority").enummodule
|
420
453
|
Build::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build.Status").enummodule
|
421
454
|
Artifacts = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Artifacts").msgclass
|
422
455
|
Artifacts::ArtifactObjects = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects").msgclass
|
@@ -439,6 +472,8 @@ module Google
|
|
439
472
|
GitHubEventsConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.GitHubEventsConfig").msgclass
|
440
473
|
PubsubConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PubsubConfig").msgclass
|
441
474
|
PubsubConfig::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PubsubConfig.State").enummodule
|
475
|
+
WebhookConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.WebhookConfig").msgclass
|
476
|
+
WebhookConfig::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.WebhookConfig.State").enummodule
|
442
477
|
PullRequestFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PullRequestFilter").msgclass
|
443
478
|
PullRequestFilter::CommentControl = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl").enummodule
|
444
479
|
PushFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PushFilter").msgclass
|
@@ -38,6 +38,10 @@ module Google
|
|
38
38
|
end
|
39
39
|
|
40
40
|
# Specifies a build trigger to run and the source to use.
|
41
|
+
# @!attribute [rw] name
|
42
|
+
# @return [::String]
|
43
|
+
# The name of the `Trigger` to run.
|
44
|
+
# Format: `projects/{project}/locations/{location}/triggers/{trigger}`
|
41
45
|
# @!attribute [rw] project_id
|
42
46
|
# @return [::String]
|
43
47
|
# Required. ID of the project.
|
@@ -125,7 +129,8 @@ module Google
|
|
125
129
|
end
|
126
130
|
|
127
131
|
# Location of the source manifest in Google Cloud Storage.
|
128
|
-
# This feature is in Preview
|
132
|
+
# This feature is in Preview; see description
|
133
|
+
# [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
|
129
134
|
# @!attribute [rw] bucket
|
130
135
|
# @return [::String]
|
131
136
|
# Google Cloud Storage bucket containing the source manifest (see [Bucket
|
@@ -156,7 +161,8 @@ module Google
|
|
156
161
|
# @!attribute [rw] storage_source_manifest
|
157
162
|
# @return [::Google::Cloud::Build::V1::StorageSourceManifest]
|
158
163
|
# If provided, get the source from this manifest in Google Cloud Storage.
|
159
|
-
# This feature is in Preview
|
164
|
+
# This feature is in Preview; see description
|
165
|
+
# [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
|
160
166
|
class Source
|
161
167
|
include ::Google::Protobuf::MessageExts
|
162
168
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -476,15 +482,44 @@ module Google
|
|
476
482
|
# IAM service account whose credentials will be used at build runtime.
|
477
483
|
# Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
|
478
484
|
# ACCOUNT can be email address or uniqueId of the service account.
|
479
|
-
#
|
480
|
-
# This field is in beta.
|
481
485
|
# @!attribute [rw] available_secrets
|
482
486
|
# @return [::Google::Cloud::Build::V1::Secrets]
|
483
487
|
# Secrets and secret environment variables.
|
488
|
+
# @!attribute [r] warnings
|
489
|
+
# @return [::Array<::Google::Cloud::Build::V1::Build::Warning>]
|
490
|
+
# Output only. Non-fatal problems encountered during the execution of the
|
491
|
+
# build.
|
484
492
|
class Build
|
485
493
|
include ::Google::Protobuf::MessageExts
|
486
494
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
487
495
|
|
496
|
+
# A non-fatal problem encountered during the execution of the build.
|
497
|
+
# @!attribute [rw] text
|
498
|
+
# @return [::String]
|
499
|
+
# Explanation of the warning generated.
|
500
|
+
# @!attribute [rw] priority
|
501
|
+
# @return [::Google::Cloud::Build::V1::Build::Warning::Priority]
|
502
|
+
# The priority for this warning.
|
503
|
+
class Warning
|
504
|
+
include ::Google::Protobuf::MessageExts
|
505
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
506
|
+
|
507
|
+
# The relative importance of this warning.
|
508
|
+
module Priority
|
509
|
+
# Should not be used.
|
510
|
+
PRIORITY_UNSPECIFIED = 0
|
511
|
+
|
512
|
+
# e.g. deprecation warnings and alternative feature highlights.
|
513
|
+
INFO = 1
|
514
|
+
|
515
|
+
# e.g. automated detection of possible issues with the build.
|
516
|
+
WARNING = 2
|
517
|
+
|
518
|
+
# e.g. alerts that a feature used in the build is pending removal
|
519
|
+
ALERT = 3
|
520
|
+
end
|
521
|
+
end
|
522
|
+
|
488
523
|
# @!attribute [rw] key
|
489
524
|
# @return [::String]
|
490
525
|
# @!attribute [rw] value
|
@@ -861,6 +896,11 @@ module Google
|
|
861
896
|
|
862
897
|
# Configuration for an automated build in response to source repository
|
863
898
|
# changes.
|
899
|
+
# @!attribute [rw] resource_name
|
900
|
+
# @return [::String]
|
901
|
+
# The `Trigger` name with format:
|
902
|
+
# `projects/{project}/locations/{location}/triggers/{trigger}`, where
|
903
|
+
# \\{trigger} is a unique identifier generated by the service.
|
864
904
|
# @!attribute [r] id
|
865
905
|
# @return [::String]
|
866
906
|
# Output only. Unique identifier of the trigger.
|
@@ -895,8 +935,23 @@ module Google
|
|
895
935
|
# Mutually exclusive with `trigger_template`.
|
896
936
|
# @!attribute [rw] pubsub_config
|
897
937
|
# @return [::Google::Cloud::Build::V1::PubsubConfig]
|
898
|
-
#
|
938
|
+
# PubsubConfig describes the configuration of a trigger that
|
899
939
|
# creates a build whenever a Pub/Sub message is published.
|
940
|
+
# @!attribute [rw] webhook_config
|
941
|
+
# @return [::Google::Cloud::Build::V1::WebhookConfig]
|
942
|
+
# WebhookConfig describes the configuration of a trigger that
|
943
|
+
# creates a build whenever a webhook is sent to a trigger's webhook URL.
|
944
|
+
# @!attribute [rw] autodetect
|
945
|
+
# @return [::Boolean]
|
946
|
+
# Autodetect build configuration. The following precedence is used (case
|
947
|
+
# insensitive):
|
948
|
+
#
|
949
|
+
# 1. cloudbuild.yaml
|
950
|
+
# 2. cloudbuild.yml
|
951
|
+
# 3. cloudbuild.json
|
952
|
+
# 4. Dockerfile
|
953
|
+
#
|
954
|
+
# Currently only available for GitHub App Triggers.
|
900
955
|
# @!attribute [rw] build
|
901
956
|
# @return [::Google::Cloud::Build::V1::Build]
|
902
957
|
# Contents of the build template.
|
@@ -1020,6 +1075,33 @@ module Google
|
|
1020
1075
|
end
|
1021
1076
|
end
|
1022
1077
|
|
1078
|
+
# WebhookConfig describes the configuration of a trigger that
|
1079
|
+
# creates a build whenever a webhook is sent to a trigger's webhook URL.
|
1080
|
+
# @!attribute [rw] secret
|
1081
|
+
# @return [::String]
|
1082
|
+
# Required. Resource name for the secret required as a URL parameter.
|
1083
|
+
# @!attribute [rw] state
|
1084
|
+
# @return [::Google::Cloud::Build::V1::WebhookConfig::State]
|
1085
|
+
# Potential issues with the underlying Pub/Sub subscription configuration.
|
1086
|
+
# Only populated on get requests.
|
1087
|
+
class WebhookConfig
|
1088
|
+
include ::Google::Protobuf::MessageExts
|
1089
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1090
|
+
|
1091
|
+
# Enumerates potential issues with the Secret Manager secret provided by the
|
1092
|
+
# user.
|
1093
|
+
module State
|
1094
|
+
# The webhook auth configuration not been checked.
|
1095
|
+
STATE_UNSPECIFIED = 0
|
1096
|
+
|
1097
|
+
# The auth configuration is properly setup.
|
1098
|
+
OK = 1
|
1099
|
+
|
1100
|
+
# The secret provided in auth_method has been deleted.
|
1101
|
+
SECRET_DELETED = 2
|
1102
|
+
end
|
1103
|
+
end
|
1104
|
+
|
1023
1105
|
# PullRequestFilter contains filter properties for matching GitHub Pull
|
1024
1106
|
# Requests.
|
1025
1107
|
# @!attribute [rw] branch
|
@@ -1077,6 +1159,10 @@ module Google
|
|
1077
1159
|
end
|
1078
1160
|
|
1079
1161
|
# Request to create a new `BuildTrigger`.
|
1162
|
+
# @!attribute [rw] parent
|
1163
|
+
# @return [::String]
|
1164
|
+
# The parent resource where this trigger will be created.
|
1165
|
+
# Format: `projects/{project}/locations/{location}`
|
1080
1166
|
# @!attribute [rw] project_id
|
1081
1167
|
# @return [::String]
|
1082
1168
|
# Required. ID of the project for which to configure automatic builds.
|
@@ -1089,6 +1175,10 @@ module Google
|
|
1089
1175
|
end
|
1090
1176
|
|
1091
1177
|
# Returns the `BuildTrigger` with the specified ID.
|
1178
|
+
# @!attribute [rw] name
|
1179
|
+
# @return [::String]
|
1180
|
+
# The name of the `Trigger` to retrieve.
|
1181
|
+
# Format: `projects/{project}/locations/{location}/triggers/{trigger}`
|
1092
1182
|
# @!attribute [rw] project_id
|
1093
1183
|
# @return [::String]
|
1094
1184
|
# Required. ID of the project that owns the trigger.
|
@@ -1101,6 +1191,10 @@ module Google
|
|
1101
1191
|
end
|
1102
1192
|
|
1103
1193
|
# Request to list existing `BuildTriggers`.
|
1194
|
+
# @!attribute [rw] parent
|
1195
|
+
# @return [::String]
|
1196
|
+
# The parent of the collection of `Triggers`.
|
1197
|
+
# Format: `projects/{project}/locations/{location}`
|
1104
1198
|
# @!attribute [rw] project_id
|
1105
1199
|
# @return [::String]
|
1106
1200
|
# Required. ID of the project for which to list BuildTriggers.
|
@@ -1128,6 +1222,10 @@ module Google
|
|
1128
1222
|
end
|
1129
1223
|
|
1130
1224
|
# Request to delete a `BuildTrigger`.
|
1225
|
+
# @!attribute [rw] name
|
1226
|
+
# @return [::String]
|
1227
|
+
# The name of the `Trigger` to delete.
|
1228
|
+
# Format: `projects/{project}/locations/{location}/triggers/{trigger}`
|
1131
1229
|
# @!attribute [rw] project_id
|
1132
1230
|
# @return [::String]
|
1133
1231
|
# Required. ID of the project that owns the trigger.
|
@@ -1195,7 +1293,7 @@ module Google
|
|
1195
1293
|
# Option to specify a `WorkerPool` for the build.
|
1196
1294
|
# Format: projects/\\{project}/locations/\\{location}/workerPools/\\{workerPool}
|
1197
1295
|
#
|
1198
|
-
# This field is
|
1296
|
+
# This field is in beta and is available only to restricted users.
|
1199
1297
|
# @!attribute [rw] logging
|
1200
1298
|
# @return [::Google::Cloud::Build::V1::BuildOptions::LoggingMode]
|
1201
1299
|
# Option to specify the logging mode, which determines if and where build
|
@@ -1308,6 +1406,10 @@ module Google
|
|
1308
1406
|
|
1309
1407
|
# ReceiveTriggerWebhookRequest [Experimental] is the request object accepted by
|
1310
1408
|
# the ReceiveTriggerWebhook method.
|
1409
|
+
# @!attribute [rw] name
|
1410
|
+
# @return [::String]
|
1411
|
+
# The name of the `ReceiveTriggerWebhook` to retrieve.
|
1412
|
+
# Format: `projects/{project}/locations/{location}/triggers/{trigger}`
|
1311
1413
|
# @!attribute [rw] body
|
1312
1414
|
# @return [::Google::Api::HttpBody]
|
1313
1415
|
# HTTP request body.
|
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.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|