Skip to content

Commit 450d5c5

Browse files
feat: Automated regeneration of looker v1 client
1 parent f4394ce commit 450d5c5

File tree

6 files changed

+21
-84
lines changed

6 files changed

+21
-84
lines changed

api_names_out.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303142,6 +303142,7 @@
303142303142
"/looker:v1/OAuthConfig": o_auth_config
303143303143
"/looker:v1/OAuthConfig/clientId": client_id
303144303144
"/looker:v1/OAuthConfig/clientSecret": client_secret
303145+
"/looker:v1/OAuthConfig/sharedOauthClientEnabled": shared_oauth_client_enabled
303145303146
"/looker:v1/Operation": operation
303146303147
"/looker:v1/Operation/done": done
303147303148
"/looker:v1/Operation/error": error

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.27.0 (2026-03-15)
4+
5+
* Regenerated from discovery document revision 20260216
6+
37
### v0.26.0 (2026-02-01)
48

59
* Regenerated from discovery document revision 20260119

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

Lines changed: 8 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -410,13 +410,6 @@ class Instance
410410
# @return [Google::Apis::LookerV1::AdminSettings]
411411
attr_accessor :admin_settings
412412

413-
# Optional. Indicates whether catalog integration is enabled for the Looker
414-
# instance.
415-
# Corresponds to the JSON property `catalogIntegrationEnabled`
416-
# @return [Boolean]
417-
attr_accessor :catalog_integration_enabled
418-
alias_method :catalog_integration_enabled?, :catalog_integration_enabled
419-
420413
# Optional. Storage class of the instance.
421414
# Corresponds to the JSON property `classType`
422415
# @return [String]
@@ -584,21 +577,11 @@ class Instance
584577
attr_accessor :satisfies_pzs
585578
alias_method :satisfies_pzs?, :satisfies_pzs
586579

587-
# Output only. The reason for the instance being in a soft-deleted state.
588-
# Corresponds to the JSON property `softDeleteReason`
589-
# @return [String]
590-
attr_accessor :soft_delete_reason
591-
592580
# Output only. The state of the instance.
593581
# Corresponds to the JSON property `state`
594582
# @return [String]
595583
attr_accessor :state
596584

597-
# Output only. The time when the Looker instance was suspended (soft deleted).
598-
# Corresponds to the JSON property `suspendedTime`
599-
# @return [String]
600-
attr_accessor :suspended_time
601-
602585
# Output only. The time when the Looker instance was last updated.
603586
# Corresponds to the JSON property `updateTime`
604587
# @return [String]
@@ -616,7 +599,6 @@ def initialize(**args)
616599
# Update properties of this object
617600
def update!(**args)
618601
@admin_settings = args[:admin_settings] if args.key?(:admin_settings)
619-
@catalog_integration_enabled = args[:catalog_integration_enabled] if args.key?(:catalog_integration_enabled)
620602
@class_type = args[:class_type] if args.key?(:class_type)
621603
@consumer_network = args[:consumer_network] if args.key?(:consumer_network)
622604
@controlled_egress_config = args[:controlled_egress_config] if args.key?(:controlled_egress_config)
@@ -647,9 +629,7 @@ def update!(**args)
647629
@reserved_range = args[:reserved_range] if args.key?(:reserved_range)
648630
@satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
649631
@satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
650-
@soft_delete_reason = args[:soft_delete_reason] if args.key?(:soft_delete_reason)
651632
@state = args[:state] if args.key?(:state)
652-
@suspended_time = args[:suspended_time] if args.key?(:suspended_time)
653633
@update_time = args[:update_time] if args.key?(:update_time)
654634
@user_metadata = args[:user_metadata] if args.key?(:user_metadata)
655635
end
@@ -940,6 +920,13 @@ class OAuthConfig
940920
# @return [String]
941921
attr_accessor :client_secret
942922

923+
# Optional. Whether to use the shared OAuth client. Instances specifying this
924+
# field do not need to provide client_id and client_secret.
925+
# Corresponds to the JSON property `sharedOauthClientEnabled`
926+
# @return [Boolean]
927+
attr_accessor :shared_oauth_client_enabled
928+
alias_method :shared_oauth_client_enabled?, :shared_oauth_client_enabled
929+
943930
def initialize(**args)
944931
update!(**args)
945932
end
@@ -948,6 +935,7 @@ def initialize(**args)
948935
def update!(**args)
949936
@client_id = args[:client_id] if args.key?(:client_id)
950937
@client_secret = args[:client_secret] if args.key?(:client_secret)
938+
@shared_oauth_client_enabled = args[:shared_oauth_client_enabled] if args.key?(:shared_oauth_client_enabled)
951939
end
952940
end
953941

