google-api-client 0.13.0 → 0.13.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.
Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
  11. data/generated/google/apis/admin_directory_v1.rb +1 -1
  12. data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
  13. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  14. data/generated/google/apis/admin_directory_v1/service.rb +4 -1
  15. data/generated/google/apis/admin_reports_v1.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
  21. data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
  22. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +4 -4
  24. data/generated/google/apis/appengine_v1/classes.rb +747 -747
  25. data/generated/google/apis/appengine_v1/representations.rb +158 -158
  26. data/generated/google/apis/appengine_v1/service.rb +214 -214
  27. data/generated/google/apis/appsactivity_v1.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +6 -0
  31. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/classroom_v1.rb +7 -7
  34. data/generated/google/apis/classroom_v1/classes.rb +517 -515
  35. data/generated/google/apis/classroom_v1/representations.rb +147 -147
  36. data/generated/google/apis/classroom_v1/service.rb +1144 -1143
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
  40. data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
  41. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  42. data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
  43. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  44. data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
  45. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  46. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
  47. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
  48. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
  49. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  50. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  51. data/generated/google/apis/cloudkms_v1.rb +1 -1
  52. data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
  53. data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
  54. data/generated/google/apis/cloudkms_v1/service.rb +276 -276
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
  63. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  66. data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +82 -6
  69. data/generated/google/apis/compute_beta/representations.rb +4 -0
  70. data/generated/google/apis/compute_beta/service.rb +1177 -834
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +371 -1
  73. data/generated/google/apis/compute_v1/representations.rb +139 -0
  74. data/generated/google/apis/compute_v1/service.rb +257 -9
  75. data/generated/google/apis/container_v1.rb +1 -1
  76. data/generated/google/apis/container_v1/classes.rb +1122 -826
  77. data/generated/google/apis/container_v1/representations.rb +279 -135
  78. data/generated/google/apis/container_v1/service.rb +440 -98
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +3 -1
  81. data/generated/google/apis/customsearch_v1.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  83. data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
  84. data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
  85. data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
  86. data/generated/google/apis/dataproc_v1.rb +1 -1
  87. data/generated/google/apis/dataproc_v1/classes.rb +450 -431
  88. data/generated/google/apis/dataproc_v1/representations.rb +92 -92
  89. data/generated/google/apis/dataproc_v1/service.rb +200 -200
  90. data/generated/google/apis/datastore_v1.rb +4 -4
  91. data/generated/google/apis/datastore_v1/classes.rb +397 -397
  92. data/generated/google/apis/datastore_v1/representations.rb +100 -100
  93. data/generated/google/apis/datastore_v1/service.rb +62 -62
  94. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  95. data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
  96. data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
  97. data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
  98. data/generated/google/apis/dns_v1.rb +1 -1
  99. data/generated/google/apis/dns_v2beta1.rb +1 -1
  100. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  101. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
  102. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  103. data/generated/google/apis/drive_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2/service.rb +1 -1
  105. data/generated/google/apis/drive_v3.rb +1 -1
  106. data/generated/google/apis/drive_v3/service.rb +1 -1
  107. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  108. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
  109. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
  110. data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
  111. data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
  112. data/generated/google/apis/firebaserules_v1/service.rb +151 -151
  113. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  114. data/generated/google/apis/games_management_v1management.rb +1 -1
  115. data/generated/google/apis/games_v1.rb +1 -1
  116. data/generated/google/apis/genomics_v1.rb +9 -9
  117. data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
  118. data/generated/google/apis/genomics_v1/representations.rb +306 -306
  119. data/generated/google/apis/genomics_v1/service.rb +1172 -1172
  120. data/generated/google/apis/gmail_v1.rb +1 -1
  121. data/generated/google/apis/iam_v1.rb +1 -1
  122. data/generated/google/apis/iam_v1/classes.rb +243 -243
  123. data/generated/google/apis/iam_v1/representations.rb +79 -79
  124. data/generated/google/apis/iam_v1/service.rb +137 -137
  125. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  126. data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
  127. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  128. data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
  129. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  130. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  131. data/generated/google/apis/language_v1.rb +1 -1
  132. data/generated/google/apis/language_v1/classes.rb +451 -451
  133. data/generated/google/apis/language_v1/representations.rb +103 -103
  134. data/generated/google/apis/language_v1/service.rb +49 -49
  135. data/generated/google/apis/language_v1beta1.rb +1 -1
  136. data/generated/google/apis/language_v1beta1/classes.rb +459 -459
  137. data/generated/google/apis/language_v1beta1/representations.rb +110 -110
  138. data/generated/google/apis/language_v1beta1/service.rb +43 -43
  139. data/generated/google/apis/logging_v2.rb +8 -8
  140. data/generated/google/apis/logging_v2/classes.rb +915 -915
  141. data/generated/google/apis/logging_v2/representations.rb +142 -142
  142. data/generated/google/apis/logging_v2/service.rb +415 -415
  143. data/generated/google/apis/logging_v2beta1.rb +8 -8
  144. data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
  145. data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
  146. data/generated/google/apis/logging_v2beta1/service.rb +221 -221
  147. data/generated/google/apis/manufacturers_v1.rb +1 -1
  148. data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
  149. data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
  150. data/generated/google/apis/manufacturers_v1/service.rb +101 -4
  151. data/generated/google/apis/ml_v1.rb +1 -1
  152. data/generated/google/apis/ml_v1/classes.rb +709 -673
  153. data/generated/google/apis/ml_v1/representations.rb +154 -151
  154. data/generated/google/apis/ml_v1/service.rb +341 -354
  155. data/generated/google/apis/monitoring_v3.rb +6 -6
  156. data/generated/google/apis/monitoring_v3/classes.rb +869 -869
  157. data/generated/google/apis/monitoring_v3/representations.rb +171 -171
  158. data/generated/google/apis/monitoring_v3/service.rb +340 -340
  159. data/generated/google/apis/partners_v2.rb +1 -1
  160. data/generated/google/apis/partners_v2/classes.rb +1569 -1569
  161. data/generated/google/apis/partners_v2/representations.rb +256 -256
  162. data/generated/google/apis/partners_v2/service.rb +530 -530
  163. data/generated/google/apis/people_v1.rb +7 -7
  164. data/generated/google/apis/people_v1/classes.rb +1287 -946
  165. data/generated/google/apis/people_v1/representations.rb +355 -203
  166. data/generated/google/apis/people_v1/service.rb +409 -32
  167. data/generated/google/apis/plus_domains_v1.rb +1 -1
  168. data/generated/google/apis/plus_v1.rb +1 -1
  169. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  170. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
  171. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
  172. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
  173. data/generated/google/apis/pubsub_v1.rb +4 -4
  174. data/generated/google/apis/pubsub_v1/classes.rb +286 -287
  175. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  176. data/generated/google/apis/pubsub_v1/service.rb +178 -178
  177. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  178. data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
  179. data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
  180. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  181. data/generated/google/apis/script_v1.rb +4 -4
  182. data/generated/google/apis/script_v1/classes.rb +172 -172
  183. data/generated/google/apis/script_v1/representations.rb +41 -41
  184. data/generated/google/apis/script_v1/service.rb +6 -6
  185. data/generated/google/apis/searchconsole_v1.rb +1 -1
  186. data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
  187. data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
  188. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  189. data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
  190. data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
  191. data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
  192. data/generated/google/apis/servicemanagement_v1.rb +6 -6
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
  194. data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
  195. data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
  196. data/generated/google/apis/serviceuser_v1.rb +1 -1
  197. data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
  198. data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
  199. data/generated/google/apis/serviceuser_v1/service.rb +59 -59
  200. data/generated/google/apis/sheets_v4.rb +5 -5
  201. data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
  202. data/generated/google/apis/sheets_v4/representations.rb +957 -940
  203. data/generated/google/apis/sheets_v4/service.rb +175 -175
  204. data/generated/google/apis/slides_v1.rb +1 -1
  205. data/generated/google/apis/slides_v1/classes.rb +2932 -2905
  206. data/generated/google/apis/slides_v1/representations.rb +709 -694
  207. data/generated/google/apis/slides_v1/service.rb +50 -50
  208. data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
  209. data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
  210. data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
  211. data/generated/google/apis/spanner_v1.rb +7 -1
  212. data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
  213. data/generated/google/apis/spanner_v1/representations.rb +342 -323
  214. data/generated/google/apis/spanner_v1/service.rb +502 -492
  215. data/generated/google/apis/speech_v1beta1.rb +1 -1
  216. data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
  217. data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
  218. data/generated/google/apis/speech_v1beta1/service.rb +91 -91
  219. data/generated/google/apis/storage_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  221. data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
  222. data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
  223. data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
  224. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  225. data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
  226. data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
  227. data/generated/google/apis/translate_v2/classes.rb +107 -107
  228. data/generated/google/apis/translate_v2/representations.rb +49 -49
  229. data/generated/google/apis/translate_v2/service.rb +81 -81
  230. data/generated/google/apis/vision_v1.rb +4 -1
  231. data/generated/google/apis/vision_v1/classes.rb +527 -527
  232. data/generated/google/apis/vision_v1/representations.rb +115 -115
  233. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  234. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  235. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  236. data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
  237. data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
  238. data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
  239. data/lib/google/apis/version.rb +1 -1
  240. data/samples/cli/lib/samples/analytics.rb +2 -2
  241. metadata +2 -2
