google-api-client 0.25.0 → 0.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{CONTRIBUTING.md → .github/CONTRIBUTING.md} +0 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +21 -0
- data/.github/ISSUE_TEMPLATE/support_request.md +7 -0
- data/.kokoro/build.bat +8 -0
- data/.kokoro/build.sh +36 -0
- data/.kokoro/common.cfg +22 -0
- data/.kokoro/continuous/common.cfg +20 -0
- data/.kokoro/continuous/linux.cfg +15 -0
- data/.kokoro/continuous/osx.cfg +3 -0
- data/.kokoro/continuous/windows.cfg +3 -0
- data/.kokoro/osx.sh +35 -0
- data/.kokoro/presubmit/common.cfg +19 -0
- data/.kokoro/presubmit/linux.cfg +14 -0
- data/.kokoro/presubmit/osx.cfg +3 -0
- data/.kokoro/presubmit/windows.cfg +3 -0
- data/.kokoro/trampoline.sh +24 -0
- data/.kokoro/windows.sh +32 -0
- data/CHANGELOG.md +83 -0
- data/Gemfile +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +3 -1
- data/generated/google/apis/alertcenter_v1beta1.rb +5 -3
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +110 -101
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +13 -0
- data/generated/google/apis/alertcenter_v1beta1/service.rb +83 -76
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +7 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +2 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +129 -44
- data/generated/google/apis/androidenterprise_v1/representations.rb +48 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +218 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +8 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +87 -29
- data/generated/google/apis/bigquery_v2/representations.rb +21 -0
- data/generated/google/apis/bigquery_v2/service.rb +7 -9
- data/generated/google/apis/calendar_v3.rb +2 -2
- data/generated/google/apis/calendar_v3/classes.rb +14 -6
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/service.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +14 -10
- data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +2 -2
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +2 -3
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +2 -3
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +127 -0
- data/generated/google/apis/cloudiot_v1/representations.rb +70 -0
- data/generated/google/apis/cloudiot_v1/service.rb +172 -2
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/service.rb +107 -0
- data/generated/google/apis/{cloudiot_v1beta1.rb → cloudscheduler_v1beta1.rb} +8 -12
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +882 -0
- data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +264 -0
- data/generated/google/apis/cloudscheduler_v1beta1/service.rb +445 -0
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +79 -1
- data/generated/google/apis/cloudsearch_v1/representations.rb +44 -0
- data/generated/google/apis/cloudsearch_v1/service.rb +88 -3
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +9 -0
- data/generated/google/apis/composer_v1/representations.rb +1 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +938 -117
- data/generated/google/apis/compute_alpha/representations.rb +310 -2
- data/generated/google/apis/compute_alpha/service.rb +1203 -245
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1175 -219
- data/generated/google/apis/compute_beta/representations.rb +375 -2
- data/generated/google/apis/compute_beta/service.rb +907 -139
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1485 -143
- data/generated/google/apis/compute_v1/representations.rb +503 -0
- data/generated/google/apis/compute_v1/service.rb +1375 -85
- data/generated/google/apis/container_v1.rb +3 -3
- data/generated/google/apis/container_v1/classes.rb +99 -6
- data/generated/google/apis/container_v1/representations.rb +39 -0
- data/generated/google/apis/container_v1/service.rb +2 -2
- data/generated/google/apis/container_v1beta1.rb +3 -3
- data/generated/google/apis/container_v1beta1/classes.rb +162 -9
- data/generated/google/apis/container_v1beta1/representations.rb +80 -0
- data/generated/google/apis/container_v1beta1/service.rb +3 -3
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +40 -32
- data/generated/google/apis/content_v2/representations.rb +0 -1
- data/generated/google/apis/content_v2/service.rb +3 -3
- data/generated/google/apis/content_v2_1.rb +35 -0
- data/generated/google/apis/content_v2_1/classes.rb +9104 -0
- data/generated/google/apis/content_v2_1/representations.rb +3967 -0
- data/generated/google/apis/content_v2_1/service.rb +3463 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +82 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +33 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +97 -6
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +15 -1
- data/generated/google/apis/dataproc_v1/representations.rb +2 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +125 -1
- data/generated/google/apis/dataproc_v1beta2/representations.rb +41 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +13 -6
- data/generated/google/apis/dialogflow_v2/service.rb +2 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +26 -6
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +12 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +261 -12
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +4 -4
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +326 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +149 -0
- data/generated/google/apis/dns_v1beta2/service.rb +246 -0
- data/generated/google/apis/drive_v2.rb +3 -3
- data/generated/google/apis/drive_v3.rb +3 -3
- data/generated/google/apis/driveactivity_v2.rb +37 -0
- data/generated/google/apis/driveactivity_v2/classes.rb +1388 -0
- data/generated/google/apis/driveactivity_v2/representations.rb +799 -0
- data/generated/google/apis/driveactivity_v2/service.rb +89 -0
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +8 -1
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +1 -0
- data/generated/google/apis/firebasehosting_v1beta1.rb +3 -2
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +43 -17
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +13 -0
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +74 -1
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +2225 -520
- data/generated/google/apis/firestore_v1/representations.rb +800 -33
- data/generated/google/apis/firestore_v1/service.rb +526 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -2
- data/generated/google/apis/fitness_v1/service.rb +7 -3
- data/generated/google/apis/games_management_v1management.rb +1 -4
- data/generated/google/apis/games_v1.rb +1 -4
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +6 -1
- data/generated/google/apis/gmail_v1.rb +2 -2
- data/generated/google/apis/iap_v1.rb +34 -0
- data/generated/google/apis/iap_v1/classes.rb +308 -0
- data/generated/google/apis/iap_v1/representations.rb +126 -0
- data/generated/google/apis/iap_v1/service.rb +725 -0
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +0 -132
- data/generated/google/apis/iap_v1beta1/representations.rb +0 -32
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +8 -9
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +6 -6
- data/generated/google/apis/jobs_v3/service.rb +8 -8
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +9 -9
- data/generated/google/apis/jobs_v3p1beta1/service.rb +8 -8
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +20 -7
- data/generated/google/apis/monitoring_v3/representations.rb +1 -0
- data/generated/google/apis/monitoring_v3/service.rb +0 -365
- data/generated/google/apis/pagespeedonline_v5.rb +32 -0
- data/generated/google/apis/pagespeedonline_v5/classes.rb +724 -0
- data/generated/google/apis/pagespeedonline_v5/representations.rb +315 -0
- data/generated/google/apis/pagespeedonline_v5/service.rb +116 -0
- data/generated/google/apis/people_v1.rb +3 -3
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +63 -12
- data/generated/google/apis/pubsub_v1/representations.rb +15 -0
- data/generated/google/apis/pubsub_v1/service.rb +26 -18
- data/generated/google/apis/redis_v1.rb +2 -3
- data/generated/google/apis/redis_v1/service.rb +1 -2
- data/generated/google/apis/redis_v1beta1.rb +2 -3
- data/generated/google/apis/redis_v1beta1/service.rb +1 -2
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +2 -2
- data/generated/google/apis/script_v1.rb +24 -6
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +66 -1
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +30 -0
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +89 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +7 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +1 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +84 -37
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +15 -0
- data/generated/google/apis/servicenetworking_v1beta/service.rb +132 -43
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -1
- data/generated/google/apis/sheets_v4.rb +4 -4
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +187 -2
- data/generated/google/apis/slides_v1/representations.rb +67 -0
- data/generated/google/apis/slides_v1/service.rb +4 -3
- data/generated/google/apis/sourcerepo_v1.rb +2 -2
- data/generated/google/apis/sourcerepo_v1/service.rb +1 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +58 -10
- data/generated/google/apis/speech_v1/representations.rb +29 -1
- data/generated/google/apis/{speech_v1beta1.rb → speech_v1p1beta1.rb} +6 -6
- data/generated/google/apis/speech_v1p1beta1/classes.rb +922 -0
- data/generated/google/apis/speech_v1p1beta1/representations.rb +294 -0
- data/generated/google/apis/{speech_v1beta1 → speech_v1p1beta1}/service.rb +33 -35
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +64 -3
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +31 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +54 -0
- data/generated/google/apis/storage_v1/representations.rb +31 -0
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +26 -0
- data/generated/google/apis/streetviewpublish_v1/representations.rb +4 -0
- data/generated/google/apis/streetviewpublish_v1/service.rb +29 -3
- data/generated/google/apis/tasks_v1.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +49 -19
- data/generated/google/apis/testing_v1/representations.rb +20 -2
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +77 -70
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +78 -7
- data/generated/google/apis/vault_v1/representations.rb +34 -1
- data/generated/google/apis/vault_v1/service.rb +141 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +33 -0
- data/generated/google/apis/vision_v1/representations.rb +16 -0
- data/generated/google/apis/vision_v1/service.rb +2 -2
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +33 -0
- data/generated/google/apis/vision_v1p1beta1/representations.rb +16 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +33 -0
- data/generated/google/apis/vision_v1p2beta1/representations.rb +16 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/google-api-client.gemspec +1 -1
- data/lib/google/api_client/auth/installed_app.rb +17 -2
- data/lib/google/api_client/client_secrets.rb +1 -1
- data/lib/google/apis/core/download.rb +2 -2
- data/lib/google/apis/errors.rb +9 -0
- data/lib/google/apis/generator/annotator.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +46 -17
- data/generated/google/apis/cloudiot_v1beta1/classes.rb +0 -959
- data/generated/google/apis/cloudiot_v1beta1/representations.rb +0 -375
- data/generated/google/apis/cloudiot_v1beta1/service.rb +0 -618
- data/generated/google/apis/dfareporting_v3_0.rb +0 -40
- data/generated/google/apis/dfareporting_v3_0/classes.rb +0 -12119
- data/generated/google/apis/dfareporting_v3_0/representations.rb +0 -4336
- data/generated/google/apis/dfareporting_v3_0/service.rb +0 -8701
- data/generated/google/apis/speech_v1beta1/classes.rb +0 -480
- data/generated/google/apis/speech_v1beta1/representations.rb +0 -194
@@ -22,6 +22,18 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module CloudiotV1
|
24
24
|
|
25
|
+
class BindDeviceToGatewayRequest
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class BindDeviceToGatewayResponse
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
25
37
|
class Binding
|
26
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
39
|
|
@@ -76,6 +88,12 @@ module Google
|
|
76
88
|
include Google::Apis::Core::JsonObjectSupport
|
77
89
|
end
|
78
90
|
|
91
|
+
class GatewayConfig
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
79
97
|
class GetIamPolicyRequest
|
80
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
99
|
|
@@ -190,12 +208,38 @@ module Google
|
|
190
208
|
include Google::Apis::Core::JsonObjectSupport
|
191
209
|
end
|
192
210
|
|
211
|
+
class UnbindDeviceFromGatewayRequest
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
217
|
+
class UnbindDeviceFromGatewayResponse
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
193
223
|
class X509CertificateDetails
|
194
224
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
225
|
|
196
226
|
include Google::Apis::Core::JsonObjectSupport
|
197
227
|
end
|
198
228
|
|
229
|
+
class BindDeviceToGatewayRequest
|
230
|
+
# @private
|
231
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
232
|
+
property :device_id, as: 'deviceId'
|
233
|
+
property :gateway_id, as: 'gatewayId'
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
class BindDeviceToGatewayResponse
|
238
|
+
# @private
|
239
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
199
243
|
class Binding
|
200
244
|
# @private
|
201
245
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -214,6 +258,8 @@ module Google
|
|
214
258
|
|
215
259
|
collection :credentials, as: 'credentials', class: Google::Apis::CloudiotV1::DeviceCredential, decorator: Google::Apis::CloudiotV1::DeviceCredential::Representation
|
216
260
|
|
261
|
+
property :gateway_config, as: 'gatewayConfig', class: Google::Apis::CloudiotV1::GatewayConfig, decorator: Google::Apis::CloudiotV1::GatewayConfig::Representation
|
262
|
+
|
217
263
|
property :id, as: 'id'
|
218
264
|
property :last_config_ack_time, as: 'lastConfigAckTime'
|
219
265
|
property :last_config_send_time, as: 'lastConfigSendTime'
|
@@ -302,6 +348,16 @@ module Google
|
|
302
348
|
end
|
303
349
|
end
|
304
350
|
|
351
|
+
class GatewayConfig
|
352
|
+
# @private
|
353
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
354
|
+
property :gateway_auth_method, as: 'gatewayAuthMethod'
|
355
|
+
property :gateway_type, as: 'gatewayType'
|
356
|
+
property :last_accessed_gateway_id, as: 'lastAccessedGatewayId'
|
357
|
+
property :last_accessed_gateway_time, as: 'lastAccessedGatewayTime'
|
358
|
+
end
|
359
|
+
end
|
360
|
+
|
305
361
|
class GetIamPolicyRequest
|
306
362
|
# @private
|
307
363
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -452,6 +508,20 @@ module Google
|
|
452
508
|
end
|
453
509
|
end
|
454
510
|
|
511
|
+
class UnbindDeviceFromGatewayRequest
|
512
|
+
# @private
|
513
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
514
|
+
property :device_id, as: 'deviceId'
|
515
|
+
property :gateway_id, as: 'gatewayId'
|
516
|
+
end
|
517
|
+
end
|
518
|
+
|
519
|
+
class UnbindDeviceFromGatewayResponse
|
520
|
+
# @private
|
521
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
522
|
+
end
|
523
|
+
end
|
524
|
+
|
455
525
|
class X509CertificateDetails
|
456
526
|
# @private
|
457
527
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -48,6 +48,40 @@ module Google
|
|
48
48
|
@batch_path = 'batch'
|
49
49
|
end
|
50
50
|
|
51
|
+
# Associates the device with the gateway.
|
52
|
+
# @param [String] parent
|
53
|
+
# The name of the registry. For example,
|
54
|
+
# `projects/example-project/locations/us-central1/registries/my-registry`.
|
55
|
+
# @param [Google::Apis::CloudiotV1::BindDeviceToGatewayRequest] bind_device_to_gateway_request_object
|
56
|
+
# @param [String] fields
|
57
|
+
# Selector specifying which fields to include in a partial response.
|
58
|
+
# @param [String] quota_user
|
59
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
60
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
61
|
+
# @param [Google::Apis::RequestOptions] options
|
62
|
+
# Request-specific options
|
63
|
+
#
|
64
|
+
# @yield [result, err] Result & error if block supplied
|
65
|
+
# @yieldparam result [Google::Apis::CloudiotV1::BindDeviceToGatewayResponse] parsed result object
|
66
|
+
# @yieldparam err [StandardError] error object if request failed
|
67
|
+
#
|
68
|
+
# @return [Google::Apis::CloudiotV1::BindDeviceToGatewayResponse]
|
69
|
+
#
|
70
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
71
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
72
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
73
|
+
def bind_registry_device_to_gateway(parent, bind_device_to_gateway_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
74
|
+
command = make_simple_command(:post, 'v1/{+parent}:bindDeviceToGateway', options)
|
75
|
+
command.request_representation = Google::Apis::CloudiotV1::BindDeviceToGatewayRequest::Representation
|
76
|
+
command.request_object = bind_device_to_gateway_request_object
|
77
|
+
command.response_representation = Google::Apis::CloudiotV1::BindDeviceToGatewayResponse::Representation
|
78
|
+
command.response_class = Google::Apis::CloudiotV1::BindDeviceToGatewayResponse
|
79
|
+
command.params['parent'] = parent unless parent.nil?
|
80
|
+
command.query['fields'] = fields unless fields.nil?
|
81
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
82
|
+
execute_or_queue_command(command, &block)
|
83
|
+
end
|
84
|
+
|
51
85
|
# Creates a device registry that contains devices.
|
52
86
|
# @param [String] parent
|
53
87
|
# The project and cloud region where this device registry must be created.
|
@@ -334,6 +368,40 @@ module Google
|
|
334
368
|
execute_or_queue_command(command, &block)
|
335
369
|
end
|
336
370
|
|
371
|
+
# Deletes the association between the device and the gateway.
|
372
|
+
# @param [String] parent
|
373
|
+
# The name of the registry. For example,
|
374
|
+
# `projects/example-project/locations/us-central1/registries/my-registry`.
|
375
|
+
# @param [Google::Apis::CloudiotV1::UnbindDeviceFromGatewayRequest] unbind_device_from_gateway_request_object
|
376
|
+
# @param [String] fields
|
377
|
+
# Selector specifying which fields to include in a partial response.
|
378
|
+
# @param [String] quota_user
|
379
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
380
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
381
|
+
# @param [Google::Apis::RequestOptions] options
|
382
|
+
# Request-specific options
|
383
|
+
#
|
384
|
+
# @yield [result, err] Result & error if block supplied
|
385
|
+
# @yieldparam result [Google::Apis::CloudiotV1::UnbindDeviceFromGatewayResponse] parsed result object
|
386
|
+
# @yieldparam err [StandardError] error object if request failed
|
387
|
+
#
|
388
|
+
# @return [Google::Apis::CloudiotV1::UnbindDeviceFromGatewayResponse]
|
389
|
+
#
|
390
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
391
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
392
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
393
|
+
def unbind_registry_device_from_gateway(parent, unbind_device_from_gateway_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
394
|
+
command = make_simple_command(:post, 'v1/{+parent}:unbindDeviceFromGateway', options)
|
395
|
+
command.request_representation = Google::Apis::CloudiotV1::UnbindDeviceFromGatewayRequest::Representation
|
396
|
+
command.request_object = unbind_device_from_gateway_request_object
|
397
|
+
command.response_representation = Google::Apis::CloudiotV1::UnbindDeviceFromGatewayResponse::Representation
|
398
|
+
command.response_class = Google::Apis::CloudiotV1::UnbindDeviceFromGatewayResponse
|
399
|
+
command.params['parent'] = parent unless parent.nil?
|
400
|
+
command.query['fields'] = fields unless fields.nil?
|
401
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
402
|
+
execute_or_queue_command(command, &block)
|
403
|
+
end
|
404
|
+
|
337
405
|
# Creates a device in a device registry.
|
338
406
|
# @param [String] parent
|
339
407
|
# The name of the device registry where this device should be created.
|
@@ -451,6 +519,20 @@ module Google
|
|
451
519
|
# The fields of the `Device` resource to be returned in the response. The
|
452
520
|
# fields `id` and `num_id` are always returned, along with any
|
453
521
|
# other fields specified.
|
522
|
+
# @param [String] gateway_list_options_associations_device_id
|
523
|
+
# If set, returns only the gateways with which the specified device is
|
524
|
+
# associated. The device ID can be numeric (`num_id`) or the user-defined
|
525
|
+
# string (`id`). For example, if `456` is specified, returns only the
|
526
|
+
# gateways to which the device with `num_id` 456 is bound.
|
527
|
+
# @param [String] gateway_list_options_associations_gateway_id
|
528
|
+
# If set, only devices associated with the specified gateway are returned.
|
529
|
+
# The gateway ID can be numeric (`num_id`) or the user-defined string
|
530
|
+
# (`id`). For example, if `123` is specified, only devices bound to the
|
531
|
+
# gateway with `num_id` 123 are returned.
|
532
|
+
# @param [String] gateway_list_options_gateway_type
|
533
|
+
# If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
|
534
|
+
# is specified, only non-gateway devices are returned. If
|
535
|
+
# `GATEWAY_TYPE_UNSPECIFIED` is specified, all devices are returned.
|
454
536
|
# @param [Fixnum] page_size
|
455
537
|
# The maximum number of devices to return in the response. If this value
|
456
538
|
# is zero, the service will select a default size. A call may return fewer
|
@@ -477,7 +559,7 @@ module Google
|
|
477
559
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
478
560
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
479
561
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
480
|
-
def list_project_location_registry_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
562
|
+
def list_project_location_registry_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, gateway_list_options_associations_device_id: nil, gateway_list_options_associations_gateway_id: nil, gateway_list_options_gateway_type: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
481
563
|
command = make_simple_command(:get, 'v1/{+parent}/devices', options)
|
482
564
|
command.response_representation = Google::Apis::CloudiotV1::ListDevicesResponse::Representation
|
483
565
|
command.response_class = Google::Apis::CloudiotV1::ListDevicesResponse
|
@@ -485,6 +567,9 @@ module Google
|
|
485
567
|
command.query['deviceIds'] = device_ids unless device_ids.nil?
|
486
568
|
command.query['deviceNumIds'] = device_num_ids unless device_num_ids.nil?
|
487
569
|
command.query['fieldMask'] = field_mask unless field_mask.nil?
|
570
|
+
command.query['gatewayListOptions.associationsDeviceId'] = gateway_list_options_associations_device_id unless gateway_list_options_associations_device_id.nil?
|
571
|
+
command.query['gatewayListOptions.associationsGatewayId'] = gateway_list_options_associations_gateway_id unless gateway_list_options_associations_gateway_id.nil?
|
572
|
+
command.query['gatewayListOptions.gatewayType'] = gateway_list_options_gateway_type unless gateway_list_options_gateway_type.nil?
|
488
573
|
command.query['pageSize'] = page_size unless page_size.nil?
|
489
574
|
command.query['pageToken'] = page_token unless page_token.nil?
|
490
575
|
command.query['fields'] = fields unless fields.nil?
|
@@ -695,6 +780,40 @@ module Google
|
|
695
780
|
execute_or_queue_command(command, &block)
|
696
781
|
end
|
697
782
|
|
783
|
+
# Associates the device with the gateway.
|
784
|
+
# @param [String] parent
|
785
|
+
# The name of the registry. For example,
|
786
|
+
# `projects/example-project/locations/us-central1/registries/my-registry`.
|
787
|
+
# @param [Google::Apis::CloudiotV1::BindDeviceToGatewayRequest] bind_device_to_gateway_request_object
|
788
|
+
# @param [String] fields
|
789
|
+
# Selector specifying which fields to include in a partial response.
|
790
|
+
# @param [String] quota_user
|
791
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
792
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
793
|
+
# @param [Google::Apis::RequestOptions] options
|
794
|
+
# Request-specific options
|
795
|
+
#
|
796
|
+
# @yield [result, err] Result & error if block supplied
|
797
|
+
# @yieldparam result [Google::Apis::CloudiotV1::BindDeviceToGatewayResponse] parsed result object
|
798
|
+
# @yieldparam err [StandardError] error object if request failed
|
799
|
+
#
|
800
|
+
# @return [Google::Apis::CloudiotV1::BindDeviceToGatewayResponse]
|
801
|
+
#
|
802
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
803
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
804
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
805
|
+
def bind_group_device_to_gateway(parent, bind_device_to_gateway_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
806
|
+
command = make_simple_command(:post, 'v1/{+parent}:bindDeviceToGateway', options)
|
807
|
+
command.request_representation = Google::Apis::CloudiotV1::BindDeviceToGatewayRequest::Representation
|
808
|
+
command.request_object = bind_device_to_gateway_request_object
|
809
|
+
command.response_representation = Google::Apis::CloudiotV1::BindDeviceToGatewayResponse::Representation
|
810
|
+
command.response_class = Google::Apis::CloudiotV1::BindDeviceToGatewayResponse
|
811
|
+
command.params['parent'] = parent unless parent.nil?
|
812
|
+
command.query['fields'] = fields unless fields.nil?
|
813
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
814
|
+
execute_or_queue_command(command, &block)
|
815
|
+
end
|
816
|
+
|
698
817
|
# Gets the access control policy for a resource.
|
699
818
|
# Returns an empty policy if the resource exists and does not have a policy
|
700
819
|
# set.
|
@@ -802,6 +921,40 @@ module Google
|
|
802
921
|
execute_or_queue_command(command, &block)
|
803
922
|
end
|
804
923
|
|
924
|
+
# Deletes the association between the device and the gateway.
|
925
|
+
# @param [String] parent
|
926
|
+
# The name of the registry. For example,
|
927
|
+
# `projects/example-project/locations/us-central1/registries/my-registry`.
|
928
|
+
# @param [Google::Apis::CloudiotV1::UnbindDeviceFromGatewayRequest] unbind_device_from_gateway_request_object
|
929
|
+
# @param [String] fields
|
930
|
+
# Selector specifying which fields to include in a partial response.
|
931
|
+
# @param [String] quota_user
|
932
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
933
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
934
|
+
# @param [Google::Apis::RequestOptions] options
|
935
|
+
# Request-specific options
|
936
|
+
#
|
937
|
+
# @yield [result, err] Result & error if block supplied
|
938
|
+
# @yieldparam result [Google::Apis::CloudiotV1::UnbindDeviceFromGatewayResponse] parsed result object
|
939
|
+
# @yieldparam err [StandardError] error object if request failed
|
940
|
+
#
|
941
|
+
# @return [Google::Apis::CloudiotV1::UnbindDeviceFromGatewayResponse]
|
942
|
+
#
|
943
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
944
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
945
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
946
|
+
def unbind_group_device_from_gateway(parent, unbind_device_from_gateway_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
947
|
+
command = make_simple_command(:post, 'v1/{+parent}:unbindDeviceFromGateway', options)
|
948
|
+
command.request_representation = Google::Apis::CloudiotV1::UnbindDeviceFromGatewayRequest::Representation
|
949
|
+
command.request_object = unbind_device_from_gateway_request_object
|
950
|
+
command.response_representation = Google::Apis::CloudiotV1::UnbindDeviceFromGatewayResponse::Representation
|
951
|
+
command.response_class = Google::Apis::CloudiotV1::UnbindDeviceFromGatewayResponse
|
952
|
+
command.params['parent'] = parent unless parent.nil?
|
953
|
+
command.query['fields'] = fields unless fields.nil?
|
954
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
955
|
+
execute_or_queue_command(command, &block)
|
956
|
+
end
|
957
|
+
|
805
958
|
# Gets details about a device.
|
806
959
|
# @param [String] name
|
807
960
|
# The name of the device. For example,
|
@@ -852,6 +1005,20 @@ module Google
|
|
852
1005
|
# The fields of the `Device` resource to be returned in the response. The
|
853
1006
|
# fields `id` and `num_id` are always returned, along with any
|
854
1007
|
# other fields specified.
|
1008
|
+
# @param [String] gateway_list_options_associations_device_id
|
1009
|
+
# If set, returns only the gateways with which the specified device is
|
1010
|
+
# associated. The device ID can be numeric (`num_id`) or the user-defined
|
1011
|
+
# string (`id`). For example, if `456` is specified, returns only the
|
1012
|
+
# gateways to which the device with `num_id` 456 is bound.
|
1013
|
+
# @param [String] gateway_list_options_associations_gateway_id
|
1014
|
+
# If set, only devices associated with the specified gateway are returned.
|
1015
|
+
# The gateway ID can be numeric (`num_id`) or the user-defined string
|
1016
|
+
# (`id`). For example, if `123` is specified, only devices bound to the
|
1017
|
+
# gateway with `num_id` 123 are returned.
|
1018
|
+
# @param [String] gateway_list_options_gateway_type
|
1019
|
+
# If `GATEWAY` is specified, only gateways are returned. If `NON_GATEWAY`
|
1020
|
+
# is specified, only non-gateway devices are returned. If
|
1021
|
+
# `GATEWAY_TYPE_UNSPECIFIED` is specified, all devices are returned.
|
855
1022
|
# @param [Fixnum] page_size
|
856
1023
|
# The maximum number of devices to return in the response. If this value
|
857
1024
|
# is zero, the service will select a default size. A call may return fewer
|
@@ -878,7 +1045,7 @@ module Google
|
|
878
1045
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
879
1046
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
880
1047
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
881
|
-
def list_project_location_registry_group_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1048
|
+
def list_project_location_registry_group_devices(parent, device_ids: nil, device_num_ids: nil, field_mask: nil, gateway_list_options_associations_device_id: nil, gateway_list_options_associations_gateway_id: nil, gateway_list_options_gateway_type: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
882
1049
|
command = make_simple_command(:get, 'v1/{+parent}/devices', options)
|
883
1050
|
command.response_representation = Google::Apis::CloudiotV1::ListDevicesResponse::Representation
|
884
1051
|
command.response_class = Google::Apis::CloudiotV1::ListDevicesResponse
|
@@ -886,6 +1053,9 @@ module Google
|
|
886
1053
|
command.query['deviceIds'] = device_ids unless device_ids.nil?
|
887
1054
|
command.query['deviceNumIds'] = device_num_ids unless device_num_ids.nil?
|
888
1055
|
command.query['fieldMask'] = field_mask unless field_mask.nil?
|
1056
|
+
command.query['gatewayListOptions.associationsDeviceId'] = gateway_list_options_associations_device_id unless gateway_list_options_associations_device_id.nil?
|
1057
|
+
command.query['gatewayListOptions.associationsGatewayId'] = gateway_list_options_associations_gateway_id unless gateway_list_options_associations_gateway_id.nil?
|
1058
|
+
command.query['gatewayListOptions.gatewayType'] = gateway_list_options_gateway_type unless gateway_list_options_gateway_type.nil?
|
889
1059
|
command.query['pageSize'] = page_size unless page_size.nil?
|
890
1060
|
command.query['pageToken'] = page_token unless page_token.nil?
|
891
1061
|
command.query['fields'] = fields unless fields.nil?
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/kms/
|
27
27
|
module CloudkmsV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20181130'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -1038,6 +1038,113 @@ module Google
|
|
1038
1038
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1039
1039
|
execute_or_queue_command(command, &block)
|
1040
1040
|
end
|
1041
|
+
|
1042
|
+
# Gets the access control policy for a resource.
|
1043
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
1044
|
+
# set.
|
1045
|
+
# @param [String] resource
|
1046
|
+
# REQUIRED: The resource for which the policy is being requested.
|
1047
|
+
# See the operation documentation for the appropriate value for this field.
|
1048
|
+
# @param [String] fields
|
1049
|
+
# Selector specifying which fields to include in a partial response.
|
1050
|
+
# @param [String] quota_user
|
1051
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1052
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1053
|
+
# @param [Google::Apis::RequestOptions] options
|
1054
|
+
# Request-specific options
|
1055
|
+
#
|
1056
|
+
# @yield [result, err] Result & error if block supplied
|
1057
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object
|
1058
|
+
# @yieldparam err [StandardError] error object if request failed
|
1059
|
+
#
|
1060
|
+
# @return [Google::Apis::CloudkmsV1::Policy]
|
1061
|
+
#
|
1062
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1063
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1064
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1065
|
+
def get_project_location_key_ring_import_job_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
1066
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
1067
|
+
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
|
1068
|
+
command.response_class = Google::Apis::CloudkmsV1::Policy
|
1069
|
+
command.params['resource'] = resource unless resource.nil?
|
1070
|
+
command.query['fields'] = fields unless fields.nil?
|
1071
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1072
|
+
execute_or_queue_command(command, &block)
|
1073
|
+
end
|
1074
|
+
|
1075
|
+
# Sets the access control policy on the specified resource. Replaces any
|
1076
|
+
# existing policy.
|
1077
|
+
# @param [String] resource
|
1078
|
+
# REQUIRED: The resource for which the policy is being specified.
|
1079
|
+
# See the operation documentation for the appropriate value for this field.
|
1080
|
+
# @param [Google::Apis::CloudkmsV1::SetIamPolicyRequest] set_iam_policy_request_object
|
1081
|
+
# @param [String] fields
|
1082
|
+
# Selector specifying which fields to include in a partial response.
|
1083
|
+
# @param [String] quota_user
|
1084
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1085
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1086
|
+
# @param [Google::Apis::RequestOptions] options
|
1087
|
+
# Request-specific options
|
1088
|
+
#
|
1089
|
+
# @yield [result, err] Result & error if block supplied
|
1090
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object
|
1091
|
+
# @yieldparam err [StandardError] error object if request failed
|
1092
|
+
#
|
1093
|
+
# @return [Google::Apis::CloudkmsV1::Policy]
|
1094
|
+
#
|
1095
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1096
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1097
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1098
|
+
def set_import_job_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1099
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
1100
|
+
command.request_representation = Google::Apis::CloudkmsV1::SetIamPolicyRequest::Representation
|
1101
|
+
command.request_object = set_iam_policy_request_object
|
1102
|
+
command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
|
1103
|
+
command.response_class = Google::Apis::CloudkmsV1::Policy
|
1104
|
+
command.params['resource'] = resource unless resource.nil?
|
1105
|
+
command.query['fields'] = fields unless fields.nil?
|
1106
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1107
|
+
execute_or_queue_command(command, &block)
|
1108
|
+
end
|
1109
|
+
|
1110
|
+
# Returns permissions that a caller has on the specified resource.
|
1111
|
+
# If the resource does not exist, this will return an empty set of
|
1112
|
+
# permissions, not a NOT_FOUND error.
|
1113
|
+
# Note: This operation is designed to be used for building permission-aware
|
1114
|
+
# UIs and command-line tools, not for authorization checking. This operation
|
1115
|
+
# may "fail open" without warning.
|
1116
|
+
# @param [String] resource
|
1117
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
1118
|
+
# See the operation documentation for the appropriate value for this field.
|
1119
|
+
# @param [Google::Apis::CloudkmsV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1120
|
+
# @param [String] fields
|
1121
|
+
# Selector specifying which fields to include in a partial response.
|
1122
|
+
# @param [String] quota_user
|
1123
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1124
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1125
|
+
# @param [Google::Apis::RequestOptions] options
|
1126
|
+
# Request-specific options
|
1127
|
+
#
|
1128
|
+
# @yield [result, err] Result & error if block supplied
|
1129
|
+
# @yieldparam result [Google::Apis::CloudkmsV1::TestIamPermissionsResponse] parsed result object
|
1130
|
+
# @yieldparam err [StandardError] error object if request failed
|
1131
|
+
#
|
1132
|
+
# @return [Google::Apis::CloudkmsV1::TestIamPermissionsResponse]
|
1133
|
+
#
|
1134
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1135
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1136
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1137
|
+
def test_import_job_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1138
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
1139
|
+
command.request_representation = Google::Apis::CloudkmsV1::TestIamPermissionsRequest::Representation
|
1140
|
+
command.request_object = test_iam_permissions_request_object
|
1141
|
+
command.response_representation = Google::Apis::CloudkmsV1::TestIamPermissionsResponse::Representation
|
1142
|
+
command.response_class = Google::Apis::CloudkmsV1::TestIamPermissionsResponse
|
1143
|
+
command.params['resource'] = resource unless resource.nil?
|
1144
|
+
command.query['fields'] = fields unless fields.nil?
|
1145
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1146
|
+
execute_or_queue_command(command, &block)
|
1147
|
+
end
|
1041
1148
|
|
1042
1149
|
protected
|
1043
1150
|
|