google-api-client 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/api_names.yaml +395 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +254 -254
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +65 -65
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +220 -220
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +106 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +37 -0
  11. data/generated/google/apis/admin_reports_v1.rb +3 -3
  12. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analytics_v3/service.rb +39 -0
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +920 -920
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  19. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  20. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -13
  22. data/generated/google/apis/androidenterprise_v1/service.rb +3 -3
  23. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  24. data/generated/google/apis/appengine_v1beta5/classes.rb +115 -5
  25. data/generated/google/apis/appengine_v1beta5/representations.rb +37 -0
  26. data/generated/google/apis/appengine_v1beta5/service.rb +12 -9
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +32 -37
  30. data/generated/google/apis/bigquery_v2/service.rb +10 -2
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/calendar_v3/classes.rb +205 -0
  33. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  34. data/generated/google/apis/classroom_v1.rb +22 -25
  35. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  38. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1/classes.rb +164 -163
  40. data/generated/google/apis/cloudbuild_v1/representations.rb +31 -31
  41. data/generated/google/apis/cloudbuild_v1/service.rb +114 -114
  42. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  43. data/generated/google/apis/clouddebugger_v2/classes.rb +687 -687
  44. data/generated/google/apis/clouddebugger_v2/representations.rb +147 -147
  45. data/generated/google/apis/clouddebugger_v2/service.rb +132 -132
  46. data/generated/google/apis/cloudkms_v1.rb +1 -1
  47. data/generated/google/apis/cloudkms_v1/classes.rb +231 -248
  48. data/generated/google/apis/cloudkms_v1/representations.rb +74 -74
  49. data/generated/google/apis/cloudkms_v1/service.rb +228 -228
  50. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +738 -128
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +245 -23
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1293 -249
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +982 -372
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +293 -71
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -277
  59. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  60. data/generated/google/apis/cloudtrace_v1/classes.rb +19 -19
  61. data/generated/google/apis/cloudtrace_v1/representations.rb +2 -2
  62. data/generated/google/apis/cloudtrace_v1/service.rb +30 -30
  63. data/generated/google/apis/compute_beta.rb +1 -1
  64. data/generated/google/apis/compute_beta/classes.rb +116 -0
  65. data/generated/google/apis/compute_beta/representations.rb +48 -0
  66. data/generated/google/apis/compute_beta/service.rb +46 -1
  67. data/generated/google/apis/compute_v1.rb +1 -1
  68. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3276 -3320
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +779 -781
  71. data/generated/google/apis/dataflow_v1b3/service.rb +225 -225
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1221 -1207
  74. data/generated/google/apis/dataproc_v1/representations.rb +255 -253
  75. data/generated/google/apis/dataproc_v1/service.rb +100 -100
  76. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  77. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  78. data/generated/google/apis/dns_v1.rb +1 -1
  79. data/generated/google/apis/dns_v2beta1.rb +1 -1
  80. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2/classes.rb +3 -1
  83. data/generated/google/apis/drive_v3.rb +1 -1
  84. data/generated/google/apis/drive_v3/classes.rb +3 -1
  85. data/generated/google/apis/fusiontables_v2.rb +1 -1
  86. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  87. data/generated/google/apis/games_management_v1management.rb +1 -1
  88. data/generated/google/apis/games_v1.rb +1 -1
  89. data/generated/google/apis/genomics_v1.rb +7 -7
  90. data/generated/google/apis/genomics_v1/classes.rb +959 -959
  91. data/generated/google/apis/genomics_v1/representations.rb +238 -238
  92. data/generated/google/apis/genomics_v1/service.rb +996 -996
  93. data/generated/google/apis/iam_v1.rb +1 -1
  94. data/generated/google/apis/iam_v1/classes.rb +440 -440
  95. data/generated/google/apis/iam_v1/representations.rb +94 -94
  96. data/generated/google/apis/iam_v1/service.rb +170 -173
  97. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  98. data/generated/google/apis/identitytoolkit_v3/classes.rb +55 -0
  99. data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
  100. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  101. data/generated/google/apis/language_v1beta1.rb +1 -1
  102. data/generated/google/apis/language_v1beta1/classes.rb +427 -427
  103. data/generated/google/apis/language_v1beta1/representations.rb +113 -113
  104. data/generated/google/apis/language_v1beta1/service.rb +25 -24
  105. data/generated/google/apis/licensing_v1.rb +2 -2
  106. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  107. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  108. data/generated/google/apis/licensing_v1/service.rb +1 -1
  109. data/generated/google/apis/logging_v2beta1.rb +1 -1
  110. data/generated/google/apis/logging_v2beta1/classes.rb +864 -864
  111. data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
  112. data/generated/google/apis/logging_v2beta1/service.rb +261 -261
  113. data/generated/google/apis/manufacturers_v1.rb +1 -1
  114. data/generated/google/apis/manufacturers_v1/classes.rb +452 -105
  115. data/generated/google/apis/manufacturers_v1/representations.rb +138 -18
  116. data/generated/google/apis/manufacturers_v1/service.rb +11 -11
  117. data/generated/google/apis/mirror_v1.rb +1 -1
  118. data/generated/google/apis/monitoring_v3.rb +7 -7
  119. data/generated/google/apis/monitoring_v3/classes.rb +668 -670
  120. data/generated/google/apis/monitoring_v3/representations.rb +140 -140
  121. data/generated/google/apis/monitoring_v3/service.rb +208 -208
  122. data/generated/google/apis/partners_v2.rb +1 -1
  123. data/generated/google/apis/partners_v2/classes.rb +505 -505
  124. data/generated/google/apis/partners_v2/representations.rb +118 -118
  125. data/generated/google/apis/partners_v2/service.rb +275 -275
  126. data/generated/google/apis/people_v1.rb +1 -1
  127. data/generated/google/apis/people_v1/classes.rb +1037 -1031
  128. data/generated/google/apis/people_v1/representations.rb +247 -246
  129. data/generated/google/apis/people_v1/service.rb +20 -20
  130. data/generated/google/apis/plus_domains_v1.rb +1 -1
  131. data/generated/google/apis/plus_v1.rb +1 -1
  132. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  133. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +392 -392
  134. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +93 -93
  135. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +381 -381
  136. data/generated/google/apis/pubsub_v1.rb +4 -4
  137. data/generated/google/apis/pubsub_v1/classes.rb +131 -132
  138. data/generated/google/apis/pubsub_v1/representations.rb +35 -35
  139. data/generated/google/apis/pubsub_v1/service.rb +399 -408
  140. data/generated/google/apis/reseller_v1.rb +1 -1
  141. data/generated/google/apis/reseller_v1/classes.rb +9 -0
  142. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  143. data/generated/google/apis/script_v1.rb +9 -9
  144. data/generated/google/apis/script_v1/classes.rb +110 -110
  145. data/generated/google/apis/script_v1/representations.rb +26 -26
  146. data/generated/google/apis/sheets_v4.rb +4 -4
  147. data/generated/google/apis/sheets_v4/classes.rb +4329 -4329
  148. data/generated/google/apis/sheets_v4/representations.rb +856 -856
  149. data/generated/google/apis/sheets_v4/service.rb +106 -106
  150. data/generated/google/apis/slides_v1.rb +4 -4
  151. data/generated/google/apis/slides_v1/classes.rb +2923 -2841
  152. data/generated/google/apis/slides_v1/representations.rb +722 -691
  153. data/generated/google/apis/slides_v1/service.rb +58 -15
  154. data/generated/google/apis/speech_v1beta1.rb +1 -1
  155. data/generated/google/apis/speech_v1beta1/classes.rb +191 -191
  156. data/generated/google/apis/speech_v1beta1/representations.rb +57 -57
  157. data/generated/google/apis/speech_v1beta1/service.rb +70 -70
  158. data/generated/google/apis/storage_v1.rb +1 -1
  159. data/generated/google/apis/storage_v1/classes.rb +151 -0
  160. data/generated/google/apis/storage_v1/representations.rb +45 -0
  161. data/generated/google/apis/storage_v1/service.rb +248 -0
  162. data/generated/google/apis/vision_v1.rb +1 -1
  163. data/generated/google/apis/vision_v1/classes.rb +1227 -1221
  164. data/generated/google/apis/vision_v1/representations.rb +217 -215
  165. data/generated/google/apis/webmasters_v3.rb +1 -1
  166. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  167. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  168. data/generated/google/apis/youtube_partner_v1/classes.rb +78 -0
  169. data/generated/google/apis/youtube_partner_v1/representations.rb +34 -0
  170. data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
  171. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  172. data/generated/google/apis/youtubereporting_v1/classes.rb +65 -65
  173. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  174. data/generated/google/apis/youtubereporting_v1/service.rb +111 -111
  175. data/lib/google/apis/version.rb +1 -1
  176. metadata +2 -2
