google-api-client 0.14.4 → 0.14.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +41 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +2 -2
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +111 -0
- data/generated/google/apis/appengine_v1/representations.rb +59 -0
- data/generated/google/apis/appengine_v1/service.rb +220 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +7 -1
- data/generated/google/apis/classroom_v1/classes.rb +361 -0
- data/generated/google/apis/classroom_v1/representations.rb +161 -0
- data/generated/google/apis/classroom_v1/service.rb +426 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +3 -3
- data/generated/google/apis/cloudiot_v1.rb +38 -0
- data/generated/google/apis/cloudiot_v1/classes.rb +1197 -0
- data/generated/google/apis/cloudiot_v1/representations.rb +473 -0
- data/generated/google/apis/cloudiot_v1/service.rb +657 -0
- data/generated/google/apis/cloudiot_v1beta1.rb +38 -0
- data/generated/google/apis/cloudiot_v1beta1/classes.rb +1064 -0
- data/generated/google/apis/cloudiot_v1beta1/representations.rb +442 -0
- data/generated/google/apis/cloudiot_v1beta1/service.rb +725 -0
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +4 -4
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/service.rb +1 -1
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +34 -4
- data/generated/google/apis/container_v1/representations.rb +15 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +34 -4
- data/generated/google/apis/container_v1beta1/representations.rb +15 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +91 -9
- data/generated/google/apis/content_v2/representations.rb +20 -0
- data/generated/google/apis/content_v2/service.rb +1 -2
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +90 -8
- data/generated/google/apis/content_v2sandbox/representations.rb +20 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +53 -3
- data/generated/google/apis/dataflow_v1b3/representations.rb +16 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +461 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +194 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +452 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +30 -1
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +8 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +2 -1
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2 -1
- data/generated/google/apis/dlp_v2beta1.rb +1 -1
- data/generated/google/apis/dlp_v2beta1/classes.rb +2 -2
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +44 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +17 -0
- data/generated/google/apis/firebaserules_v1/service.rb +35 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +3 -3
- data/generated/google/apis/fitness_v1/service.rb +4 -4
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +14 -14
- data/generated/google/apis/iam_v1/service.rb +29 -29
- data/generated/google/apis/kgsearch_v1.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +11 -9
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +11 -9
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +5 -4
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +2 -1
- data/generated/google/apis/script_v1.rb +2 -2
- data/generated/google/apis/script_v1/service.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +19 -23
- data/generated/google/apis/servicecontrol_v1/representations.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +106 -0
- data/generated/google/apis/servicemanagement_v1/representations.rb +32 -0
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +92 -92
- data/generated/google/apis/serviceuser_v1/representations.rb +27 -15
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/service.rb +7 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +2 -2
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +53 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +29 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +37 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +10 -2
@@ -0,0 +1,657 @@
|
|
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 CloudiotV1
|
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_v1'
|
30
|
+
#
|
31
|
+
# Cloudiot = Google::Apis::CloudiotV1 # 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::CloudiotV1::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::CloudiotV1::DeviceRegistry] parsed result object
|
66
|
+
# @yieldparam err [StandardError] error object if request failed
|
67
|
+
#
|
68
|
+
# @return [Google::Apis::CloudiotV1::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, 'v1/{+parent}/registries', options)
|
75
|
+
command.request_representation = Google::Apis::CloudiotV1::DeviceRegistry::Representation
|
76
|
+
command.request_object = device_registry_object
|
77
|
+
command.response_representation = Google::Apis::CloudiotV1::DeviceRegistry::Representation
|
78
|
+
command.response_class = Google::Apis::CloudiotV1::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::CloudiotV1::Empty] parsed result object
|
99
|
+
# @yieldparam err [StandardError] error object if request failed
|
100
|
+
#
|
101
|
+
# @return [Google::Apis::CloudiotV1::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, 'v1/{+name}', options)
|
108
|
+
command.response_representation = Google::Apis::CloudiotV1::Empty::Representation
|
109
|
+
command.response_class = Google::Apis::CloudiotV1::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::CloudiotV1::DeviceRegistry] parsed result object
|
130
|
+
# @yieldparam err [StandardError] error object if request failed
|
131
|
+
#
|
132
|
+
# @return [Google::Apis::CloudiotV1::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, 'v1/{+name}', options)
|
139
|
+
command.response_representation = Google::Apis::CloudiotV1::DeviceRegistry::Representation
|
140
|
+
command.response_class = Google::Apis::CloudiotV1::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::CloudiotV1::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::CloudiotV1::Policy] parsed result object
|
164
|
+
# @yieldparam err [StandardError] error object if request failed
|
165
|
+
#
|
166
|
+
# @return [Google::Apis::CloudiotV1::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, 'v1/{+resource}:getIamPolicy', options)
|
173
|
+
command.request_representation = Google::Apis::CloudiotV1::GetIamPolicyRequest::Representation
|
174
|
+
command.request_object = get_iam_policy_request_object
|
175
|
+
command.response_representation = Google::Apis::CloudiotV1::Policy::Representation
|
176
|
+
command.response_class = Google::Apis::CloudiotV1::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::CloudiotV1::ListDeviceRegistriesResponse] parsed result object
|
206
|
+
# @yieldparam err [StandardError] error object if request failed
|
207
|
+
#
|
208
|
+
# @return [Google::Apis::CloudiotV1::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, 'v1/{+parent}/registries', options)
|
215
|
+
command.response_representation = Google::Apis::CloudiotV1::ListDeviceRegistriesResponse::Representation
|
216
|
+
command.response_class = Google::Apis::CloudiotV1::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::CloudiotV1::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`, `mqtt_config`, and
|
235
|
+
# `state_notification_config`.
|
236
|
+
# @param [String] fields
|
237
|
+
# Selector specifying which fields to include in a partial response.
|
238
|
+
# @param [String] quota_user
|
239
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
240
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
241
|
+
# @param [Google::Apis::RequestOptions] options
|
242
|
+
# Request-specific options
|
243
|
+
#
|
244
|
+
# @yield [result, err] Result & error if block supplied
|
245
|
+
# @yieldparam result [Google::Apis::CloudiotV1::DeviceRegistry] parsed result object
|
246
|
+
# @yieldparam err [StandardError] error object if request failed
|
247
|
+
#
|
248
|
+
# @return [Google::Apis::CloudiotV1::DeviceRegistry]
|
249
|
+
#
|
250
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
251
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
252
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
253
|
+
def patch_project_location_registry(name, device_registry_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
254
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
255
|
+
command.request_representation = Google::Apis::CloudiotV1::DeviceRegistry::Representation
|
256
|
+
command.request_object = device_registry_object
|
257
|
+
command.response_representation = Google::Apis::CloudiotV1::DeviceRegistry::Representation
|
258
|
+
command.response_class = Google::Apis::CloudiotV1::DeviceRegistry
|
259
|
+
command.params['name'] = name unless name.nil?
|
260
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
261
|
+
command.query['fields'] = fields unless fields.nil?
|
262
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
263
|
+
execute_or_queue_command(command, &block)
|
264
|
+
end
|
265
|
+
|
266
|
+
# Sets the access control policy on the specified resource. Replaces any
|
267
|
+
# existing policy.
|
268
|
+
# @param [String] resource
|
269
|
+
# REQUIRED: The resource for which the policy is being specified.
|
270
|
+
# See the operation documentation for the appropriate value for this field.
|
271
|
+
# @param [Google::Apis::CloudiotV1::SetIamPolicyRequest] set_iam_policy_request_object
|
272
|
+
# @param [String] fields
|
273
|
+
# Selector specifying which fields to include in a partial response.
|
274
|
+
# @param [String] quota_user
|
275
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
276
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
277
|
+
# @param [Google::Apis::RequestOptions] options
|
278
|
+
# Request-specific options
|
279
|
+
#
|
280
|
+
# @yield [result, err] Result & error if block supplied
|
281
|
+
# @yieldparam result [Google::Apis::CloudiotV1::Policy] parsed result object
|
282
|
+
# @yieldparam err [StandardError] error object if request failed
|
283
|
+
#
|
284
|
+
# @return [Google::Apis::CloudiotV1::Policy]
|
285
|
+
#
|
286
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
287
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
288
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
289
|
+
def set_registry_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
290
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
291
|
+
command.request_representation = Google::Apis::CloudiotV1::SetIamPolicyRequest::Representation
|
292
|
+
command.request_object = set_iam_policy_request_object
|
293
|
+
command.response_representation = Google::Apis::CloudiotV1::Policy::Representation
|
294
|
+
command.response_class = Google::Apis::CloudiotV1::Policy
|
295
|
+
command.params['resource'] = resource unless resource.nil?
|
296
|
+
command.query['fields'] = fields unless fields.nil?
|
297
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
298
|
+
execute_or_queue_command(command, &block)
|
299
|
+
end
|
300
|
+
|
301
|
+
# Returns permissions that a caller has on the specified resource.
|
302
|
+
# If the resource does not exist, this will return an empty set of
|
303
|
+
# permissions, not a NOT_FOUND error.
|
304
|
+
# @param [String] resource
|
305
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
306
|
+
# See the operation documentation for the appropriate value for this field.
|
307
|
+
# @param [Google::Apis::CloudiotV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
308
|
+
# @param [String] fields
|
309
|
+
# Selector specifying which fields to include in a partial response.
|
310
|
+
# @param [String] quota_user
|
311
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
312
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
313
|
+
# @param [Google::Apis::RequestOptions] options
|
314
|
+
# Request-specific options
|
315
|
+
#
|
316
|
+
# @yield [result, err] Result & error if block supplied
|
317
|
+
# @yieldparam result [Google::Apis::CloudiotV1::TestIamPermissionsResponse] parsed result object
|
318
|
+
# @yieldparam err [StandardError] error object if request failed
|
319
|
+
#
|
320
|
+
# @return [Google::Apis::CloudiotV1::TestIamPermissionsResponse]
|
321
|
+
#
|
322
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
323
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
324
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
325
|
+
def test_registry_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
326
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
327
|
+
command.request_representation = Google::Apis::CloudiotV1::TestIamPermissionsRequest::Representation
|
328
|
+
command.request_object = test_iam_permissions_request_object
|
329
|
+
command.response_representation = Google::Apis::CloudiotV1::TestIamPermissionsResponse::Representation
|
330
|
+
command.response_class = Google::Apis::CloudiotV1::TestIamPermissionsResponse
|
331
|
+
command.params['resource'] = resource unless resource.nil?
|
332
|
+
command.query['fields'] = fields unless fields.nil?
|
333
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
334
|
+
execute_or_queue_command(command, &block)
|
335
|
+
end
|
336
|
+
|
337
|
+
# Creates a device in a device registry.
|
338
|
+
# @param [String] parent
|
339
|
+
# The name of the device registry where this device should be created.
|
340
|
+
# For example,
|
341
|
+
# `projects/example-project/locations/us-central1/registries/my-registry`.
|
342
|
+
# @param [Google::Apis::CloudiotV1::Device] device_object
|
343
|
+
# @param [String] fields
|
344
|
+
# Selector specifying which fields to include in a partial response.
|
345
|
+
# @param [String] quota_user
|
346
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
347
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
348
|
+
# @param [Google::Apis::RequestOptions] options
|
349
|
+
# Request-specific options
|
350
|
+
#
|
351
|
+
# @yield [result, err] Result & error if block supplied
|
352
|
+
# @yieldparam result [Google::Apis::CloudiotV1::Device] parsed result object
|
353
|
+
# @yieldparam err [StandardError] error object if request failed
|
354
|
+
#
|
355
|
+
# @return [Google::Apis::CloudiotV1::Device]
|
356
|
+
#
|
357
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
358
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
359
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
360
|
+
def create_project_location_registry_device(parent, device_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
361
|
+
command = make_simple_command(:post, 'v1/{+parent}/devices', options)
|
362
|
+
command.request_representation = Google::Apis::CloudiotV1::Device::Representation
|
363
|
+
command.request_object = device_object
|
364
|
+
command.response_representation = Google::Apis::CloudiotV1::Device::Representation
|
365
|
+
command.response_class = Google::Apis::CloudiotV1::Device
|
366
|
+
command.params['parent'] = parent unless parent.nil?
|
367
|
+
command.query['fields'] = fields unless fields.nil?
|
368
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
369
|
+
execute_or_queue_command(command, &block)
|
370
|
+
end
|
371
|
+
|
372
|
+
# Deletes a device.
|
373
|
+
# @param [String] name
|
374
|
+
# The name of the device. For example,
|
375
|
+
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
|
376
|
+
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
|
377
|
+
# @param [String] fields
|
378
|
+
# Selector specifying which fields to include in a partial response.
|
379
|
+
# @param [String] quota_user
|
380
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
381
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
382
|
+
# @param [Google::Apis::RequestOptions] options
|
383
|
+
# Request-specific options
|
384
|
+
#
|
385
|
+
# @yield [result, err] Result & error if block supplied
|
386
|
+
# @yieldparam result [Google::Apis::CloudiotV1::Empty] parsed result object
|
387
|
+
# @yieldparam err [StandardError] error object if request failed
|
388
|
+
#
|
389
|
+
# @return [Google::Apis::CloudiotV1::Empty]
|
390
|
+
#
|
391
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
392
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
393
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
394
|
+
def delete_project_location_registry_device(name, fields: nil, quota_user: nil, options: nil, &block)
|
395
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
396
|
+
command.response_representation = Google::Apis::CloudiotV1::Empty::Representation
|
397
|
+
command.response_class = Google::Apis::CloudiotV1::Empty
|
398
|
+
command.params['name'] = name unless name.nil?
|
399
|
+
command.query['fields'] = fields unless fields.nil?
|
400
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
401
|
+
execute_or_queue_command(command, &block)
|
402
|
+
end
|
403
|
+
|
404
|
+
# Gets details about a device.
|
405
|
+
# @param [String] name
|
406
|
+
# The name of the device. For example,
|
407
|
+
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
|
408
|
+
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
|
409
|
+
# @param [String] fields
|
410
|
+
# Selector specifying which fields to include in a partial response.
|
411
|
+
# @param [String] quota_user
|
412
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
413
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
414
|
+
# @param [Google::Apis::RequestOptions] options
|
415
|
+
# Request-specific options
|
416
|
+
#
|
417
|
+
# @yield [result, err] Result & error if block supplied
|
418
|
+
# @yieldparam result [Google::Apis::CloudiotV1::Device] parsed result object
|
419
|
+
# @yieldparam err [StandardError] error object if request failed
|
420
|
+
#
|
421
|
+
# @return [Google::Apis::CloudiotV1::Device]
|
422
|
+
#
|
423
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
424
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
425
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
426
|
+
def get_project_location_registry_device(name, fields: nil, quota_user: nil, options: nil, &block)
|
427
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
428
|
+
command.response_representation = Google::Apis::CloudiotV1::Device::Representation
|
429
|
+
command.response_class = Google::Apis::CloudiotV1::Device
|
430
|
+
command.params['name'] = name unless name.nil?
|
431
|
+
command.query['fields'] = fields unless fields.nil?
|
432
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
433
|
+
execute_or_queue_command(command, &block)
|
434
|
+
end
|
435
|
+
|
436
|
+
# List devices in a device registry.
|
437
|
+
# @param [String] parent
|
438
|
+
# The device registry path. Required. For example,
|
439
|
+
# `projects/my-project/locations/us-central1/registries/my-registry`.
|
440
|
+
# @param [Array<String>, String] device_ids
|
441
|
+
# A list of device string identifiers. If empty, it will ignore this field.
|
442
|
+
# For example, `['device0', 'device12']`. This field cannot hold more than
|
443
|
+
# 10,000 entries.
|
444
|
+
# @param [Array<Fixnum>, Fixnum] device_num_ids
|
445
|
+
# A list of device numerical ids. If empty, it will ignore this field. This
|
446
|
+
# field cannot hold more than 10,000 entries.
|
447
|
+
# @param [String] field_mask
|
448
|
+
# The fields of the `Device` resource to be returned in the response. The
|
449
|
+
# fields `id`, and `num_id` are always returned by default, along with any
|
450
|
+
# other fields specified.
|
451
|
+
# @param [Fixnum] page_size
|
452
|
+
# The maximum number of devices to return in the response. If this value
|
453
|
+
# is zero, the service will select a default size. A call may return fewer
|
454
|
+
# objects than requested, but if there is a non-empty `page_token`, it
|
455
|
+
# indicates that more entries are available.
|
456
|
+
# @param [String] page_token
|
457
|
+
# The value returned by the last `ListDevicesResponse`; indicates
|
458
|
+
# that this is a continuation of a prior `ListDevices` call, and
|
459
|
+
# that the system should return the next page of data.
|
460
|
+
# @param [String] fields
|
461
|
+
# Selector specifying which fields to include in a partial response.
|
462
|
+
# @param [String] quota_user
|
463
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
464
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
465
|
+
# @param [Google::Apis::RequestOptions] options
|
466
|
+
# Request-specific options
|
467
|
+
#
|
468
|
+
# @yield [result, err] Result & error if block supplied
|
469
|
+
# @yieldparam result [Google::Apis::CloudiotV1::ListDevicesResponse] parsed result object
|
470
|
+
# @yieldparam err [StandardError] error object if request failed
|
471
|
+
#
|
472
|
+
# @return [Google::Apis::CloudiotV1::ListDevicesResponse]
|
473
|
+
#
|
474
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
475
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
476
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
477
|
+
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)
|
478
|
+
command = make_simple_command(:get, 'v1/{+parent}/devices', options)
|
479
|
+
command.response_representation = Google::Apis::CloudiotV1::ListDevicesResponse::Representation
|
480
|
+
command.response_class = Google::Apis::CloudiotV1::ListDevicesResponse
|
481
|
+
command.params['parent'] = parent unless parent.nil?
|
482
|
+
command.query['deviceIds'] = device_ids unless device_ids.nil?
|
483
|
+
command.query['deviceNumIds'] = device_num_ids unless device_num_ids.nil?
|
484
|
+
command.query['fieldMask'] = field_mask unless field_mask.nil?
|
485
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
486
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
487
|
+
command.query['fields'] = fields unless fields.nil?
|
488
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
489
|
+
execute_or_queue_command(command, &block)
|
490
|
+
end
|
491
|
+
|
492
|
+
# Modifies the configuration for the device, which is eventually sent from
|
493
|
+
# the Cloud IoT Core servers. Returns the modified configuration version and
|
494
|
+
# its metadata.
|
495
|
+
# @param [String] name
|
496
|
+
# The name of the device. For example,
|
497
|
+
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
|
498
|
+
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
|
499
|
+
# @param [Google::Apis::CloudiotV1::ModifyCloudToDeviceConfigRequest] modify_cloud_to_device_config_request_object
|
500
|
+
# @param [String] fields
|
501
|
+
# Selector specifying which fields to include in a partial response.
|
502
|
+
# @param [String] quota_user
|
503
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
504
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
505
|
+
# @param [Google::Apis::RequestOptions] options
|
506
|
+
# Request-specific options
|
507
|
+
#
|
508
|
+
# @yield [result, err] Result & error if block supplied
|
509
|
+
# @yieldparam result [Google::Apis::CloudiotV1::DeviceConfig] parsed result object
|
510
|
+
# @yieldparam err [StandardError] error object if request failed
|
511
|
+
#
|
512
|
+
# @return [Google::Apis::CloudiotV1::DeviceConfig]
|
513
|
+
#
|
514
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
515
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
516
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
517
|
+
def modify_cloud_to_device_config(name, modify_cloud_to_device_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
518
|
+
command = make_simple_command(:post, 'v1/{+name}:modifyCloudToDeviceConfig', options)
|
519
|
+
command.request_representation = Google::Apis::CloudiotV1::ModifyCloudToDeviceConfigRequest::Representation
|
520
|
+
command.request_object = modify_cloud_to_device_config_request_object
|
521
|
+
command.response_representation = Google::Apis::CloudiotV1::DeviceConfig::Representation
|
522
|
+
command.response_class = Google::Apis::CloudiotV1::DeviceConfig
|
523
|
+
command.params['name'] = name unless name.nil?
|
524
|
+
command.query['fields'] = fields unless fields.nil?
|
525
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
526
|
+
execute_or_queue_command(command, &block)
|
527
|
+
end
|
528
|
+
|
529
|
+
# Updates a device.
|
530
|
+
# @param [String] name
|
531
|
+
# The resource path name. For example,
|
532
|
+
# `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
|
533
|
+
# `projects/p1/locations/us-central1/registries/registry0/devices/`num_id``.
|
534
|
+
# When `name` is populated as a response from the service, it always ends
|
535
|
+
# in the device numeric ID.
|
536
|
+
# @param [Google::Apis::CloudiotV1::Device] device_object
|
537
|
+
# @param [String] update_mask
|
538
|
+
# Only updates the `device` fields indicated by this mask.
|
539
|
+
# The field mask must not be empty, and it must not contain fields that
|
540
|
+
# are immutable or only set by the server.
|
541
|
+
# Mutable top-level fields: `credentials`, `enabled_state`, and `metadata`
|
542
|
+
# @param [String] fields
|
543
|
+
# Selector specifying which fields to include in a partial response.
|
544
|
+
# @param [String] quota_user
|
545
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
546
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
547
|
+
# @param [Google::Apis::RequestOptions] options
|
548
|
+
# Request-specific options
|
549
|
+
#
|
550
|
+
# @yield [result, err] Result & error if block supplied
|
551
|
+
# @yieldparam result [Google::Apis::CloudiotV1::Device] parsed result object
|
552
|
+
# @yieldparam err [StandardError] error object if request failed
|
553
|
+
#
|
554
|
+
# @return [Google::Apis::CloudiotV1::Device]
|
555
|
+
#
|
556
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
557
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
558
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
559
|
+
def patch_project_location_registry_device(name, device_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
560
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
561
|
+
command.request_representation = Google::Apis::CloudiotV1::Device::Representation
|
562
|
+
command.request_object = device_object
|
563
|
+
command.response_representation = Google::Apis::CloudiotV1::Device::Representation
|
564
|
+
command.response_class = Google::Apis::CloudiotV1::Device
|
565
|
+
command.params['name'] = name unless name.nil?
|
566
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
567
|
+
command.query['fields'] = fields unless fields.nil?
|
568
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
569
|
+
execute_or_queue_command(command, &block)
|
570
|
+
end
|
571
|
+
|
572
|
+
# Lists the last few versions of the device configuration in descending
|
573
|
+
# order (i.e.: newest first).
|
574
|
+
# @param [String] name
|
575
|
+
# The name of the device. For example,
|
576
|
+
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
|
577
|
+
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
|
578
|
+
# @param [Fixnum] num_versions
|
579
|
+
# The number of versions to list. Versions are listed in decreasing order of
|
580
|
+
# the version number. The maximum number of versions retained is 10. If this
|
581
|
+
# value is zero, it will return all the versions available.
|
582
|
+
# @param [String] fields
|
583
|
+
# Selector specifying which fields to include in a partial response.
|
584
|
+
# @param [String] quota_user
|
585
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
586
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
587
|
+
# @param [Google::Apis::RequestOptions] options
|
588
|
+
# Request-specific options
|
589
|
+
#
|
590
|
+
# @yield [result, err] Result & error if block supplied
|
591
|
+
# @yieldparam result [Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse] parsed result object
|
592
|
+
# @yieldparam err [StandardError] error object if request failed
|
593
|
+
#
|
594
|
+
# @return [Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse]
|
595
|
+
#
|
596
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
597
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
598
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
599
|
+
def list_project_location_registry_device_config_versions(name, num_versions: nil, fields: nil, quota_user: nil, options: nil, &block)
|
600
|
+
command = make_simple_command(:get, 'v1/{+name}/configVersions', options)
|
601
|
+
command.response_representation = Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse::Representation
|
602
|
+
command.response_class = Google::Apis::CloudiotV1::ListDeviceConfigVersionsResponse
|
603
|
+
command.params['name'] = name unless name.nil?
|
604
|
+
command.query['numVersions'] = num_versions unless num_versions.nil?
|
605
|
+
command.query['fields'] = fields unless fields.nil?
|
606
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
607
|
+
execute_or_queue_command(command, &block)
|
608
|
+
end
|
609
|
+
|
610
|
+
# Lists the last few versions of the device state in descending order (i.e.:
|
611
|
+
# newest first).
|
612
|
+
# @param [String] name
|
613
|
+
# The name of the device. For example,
|
614
|
+
# `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
|
615
|
+
# `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
|
616
|
+
# @param [Fixnum] num_states
|
617
|
+
# The number of states to list. States are listed in descending order of
|
618
|
+
# update time. The maximum number of states retained is 10. If this
|
619
|
+
# value is zero, it will return all the states available.
|
620
|
+
# @param [String] fields
|
621
|
+
# Selector specifying which fields to include in a partial response.
|
622
|
+
# @param [String] quota_user
|
623
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
624
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
625
|
+
# @param [Google::Apis::RequestOptions] options
|
626
|
+
# Request-specific options
|
627
|
+
#
|
628
|
+
# @yield [result, err] Result & error if block supplied
|
629
|
+
# @yieldparam result [Google::Apis::CloudiotV1::ListDeviceStatesResponse] parsed result object
|
630
|
+
# @yieldparam err [StandardError] error object if request failed
|
631
|
+
#
|
632
|
+
# @return [Google::Apis::CloudiotV1::ListDeviceStatesResponse]
|
633
|
+
#
|
634
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
635
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
636
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
637
|
+
def list_project_location_registry_device_states(name, num_states: nil, fields: nil, quota_user: nil, options: nil, &block)
|
638
|
+
command = make_simple_command(:get, 'v1/{+name}/states', options)
|
639
|
+
command.response_representation = Google::Apis::CloudiotV1::ListDeviceStatesResponse::Representation
|
640
|
+
command.response_class = Google::Apis::CloudiotV1::ListDeviceStatesResponse
|
641
|
+
command.params['name'] = name unless name.nil?
|
642
|
+
command.query['numStates'] = num_states unless num_states.nil?
|
643
|
+
command.query['fields'] = fields unless fields.nil?
|
644
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
645
|
+
execute_or_queue_command(command, &block)
|
646
|
+
end
|
647
|
+
|
648
|
+
protected
|
649
|
+
|
650
|
+
def apply_command_defaults(command)
|
651
|
+
command.query['key'] = key unless key.nil?
|
652
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
653
|
+
end
|
654
|
+
end
|
655
|
+
end
|
656
|
+
end
|
657
|
+
end
|