@@ -22,190 +22,136 @@ module Google
22
22
  module Apis
23
23
  module CloudbuildV1
24
24
 
25
- class CancelBuildRequest
25
+ class BuildOperationMetadata
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class ListBuildsResponse
31
+ class SourceProvenance
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class ListOperationsResponse
37
+ class CancelOperationRequest
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class Source
43
+ class ListBuildTriggersResponse
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class BuildOptions
49
+ class Operation
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 StorageSource
55
+ class BuiltImage
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class Results
61
+ class HashProp
62
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
63
 
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
- class BuildOperationMetadata
67
+ class RepoSource
68
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
69
 
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
- class SourceProvenance
73
+ class BuildStep
74
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
75
 
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
- class CancelOperationRequest
79
+ class FileHashes
80
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
81
 
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
- class Operation
85
+ class Secret
86
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
87
 
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
- class ListBuildTriggersResponse
91
+ class Status
92
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
93
 
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
- class BuiltImage
97
+ class Empty
98
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
99
 
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
- class BuildStep
103
+ class BuildTrigger
104
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
105
 
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
- class RepoSource
109
+ class Build
110
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
111
 
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
- class HashProp
115
+ class CancelBuildRequest
116
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
117
 
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
- class FileHashes
121
+ class ListBuildsResponse
122
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
123
 
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
- class Status
127
+ class ListOperationsResponse
128
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
129
 
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
- class Empty
133
+ class Source
134
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
135
 
136
136
  include Google::Apis::Core::JsonObjectSupport
137
137
  end
138
138
 
139
- class BuildTrigger
139
+ class BuildOptions
140
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
141
 
142
142
  include Google::Apis::Core::JsonObjectSupport
143
143
  end
144
144
 
145
- class Build
145
+ class StorageSource
146
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
147
 
148
148
  include Google::Apis::Core::JsonObjectSupport
149
149
  end
150
150
 