@@ -46,13 +46,13 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class BuildStep
49
+ class HashProp
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class HashProp
55
+ class BuildStep
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
@@ -151,12 +151,12 @@ module Google
151
151
  class Operation
152
152
  # @private
153
153
  class Representation < Google::Apis::Core::JsonRepresentation
154
- property :done, as: 'done'
155
154
  hash :response, as: 'response'
156
155
  property :name, as: 'name'
157
156
  property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
158
157
 
159
158
  hash :metadata, as: 'metadata'
159
+ property :done, as: 'done'
160
160
  end
161
161
  end
162
162
 
@@ -187,24 +187,24 @@ module Google
187
187
  end
188
188
  end
189
189
 
190
- class BuildStep
190
+ class HashProp
191
191
  # @private
192
192
  class Representation < Google::Apis::Core::JsonRepresentation
193
- property :dir, as: 'dir'
194
- collection :wait_for, as: 'waitFor'
195
- collection :env, as: 'env'
196
- collection :args, as: 'args'
197
- property :name, as: 'name'
198
- property :entrypoint, as: 'entrypoint'
199
- property :id, as: 'id'
193
+ property :type, as: 'type'
194
+ property :value, :base64 => true, as: 'value'
200
195
  end
201
196
  end
202
197
 
203
- class HashProp
198
+ class BuildStep
204
199
  # @private
