Skip to content

Commit 3612773

Browse files
feat: Automated regeneration of looker v1 client (googleapis#22140)
Auto-created at 2025-03-16 10:54:27 +0000 using the toys pull request generator.
1 parent 8d11dd9 commit 3612773

File tree

5 files changed

+6
-316
lines changed

5 files changed

+6
-316
lines changed

generated/google-apis-looker_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-looker_v1
22

3+
### v0.14.0 (2025-03-16)
4+
5+
* Regenerated from discovery document revision 20250305
6+
37
### v0.13.0 (2025-02-26)
48

59
* Regenerated from discovery document revision 20250205

generated/google-apis-looker_v1/lib/google/apis/looker_v1/classes.rb

Lines changed: 0 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -576,84 +576,6 @@ def update!(**args)
576576
end
577577
end
578578

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-
657579
# Response from ListInstances.
658580
class ListInstancesResponse
659581
include Google::Apis::Core::Hashable
@@ -1028,26 +950,6 @@ def update!(**args)
1028950
end
1029951
end
1030952

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-
1051953
# Service attachment configuration.
1052954
class ServiceAttachment
1053955
include Google::Apis::Core::Hashable

generated/google-apis-looker_v1/lib/google/apis/looker_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module LookerV1
1818
# Version of the google-apis-looker_v1 gem
19-
GEM_VERSION = "0.13.0"
19+
GEM_VERSION = "0.14.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250205"
25+
REVISION = "20250305"
2626
end
2727
end
2828
end

generated/google-apis-looker_v1/lib/google/apis/looker_v1/representations.rb

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,6 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
100100
include Google::Apis::Core::JsonObjectSupport
101101
end
102102

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-
115103
class ListInstancesResponse
116104
class Representation < Google::Apis::Core::JsonRepresentation; end
117105

@@ -178,12 +166,6 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
178166
include Google::Apis::Core::JsonObjectSupport
179167
end
180168

181-
class RestoreInstanceRequest
182-
class Representation < Google::Apis::Core::JsonRepresentation; end
183-
184-
include Google::Apis::Core::JsonObjectSupport
185-
end
186-
187169
class ServiceAttachment
188170
class Representation < Google::Apis::Core::JsonRepresentation; end
189171

@@ -356,28 +338,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
356338
end
357339
end
358340

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-
381341
class ListInstancesResponse
382342
# @private
383343
class Representation < Google::Apis::Core::JsonRepresentation
@@ -483,13 +443,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
483443
end
484444
end
485445

486-
class RestoreInstanceRequest
487-
# @private
488-
class Representation < Google::Apis::Core::JsonRepresentation
489-
property :backup, as: 'backup'
490-
end
491-
end
492-
493446
class ServiceAttachment
494447
# @private
495448
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-looker_v1/lib/google/apis/looker_v1/service.rb

Lines changed: 0 additions & 169 deletions
Original file line numberDiff line numberDiff line change
@@ -406,175 +406,6 @@ def restart_instance(name, restart_instance_request_object = nil, fields: nil, q
406406
execute_or_queue_command(command, &block)
407407
end
408408

409-
# Restore Looker instance.
410-
# @param [String] name
411-
# Required. Instance being restored Format: projects/`project`/locations/`
412-
# location`/instances/`instance`
413-
# @param [Google::Apis::LookerV1::RestoreInstanceRequest] restore_instance_request_object
414-
# @param [String] fields
415-
# Selector specifying which fields to include in a partial response.
416-
# @param [String] quota_user
417-
# Available to use for quota purposes for server-side applications. Can be any
418-
# arbitrary string assigned to a user, but should not exceed 40 characters.
419-
# @param [Google::Apis::RequestOptions] options
420-
# Request-specific options
421-
#
422-
# @yield [result, err] Result & error if block supplied
423-
# @yieldparam result [Google::Apis::LookerV1::Operation] parsed result object
424-
# @yieldparam err [StandardError] error object if request failed
425-
#
426-
# @return [Google::Apis::LookerV1::Operation]
427-
#
428-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
429-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
430-
# @raise [Google::Apis::AuthorizationError] Authorization is required
431-
def restore_instance(name, restore_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
432-
command = make_simple_command(:post, 'v1/{+name}:restore', options)
433-
command.request_representation = Google::Apis::LookerV1::RestoreInstanceRequest::Representation
434-
command.request_object = restore_instance_request_object
435-
command.response_representation = Google::Apis::LookerV1::Operation::Representation
436-
command.response_class = Google::Apis::LookerV1::Operation
437-
command.params['name'] = name unless name.nil?
438-
command.query['fields'] = fields unless fields.nil?
439-
command.query['quotaUser'] = quota_user unless quota_user.nil?
440-
execute_or_queue_command(command, &block)
441-
end
442-
443-
# Backup Looker instance.
444-
# @param [String] parent
445-
# Required. Format: projects/`project`/locations/`location`/instances/`instance`
446-
# @param [Google::Apis::LookerV1::InstanceBackup] instance_backup_object
447-
# @param [String] fields
448-
# Selector specifying which fields to include in a partial response.
449-
# @param [String] quota_user
450-
# Available to use for quota purposes for server-side applications. Can be any
451-
# arbitrary string assigned to a user, but should not exceed 40 characters.
452-
# @param [Google::Apis::RequestOptions] options
453-
# Request-specific options
454-
#
455-
# @yield [result, err] Result & error if block supplied
456-
# @yieldparam result [Google::Apis::LookerV1::Operation] parsed result object
457-
# @yieldparam err [StandardError] error object if request failed
458-
#
459-
# @return [Google::Apis::LookerV1::Operation]
460-
#
461-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
462-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
463-
# @raise [Google::Apis::AuthorizationError] Authorization is required
464-
def create_project_location_instance_backup(parent, instance_backup_object = nil, fields: nil, quota_user: nil, options: nil, &block)
465-
command = make_simple_command(:post, 'v1/{+parent}/backups', options)
466-
command.request_representation = Google::Apis::LookerV1::InstanceBackup::Representation
467-
command.request_object = instance_backup_object
468-
command.response_representation = Google::Apis::LookerV1::Operation::Representation
469-
command.response_class = Google::Apis::LookerV1::Operation
470-
command.params['parent'] = parent unless parent.nil?
471-
command.query['fields'] = fields unless fields.nil?
472-
command.query['quotaUser'] = quota_user unless quota_user.nil?
473-
execute_or_queue_command(command, &block)
474-
end
475-
476-
# Delete backup.
477-
# @param [String] name
478-
# Required. Format: projects/`project`/locations/`location`/instances/`instance`/
479-
# backups/`backup`
480-
# @param [String] fields
481-
# Selector specifying which fields to include in a partial response.
482-
# @param [String] quota_user
483-
# Available to use for quota purposes for server-side applications. Can be any
484-
# arbitrary string assigned to a user, but should not exceed 40 characters.
485-
# @param [Google::Apis::RequestOptions] options
486-
# Request-specific options
487-
#
488-
# @yield [result, err] Result & error if block supplied
489-
# @yieldparam result [Google::Apis::LookerV1::Operation] parsed result object
490-
# @yieldparam err [StandardError] error object if request failed
491-
#
492-
# @return [Google::Apis::LookerV1::Operation]
493-
#
494-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
495-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
496-
# @raise [Google::Apis::AuthorizationError] Authorization is required
497-
def delete_project_location_instance_backup(name, fields: nil, quota_user: nil, options: nil, &block)
498-
command = make_simple_command(:delete, 'v1/{+name}', options)
499-
command.response_representation = Google::Apis::LookerV1::Operation::Representation
500-
command.response_class = Google::Apis::LookerV1::Operation
501-
command.params['name'] = name unless name.nil?
502-
command.query['fields'] = fields unless fields.nil?
503-
command.query['quotaUser'] = quota_user unless quota_user.nil?
504-
execute_or_queue_command(command, &block)
505-
end
506-
507-
#
508-
# @param [String] name
509-
# Required. Format: `projects/`project`/locations/`location`/instances/`instance`
510-
# /backups/`backup``.
511-
# @param [String] fields
512-
# Selector specifying which fields to include in a partial response.
513-
# @param [String] quota_user
514-
# Available to use for quota purposes for server-side applications. Can be any
515-
# arbitrary string assigned to a user, but should not exceed 40 characters.
516-
# @param [Google::Apis::RequestOptions] options
517-
# Request-specific options
518-
#
519-
# @yield [result, err] Result & error if block supplied
520-
# @yieldparam result [Google::Apis::LookerV1::InstanceBackup] parsed result object
521-
# @yieldparam err [StandardError] error object if request failed
522-
#
523-
# @return [Google::Apis::LookerV1::InstanceBackup]
524-
#
525-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
526-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
527-
# @raise [Google::Apis::AuthorizationError] Authorization is required
528-
def get_project_location_instance_backup(name, fields: nil, quota_user: nil, options: nil, &block)
529-
command = make_simple_command(:get, 'v1/{+name}', options)
530-
command.response_representation = Google::Apis::LookerV1::InstanceBackup::Representation
531-
command.response_class = Google::Apis::LookerV1::InstanceBackup
532-
command.params['name'] = name unless name.nil?
533-
command.query['fields'] = fields unless fields.nil?
534-
command.query['quotaUser'] = quota_user unless quota_user.nil?
535-
execute_or_queue_command(command, &block)
536-
end
537-
538-
# List backups of Looker instance.
539-
# @param [String] parent
540-
# Required. Format: projects/`project`/locations/`location`/instances/`instance`.
541-
# @param [String] order_by
542-
# Sort results. Default order is "create_time desc". Other supported fields are "
543-
# state" and "expire_time". https://google.aip.dev/132#ordering
544-
# @param [Fixnum] page_size
545-
# The maximum number of instances to return.
546-
# @param [String] page_token
547-
# A page token received from a previous ListInstances request.
548-
# @param [String] fields
549-
# Selector specifying which fields to include in a partial response.
550-
# @param [String] quota_user
551-
# Available to use for quota purposes for server-side applications. Can be any
552-
# arbitrary string assigned to a user, but should not exceed 40 characters.
553-
# @param [Google::Apis::RequestOptions] options
554-
# Request-specific options
555-
#
556-
# @yield [result, err] Result & error if block supplied
557-
# @yieldparam result [Google::Apis::LookerV1::ListInstanceBackupsResponse] parsed result object
558-
# @yieldparam err [StandardError] error object if request failed
559-
#
560-
# @return [Google::Apis::LookerV1::ListInstanceBackupsResponse]
561-
#
562-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
563-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
564-
# @raise [Google::Apis::AuthorizationError] Authorization is required
565-
def list_project_location_instance_backups(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
566-
command = make_simple_command(:get, 'v1/{+parent}/backups', options)
567-
command.response_representation = Google::Apis::LookerV1::ListInstanceBackupsResponse::Representation
568-
command.response_class = Google::Apis::LookerV1::ListInstanceBackupsResponse
569-
command.params['parent'] = parent unless parent.nil?
570-
command.query['orderBy'] = order_by unless order_by.nil?
571-
command.query['pageSize'] = page_size unless page_size.nil?
572-
command.query['pageToken'] = page_token unless page_token.nil?
573-
command.query['fields'] = fields unless fields.nil?
574-
command.query['quotaUser'] = quota_user unless quota_user.nil?
575-
execute_or_queue_command(command, &block)
576-
end
577-
578409
# Starts asynchronous cancellation on a long-running operation. The server makes
579410
# a best effort to cancel the operation, but success is not guaranteed. If the
580411
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.

0 commit comments

Comments
 (0)