google-apis-looker_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
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
+ module Google
16
+ module Apis
17
+ module LookerV1
18
+ # Version of the google-apis-looker_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.12.0"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20231025"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,565 @@
1
+ # Copyright 2020 Google LLC
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 LookerV1
24
+
25
+ class AdminSettings
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AuditConfig
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class AuditLogConfig
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Binding
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class CancelOperationRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class CustomDomain
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class Date
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class DenyMaintenancePeriod
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 EncryptionConfig
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ExportEncryptionConfig
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ExportInstanceRequest
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ExportMetadata
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ExportMetadataEncryptionKey
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class Expr
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ImportInstanceRequest
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class Instance
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class ListInstancesResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class ListLocationsResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class ListOperationsResponse
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class Location
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class MaintenanceSchedule
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class MaintenanceWindow
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class OAuthConfig
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class Operation
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class OperationMetadata
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class Policy
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class RestartInstanceRequest
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class SetIamPolicyRequest
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class Status
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class TestIamPermissionsRequest
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class TestIamPermissionsResponse
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class TimeOfDay
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class UserMetadata
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class AdminSettings
230
+ # @private
231
+ class Representation < Google::Apis::Core::JsonRepresentation
232
+ collection :allowed_email_domains, as: 'allowedEmailDomains'
233
+ end
234
+ end
235
+
236
+ class AuditConfig
237
+ # @private
238
+ class Representation < Google::Apis::Core::JsonRepresentation
239
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::LookerV1::AuditLogConfig, decorator: Google::Apis::LookerV1::AuditLogConfig::Representation
240
+
241
+ property :service, as: 'service'
242
+ end
243
+ end
244
+
245
+ class AuditLogConfig
246
+ # @private
247
+ class Representation < Google::Apis::Core::JsonRepresentation
248
+ collection :exempted_members, as: 'exemptedMembers'
249
+ property :log_type, as: 'logType'
250
+ end
251
+ end
252
+
253
+ class Binding
254
+ # @private
255
+ class Representation < Google::Apis::Core::JsonRepresentation
256
+ property :condition, as: 'condition', class: Google::Apis::LookerV1::Expr, decorator: Google::Apis::LookerV1::Expr::Representation
257
+
258
+ collection :members, as: 'members'
259
+ property :role, as: 'role'
260
+ end
261
+ end
262
+
263
+ class CancelOperationRequest
264
+ # @private
265
+ class Representation < Google::Apis::Core::JsonRepresentation
266
+ end
267
+ end
268
+
269
+ class CustomDomain
270
+ # @private
271
+ class Representation < Google::Apis::Core::JsonRepresentation
272
+ property :domain, as: 'domain'
273
+ property :state, as: 'state'
274
+ end
275
+ end
276
+
277
+ class Date
278
+ # @private
279
+ class Representation < Google::Apis::Core::JsonRepresentation
280
+ property :day, as: 'day'
281
+ property :month, as: 'month'
282
+ property :year, as: 'year'
283
+ end
284
+ end
285
+
286
+ class DenyMaintenancePeriod
287
+ # @private
288
+ class Representation < Google::Apis::Core::JsonRepresentation
289
+ property :end_date, as: 'endDate', class: Google::Apis::LookerV1::Date, decorator: Google::Apis::LookerV1::Date::Representation
290
+
291
+ property :start_date, as: 'startDate', class: Google::Apis::LookerV1::Date, decorator: Google::Apis::LookerV1::Date::Representation
292
+
293
+ property :time, as: 'time', class: Google::Apis::LookerV1::TimeOfDay, decorator: Google::Apis::LookerV1::TimeOfDay::Representation
294
+
295
+ end
296
+ end
297
+
298
+ class Empty
299
+ # @private
300
+ class Representation < Google::Apis::Core::JsonRepresentation
301
+ end
302
+ end
303
+
304
+ class EncryptionConfig
305
+ # @private
306
+ class Representation < Google::Apis::Core::JsonRepresentation
307
+ property :kms_key_name, as: 'kmsKeyName'
308
+ property :kms_key_name_version, as: 'kmsKeyNameVersion'
309
+ property :kms_key_state, as: 'kmsKeyState'
310
+ end
311
+ end
312
+
313
+ class ExportEncryptionConfig
314
+ # @private
315
+ class Representation < Google::Apis::Core::JsonRepresentation
316
+ property :kms_key_name, as: 'kmsKeyName'
317
+ end
318
+ end
319
+
320
+ class ExportInstanceRequest
321
+ # @private
322
+ class Representation < Google::Apis::Core::JsonRepresentation
323
+ property :encryption_config, as: 'encryptionConfig', class: Google::Apis::LookerV1::ExportEncryptionConfig, decorator: Google::Apis::LookerV1::ExportEncryptionConfig::Representation
324
+
325
+ property :gcs_uri, as: 'gcsUri'
326
+ end
327
+ end
328
+
329
+ class ExportMetadata
330
+ # @private
331
+ class Representation < Google::Apis::Core::JsonRepresentation
332
+ property :export_encryption_key, as: 'exportEncryptionKey', class: Google::Apis::LookerV1::ExportMetadataEncryptionKey, decorator: Google::Apis::LookerV1::ExportMetadataEncryptionKey::Representation
333
+
334
+ collection :file_paths, as: 'filePaths'
335
+ property :looker_encryption_key, as: 'lookerEncryptionKey'
336
+ property :looker_instance, as: 'lookerInstance'
337
+ property :looker_platform_edition, as: 'lookerPlatformEdition'
338
+ property :looker_version, as: 'lookerVersion'
339
+ property :source, as: 'source'
340
+ end
341
+ end
342
+
343
+ class ExportMetadataEncryptionKey
344
+ # @private
345
+ class Representation < Google::Apis::Core::JsonRepresentation
346
+ property :cmek, as: 'cmek'
347
+ property :version, as: 'version'
348
+ end
349
+ end
350
+
351
+ class Expr
352
+ # @private
353
+ class Representation < Google::Apis::Core::JsonRepresentation
354
+ property :description, as: 'description'
355
+ property :expression, as: 'expression'
356
+ property :location, as: 'location'
357
+ property :title, as: 'title'
358
+ end
359
+ end
360
+
361
+ class ImportInstanceRequest
362
+ # @private
363
+ class Representation < Google::Apis::Core::JsonRepresentation
364
+ property :gcs_uri, as: 'gcsUri'
365
+ end
366
+ end
367
+
368
+ class Instance
369
+ # @private
370
+ class Representation < Google::Apis::Core::JsonRepresentation
371
+ property :admin_settings, as: 'adminSettings', class: Google::Apis::LookerV1::AdminSettings, decorator: Google::Apis::LookerV1::AdminSettings::Representation
372
+
373
+ property :consumer_network, as: 'consumerNetwork'
374
+ property :create_time, as: 'createTime'
375
+ property :custom_domain, as: 'customDomain', class: Google::Apis::LookerV1::CustomDomain, decorator: Google::Apis::LookerV1::CustomDomain::Representation
376
+
377
+ property :deny_maintenance_period, as: 'denyMaintenancePeriod', class: Google::Apis::LookerV1::DenyMaintenancePeriod, decorator: Google::Apis::LookerV1::DenyMaintenancePeriod::Representation
378
+
379
+ property :egress_public_ip, as: 'egressPublicIp'
380
+ property :encryption_config, as: 'encryptionConfig', class: Google::Apis::LookerV1::EncryptionConfig, decorator: Google::Apis::LookerV1::EncryptionConfig::Representation
381
+
382
+ property :ingress_private_ip, as: 'ingressPrivateIp'
383
+ property :ingress_public_ip, as: 'ingressPublicIp'
384
+ property :last_deny_maintenance_period, as: 'lastDenyMaintenancePeriod', class: Google::Apis::LookerV1::DenyMaintenancePeriod, decorator: Google::Apis::LookerV1::DenyMaintenancePeriod::Representation
385
+
386
+ property :looker_uri, as: 'lookerUri'
387
+ property :looker_version, as: 'lookerVersion'
388
+ property :maintenance_schedule, as: 'maintenanceSchedule', class: Google::Apis::LookerV1::MaintenanceSchedule, decorator: Google::Apis::LookerV1::MaintenanceSchedule::Representation
389
+
390
+ property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::LookerV1::MaintenanceWindow, decorator: Google::Apis::LookerV1::MaintenanceWindow::Representation
391
+
392
+ property :name, as: 'name'
393
+ property :oauth_config, as: 'oauthConfig', class: Google::Apis::LookerV1::OAuthConfig, decorator: Google::Apis::LookerV1::OAuthConfig::Representation
394
+
395
+ property :platform_edition, as: 'platformEdition'
396
+ property :private_ip_enabled, as: 'privateIpEnabled'
397
+ property :public_ip_enabled, as: 'publicIpEnabled'
398
+ property :reserved_range, as: 'reservedRange'
399
+ property :state, as: 'state'
400
+ property :update_time, as: 'updateTime'
401
+ property :user_metadata, as: 'userMetadata', class: Google::Apis::LookerV1::UserMetadata, decorator: Google::Apis::LookerV1::UserMetadata::Representation
402
+
403
+ end
404
+ end
405
+
406
+ class ListInstancesResponse
407
+ # @private
408
+ class Representation < Google::Apis::Core::JsonRepresentation
409
+ collection :instances, as: 'instances', class: Google::Apis::LookerV1::Instance, decorator: Google::Apis::LookerV1::Instance::Representation
410
+
411
+ property :next_page_token, as: 'nextPageToken'
412
+ collection :unreachable, as: 'unreachable'
413
+ end
414
+ end
415
+
416
+ class ListLocationsResponse
417
+ # @private
418
+ class Representation < Google::Apis::Core::JsonRepresentation
419
+ collection :locations, as: 'locations', class: Google::Apis::LookerV1::Location, decorator: Google::Apis::LookerV1::Location::Representation
420
+
421
+ property :next_page_token, as: 'nextPageToken'
422
+ end
423
+ end
424
+
425
+ class ListOperationsResponse
426
+ # @private
427
+ class Representation < Google::Apis::Core::JsonRepresentation
428
+ property :next_page_token, as: 'nextPageToken'
429
+ collection :operations, as: 'operations', class: Google::Apis::LookerV1::Operation, decorator: Google::Apis::LookerV1::Operation::Representation
430
+
431
+ end
432
+ end
433
+
434
+ class Location
435
+ # @private
436
+ class Representation < Google::Apis::Core::JsonRepresentation
437
+ property :display_name, as: 'displayName'
438
+ hash :labels, as: 'labels'
439
+ property :location_id, as: 'locationId'
440
+ hash :metadata, as: 'metadata'
441
+ property :name, as: 'name'
442
+ end
443
+ end
444
+
445
+ class MaintenanceSchedule
446
+ # @private
447
+ class Representation < Google::Apis::Core::JsonRepresentation
448
+ property :end_time, as: 'endTime'
449
+ property :start_time, as: 'startTime'
450
+ end
451
+ end
452
+
453
+ class MaintenanceWindow
454
+ # @private
455
+ class Representation < Google::Apis::Core::JsonRepresentation
456
+ property :day_of_week, as: 'dayOfWeek'
457
+ property :start_time, as: 'startTime', class: Google::Apis::LookerV1::TimeOfDay, decorator: Google::Apis::LookerV1::TimeOfDay::Representation
458
+
459
+ end
460
+ end
461
+
462
+ class OAuthConfig
463
+ # @private
464
+ class Representation < Google::Apis::Core::JsonRepresentation
465
+ property :client_id, as: 'clientId'
466
+ property :client_secret, as: 'clientSecret'
467
+ end
468
+ end
469
+
470
+ class Operation
471
+ # @private
472
+ class Representation < Google::Apis::Core::JsonRepresentation
473
+ property :done, as: 'done'
474
+ property :error, as: 'error', class: Google::Apis::LookerV1::Status, decorator: Google::Apis::LookerV1::Status::Representation
475
+
476
+ hash :metadata, as: 'metadata'
477
+ property :name, as: 'name'
478
+ hash :response, as: 'response'
479
+ end
480
+ end
481
+
482
+ class OperationMetadata
483
+ # @private
484
+ class Representation < Google::Apis::Core::JsonRepresentation
485
+ property :api_version, as: 'apiVersion'
486
+ property :create_time, as: 'createTime'
487
+ property :end_time, as: 'endTime'
488
+ property :requested_cancellation, as: 'requestedCancellation'
489
+ property :status_message, as: 'statusMessage'
490
+ property :target, as: 'target'
491
+ property :verb, as: 'verb'
492
+ end
493
+ end
494
+
495
+ class Policy
496
+ # @private
497
+ class Representation < Google::Apis::Core::JsonRepresentation
498
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::LookerV1::AuditConfig, decorator: Google::Apis::LookerV1::AuditConfig::Representation
499
+
500
+ collection :bindings, as: 'bindings', class: Google::Apis::LookerV1::Binding, decorator: Google::Apis::LookerV1::Binding::Representation
501
+
502
+ property :etag, :base64 => true, as: 'etag'
503
+ property :version, as: 'version'
504
+ end
505
+ end
506
+
507
+ class RestartInstanceRequest
508
+ # @private
509
+ class Representation < Google::Apis::Core::JsonRepresentation
510
+ end
511
+ end
512
+
513
+ class SetIamPolicyRequest
514
+ # @private
515
+ class Representation < Google::Apis::Core::JsonRepresentation
516
+ property :policy, as: 'policy', class: Google::Apis::LookerV1::Policy, decorator: Google::Apis::LookerV1::Policy::Representation
517
+
518
+ property :update_mask, as: 'updateMask'
519
+ end
520
+ end
521
+
522
+ class Status
523
+ # @private
524
+ class Representation < Google::Apis::Core::JsonRepresentation
525
+ property :code, as: 'code'
526
+ collection :details, as: 'details'
527
+ property :message, as: 'message'
528
+ end
529
+ end
530
+
531
+ class TestIamPermissionsRequest
532
+ # @private
533
+ class Representation < Google::Apis::Core::JsonRepresentation
534
+ collection :permissions, as: 'permissions'
535
+ end
536
+ end
537
+
538
+ class TestIamPermissionsResponse
539
+ # @private
540
+ class Representation < Google::Apis::Core::JsonRepresentation
541
+ collection :permissions, as: 'permissions'
542
+ end
543
+ end
544
+
545
+ class TimeOfDay
546
+ # @private
547
+ class Representation < Google::Apis::Core::JsonRepresentation
548
+ property :hours, as: 'hours'
549
+ property :minutes, as: 'minutes'
550
+ property :nanos, as: 'nanos'
551
+ property :seconds, as: 'seconds'
552
+ end
553
+ end
554
+
555
+ class UserMetadata
556
+ # @private
557
+ class Representation < Google::Apis::Core::JsonRepresentation
558
+ property :additional_developer_user_count, as: 'additionalDeveloperUserCount'
559
+ property :additional_standard_user_count, as: 'additionalStandardUserCount'
560
+ property :additional_viewer_user_count, as: 'additionalViewerUserCount'
561
+ end
562
+ end
563
+ end
564
+ end
565
+ end