google-api-client 0.35.0 → 0.36.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  4. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +5 -1
  5. data/generated/google/apis/cloudasset_v1.rb +1 -1
  6. data/generated/google/apis/cloudasset_v1/classes.rb +75 -41
  7. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  8. data/generated/google/apis/cloudasset_v1beta1/classes.rb +75 -41
  9. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
  10. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +75 -41
  11. data/generated/google/apis/container_v1.rb +1 -1
  12. data/generated/google/apis/container_v1/classes.rb +203 -78
  13. data/generated/google/apis/container_v1/representations.rb +49 -0
  14. data/generated/google/apis/container_v1/service.rb +119 -119
  15. data/generated/google/apis/container_v1beta1.rb +1 -1
  16. data/generated/google/apis/container_v1beta1/classes.rb +32 -0
  17. data/generated/google/apis/container_v1beta1/representations.rb +16 -0
  18. data/generated/google/apis/dataproc_v1.rb +1 -1
  19. data/generated/google/apis/dataproc_v1/classes.rb +44 -7
  20. data/generated/google/apis/dataproc_v1/representations.rb +17 -0
  21. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  22. data/generated/google/apis/dataproc_v1beta2/classes.rb +7 -7
  23. data/generated/google/apis/dataproc_v1beta2/service.rb +12 -12
  24. data/generated/google/apis/dlp_v2.rb +1 -1
  25. data/generated/google/apis/dlp_v2/classes.rb +4 -4
  26. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  27. data/generated/google/apis/firebase_v1beta1/classes.rb +15 -0
  28. data/generated/google/apis/firebase_v1beta1/representations.rb +2 -0
  29. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  30. data/generated/google/apis/healthcare_v1beta1/service.rb +20 -23
  31. data/generated/google/apis/ml_v1.rb +1 -1
  32. data/generated/google/apis/ml_v1/classes.rb +75 -41
  33. data/generated/google/apis/monitoring_v1.rb +13 -1
  34. data/generated/google/apis/monitoring_v1/classes.rb +893 -0
  35. data/generated/google/apis/monitoring_v1/representations.rb +405 -0
  36. data/generated/google/apis/monitoring_v1/service.rb +182 -0
  37. data/generated/google/apis/monitoring_v3.rb +1 -1
  38. data/generated/google/apis/monitoring_v3/classes.rb +29 -41
  39. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  40. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +168 -92
  41. data/generated/google/apis/policytroubleshooter_v1beta/service.rb +2 -3
  42. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  43. data/generated/google/apis/remotebuildexecution_v1/classes.rb +56 -0
  44. data/generated/google/apis/remotebuildexecution_v1/representations.rb +31 -0
  45. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  46. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +56 -0
  47. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +31 -0
  48. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  49. data/generated/google/apis/remotebuildexecution_v2/classes.rb +56 -0
  50. data/generated/google/apis/remotebuildexecution_v2/representations.rb +31 -0
  51. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  52. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +75 -41
  53. data/generated/google/apis/securitycenter_v1.rb +1 -1
  54. data/generated/google/apis/securitycenter_v1/classes.rb +75 -41
  55. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  56. data/generated/google/apis/securitycenter_v1beta1/classes.rb +75 -41
  57. data/generated/google/apis/servicebroker_v1.rb +1 -1
  58. data/generated/google/apis/servicebroker_v1/classes.rb +75 -41
  59. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  60. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +75 -41
  61. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  62. data/generated/google/apis/servicebroker_v1beta1/classes.rb +75 -41
  63. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  64. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +29 -41
  65. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  66. data/generated/google/apis/servicemanagement_v1/classes.rb +104 -82
  67. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  68. data/generated/google/apis/servicenetworking_v1/classes.rb +51 -41
  69. data/generated/google/apis/servicenetworking_v1/representations.rb +13 -0
  70. data/generated/google/apis/servicenetworking_v1/service.rb +35 -0
  71. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  72. data/generated/google/apis/servicenetworking_v1beta/classes.rb +29 -41
  73. data/generated/google/apis/serviceusage_v1.rb +1 -1
  74. data/generated/google/apis/serviceusage_v1/classes.rb +29 -41
  75. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  76. data/generated/google/apis/serviceusage_v1beta1/classes.rb +29 -41
  77. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  78. data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -1
  79. data/lib/google/apis/version.rb +1 -1
  80. metadata +3 -7
  81. data/generated/google/apis/cloudbuild_v1alpha1.rb +0 -34
  82. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +0 -1174
  83. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +0 -435
  84. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +0 -226