151
- class CancelBuildRequest
152
- # @private
153
- class Representation < Google::Apis::Core::JsonRepresentation
154
- end
155
- end
156
-
157
- class ListBuildsResponse
158
- # @private
159
- class Representation < Google::Apis::Core::JsonRepresentation
160
- property :next_page_token, as: 'nextPageToken'
161
- collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
162
-
163
- end
164
- end
165
-
166
- class ListOperationsResponse
167
- # @private
168
- class Representation < Google::Apis::Core::JsonRepresentation
169
- collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1::Operation, decorator: Google::Apis::CloudbuildV1::Operation::Representation
170
-
171
- property :next_page_token, as: 'nextPageToken'
172
- end
173
- end
174
-
175
- class Source
176
- # @private
177
- class Representation < Google::Apis::Core::JsonRepresentation
178
- property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
179
-
180
- property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
181
-
182
- end
183
- end
184
-
185
- class BuildOptions
186
- # @private
187
- class Representation < Google::Apis::Core::JsonRepresentation
188
- collection :source_provenance_hash, as: 'sourceProvenanceHash'
189
- property :requested_verify_option, as: 'requestedVerifyOption'
190
- end
191
- end
192
-
193
- class StorageSource
194
- # @private
195
- class Representation < Google::Apis::Core::JsonRepresentation
196
- property :generation, :numeric_string => true, as: 'generation'
197
- property :bucket, as: 'bucket'
198
- property :object, as: 'object'
199
- end
200
- end
201
-
202
151
  class Results
203
- # @private
204
- class Representation < Google::Apis::Core::JsonRepresentation
205
- collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
206
153
 
207
- collection :build_step_images, as: 'buildStepImages'
208
- end
154
+ include Google::Apis::Core::JsonObjectSupport
209
155
  end
210
156
 
211
157
  class BuildOperationMetadata
@@ -219,12 +165,12 @@ module Google
219
165
  class SourceProvenance
220
166
  # @private
221
167
  class Representation < Google::Apis::Core::JsonRepresentation
222
- property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
223
-
224
168
  property :resolved_storage_source, as: 'resolvedStorageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
225
169
 
226
170
  hash :file_hashes, as: 'fileHashes', class: Google::Apis::CloudbuildV1::FileHashes, decorator: Google::Apis::CloudbuildV1::FileHashes::Representation
227
171
 
172
+ property :resolved_repo_source, as: 'resolvedRepoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
173
+
228
174
  end
229
175
  end
230
176
 
@@ -234,23 +180,23 @@ module Google
234
180
  end
235
181
  end
236
182
 
237
- class Operation
183
+ class ListBuildTriggersResponse
238
184
  # @private
239
185
  class Representation < Google::Apis::Core::JsonRepresentation
240
- property :done, as: 'done'
241
- hash :response, as: 'response'
242
- property :name, as: 'name'
243
- property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
186
+ collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
244
187
 
245
- hash :metadata, as: 'metadata'
246
188
  end
247
189
  end
248
190
 
249
- class ListBuildTriggersResponse
191
+ class Operation
250
192
  # @private
251
193
  class Representation < Google::Apis::Core::JsonRepresentation
252
- collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
194
+ hash :response, as: 'response'
195
+ property :name, as: 'name'
196
+ property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
253
197
 
198
+ hash :metadata, as: 'metadata'
199
+ property :done, as: 'done'
254
200
  end
255
201
  end
256
202
 
@@ -262,35 +208,36 @@ module Google
262
208
  end
263
209
  end
264
210
 
265
- class BuildStep
211
+ class HashProp
266
212
  # @private
267
213
  class Representation < Google::Apis::Core::JsonRepresentation
268
- property :id, as: 'id'
269
- property :dir, as: 'dir'
270
- collection :wait_for, as: 'waitFor'
271
- collection :env, as: 'env'
272
- collection :args, as: 'args'
273
- property :name, as: 'name'
274
- property :entrypoint, as: 'entrypoint'
214
+ property :value, :base64 => true, as: 'value'
215
+ property :type, as: 'type'
275
216
  end
276
217
  end
277
218
 
278
219
  class RepoSource
279
220
  # @private
280
221
  class Representation < Google::Apis::Core::JsonRepresentation
281
- property :tag_name, as: 'tagName'
282
222
  property :commit_sha, as: 'commitSha'
283
- property :project_id, as: 'projectId'
284
- property :repo_name, as: 'repoName'
223
+ property :tag_name, as: 'tagName'
285
224
  property :branch_name, as: 'branchName'
225
+ property :repo_name, as: 'repoName'
226
+ property :project_id, as: 'projectId'
286
227
  end
287
228
  end
288
229
 
289
- class HashProp
230
+ class BuildStep
290
231
  # @private
291
232
  class Representation < Google::Apis::Core::JsonRepresentation
292
- property :value, :base64 => true, as: 'value'
293
- property :type, as: 'type'
233
+ property :dir, as: 'dir'
234
+ collection :env, as: 'env'
235
+ collection :wait_for, as: 'waitFor'
236
+ collection :args, as: 'args'
237
+ property :name, as: 'name'
238
+ property :entrypoint, as: 'entrypoint'
239
+ property :id, as: 'id'
240
+ collection :secret_env, as: 'secretEnv'
294
241
  end
295
242
  end
296
243
 
@@ -302,12 +249,20 @@ module Google
302
249
  end
303
250
  end
304
251
 
252
+ class Secret
253
+ # @private
254
+ class Representation < Google::Apis::Core::JsonRepresentation
255
+ hash :secret_env, as: 'secretEnv'
256
+ property :kms_key_name, as: 'kmsKeyName'
257
+ end
258
+ end
259
+
305
260
  class Status
306
261
  # @private
307
262
  class Representation < Google::Apis::Core::JsonRepresentation
308
- property :code, as: 'code'
309
263
  property :message, as: 'message'
310
264
  collection :details, as: 'details'
265
+ property :code, as: 'code'
311
266
  end
312
267
  end
313
268
 
@@ -336,22 +291,11 @@ module Google
336
291
  class Build
337
292
  # @private
338
293
  class Representation < Google::Apis::Core::JsonRepresentation
339
- property :status_detail, as: 'statusDetail'
340
- property :status, as: 'status'
341
- property :timeout, as: 'timeout'
342
- property :logs_bucket, as: 'logsBucket'
343
- property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
344
-
345
- collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
346
-
347
- property :build_trigger_id, as: 'buildTriggerId'
348
- collection :tags, as: 'tags'
349
- property :id, as: 'id'
350
- property :start_time, as: 'startTime'
351
294
  hash :substitutions, as: 'substitutions'
352
- property :create_time, as: 'createTime'
295
+ property :start_time, as: 'startTime'
353
296
  property :source_provenance, as: 'sourceProvenance', class: Google::Apis::CloudbuildV1::SourceProvenance, decorator: Google::Apis::CloudbuildV1::SourceProvenance::Representation
354
297
 
298
+ property :create_time, as: 'createTime'
355
299
  collection :images, as: 'images'
356
300
  property :project_id, as: 'projectId'
357
301
  property :finish_time, as: 'finishTime'
@@ -360,6 +304,80 @@ module Google
360
304
 
361
305
  property :options, as: 'options', class: Google::Apis::CloudbuildV1::BuildOptions, decorator: Google::Apis::CloudbuildV1::BuildOptions::Representation
362
306
 
307
+ property :timeout, as: 'timeout'
308
+ property :status, as: 'status'
309
+ property :status_detail, as: 'statusDetail'
310
+ collection :secrets, as: 'secrets', class: Google::Apis::CloudbuildV1::Secret, decorator: Google::Apis::CloudbuildV1::Secret::Representation
311
+
312
+ property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation
313
+
314
+ property :logs_bucket, as: 'logsBucket'
315
+ collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation
316
+
317
+ property :build_trigger_id, as: 'buildTriggerId'
318
+ property :id, as: 'id'
319
+ collection :tags, as: 'tags'
320
+ end
321
+ end
322
+
323
+ class CancelBuildRequest
324
+ # @private
325
+ class Representation < Google::Apis::Core::JsonRepresentation
326
+ end
327
+ end
328
+
329
+ class ListBuildsResponse
330
+ # @private
331
+ class Representation < Google::Apis::Core::JsonRepresentation
332
+ property :next_page_token, as: 'nextPageToken'
333
+ collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation
334
+
335
+ end
336
+ end
337
+
338
+ class ListOperationsResponse
339
+ # @private
340
+ class Representation < Google::Apis::Core::JsonRepresentation
341
+ property :next_page_token, as: 'nextPageToken'
342
+ collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1::Operation, decorator: Google::Apis::CloudbuildV1::Operation::Representation
343
+
344
+ end
345
+ end
346
+
347
+ class Source
348
+ # @private
349
+ class Representation < Google::Apis::Core::JsonRepresentation
350
+ property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation
351
+
352
+ property :repo_source, as: 'repoSource', class: Google::Apis::CloudbuildV1::RepoSource, decorator: Google::Apis::CloudbuildV1::RepoSource::Representation
353
+
354
+ end
355
+ end
356
+
357
+ class BuildOptions
358
+ # @private
359
+ class Representation < Google::Apis::Core::JsonRepresentation
360
+ collection :source_provenance_hash, as: 'sourceProvenanceHash'
361
+ property :substitution_option, as: 'substitutionOption'
362
+ property :requested_verify_option, as: 'requestedVerifyOption'
363
+ end
364
+ end
365
+
366
+ class StorageSource
367
+ # @private
368
+ class Representation < Google::Apis::Core::JsonRepresentation
369
+ property :generation, :numeric_string => true, as: 'generation'
370
+ property :bucket, as: 'bucket'
371
+ property :object, as: 'object'
372
+ end
373
+ end
374
+
375
+ class Results
376
+ # @private
377
+ class Representation < Google::Apis::Core::JsonRepresentation
378
+ collection :build_step_images, as: 'buildStepImages'
379
+ collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation
380
+
363
381
  end
364
382
  end
365
383
  end
@@ -47,18 +47,17 @@ module Google
47
47
  @batch_path = 'batch'
48
48
  end
49
49
 
50
- # Returns information about a previously requested build.
51
- # The Build that is returned includes its status (e.g., success or failure,
52
- # or in-progress), and timing information.
50
+ # Cancels a requested build in progress.
53
51
  # @param [String] project_id
54
52
  # ID of the project.
55
53
  # @param [String] id
56
54
  # ID of the build.
55
+ # @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object
56
+ # @param [String] fields
57
+ # Selector specifying which fields to include in a partial response.
57
58
  # @param [String] quota_user
58
59
  # Available to use for quota purposes for server-side applications. Can be any
59
60
  # arbitrary string assigned to a user, but should not exceed 40 characters.
60
- # @param [String] fields
61
- # Selector specifying which fields to include in a partial response.
62
61
  # @param [Google::Apis::RequestOptions] options
63
62
  # Request-specific options
64
63
  #
@@ -71,14 +70,16 @@ module Google
71
70
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
71
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
72
  # @raise [Google::Apis::AuthorizationError] Authorization is required
