google-api-client 0.45.0 → 0.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +56 -0
  3. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +7 -9
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
  6. data/generated/google/apis/analyticsadmin_v1alpha.rb +43 -0
  7. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +1361 -0
  8. data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +610 -0
  9. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +2135 -0
  10. data/generated/google/apis/apigateway_v1alpha2.rb +34 -0
  11. data/generated/google/apis/apigateway_v1alpha2/classes.rb +633 -0
  12. data/generated/google/apis/apigateway_v1alpha2/representations.rb +250 -0
  13. data/generated/google/apis/apigateway_v1alpha2/service.rb +623 -0
  14. data/generated/google/apis/apigee_v1.rb +1 -1
  15. data/generated/google/apis/apigee_v1/classes.rb +0 -6
  16. data/generated/google/apis/apigee_v1/representations.rb +0 -1
  17. data/generated/google/apis/apigee_v1/service.rb +1 -5
  18. data/generated/google/apis/appsmarket_v2.rb +1 -1
  19. data/generated/google/apis/bigquery_v2.rb +1 -1
  20. data/generated/google/apis/bigquery_v2/classes.rb +22 -0
  21. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  22. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  23. data/generated/google/apis/binaryauthorization_v1/classes.rb +187 -0
  24. data/generated/google/apis/binaryauthorization_v1/representations.rb +74 -0
  25. data/generated/google/apis/binaryauthorization_v1/service.rb +35 -0
  26. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  27. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +187 -0
  28. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +74 -0
  29. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +35 -0
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/classes.rb +2 -1
  32. data/generated/google/apis/chat_v1.rb +1 -1
  33. data/generated/google/apis/chat_v1/classes.rb +76 -2
  34. data/generated/google/apis/chat_v1/representations.rb +35 -0
  35. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  36. data/generated/google/apis/cloudbuild_v1/classes.rb +0 -34
  37. data/generated/google/apis/cloudbuild_v1/representations.rb +0 -15
  38. data/generated/google/apis/cloudbuild_v1/service.rb +7 -4
  39. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  40. data/generated/google/apis/cloudfunctions_v1/classes.rb +12 -1
  41. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
  42. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  43. data/generated/google/apis/cloudidentity_v1/classes.rb +0 -34
  44. data/generated/google/apis/cloudidentity_v1/representations.rb +0 -17
  45. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +185 -0
  47. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +94 -0
  48. data/generated/google/apis/cloudidentity_v1beta1/service.rb +164 -0
  49. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  50. data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
  51. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
  53. data/generated/google/apis/content_v2_1.rb +1 -1
  54. data/generated/google/apis/content_v2_1/service.rb +1 -1
  55. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  56. data/generated/google/apis/datacatalog_v1beta1/classes.rb +1 -1
  57. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  58. data/generated/google/apis/dataflow_v1b3/classes.rb +20 -8
  59. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  60. data/generated/google/apis/dfareporting_v3_3/classes.rb +0 -164
  61. data/generated/google/apis/dfareporting_v3_3/representations.rb +0 -42
  62. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  63. data/generated/google/apis/dfareporting_v3_4/classes.rb +0 -164
  64. data/generated/google/apis/dfareporting_v3_4/representations.rb +0 -42
  65. data/generated/google/apis/dialogflow_v2.rb +1 -1
  66. data/generated/google/apis/dialogflow_v2/classes.rb +73 -0
  67. data/generated/google/apis/dialogflow_v2/representations.rb +51 -0
  68. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  69. data/generated/google/apis/dialogflow_v2beta1/classes.rb +73 -0
  70. data/generated/google/apis/dialogflow_v2beta1/representations.rb +51 -0
  71. data/generated/google/apis/dialogflow_v2beta1/service.rb +6 -6
  72. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  73. data/generated/google/apis/dialogflow_v3beta1/classes.rb +142 -0
  74. data/generated/google/apis/dialogflow_v3beta1/representations.rb +83 -0
  75. data/generated/google/apis/displayvideo_v1.rb +1 -1
  76. data/generated/google/apis/displayvideo_v1/classes.rb +8 -0
  77. data/generated/google/apis/displayvideo_v1/representations.rb +1 -0
  78. data/generated/google/apis/dlp_v2.rb +1 -1
  79. data/generated/google/apis/dlp_v2/classes.rb +26 -0
  80. data/generated/google/apis/dlp_v2/representations.rb +16 -0
  81. data/generated/google/apis/dlp_v2/service.rb +328 -328
  82. data/generated/google/apis/firestore_v1.rb +1 -1
  83. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  84. data/generated/google/apis/gmail_v1.rb +1 -1
  85. data/generated/google/apis/gmail_v1/service.rb +1 -1
  86. data/generated/google/apis/healthcare_v1.rb +1 -1
  87. data/generated/google/apis/healthcare_v1/classes.rb +3 -1
  88. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  89. data/generated/google/apis/healthcare_v1beta1/classes.rb +1014 -16
  90. data/generated/google/apis/healthcare_v1beta1/representations.rb +453 -0
  91. data/generated/google/apis/healthcare_v1beta1/service.rb +1226 -0
  92. data/generated/google/apis/logging_v2.rb +1 -1
  93. data/generated/google/apis/logging_v2/classes.rb +98 -55
  94. data/generated/google/apis/logging_v2/representations.rb +32 -0
  95. data/generated/google/apis/logging_v2/service.rb +1214 -264
  96. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  97. data/generated/google/apis/oslogin_v1alpha/classes.rb +2 -2
  98. data/generated/google/apis/oslogin_v1alpha/service.rb +13 -13
  99. data/generated/google/apis/people_v1.rb +1 -1
  100. data/generated/google/apis/people_v1/service.rb +8 -6
  101. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  102. data/generated/google/apis/realtimebidding_v1/classes.rb +4 -4
  103. data/generated/google/apis/realtimebidding_v1/service.rb +4 -1
  104. data/generated/google/apis/run_v1.rb +1 -1
  105. data/generated/google/apis/run_v1/classes.rb +0 -124
  106. data/generated/google/apis/run_v1/representations.rb +0 -61
  107. data/generated/google/apis/run_v1/service.rb +0 -342
  108. data/generated/google/apis/searchconsole_v1.rb +7 -1
  109. data/generated/google/apis/searchconsole_v1/classes.rb +388 -0
  110. data/generated/google/apis/searchconsole_v1/representations.rb +162 -0
  111. data/generated/google/apis/searchconsole_v1/service.rb +287 -0
  112. data/generated/google/apis/securitycenter_v1.rb +1 -1
  113. data/generated/google/apis/securitycenter_v1/classes.rb +5 -199
  114. data/generated/google/apis/securitycenter_v1/representations.rb +0 -72
  115. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  116. data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -196
  117. data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -72
  118. data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
  119. data/generated/google/apis/securitycenter_v1beta2/classes.rb +2 -196
  120. data/generated/google/apis/securitycenter_v1beta2/representations.rb +0 -72
  121. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  122. data/generated/google/apis/servicecontrol_v1/classes.rb +1 -2
  123. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  124. data/generated/google/apis/servicecontrol_v2/classes.rb +1 -2
  125. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  126. data/generated/google/apis/servicemanagement_v1/classes.rb +0 -22
  127. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -13
  128. data/generated/google/apis/servicemanagement_v1/service.rb +0 -36
  129. data/generated/google/apis/smartdevicemanagement_v1.rb +35 -0
  130. data/generated/google/apis/smartdevicemanagement_v1/classes.rb +313 -0
  131. data/generated/google/apis/smartdevicemanagement_v1/representations.rb +174 -0
  132. data/generated/google/apis/smartdevicemanagement_v1/service.rb +312 -0
  133. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  134. data/generated/google/apis/sourcerepo_v1/classes.rb +250 -400
  135. data/generated/google/apis/sourcerepo_v1/service.rb +40 -49
  136. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  137. data/generated/google/apis/sqladmin_v1beta4/classes.rb +83 -52
  138. data/generated/google/apis/sqladmin_v1beta4/representations.rb +33 -17
  139. data/generated/google/apis/storage_v1.rb +1 -1
  140. data/generated/google/apis/sts_v1beta.rb +1 -1
  141. data/generated/google/apis/sts_v1beta/classes.rb +4 -1
  142. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  143. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  144. data/generated/google/apis/workflowexecutions_v1beta.rb +2 -2
  145. data/generated/google/apis/workflowexecutions_v1beta/service.rb +1 -1
  146. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  147. data/generated/google/apis/youtube_v3.rb +1 -1
  148. data/generated/google/apis/youtube_v3/classes.rb +0 -134
  149. data/generated/google/apis/youtube_v3/representations.rb +0 -55
  150. data/generated/google/apis/youtube_v3/service.rb +2 -2
  151. data/lib/google/apis/version.rb +1 -1
  152. metadata +15 -3
