google-apis-looker_v1 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54e4e8a556639fcfd0565e5492e681cdab9c08302d5ca607d7e9738b4d349c33
4
- data.tar.gz: e05d098e6ecfa286b8effac73eb5667357ee95883da7ba1023db45bede9e8b27
3
+ metadata.gz: 12d3004ab02669f760bb261d3d31b7b682b13fe6ea5d10156797cf2744cfb436
4
+ data.tar.gz: 2775a7fb5d3b3ddd9a5b0aa462a5043aa8abf60244ccfd2135c884000eb31fc1
5
5
  SHA512:
6
- metadata.gz: d7161c82c361897925ba97f72ac97a6343414c4976fb2cb87770622ec6cb2bcbaa6eff6f00498b7a359ff872ce116984968523de740a1aa232cc8980df601f20
7
- data.tar.gz: 355a9add421857c10b89f6985d35b8d8ab36befb00fd9c7e99f8deb767d28c42bb1407f7a325536e9de4354c8fc78271cbdb18e2005a36c2fd41ccd312528150
6
+ metadata.gz: 8b7430fc2293c2bc9fc89682479ee70ef58cf52fb4d87f8584bb2bdf83a2229e631805d4577cb5888ef362be4946c9ecf988453d1e9101f7ba49ea72ac3bb253
7
+ data.tar.gz: b22cfde28840c87612542fb45027f2eb160d7aea97f99955e55b0a295e6efdd76b7003093eda80db0595cbf8b08bfe78ad58ff7454b4a3458c8edf8e8e52e36f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-looker_v1
2
2
 
3
+ ### v0.15.0 (2025-04-20)
4
+
5
+ * Regenerated from discovery document revision 20250414
6
+
3
7
  ### v0.14.0 (2025-03-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20250305
@@ -576,6 +576,84 @@ module Google
576
576
  end
577
577
  end
578
578
 
579
+ # The details of a backup resource.
580
+ class InstanceBackup
581
+ include Google::Apis::Core::Hashable
582
+
583
+ # Output only. The time when the backup was started.
584
+ # Corresponds to the JSON property `createTime`
585
+ # @return [String]
586
+ attr_accessor :create_time
587
+
588
+ # Encryption configuration (i.e. CMEK).
589
+ # Corresponds to the JSON property `encryptionConfig`
590
+ # @return [Google::Apis::LookerV1::EncryptionConfig]
591
+ attr_accessor :encryption_config
592
+
593
+ # Output only. The time when the backup will be deleted.
594
+ # Corresponds to the JSON property `expireTime`
595
+ # @return [String]
596
+ attr_accessor :expire_time
597
+
598
+ # Immutable. The relative resource name of the backup, in the following form: `
599
+ # projects/`project_number`/locations/`location_id`/instances/`instance_id`/
600
+ # backups/`backup``
601
+ # Corresponds to the JSON property `name`
602
+ # @return [String]
603
+ attr_accessor :name
604
+
605
+ # Output only. The current state of the backup.
606
+ # Corresponds to the JSON property `state`
607
+ # @return [String]
608
+ attr_accessor :state
609
+
610
+ def initialize(**args)
611
+ update!(**args)
612
+ end
613
+
614
+ # Update properties of this object
615
+ def update!(**args)
616
+ @create_time = args[:create_time] if args.key?(:create_time)
617
+ @encryption_config = args[:encryption_config] if args.key?(:encryption_config)
618
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
619
+ @name = args[:name] if args.key?(:name)
620
+ @state = args[:state] if args.key?(:state)
621
+ end
622
+ end
623
+
624
+ # Response from listing Looker instance backups.
625
+ class ListInstanceBackupsResponse
626
+ include Google::Apis::Core::Hashable
627
+
628
+ # The list of instances matching the request filters, up to the requested `
629
+ # page_size`.
630
+ # Corresponds to the JSON property `instanceBackups`
631
+ # @return [Array<Google::Apis::LookerV1::InstanceBackup>]
632
+ attr_accessor :instance_backups
633
+
634
+ # If provided, a page token that can look up the next `page_size` results. If
635
+ # empty, the results list is exhausted.
636
+ # Corresponds to the JSON property `nextPageToken`
637
+ # @return [String]
638
+ attr_accessor :next_page_token
639
+
640
+ # Locations that could not be reached.
641
+ # Corresponds to the JSON property `unreachable`
642
+ # @return [Array<String>]
643
+ attr_accessor :unreachable
644
+
645
+ def initialize(**args)
646
+ update!(**args)
647
+ end
648
+
649
+ # Update properties of this object
650
+ def update!(**args)
651
+ @instance_backups = args[:instance_backups] if args.key?(:instance_backups)
652
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
653
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
654
+ end
655
+ end
656
+
579
657
  # Response from ListInstances.