205
200
  class Representation < Google::Apis::Core::JsonRepresentation
206
- property :value, :base64 => true, as: 'value'
207
- property :type, as: 'type'
201
+ property :entrypoint, as: 'entrypoint'
202
+ property :id, as: 'id'
203
+ property :dir, as: 'dir'
204
+ collection :env, as: 'env'
205
+ collection :wait_for, as: 'waitFor'
206
+ collection :args, as: 'args'
207
+ property :name, as: 'name'
208
208
  end
209
209
  end
210
210
 
@@ -234,29 +234,36 @@ module Google
234
234
  class BuildTrigger
235
235
  # @private
236
236
  class Representation < Google::Apis::Core::JsonRepresentation
237
- property :filename, as: 'filename'
237
+ property :disabled, as: 'disabled'
238
+ property :create_time, as: 'createTime'
238
239
  property :trigger_template, as: 'triggerTemplate', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
239
240
 
241
+ property :filename, as: 'filename'
240
242
  property :id, as: 'id'
241
243
  property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
242
244
 
243
245
  hash :substitutions, as: 'substitutions'
244
246
  property :description, as: 'description'
245
- property :disabled, as: 'disabled'
246
- property :create_time, as: 'createTime'
247
247
  end
248
248
  end
249
249
 
250
250
  class Build
251
251
  # @private
252
252
  class Representation < Google::Apis::Core::JsonRepresentation
253
- property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
253
+ property :create_time, as: 'createTime'
254
+ property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
254
255
 
256
+ collection :images, as: 'images'
257
+ property :project_id, as: 'projectId'
258
+ property :log_url, as: 'logUrl'
259
+ property :finish_time, as: 'finishTime'
255
260
  property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
256
261
 
257
- property :status_detail, as: 'statusDetail'
258
- property :status, as: 'status'
262
+ property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
263
+
259
264
  property :timeout, as: 'timeout'
265
+ property :status, as: 'status'
266
+ property :status_detail, as: 'statusDetail'
260
267
  property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
261
268
 
262
269
  property :logs_bucket, as: 'logsBucket'
@@ -264,15 +271,8 @@ module Google
264
271
 
265
272
  property :build_trigger_id, as: 'buildTriggerId'
266
273
  property :id, as: 'id'
267
- hash :substitutions, as: 'substitutions'
268
274
  property :start_time, as: 'startTime'
269
- property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
270
-
271
- property :create_time, as: 'createTime'
272
- collection :images, as: 'images'
273
- property :project_id, as: 'projectId'
274
- property :finish_time, as: 'finishTime'
275
- property :log_url, as: 'logUrl'
275
+ hash :substitutions, as: 'substitutions'
276
276
  end