@@ -178,12 +178,6 @@ module Google
178
178
  include Google::Apis::Core::JsonObjectSupport
179
179
  end
180
180
 
181
- class DisableServiceRequest
182
- class Representation < Google::Apis::Core::JsonRepresentation; end
183
-
184
- include Google::Apis::Core::JsonObjectSupport
185
- end
186
-
187
181
  class DisableServiceResponse
188
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
183
 
@@ -812,13 +806,6 @@ module Google
812
806
  end
813
807
  end
814
808
 
815
- class DisableServiceRequest
816
- # @private
817
- class Representation < Google::Apis::Core::JsonRepresentation
818
- property :consumer_id, as: 'consumerId'
819
- end
820
- end
821
-
822
809
  class DisableServiceResponse
823
810
  # @private
824
811
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -198,42 +198,6 @@ module Google
198
198
  execute_or_queue_command(command, &block)
199
199
  end
200
200
 
201
- # Disables a service for a project, so it can no longer be be used for the
202
- # project. It prevents accidental usage that may cause unexpected billing
203
- # charges or security leaks. Operation
204
- # @param [String] service_name
205
- # Required. Name of the service to disable. Specifying an unknown service name
206
- # will cause the request to fail.
207
- # @param [Google::Apis::ServicemanagementV1::DisableServiceRequest] disable_service_request_object
208
- # @param [String] fields
209
- # Selector specifying which fields to include in a partial response.
210
- # @param [String] quota_user
211
- # Available to use for quota purposes for server-side applications. Can be any
212
- # arbitrary string assigned to a user, but should not exceed 40 characters.
213
- # @param [Google::Apis::RequestOptions] options
214
- # Request-specific options
215
- #
216
- # @yield [result, err] Result & error if block supplied
217
- # @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
218
- # @yieldparam err [StandardError] error object if request failed
219
- #
220
- # @return [Google::Apis::ServicemanagementV1::Operation]
221
- #
222
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
223
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
224
- # @raise [Google::Apis::AuthorizationError] Authorization is required
225
- def disable_service(service_name, disable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
226
- command = make_simple_command(:post, 'v1/services/{serviceName}:disable', options)
227
- command.request_representation = Google::Apis::ServicemanagementV1::DisableServiceRequest::Representation
228
- command.request_object = disable_service_request_object
229
- command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
230
- command.response_class = Google::Apis::ServicemanagementV1::Operation
231
- command.params['serviceName'] = service_name unless service_name.nil?
232
- command.query['fields'] = fields unless fields.nil?
233
- command.query['quotaUser'] = quota_user unless quota_user.nil?
234
- execute_or_queue_command(command, &block)
235
- end
236
-
237
201
  # Enables a service for a project, so it can be used for the project. See [Cloud
238
202
  # Auth Guide](https://cloud.google.com/docs/authentication) for more information.
239
203
  # Operation
@@ -0,0 +1,35 @@
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/smartdevicemanagement_v1/service.rb'
16
+ require 'google/apis/smartdevicemanagement_v1/classes.rb'
17
+ require 'google/apis/smartdevicemanagement_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Smart Device Management API
22
+ #
23
+ # Allow select enterprise partners to access, control, and manage Google and
24
+ # Nest devices programmatically.
25
+ #
26
+ # @see https://developers.google.com/nest/device-access
27
+ module SmartdevicemanagementV1
28
+ VERSION = 'V1'
29
+ REVISION = '20200910'
30
+
31
+ # See and/or control the devices that you selected
32
+ AUTH_SDM_SERVICE = 'https://www.googleapis.com/auth/sdm.service'
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,313 @@
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 SmartdevicemanagementV1
24
+
25
+ # Device resource represents an instance of enterprise managed device in the
26
+ # property.
27
+ class GoogleHomeEnterpriseSdmV1Device
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # Output only. The name of the structure/room where the device is assigned to.
31
+ # For example: "enterprises/XYZ/structures/ABC" or "enterprises/XYZ/structures/
32
+ # ABC/rooms/123"
33
+ # Corresponds to the JSON property `assignee`
34
+ # @return [String]
35
+ attr_accessor :assignee
36
+
37
+ # Required. The resource name of the device. For example: "enterprises/XYZ/
38
+ # devices/123".
39
+ # Corresponds to the JSON property `name`
40
+ # @return [String]
41
+ attr_accessor :name
42
+
43
+ # Assignee details of the device.
44
+ # Corresponds to the JSON property `parentRelations`
45
+ # @return [Array<Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ParentRelation>]
46
+ attr_accessor :parent_relations
47
+
48
+ # Output only. Device traits.
49
+ # Corresponds to the JSON property `traits`
50
+ # @return [Hash<String,Object>]
51
+ attr_accessor :traits
52
+
53
+ # Output only. Type of the device for general display purposes. For example: "
54
+ # THERMOSTAT". The device type should not be used to deduce or infer
55
+ # functionality of the actual device it is assigned to. Instead, use the
56
+ # returned traits for the device.
57
+ # Corresponds to the JSON property `type`
58
+ # @return [String]
59
+ attr_accessor :type
60
+
61
+ def initialize(**args)
62
+ update!(**args)
63
+ end
64
+
65
+ # Update properties of this object
66
+ def update!(**args)
67
+ @assignee = args[:assignee] if args.key?(:assignee)
68
+ @name = args[:name] if args.key?(:name)
69
+ @parent_relations = args[:parent_relations] if args.key?(:parent_relations)
70
+ @traits = args[:traits] if args.key?(:traits)
71
+ @type = args[:type] if args.key?(:type)
72
+ end
73
+ end
74
+
75
+ # Request message for SmartDeviceManagementService.ExecuteDeviceCommand
76
+ class GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest
77
+ include Google::Apis::Core::Hashable
78
+
79
+ # The command name to execute, represented by the fully qualified protobuf
80
+ # message name.
81
+ # Corresponds to the JSON property `command`
82
+ # @return [String]
83
+ attr_accessor :command
84
+
85
+ # The command message to execute, represented as a Struct.
86
+ # Corresponds to the JSON property `params`
87
+ # @return [Hash<String,Object>]
88
+ attr_accessor :params
89
+
90
+ def initialize(**args)
91
+ update!(**args)
92
+ end
93
+
94
+ # Update properties of this object
95
+ def update!(**args)
96
+ @command = args[:command] if args.key?(:command)
97
+ @params = args[:params] if args.key?(:params)
98
+ end
99
+ end
100
+
101
+ # Response message for SmartDeviceManagementService.ExecuteDeviceCommand
102
+ class GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse
103
+ include Google::Apis::Core::Hashable
104
+
105
+ # The results of executing the command.
106
+ # Corresponds to the JSON property `results`
107
+ # @return [Hash<String,Object>]
108
+ attr_accessor :results
109
+
110
+ def initialize(**args)
111
+ update!(**args)
112
+ end
113
+
114
+ # Update properties of this object
115
+ def update!(**args)
116
+ @results = args[:results] if args.key?(:results)
117
+ end
118
+ end
119
+
120
+ # Response message for SmartDeviceManagementService.ListDevices
121
+ class GoogleHomeEnterpriseSdmV1ListDevicesResponse
122
+ include Google::Apis::Core::Hashable
123
+
124
+ # The list of devices.
125
+ # Corresponds to the JSON property `devices`
126
+ # @return [Array<Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device>]
127
+ attr_accessor :devices
128
+
129
+ # The pagination token to retrieve the next page of results.
130
+ # Corresponds to the JSON property `nextPageToken`
131
+ # @return [String]
132
+ attr_accessor :next_page_token
133
+
134
+ def initialize(**args)
135
+ update!(**args)
136
+ end
137
+
138
+ # Update properties of this object
139
+ def update!(**args)
140
+ @devices = args[:devices] if args.key?(:devices)
141
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
142
+ end
143
+ end
144
+
145
+ # Response message for SmartDeviceManagementService.ListRooms
146
+ class GoogleHomeEnterpriseSdmV1ListRoomsResponse
147
+ include Google::Apis::Core::Hashable
148
+
149
+ # The pagination token to retrieve the next page of results.
150
+ # Corresponds to the JSON property `nextPageToken`
151
+ # @return [String]
152
+ attr_accessor :next_page_token
153
+
154
+ # The list of rooms.
155
+ # Corresponds to the JSON property `rooms`
156
+ # @return [Array<Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Room>]
157
+ attr_accessor :rooms
158
+
159
+ def initialize(**args)
160
+ update!(**args)
161
+ end
162
+
163
+ # Update properties of this object
164
+ def update!(**args)
165
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
166
+ @rooms = args[:rooms] if args.key?(:rooms)
167
+ end
168
+ end
169
+
170
+ # Response message for SmartDeviceManagementService.ListStructures
171
+ class GoogleHomeEnterpriseSdmV1ListStructuresResponse
172
+ include Google::Apis::Core::Hashable
173
+
174
+ # The pagination token to retrieve the next page of results.
175
+ # Corresponds to the JSON property `nextPageToken`
176
+ # @return [String]
177
+ attr_accessor :next_page_token
178
+
179
+ # The list of structures.
180
+ # Corresponds to the JSON property `structures`
181
+ # @return [Array<Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Structure>]
182
+ attr_accessor :structures
183
+
184
+ def initialize(**args)
185
+ update!(**args)
186
+ end
187
+
188
+ # Update properties of this object
189
+ def update!(**args)
190
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
191
+ @structures = args[:structures] if args.key?(:structures)
192
+ end
193
+ end
194
+
195
+ # Represents device relationships, for instance, structure/room to which the
196
+ # device is assigned to. For now this is only filled in the enterprise flow.
197
+ class GoogleHomeEnterpriseSdmV1ParentRelation
198
+ include Google::Apis::Core::Hashable
199
+
200
+ # Output only. The custom name of the relation -- e.g., structure/room where the
201
+ # device is assigned to.
202
+ # Corresponds to the JSON property `displayName`
203
+ # @return [String]
204
+ attr_accessor :display_name
205
+
206
+ # Output only. The name of the relation -- e.g., structure/room where the device
207
+ # is assigned to. For example: "enterprises/XYZ/structures/ABC" or "enterprises/
208
+ # XYZ/structures/ABC/rooms/123"
209
+ # Corresponds to the JSON property `parent`
210
+ # @return [String]
211
+ attr_accessor :parent
212
+
213
+ def initialize(**args)
214
+ update!(**args)
215
+ end
216
+
217
+ # Update properties of this object
218
+ def update!(**args)
219
+ @display_name = args[:display_name] if args.key?(:display_name)
220
+ @parent = args[:parent] if args.key?(:parent)
221
+ end
222
+ end
223
+
224
+ # Room resource represents an instance of sub-space within a structure such as
225
+ # rooms in a hotel suite or rental apartment.
226
+ class GoogleHomeEnterpriseSdmV1Room
227
+ include Google::Apis::Core::Hashable
228
+
229
+ # Output only. The resource name of the room. For example: "enterprises/XYZ/
230
+ # structures/ABC/rooms/123".
231
+ # Corresponds to the JSON property `name`
232
+ # @return [String]
233
+ attr_accessor :name
234
+
235
+ # Room traits.
236
+ # Corresponds to the JSON property `traits`
237
+ # @return [Hash<String,Object>]
238
+ attr_accessor :traits
239
+
240
+ def initialize(**args)
241
+ update!(**args)
242
+ end
243
+
244
+ # Update properties of this object
245
+ def update!(**args)
246
+ @name = args[:name] if args.key?(:name)
247
+ @traits = args[:traits] if args.key?(:traits)
248
+ end
249
+ end
250
+
251
+ # Structure resource represents an instance of enterprise managed home or hotel
252
+ # room.
253
+ class GoogleHomeEnterpriseSdmV1Structure
254
+ include Google::Apis::Core::Hashable
255
+
256
+ # Output only. The resource name of the structure. For example: "enterprises/XYZ/
257
+ # structures/ABC".
258
+ # Corresponds to the JSON property `name`
259
+ # @return [String]
260
+ attr_accessor :name
261
+
262
+ # Assignee details of the structure.
263
+ # Corresponds to the JSON property `parentRelations`
264
+ # @return [Array<Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1StructureParentRelation>]
265
+ attr_accessor :parent_relations
266
+
267
+ # Structure traits.
268
+ # Corresponds to the JSON property `traits`
269
+ # @return [Hash<String,Object>]
270
+ attr_accessor :traits
271
+
272
+ def initialize(**args)
273
+ update!(**args)
274
+ end
275
+
276
+ # Update properties of this object
277
+ def update!(**args)
278
+ @name = args[:name] if args.key?(:name)
279
+ @parent_relations = args[:parent_relations] if args.key?(:parent_relations)
280
+ @traits = args[:traits] if args.key?(:traits)
281
+ end
282
+ end
283
+
284
+ # Represents structure assignee relationships, for instance, group to which the
285
+ # structure is assigned to.
286
+ class GoogleHomeEnterpriseSdmV1StructureParentRelation
287
+ include Google::Apis::Core::Hashable
288
+
289
+ # Output only. The custom name of the relation -- e.g., group, to which the
290
+ # structure is assigned to.
291
+ # Corresponds to the JSON property `displayName`
292
+ # @return [String]
293
+ attr_accessor :display_name
294
+
295
+ # Output only. The name of the relation -- e.g., group to which the structure is
296
+ # assigned to. For example: "enterprises/XYZ/groups/ABC"
297
+ # Corresponds to the JSON property `parent`
298
+ # @return [String]
299
+ attr_accessor :parent
300
+
301
+ def initialize(**args)
302
+ update!(**args)
303
+ end
304
+
305
+ # Update properties of this object
306
+ def update!(**args)
307
+ @display_name = args[:display_name] if args.key?(:display_name)
308
+ @parent = args[:parent] if args.key?(:parent)
309
+ end
310
+ end
311
+ end
312
+ end
313
+ end
@@ -0,0 +1,174 @@
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 SmartdevicemanagementV1
24
+
25
+ class GoogleHomeEnterpriseSdmV1Device
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class GoogleHomeEnterpriseSdmV1ListDevicesResponse
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class GoogleHomeEnterpriseSdmV1ListRoomsResponse
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class GoogleHomeEnterpriseSdmV1ListStructuresResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class GoogleHomeEnterpriseSdmV1ParentRelation
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GoogleHomeEnterpriseSdmV1Room
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GoogleHomeEnterpriseSdmV1Structure
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GoogleHomeEnterpriseSdmV1StructureParentRelation
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GoogleHomeEnterpriseSdmV1Device
86
+ # @private
87
+ class Representation < Google::Apis::Core::JsonRepresentation
88
+ property :assignee, as: 'assignee'
89
+ property :name, as: 'name'
90
+ collection :parent_relations, as: 'parentRelations', class: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ParentRelation, decorator: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ParentRelation::Representation
91
+
92
+ hash :traits, as: 'traits'
93
+ property :type, as: 'type'
94
+ end
95
+ end
96
+
97
+ class GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandRequest
98
+ # @private
99
+ class Representation < Google::Apis::Core::JsonRepresentation
100
+ property :command, as: 'command'
101
+ hash :params, as: 'params'
102
+ end
103
+ end
104
+
105
+ class GoogleHomeEnterpriseSdmV1ExecuteDeviceCommandResponse
106
+ # @private
107
+ class Representation < Google::Apis::Core::JsonRepresentation
108
+ hash :results, as: 'results'
109
+ end
110
+ end
111
+
112
+ class GoogleHomeEnterpriseSdmV1ListDevicesResponse
113
+ # @private
114
+ class Representation < Google::Apis::Core::JsonRepresentation
115
+ collection :devices, as: 'devices', class: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device, decorator: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Device::Representation
116
+
117
+ property :next_page_token, as: 'nextPageToken'
118
+ end
119
+ end
120
+
121
+ class GoogleHomeEnterpriseSdmV1ListRoomsResponse
122
+ # @private
123
+ class Representation < Google::Apis::Core::JsonRepresentation
124
+ property :next_page_token, as: 'nextPageToken'
125
+ collection :rooms, as: 'rooms', class: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Room, decorator: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Room::Representation
126
+
127
+ end
128
+ end
129
+
130
+ class GoogleHomeEnterpriseSdmV1ListStructuresResponse
131
+ # @private
132
+ class Representation < Google::Apis::Core::JsonRepresentation
133
+ property :next_page_token, as: 'nextPageToken'
134
+ collection :structures, as: 'structures', class: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Structure, decorator: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Structure::Representation
135
+
136
+ end
137
+ end
138
+
139
+ class GoogleHomeEnterpriseSdmV1ParentRelation
140
+ # @private
141
+ class Representation < Google::Apis::Core::JsonRepresentation
142
+ property :display_name, as: 'displayName'
143
+ property :parent, as: 'parent'
144
+ end
145
+ end
146
+
147
+ class GoogleHomeEnterpriseSdmV1Room
148
+ # @private
149
+ class Representation < Google::Apis::Core::JsonRepresentation
150
+ property :name, as: 'name'
151
+ hash :traits, as: 'traits'
152
+ end
153
+ end
154
+
155
+ class GoogleHomeEnterpriseSdmV1Structure
156
+ # @private
157
+ class Representation < Google::Apis::Core::JsonRepresentation
158
+ property :name, as: 'name'
159
+ collection :parent_relations, as: 'parentRelations', class: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1StructureParentRelation, decorator: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1StructureParentRelation::Representation
160
+
161
+ hash :traits, as: 'traits'
162
+ end
163
+ end
164
+
165
+ class GoogleHomeEnterpriseSdmV1StructureParentRelation
166
+ # @private
167
+ class Representation < Google::Apis::Core::JsonRepresentation
168
+ property :display_name, as: 'displayName'
169
+ property :parent, as: 'parent'
170
+ end
171
+ end
172
+ end
173
+ end
174
+ end