580
658
  class ListInstancesResponse
581
659
  include Google::Apis::Core::Hashable
@@ -950,6 +1028,26 @@ module Google
950
1028
  end
951
1029
  end
952
1030
 
1031
+ # Request options for restoring an instance
1032
+ class RestoreInstanceRequest
1033
+ include Google::Apis::Core::Hashable
1034
+
1035
+ # Required. Backup being used to restore the instance Format: projects/`project`/
1036
+ # locations/`location`/instances/`instance`/backups/`backup`
1037
+ # Corresponds to the JSON property `backup`
1038
+ # @return [String]
1039
+ attr_accessor :backup
1040
+
1041
+ def initialize(**args)
1042
+ update!(**args)
1043
+ end
1044
+
1045
+ # Update properties of this object
1046
+ def update!(**args)
1047
+ @backup = args[:backup] if args.key?(:backup)
1048
+ end
1049
+ end
1050
+
953
1051
  # Service attachment configuration.
954
1052
  class ServiceAttachment
955
1053
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module LookerV1
18
18
  # Version of the google-apis-looker_v1 gem
19
- GEM_VERSION = "0.14.0"
19
+ GEM_VERSION = "0.15.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250305"
25
+ REVISION = "20250414"
26
26
  end
27
27
  end
28
28
  end
@@ -100,6 +100,18 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
+ class InstanceBackup
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class ListInstanceBackupsResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
103
115
  class ListInstancesResponse
104
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
117
 
@@ -166,6 +178,12 @@ module Google
166
178
  include Google::Apis::Core::JsonObjectSupport
167
179
  end
168
180
 
181
+ class RestoreInstanceRequest
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
169
187
  class ServiceAttachment
170
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
189
 
@@ -338,6 +356,28 @@ module Google
338
356
  end
339
357
  end
340
358
 
359
+ class InstanceBackup
360
+ # @private
361
+ class Representation < Google::Apis::Core::JsonRepresentation
362
+ property :create_time, as: 'createTime'
363
+ property :encryption_config, as: 'encryptionConfig', class: Google::Apis::LookerV1::EncryptionConfig, decorator: Google::Apis::LookerV1::EncryptionConfig::Representation
364
+
365
+ property :expire_time, as: 'expireTime'
366
+ property :name, as: 'name'
367
+ property :state, as: 'state'
368
+ end
369
+ end
370
+
371
+ class ListInstanceBackupsResponse
372
+ # @private
373
+ class Representation < Google::Apis::Core::JsonRepresentation
374
+ collection :instance_backups, as: 'instanceBackups', class: Google::Apis::LookerV1::InstanceBackup, decorator: Google::Apis::LookerV1::InstanceBackup::Representation
375
+
376
+ property :next_page_token, as: 'nextPageToken'
377
+ collection :unreachable, as: 'unreachable'
378
+ end
379
+ end
380
+
341
381
  class ListInstancesResponse
342
382
  # @private
343
383
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -443,6 +483,13 @@ module Google
443
483
  end
444
484
  end
445
485
 
486
+ class RestoreInstanceRequest
487
+ # @private
488
+ class Representation < Google::Apis::Core::JsonRepresentation
489
+ property :backup, as: 'backup'
490
+ end
491
+ end
492
+
446
493
  class ServiceAttachment
447
494
  # @private
448
495
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -84,6 +84,9 @@ module Google
84
84
  # Lists information about the supported locations for this service.
85
85
  # @param [String] name
86
86
  # The resource that owns the locations collection, if applicable.
87
+ # @param [Array<String>, String] extra_location_types
88
+ # Optional. A list of extra location types that should be used as conditions for
89
+ # controlling the visibility of the locations.
87
90
  # @param [String] filter
88
91
  # A filter to narrow down results to a preferred subset. The filtering language
89
92
  # accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -111,11 +114,12 @@ module Google
111
114
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
112
115
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
113
116
  # @raise [Google::Apis::AuthorizationError] Authorization is required
114
- def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
117
+ def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
115
118
  command = make_simple_command(:get, 'v1/{+name}/locations', options)