277
277
  end
278
278
 
@@ -330,9 +330,9 @@ module Google
330
330
  class Results
331
331
  # @private
332
332
  class Representation < Google::Apis::Core::JsonRepresentation
333
+ collection :build_step_images, as: 'buildStepImages'
333
334
  collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
334
335
 
335
- collection :build_step_images, as: 'buildStepImages'
336
336
  end
337
337
  end
338
338
 
@@ -347,12 +347,12 @@ module Google
347
347
  class SourceProvenance
348
348
  # @private
349
349
  class Representation < Google::Apis::Core::JsonRepresentation
350
- property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
351
-
352
350
  hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
353
351
 
354
352
  property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
355
353
 
354
+ property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
355
+
356
356
  end
357
357
  end
358
358
 
@@ -46,53 +46,17 @@ module Google
46
46
  super('https://cloudbuild.googleapis.com/', '')
47
47
  end
48
48
 
49
- # Starts a build with the specified configuration.
50
- # The long-running Operation returned by this method will include the ID of
51
- # the build, which can be passed to GetBuild to determine its status (e.g.,
52
- # success or failure).
53
- # @param [String] project_id
54
- # ID of the project.
55
- # @param [Google::Apis::CloudbuildV1::Build] build_object
56
- # @param [String] fields
57
- # Selector specifying which fields to include in a partial response.
58
- # @param [String] quota_user
59
- # Available to use for quota purposes for server-side applications. Can be any
60
- # arbitrary string assigned to a user, but should not exceed 40 characters.
61
- # @param [Google::Apis::RequestOptions] options
62
- # Request-specific options
63
- #
64
- # @yield [result, err] Result & error if block supplied
65
- # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
66
- # @yieldparam err [StandardError] error object if request failed
67
- #
68
- # @return [Google::Apis::CloudbuildV1::Operation]
69
- #
70
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
- # @raise [Google::Apis::AuthorizationError] Authorization is required
73
- def create_project_build(project_id, build_object = nil, fields: nil, quota_user: nil, options: nil, &block)
74
- command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
75
- command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
76
- command.request_object = build_object
77
- command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
78
- command.response_class = Google::Apis::CloudbuildV1::Operation
79
- command.params['projectId'] = project_id unless project_id.nil?
80
- command.query['fields'] = fields unless fields.nil?
81
- command.query['quotaUser'] = quota_user unless quota_user.nil?
82
- execute_or_queue_command(command, &block)
83
- end
84
-
85
49
  # Cancels a requested build in progress.
86
50
  # @param [String] project_id
87
51
  # ID of the project.
88
52
  # @param [String] id
89
53
  # ID of the build.
90
54
  # @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object
91
- # @param [String] fields
92
- # Selector specifying which fields to include in a partial response.
93
55
  # @param [String] quota_user
94
56
  # Available to use for quota purposes for server-side applications. Can be any
95
57
  # arbitrary string assigned to a user, but should not exceed 40 characters.
58
+ # @param [String] fields
59
+ # Selector specifying which fields to include in a partial response.
96
60
  # @param [Google::Apis::RequestOptions] options
97
61
  # Request-specific options
98
62
  #
@@ -105,7 +69,7 @@ module Google
105
69
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
106
70
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
107
71
  # @raise [Google::Apis::AuthorizationError] Authorization is required
108
- def cancel_build(project_id, id, cancel_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
72
+ def cancel_build(project_id, id, cancel_build_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
109
73
  command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
110
74
  command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
111
75
  command.request_object = cancel_build_request_object
@@ -113,8 +77,8 @@ module Google
113
77
  command.response_class = Google::Apis::CloudbuildV1::Build
114
78
  command.params['projectId'] = project_id unless project_id.nil?
115
79
  command.params['id'] = id unless id.nil?
116
- command.query['fields'] = fields unless fields.nil?
117
80
  command.query['quotaUser'] = quota_user unless quota_user.nil?
81
+ command.query['fields'] = fields unless fields.nil?
118
82
  execute_or_queue_command(command, &block)
119
83
  end
120
84
 
@@ -125,11 +89,11 @@ module Google
125
89
  # ID of the project.
126
90
  # @param [String] id
127
91
  # ID of the build.
128
- # @param [String] fields
129
- # Selector specifying which fields to include in a partial response.
130
92
  # @param [String] quota_user
131
93
  # Available to use for quota purposes for server-side applications. Can be any
132
94
  # arbitrary string assigned to a user, but should not exceed 40 characters.
95
+ # @param [String] fields
96
+ # Selector specifying which fields to include in a partial response.
133
97
  # @param [Google::Apis::RequestOptions] options
134
98
  # Request-specific options
135
99
  #
@@ -142,14 +106,14 @@ module Google
142
106
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
143
107
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
144
108
  # @raise [Google::Apis::AuthorizationError] Authorization is required
145
- def get_project_build(project_id, id, fields: nil, quota_user: nil, options: nil, &block)
109
+ def get_project_build(project_id, id, quota_user: nil, fields: nil, options: nil, &block)
146
110
  command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
147
111
  command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
148
112
  command.response_class = Google::Apis::CloudbuildV1::Build
149
113
  command.params['projectId'] = project_id unless project_id.nil?
150
114
  command.params['id'] = id unless id.nil?
151
- command.query['fields'] = fields unless fields.nil?
152
115
  command.query['quotaUser'] = quota_user unless quota_user.nil?
116
+ command.query['fields'] = fields unless fields.nil?
153
117
  execute_or_queue_command(command, &block)
154
118
  end
155
119
 
@@ -158,17 +122,17 @@ module Google
158
122
  # successfully or unsuccessfully.
159
123
  # @param [String] project_id
160
124
  # ID of the project.
125
+ # @param [String] filter
126
+ # The raw filter text to constrain the results.
161
127
  # @param [String] page_token
162
128
  # Token to provide to skip to a particular spot in the list.
163
129
  # @param [Fixnum] page_size
164
130
  # Number of results to return in the list.
165
- # @param [String] filter
166
- # The raw filter text to constrain the results.
167
- # @param [String] fields
168
- # Selector specifying which fields to include in a partial response.
169
131
  # @param [String] quota_user
170
132
  # Available to use for quota purposes for server-side applications. Can be any
171
133
  # arbitrary string assigned to a user, but should not exceed 40 characters.
134
+ # @param [String] fields
135
+ # Selector specifying which fields to include in a partial response.
172
136
  # @param [Google::Apis::RequestOptions] options
173
137
  # Request-specific options
174
138
  #
@@ -181,16 +145,86 @@ module Google
181
145
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
182
146
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
183
147
  # @raise [Google::Apis::AuthorizationError] Authorization is required
184
- def list_project_builds(project_id, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
148
+ def list_project_builds(project_id, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
185
149
  command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
186
150
  command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
187
151
  command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
188
152
  command.params['projectId'] = project_id unless project_id.nil?
153
+ command.query['filter'] = filter unless filter.nil?
189
154
  command.query['pageToken'] = page_token unless page_token.nil?
190
155
  command.query['pageSize'] = page_size unless page_size.nil?
191
- command.query['filter'] = filter unless filter.nil?
156
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
192
157
  command.query['fields'] = fields unless fields.nil?
158
+ execute_or_queue_command(command, &block)
159
+ end
160
+
161
+ # Starts a build with the specified configuration.
162
+ # The long-running Operation returned by this method will include the ID of
163
+ # the build, which can be passed to GetBuild to determine its status (e.g.,
164
+ # success or failure).
165
+ # @param [String] project_id
166
+ # ID of the project.
167
+ # @param [Google::Apis::CloudbuildV1::Build] build_object
168
+ # @param [String] quota_user
169
+ # Available to use for quota purposes for server-side applications. Can be any
170
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
171
+ # @param [String] fields
172
+ # Selector specifying which fields to include in a partial response.
173
+ # @param [Google::Apis::RequestOptions] options
174
+ # Request-specific options
175
+ #
176
+ # @yield [result, err] Result & error if block supplied
177
+ # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object
178
+ # @yieldparam err [StandardError] error object if request failed
179
+ #
180
+ # @return [Google::Apis::CloudbuildV1::Operation]
181
+ #
182
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
183
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
184
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
185
+ def create_project_build(project_id, build_object = nil, quota_user: nil, fields: nil, options: nil, &block)
186
+ command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
187
+ command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
188
+ command.request_object = build_object
189
+ command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
190
+ command.response_class = Google::Apis::CloudbuildV1::Operation
191
+ command.params['projectId'] = project_id unless project_id.nil?
192
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
193
+ command.query['fields'] = fields unless fields.nil?
194
+ execute_or_queue_command(command, &block)
195
+ end
196
+
197
+ # Creates a new BuildTrigger.
198
+ # This API is experimental.
199
+ # @param [String] project_id
200
+ # ID of the project for which to configure automatic builds.
201
+ # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
202
+ # @param [String] quota_user
203
+ # Available to use for quota purposes for server-side applications. Can be any
204
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
205
+ # @param [String] fields
206
+ # Selector specifying which fields to include in a partial response.
207
+ # @param [Google::Apis::RequestOptions] options
208
+ # Request-specific options
209
+ #
210
+ # @yield [result, err] Result & error if block supplied
211
+ # @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
212
+ # @yieldparam err [StandardError] error object if request failed
213
+ #
214
+ # @return [Google::Apis::CloudbuildV1::BuildTrigger]
215
+ #
216
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
217
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
218
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
219
+ def create_project_trigger(project_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
220
+ command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
221
+ command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
222
+ command.request_object = build_trigger_object
223
+ command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
224
+ command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
225
+ command.params['projectId'] = project_id unless project_id.nil?
193
226
  command.query['quotaUser'] = quota_user unless quota_user.nil?
227
+ command.query['fields'] = fields unless fields.nil?
194
228
  execute_or_queue_command(command, &block)
195
229
  end
196
230
 
@@ -200,11 +234,11 @@ module Google
200
234
  # ID of the project that owns the trigger.
201
235
  # @param [String] trigger_id
202
236
  # ID of the BuildTrigger to delete.
203
- # @param [String] fields
204
- # Selector specifying which fields to include in a partial response.
205
237
  # @param [String] quota_user
206
238
  # Available to use for quota purposes for server-side applications. Can be any
207
239
  # arbitrary string assigned to a user, but should not exceed 40 characters.
240
+ # @param [String] fields
241
+ # Selector specifying which fields to include in a partial response.
208
242
  # @param [Google::Apis::RequestOptions] options
209
243
  # Request-specific options
210
244
  #
@@ -217,14 +251,14 @@ module Google
217
251
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
218
252
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
219
253
  # @raise [Google::Apis::AuthorizationError] Authorization is required
220
- def delete_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
254
+ def delete_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
221
255
  command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
222
256
  command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
223
257
  command.response_class = Google::Apis::CloudbuildV1::Empty
224
258
  command.params['projectId'] = project_id unless project_id.nil?
225
259
  command.params['triggerId'] = trigger_id unless trigger_id.nil?
226
- command.query['fields'] = fields unless fields.nil?
227
260
  command.query['quotaUser'] = quota_user unless quota_user.nil?
261
+ command.query['fields'] = fields unless fields.nil?
228
262
  execute_or_queue_command(command, &block)
229
263
  end
230
264
 
@@ -234,11 +268,11 @@ module Google
234
268
  # ID of the project that owns the trigger.
235
269
  # @param [String] trigger_id
236
270
  # ID of the BuildTrigger to get.
237
- # @param [String] fields
238
- # Selector specifying which fields to include in a partial response.
239
271
  # @param [String] quota_user
240
272
  # Available to use for quota purposes for server-side applications. Can be any
241
273
  # arbitrary string assigned to a user, but should not exceed 40 characters.
274
+ # @param [String] fields
275
+ # Selector specifying which fields to include in a partial response.
242
276
  # @param [Google::Apis::RequestOptions] options
243
277
  # Request-specific options
244
278
  #
@@ -251,14 +285,14 @@ module Google
251
285
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
252
286
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
253
287
  # @raise [Google::Apis::AuthorizationError] Authorization is required
254
- def get_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
288
+ def get_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
255
289
  command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
256
290
  command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
257
291
  command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
258
292
  command.params['projectId'] = project_id unless project_id.nil?
259
293
  command.params['triggerId'] = trigger_id unless trigger_id.nil?
260
- command.query['fields'] = fields unless fields.nil?
261
294
  command.query['quotaUser'] = quota_user unless quota_user.nil?
295
+ command.query['fields'] = fields unless fields.nil?
262
296
  execute_or_queue_command(command, &block)
263
297
  end
264
298
 
@@ -266,11 +300,11 @@ module Google
266
300
  # This API is experimental.
267
301
  # @param [String] project_id
268
302
  # ID of the project for which to list BuildTriggers.
269
- # @param [String] fields
270
- # Selector specifying which fields to include in a partial response.
271
303
  # @param [String] quota_user
272
304
  # Available to use for quota purposes for server-side applications. Can be any
273
305
  # arbitrary string assigned to a user, but should not exceed 40 characters.
306
+ # @param [String] fields
307
+ # Selector specifying which fields to include in a partial response.
274
308
  # @param [Google::Apis::RequestOptions] options
275
309
  # Request-specific options
276
310
  #
@@ -283,13 +317,13 @@ module Google
283
317
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
284
318
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
285
319
  # @raise [Google::Apis::AuthorizationError] Authorization is required
286
- def list_project_triggers(project_id, fields: nil, quota_user: nil, options: nil, &block)
320
+ def list_project_triggers(project_id, quota_user: nil, fields: nil, options: nil, &block)
287
321
  command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
288
322
  command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
289
323
  command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
290
324
  command.params['projectId'] = project_id unless project_id.nil?
291
- command.query['fields'] = fields unless fields.nil?
292
325
  command.query['quotaUser'] = quota_user unless quota_user.nil?
326
+ command.query['fields'] = fields unless fields.nil?
293
327
  execute_or_queue_command(command, &block)
294
328
  end
295
329
 
@@ -300,11 +334,11 @@ module Google
300
334
  # @param [String] trigger_id
301
335
  # ID of the BuildTrigger to update.
302
336
  # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
303
- # @param [String] fields
304
- # Selector specifying which fields to include in a partial response.
305
337
  # @param [String] quota_user
306
338
  # Available to use for quota purposes for server-side applications. Can be any
307
339
  # arbitrary string assigned to a user, but should not exceed 40 characters.
340
+ # @param [String] fields
341
+ # Selector specifying which fields to include in a partial response.
308
342
  # @param [Google::Apis::RequestOptions] options
309
343
  # Request-specific options
310
344
  #
@@ -317,7 +351,7 @@ module Google
317
351
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
318
352
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
319
353
  # @raise [Google::Apis::AuthorizationError] Authorization is required
320
- def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
354
+ def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
321
355
  command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
322
356
  command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
323
357
  command.request_object = build_trigger_object
@@ -325,42 +359,8 @@ module Google
325
359
  command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
326
360
  command.params['projectId'] = project_id unless project_id.nil?
327
361
  command.params['triggerId'] = trigger_id unless trigger_id.nil?
328
- command.query['fields'] = fields unless fields.nil?
329
362
  command.query['quotaUser'] = quota_user unless quota_user.nil?
330
- execute_or_queue_command(command, &block)
331
- end
332
-
333
- # Creates a new BuildTrigger.
334
- # This API is experimental.
335
- # @param [String] project_id
336
- # ID of the project for which to configure automatic builds.
337
- # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
338
- # @param [String] fields
339
- # Selector specifying which fields to include in a partial response.
340
- # @param [String] quota_user
341
- # Available to use for quota purposes for server-side applications. Can be any
342
- # arbitrary string assigned to a user, but should not exceed 40 characters.
343
- # @param [Google::Apis::RequestOptions] options
344
- # Request-specific options
345
- #
346
- # @yield [result, err] Result & error if block supplied
347
- # @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
348
- # @yieldparam err [StandardError] error object if request failed
349
- #
350
- # @return [Google::Apis::CloudbuildV1::BuildTrigger]
351
- #
352
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
353
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
354
- # @raise [Google::Apis::AuthorizationError] Authorization is required
355
- def create_project_trigger(project_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
356
- command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
357
- command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
358
- command.request_object = build_trigger_object
359
- command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
360
- command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
361
- command.params['projectId'] = project_id unless project_id.nil?
362
363
  command.query['fields'] = fields unless fields.nil?
363
- command.query['quotaUser'] = quota_user unless quota_user.nil?
364
364
  execute_or_queue_command(command, &block)
365
365
  end
366
366
 
@@ -377,11 +377,11 @@ module Google
377
377
  # @param [String] name
378
378
  # The name of the operation resource to be cancelled.
379
379
  # @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
380
- # @param [String] fields
381
- # Selector specifying which fields to include in a partial response.
382
380
  # @param [String] quota_user
383
381
  # Available to use for quota purposes for server-side applications. Can be any
384
382
  # arbitrary string assigned to a user, but should not exceed 40 characters.
383
+ # @param [String] fields
384
+ # Selector specifying which fields to include in a partial response.
385
385
  # @param [Google::Apis::RequestOptions] options
386
386
  # Request-specific options
387
387
  #
@@ -394,15 +394,15 @@ module Google
394
394
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
395
395
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
396
396
  # @raise [Google::Apis::AuthorizationError] Authorization is required
397
- def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
397
+ def cancel_operation(name, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
398
398
  command = make_simple_command(:post, 'v1/{+name}:cancel', options)
399
399
  command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
400
400
  command.request_object = cancel_operation_request_object
401
401
  command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
402
402
  command.response_class = Google::Apis::CloudbuildV1::Empty
403
403
  command.params['name'] = name unless name.nil?
404
- command.query['fields'] = fields unless fields.nil?
405
404
  command.query['quotaUser'] = quota_user unless quota_user.nil?
405
+ command.query['fields'] = fields unless fields.nil?
406
406
  execute_or_queue_command(command, &block)
407
407
  end
408
408
 
@@ -412,17 +412,17 @@ module Google
412
412
  # to use different resource name schemes, such as `users/*/operations`.
413
413
  # @param [String] name
414
414
  # The name of the operation collection.
415
+ # @param [String] filter
416
+ # The standard list filter.
415
417
  # @param [String] page_token
416
418
  # The standard list page token.
417
419
  # @param [Fixnum] page_size
418
420
  # The standard list page size.
419
- # @param [String] filter
420
- # The standard list filter.
421
- # @param [String] fields
422
- # Selector specifying which fields to include in a partial response.
423
421
  # @param [String] quota_user
424
422
  # Available to use for quota purposes for server-side applications. Can be any
425
423
  # arbitrary string assigned to a user, but should not exceed 40 characters.
424
+ # @param [String] fields
425
+ # Selector specifying which fields to include in a partial response.
426
426
  # @param [Google::Apis::RequestOptions] options
427
427
  # Request-specific options
428
428
  #
@@ -435,16 +435,16 @@ module Google
435
435
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
436
436
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
437
437
  # @raise [Google::Apis::AuthorizationError] Authorization is required
438
- def list_operations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
438
+ def list_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
439
439
  command = make_simple_command(:get, 'v1/{+name}', options)
440
440
  command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
441
441
  command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
442
442
  command.params['name'] = name unless name.nil?
443
+ command.query['filter'] = filter unless filter.nil?
443
444
  command.query['pageToken'] = page_token unless page_token.nil?
444
445
  command.query['pageSize'] = page_size unless page_size.nil?
445
- command.query['filter'] = filter unless filter.nil?
446
- command.query['fields'] = fields unless fields.nil?
447
446
  command.query['quotaUser'] = quota_user unless quota_user.nil?
447
+ command.query['fields'] = fields unless fields.nil?
448
448
  execute_or_queue_command(command, &block)
449
449
  end
450
450
 
@@ -453,11 +453,11 @@ module Google
453
453
  # service.
454
454
  # @param [String] name
455
455
  # The name of the operation resource.
456
- # @param [String] fields
457
- # Selector specifying which fields to include in a partial response.
458
456
  # @param [String] quota_user
459
457
  # Available to use for quota purposes for server-side applications. Can be any
460
458
  # arbitrary string assigned to a user, but should not exceed 40 characters.
459
+ # @param [String] fields
460
+ # Selector specifying which fields to include in a partial response.
461
461
  # @param [Google::Apis::RequestOptions] options
462
462
  # Request-specific options
463
463
  #
@@ -470,13 +470,13 @@ module Google
470
470
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
471
471
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
472
472
  # @raise [Google::Apis::AuthorizationError] Authorization is required
473
- def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
473
+ def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
474
474
  command = make_simple_command(:get, 'v1/{+name}', options)
475
475
  command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
476
476
  command.response_class = Google::Apis::CloudbuildV1::Operation
477
477
  command.params['name'] = name unless name.nil?
478
- command.query['fields'] = fields unless fields.nil?
479
478
  command.query['quotaUser'] = quota_user unless quota_user.nil?
479
+ command.query['fields'] = fields unless fields.nil?
480
480
  execute_or_queue_command(command, &block)
481
481
  end
482
482