google-api-client 0.9.8 → 0.9.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +37 -0
- data/Gemfile +9 -1
- data/README.md +10 -2
- data/api_names.yaml +63 -110
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +260 -13
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +81 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +86 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +24 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/admin_reports_v1/service.rb +2 -2
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +379 -3
- data/generated/google/apis/analytics_v3/representations.rb +136 -0
- data/generated/google/apis/analytics_v3/service.rb +217 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +813 -49
- data/generated/google/apis/androidenterprise_v1/representations.rb +336 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +1234 -145
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +47 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +27 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +55 -0
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +516 -313
- data/generated/google/apis/appengine_v1beta5/representations.rb +115 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +329 -33
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +277 -20
- data/generated/google/apis/bigquery_v2/representations.rb +86 -0
- data/generated/google/apis/bigquery_v2/service.rb +8 -2
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +79 -1
- data/generated/google/apis/books_v1/representations.rb +34 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
- data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
- data/generated/google/apis/civicinfo_v2/service.rb +27 -6
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +183 -37
- data/generated/google/apis/classroom_v1/representations.rb +74 -9
- data/generated/google/apis/classroom_v1/service.rb +403 -38
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +381 -17
- data/generated/google/apis/cloudbuild_v1/representations.rb +137 -2
- data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
- data/generated/google/apis/clouddebugger_v2.rb +3 -6
- data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +502 -111
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +162 -24
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +274 -30
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +121 -9
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +46 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +71 -58
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +2299 -434
- data/generated/google/apis/compute_beta/representations.rb +752 -33
- data/generated/google/apis/compute_beta/service.rb +6067 -3153
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1681 -207
- data/generated/google/apis/compute_v1/representations.rb +552 -0
- data/generated/google/apis/compute_v1/service.rb +2797 -1171
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +757 -1
- data/generated/google/apis/content_v2/representations.rb +337 -0
- data/generated/google/apis/content_v2/service.rb +244 -0
- data/generated/google/apis/dataflow_v1b3.rb +38 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4053 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +1736 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +875 -0
- data/generated/google/apis/dataproc_v1.rb +2 -2
- data/generated/google/apis/dataproc_v1/classes.rb +213 -68
- data/generated/google/apis/dataproc_v1/representations.rb +38 -0
- data/generated/google/apis/dataproc_v1/service.rb +78 -48
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +217 -55
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +27 -3
- data/generated/google/apis/drive_v2/representations.rb +4 -0
- data/generated/google/apis/drive_v2/service.rb +16 -3
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +50 -16
- data/generated/google/apis/drive_v3/representations.rb +4 -0
- data/generated/google/apis/drive_v3/service.rb +12 -2
- data/generated/google/apis/fitness_v1.rb +8 -2
- data/generated/google/apis/fitness_v1/classes.rb +64 -6
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +2 -4
- data/generated/google/apis/genomics_v1/classes.rb +143 -34
- data/generated/google/apis/genomics_v1/representations.rb +48 -11
- data/generated/google/apis/genomics_v1/service.rb +35 -37
- data/generated/google/apis/gmail_v1.rb +10 -1
- data/generated/google/apis/gmail_v1/classes.rb +542 -4
- data/generated/google/apis/gmail_v1/representations.rb +213 -0
- data/generated/google/apis/gmail_v1/service.rb +898 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +181 -206
- data/generated/google/apis/iam_v1/representations.rb +36 -45
- data/generated/google/apis/iam_v1/service.rb +101 -67
- data/generated/google/apis/identitytoolkit_v3.rb +4 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +171 -1
- data/generated/google/apis/identitytoolkit_v3/representations.rb +26 -0
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +599 -0
- data/generated/google/apis/language_v1beta1/representations.rb +289 -0
- data/generated/google/apis/language_v1beta1/service.rb +152 -0
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +760 -731
- data/generated/google/apis/logging_v2beta1/representations.rb +136 -147
- data/generated/google/apis/logging_v2beta1/service.rb +290 -209
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1337 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +711 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +10 -9
- data/generated/google/apis/pubsub_v1/service.rb +128 -27
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -0
- data/generated/google/apis/script_v1/representations.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +910 -89
- data/generated/google/apis/sheets_v4/representations.rb +194 -10
- data/generated/google/apis/sheets_v4/service.rb +216 -49
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +3926 -0
- data/generated/google/apis/slides_v1/representations.rb +1722 -0
- data/generated/google/apis/slides_v1/service.rb +202 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +511 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
- data/generated/google/apis/speech_v1beta1/service.rb +271 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -8
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +43 -18
- data/generated/google/apis/storage_v1/representations.rb +4 -1
- data/generated/google/apis/storage_v1/service.rb +5 -2
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +12 -11
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +183 -21
- data/generated/google/apis/youtube_v3/representations.rb +85 -4
- data/generated/google/apis/youtube_v3/service.rb +41 -5
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/google-api-client.gemspec +2 -1
- data/lib/google/apis/core/api_command.rb +4 -0
- data/lib/google/apis/core/base_service.rb +10 -4
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +2 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/sync.rb +71 -0
- metadata +55 -13
|
@@ -22,6 +22,24 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module DeploymentmanagerV2
|
|
24
24
|
|
|
25
|
+
class AuditConfig
|
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
+
|
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
class Binding
|
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
|
+
|
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
class Condition
|
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
|
+
|
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
41
|
+
end
|
|
42
|
+
|
|
25
43
|
class ConfigFile
|
|
26
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
45
|
|
|
@@ -76,6 +94,18 @@ module Google
|
|
|
76
94
|
include Google::Apis::Core::JsonObjectSupport
|
|
77
95
|
end
|
|
78
96
|
|
|
97
|
+
class LogConfig
|
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
99
|
+
|
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
class LogConfigCounterOptions
|
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
105
|
+
|
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
107
|
+
end
|
|
108
|
+
|
|
79
109
|
class Manifest
|
|
80
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
81
111
|
|
|
@@ -124,6 +154,12 @@ module Google
|
|
|
124
154
|
include Google::Apis::Core::JsonObjectSupport
|
|
125
155
|
end
|
|
126
156
|
|
|
157
|
+
class Policy
|
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
159
|
+
|
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
161
|
+
end
|
|
162
|
+
|
|
127
163
|
class Resource
|
|
128
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
129
165
|
|
|
@@ -142,6 +178,12 @@ module Google
|
|
|
142
178
|
include Google::Apis::Core::JsonObjectSupport
|
|
143
179
|
end
|
|
144
180
|
|
|
181
|
+
class ResourceAccessControl
|
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
183
|
+
|
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
185
|
+
end
|
|
186
|
+
|
|
145
187
|
class ResourceUpdate
|
|
146
188
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
147
189
|
|
|
@@ -178,12 +220,30 @@ module Google
|
|
|
178
220
|
include Google::Apis::Core::JsonObjectSupport
|
|
179
221
|
end
|
|
180
222
|
|
|
223
|
+
class Rule
|
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
225
|
+
|
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
227
|
+
end
|
|
228
|
+
|
|
181
229
|
class TargetConfiguration
|
|
182
230
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
183
231
|
|
|
184
232
|
include Google::Apis::Core::JsonObjectSupport
|
|
185
233
|
end
|
|
186
234
|
|
|
235
|
+
class TestPermissionsRequest
|
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
237
|
+
|
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
class TestPermissionsResponse
|
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
243
|
+
|
|
244
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
245
|
+
end
|
|
246
|
+
|
|
187
247
|
class Type
|
|
188
248
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
189
249
|
|
|
@@ -196,6 +256,34 @@ module Google
|
|
|
196
256
|
include Google::Apis::Core::JsonObjectSupport
|
|
197
257
|
end
|
|
198
258
|
|
|
259
|
+
class AuditConfig
|
|
260
|
+
# @private
|
|
261
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
262
|
+
collection :exempted_members, as: 'exemptedMembers'
|
|
263
|
+
property :service, as: 'service'
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
class Binding
|
|
268
|
+
# @private
|
|
269
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
270
|
+
collection :members, as: 'members'
|
|
271
|
+
property :role, as: 'role'
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
class Condition
|
|
276
|
+
# @private
|
|
277
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
278
|
+
property :iam, as: 'iam'
|
|
279
|
+
property :op, as: 'op'
|
|
280
|
+
property :svc, as: 'svc'
|
|
281
|
+
property :sys, as: 'sys'
|
|
282
|
+
property :value, as: 'value'
|
|
283
|
+
collection :values, as: 'values'
|
|
284
|
+
end
|
|
285
|
+
end
|
|
286
|
+
|
|
199
287
|
class ConfigFile
|
|
200
288
|
# @private
|
|
201
289
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -280,6 +368,22 @@ module Google
|
|
|
280
368
|
end
|
|
281
369
|
end
|
|
282
370
|
|
|
371
|
+
class LogConfig
|
|
372
|
+
# @private
|
|
373
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
374
|
+
property :counter, as: 'counter', class: Google::Apis::DeploymentmanagerV2::LogConfigCounterOptions, decorator: Google::Apis::DeploymentmanagerV2::LogConfigCounterOptions::Representation
|
|
375
|
+
|
|
376
|
+
end
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
class LogConfigCounterOptions
|
|
380
|
+
# @private
|
|
381
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
382
|
+
property :field, as: 'field'
|
|
383
|
+
property :metric, as: 'metric'
|
|
384
|
+
end
|
|
385
|
+
end
|
|
386
|
+
|
|
283
387
|
class Manifest
|
|
284
388
|
# @private
|
|
285
389
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -380,9 +484,26 @@ module Google
|
|
|
380
484
|
end
|
|
381
485
|
end
|
|
382
486
|
|
|
487
|
+
class Policy
|
|
488
|
+
# @private
|
|
489
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
490
|
+
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::DeploymentmanagerV2::AuditConfig, decorator: Google::Apis::DeploymentmanagerV2::AuditConfig::Representation
|
|
491
|
+
|
|
492
|
+
collection :bindings, as: 'bindings', class: Google::Apis::DeploymentmanagerV2::Binding, decorator: Google::Apis::DeploymentmanagerV2::Binding::Representation
|
|
493
|
+
|
|
494
|
+
property :etag, :base64 => true, as: 'etag'
|
|
495
|
+
property :iam_owned, as: 'iamOwned'
|
|
496
|
+
collection :rules, as: 'rules', class: Google::Apis::DeploymentmanagerV2::Rule, decorator: Google::Apis::DeploymentmanagerV2::Rule::Representation
|
|
497
|
+
|
|
498
|
+
property :version, as: 'version'
|
|
499
|
+
end
|
|
500
|
+
end
|
|
501
|
+
|
|
383
502
|
class Resource
|
|
384
503
|
# @private
|
|
385
504
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
505
|
+
property :access_control, as: 'accessControl', class: Google::Apis::DeploymentmanagerV2::ResourceAccessControl, decorator: Google::Apis::DeploymentmanagerV2::ResourceAccessControl::Representation
|
|
506
|
+
|
|
386
507
|
property :final_properties, as: 'finalProperties'
|
|
387
508
|
property :id, as: 'id'
|
|
388
509
|
property :insert_time, as: 'insertTime'
|
|
@@ -417,9 +538,18 @@ module Google
|
|
|
417
538
|
end
|
|
418
539
|
end
|
|
419
540
|
|
|
541
|
+
class ResourceAccessControl
|
|
542
|
+
# @private
|
|
543
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
544
|
+
property :gcp_iam_policy, as: 'gcpIamPolicy'
|
|
545
|
+
end
|
|
546
|
+
end
|
|
547
|
+
|
|
420
548
|
class ResourceUpdate
|
|
421
549
|
# @private
|
|
422
550
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
551
|
+
property :access_control, as: 'accessControl', class: Google::Apis::DeploymentmanagerV2::ResourceAccessControl, decorator: Google::Apis::DeploymentmanagerV2::ResourceAccessControl::Representation
|
|
552
|
+
|
|
423
553
|
property :error, as: 'error', class: Google::Apis::DeploymentmanagerV2::ResourceUpdate::Error, decorator: Google::Apis::DeploymentmanagerV2::ResourceUpdate::Error::Representation
|
|
424
554
|
|
|
425
555
|
property :final_properties, as: 'finalProperties'
|
|
@@ -476,6 +606,21 @@ module Google
|
|
|
476
606
|
end
|
|
477
607
|
end
|
|
478
608
|
|
|
609
|
+
class Rule
|
|
610
|
+
# @private
|
|
611
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
612
|
+
property :action, as: 'action'
|
|
613
|
+
collection :conditions, as: 'conditions', class: Google::Apis::DeploymentmanagerV2::Condition, decorator: Google::Apis::DeploymentmanagerV2::Condition::Representation
|
|
614
|
+
|
|
615
|
+
property :description, as: 'description'
|
|
616
|
+
collection :ins, as: 'ins'
|
|
617
|
+
collection :log_configs, as: 'logConfigs', class: Google::Apis::DeploymentmanagerV2::LogConfig, decorator: Google::Apis::DeploymentmanagerV2::LogConfig::Representation
|
|
618
|
+
|
|
619
|
+
collection :not_ins, as: 'notIns'
|
|
620
|
+
collection :permissions, as: 'permissions'
|
|
621
|
+
end
|
|
622
|
+
end
|
|
623
|
+
|
|
479
624
|
class TargetConfiguration
|
|
480
625
|
# @private
|
|
481
626
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -486,12 +631,28 @@ module Google
|
|
|
486
631
|
end
|
|
487
632
|
end
|
|
488
633
|
|
|
634
|
+
class TestPermissionsRequest
|
|
635
|
+
# @private
|
|
636
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
637
|
+
collection :permissions, as: 'permissions'
|
|
638
|
+
end
|
|
639
|
+
end
|
|
640
|
+
|
|
641
|
+
class TestPermissionsResponse
|
|
642
|
+
# @private
|
|
643
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
644
|
+
collection :permissions, as: 'permissions'
|
|
645
|
+
end
|
|
646
|
+
end
|
|
647
|
+
|
|
489
648
|
class Type
|
|
490
649
|
# @private
|
|
491
650
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
492
651
|
property :id, as: 'id'
|
|
493
652
|
property :insert_time, as: 'insertTime'
|
|
494
653
|
property :name, as: 'name'
|
|
654
|
+
property :operation, as: 'operation', class: Google::Apis::DeploymentmanagerV2::Operation, decorator: Google::Apis::DeploymentmanagerV2::Operation::Representation
|
|
655
|
+
|
|
495
656
|
property :self_link, as: 'selfLink'
|
|
496
657
|
end
|
|
497
658
|
end
|
|
@@ -169,6 +169,45 @@ module Google
|
|
|
169
169
|
execute_or_queue_command(command, &block)
|
|
170
170
|
end
|
|
171
171
|
|
|
172
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
|
173
|
+
# or resource exists.
|
|
174
|
+
# @param [String] project
|
|
175
|
+
# Project ID for this request.
|
|
176
|
+
# @param [String] resource
|
|
177
|
+
# Name of the resource for this request.
|
|
178
|
+
# @param [String] fields
|
|
179
|
+
# Selector specifying which fields to include in a partial response.
|
|
180
|
+
# @param [String] quota_user
|
|
181
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
182
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
183
|
+
# Overrides userIp if both are provided.
|
|
184
|
+
# @param [String] user_ip
|
|
185
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
186
|
+
# enforce per-user limits.
|
|
187
|
+
# @param [Google::Apis::RequestOptions] options
|
|
188
|
+
# Request-specific options
|
|
189
|
+
#
|
|
190
|
+
# @yield [result, err] Result & error if block supplied
|
|
191
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerV2::Policy] parsed result object
|
|
192
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
193
|
+
#
|
|
194
|
+
# @return [Google::Apis::DeploymentmanagerV2::Policy]
|
|
195
|
+
#
|
|
196
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
197
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
198
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
199
|
+
def get_deployment_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
200
|
+
command = make_simple_command(:get, '{project}/global/deployments/{resource}/getIamPolicy', options)
|
|
201
|
+
command.response_representation = Google::Apis::DeploymentmanagerV2::Policy::Representation
|
|
202
|
+
command.response_class = Google::Apis::DeploymentmanagerV2::Policy
|
|
203
|
+
command.params['project'] = project unless project.nil?
|
|
204
|
+
command.params['resource'] = resource unless resource.nil?
|
|
205
|
+
command.query['fields'] = fields unless fields.nil?
|
|
206
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
207
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
208
|
+
execute_or_queue_command(command, &block)
|
|
209
|
+
end
|
|
210
|
+
|
|
172
211
|
# Creates a deployment and all of the resources described by the deployment
|
|
173
212
|
# manifest.
|
|
174
213
|
# @param [String] project
|
|
@@ -233,21 +272,28 @@ module Google
|
|
|
233
272
|
# must match the entire field.
|
|
234
273
|
# For example, to filter for instances that do not have a name of example-
|
|
235
274
|
# instance, you would use filter=name ne example-instance.
|
|
236
|
-
#
|
|
237
|
-
#
|
|
238
|
-
#
|
|
239
|
-
#
|
|
240
|
-
#
|
|
241
|
-
#
|
|
242
|
-
#
|
|
243
|
-
#
|
|
244
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
245
|
-
# to pass the filters.
|
|
275
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
276
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
277
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
278
|
+
# based on label values.
|
|
279
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
280
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
281
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
282
|
+
# resources must match all expressions to pass the filters.
|
|
246
283
|
# @param [Fixnum] max_results
|
|
247
284
|
# The maximum number of results per page that should be returned. If the number
|
|
248
285
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
249
286
|
# nextPageToken that can be used to get the next page of results in subsequent
|
|
250
287
|
# list requests.
|
|
288
|
+
# @param [String] order_by
|
|
289
|
+
# Sorts list results by a certain order. By default, results are returned in
|
|
290
|
+
# alphanumerical order based on the resource name.
|
|
291
|
+
# You can also sort results in descending order based on the creation timestamp
|
|
292
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
|
293
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
|
294
|
+
# Use this to sort resources like operations so that the newest operation is
|
|
295
|
+
# returned first.
|
|
296
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
|
251
297
|
# @param [String] page_token
|
|
252
298
|
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
253
299
|
# a previous list request to get the next page of results.
|
|
@@ -272,13 +318,14 @@ module Google
|
|
|
272
318
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
273
319
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
274
320
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
275
|
-
def list_deployments(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
321
|
+
def list_deployments(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
276
322
|
command = make_simple_command(:get, '{project}/global/deployments', options)
|
|
277
323
|
command.response_representation = Google::Apis::DeploymentmanagerV2::ListDeploymentsResponse::Representation
|
|
278
324
|
command.response_class = Google::Apis::DeploymentmanagerV2::ListDeploymentsResponse
|
|
279
325
|
command.params['project'] = project unless project.nil?
|
|
280
326
|
command.query['filter'] = filter unless filter.nil?
|
|
281
327
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
328
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
282
329
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
283
330
|
command.query['fields'] = fields unless fields.nil?
|
|
284
331
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -345,6 +392,48 @@ module Google
|
|
|
345
392
|
execute_or_queue_command(command, &block)
|
|
346
393
|
end
|
|
347
394
|
|
|
395
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
396
|
+
# existing policy.
|
|
397
|
+
# @param [String] project
|
|
398
|
+
# Project ID for this request.
|
|
399
|
+
# @param [String] resource
|
|
400
|
+
# Name of the resource for this request.
|
|
401
|
+
# @param [Google::Apis::DeploymentmanagerV2::Policy] policy_object
|
|
402
|
+
# @param [String] fields
|
|
403
|
+
# Selector specifying which fields to include in a partial response.
|
|
404
|
+
# @param [String] quota_user
|
|
405
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
406
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
407
|
+
# Overrides userIp if both are provided.
|
|
408
|
+
# @param [String] user_ip
|
|
409
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
410
|
+
# enforce per-user limits.
|
|
411
|
+
# @param [Google::Apis::RequestOptions] options
|
|
412
|
+
# Request-specific options
|
|
413
|
+
#
|
|
414
|
+
# @yield [result, err] Result & error if block supplied
|
|
415
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerV2::Policy] parsed result object
|
|
416
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
417
|
+
#
|
|
418
|
+
# @return [Google::Apis::DeploymentmanagerV2::Policy]
|
|
419
|
+
#
|
|
420
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
421
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
422
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
423
|
+
def set_deployment_iam_policy(project, resource, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
424
|
+
command = make_simple_command(:post, '{project}/global/deployments/{resource}/setIamPolicy', options)
|
|
425
|
+
command.request_representation = Google::Apis::DeploymentmanagerV2::Policy::Representation
|
|
426
|
+
command.request_object = policy_object
|
|
427
|
+
command.response_representation = Google::Apis::DeploymentmanagerV2::Policy::Representation
|
|
428
|
+
command.response_class = Google::Apis::DeploymentmanagerV2::Policy
|
|
429
|
+
command.params['project'] = project unless project.nil?
|
|
430
|
+
command.params['resource'] = resource unless resource.nil?
|
|
431
|
+
command.query['fields'] = fields unless fields.nil?
|
|
432
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
433
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
434
|
+
execute_or_queue_command(command, &block)
|
|
435
|
+
end
|
|
436
|
+
|
|
348
437
|
# Stops an ongoing operation. This does not roll back any work that has already
|
|
349
438
|
# been completed, but prevents any new work from being started.
|
|
350
439
|
# @param [String] project
|
|
@@ -387,6 +476,47 @@ module Google
|
|
|
387
476
|
execute_or_queue_command(command, &block)
|
|
388
477
|
end
|
|
389
478
|
|
|
479
|
+
# Returns permissions that a caller has on the specified resource.
|
|
480
|
+
# @param [String] project
|
|
481
|
+
# Project ID for this request.
|
|
482
|
+
# @param [String] resource
|
|
483
|
+
# Name of the resource for this request.
|
|
484
|
+
# @param [Google::Apis::DeploymentmanagerV2::TestPermissionsRequest] test_permissions_request_object
|
|
485
|
+
# @param [String] fields
|
|
486
|
+
# Selector specifying which fields to include in a partial response.
|
|
487
|
+
# @param [String] quota_user
|
|
488
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
489
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
490
|
+
# Overrides userIp if both are provided.
|
|
491
|
+
# @param [String] user_ip
|
|
492
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
493
|
+
# enforce per-user limits.
|
|
494
|
+
# @param [Google::Apis::RequestOptions] options
|
|
495
|
+
# Request-specific options
|
|
496
|
+
#
|
|
497
|
+
# @yield [result, err] Result & error if block supplied
|
|
498
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerV2::TestPermissionsResponse] parsed result object
|
|
499
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
500
|
+
#
|
|
501
|
+
# @return [Google::Apis::DeploymentmanagerV2::TestPermissionsResponse]
|
|
502
|
+
#
|
|
503
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
504
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
505
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
506
|
+
def test_deployment_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
507
|
+
command = make_simple_command(:post, '{project}/global/deployments/{resource}/testIamPermissions', options)
|
|
508
|
+
command.request_representation = Google::Apis::DeploymentmanagerV2::TestPermissionsRequest::Representation
|
|
509
|
+
command.request_object = test_permissions_request_object
|
|
510
|
+
command.response_representation = Google::Apis::DeploymentmanagerV2::TestPermissionsResponse::Representation
|
|
511
|
+
command.response_class = Google::Apis::DeploymentmanagerV2::TestPermissionsResponse
|
|
512
|
+
command.params['project'] = project unless project.nil?
|
|
513
|
+
command.params['resource'] = resource unless resource.nil?
|
|
514
|
+
command.query['fields'] = fields unless fields.nil?
|
|
515
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
516
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
517
|
+
execute_or_queue_command(command, &block)
|
|
518
|
+
end
|
|
519
|
+
|
|
390
520
|
# Updates a deployment and all of the resources described by the deployment
|
|
391
521
|
# manifest.
|
|
392
522
|
# @param [String] project
|
|
@@ -505,21 +635,28 @@ module Google
|
|
|
505
635
|
# must match the entire field.
|
|
506
636
|
# For example, to filter for instances that do not have a name of example-
|
|
507
637
|
# instance, you would use filter=name ne example-instance.
|
|
508
|
-
#
|
|
509
|
-
#
|
|
510
|
-
#
|
|
511
|
-
#
|
|
512
|
-
#
|
|
513
|
-
#
|
|
514
|
-
#
|
|
515
|
-
#
|
|
516
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
517
|
-
# to pass the filters.
|
|
638
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
639
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
640
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
641
|
+
# based on label values.
|
|
642
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
643
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
644
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
645
|
+
# resources must match all expressions to pass the filters.
|
|
518
646
|
# @param [Fixnum] max_results
|
|
519
647
|
# The maximum number of results per page that should be returned. If the number
|
|
520
648
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
521
649
|
# nextPageToken that can be used to get the next page of results in subsequent
|
|
522
650
|
# list requests.
|
|
651
|
+
# @param [String] order_by
|
|
652
|
+
# Sorts list results by a certain order. By default, results are returned in
|
|
653
|
+
# alphanumerical order based on the resource name.
|
|
654
|
+
# You can also sort results in descending order based on the creation timestamp
|
|
655
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
|
656
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
|
657
|
+
# Use this to sort resources like operations so that the newest operation is
|
|
658
|
+
# returned first.
|
|
659
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
|
523
660
|
# @param [String] page_token
|
|
524
661
|
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
525
662
|
# a previous list request to get the next page of results.
|
|
@@ -544,7 +681,7 @@ module Google
|
|
|
544
681
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
545
682
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
546
683
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
547
|
-
def list_manifests(project, deployment, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
684
|
+
def list_manifests(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
548
685
|
command = make_simple_command(:get, '{project}/global/deployments/{deployment}/manifests', options)
|
|
549
686
|
command.response_representation = Google::Apis::DeploymentmanagerV2::ListManifestsResponse::Representation
|
|
550
687
|
command.response_class = Google::Apis::DeploymentmanagerV2::ListManifestsResponse
|
|
@@ -552,6 +689,7 @@ module Google
|
|
|
552
689
|
command.params['deployment'] = deployment unless deployment.nil?
|
|
553
690
|
command.query['filter'] = filter unless filter.nil?
|
|
554
691
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
692
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
555
693
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
556
694
|
command.query['fields'] = fields unless fields.nil?
|
|
557
695
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -613,21 +751,28 @@ module Google
|
|
|
613
751
|
# must match the entire field.
|
|
614
752
|
# For example, to filter for instances that do not have a name of example-
|
|
615
753
|
# instance, you would use filter=name ne example-instance.
|
|
616
|
-
#
|
|
617
|
-
#
|
|
618
|
-
#
|
|
619
|
-
#
|
|
620
|
-
#
|
|
621
|
-
#
|
|
622
|
-
#
|
|
623
|
-
#
|
|
624
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
625
|
-
# to pass the filters.
|
|
754
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
755
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
756
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
757
|
+
# based on label values.
|
|
758
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
759
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
760
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
761
|
+
# resources must match all expressions to pass the filters.
|
|
626
762
|
# @param [Fixnum] max_results
|
|
627
763
|
# The maximum number of results per page that should be returned. If the number
|
|
628
764
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
629
765
|
# nextPageToken that can be used to get the next page of results in subsequent
|
|
630
766
|
# list requests.
|
|
767
|
+
# @param [String] order_by
|
|
768
|
+
# Sorts list results by a certain order. By default, results are returned in
|
|
769
|
+
# alphanumerical order based on the resource name.
|
|
770
|
+
# You can also sort results in descending order based on the creation timestamp
|
|
771
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
|
772
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
|
773
|
+
# Use this to sort resources like operations so that the newest operation is
|
|
774
|
+
# returned first.
|
|
775
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
|
631
776
|
# @param [String] page_token
|
|
632
777
|
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
633
778
|
# a previous list request to get the next page of results.
|
|
@@ -652,13 +797,14 @@ module Google
|
|
|
652
797
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
653
798
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
654
799
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
655
|
-
def list_operations(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
800
|
+
def list_operations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
656
801
|
command = make_simple_command(:get, '{project}/global/operations', options)
|
|
657
802
|
command.response_representation = Google::Apis::DeploymentmanagerV2::ListOperationsResponse::Representation
|
|
658
803
|
command.response_class = Google::Apis::DeploymentmanagerV2::ListOperationsResponse
|
|
659
804
|
command.params['project'] = project unless project.nil?
|
|
660
805
|
command.query['filter'] = filter unless filter.nil?
|
|
661
806
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
807
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
662
808
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
663
809
|
command.query['fields'] = fields unless fields.nil?
|
|
664
810
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -725,21 +871,28 @@ module Google
|
|
|
725
871
|
# must match the entire field.
|
|
726
872
|
# For example, to filter for instances that do not have a name of example-
|
|
727
873
|
# instance, you would use filter=name ne example-instance.
|
|
728
|
-
#
|
|
729
|
-
#
|
|
730
|
-
#
|
|
731
|
-
#
|
|
732
|
-
#
|
|
733
|
-
#
|
|
734
|
-
#
|
|
735
|
-
#
|
|
736
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
737
|
-
# to pass the filters.
|
|
874
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
875
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
876
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
877
|
+
# based on label values.
|
|
878
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
879
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
880
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
881
|
+
# resources must match all expressions to pass the filters.
|
|
738
882
|
# @param [Fixnum] max_results
|
|
739
883
|
# The maximum number of results per page that should be returned. If the number
|
|
740
884
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
741
885
|
# nextPageToken that can be used to get the next page of results in subsequent
|
|
742
886
|
# list requests.
|
|
887
|
+
# @param [String] order_by
|
|
888
|
+
# Sorts list results by a certain order. By default, results are returned in
|
|
889
|
+
# alphanumerical order based on the resource name.
|
|
890
|
+
# You can also sort results in descending order based on the creation timestamp
|
|
891
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
|
892
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
|
893
|
+
# Use this to sort resources like operations so that the newest operation is
|
|
894
|
+
# returned first.
|
|
895
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
|
743
896
|
# @param [String] page_token
|
|
744
897
|
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
745
898
|
# a previous list request to get the next page of results.
|
|
@@ -764,7 +917,7 @@ module Google
|
|
|
764
917
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
765
918
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
766
919
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
767
|
-
def list_resources(project, deployment, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
920
|
+
def list_resources(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
768
921
|
command = make_simple_command(:get, '{project}/global/deployments/{deployment}/resources', options)
|
|
769
922
|
command.response_representation = Google::Apis::DeploymentmanagerV2::ListResourcesResponse::Representation
|
|
770
923
|
command.response_class = Google::Apis::DeploymentmanagerV2::ListResourcesResponse
|
|
@@ -772,6 +925,7 @@ module Google
|
|
|
772
925
|
command.params['deployment'] = deployment unless deployment.nil?
|
|
773
926
|
command.query['filter'] = filter unless filter.nil?
|
|
774
927
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
928
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
775
929
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
776
930
|
command.query['fields'] = fields unless fields.nil?
|
|
777
931
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -795,21 +949,28 @@ module Google
|
|
|
795
949
|
# must match the entire field.
|
|
796
950
|
# For example, to filter for instances that do not have a name of example-
|
|
797
951
|
# instance, you would use filter=name ne example-instance.
|
|
798
|
-
#
|
|
799
|
-
#
|
|
800
|
-
#
|
|
801
|
-
#
|
|
802
|
-
#
|
|
803
|
-
#
|
|
804
|
-
#
|
|
805
|
-
#
|
|
806
|
-
# treated as AND expressions, meaning that resources must match all expressions
|
|
807
|
-
# to pass the filters.
|
|
952
|
+
# You can filter on nested fields. For example, you could filter on instances
|
|
953
|
+
# that have set the scheduling.automaticRestart field to true. Use filtering on
|
|
954
|
+
# nested fields to take advantage of labels to organize and search for results
|
|
955
|
+
# based on label values.
|
|
956
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
957
|
+
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
|
|
958
|
+
# central1-f). Multiple expressions are treated as AND expressions, meaning that
|
|
959
|
+
# resources must match all expressions to pass the filters.
|
|
808
960
|
# @param [Fixnum] max_results
|
|
809
961
|
# The maximum number of results per page that should be returned. If the number
|
|
810
962
|
# of available results is larger than maxResults, Compute Engine returns a
|
|
811
963
|
# nextPageToken that can be used to get the next page of results in subsequent
|
|
812
964
|
# list requests.
|
|
965
|
+
# @param [String] order_by
|
|
966
|
+
# Sorts list results by a certain order. By default, results are returned in
|
|
967
|
+
# alphanumerical order based on the resource name.
|
|
968
|
+
# You can also sort results in descending order based on the creation timestamp
|
|
969
|
+
# using orderBy="creationTimestamp desc". This sorts results based on the
|
|
970
|
+
# creationTimestamp field in reverse chronological order (newest result first).
|
|
971
|
+
# Use this to sort resources like operations so that the newest operation is
|
|
972
|
+
# returned first.
|
|
973
|
+
# Currently, only sorting by name or creationTimestamp desc is supported.
|
|
813
974
|
# @param [String] page_token
|
|
814
975
|
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
|
|
815
976
|
# a previous list request to get the next page of results.
|
|
@@ -834,13 +995,14 @@ module Google
|
|
|
834
995
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
835
996
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
836
997
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
837
|
-
def list_types(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
998
|
+
def list_types(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
838
999
|
command = make_simple_command(:get, '{project}/global/types', options)
|
|
839
1000
|
command.response_representation = Google::Apis::DeploymentmanagerV2::ListTypesResponse::Representation
|
|
840
1001
|
command.response_class = Google::Apis::DeploymentmanagerV2::ListTypesResponse
|
|
841
1002
|
command.params['project'] = project unless project.nil?
|
|
842
1003
|
command.query['filter'] = filter unless filter.nil?
|
|
843
1004
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
1005
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
844
1006
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
845
1007
|
command.query['fields'] = fields unless fields.nil?
|
|
846
1008
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|