@@ -1303,19 +1291,6 @@ def update!(**args)
13031291
end
13041292
end
13051293

1306-
# Request options for undeleting an instance.
1307-
class UndeleteInstanceRequest
1308-
include Google::Apis::Core::Hashable
1309-
1310-
def initialize(**args)
1311-
update!(**args)
1312-
end
1313-
1314-
# Update properties of this object
1315-
def update!(**args)
1316-
end
1317-
end
1318-
13191294
# Metadata about users for a Looker instance.
13201295
class UserMetadata
13211296
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.26.0"
19+
GEM_VERSION = "0.27.0"
2020

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

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

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

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,6 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
214214
include Google::Apis::Core::JsonObjectSupport
215215
end
216216

217-
class UndeleteInstanceRequest
218-
class Representation < Google::Apis::Core::JsonRepresentation; end
219-
220-
include Google::Apis::Core::JsonObjectSupport
221-
end
222-
223217
class UserMetadata
224218
class Representation < Google::Apis::Core::JsonRepresentation; end
225219

@@ -342,7 +336,6 @@ class Instance
342336
class Representation < Google::Apis::Core::JsonRepresentation
343337
property :admin_settings, as: 'adminSettings', class: Google::Apis::LookerV1::AdminSettings, decorator: Google::Apis::LookerV1::AdminSettings::Representation
344338

345-
property :catalog_integration_enabled, as: 'catalogIntegrationEnabled'
346339
property :class_type, as: 'classType'
347340
property :consumer_network, as: 'consumerNetwork'
348341
property :controlled_egress_config, as: 'controlledEgressConfig', class: Google::Apis::LookerV1::ControlledEgressConfig, decorator: Google::Apis::LookerV1::ControlledEgressConfig::Representation
@@ -383,9 +376,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
383376
property :reserved_range, as: 'reservedRange'
384377
property :satisfies_pzi, as: 'satisfiesPzi'
385378
property :satisfies_pzs, as: 'satisfiesPzs'
386-
property :soft_delete_reason, as: 'softDeleteReason'
387379
property :state, as: 'state'
388-
property :suspended_time, as: 'suspendedTime'
389380
property :update_time, as: 'updateTime'
390381
property :user_metadata, as: 'userMetadata', class: Google::Apis::LookerV1::UserMetadata, decorator: Google::Apis::LookerV1::UserMetadata::Representation
391382

@@ -476,6 +467,7 @@ class OAuthConfig
476467
class Representation < Google::Apis::Core::JsonRepresentation
477468
property :client_id, as: 'clientId'
478469
property :client_secret, as: 'clientSecret'
470+
property :shared_oauth_client_enabled, as: 'sharedOauthClientEnabled'
479471
end
480472
end
481473

@@ -567,12 +559,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
567559
end
568560
end
569561

570-
class UndeleteInstanceRequest
571-
# @private
572-
class Representation < Google::Apis::Core::JsonRepresentation
573-
end
574-
end
575-
576562
class UserMetadata
577563
# @private
578564
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
8181
execute_or_queue_command(command, &block)
8282
end
8383

84-
# Lists information about the supported locations for this service.
84+
# Lists information about the supported locations for this service. This method
85+
# can be called in two ways: * **List all public locations:** Use the path `GET /
86+
# v1/locations`. * **List project-visible locations:** Use the path `GET /v1/
87+
# projects/`project_id`/locations`. This may include public locations as well as
88+
# private or other locations specifically visible to the project.
8589
# @param [String] name
8690
# The resource that owns the locations collection, if applicable.
8791
# @param [Array<String>, String] extra_location_types
@@ -444,39 +448,6 @@ def restore_instance(name, restore_instance_request_object = nil, fields: nil, q
444448
execute_or_queue_command(command, &block)
445449
end
446450

447-
# Undeletes Looker instance.
448-
# @param [String] name
449-
# Required. Format: projects/`project`/locations/`location`/instances/`instance`
450-
# @param [Google::Apis::LookerV1::UndeleteInstanceRequest] undelete_instance_request_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 undelete_instance(name, undelete_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
469-
command = make_simple_command(:post, 'v1/{+name}:undelete', options)
470-
command.request_representation = Google::Apis::LookerV1::UndeleteInstanceRequest::Representation
471-
command.request_object = undelete_instance_request_object
472-
command.response_representation = Google::Apis::LookerV1::Operation::Representation
473-
command.response_class = Google::Apis::LookerV1::Operation
474-
command.params['name'] = name unless name.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-
480451
# Backup Looker instance.
481452
# @param [String] parent
482453
# Required. Format: projects/`project`/locations/`location`/instances/`instance`

0 commit comments

Comments
 (0)