@@ -1,435 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'date'
16
- require 'google/apis/core/base_service'
17
- require 'google/apis/core/json_representation'
18
- require 'google/apis/core/hashable'
19
- require 'google/apis/errors'
20
-
21
- module Google
22
- module Apis
23
- module CloudbuildV1alpha1
24
-
25
- class ArtifactObjects
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class ArtifactResult
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
- class Artifacts
38
- class Representation < Google::Apis::Core::JsonRepresentation; end
39
-
40
- include Google::Apis::Core::JsonObjectSupport
41
- end
42
-
43
- class Build
44
- class Representation < Google::Apis::Core::JsonRepresentation; end
45
-
46
- include Google::Apis::Core::JsonObjectSupport
47
- end
48
-
49
- class BuildOperationMetadata
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
-
52
- include Google::Apis::Core::JsonObjectSupport
53
- end
54
-
55
- class BuildOptions
56
- class Representation < Google::Apis::Core::JsonRepresentation; end
57
-
58
- include Google::Apis::Core::JsonObjectSupport
59
- end
60
-
61
- class BuildStep
62
- class Representation < Google::Apis::Core::JsonRepresentation; end
63
-
64
- include Google::Apis::Core::JsonObjectSupport
65
- end
66
-
67
- class BuiltImage
68
- class Representation < Google::Apis::Core::JsonRepresentation; end
69
-
70
- include Google::Apis::Core::JsonObjectSupport
71
- end
72
-
73
- class Empty
74
- class Representation < Google::Apis::Core::JsonRepresentation; end
75
-
76
- include Google::Apis::Core::JsonObjectSupport
77
- end
78
-
79
- class FileHashes
80
- class Representation < Google::Apis::Core::JsonRepresentation; end
81
-
82
- include Google::Apis::Core::JsonObjectSupport
83
- end
84
-
85
- class HashProp
86
- class Representation < Google::Apis::Core::JsonRepresentation; end
87
-
88
- include Google::Apis::Core::JsonObjectSupport
89
- end
90
-
91
- class ListWorkerPoolsResponse
92
- class Representation < Google::Apis::Core::JsonRepresentation; end
93
-
94
- include Google::Apis::Core::JsonObjectSupport
95
- end
96
-
97
- class Network
98
- class Representation < Google::Apis::Core::JsonRepresentation; end
99
-
100
- include Google::Apis::Core::JsonObjectSupport
101
- end
102
-
103
- class RepoSource
104
- class Representation < Google::Apis::Core::JsonRepresentation; end
105
-
106
- include Google::Apis::Core::JsonObjectSupport
107
- end
108
-
109
- class Results
110
- class Representation < Google::Apis::Core::JsonRepresentation; end
111
-
112
- include Google::Apis::Core::JsonObjectSupport
113
- end
114
-
115
- class Secret
116
- class Representation < Google::Apis::Core::JsonRepresentation; end
117
-
118
- include Google::Apis::Core::JsonObjectSupport
119
- end
120
-
121
- class Source
122
- class Representation < Google::Apis::Core::JsonRepresentation; end
123
-
124
- include Google::Apis::Core::JsonObjectSupport
125
- end
126
-
127
- class SourceProvenance
128
- class Representation < Google::Apis::Core::JsonRepresentation; end
129
-
130
- include Google::Apis::Core::JsonObjectSupport
131
- end
132
-
133
- class StorageSource
134
- class Representation < Google::Apis::Core::JsonRepresentation; end
135
-
136
- include Google::Apis::Core::JsonObjectSupport
137
- end
138
-
139
- class TimeSpan
140
- class Representation < Google::Apis::Core::JsonRepresentation; end
141
-
142
- include Google::Apis::Core::JsonObjectSupport
143
- end
144
-
145
- class Volume
146
- class Representation < Google::Apis::Core::JsonRepresentation; end
147
-
148
- include Google::Apis::Core::JsonObjectSupport
149
- end
150
-
151
- class WorkerConfig
152
- class Representation < Google::Apis::Core::JsonRepresentation; end
153
-
154
- include Google::Apis::Core::JsonObjectSupport
155
- end
156
-
157
- class WorkerPool
158
- class Representation < Google::Apis::Core::JsonRepresentation; end
159
-
160
- include Google::Apis::Core::JsonObjectSupport
161
- end
162
-
163
- class ArtifactObjects
164
- # @private
165
- class Representation < Google::Apis::Core::JsonRepresentation
166
- property :location, as: 'location'
167
- collection :paths, as: 'paths'
168
- property :timing, as: 'timing', class: Google::Apis::CloudbuildV1alpha1::TimeSpan, decorator: Google::Apis::CloudbuildV1alpha1::TimeSpan::Representation
169
-
170
- end
171
- end
172
-
173
- class ArtifactResult
174
- # @private
175
- class Representation < Google::Apis::Core::JsonRepresentation
176
- collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1alpha1::FileHashes, decorator: Google::Apis::CloudbuildV1alpha1::FileHashes::Representation
177
-
178
- property :location, as: 'location'
179
- end
180
- end
181
-
182
- class Artifacts
183
- # @private
184
- class Representation < Google::Apis::Core::JsonRepresentation
185
- collection :images, as: 'images'
186
- property :objects, as: 'objects', class: Google::Apis::CloudbuildV1alpha1::ArtifactObjects, decorator: Google::Apis::CloudbuildV1alpha1::ArtifactObjects::Representation
187
-
188
- end
189
- end
190
-
191
- class Build
192
- # @private
193
- class Representation < Google::Apis::Core::JsonRepresentation
194
- property :artifacts, as: 'artifacts', class: Google::Apis::CloudbuildV1alpha1::Artifacts, decorator: Google::Apis::CloudbuildV1alpha1::Artifacts::Representation
195
-
196
- property :build_trigger_id, as: 'buildTriggerId'
197
- property :create_time, as: 'createTime'
198
- property :finish_time, as: 'finishTime'
199
- property :id, as: 'id'
200
- collection :images, as: 'images'
201
- property :log_url, as: 'logUrl'
202
- property :logs_bucket, as: 'logsBucket'
203
- property :options, as: 'options', class: Google::Apis::CloudbuildV1alpha1::BuildOptions, decorator: Google::Apis::CloudbuildV1alpha1::BuildOptions::Representation
204
-
205
- property :project_id, as: 'projectId'
206
- property :results, as: 'results', class: Google::Apis::CloudbuildV1alpha1::Results, decorator: Google::Apis::CloudbuildV1alpha1::Results::Representation
207
-
208
- collection :secrets, as: 'secrets', class: Google::Apis::CloudbuildV1alpha1::Secret, decorator: Google::Apis::CloudbuildV1alpha1::Secret::Representation
209
-
210
- property :source, as: 'source', class: Google::Apis::CloudbuildV1alpha1::Source, decorator: Google::Apis::CloudbuildV1alpha1::Source::Representation
211
-
212
- property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1alpha1::SourceProvenance, decorator: Google::Apis::CloudbuildV1alpha1::SourceProvenance::Representation
213
-
214
- property :start_time, as: 'startTime'
215
- property :status, as: 'status'
216
- property :status_detail, as: 'statusDetail'
217
- collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1alpha1::BuildStep, decorator: Google::Apis::CloudbuildV1alpha1::BuildStep::Representation
218
-
219
- hash :substitutions, as: 'substitutions'
220
- collection :tags, as: 'tags'
221
- property :timeout, as: 'timeout'
222
- hash :timing, as: 'timing', class: Google::Apis::CloudbuildV1alpha1::TimeSpan, decorator: Google::Apis::CloudbuildV1alpha1::TimeSpan::Representation
223
-
224
- end
225
- end
226
-
227
- class BuildOperationMetadata
228
- # @private
229
- class Representation < Google::Apis::Core::JsonRepresentation
230
- property :build, as: 'build', class: Google::Apis::CloudbuildV1alpha1::Build, decorator: Google::Apis::CloudbuildV1alpha1::Build::Representation
231
-
232
- end
233
- end
234
-
235
- class BuildOptions
236
- # @private
237
- class Representation < Google::Apis::Core::JsonRepresentation
238
- property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
239
- collection :env, as: 'env'
240
- property :log_streaming_option, as: 'logStreamingOption'
241
- property :logging, as: 'logging'
242
- property :machine_type, as: 'machineType'
243
- property :requested_verify_option, as: 'requestedVerifyOption'
244
- collection :secret_env, as: 'secretEnv'
245
- collection :source_provenance_hash, as: 'sourceProvenanceHash'
246
- property :substitution_option, as: 'substitutionOption'
247
- collection :volumes, as: 'volumes', class: Google::Apis::CloudbuildV1alpha1::Volume, decorator: Google::Apis::CloudbuildV1alpha1::Volume::Representation
248
-
249
- property :worker_pool, as: 'workerPool'
250
- end
251
- end
252
-
253
- class BuildStep
254
- # @private
255
- class Representation < Google::Apis::Core::JsonRepresentation
256
- collection :args, as: 'args'
257
- property :dir, as: 'dir'
258
- property :entrypoint, as: 'entrypoint'
259
- collection :env, as: 'env'
260
- property :id, as: 'id'
261
- property :name, as: 'name'
262
- property :pull_timing, as: 'pullTiming', class: Google::Apis::CloudbuildV1alpha1::TimeSpan, decorator: Google::Apis::CloudbuildV1alpha1::TimeSpan::Representation
263
-
264
- collection :secret_env, as: 'secretEnv'
265
- property :status, as: 'status'
266
- property :timeout, as: 'timeout'
267
- property :timing, as: 'timing', class: Google::Apis::CloudbuildV1alpha1::TimeSpan, decorator: Google::Apis::CloudbuildV1alpha1::TimeSpan::Representation
268
-
269
- collection :volumes, as: 'volumes', class: Google::Apis::CloudbuildV1alpha1::Volume, decorator: Google::Apis::CloudbuildV1alpha1::Volume::Representation
270
-
271
- collection :wait_for, as: 'waitFor'
272
- end
273
- end
274
-
275
- class BuiltImage
276
- # @private
277
- class Representation < Google::Apis::Core::JsonRepresentation
278
- property :digest, as: 'digest'
279
- property :name, as: 'name'
280
- property :push_timing, as: 'pushTiming', class: Google::Apis::CloudbuildV1alpha1::TimeSpan, decorator: Google::Apis::CloudbuildV1alpha1::TimeSpan::Representation
281
-
282
- end
283
- end
284
-
285
- class Empty
286
- # @private
287
- class Representation < Google::Apis::Core::JsonRepresentation
288
- end
289
- end
290
-
291
- class FileHashes
292
- # @private
293
- class Representation < Google::Apis::Core::JsonRepresentation
294
- collection :file_hash, as: 'fileHash', class: Google::Apis::CloudbuildV1alpha1::HashProp, decorator: Google::Apis::CloudbuildV1alpha1::HashProp::Representation
295
-
296
- end
297
- end
298
-
299
- class HashProp
300
- # @private
301
- class Representation < Google::Apis::Core::JsonRepresentation
302
- property :type, as: 'type'
303
- property :value, :base64 => true, as: 'value'
304
- end
305
- end
306
-
307
- class ListWorkerPoolsResponse
308
- # @private
309
- class Representation < Google::Apis::Core::JsonRepresentation
310
- collection :worker_pools, as: 'workerPools', class: Google::Apis::CloudbuildV1alpha1::WorkerPool, decorator: Google::Apis::CloudbuildV1alpha1::WorkerPool::Representation
311
-
312
- end
313
- end
314
-
315
- class Network
316
- # @private
317
- class Representation < Google::Apis::Core::JsonRepresentation
318
- property :network, as: 'network'
319
- property :project_id, as: 'projectId'
320
- property :subnetwork, as: 'subnetwork'
321
- end
322
- end
323
-
324
- class RepoSource
325
- # @private
326
- class Representation < Google::Apis::Core::JsonRepresentation
327
- property :branch_name, as: 'branchName'
328
- property :commit_sha, as: 'commitSha'
329
- property :dir, as: 'dir'
330
- property :project_id, as: 'projectId'
331
- property :repo_name, as: 'repoName'
332
- hash :substitutions, as: 'substitutions'
333
- property :tag_name, as: 'tagName'
334
- end
335
- end
336
-
337
- class Results
338
- # @private
339
- class Representation < Google::Apis::Core::JsonRepresentation
340
- property :artifact_manifest, as: 'artifactManifest'
341
- property :artifact_timing, as: 'artifactTiming', class: Google::Apis::CloudbuildV1alpha1::TimeSpan, decorator: Google::Apis::CloudbuildV1alpha1::TimeSpan::Representation
342
-
343
- collection :build_step_images, as: 'buildStepImages'
344
- collection :build_step_outputs, as: 'buildStepOutputs'
345
- collection :images, as: 'images', class: Google::Apis::CloudbuildV1alpha1::BuiltImage, decorator: Google::Apis::CloudbuildV1alpha1::BuiltImage::Representation
346
-
347
- property :num_artifacts, :numeric_string => true, as: 'numArtifacts'
348
- end
349
- end
350
-
351
- class Secret
352
- # @private
353
- class Representation < Google::Apis::Core::JsonRepresentation
354
- property :kms_key_name, as: 'kmsKeyName'
355
- hash :secret_env, as: 'secretEnv'
356
- end
357
- end
358
-
359
- class Source
360
- # @private
361
- class Representation < Google::Apis::Core::JsonRepresentation
362
- property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1alpha1::RepoSource, decorator: Google::Apis::CloudbuildV1alpha1::RepoSource::Representation
363
-
364
- property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1alpha1::StorageSource, decorator: Google::Apis::CloudbuildV1alpha1::StorageSource::Representation
365
-
366
- end
367
- end
368
-
369
- class SourceProvenance
370
- # @private
371
- class Representation < Google::Apis::Core::JsonRepresentation
372
- hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1alpha1::FileHashes, decorator: Google::Apis::CloudbuildV1alpha1::FileHashes::Representation
373
-
374
- property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1alpha1::RepoSource, decorator: Google::Apis::CloudbuildV1alpha1::RepoSource::Representation
375
-
376
- property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1alpha1::StorageSource, decorator: Google::Apis::CloudbuildV1alpha1::StorageSource::Representation
377
-
378
- end
379
- end
380
-
381
- class StorageSource
382
- # @private
383
- class Representation < Google::Apis::Core::JsonRepresentation
384
- property :bucket, as: 'bucket'
385
- property :generation, :numeric_string => true, as: 'generation'
386
- property :object, as: 'object'
387
- end
388
- end
389
-
390
- class TimeSpan
391
- # @private
392
- class Representation < Google::Apis::Core::JsonRepresentation
393
- property :end_time, as: 'endTime'
394
- property :start_time, as: 'startTime'
395
- end
396
- end
397
-
398
- class Volume
399
- # @private
400
- class Representation < Google::Apis::Core::JsonRepresentation
401
- property :name, as: 'name'
402
- property :path, as: 'path'
403
- end
404
- end
405
-
406
- class WorkerConfig
407
- # @private
408
- class Representation < Google::Apis::Core::JsonRepresentation
409
- property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
410
- property :machine_type, as: 'machineType'
411
- property :network, as: 'network', class: Google::Apis::CloudbuildV1alpha1::Network, decorator: Google::Apis::CloudbuildV1alpha1::Network::Representation
412
-
413
- property :tag, as: 'tag'
414
- end
415
- end
416
-
417
- class WorkerPool
418
- # @private
419
- class Representation < Google::Apis::Core::JsonRepresentation
420
- property :create_time, as: 'createTime'
421
- property :delete_time, as: 'deleteTime'
422
- property :name, as: 'name'
423
- property :project_id, as: 'projectId'
424
- collection :regions, as: 'regions'
425
- property :service_account_email, as: 'serviceAccountEmail'
426
- property :status, as: 'status'
427
- property :update_time, as: 'updateTime'
428
- property :worker_config, as: 'workerConfig', class: Google::Apis::CloudbuildV1alpha1::WorkerConfig, decorator: Google::Apis::CloudbuildV1alpha1::WorkerConfig::Representation
429
-
430
- property :worker_count, :numeric_string => true, as: 'workerCount'
431
- end
432
- end
433
- end
434
- end
435
- end
@@ -1,226 +0,0 @@
1
- # Copyright 2015 Google Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- require 'google/apis/core/base_service'
16
- require 'google/apis/core/json_representation'
17
- require 'google/apis/core/hashable'
18
- require 'google/apis/errors'
19
-
20
- module Google
21
- module Apis
22
- module CloudbuildV1alpha1
23
- # Cloud Build API
24
- #
25
- # Creates and manages builds on Google Cloud Platform.
26
- #
27
- # @example
28
- # require 'google/apis/cloudbuild_v1alpha1'
29
- #
30
- # Cloudbuild = Google::Apis::CloudbuildV1alpha1 # Alias the module
31
- # service = Cloudbuild::CloudBuildService.new
32
- #
33
- # @see https://cloud.google.com/cloud-build/docs/
34
- class CloudBuildService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # API key. Your API key identifies your project and provides you with API access,
37
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
- attr_accessor :key
39
-
40
- # @return [String]
41
- # Available to use for quota purposes for server-side applications. Can be any
42
- # arbitrary string assigned to a user, but should not exceed 40 characters.
43
- attr_accessor :quota_user
44
-
45
- def initialize
46
- super('https://cloudbuild.googleapis.com/', '')
47
- @batch_path = 'batch'
48
- end
49
-
50
- # Creates a `WorkerPool` to run the builds, and returns the new worker pool.
51
- # This API is experimental.
52
- # @param [String] parent
53
- # ID of the parent project.
54
- # @param [Google::Apis::CloudbuildV1alpha1::WorkerPool] worker_pool_object
55
- # @param [String] fields
56
- # Selector specifying which fields to include in a partial response.
57
- # @param [String] quota_user
58
- # Available to use for quota purposes for server-side applications. Can be any
59
- # arbitrary string assigned to a user, but should not exceed 40 characters.
60
- # @param [Google::Apis::RequestOptions] options
61
- # Request-specific options
62
- #
63
- # @yield [result, err] Result & error if block supplied
64
- # @yieldparam result [Google::Apis::CloudbuildV1alpha1::WorkerPool] parsed result object
65
- # @yieldparam err [StandardError] error object if request failed
66
- #
67
- # @return [Google::Apis::CloudbuildV1alpha1::WorkerPool]
68
- #
69
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
- # @raise [Google::Apis::AuthorizationError] Authorization is required
72
- def create_project_worker_pool(parent, worker_pool_object = nil, fields: nil, quota_user: nil, options: nil, &block)
73
- command = make_simple_command(:post, 'v1alpha1/{+parent}/workerPools', options)
74
- command.request_representation = Google::Apis::CloudbuildV1alpha1::WorkerPool::Representation
75
- command.request_object = worker_pool_object
76
- command.response_representation = Google::Apis::CloudbuildV1alpha1::WorkerPool::Representation
77
- command.response_class = Google::Apis::CloudbuildV1alpha1::WorkerPool
78
- command.params['parent'] = parent unless parent.nil?
79
- command.query['fields'] = fields unless fields.nil?
80
- command.query['quotaUser'] = quota_user unless quota_user.nil?
81
- execute_or_queue_command(command, &block)
82
- end
83
-
84
- # Deletes a `WorkerPool` by its project ID and WorkerPool name.
85
- # This API is experimental.
86
- # @param [String] name
87
- # The field will contain name of the resource requested, for example:
88
- # "projects/project-1/workerPools/workerpool-name"
89
- # @param [String] fields
90
- # Selector specifying which fields to include in a partial response.
91
- # @param [String] quota_user
92
- # Available to use for quota purposes for server-side applications. Can be any
93
- # arbitrary string assigned to a user, but should not exceed 40 characters.
94
- # @param [Google::Apis::RequestOptions] options
95
- # Request-specific options
96
- #
97
- # @yield [result, err] Result & error if block supplied
98
- # @yieldparam result [Google::Apis::CloudbuildV1alpha1::Empty] parsed result object
99
- # @yieldparam err [StandardError] error object if request failed
100
- #
101
- # @return [Google::Apis::CloudbuildV1alpha1::Empty]
102
- #
103
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
104
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
105
- # @raise [Google::Apis::AuthorizationError] Authorization is required
106
- def delete_project_worker_pool(name, fields: nil, quota_user: nil, options: nil, &block)
107
- command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
108
- command.response_representation = Google::Apis::CloudbuildV1alpha1::Empty::Representation
109
- command.response_class = Google::Apis::CloudbuildV1alpha1::Empty
110
- command.params['name'] = name unless name.nil?
111
- command.query['fields'] = fields unless fields.nil?
112
- command.query['quotaUser'] = quota_user unless quota_user.nil?
113
- execute_or_queue_command(command, &block)
114
- end
115
-
116
- # Returns information about a `WorkerPool`.
117
- # This API is experimental.
118
- # @param [String] name
119
- # The field will contain name of the resource requested, for example:
120
- # "projects/project-1/workerPools/workerpool-name"
121
- # @param [String] fields
122
- # Selector specifying which fields to include in a partial response.
123
- # @param [String] quota_user
124
- # Available to use for quota purposes for server-side applications. Can be any
125
- # arbitrary string assigned to a user, but should not exceed 40 characters.
126
- # @param [Google::Apis::RequestOptions] options
127
- # Request-specific options
128
- #
129
- # @yield [result, err] Result & error if block supplied
130
- # @yieldparam result [Google::Apis::CloudbuildV1alpha1::WorkerPool] parsed result object
131
- # @yieldparam err [StandardError] error object if request failed
132
- #
133
- # @return [Google::Apis::CloudbuildV1alpha1::WorkerPool]
134
- #
135
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
136
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
137
- # @raise [Google::Apis::AuthorizationError] Authorization is required
138
- def get_project_worker_pool(name, fields: nil, quota_user: nil, options: nil, &block)
139
- command = make_simple_command(:get, 'v1alpha1/{+name}', options)
140
- command.response_representation = Google::Apis::CloudbuildV1alpha1::WorkerPool::Representation
141
- command.response_class = Google::Apis::CloudbuildV1alpha1::WorkerPool
142
- command.params['name'] = name unless name.nil?
143
- command.query['fields'] = fields unless fields.nil?
144
- command.query['quotaUser'] = quota_user unless quota_user.nil?
145
- execute_or_queue_command(command, &block)
146
- end
147
-
148
- # List project's `WorkerPool`s.
149
- # This API is experimental.
150
- # @param [String] parent
151
- # ID of the parent project.
152
- # @param [String] fields
153
- # Selector specifying which fields to include in a partial response.
154
- # @param [String] quota_user
155
- # Available to use for quota purposes for server-side applications. Can be any
156
- # arbitrary string assigned to a user, but should not exceed 40 characters.
157
- # @param [Google::Apis::RequestOptions] options
158
- # Request-specific options
159
- #
160
- # @yield [result, err] Result & error if block supplied
161
- # @yieldparam result [Google::Apis::CloudbuildV1alpha1::ListWorkerPoolsResponse] parsed result object
162
- # @yieldparam err [StandardError] error object if request failed
163
- #
164
- # @return [Google::Apis::CloudbuildV1alpha1::ListWorkerPoolsResponse]
165
- #
166
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
167
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
168
- # @raise [Google::Apis::AuthorizationError] Authorization is required
169
- def list_project_worker_pools(parent, fields: nil, quota_user: nil, options: nil, &block)
170
- command = make_simple_command(:get, 'v1alpha1/{+parent}/workerPools', options)
171
- command.response_representation = Google::Apis::CloudbuildV1alpha1::ListWorkerPoolsResponse::Representation
172
- command.response_class = Google::Apis::CloudbuildV1alpha1::ListWorkerPoolsResponse
173
- command.params['parent'] = parent unless parent.nil?
174
- command.query['fields'] = fields unless fields.nil?
175
- command.query['quotaUser'] = quota_user unless quota_user.nil?
176
- execute_or_queue_command(command, &block)
177
- end
178
-
179
- # Update a `WorkerPool`.
180
- # This API is experimental.
181
- # @param [String] name
182
- # The field will contain name of the resource requested, for example:
183
- # "projects/project-1/workerPools/workerpool-name"
184
- # @param [Google::Apis::CloudbuildV1alpha1::WorkerPool] worker_pool_object
185
- # @param [String] update_mask
186
- # A mask specifying which fields in `WorkerPool` should be updated.
187
- # @param [String] fields
188
- # Selector specifying which fields to include in a partial response.
189
- # @param [String] quota_user
190
- # Available to use for quota purposes for server-side applications. Can be any
191
- # arbitrary string assigned to a user, but should not exceed 40 characters.
192
- # @param [Google::Apis::RequestOptions] options
193
- # Request-specific options
194
- #
195
- # @yield [result, err] Result & error if block supplied
196
- # @yieldparam result [Google::Apis::CloudbuildV1alpha1::WorkerPool] parsed result object
197
- # @yieldparam err [StandardError] error object if request failed
198
- #
199
- # @return [Google::Apis::CloudbuildV1alpha1::WorkerPool]
200
- #
201
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
202
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
203
- # @raise [Google::Apis::AuthorizationError] Authorization is required
204
- def patch_project_worker_pool(name, worker_pool_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
205
- command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
206
- command.request_representation = Google::Apis::CloudbuildV1alpha1::WorkerPool::Representation
207
- command.request_object = worker_pool_object
208
- command.response_representation = Google::Apis::CloudbuildV1alpha1::WorkerPool::Representation
209
- command.response_class = Google::Apis::CloudbuildV1alpha1::WorkerPool
210
- command.params['name'] = name unless name.nil?
211
- command.query['updateMask'] = update_mask unless update_mask.nil?
212
- command.query['fields'] = fields unless fields.nil?
213
- command.query['quotaUser'] = quota_user unless quota_user.nil?
214
- execute_or_queue_command(command, &block)
215
- end
216
-
217
- protected
218
-
219
- def apply_command_defaults(command)
220
- command.query['key'] = key unless key.nil?
221
- command.query['quotaUser'] = quota_user unless quota_user.nil?
222
- end
223
- end
224
- end
225
- end
226
- end