forked from googleapis/google-api-ruby-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrepresentations.rb
350 lines (285 loc) · 12.4 KB
/
representations.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module MirrorV1
class Account
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Attachment
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ListAttachmentsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class AuthToken
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Command
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Contact
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ListContactsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Location
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ListLocationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class MenuItem
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class MenuValue
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Notification
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class NotificationConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Setting
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Subscription
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ListSubscriptionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class TimelineItem
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ListTimelineResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class UserAction
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class UserData
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Account
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :auth_tokens, as: 'authTokens', class: Google::Apis::MirrorV1::AuthToken, decorator: Google::Apis::MirrorV1::AuthToken::Representation
collection :features, as: 'features'
property :password, as: 'password'
collection :user_data, as: 'userData', class: Google::Apis::MirrorV1::UserData, decorator: Google::Apis::MirrorV1::UserData::Representation
end
end
class Attachment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :content_type, as: 'contentType'
property :content_url, as: 'contentUrl'
property :id, as: 'id'
property :is_processing_content, as: 'isProcessingContent'
end
end
class ListAttachmentsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::MirrorV1::Attachment, decorator: Google::Apis::MirrorV1::Attachment::Representation
property :kind, as: 'kind'
end
end
class AuthToken
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auth_token, as: 'authToken'
property :type, as: 'type'
end
end
class Command
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
end
end
class Contact
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :accept_commands, as: 'acceptCommands', class: Google::Apis::MirrorV1::Command, decorator: Google::Apis::MirrorV1::Command::Representation
collection :accept_types, as: 'acceptTypes'
property :display_name, as: 'displayName'
property :id, as: 'id'
collection :image_urls, as: 'imageUrls'
property :kind, as: 'kind'
property :phone_number, as: 'phoneNumber'
property :priority, as: 'priority'
collection :sharing_features, as: 'sharingFeatures'
property :source, as: 'source'
property :speakable_name, as: 'speakableName'
property :type, as: 'type'
end
end
class ListContactsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::MirrorV1::Contact, decorator: Google::Apis::MirrorV1::Contact::Representation
property :kind, as: 'kind'
end
end
class Location
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :accuracy, as: 'accuracy'
property :address, as: 'address'
property :display_name, as: 'displayName'
property :id, as: 'id'
property :kind, as: 'kind'
property :latitude, as: 'latitude'
property :longitude, as: 'longitude'
property :timestamp, as: 'timestamp', type: DateTime
end
end
class ListLocationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::MirrorV1::Location, decorator: Google::Apis::MirrorV1::Location::Representation
property :kind, as: 'kind'
end
end
class MenuItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action, as: 'action'
property :contextual_command, as: 'contextual_command'
property :id, as: 'id'
property :payload, as: 'payload'
property :remove_when_selected, as: 'removeWhenSelected'
collection :values, as: 'values', class: Google::Apis::MirrorV1::MenuValue, decorator: Google::Apis::MirrorV1::MenuValue::Representation
end
end
class MenuValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :icon_url, as: 'iconUrl'
property :state, as: 'state'
end
end
class Notification
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :collection, as: 'collection'
property :item_id, as: 'itemId'
property :operation, as: 'operation'
collection :user_actions, as: 'userActions', class: Google::Apis::MirrorV1::UserAction, decorator: Google::Apis::MirrorV1::UserAction::Representation
property :user_token, as: 'userToken'
property :verify_token, as: 'verifyToken'
end
end
class NotificationConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :delivery_time, as: 'deliveryTime', type: DateTime
property :level, as: 'level'
end
end
class Setting
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :kind, as: 'kind'
property :value, as: 'value'
end
end
class Subscription
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :callback_url, as: 'callbackUrl'
property :collection, as: 'collection'
property :id, as: 'id'
property :kind, as: 'kind'
property :notification, as: 'notification', class: Google::Apis::MirrorV1::Notification, decorator: Google::Apis::MirrorV1::Notification::Representation
collection :operation, as: 'operation'
property :updated, as: 'updated', type: DateTime
property :user_token, as: 'userToken'
property :verify_token, as: 'verifyToken'
end
end
class ListSubscriptionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::MirrorV1::Subscription, decorator: Google::Apis::MirrorV1::Subscription::Representation
property :kind, as: 'kind'
end
end
class TimelineItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :attachments, as: 'attachments', class: Google::Apis::MirrorV1::Attachment, decorator: Google::Apis::MirrorV1::Attachment::Representation
property :bundle_id, as: 'bundleId'
property :canonical_url, as: 'canonicalUrl'
property :created, as: 'created', type: DateTime
property :creator, as: 'creator', class: Google::Apis::MirrorV1::Contact, decorator: Google::Apis::MirrorV1::Contact::Representation
property :display_time, as: 'displayTime', type: DateTime
property :etag, as: 'etag'
property :html, as: 'html'
property :id, as: 'id'
property :in_reply_to, as: 'inReplyTo'
property :is_bundle_cover, as: 'isBundleCover'
property :is_deleted, as: 'isDeleted'
property :is_pinned, as: 'isPinned'
property :kind, as: 'kind'
property :location, as: 'location', class: Google::Apis::MirrorV1::Location, decorator: Google::Apis::MirrorV1::Location::Representation
collection :menu_items, as: 'menuItems', class: Google::Apis::MirrorV1::MenuItem, decorator: Google::Apis::MirrorV1::MenuItem::Representation
property :notification, as: 'notification', class: Google::Apis::MirrorV1::NotificationConfig, decorator: Google::Apis::MirrorV1::NotificationConfig::Representation
property :pin_score, as: 'pinScore'
collection :recipients, as: 'recipients', class: Google::Apis::MirrorV1::Contact, decorator: Google::Apis::MirrorV1::Contact::Representation
property :self_link, as: 'selfLink'
property :source_item_id, as: 'sourceItemId'
property :speakable_text, as: 'speakableText'
property :speakable_type, as: 'speakableType'
property :text, as: 'text'
property :title, as: 'title'
property :updated, as: 'updated', type: DateTime
end
end
class ListTimelineResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :items, as: 'items', class: Google::Apis::MirrorV1::TimelineItem, decorator: Google::Apis::MirrorV1::TimelineItem::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class UserAction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :payload, as: 'payload'
property :type, as: 'type'
end
end
class UserData
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
end