google-api-client 0.25.0 → 0.26.0
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/{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
@@ -1,375 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'date'
|
16
|
-
require 'google/apis/core/base_service'
|
17
|
-
require 'google/apis/core/json_representation'
|
18
|
-
require 'google/apis/core/hashable'
|
19
|
-
require 'google/apis/errors'
|
20
|
-
|
21
|
-
module Google
|
22
|
-
module Apis
|
23
|
-
module CloudiotV1beta1
|
24
|
-
|
25
|
-
class AuditConfig
|
26
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
-
|
28
|
-
include Google::Apis::Core::JsonObjectSupport
|
29
|
-
end
|
30
|
-
|
31
|
-
class AuditLogConfig
|
32
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
-
|
34
|
-
include Google::Apis::Core::JsonObjectSupport
|
35
|
-
end
|
36
|
-
|
37
|
-
class Binding
|
38
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
-
|
40
|
-
include Google::Apis::Core::JsonObjectSupport
|
41
|
-
end
|
42
|
-
|
43
|
-
class Device
|
44
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
-
|
46
|
-
include Google::Apis::Core::JsonObjectSupport
|
47
|
-
end
|
48
|
-
|
49
|
-
class DeviceConfig
|
50
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
-
|
52
|
-
include Google::Apis::Core::JsonObjectSupport
|
53
|
-
end
|
54
|
-
|
55
|
-
class DeviceConfigData
|
56
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
-
|
58
|
-
include Google::Apis::Core::JsonObjectSupport
|
59
|
-
end
|
60
|
-
|
61
|
-
class DeviceCredential
|
62
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
-
|
64
|
-
include Google::Apis::Core::JsonObjectSupport
|
65
|
-
end
|
66
|
-
|
67
|
-
class DeviceRegistry
|
68
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
-
|
70
|
-
include Google::Apis::Core::JsonObjectSupport
|
71
|
-
end
|
72
|
-
|
73
|
-
class Empty
|
74
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
-
|
76
|
-
include Google::Apis::Core::JsonObjectSupport
|
77
|
-
end
|
78
|
-
|
79
|
-
class Expr
|
80
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
-
|
82
|
-
include Google::Apis::Core::JsonObjectSupport
|
83
|
-
end
|
84
|
-
|
85
|
-
class GetIamPolicyRequest
|
86
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
-
|
88
|
-
include Google::Apis::Core::JsonObjectSupport
|
89
|
-
end
|
90
|
-
|
91
|
-
class ListDeviceConfigVersionsResponse
|
92
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
-
|
94
|
-
include Google::Apis::Core::JsonObjectSupport
|
95
|
-
end
|
96
|
-
|
97
|
-
class ListDeviceRegistriesResponse
|
98
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
-
|
100
|
-
include Google::Apis::Core::JsonObjectSupport
|
101
|
-
end
|
102
|
-
|
103
|
-
class ListDevicesResponse
|
104
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
-
|
106
|
-
include Google::Apis::Core::JsonObjectSupport
|
107
|
-
end
|
108
|
-
|
109
|
-
class ModifyCloudToDeviceConfigRequest
|
110
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
-
|
112
|
-
include Google::Apis::Core::JsonObjectSupport
|
113
|
-
end
|
114
|
-
|
115
|
-
class MqttConfig
|
116
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
-
|
118
|
-
include Google::Apis::Core::JsonObjectSupport
|
119
|
-
end
|
120
|
-
|
121
|
-
class NotificationConfig
|
122
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
-
|
124
|
-
include Google::Apis::Core::JsonObjectSupport
|
125
|
-
end
|
126
|
-
|
127
|
-
class Policy
|
128
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
-
|
130
|
-
include Google::Apis::Core::JsonObjectSupport
|
131
|
-
end
|
132
|
-
|
133
|
-
class PublicKeyCredential
|
134
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
-
|
136
|
-
include Google::Apis::Core::JsonObjectSupport
|
137
|
-
end
|
138
|
-
|
139
|
-
class SetIamPolicyRequest
|
140
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
-
|
142
|
-
include Google::Apis::Core::JsonObjectSupport
|
143
|
-
end
|
144
|
-
|
145
|
-
class Status
|
146
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
-
|
148
|
-
include Google::Apis::Core::JsonObjectSupport
|
149
|
-
end
|
150
|
-
|
151
|
-
class TestIamPermissionsRequest
|
152
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
-
|
154
|
-
include Google::Apis::Core::JsonObjectSupport
|
155
|
-
end
|
156
|
-
|
157
|
-
class TestIamPermissionsResponse
|
158
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
-
|
160
|
-
include Google::Apis::Core::JsonObjectSupport
|
161
|
-
end
|
162
|
-
|
163
|
-
class AuditConfig
|
164
|
-
# @private
|
165
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
166
|
-
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudiotV1beta1::AuditLogConfig, decorator: Google::Apis::CloudiotV1beta1::AuditLogConfig::Representation
|
167
|
-
|
168
|
-
collection :exempted_members, as: 'exemptedMembers'
|
169
|
-
property :service, as: 'service'
|
170
|
-
end
|
171
|
-
end
|
172
|
-
|
173
|
-
class AuditLogConfig
|
174
|
-
# @private
|
175
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
176
|
-
collection :exempted_members, as: 'exemptedMembers'
|
177
|
-
property :log_type, as: 'logType'
|
178
|
-
end
|
179
|
-
end
|
180
|
-
|
181
|
-
class Binding
|
182
|
-
# @private
|
183
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
184
|
-
property :condition, as: 'condition', class: Google::Apis::CloudiotV1beta1::Expr, decorator: Google::Apis::CloudiotV1beta1::Expr::Representation
|
185
|
-
|
186
|
-
collection :members, as: 'members'
|
187
|
-
property :role, as: 'role'
|
188
|
-
end
|
189
|
-
end
|
190
|
-
|
191
|
-
class Device
|
192
|
-
# @private
|
193
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
194
|
-
property :config, as: 'config', class: Google::Apis::CloudiotV1beta1::DeviceConfig, decorator: Google::Apis::CloudiotV1beta1::DeviceConfig::Representation
|
195
|
-
|
196
|
-
collection :credentials, as: 'credentials', class: Google::Apis::CloudiotV1beta1::DeviceCredential, decorator: Google::Apis::CloudiotV1beta1::DeviceCredential::Representation
|
197
|
-
|
198
|
-
property :enabled_state, as: 'enabledState'
|
199
|
-
property :id, as: 'id'
|
200
|
-
property :last_config_ack_time, as: 'lastConfigAckTime'
|
201
|
-
property :last_error_status, as: 'lastErrorStatus', class: Google::Apis::CloudiotV1beta1::Status, decorator: Google::Apis::CloudiotV1beta1::Status::Representation
|
202
|
-
|
203
|
-
property :last_error_time, as: 'lastErrorTime'
|
204
|
-
property :last_event_time, as: 'lastEventTime'
|
205
|
-
property :last_heartbeat_time, as: 'lastHeartbeatTime'
|
206
|
-
property :name, as: 'name'
|
207
|
-
property :num_id, :numeric_string => true, as: 'numId'
|
208
|
-
end
|
209
|
-
end
|
210
|
-
|
211
|
-
class DeviceConfig
|
212
|
-
# @private
|
213
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
214
|
-
property :cloud_update_time, as: 'cloudUpdateTime'
|
215
|
-
property :data, as: 'data', class: Google::Apis::CloudiotV1beta1::DeviceConfigData, decorator: Google::Apis::CloudiotV1beta1::DeviceConfigData::Representation
|
216
|
-
|
217
|
-
property :device_ack_time, as: 'deviceAckTime'
|
218
|
-
property :version, :numeric_string => true, as: 'version'
|
219
|
-
end
|
220
|
-
end
|
221
|
-
|
222
|
-
class DeviceConfigData
|
223
|
-
# @private
|
224
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
225
|
-
property :binary_data, :base64 => true, as: 'binaryData'
|
226
|
-
end
|
227
|
-
end
|
228
|
-
|
229
|
-
class DeviceCredential
|
230
|
-
# @private
|
231
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
232
|
-
property :expiration_time, as: 'expirationTime'
|
233
|
-
property :public_key, as: 'publicKey', class: Google::Apis::CloudiotV1beta1::PublicKeyCredential, decorator: Google::Apis::CloudiotV1beta1::PublicKeyCredential::Representation
|
234
|
-
|
235
|
-
end
|
236
|
-
end
|
237
|
-
|
238
|
-
class DeviceRegistry
|
239
|
-
# @private
|
240
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
241
|
-
property :event_notification_config, as: 'eventNotificationConfig', class: Google::Apis::CloudiotV1beta1::NotificationConfig, decorator: Google::Apis::CloudiotV1beta1::NotificationConfig::Representation
|
242
|
-
|
243
|
-
property :id, as: 'id'
|
244
|
-
property :mqtt_config, as: 'mqttConfig', class: Google::Apis::CloudiotV1beta1::MqttConfig, decorator: Google::Apis::CloudiotV1beta1::MqttConfig::Representation
|
245
|
-
|
246
|
-
property :name, as: 'name'
|
247
|
-
end
|
248
|
-
end
|
249
|
-
|
250
|
-
class Empty
|
251
|
-
# @private
|
252
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
253
|
-
end
|
254
|
-
end
|
255
|
-
|
256
|
-
class Expr
|
257
|
-
# @private
|
258
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
259
|
-
property :description, as: 'description'
|
260
|
-
property :expression, as: 'expression'
|
261
|
-
property :location, as: 'location'
|
262
|
-
property :title, as: 'title'
|
263
|
-
end
|
264
|
-
end
|
265
|
-
|
266
|
-
class GetIamPolicyRequest
|
267
|
-
# @private
|
268
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
269
|
-
end
|
270
|
-
end
|
271
|
-
|
272
|
-
class ListDeviceConfigVersionsResponse
|
273
|
-
# @private
|
274
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
275
|
-
collection :device_configs, as: 'deviceConfigs', class: Google::Apis::CloudiotV1beta1::DeviceConfig, decorator: Google::Apis::CloudiotV1beta1::DeviceConfig::Representation
|
276
|
-
|
277
|
-
end
|
278
|
-
end
|
279
|
-
|
280
|
-
class ListDeviceRegistriesResponse
|
281
|
-
# @private
|
282
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
283
|
-
collection :device_registries, as: 'deviceRegistries', class: Google::Apis::CloudiotV1beta1::DeviceRegistry, decorator: Google::Apis::CloudiotV1beta1::DeviceRegistry::Representation
|
284
|
-
|
285
|
-
property :next_page_token, as: 'nextPageToken'
|
286
|
-
end
|
287
|
-
end
|
288
|
-
|
289
|
-
class ListDevicesResponse
|
290
|
-
# @private
|
291
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
292
|
-
collection :devices, as: 'devices', class: Google::Apis::CloudiotV1beta1::Device, decorator: Google::Apis::CloudiotV1beta1::Device::Representation
|
293
|
-
|
294
|
-
property :next_page_token, as: 'nextPageToken'
|
295
|
-
end
|
296
|
-
end
|
297
|
-
|
298
|
-
class ModifyCloudToDeviceConfigRequest
|
299
|
-
# @private
|
300
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
301
|
-
property :data, as: 'data', class: Google::Apis::CloudiotV1beta1::DeviceConfigData, decorator: Google::Apis::CloudiotV1beta1::DeviceConfigData::Representation
|
302
|
-
|
303
|
-
property :version_to_update, :numeric_string => true, as: 'versionToUpdate'
|
304
|
-
end
|
305
|
-
end
|
306
|
-
|
307
|
-
class MqttConfig
|
308
|
-
# @private
|
309
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
310
|
-
property :mqtt_config_state, as: 'mqttConfigState'
|
311
|
-
end
|
312
|
-
end
|
313
|
-
|
314
|
-
class NotificationConfig
|
315
|
-
# @private
|
316
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
317
|
-
property :pubsub_topic_name, as: 'pubsubTopicName'
|
318
|
-
end
|
319
|
-
end
|
320
|
-
|
321
|
-
class Policy
|
322
|
-
# @private
|
323
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
324
|
-
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudiotV1beta1::AuditConfig, decorator: Google::Apis::CloudiotV1beta1::AuditConfig::Representation
|
325
|
-
|
326
|
-
collection :bindings, as: 'bindings', class: Google::Apis::CloudiotV1beta1::Binding, decorator: Google::Apis::CloudiotV1beta1::Binding::Representation
|
327
|
-
|
328
|
-
property :etag, :base64 => true, as: 'etag'
|
329
|
-
property :iam_owned, as: 'iamOwned'
|
330
|
-
property :version, as: 'version'
|
331
|
-
end
|
332
|
-
end
|
333
|
-
|
334
|
-
class PublicKeyCredential
|
335
|
-
# @private
|
336
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
337
|
-
property :format, as: 'format'
|
338
|
-
property :key, as: 'key'
|
339
|
-
end
|
340
|
-
end
|
341
|
-
|
342
|
-
class SetIamPolicyRequest
|
343
|
-
# @private
|
344
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
345
|
-
property :policy, as: 'policy', class: Google::Apis::CloudiotV1beta1::Policy, decorator: Google::Apis::CloudiotV1beta1::Policy::Representation
|
346
|
-
|
347
|
-
property :update_mask, as: 'updateMask'
|
348
|
-
end
|
349
|
-
end
|
350
|
-
|
351
|
-
class Status
|
352
|
-
# @private
|
353
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
354
|
-
property :code, as: 'code'
|
355
|
-
collection :details, as: 'details'
|
356
|
-
property :message, as: 'message'
|
357
|
-
end
|
358
|
-
end
|
359
|
-
|
360
|
-
class TestIamPermissionsRequest
|
361
|
-
# @private
|
362
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
363
|
-
collection :permissions, as: 'permissions'
|
364
|
-
end
|
365
|
-
end
|
366
|
-
|
367
|
-
class TestIamPermissionsResponse
|
368
|
-
# @private
|
369
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
370
|
-
collection :permissions, as: 'permissions'
|
371
|
-
end
|
372
|
-
end
|
373
|
-
end
|
374
|
-
end
|
375
|
-
end
|
@@ -1,618 +0,0 @@
|
|
1
|
-
# Copyright 2015 Google Inc.
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
require 'google/apis/core/base_service'
|
16
|
-
require 'google/apis/core/json_representation'
|
17
|
-
require 'google/apis/core/hashable'
|
18
|
-
require 'google/apis/errors'
|
19
|
-
|
20
|
-
module Google
|
21
|
-
module Apis
|
22
|
-
module CloudiotV1beta1
|
23
|
-
# Google Cloud IoT API
|
24
|
-
#
|
25
|
-
# Registers and manages IoT (Internet of Things) devices that connect to the
|
26
|
-
# Google Cloud Platform.
|
27
|
-
#
|
28
|
-
# @example
|
29
|
-
# require 'google/apis/cloudiot_v1beta1'
|
30
|
-
#
|
31
|
-
# Cloudiot = Google::Apis::CloudiotV1beta1 # Alias the module
|
32
|
-
# service = Cloudiot::CloudIotService.new
|
33
|
-
#
|
34
|
-
# @see https://cloud.google.com/iot
|
35
|
-
class CloudIotService < Google::Apis::Core::BaseService
|
36
|
-
# @return [String]
|
37
|
-
# API key. Your API key identifies your project and provides you with API access,
|
38
|
-
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
39
|
-
attr_accessor :key
|
40
|
-
|
41
|
-
# @return [String]
|
42
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
|
-
attr_accessor :quota_user
|
45
|
-
|
46
|
-
def initialize
|
47
|
-
super('https://cloudiot.googleapis.com/', '')
|
48
|
-
@batch_path = 'batch'
|
49
|
-
end
|
50
|
-
|
51
|
-
# Creates a device registry that contains devices.
|
52
|
-
# @param [String] parent
|
53
|
-
# The project and cloud region where this device registry must be created.
|
54
|
-
# For example, `projects/example-project/locations/us-central1`.
|
55
|
-
# @param [Google::Apis::CloudiotV1beta1::DeviceRegistry] device_registry_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::CloudiotV1beta1::DeviceRegistry] parsed result object
|
66
|
-
# @yieldparam err [StandardError] error object if request failed
|
67
|
-
#
|
68
|
-
# @return [Google::Apis::CloudiotV1beta1::DeviceRegistry]
|
69
|
-
#
|
70
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
71
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
72
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
73
|
-
def create_project_location_registry(parent, device_registry_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
74
|
-
command = make_simple_command(:post, 'v1beta1/{+parent}/registries', options)
|
75
|
-
command.request_representation = Google::Apis::CloudiotV1beta1::DeviceRegistry::Representation
|
76
|
-
command.request_object = device_registry_object
|
77
|
-
command.response_representation = Google::Apis::CloudiotV1beta1::DeviceRegistry::Representation
|
78
|
-
command.response_class = Google::Apis::CloudiotV1beta1::DeviceRegistry
|
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
|
-
|
85
|
-
# Deletes a device registry configuration.
|
86
|
-
# @param [String] name
|
87
|
-
# The name of the device registry. For example,
|
88
|
-
# `projects/example-project/locations/us-central1/registries/my-registry`.
|
89
|
-
# @param [String] fields
|
90
|
-
# Selector specifying which fields to include in a partial response.
|
91
|
-
# @param [String] quota_user
|
92
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
93
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
94
|
-
# @param [Google::Apis::RequestOptions] options
|
95
|
-
# Request-specific options
|
96
|
-
#
|
97
|
-
# @yield [result, err] Result & error if block supplied
|
98
|
-
# @yieldparam result [Google::Apis::CloudiotV1beta1::Empty] parsed result object
|
99
|
-
# @yieldparam err [StandardError] error object if request failed
|
100
|
-
#
|
101
|
-
# @return [Google::Apis::CloudiotV1beta1::Empty]
|
102
|
-
#
|
103
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
104
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
105
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
106
|
-
def delete_project_location_registry(name, fields: nil, quota_user: nil, options: nil, &block)
|
107
|
-
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
108
|
-
command.response_representation = Google::Apis::CloudiotV1beta1::Empty::Representation
|
109
|
-
command.response_class = Google::Apis::CloudiotV1beta1::Empty
|
110
|
-
command.params['name'] = name unless name.nil?
|
111
|
-
command.query['fields'] = fields unless fields.nil?
|
112
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
113
|
-
execute_or_queue_command(command, &block)
|
114
|
-
end
|
115
|
-
|
116
|
-
# Gets a device registry configuration.
|
117
|
-
# @param [String] name
|
118
|
-
# The name of the device registry. For example,
|
119
|
-
# `projects/example-project/locations/us-central1/registries/my-registry`.
|
120
|
-
# @param [String] fields
|
121
|
-
# Selector specifying which fields to include in a partial response.
|
122
|
-
# @param [String] quota_user
|
123
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
124
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
125
|
-
# @param [Google::Apis::RequestOptions] options
|
126
|
-
# Request-specific options
|
127
|
-
#
|
128
|
-
# @yield [result, err] Result & error if block supplied
|
129
|
-
# @yieldparam result [Google::Apis::CloudiotV1beta1::DeviceRegistry] parsed result object
|
130
|
-
# @yieldparam err [StandardError] error object if request failed
|
131
|
-
#
|
132
|
-
# @return [Google::Apis::CloudiotV1beta1::DeviceRegistry]
|
133
|
-
#
|
134
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
135
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
136
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
137
|
-
def get_project_location_registry(name, fields: nil, quota_user: nil, options: nil, &block)
|
138
|
-
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
139
|
-
command.response_representation = Google::Apis::CloudiotV1beta1::DeviceRegistry::Representation
|
140
|
-
command.response_class = Google::Apis::CloudiotV1beta1::DeviceRegistry
|
141
|
-
command.params['name'] = name unless name.nil?
|
142
|
-
command.query['fields'] = fields unless fields.nil?
|
143
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
144
|
-
execute_or_queue_command(command, &block)
|
145
|
-
end
|
146
|
-
|
147
|
-
# Gets the access control policy for a resource.
|
148
|
-
# Returns an empty policy if the resource exists and does not have a policy
|
149
|
-
# set.
|
150
|
-
# @param [String] resource
|
151
|
-
# REQUIRED: The resource for which the policy is being requested.
|
152
|
-
# See the operation documentation for the appropriate value for this field.
|
153
|
-
# @param [Google::Apis::CloudiotV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
|
154
|
-
# @param [String] fields
|
155
|
-
# Selector specifying which fields to include in a partial response.
|
156
|
-
# @param [String] quota_user
|
157
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
158
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
159
|
-
# @param [Google::Apis::RequestOptions] options
|
160
|
-
# Request-specific options
|
161
|
-
#
|
162
|
-
# @yield [result, err] Result & error if block supplied
|
163
|
-
# @yieldparam result [Google::Apis::CloudiotV1beta1::Policy] parsed result object
|
164
|
-
# @yieldparam err [StandardError] error object if request failed
|
165
|
-
#
|
166
|
-
# @return [Google::Apis::CloudiotV1beta1::Policy]
|
167
|
-
#
|
168
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
169
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
170
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
171
|
-
def get_registry_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
172
|
-
command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
|
173
|
-
command.request_representation = Google::Apis::CloudiotV1beta1::GetIamPolicyRequest::Representation
|
174
|
-
command.request_object = get_iam_policy_request_object
|
175
|
-
command.response_representation = Google::Apis::CloudiotV1beta1::Policy::Representation
|
176
|
-
command.response_class = Google::Apis::CloudiotV1beta1::Policy
|
177
|
-
command.params['resource'] = resource unless resource.nil?
|
178
|
-
command.query['fields'] = fields unless fields.nil?
|
179
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
180
|
-
execute_or_queue_command(command, &block)
|
181
|
-
end
|
182
|
-
|
183
|
-
# Lists device registries.
|
184
|
-
# @param [String] parent
|
185
|
-
# The project and cloud region path. For example,
|
186
|
-
# `projects/example-project/locations/us-central1`.
|
187
|
-
# @param [Fixnum] page_size
|
188
|
-
# The maximum number of registries to return in the response. If this value
|
189
|
-
# is zero, the service will select a default size. A call may return fewer
|
190
|
-
# objects than requested, but if there is a non-empty `page_token`, it
|
191
|
-
# indicates that more entries are available.
|
192
|
-
# @param [String] page_token
|
193
|
-
# The value returned by the last `ListDeviceRegistriesResponse`; indicates
|
194
|
-
# that this is a continuation of a prior `ListDeviceRegistries` call, and
|
195
|
-
# that the system should return the next page of data.
|
196
|
-
# @param [String] fields
|
197
|
-
# Selector specifying which fields to include in a partial response.
|
198
|
-
# @param [String] quota_user
|
199
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
200
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
201
|
-
# @param [Google::Apis::RequestOptions] options
|
202
|
-
# Request-specific options
|
203
|
-
#
|
204
|
-
# @yield [result, err] Result & error if block supplied
|
205
|
-
# @yieldparam result [Google::Apis::CloudiotV1beta1::ListDeviceRegistriesResponse] parsed result object
|
206
|
-
# @yieldparam err [StandardError] error object if request failed
|
207
|
-
#
|
208
|
-
# @return [Google::Apis::CloudiotV1beta1::ListDeviceRegistriesResponse]
|
209
|
-
#
|
210
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
211
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
212
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
213
|
-
def list_project_location_registries(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
214
|
-
command = make_simple_command(:get, 'v1beta1/{+parent}/registries', options)
|
215
|
-
command.response_representation = Google::Apis::CloudiotV1beta1::ListDeviceRegistriesResponse::Representation
|
216
|
-
command.response_class = Google::Apis::CloudiotV1beta1::ListDeviceRegistriesResponse
|
217
|
-
command.params['parent'] = parent unless parent.nil?
|
218
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
219
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
220
|
-
command.query['fields'] = fields unless fields.nil?
|
221
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
222
|
-
execute_or_queue_command(command, &block)
|
223
|
-
end
|
224
|
-
|
225
|
-
# Updates a device registry configuration.
|
226
|
-
# @param [String] name
|
227
|
-
# The resource path name. For example,
|
228
|
-
# `projects/example-project/locations/us-central1/registries/my-registry`.
|
229
|
-
# @param [Google::Apis::CloudiotV1beta1::DeviceRegistry] device_registry_object
|
230
|
-
# @param [String] update_mask
|
231
|
-
# Only updates the `device_registry` fields indicated by this mask.
|
232
|
-
# The field mask must not be empty, and it must not contain fields that
|
233
|
-
# are immutable or only set by the server.
|
234
|
-
# Mutable top-level fields: `event_notification_config` and `mqtt_config`
|
235
|
-
# @param [String] fields
|
236
|
-
# Selector specifying which fields to include in a partial response.
|
237
|
-
# @param [String] quota_user
|
238
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
239
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
240
|
-
# @param [Google::Apis::RequestOptions] options
|
241
|
-
# Request-specific options
|
242
|
-
#
|
243
|
-
# @yield [result, err] Result & error if block supplied
|
244
|
-
# @yieldparam result [Google::Apis::CloudiotV1beta1::DeviceRegistry] parsed result object
|
245
|
-
# @yieldparam err [StandardError] error object if request failed
|
246
|
-
#
|
247
|
-
# @return [Google::Apis::CloudiotV1beta1::DeviceRegistry]
|
248
|
-
#
|
249
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
250
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
251
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
252
|
-
def patch_project_location_registry(name, device_registry_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
253
|
-
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
254
|
-
command.request_representation = Google::Apis::CloudiotV1beta1::DeviceRegistry::Representation
|
255
|
-
command.request_object = device_registry_object
|
256
|
-
command.response_representation = Google::Apis::CloudiotV1beta1::DeviceRegistry::Representation
|
257
|
-
command.response_class = Google::Apis::CloudiotV1beta1::DeviceRegistry
|
258
|
-
command.params['name'] = name unless name.nil?
|
259
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
260
|
-
command.query['fields'] = fields unless fields.nil?
|
261
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
262
|
-
execute_or_queue_command(command, &block)
|
263
|
-
end
|
264
|
-
|
265
|
-
# Sets the access control policy on the specified resource. Replaces any
|
266
|
-
# existing policy.
|
267
|
-
# @param [String] resource
|
268
|
-
# REQUIRED: The resource for which the policy is being specified.
|
269
|
-
# See the operation documentation for the appropriate value for this field.
|
270
|
-
# @param [Google::Apis::CloudiotV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
|
271
|
-
# @param [String] fields
|
272
|
-
# Selector specifying which fields to include in a partial response.
|
273
|
-
# @param [String] quota_user
|
274
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
275
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
276
|
-
# @param [Google::Apis::RequestOptions] options
|
277
|
-
# Request-specific options
|
278
|
-
#
|
279
|
-
# @yield [result, err] Result & error if block supplied
|
280
|
-
# @yieldparam result [Google::Apis::CloudiotV1beta1::Policy] parsed result object
|
281
|
-
# @yieldparam err [StandardError] error object if request failed
|
282
|
-
#
|
283
|
-
# @return [Google::Apis::CloudiotV1beta1::Policy]
|
284
|
-
#
|
285
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
286
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
287
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
288
|
-
def set_registry_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
289
|
-
command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
|
290
|
-
command.request_representation = Google::Apis::CloudiotV1beta1::SetIamPolicyRequest::Representation
|
291
|
-
command.request_object = set_iam_policy_request_object
|
292
|
-
command.response_representation = Google::Apis::CloudiotV1beta1::Policy::Representation
|
293
|
-
command.response_class = Google::Apis::CloudiotV1beta1::Policy
|
294
|
-
command.params['resource'] = resource unless resource.nil?
|
295
|
-
command.query['fields'] = fields unless fields.nil?
|
296
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
297
|
-
execute_or_queue_command(command, &block)
|
298
|
-
end
|
299
|
-
|
300
|
-
# Returns permissions that a caller has on the specified resource.
|
301
|
-
# If the resource does not exist, this will return an empty set of
|
302
|
-
# permissions, not a NOT_FOUND error.
|
303
|
-
# @param [String] resource
|
304
|
-
# REQUIRED: The resource for which the policy detail is being requested.
|
305
|
-
# See the operation documentation for the appropriate value for this field.
|
306
|
-
# @param [Google::Apis::CloudiotV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
307
|
-
# @param [String] fields
|
308
|
-
# Selector specifying which fields to include in a partial response.
|
309
|
-
# @param [String] quota_user
|
310
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
311
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
312
|
-
# @param [Google::Apis::RequestOptions] options
|
313
|
-
# Request-specific options
|
314
|
-
#
|
315
|
-
# @yield [result, err] Result & error if block supplied
|
316
|
-
# @yieldparam result [Google::Apis::CloudiotV1beta1::TestIamPermissionsResponse] parsed result object
|
317
|
-
# @yieldparam err [StandardError] error object if request failed
|
318
|
-
#
|
319
|
-
# @return [Google::Apis::CloudiotV1beta1::TestIamPermissionsResponse]
|
320
|
-
#
|
321
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
322
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
323
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
324
|
-
def test_registry_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
325
|
-
command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
|
326
|
-
command.request_representation = Google::Apis::CloudiotV1beta1::TestIamPermissionsRequest::Representation
|
327
|
-
command.request_object = test_iam_permissions_request_object
|
328
|
-
command.response_representation = Google::Apis::CloudiotV1beta1::TestIamPermissionsResponse::Representation
|
329
|
-
command.response_class = Google::Apis::CloudiotV1beta1::TestIamPermissionsResponse
|
330
|
-
command.params['resource'] = resource unless resource.nil?
|
331
|
-
command.query['fields'] = fields unless fields.nil?
|
332
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
333
|
-
execute_or_queue_command(command, &block)
|
334
|
-
end
|
335
|
-
|
336
|
-
# Creates a device in a device registry.
|
337
|
-
# @param [String] parent
|
338
|
-
# The name of the device registry where this device should be created.
|
339
|
-
# For example,
|
340
|
-
# `projects/example-project/locations/us-central1/registries/my-registry`.
|
341
|
-
# @param [Google::Apis::CloudiotV1beta1::Device] device_object
|
342
|
-
# @param [String] fields
|
343
|
-
# Selector specifying which fields to include in a partial response.
|
344
|
-
# @param [String] quota_user
|
345
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
346
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
347
|
-
# @param [Google::Apis::RequestOptions] options
|
348
|
-
# Request-specific options
|
349
|
-
#
|
350
|
-
# @yield [result, err] Result & error if block supplied
|
351
|
-
# @yieldparam result [Google::Apis::CloudiotV1beta1::Device] parsed result object
|
352
|
-
# @yieldparam err [StandardError] error object if request failed
|
353
|
-
#
|
354
|
-
# @return [Google::Apis::CloudiotV1beta1::Device]
|
355
|
-
#
|
356
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
357
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
358
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
359
|
-
def create_project_location_registry_device(parent, device_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
360
|
-
command = make_simple_command(:post, 'v1beta1/{+parent}/devices', options)
|
361
|
-
command.request_representation = Google::Apis::CloudiotV1beta1::Device::Representation
|
362
|
-
command.request_object = device_object
|
363
|
-
command.response_representation = Google::Apis::CloudiotV1beta1::Device::Representation
|
364
|
-
command.response_class = Google::Apis::CloudiotV1beta1::Device
|
365
|
-
command.params['parent'] = parent unless parent.nil?
|
366
|
-
command.query['fields'] = fields unless fields.nil?
|
367
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
368
|
-
execute_or_queue_command(command, &block)
|
369
|
-
end
|
370
|
-
|
371
|
-
# Deletes a device.
|
372
|
-
# @param [String] name
|
373
|
-
# The name of the device. For example,
|
374
|
-
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
|
375
|
-
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
|
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::CloudiotV1beta1::Empty] parsed result object
|
386
|
-
# @yieldparam err [StandardError] error object if request failed
|
387
|
-
#
|
388
|
-
# @return [Google::Apis::CloudiotV1beta1::Empty]
|
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 delete_project_location_registry_device(name, fields: nil, quota_user: nil, options: nil, &block)
|
394
|
-
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
395
|
-
command.response_representation = Google::Apis::CloudiotV1beta1::Empty::Representation
|
396
|
-
command.response_class = Google::Apis::CloudiotV1beta1::Empty
|
397
|
-
command.params['name'] = name unless name.nil?
|
398
|
-
command.query['fields'] = fields unless fields.nil?
|
399
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
400
|
-
execute_or_queue_command(command, &block)
|
401
|
-
end
|
402
|
-
|
403
|
-
# Gets details about a device.
|
404
|
-
# @param [String] name
|
405
|
-
# The name of the device. For example,
|
406
|
-
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
|
407
|
-
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
|
408
|
-
# @param [String] fields
|
409
|
-
# Selector specifying which fields to include in a partial response.
|
410
|
-
# @param [String] quota_user
|
411
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
412
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
413
|
-
# @param [Google::Apis::RequestOptions] options
|
414
|
-
# Request-specific options
|
415
|
-
#
|
416
|
-
# @yield [result, err] Result & error if block supplied
|
417
|
-
# @yieldparam result [Google::Apis::CloudiotV1beta1::Device] parsed result object
|
418
|
-
# @yieldparam err [StandardError] error object if request failed
|
419
|
-
#
|
420
|
-
# @return [Google::Apis::CloudiotV1beta1::Device]
|
421
|
-
#
|
422
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
423
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
424
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
425
|
-
def get_project_location_registry_device(name, fields: nil, quota_user: nil, options: nil, &block)
|
426
|
-
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
427
|
-
command.response_representation = Google::Apis::CloudiotV1beta1::Device::Representation
|
428
|
-
command.response_class = Google::Apis::CloudiotV1beta1::Device
|
429
|
-
command.params['name'] = name unless name.nil?
|
430
|
-
command.query['fields'] = fields unless fields.nil?
|
431
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
432
|
-
execute_or_queue_command(command, &block)
|
433
|
-
end
|
434
|
-
|
435
|
-
# List devices in a device registry.
|
436
|
-
# @param [String] parent
|
437
|
-
# The device registry path. Required. For example,
|
438
|
-
# `projects/my-project/locations/us-central1/registries/my-registry`.
|
439
|
-
# @param [Array<String>, String] device_ids
|
440
|
-
# A list of device string identifiers. If empty, it will ignore this field.
|
441
|
-
# For example, `['device0', 'device12']`. This field cannot hold more than
|
442
|
-
# 10,000 entries.
|
443
|
-
# @param [Array<Fixnum>, Fixnum] device_num_ids
|
444
|
-
# A list of device numerical ids. If empty, it will ignore this field. This
|
445
|
-
# field cannot hold more than 10,000 entries.
|
446
|
-
# @param [String] field_mask
|
447
|
-
# The fields of the `Device` resource to be returned in the response. The
|
448
|
-
# fields `id`, and `num_id` are always returned by default, along with any
|
449
|
-
# other fields specified.
|
450
|
-
# @param [Fixnum] page_size
|
451
|
-
# The maximum number of devices to return in the response. If this value
|
452
|
-
# is zero, the service will select a default size. A call may return fewer
|
453
|
-
# objects than requested, but if there is a non-empty `page_token`, it
|
454
|
-
# indicates that more entries are available.
|
455
|
-
# @param [String] page_token
|
456
|
-
# The value returned by the last `ListDevicesResponse`; indicates
|
457
|
-
# that this is a continuation of a prior `ListDevices` call, and
|
458
|
-
# that the system should return the next page of data.
|
459
|
-
# @param [String] fields
|
460
|
-
# Selector specifying which fields to include in a partial response.
|
461
|
-
# @param [String] quota_user
|
462
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
463
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
464
|
-
# @param [Google::Apis::RequestOptions] options
|
465
|
-
# Request-specific options
|
466
|
-
#
|
467
|
-
# @yield [result, err] Result & error if block supplied
|
468
|
-
# @yieldparam result [Google::Apis::CloudiotV1beta1::ListDevicesResponse] parsed result object
|
469
|
-
# @yieldparam err [StandardError] error object if request failed
|
470
|
-
#
|
471
|
-
# @return [Google::Apis::CloudiotV1beta1::ListDevicesResponse]
|
472
|
-
#
|
473
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
474
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
475
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
476
|
-
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)
|
477
|
-
command = make_simple_command(:get, 'v1beta1/{+parent}/devices', options)
|
478
|
-
command.response_representation = Google::Apis::CloudiotV1beta1::ListDevicesResponse::Representation
|
479
|
-
command.response_class = Google::Apis::CloudiotV1beta1::ListDevicesResponse
|
480
|
-
command.params['parent'] = parent unless parent.nil?
|
481
|
-
command.query['deviceIds'] = device_ids unless device_ids.nil?
|
482
|
-
command.query['deviceNumIds'] = device_num_ids unless device_num_ids.nil?
|
483
|
-
command.query['fieldMask'] = field_mask unless field_mask.nil?
|
484
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
485
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
486
|
-
command.query['fields'] = fields unless fields.nil?
|
487
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
488
|
-
execute_or_queue_command(command, &block)
|
489
|
-
end
|
490
|
-
|
491
|
-
# Modifies the configuration for the device, which is eventually sent from
|
492
|
-
# the Cloud IoT servers. Returns the modified configuration version and its
|
493
|
-
# meta-data.
|
494
|
-
# @param [String] name
|
495
|
-
# The name of the device. For example,
|
496
|
-
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
|
497
|
-
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
|
498
|
-
# @param [Google::Apis::CloudiotV1beta1::ModifyCloudToDeviceConfigRequest] modify_cloud_to_device_config_request_object
|
499
|
-
# @param [String] fields
|
500
|
-
# Selector specifying which fields to include in a partial response.
|
501
|
-
# @param [String] quota_user
|
502
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
503
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
504
|
-
# @param [Google::Apis::RequestOptions] options
|
505
|
-
# Request-specific options
|
506
|
-
#
|
507
|
-
# @yield [result, err] Result & error if block supplied
|
508
|
-
# @yieldparam result [Google::Apis::CloudiotV1beta1::DeviceConfig] parsed result object
|
509
|
-
# @yieldparam err [StandardError] error object if request failed
|
510
|
-
#
|
511
|
-
# @return [Google::Apis::CloudiotV1beta1::DeviceConfig]
|
512
|
-
#
|
513
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
514
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
515
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
516
|
-
def modify_cloud_to_device_config(name, modify_cloud_to_device_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
517
|
-
command = make_simple_command(:post, 'v1beta1/{+name}:modifyCloudToDeviceConfig', options)
|
518
|
-
command.request_representation = Google::Apis::CloudiotV1beta1::ModifyCloudToDeviceConfigRequest::Representation
|
519
|
-
command.request_object = modify_cloud_to_device_config_request_object
|
520
|
-
command.response_representation = Google::Apis::CloudiotV1beta1::DeviceConfig::Representation
|
521
|
-
command.response_class = Google::Apis::CloudiotV1beta1::DeviceConfig
|
522
|
-
command.params['name'] = name unless name.nil?
|
523
|
-
command.query['fields'] = fields unless fields.nil?
|
524
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
525
|
-
execute_or_queue_command(command, &block)
|
526
|
-
end
|
527
|
-
|
528
|
-
# Updates a device.
|
529
|
-
# @param [String] name
|
530
|
-
# The resource path name. For example,
|
531
|
-
# `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
|
532
|
-
# `projects/p1/locations/us-central1/registries/registry0/devices/`num_id``.
|
533
|
-
# When `name` is populated as a response from the service, it always ends
|
534
|
-
# in the device numeric ID.
|
535
|
-
# @param [Google::Apis::CloudiotV1beta1::Device] device_object
|
536
|
-
# @param [String] update_mask
|
537
|
-
# Only updates the `device` fields indicated by this mask.
|
538
|
-
# The field mask must not be empty, and it must not contain fields that
|
539
|
-
# are immutable or only set by the server.
|
540
|
-
# Mutable top-level fields: `credentials` and `enabled_state`
|
541
|
-
# @param [String] fields
|
542
|
-
# Selector specifying which fields to include in a partial response.
|
543
|
-
# @param [String] quota_user
|
544
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
545
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
546
|
-
# @param [Google::Apis::RequestOptions] options
|
547
|
-
# Request-specific options
|
548
|
-
#
|
549
|
-
# @yield [result, err] Result & error if block supplied
|
550
|
-
# @yieldparam result [Google::Apis::CloudiotV1beta1::Device] parsed result object
|
551
|
-
# @yieldparam err [StandardError] error object if request failed
|
552
|
-
#
|
553
|
-
# @return [Google::Apis::CloudiotV1beta1::Device]
|
554
|
-
#
|
555
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
556
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
557
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
558
|
-
def patch_project_location_registry_device(name, device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
559
|
-
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
560
|
-
command.request_representation = Google::Apis::CloudiotV1beta1::Device::Representation
|
561
|
-
command.request_object = device_object
|
562
|
-
command.response_representation = Google::Apis::CloudiotV1beta1::Device::Representation
|
563
|
-
command.response_class = Google::Apis::CloudiotV1beta1::Device
|
564
|
-
command.params['name'] = name unless name.nil?
|
565
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
566
|
-
command.query['fields'] = fields unless fields.nil?
|
567
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
568
|
-
execute_or_queue_command(command, &block)
|
569
|
-
end
|
570
|
-
|
571
|
-
# Lists the last few versions of the device configuration in descending
|
572
|
-
# order (i.e.: newest first).
|
573
|
-
# @param [String] name
|
574
|
-
# The name of the device. For example,
|
575
|
-
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
|
576
|
-
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
|
577
|
-
# @param [Fixnum] num_versions
|
578
|
-
# The number of versions to list. Versions are listed in decreasing order of
|
579
|
-
# the version number. The maximum number of versions retained is 10. If this
|
580
|
-
# value is zero, it will return all the versions available.
|
581
|
-
# @param [String] fields
|
582
|
-
# Selector specifying which fields to include in a partial response.
|
583
|
-
# @param [String] quota_user
|
584
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
585
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
586
|
-
# @param [Google::Apis::RequestOptions] options
|
587
|
-
# Request-specific options
|
588
|
-
#
|
589
|
-
# @yield [result, err] Result & error if block supplied
|
590
|
-
# @yieldparam result [Google::Apis::CloudiotV1beta1::ListDeviceConfigVersionsResponse] parsed result object
|
591
|
-
# @yieldparam err [StandardError] error object if request failed
|
592
|
-
#
|
593
|
-
# @return [Google::Apis::CloudiotV1beta1::ListDeviceConfigVersionsResponse]
|
594
|
-
#
|
595
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
596
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
597
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
598
|
-
def list_project_location_registry_device_config_versions(name, num_versions: nil, fields: nil, quota_user: nil, options: nil, &block)
|
599
|
-
command = make_simple_command(:get, 'v1beta1/{+name}/configVersions', options)
|
600
|
-
command.response_representation = Google::Apis::CloudiotV1beta1::ListDeviceConfigVersionsResponse::Representation
|
601
|
-
command.response_class = Google::Apis::CloudiotV1beta1::ListDeviceConfigVersionsResponse
|
602
|
-
command.params['name'] = name unless name.nil?
|
603
|
-
command.query['numVersions'] = num_versions unless num_versions.nil?
|
604
|
-
command.query['fields'] = fields unless fields.nil?
|
605
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
606
|
-
execute_or_queue_command(command, &block)
|
607
|
-
end
|
608
|
-
|
609
|
-
protected
|
610
|
-
|
611
|
-
def apply_command_defaults(command)
|
612
|
-
command.query['key'] = key unless key.nil?
|
613
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
614
|
-
end
|
615
|
-
end
|
616
|
-
end
|
617
|
-
end
|
618
|
-
end
|