74
- def get_project_build(project_id, id, quota_user: nil, fields: nil, options: nil, &block)
75
- command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
73
+ def cancel_build(project_id, id, cancel_build_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
74
+ command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
75
+ command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
76
+ command.request_object = cancel_build_request_object
76
77
  command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
77
78
  command.response_class = Google::Apis::CloudbuildV1::Build
78
79
  command.params['projectId'] = project_id unless project_id.nil?
79
80
  command.params['id'] = id unless id.nil?
80
- command.query['quotaUser'] = quota_user unless quota_user.nil?
81
81
  command.query['fields'] = fields unless fields.nil?
82
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
82
83
  execute_or_queue_command(command, &block)
83
84
  end
84
85
 
@@ -87,17 +88,17 @@ module Google
87
88
  # successfully or unsuccessfully.
88
89
  # @param [String] project_id
89
90
  # ID of the project.
91
+ # @param [String] filter
92
+ # The raw filter text to constrain the results.
90
93
  # @param [String] page_token
91
94
  # Token to provide to skip to a particular spot in the list.
92
95
  # @param [Fixnum] page_size
93
96
  # Number of results to return in the list.
94
- # @param [String] filter
95
- # The raw filter text to constrain the results.
97
+ # @param [String] fields
98
+ # Selector specifying which fields to include in a partial response.
96
99
  # @param [String] quota_user
97
100
  # Available to use for quota purposes for server-side applications. Can be any
98
101
  # arbitrary string assigned to a user, but should not exceed 40 characters.
99
- # @param [String] fields
100
- # Selector specifying which fields to include in a partial response.
101
102
  # @param [Google::Apis::RequestOptions] options
102
103
  # Request-specific options
103
104
  #
@@ -110,16 +111,51 @@ module Google
110
111
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
111
112
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
112
113
  # @raise [Google::Apis::AuthorizationError] Authorization is required
113
- def list_project_builds(project_id, page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
114
+ def list_project_builds(project_id, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
114
115
  command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options)
115
116
  command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation
116
117
  command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse
117
118
  command.params['projectId'] = project_id unless project_id.nil?
119
+ command.query['filter'] = filter unless filter.nil?
118
120
  command.query['pageToken'] = page_token unless page_token.nil?
119
121
  command.query['pageSize'] = page_size unless page_size.nil?
120
- command.query['filter'] = filter unless filter.nil?
122
+ command.query['fields'] = fields unless fields.nil?
121
123
  command.query['quotaUser'] = quota_user unless quota_user.nil?
124
+ execute_or_queue_command(command, &block)
125
+ end
126
+
127
+ # Returns information about a previously requested build.
128
+ # The Build that is returned includes its status (e.g., success or failure,
129
+ # or in-progress), and timing information.
130
+ # @param [String] project_id
131
+ # ID of the project.
132
+ # @param [String] id
133
+ # ID of the build.
134
+ # @param [String] fields
135
+ # Selector specifying which fields to include in a partial response.
136
+ # @param [String] quota_user
137
+ # Available to use for quota purposes for server-side applications. Can be any
138
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
139
+ # @param [Google::Apis::RequestOptions] options
140
+ # Request-specific options
141
+ #
142
+ # @yield [result, err] Result & error if block supplied
143
+ # @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
144
+ # @yieldparam err [StandardError] error object if request failed
145
+ #
146
+ # @return [Google::Apis::CloudbuildV1::Build]
147
+ #
148
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
149
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
150
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
151
+ def get_project_build(project_id, id, fields: nil, quota_user: nil, options: nil, &block)
152
+ command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
153
+ command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
154
+ command.response_class = Google::Apis::CloudbuildV1::Build
155
+ command.params['projectId'] = project_id unless project_id.nil?
156
+ command.params['id'] = id unless id.nil?
122
157
  command.query['fields'] = fields unless fields.nil?
158
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
123
159
  execute_or_queue_command(command, &block)
124
160
  end
125
161
 
@@ -130,11 +166,11 @@ module Google
130
166
  # @param [String] project_id
131
167
  # ID of the project.
132
168
  # @param [Google::Apis::CloudbuildV1::Build] build_object
169
+ # @param [String] fields
170
+ # Selector specifying which fields to include in a partial response.
133
171
  # @param [String] quota_user
134
172
  # Available to use for quota purposes for server-side applications. Can be any
135
173
  # arbitrary string assigned to a user, but should not exceed 40 characters.
136
- # @param [String] fields
137
- # Selector specifying which fields to include in a partial response.
138
174
  # @param [Google::Apis::RequestOptions] options
139
175
  # Request-specific options
140
176
  #
@@ -147,51 +183,49 @@ module Google
147
183
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
148
184
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
149
185
  # @raise [Google::Apis::AuthorizationError] Authorization is required
150
- def create_project_build(project_id, build_object = nil, quota_user: nil, fields: nil, options: nil, &block)
186
+ def create_project_build(project_id, build_object = nil, fields: nil, quota_user: nil, options: nil, &block)
151
187
  command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options)
152
188
  command.request_representation = Google::Apis::CloudbuildV1::Build::Representation
153
189
  command.request_object = build_object
154
190
  command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
155
191
  command.response_class = Google::Apis::CloudbuildV1::Operation
156
192
  command.params['projectId'] = project_id unless project_id.nil?
157
- command.query['quotaUser'] = quota_user unless quota_user.nil?
158
193
  command.query['fields'] = fields unless fields.nil?
194
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
159
195
  execute_or_queue_command(command, &block)
160
196
  end
161
197
 
162
- # Cancels a requested build in progress.
198
+ # Creates a new BuildTrigger.
199
+ # This API is experimental.
163
200
  # @param [String] project_id
164
- # ID of the project.
165
- # @param [String] id
166
- # ID of the build.
167
- # @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object
201
+ # ID of the project for which to configure automatic builds.
202
+ # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
203
+ # @param [String] fields
204
+ # Selector specifying which fields to include in a partial response.
168
205
  # @param [String] quota_user
169
206
  # Available to use for quota purposes for server-side applications. Can be any
170
207
  # 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
208
  # @param [Google::Apis::RequestOptions] options
174
209
  # Request-specific options
175
210
  #
176
211
  # @yield [result, err] Result & error if block supplied
177
- # @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
212
+ # @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
178
213
  # @yieldparam err [StandardError] error object if request failed
179
214
  #
180
- # @return [Google::Apis::CloudbuildV1::Build]
215
+ # @return [Google::Apis::CloudbuildV1::BuildTrigger]
181
216
  #
182
217
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
183
218
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
184
219
  # @raise [Google::Apis::AuthorizationError] Authorization is required
185
- def cancel_build(project_id, id, cancel_build_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
186
- command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options)
187
- command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation
188
- command.request_object = cancel_build_request_object
189
- command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
190
- command.response_class = Google::Apis::CloudbuildV1::Build
220
+ def create_project_trigger(project_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
221
+ command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
222
+ command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
223
+ command.request_object = build_trigger_object
224
+ command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
225
+ command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
191
226
  command.params['projectId'] = project_id unless project_id.nil?
192
- command.params['id'] = id unless id.nil?
193
- command.query['quotaUser'] = quota_user unless quota_user.nil?
194
227
  command.query['fields'] = fields unless fields.nil?
228
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
195
229
  execute_or_queue_command(command, &block)
196
230
  end
197
231
 
@@ -201,11 +235,11 @@ module Google
201
235
  # ID of the project that owns the trigger.
202
236
  # @param [String] trigger_id
203
237
  # ID of the BuildTrigger to delete.
238
+ # @param [String] fields
239
+ # Selector specifying which fields to include in a partial response.
204
240
  # @param [String] quota_user
205
241
  # Available to use for quota purposes for server-side applications. Can be any
206
242
  # arbitrary string assigned to a user, but should not exceed 40 characters.
207
- # @param [String] fields
208
- # Selector specifying which fields to include in a partial response.
209
243
  # @param [Google::Apis::RequestOptions] options
210
244
  # Request-specific options
211
245
  #
@@ -218,28 +252,29 @@ module Google
218
252
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
219
253
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
220
254
  # @raise [Google::Apis::AuthorizationError] Authorization is required
221
- def delete_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
255
+ def delete_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
222
256
  command = make_simple_command(:delete, 'v1/projects/{projectId}/triggers/{triggerId}', options)
223
257
  command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
224
258
  command.response_class = Google::Apis::CloudbuildV1::Empty
225
259
  command.params['projectId'] = project_id unless project_id.nil?
226
260
  command.params['triggerId'] = trigger_id unless trigger_id.nil?
227
- command.query['quotaUser'] = quota_user unless quota_user.nil?
228
261
  command.query['fields'] = fields unless fields.nil?
262
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
229
263
  execute_or_queue_command(command, &block)
230
264
  end
231
265
 
232
- # Gets information about a BuildTrigger.
266
+ # Updates an BuildTrigger by its project ID and trigger ID.
233
267
  # This API is experimental.
234
268
  # @param [String] project_id
235
269
  # ID of the project that owns the trigger.
236
270
  # @param [String] trigger_id
237
- # ID of the BuildTrigger to get.
271
+ # ID of the BuildTrigger to update.
272
+ # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
273
+ # @param [String] fields
274
+ # Selector specifying which fields to include in a partial response.
238
275
  # @param [String] quota_user
239
276
  # Available to use for quota purposes for server-side applications. Can be any
240
277
  # arbitrary string assigned to a user, but should not exceed 40 characters.
241
- # @param [String] fields
242
- # Selector specifying which fields to include in a partial response.
243
278
  # @param [Google::Apis::RequestOptions] options
244
279
  # Request-specific options
245
280
  #
@@ -252,14 +287,16 @@ module Google
252
287
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
253
288
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
254
289
  # @raise [Google::Apis::AuthorizationError] Authorization is required
255
- def get_project_trigger(project_id, trigger_id, quota_user: nil, fields: nil, options: nil, &block)
256
- command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
290
+ def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, fields: nil, quota_user: nil, options: nil, &block)
291
+ command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
292
+ command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
293
+ command.request_object = build_trigger_object
257
294
  command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
258
295
  command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
259
296
  command.params['projectId'] = project_id unless project_id.nil?
260
297
  command.params['triggerId'] = trigger_id unless trigger_id.nil?
261
- command.query['quotaUser'] = quota_user unless quota_user.nil?
262
298
  command.query['fields'] = fields unless fields.nil?
299
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
263
300
  execute_or_queue_command(command, &block)
264
301
  end
265
302
 
@@ -267,11 +304,11 @@ module Google
267
304
  # This API is experimental.
268
305
  # @param [String] project_id
269
306
  # ID of the project for which to list BuildTriggers.
307
+ # @param [String] fields
308
+ # Selector specifying which fields to include in a partial response.
270
309
  # @param [String] quota_user
271
310
  # Available to use for quota purposes for server-side applications. Can be any
272
311
  # arbitrary string assigned to a user, but should not exceed 40 characters.
273
- # @param [String] fields
274
- # Selector specifying which fields to include in a partial response.
275
312
  # @param [Google::Apis::RequestOptions] options
276
313
  # Request-specific options
277
314
  #
@@ -284,63 +321,27 @@ module Google
284
321
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
285
322
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
286
323
  # @raise [Google::Apis::AuthorizationError] Authorization is required
287
- def list_project_triggers(project_id, quota_user: nil, fields: nil, options: nil, &block)
324
+ def list_project_triggers(project_id, fields: nil, quota_user: nil, options: nil, &block)
288
325
  command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
289
326
  command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
290
327
  command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
291
328
  command.params['projectId'] = project_id unless project_id.nil?
292
- command.query['quotaUser'] = quota_user unless quota_user.nil?
293
329
  command.query['fields'] = fields unless fields.nil?
330
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
294
331
  execute_or_queue_command(command, &block)
295
332
  end
296
333
 
297
- # Updates an BuildTrigger by its project ID and trigger ID.
334
+ # Gets information about a BuildTrigger.
298
335
  # This API is experimental.
299
336
  # @param [String] project_id
300
337
  # ID of the project that owns the trigger.
301
338
  # @param [String] trigger_id
302
- # ID of the BuildTrigger to update.
303
- # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
304
- # @param [String] quota_user
305
- # Available to use for quota purposes for server-side applications. Can be any
306
- # arbitrary string assigned to a user, but should not exceed 40 characters.
339
+ # ID of the BuildTrigger to get.
307
340
  # @param [String] fields
308
341
  # Selector specifying which fields to include in a partial response.
309
- # @param [Google::Apis::RequestOptions] options
310
- # Request-specific options
311
- #
312
- # @yield [result, err] Result & error if block supplied
313
- # @yieldparam result [Google::Apis::CloudbuildV1::BuildTrigger] parsed result object
314
- # @yieldparam err [StandardError] error object if request failed
315
- #
316
- # @return [Google::Apis::CloudbuildV1::BuildTrigger]
317
- #
318
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
319
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
320
- # @raise [Google::Apis::AuthorizationError] Authorization is required
321
- def patch_project_trigger(project_id, trigger_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
322
- command = make_simple_command(:patch, 'v1/projects/{projectId}/triggers/{triggerId}', options)
323
- command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
324
- command.request_object = build_trigger_object
325
- command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
326
- command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
327
- command.params['projectId'] = project_id unless project_id.nil?
328
- command.params['triggerId'] = trigger_id unless trigger_id.nil?
329
- command.query['quotaUser'] = quota_user unless quota_user.nil?
330
- command.query['fields'] = fields unless fields.nil?
331
- execute_or_queue_command(command, &block)
332
- end
333
-
334
- # Creates a new BuildTrigger.
335
- # This API is experimental.
336
- # @param [String] project_id
337
- # ID of the project for which to configure automatic builds.
338
- # @param [Google::Apis::CloudbuildV1::BuildTrigger] build_trigger_object
339
342
  # @param [String] quota_user
340
343
  # Available to use for quota purposes for server-side applications. Can be any
341
344
  # arbitrary string assigned to a user, but should not exceed 40 characters.
342
- # @param [String] fields
343
- # Selector specifying which fields to include in a partial response.
344
345
  # @param [Google::Apis::RequestOptions] options
345
346
  # Request-specific options
346
347
  #
@@ -353,62 +354,56 @@ module Google
353
354
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
354
355
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
355
356
  # @raise [Google::Apis::AuthorizationError] Authorization is required
356
- def create_project_trigger(project_id, build_trigger_object = nil, quota_user: nil, fields: nil, options: nil, &block)
357
- command = make_simple_command(:post, 'v1/projects/{projectId}/triggers', options)
358
- command.request_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
359
- command.request_object = build_trigger_object
357
+ def get_project_trigger(project_id, trigger_id, fields: nil, quota_user: nil, options: nil, &block)
358
+ command = make_simple_command(:get, 'v1/projects/{projectId}/triggers/{triggerId}', options)
360
359
  command.response_representation = Google::Apis::CloudbuildV1::BuildTrigger::Representation
361
360
  command.response_class = Google::Apis::CloudbuildV1::BuildTrigger
362
361
  command.params['projectId'] = project_id unless project_id.nil?
363
- command.query['quotaUser'] = quota_user unless quota_user.nil?
362
+ command.params['triggerId'] = trigger_id unless trigger_id.nil?
364
363
  command.query['fields'] = fields unless fields.nil?
364
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
365
365
  execute_or_queue_command(command, &block)
366
366
  end
367
367
 
368
- # Lists operations that match the specified filter in the request. If the
369
- # server doesn't support this method, it returns `UNIMPLEMENTED`.
370
- # NOTE: the `name` binding allows API services to override the binding
371
- # to use different resource name schemes, such as `users/*/operations`. To
372
- # override the binding, API services can add a binding such as
373
- # `"/v1/`name=users/*`/operations"` to their service configuration.
374
- # For backwards compatibility, the default name includes the operations
375
- # collection id, however overriding users must ensure the name binding
376
- # is the parent resource, without the operations collection id.
368
+ # Starts asynchronous cancellation on a long-running operation. The server
369
+ # makes a best effort to cancel the operation, but success is not
370
+ # guaranteed. If the server doesn't support this method, it returns
371
+ # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
372
+ # Operations.GetOperation or
373
+ # other methods to check whether the cancellation succeeded or whether the
374
+ # operation completed despite cancellation. On successful cancellation,
375
+ # the operation is not deleted; instead, it becomes an operation with
376
+ # an Operation.error value with a google.rpc.Status.code of 1,
377
+ # corresponding to `Code.CANCELLED`.
377
378
  # @param [String] name
378
- # The name of the operation's parent resource.
379
- # @param [String] filter
380
- # The standard list filter.
381
- # @param [String] page_token
382
- # The standard list page token.
383
- # @param [Fixnum] page_size
384
- # The standard list page size.
379
+ # The name of the operation resource to be cancelled.
380
+ # @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
381
+ # @param [String] fields
382
+ # Selector specifying which fields to include in a partial response.
385
383
  # @param [String] quota_user
386
384
  # Available to use for quota purposes for server-side applications. Can be any
387
385
  # arbitrary string assigned to a user, but should not exceed 40 characters.
388
- # @param [String] fields
389
- # Selector specifying which fields to include in a partial response.
390
386
  # @param [Google::Apis::RequestOptions] options
391
387
  # Request-specific options
392
388
  #
393
389
  # @yield [result, err] Result & error if block supplied
394
- # @yieldparam result [Google::Apis::CloudbuildV1::ListOperationsResponse] parsed result object
390
+ # @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
395
391
  # @yieldparam err [StandardError] error object if request failed
396
392
  #
397
- # @return [Google::Apis::CloudbuildV1::ListOperationsResponse]
393
+ # @return [Google::Apis::CloudbuildV1::Empty]
398
394
  #
399
395
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
400
396
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
401
397
  # @raise [Google::Apis::AuthorizationError] Authorization is required
402
- def list_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
403
- command = make_simple_command(:get, 'v1/{+name}', options)
404
- command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
405
- command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
398
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
399
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
400
+ command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
401
+ command.request_object = cancel_operation_request_object
402
+ command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
403
+ command.response_class = Google::Apis::CloudbuildV1::Empty
406
404
  command.params['name'] = name unless name.nil?
407
- command.query['filter'] = filter unless filter.nil?
408
- command.query['pageToken'] = page_token unless page_token.nil?
409
- command.query['pageSize'] = page_size unless page_size.nil?
410
- command.query['quotaUser'] = quota_user unless quota_user.nil?
411
405
  command.query['fields'] = fields unless fields.nil?
406
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
412
407
  execute_or_queue_command(command, &block)
413
408
  end
414
409
 
@@ -417,11 +412,11 @@ module Google
417
412
  # service.
418
413
  # @param [String] name
419
414
  # The name of the operation resource.
415
+ # @param [String] fields
416
+ # Selector specifying which fields to include in a partial response.
420
417
  # @param [String] quota_user
421
418
  # Available to use for quota purposes for server-side applications. Can be any
422
419
  # arbitrary string assigned to a user, but should not exceed 40 characters.
423
- # @param [String] fields
424
- # Selector specifying which fields to include in a partial response.
425
420
  # @param [Google::Apis::RequestOptions] options
426
421
  # Request-specific options
427
422
  #
@@ -434,55 +429,60 @@ module Google
434
429
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
435
430
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
436
431
  # @raise [Google::Apis::AuthorizationError] Authorization is required
437
- def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
432
+ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
438
433
  command = make_simple_command(:get, 'v1/{+name}', options)
439
434
  command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation
440
435
  command.response_class = Google::Apis::CloudbuildV1::Operation
441
436
  command.params['name'] = name unless name.nil?
442
- command.query['quotaUser'] = quota_user unless quota_user.nil?
443
437
  command.query['fields'] = fields unless fields.nil?
438
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
444
439
  execute_or_queue_command(command, &block)
445
440
  end
446
441
 
447
- # Starts asynchronous cancellation on a long-running operation. The server
448
- # makes a best effort to cancel the operation, but success is not
449
- # guaranteed. If the server doesn't support this method, it returns
450
- # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
451
- # Operations.GetOperation or
452
- # other methods to check whether the cancellation succeeded or whether the
453
- # operation completed despite cancellation. On successful cancellation,
454
- # the operation is not deleted; instead, it becomes an operation with
455
- # an Operation.error value with a google.rpc.Status.code of 1,
456
- # corresponding to `Code.CANCELLED`.
442
+ # Lists operations that match the specified filter in the request. If the
443
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
444
+ # NOTE: the `name` binding allows API services to override the binding
445
+ # to use different resource name schemes, such as `users/*/operations`. To
446
+ # override the binding, API services can add a binding such as
447
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
448
+ # For backwards compatibility, the default name includes the operations
449
+ # collection id, however overriding users must ensure the name binding
450
+ # is the parent resource, without the operations collection id.
457
451
  # @param [String] name
458
- # The name of the operation resource to be cancelled.
459
- # @param [Google::Apis::CloudbuildV1::CancelOperationRequest] cancel_operation_request_object
452
+ # The name of the operation's parent resource.
453
+ # @param [String] page_token
454
+ # The standard list page token.
455
+ # @param [Fixnum] page_size
456
+ # The standard list page size.
457
+ # @param [String] filter
458
+ # The standard list filter.
459
+ # @param [String] fields
460
+ # Selector specifying which fields to include in a partial response.
460
461
  # @param [String] quota_user
461
462
  # Available to use for quota purposes for server-side applications. Can be any
462
463
  # arbitrary string assigned to a user, but should not exceed 40 characters.
463
- # @param [String] fields
464
- # Selector specifying which fields to include in a partial response.
465
464
  # @param [Google::Apis::RequestOptions] options
466
465
  # Request-specific options
467
466
  #
468
467
  # @yield [result, err] Result & error if block supplied
469
- # @yieldparam result [Google::Apis::CloudbuildV1::Empty] parsed result object
468
+ # @yieldparam result [Google::Apis::CloudbuildV1::ListOperationsResponse] parsed result object
470
469
  # @yieldparam err [StandardError] error object if request failed
471
470
  #
472
- # @return [Google::Apis::CloudbuildV1::Empty]
471
+ # @return [Google::Apis::CloudbuildV1::ListOperationsResponse]
473
472
  #
474
473
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
475
474
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
476
475
  # @raise [Google::Apis::AuthorizationError] Authorization is required
477
- def cancel_operation(name, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
478
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
479
- command.request_representation = Google::Apis::CloudbuildV1::CancelOperationRequest::Representation
480
- command.request_object = cancel_operation_request_object
481
- command.response_representation = Google::Apis::CloudbuildV1::Empty::Representation
482
- command.response_class = Google::Apis::CloudbuildV1::Empty
476
+ def list_operations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
477
+ command = make_simple_command(:get, 'v1/{+name}', options)
478
+ command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation
479
+ command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse
483
480
  command.params['name'] = name unless name.nil?
484
- command.query['quotaUser'] = quota_user unless quota_user.nil?
481
+ command.query['pageToken'] = page_token unless page_token.nil?
482
+ command.query['pageSize'] = page_size unless page_size.nil?
483
+ command.query['filter'] = filter unless filter.nil?
485
484
  command.query['fields'] = fields unless fields.nil?
485
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
486
486
  execute_or_queue_command(command, &block)
487
487
  end
488
488