116
119
  command.response_representation = Google::Apis::LookerV1::ListLocationsResponse::Representation
117
120
  command.response_class = Google::Apis::LookerV1::ListLocationsResponse
118
121
  command.params['name'] = name unless name.nil?
122
+ command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
119
123
  command.query['filter'] = filter unless filter.nil?
120
124
  command.query['pageSize'] = page_size unless page_size.nil?
121
125
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -406,6 +410,175 @@ module Google
406
410
  execute_or_queue_command(command, &block)
407
411
  end
408
412
 
413
+ # Restore Looker instance.
414
+ # @param [String] name
415
+ # Required. Instance being restored Format: projects/`project`/locations/`
416
+ # location`/instances/`instance`
417
+ # @param [Google::Apis::LookerV1::RestoreInstanceRequest] restore_instance_request_object
418
+ # @param [String] fields
419
+ # Selector specifying which fields to include in a partial response.
420
+ # @param [String] quota_user
421
+ # Available to use for quota purposes for server-side applications. Can be any
422
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
423
+ # @param [Google::Apis::RequestOptions] options
424
+ # Request-specific options
425
+ #
426
+ # @yield [result, err] Result & error if block supplied
427
+ # @yieldparam result [Google::Apis::LookerV1::Operation] parsed result object
428
+ # @yieldparam err [StandardError] error object if request failed
429
+ #
430
+ # @return [Google::Apis::LookerV1::Operation]
431
+ #
432
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
433
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
434
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
435
+ def restore_instance(name, restore_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
436
+ command = make_simple_command(:post, 'v1/{+name}:restore', options)
437
+ command.request_representation = Google::Apis::LookerV1::RestoreInstanceRequest::Representation
438
+ command.request_object = restore_instance_request_object
439
+ command.response_representation = Google::Apis::LookerV1::Operation::Representation
440
+ command.response_class = Google::Apis::LookerV1::Operation
441
+ command.params['name'] = name unless name.nil?
442
+ command.query['fields'] = fields unless fields.nil?
443
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
444
+ execute_or_queue_command(command, &block)
445
+ end
446
+
447
+ # Backup Looker instance.
448
+ # @param [String] parent
449
+ # Required. Format: projects/`project`/locations/`location`/instances/`instance`
450
+ # @param [Google::Apis::LookerV1::InstanceBackup] instance_backup_object
451
+ # @param [String] fields
452
+ # Selector specifying which fields to include in a partial response.
453
+ # @param [String] quota_user
454
+ # Available to use for quota purposes for server-side applications. Can be any
455
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
456
+ # @param [Google::Apis::RequestOptions] options
457
+ # Request-specific options
458
+ #
459
+ # @yield [result, err] Result & error if block supplied
460
+ # @yieldparam result [Google::Apis::LookerV1::Operation] parsed result object
461
+ # @yieldparam err [StandardError] error object if request failed
462
+ #
463
+ # @return [Google::Apis::LookerV1::Operation]
464
+ #
465
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
466
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
467
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
468
+ def create_project_location_instance_backup(parent, instance_backup_object = nil, fields: nil, quota_user: nil, options: nil, &block)
469
+ command = make_simple_command(:post, 'v1/{+parent}/backups', options)
470
+ command.request_representation = Google::Apis::LookerV1::InstanceBackup::Representation
471
+ command.request_object = instance_backup_object
472
+ command.response_representation = Google::Apis::LookerV1::Operation::Representation
473
+ command.response_class = Google::Apis::LookerV1::Operation
474
+ command.params['parent'] = parent unless parent.nil?
475
+ command.query['fields'] = fields unless fields.nil?
476
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
477
+ execute_or_queue_command(command, &block)
478
+ end
479
+
480
+ # Delete backup.
481
+ # @param [String] name
482
+ # Required. Format: projects/`project`/locations/`location`/instances/`instance`/
483
+ # backups/`backup`
484
+ # @param [String] fields
485
+ # Selector specifying which fields to include in a partial response.
486
+ # @param [String] quota_user
487
+ # Available to use for quota purposes for server-side applications. Can be any
488
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
489
+ # @param [Google::Apis::RequestOptions] options
490
+ # Request-specific options
491
+ #
492
+ # @yield [result, err] Result & error if block supplied
493
+ # @yieldparam result [Google::Apis::LookerV1::Operation] parsed result object
494
+ # @yieldparam err [StandardError] error object if request failed
495
+ #
496
+ # @return [Google::Apis::LookerV1::Operation]
497
+ #
498
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
499
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
500
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
501
+ def delete_project_location_instance_backup(name, fields: nil, quota_user: nil, options: nil, &block)
502
+ command = make_simple_command(:delete, 'v1/{+name}', options)
503
+ command.response_representation = Google::Apis::LookerV1::Operation::Representation
504
+ command.response_class = Google::Apis::LookerV1::Operation
505
+ command.params['name'] = name unless name.nil?
506
+ command.query['fields'] = fields unless fields.nil?
507
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
508
+ execute_or_queue_command(command, &block)
509
+ end
510
+
511
+ #
512
+ # @param [String] name
513
+ # Required. Format: `projects/`project`/locations/`location`/instances/`instance`
514
+ # /backups/`backup``.
515
+ # @param [String] fields
516
+ # Selector specifying which fields to include in a partial response.
517
+ # @param [String] quota_user
518
+ # Available to use for quota purposes for server-side applications. Can be any
519
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
520
+ # @param [Google::Apis::RequestOptions] options
521
+ # Request-specific options
522
+ #
523
+ # @yield [result, err] Result & error if block supplied
524
+ # @yieldparam result [Google::Apis::LookerV1::InstanceBackup] parsed result object
525
+ # @yieldparam err [StandardError] error object if request failed
526
+ #
527
+ # @return [Google::Apis::LookerV1::InstanceBackup]
528
+ #
529
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
530
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
531
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
532
+ def get_project_location_instance_backup(name, fields: nil, quota_user: nil, options: nil, &block)
533
+ command = make_simple_command(:get, 'v1/{+name}', options)
534
+ command.response_representation = Google::Apis::LookerV1::InstanceBackup::Representation
535
+ command.response_class = Google::Apis::LookerV1::InstanceBackup
536
+ command.params['name'] = name unless name.nil?
537
+ command.query['fields'] = fields unless fields.nil?
538
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
539
+ execute_or_queue_command(command, &block)
540
+ end
541
+
542
+ # List backups of Looker instance.
543
+ # @param [String] parent
544
+ # Required. Format: projects/`project`/locations/`location`/instances/`instance`.
545
+ # @param [String] order_by
546
+ # Sort results. Default order is "create_time desc". Other supported fields are "
547
+ # state" and "expire_time". https://google.aip.dev/132#ordering
548
+ # @param [Fixnum] page_size
549
+ # The maximum number of instances to return.
550
+ # @param [String] page_token
551
+ # A page token received from a previous ListInstances request.
552
+ # @param [String] fields
553
+ # Selector specifying which fields to include in a partial response.
554
+ # @param [String] quota_user
555
+ # Available to use for quota purposes for server-side applications. Can be any
556
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
557
+ # @param [Google::Apis::RequestOptions] options
558
+ # Request-specific options
559
+ #
560
+ # @yield [result, err] Result & error if block supplied
561
+ # @yieldparam result [Google::Apis::LookerV1::ListInstanceBackupsResponse] parsed result object
562
+ # @yieldparam err [StandardError] error object if request failed
563
+ #
564
+ # @return [Google::Apis::LookerV1::ListInstanceBackupsResponse]
565
+ #
566
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
567
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
568
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
569
+ def list_project_location_instance_backups(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
570
+ command = make_simple_command(:get, 'v1/{+parent}/backups', options)
571
+ command.response_representation = Google::Apis::LookerV1::ListInstanceBackupsResponse::Representation
572
+ command.response_class = Google::Apis::LookerV1::ListInstanceBackupsResponse
573
+ command.params['parent'] = parent unless parent.nil?
574
+ command.query['orderBy'] = order_by unless order_by.nil?
575
+ command.query['pageSize'] = page_size unless page_size.nil?
576
+ command.query['pageToken'] = page_token unless page_token.nil?
577
+ command.query['fields'] = fields unless fields.nil?
578
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
579
+ execute_or_queue_command(command, &block)
580
+ end
581
+
409
582
  # Starts asynchronous cancellation on a long-running operation. The server makes
410
583
  # a best effort to cancel the operation, but success is not guaranteed. If the
411
584
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-looker_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-23 00:00:00.000000000 Z
10
+ date: 2025-04-20 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-looker_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-looker_v1/v0.14.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-looker_v1/v0.15.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-looker_v1
62
62
  rdoc_options: []
63
63
  require_paths: