google-cloud-build-v1 0.5.0 → 0.8.1
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 +8 -8
- 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 +4 -4
- data/lib/google/cloud/build/v1/cloud_build/paths.rb +65 -7
- data/lib/google/cloud/build/v1/version.rb +1 -1
- data/lib/google/devtools/cloudbuild/v1/cloudbuild_pb.rb +60 -0
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/api/httpbody.rb +4 -3
- data/proto_docs/google/devtools/cloudbuild/v1/cloudbuild.rb +183 -3
- metadata +13 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f7e16e360b04ea10c108155fd885b4995ce7df3bd603a58ae131efe645d79abc
|
|
4
|
+
data.tar.gz: ac70d479d3a999186589d43cab4de7eb7b9015d7c1af20d9817cef5750cde0e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f8e9c9cee84ee91e7ea588f185f4fba50f138689109514ee6b999dfbf08215e8dbb90f7ff9298411fcaf9068fbadf27b689f2d94214dd6b4cc1b0b631de9604
|
|
7
|
+
data.tar.gz: 6cc2c643cc7a3c193662304222a79cc20e7d3b6b6056d1a13d1c4220bc26ec47b90bac5e3941af39c4265edba868b4bcf8efa3701355f25d35d69fef01b88171
|
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"
|
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Build::V1::CloudBuild::Client.new
|
|
|
82
82
|
|
|
83
83
|
### Configuration
|
|
84
84
|
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
|
86
|
-
environment
|
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
|
87
87
|
|
|
88
88
|
```ruby
|
|
89
89
|
require "google/cloud/build/v1"
|
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Build::V1::CloudBuild::Client.new do |config|
|
|
|
93
93
|
end
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
-
Or
|
|
96
|
+
Or globally for all clients:
|
|
97
97
|
|
|
98
98
|
```ruby
|
|
99
99
|
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
|
|
@@ -396,9 +396,9 @@ module Google
|
|
|
396
396
|
end
|
|
397
397
|
|
|
398
398
|
##
|
|
399
|
-
# Waits
|
|
400
|
-
#
|
|
401
|
-
#
|
|
399
|
+
# Waits until the specified long-running operation is done or reaches at most
|
|
400
|
+
# a specified timeout, returning the latest state. If the operation is
|
|
401
|
+
# already done, the latest state is immediately returned. If the timeout
|
|
402
402
|
# specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
|
|
403
403
|
# timeout is used. If the server does not support this method, it returns
|
|
404
404
|
# `google.rpc.Code.UNIMPLEMENTED`.
|
|
@@ -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? "/"
|
|
99
|
+
|
|
100
|
+
"projects/#{project}/locations/#{location}/triggers/#{trigger}"
|
|
101
|
+
end)
|
|
102
|
+
}
|
|
81
103
|
|
|
82
|
-
"
|
|
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
|
##
|
|
@@ -170,6 +194,40 @@ module Google
|
|
|
170
194
|
"projects/#{project}/serviceAccounts/#{service_account}"
|
|
171
195
|
end
|
|
172
196
|
|
|
197
|
+
##
|
|
198
|
+
# Create a fully-qualified Subscription resource string.
|
|
199
|
+
#
|
|
200
|
+
# The resource will be in the following format:
|
|
201
|
+
#
|
|
202
|
+
# `projects/{project}/subscriptions/{subscription}`
|
|
203
|
+
#
|
|
204
|
+
# @param project [String]
|
|
205
|
+
# @param subscription [String]
|
|
206
|
+
#
|
|
207
|
+
# @return [::String]
|
|
208
|
+
def subscription_path project:, subscription:
|
|
209
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
210
|
+
|
|
211
|
+
"projects/#{project}/subscriptions/#{subscription}"
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
##
|
|
215
|
+
# Create a fully-qualified Topic resource string.
|
|
216
|
+
#
|
|
217
|
+
# The resource will be in the following format:
|
|
218
|
+
#
|
|
219
|
+
# `projects/{project}/topics/{topic}`
|
|
220
|
+
#
|
|
221
|
+
# @param project [String]
|
|
222
|
+
# @param topic [String]
|
|
223
|
+
#
|
|
224
|
+
# @return [::String]
|
|
225
|
+
def topic_path project:, topic:
|
|
226
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
227
|
+
|
|
228
|
+
"projects/#{project}/topics/#{topic}"
|
|
229
|
+
end
|
|
230
|
+
|
|
173
231
|
extend self
|
|
174
232
|
end
|
|
175
233
|
end
|
|
@@ -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"
|
|
@@ -42,10 +43,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
42
43
|
optional :commit_sha, :string, 5
|
|
43
44
|
end
|
|
44
45
|
end
|
|
46
|
+
add_message "google.devtools.cloudbuild.v1.StorageSourceManifest" do
|
|
47
|
+
optional :bucket, :string, 1
|
|
48
|
+
optional :object, :string, 2
|
|
49
|
+
optional :generation, :int64, 3
|
|
50
|
+
end
|
|
45
51
|
add_message "google.devtools.cloudbuild.v1.Source" do
|
|
46
52
|
oneof :source do
|
|
47
53
|
optional :storage_source, :message, 2, "google.devtools.cloudbuild.v1.StorageSource"
|
|
48
54
|
optional :repo_source, :message, 3, "google.devtools.cloudbuild.v1.RepoSource"
|
|
55
|
+
optional :storage_source_manifest, :message, 8, "google.devtools.cloudbuild.v1.StorageSourceManifest"
|
|
49
56
|
end
|
|
50
57
|
end
|
|
51
58
|
add_message "google.devtools.cloudbuild.v1.BuiltImage" do
|
|
@@ -111,6 +118,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
111
118
|
map :timing, :string, :message, 33, "google.devtools.cloudbuild.v1.TimeSpan"
|
|
112
119
|
optional :service_account, :string, 42
|
|
113
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
|
|
114
132
|
end
|
|
115
133
|
add_enum "google.devtools.cloudbuild.v1.Build.Status" do
|
|
116
134
|
value :STATUS_UNKNOWN, 0
|
|
@@ -142,6 +160,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
142
160
|
add_message "google.devtools.cloudbuild.v1.SourceProvenance" do
|
|
143
161
|
optional :resolved_storage_source, :message, 3, "google.devtools.cloudbuild.v1.StorageSource"
|
|
144
162
|
optional :resolved_repo_source, :message, 6, "google.devtools.cloudbuild.v1.RepoSource"
|
|
163
|
+
optional :resolved_storage_source_manifest, :message, 9, "google.devtools.cloudbuild.v1.StorageSourceManifest"
|
|
145
164
|
map :file_hashes, :string, :message, 4, "google.devtools.cloudbuild.v1.FileHashes"
|
|
146
165
|
end
|
|
147
166
|
add_message "google.devtools.cloudbuild.v1.FileHashes" do
|
|
@@ -199,18 +218,23 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
199
218
|
optional :id, :string, 2
|
|
200
219
|
end
|
|
201
220
|
add_message "google.devtools.cloudbuild.v1.BuildTrigger" do
|
|
221
|
+
optional :resource_name, :string, 34
|
|
202
222
|
optional :id, :string, 1
|
|
203
223
|
optional :description, :string, 10
|
|
204
224
|
optional :name, :string, 21
|
|
205
225
|
repeated :tags, :string, 19
|
|
206
226
|
optional :trigger_template, :message, 7, "google.devtools.cloudbuild.v1.RepoSource"
|
|
207
227
|
optional :github, :message, 13, "google.devtools.cloudbuild.v1.GitHubEventsConfig"
|
|
228
|
+
optional :pubsub_config, :message, 29, "google.devtools.cloudbuild.v1.PubsubConfig"
|
|
229
|
+
optional :webhook_config, :message, 31, "google.devtools.cloudbuild.v1.WebhookConfig"
|
|
208
230
|
optional :create_time, :message, 5, "google.protobuf.Timestamp"
|
|
209
231
|
optional :disabled, :bool, 9
|
|
210
232
|
map :substitutions, :string, :string, 11
|
|
211
233
|
repeated :ignored_files, :string, 15
|
|
212
234
|
repeated :included_files, :string, 16
|
|
235
|
+
optional :filter, :string, 30
|
|
213
236
|
oneof :build_template do
|
|
237
|
+
optional :autodetect, :bool, 18
|
|
214
238
|
optional :build, :message, 4, "google.devtools.cloudbuild.v1.Build"
|
|
215
239
|
optional :filename, :string, 8
|
|
216
240
|
end
|
|
@@ -224,6 +248,30 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
224
248
|
optional :push, :message, 5, "google.devtools.cloudbuild.v1.PushFilter"
|
|
225
249
|
end
|
|
226
250
|
end
|
|
251
|
+
add_message "google.devtools.cloudbuild.v1.PubsubConfig" do
|
|
252
|
+
optional :subscription, :string, 1
|
|
253
|
+
optional :topic, :string, 2
|
|
254
|
+
optional :service_account_email, :string, 3
|
|
255
|
+
optional :state, :enum, 4, "google.devtools.cloudbuild.v1.PubsubConfig.State"
|
|
256
|
+
end
|
|
257
|
+
add_enum "google.devtools.cloudbuild.v1.PubsubConfig.State" do
|
|
258
|
+
value :STATE_UNSPECIFIED, 0
|
|
259
|
+
value :OK, 1
|
|
260
|
+
value :SUBSCRIPTION_DELETED, 2
|
|
261
|
+
value :TOPIC_DELETED, 3
|
|
262
|
+
value :SUBSCRIPTION_MISCONFIGURED, 4
|
|
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
|
|
227
275
|
add_message "google.devtools.cloudbuild.v1.PullRequestFilter" do
|
|
228
276
|
optional :comment_control, :enum, 5, "google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl"
|
|
229
277
|
optional :invert_regex, :bool, 6
|
|
@@ -244,14 +292,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
244
292
|
end
|
|
245
293
|
end
|
|
246
294
|
add_message "google.devtools.cloudbuild.v1.CreateBuildTriggerRequest" do
|
|
295
|
+
optional :parent, :string, 3
|
|
247
296
|
optional :project_id, :string, 1
|
|
248
297
|
optional :trigger, :message, 2, "google.devtools.cloudbuild.v1.BuildTrigger"
|
|
249
298
|
end
|
|
250
299
|
add_message "google.devtools.cloudbuild.v1.GetBuildTriggerRequest" do
|
|
300
|
+
optional :name, :string, 3
|
|
251
301
|
optional :project_id, :string, 1
|
|
252
302
|
optional :trigger_id, :string, 2
|
|
253
303
|
end
|
|
254
304
|
add_message "google.devtools.cloudbuild.v1.ListBuildTriggersRequest" do
|
|
305
|
+
optional :parent, :string, 4
|
|
255
306
|
optional :project_id, :string, 1
|
|
256
307
|
optional :page_size, :int32, 2
|
|
257
308
|
optional :page_token, :string, 3
|
|
@@ -261,6 +312,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
261
312
|
optional :next_page_token, :string, 2
|
|
262
313
|
end
|
|
263
314
|
add_message "google.devtools.cloudbuild.v1.DeleteBuildTriggerRequest" do
|
|
315
|
+
optional :name, :string, 3
|
|
264
316
|
optional :project_id, :string, 1
|
|
265
317
|
optional :trigger_id, :string, 2
|
|
266
318
|
end
|
|
@@ -312,6 +364,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
312
364
|
value :NONE, 4
|
|
313
365
|
end
|
|
314
366
|
add_message "google.devtools.cloudbuild.v1.ReceiveTriggerWebhookRequest" do
|
|
367
|
+
optional :name, :string, 5
|
|
315
368
|
optional :body, :message, 1, "google.api.HttpBody"
|
|
316
369
|
optional :project_id, :string, 2
|
|
317
370
|
optional :trigger, :string, 3
|
|
@@ -387,6 +440,7 @@ module Google
|
|
|
387
440
|
RunBuildTriggerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.RunBuildTriggerRequest").msgclass
|
|
388
441
|
StorageSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.StorageSource").msgclass
|
|
389
442
|
RepoSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.RepoSource").msgclass
|
|
443
|
+
StorageSourceManifest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.StorageSourceManifest").msgclass
|
|
390
444
|
Source = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Source").msgclass
|
|
391
445
|
BuiltImage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuiltImage").msgclass
|
|
392
446
|
BuildStep = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildStep").msgclass
|
|
@@ -394,6 +448,8 @@ module Google
|
|
|
394
448
|
Results = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Results").msgclass
|
|
395
449
|
ArtifactResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.ArtifactResult").msgclass
|
|
396
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
|
|
397
453
|
Build::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Build.Status").enummodule
|
|
398
454
|
Artifacts = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Artifacts").msgclass
|
|
399
455
|
Artifacts::ArtifactObjects = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects").msgclass
|
|
@@ -414,6 +470,10 @@ module Google
|
|
|
414
470
|
CancelBuildRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.CancelBuildRequest").msgclass
|
|
415
471
|
BuildTrigger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildTrigger").msgclass
|
|
416
472
|
GitHubEventsConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.GitHubEventsConfig").msgclass
|
|
473
|
+
PubsubConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PubsubConfig").msgclass
|
|
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
|
|
417
477
|
PullRequestFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PullRequestFilter").msgclass
|
|
418
478
|
PullRequestFilter::CommentControl = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl").enummodule
|
|
419
479
|
PushFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PushFilter").msgclass
|
|
@@ -57,9 +57,15 @@ module Google
|
|
|
57
57
|
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
|
59
59
|
# This indicates that the service may provide the elements of the list
|
|
60
|
-
# in any arbitrary
|
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
|
62
62
|
UNORDERED_LIST = 6
|
|
63
|
+
|
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
|
67
|
+
# non-empty value to expect.
|
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
|
63
69
|
end
|
|
64
70
|
end
|
|
65
71
|
end
|
|
@@ -43,7 +43,8 @@ module Google
|
|
|
43
43
|
#
|
|
44
44
|
# service ResourceService {
|
|
45
45
|
# rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
|
|
46
|
-
# rpc UpdateResource(google.api.HttpBody) returns
|
|
46
|
+
# rpc UpdateResource(google.api.HttpBody) returns
|
|
47
|
+
# (google.protobuf.Empty);
|
|
47
48
|
# }
|
|
48
49
|
#
|
|
49
50
|
# Example with streaming methods:
|
|
@@ -59,10 +60,10 @@ module Google
|
|
|
59
60
|
# handled, all other features will continue to work unchanged.
|
|
60
61
|
# @!attribute [rw] content_type
|
|
61
62
|
# @return [::String]
|
|
62
|
-
# The HTTP Content-Type
|
|
63
|
+
# The HTTP Content-Type header value specifying the content type of the body.
|
|
63
64
|
# @!attribute [rw] data
|
|
64
65
|
# @return [::String]
|
|
65
|
-
# HTTP body binary
|
|
66
|
+
# The HTTP request/response body as raw binary.
|
|
66
67
|
# @!attribute [rw] extensions
|
|
67
68
|
# @return [::Array<::Google::Protobuf::Any>]
|
|
68
69
|
# Application specific response metadata. Must be set in the first response
|
|
@@ -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.
|
|
@@ -124,6 +128,28 @@ module Google
|
|
|
124
128
|
end
|
|
125
129
|
end
|
|
126
130
|
|
|
131
|
+
# Location of the source manifest in Google Cloud Storage.
|
|
132
|
+
# This feature is in Preview; see description
|
|
133
|
+
# [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
|
|
134
|
+
# @!attribute [rw] bucket
|
|
135
|
+
# @return [::String]
|
|
136
|
+
# Google Cloud Storage bucket containing the source manifest (see [Bucket
|
|
137
|
+
# Name
|
|
138
|
+
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
|
|
139
|
+
# @!attribute [rw] object
|
|
140
|
+
# @return [::String]
|
|
141
|
+
# Google Cloud Storage object containing the source manifest.
|
|
142
|
+
#
|
|
143
|
+
# This object must be a JSON file.
|
|
144
|
+
# @!attribute [rw] generation
|
|
145
|
+
# @return [::Integer]
|
|
146
|
+
# Google Cloud Storage generation for the object. If the generation is
|
|
147
|
+
# omitted, the latest generation will be used.
|
|
148
|
+
class StorageSourceManifest
|
|
149
|
+
include ::Google::Protobuf::MessageExts
|
|
150
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
151
|
+
end
|
|
152
|
+
|
|
127
153
|
# Location of the source in a supported storage service.
|
|
128
154
|
# @!attribute [rw] storage_source
|
|
129
155
|
# @return [::Google::Cloud::Build::V1::StorageSource]
|
|
@@ -132,6 +158,11 @@ module Google
|
|
|
132
158
|
# @return [::Google::Cloud::Build::V1::RepoSource]
|
|
133
159
|
# If provided, get the source from this location in a Cloud Source
|
|
134
160
|
# Repository.
|
|
161
|
+
# @!attribute [rw] storage_source_manifest
|
|
162
|
+
# @return [::Google::Cloud::Build::V1::StorageSourceManifest]
|
|
163
|
+
# If provided, get the source from this manifest in Google Cloud Storage.
|
|
164
|
+
# This feature is in Preview; see description
|
|
165
|
+
# [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher).
|
|
135
166
|
class Source
|
|
136
167
|
include ::Google::Protobuf::MessageExts
|
|
137
168
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -451,15 +482,44 @@ module Google
|
|
|
451
482
|
# IAM service account whose credentials will be used at build runtime.
|
|
452
483
|
# Must be of the format `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
|
|
453
484
|
# ACCOUNT can be email address or uniqueId of the service account.
|
|
454
|
-
#
|
|
455
|
-
# This field is in beta.
|
|
456
485
|
# @!attribute [rw] available_secrets
|
|
457
486
|
# @return [::Google::Cloud::Build::V1::Secrets]
|
|
458
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.
|
|
459
492
|
class Build
|
|
460
493
|
include ::Google::Protobuf::MessageExts
|
|
461
494
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
462
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
|
+
|
|
463
523
|
# @!attribute [rw] key
|
|
464
524
|
# @return [::String]
|
|
465
525
|
# @!attribute [rw] value
|
|
@@ -592,6 +652,11 @@ module Google
|
|
|
592
652
|
# @return [::Google::Cloud::Build::V1::RepoSource]
|
|
593
653
|
# A copy of the build's `source.repo_source`, if exists, with any
|
|
594
654
|
# revisions resolved.
|
|
655
|
+
# @!attribute [rw] resolved_storage_source_manifest
|
|
656
|
+
# @return [::Google::Cloud::Build::V1::StorageSourceManifest]
|
|
657
|
+
# A copy of the build's `source.storage_source_manifest`, if exists, with any
|
|
658
|
+
# revisions resolved.
|
|
659
|
+
# This feature is in Preview.
|
|
595
660
|
# @!attribute [r] file_hashes
|
|
596
661
|
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Build::V1::FileHashes}]
|
|
597
662
|
# Output only. Hash(es) of the build source, which can be used to verify that
|
|
@@ -831,6 +896,11 @@ module Google
|
|
|
831
896
|
|
|
832
897
|
# Configuration for an automated build in response to source repository
|
|
833
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.
|
|
834
904
|
# @!attribute [r] id
|
|
835
905
|
# @return [::String]
|
|
836
906
|
# Output only. Unique identifier of the trigger.
|
|
@@ -863,6 +933,25 @@ module Google
|
|
|
863
933
|
# a build whenever a GitHub event is received.
|
|
864
934
|
#
|
|
865
935
|
# Mutually exclusive with `trigger_template`.
|
|
936
|
+
# @!attribute [rw] pubsub_config
|
|
937
|
+
# @return [::Google::Cloud::Build::V1::PubsubConfig]
|
|
938
|
+
# PubsubConfig describes the configuration of a trigger that
|
|
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.
|
|
866
955
|
# @!attribute [rw] build
|
|
867
956
|
# @return [::Google::Cloud::Build::V1::Build]
|
|
868
957
|
# Contents of the build template.
|
|
@@ -901,6 +990,9 @@ module Google
|
|
|
901
990
|
# filter and included_files is not empty, then we make sure that at
|
|
902
991
|
# least one of those files matches a included_files glob. If not,
|
|
903
992
|
# then we do not trigger a build.
|
|
993
|
+
# @!attribute [rw] filter
|
|
994
|
+
# @return [::String]
|
|
995
|
+
# Optional. A Common Expression Language string.
|
|
904
996
|
class BuildTrigger
|
|
905
997
|
include ::Google::Protobuf::MessageExts
|
|
906
998
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -942,6 +1034,74 @@ module Google
|
|
|
942
1034
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
943
1035
|
end
|
|
944
1036
|
|
|
1037
|
+
# PubsubConfig describes the configuration of a trigger that
|
|
1038
|
+
# creates a build whenever a Pub/Sub message is published.
|
|
1039
|
+
# @!attribute [r] subscription
|
|
1040
|
+
# @return [::String]
|
|
1041
|
+
# Output only. Name of the subscription. Format is
|
|
1042
|
+
# `projects/{project}/subscriptions/{subscription}`.
|
|
1043
|
+
# @!attribute [rw] topic
|
|
1044
|
+
# @return [::String]
|
|
1045
|
+
# The name of the topic from which this subscription is receiving messages.
|
|
1046
|
+
# Format is `projects/{project}/topics/{topic}`.
|
|
1047
|
+
# @!attribute [rw] service_account_email
|
|
1048
|
+
# @return [::String]
|
|
1049
|
+
# Service account that will make the push request.
|
|
1050
|
+
# @!attribute [rw] state
|
|
1051
|
+
# @return [::Google::Cloud::Build::V1::PubsubConfig::State]
|
|
1052
|
+
# Potential issues with the underlying Pub/Sub subscription configuration.
|
|
1053
|
+
# Only populated on get requests.
|
|
1054
|
+
class PubsubConfig
|
|
1055
|
+
include ::Google::Protobuf::MessageExts
|
|
1056
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1057
|
+
|
|
1058
|
+
# Enumerates potential issues with the underlying Pub/Sub subscription
|
|
1059
|
+
# configuration.
|
|
1060
|
+
module State
|
|
1061
|
+
# The subscription configuration has not been checked.
|
|
1062
|
+
STATE_UNSPECIFIED = 0
|
|
1063
|
+
|
|
1064
|
+
# The Pub/Sub subscription is properly configured.
|
|
1065
|
+
OK = 1
|
|
1066
|
+
|
|
1067
|
+
# The subscription has been deleted.
|
|
1068
|
+
SUBSCRIPTION_DELETED = 2
|
|
1069
|
+
|
|
1070
|
+
# The topic has been deleted.
|
|
1071
|
+
TOPIC_DELETED = 3
|
|
1072
|
+
|
|
1073
|
+
# Some of the subscription's field are misconfigured.
|
|
1074
|
+
SUBSCRIPTION_MISCONFIGURED = 4
|
|
1075
|
+
end
|
|
1076
|
+
end
|
|
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
|
+
|
|
945
1105
|
# PullRequestFilter contains filter properties for matching GitHub Pull
|
|
946
1106
|
# Requests.
|
|
947
1107
|
# @!attribute [rw] branch
|
|
@@ -999,6 +1159,10 @@ module Google
|
|
|
999
1159
|
end
|
|
1000
1160
|
|
|
1001
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}`
|
|
1002
1166
|
# @!attribute [rw] project_id
|
|
1003
1167
|
# @return [::String]
|
|
1004
1168
|
# Required. ID of the project for which to configure automatic builds.
|
|
@@ -1011,6 +1175,10 @@ module Google
|
|
|
1011
1175
|
end
|
|
1012
1176
|
|
|
1013
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}`
|
|
1014
1182
|
# @!attribute [rw] project_id
|
|
1015
1183
|
# @return [::String]
|
|
1016
1184
|
# Required. ID of the project that owns the trigger.
|
|
@@ -1023,6 +1191,10 @@ module Google
|
|
|
1023
1191
|
end
|
|
1024
1192
|
|
|
1025
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}`
|
|
1026
1198
|
# @!attribute [rw] project_id
|
|
1027
1199
|
# @return [::String]
|
|
1028
1200
|
# Required. ID of the project for which to list BuildTriggers.
|
|
@@ -1050,6 +1222,10 @@ module Google
|
|
|
1050
1222
|
end
|
|
1051
1223
|
|
|
1052
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}`
|
|
1053
1229
|
# @!attribute [rw] project_id
|
|
1054
1230
|
# @return [::String]
|
|
1055
1231
|
# Required. ID of the project that owns the trigger.
|
|
@@ -1117,7 +1293,7 @@ module Google
|
|
|
1117
1293
|
# Option to specify a `WorkerPool` for the build.
|
|
1118
1294
|
# Format: projects/\\{project}/locations/\\{location}/workerPools/\\{workerPool}
|
|
1119
1295
|
#
|
|
1120
|
-
# This field is
|
|
1296
|
+
# This field is in beta and is available only to restricted users.
|
|
1121
1297
|
# @!attribute [rw] logging
|
|
1122
1298
|
# @return [::Google::Cloud::Build::V1::BuildOptions::LoggingMode]
|
|
1123
1299
|
# Option to specify the logging mode, which determines if and where build
|
|
@@ -1230,6 +1406,10 @@ module Google
|
|
|
1230
1406
|
|
|
1231
1407
|
# ReceiveTriggerWebhookRequest [Experimental] is the request object accepted by
|
|
1232
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}`
|
|
1233
1413
|
# @!attribute [rw] body
|
|
1234
1414
|
# @return [::Google::Api::HttpBody]
|
|
1235
1415
|
# HTTP request body.
|
metadata
CHANGED
|
@@ -1,29 +1,35 @@
|
|
|
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.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: 2021-
|
|
11
|
+
date: 2021-07-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0.5'
|
|
20
|
+
- - "<"
|
|
18
21
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
22
|
+
version: 2.a
|
|
20
23
|
type: :runtime
|
|
21
24
|
prerelease: false
|
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
26
|
requirements:
|
|
24
|
-
- - "
|
|
27
|
+
- - ">="
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '0.5'
|
|
30
|
+
- - "<"
|
|
25
31
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
32
|
+
version: 2.a
|
|
27
33
|
- !ruby/object:Gem::Dependency
|
|
28
34
|
name: google-cloud-errors
|
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -206,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
206
212
|
- !ruby/object:Gem::Version
|
|
207
213
|
version: '0'
|
|
208
214
|
requirements: []
|
|
209
|
-
rubygems_version: 3.2.
|
|
215
|
+
rubygems_version: 3.2.17
|
|
210
216
|
signing_key:
|
|
211
217
|
specification_version: 4
|
|
212
218
|
summary: API Client library for the Cloud Build V1 API
|