Skip to content

Commit f1cd045

Browse files
feat: Automated regeneration of observability v1 client (#25827)
Auto-created at 2026-03-01 09:47:18 +0000 using the toys pull request generator.
1 parent 609b011 commit f1cd045

5 files changed

Lines changed: 273 additions & 2 deletions

File tree

generated/google-apis-observability_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-observability_v1
22

3+
### v0.15.0 (2026-03-01)
4+
5+
* Regenerated from discovery document revision 20260220
6+
37
### v0.14.0 (2026-02-08)
48

59
* Regenerated from discovery document revision 20260129

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

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,50 @@ def update!(**args)
642642
end
643643
end
644644

645+
# Describes the settings associated with a project, organization, or folder.
646+
class Settings
647+
include Google::Apis::Core::Hashable
648+
649+
# Optional. The location which should be used when any regional resources are
650+
# provisioned by Google Cloud.
651+
# Corresponds to the JSON property `defaultStorageLocation`
652+
# @return [String]
653+
attr_accessor :default_storage_location
654+
655+
# Optional. The resource name for the configured Cloud KMS key. KMS key name
656+
# format: "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/
657+
# cryptoKeys/[KEY]" For example: `"projects/my-project/locations/us-central1/
658+
# keyRings/my-ring/cryptoKeys/my-key"`
659+
# Corresponds to the JSON property `kmsKeyName`
660+
# @return [String]
661+
attr_accessor :kms_key_name
662+
663+
# Identifier. The resource name of the settings.
664+
# Corresponds to the JSON property `name`
665+
# @return [String]
666+
attr_accessor :name
667+
668+
# Output only. The service account for the given resource container, such as
669+
# project or folder. This will be used by Cloud Observability to perform actions
670+
# in the container's project like access KMS keys or create Links. Always the
671+
# same service account per resource container regardless of region.
672+
# Corresponds to the JSON property `serviceAccountId`
673+
# @return [String]
674+
attr_accessor :service_account_id
675+
676+
def initialize(**args)
677+
update!(**args)
678+
end
679+
680+
# Update properties of this object
681+
def update!(**args)
682+
@default_storage_location = args[:default_storage_location] if args.key?(:default_storage_location)
683+
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
684+
@name = args[:name] if args.key?(:name)
685+
@service_account_id = args[:service_account_id] if args.key?(:service_account_id)
686+
end
687+
end
688+
645689
# The `Status` type defines a logical error model that is suitable for different
646690
# programming environments, including REST APIs and RPC APIs. It is used by [
647691
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of

generated/google-apis-observability_v1/lib/google/apis/observability_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 ObservabilityV1
1818
# Version of the google-apis-observability_v1 gem
19-
GEM_VERSION = "0.14.0"
19+
GEM_VERSION = "0.15.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 = "20260129"
25+
REVISION = "20260220"
2626
end
2727
end
2828
end

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
124124
include Google::Apis::Core::JsonObjectSupport
125125
end
126126

127+
class Settings
128+
class Representation < Google::Apis::Core::JsonRepresentation; end
129+
130+
include Google::Apis::Core::JsonObjectSupport
131+
end
132+
127133
class Status
128134
class Representation < Google::Apis::Core::JsonRepresentation; end
129135

@@ -310,6 +316,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
310316
end
311317
end
312318

319+
class Settings
320+
# @private
321+
class Representation < Google::Apis::Core::JsonRepresentation
322+
property :default_storage_location, as: 'defaultStorageLocation'
323+
property :kms_key_name, as: 'kmsKeyName'
324+
property :name, as: 'name'
325+
property :service_account_id, as: 'serviceAccountId'
326+
end
327+
end
328+
313329
class Status
314330
# @private
315331
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,38 @@ def get_folder_location(name, fields: nil, quota_user: nil, options: nil, &block
8282
execute_or_queue_command(command, &block)
8383
end
8484

85+
# Get Settings
86+
# @param [String] name
87+
# Required. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID]
88+
# /locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/
89+
# settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings"
90+
# @param [String] fields
91+
# Selector specifying which fields to include in a partial response.
92+
# @param [String] quota_user
93+
# Available to use for quota purposes for server-side applications. Can be any
94+
# arbitrary string assigned to a user, but should not exceed 40 characters.
95+
# @param [Google::Apis::RequestOptions] options
96+
# Request-specific options
97+
#
98+
# @yield [result, err] Result & error if block supplied
99+
# @yieldparam result [Google::Apis::ObservabilityV1::Settings] parsed result object
100+
# @yieldparam err [StandardError] error object if request failed
101+
#
102+
# @return [Google::Apis::ObservabilityV1::Settings]
103+
#
104+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
105+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
106+
# @raise [Google::Apis::AuthorizationError] Authorization is required
107+
def get_folder_location_settings(name, fields: nil, quota_user: nil, options: nil, &block)
108+
command = make_simple_command(:get, 'v1/{+name}', options)
109+
command.response_representation = Google::Apis::ObservabilityV1::Settings::Representation
110+
command.response_class = Google::Apis::ObservabilityV1::Settings
111+
command.params['name'] = name unless name.nil?
112+
command.query['fields'] = fields unless fields.nil?
113+
command.query['quotaUser'] = quota_user unless quota_user.nil?
114+
execute_or_queue_command(command, &block)
115+
end
116+
85117
# Lists information about the supported locations for this service. This method
86118
# can be called in two ways: * **List all public locations:** Use the path `GET /
87119
# v1/locations`. * **List project-visible locations:** Use the path `GET /v1/
@@ -133,6 +165,43 @@ def list_folder_locations(name, extra_location_types: nil, filter: nil, page_siz
133165
execute_or_queue_command(command, &block)
134166
end
135167

168+
# Update Settings
169+
# @param [String] name
170+
# Identifier. The resource name of the settings.
171+
# @param [Google::Apis::ObservabilityV1::Settings] settings_object
172+
# @param [String] update_mask
173+
# Optional. The field mask specifying which fields of the settings are to be
174+
# updated.
175+
# @param [String] fields
176+
# Selector specifying which fields to include in a partial response.
177+
# @param [String] quota_user
178+
# Available to use for quota purposes for server-side applications. Can be any
179+
# arbitrary string assigned to a user, but should not exceed 40 characters.
180+
# @param [Google::Apis::RequestOptions] options
181+
# Request-specific options
182+
#
183+
# @yield [result, err] Result & error if block supplied
184+
# @yieldparam result [Google::Apis::ObservabilityV1::Operation] parsed result object
185+
# @yieldparam err [StandardError] error object if request failed
186+
#
187+
# @return [Google::Apis::ObservabilityV1::Operation]
188+
#
189+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
190+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
191+
# @raise [Google::Apis::AuthorizationError] Authorization is required
192+
def update_folder_location_settings(name, settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
193+
command = make_simple_command(:patch, 'v1/{+name}', options)
194+
command.request_representation = Google::Apis::ObservabilityV1::Settings::Representation
195+
command.request_object = settings_object
196+
command.response_representation = Google::Apis::ObservabilityV1::Operation::Representation
197+
command.response_class = Google::Apis::ObservabilityV1::Operation
198+
command.params['name'] = name unless name.nil?
199+
command.query['updateMask'] = update_mask unless update_mask.nil?
200+
command.query['fields'] = fields unless fields.nil?
201+
command.query['quotaUser'] = quota_user unless quota_user.nil?
202+
execute_or_queue_command(command, &block)
203+
end
204+
136205
# Starts asynchronous cancellation on a long-running operation. The server makes
137206
# a best effort to cancel the operation, but success is not guaranteed. If the
138207
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -316,6 +385,38 @@ def get_organization_location(name, fields: nil, quota_user: nil, options: nil,
316385
execute_or_queue_command(command, &block)
317386
end
318387

388+
# Get Settings
389+
# @param [String] name
390+
# Required. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID]
391+
# /locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/
392+
# settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings"
393+
# @param [String] fields
394+
# Selector specifying which fields to include in a partial response.
395+
# @param [String] quota_user
396+
# Available to use for quota purposes for server-side applications. Can be any
397+
# arbitrary string assigned to a user, but should not exceed 40 characters.
398+
# @param [Google::Apis::RequestOptions] options
399+
# Request-specific options
400+
#
401+
# @yield [result, err] Result & error if block supplied
402+
# @yieldparam result [Google::Apis::ObservabilityV1::Settings] parsed result object
403+
# @yieldparam err [StandardError] error object if request failed
404+
#
405+
# @return [Google::Apis::ObservabilityV1::Settings]
406+
#
407+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
408+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
409+
# @raise [Google::Apis::AuthorizationError] Authorization is required
410+
def get_organization_location_settings(name, fields: nil, quota_user: nil, options: nil, &block)
411+
command = make_simple_command(:get, 'v1/{+name}', options)
412+
command.response_representation = Google::Apis::ObservabilityV1::Settings::Representation
413+
command.response_class = Google::Apis::ObservabilityV1::Settings
414+
command.params['name'] = name unless name.nil?
415+
command.query['fields'] = fields unless fields.nil?
416+
command.query['quotaUser'] = quota_user unless quota_user.nil?
417+
execute_or_queue_command(command, &block)
418+
end
419+
319420
# Lists information about the supported locations for this service. This method
320421
# can be called in two ways: * **List all public locations:** Use the path `GET /
321422
# v1/locations`. * **List project-visible locations:** Use the path `GET /v1/
@@ -367,6 +468,43 @@ def list_organization_locations(name, extra_location_types: nil, filter: nil, pa
367468
execute_or_queue_command(command, &block)
368469
end
369470

471+
# Update Settings
472+
# @param [String] name
473+
# Identifier. The resource name of the settings.
474+
# @param [Google::Apis::ObservabilityV1::Settings] settings_object
475+
# @param [String] update_mask
476+
# Optional. The field mask specifying which fields of the settings are to be
477+
# updated.
478+
# @param [String] fields
479+
# Selector specifying which fields to include in a partial response.
480+
# @param [String] quota_user
481+
# Available to use for quota purposes for server-side applications. Can be any
482+
# arbitrary string assigned to a user, but should not exceed 40 characters.
483+
# @param [Google::Apis::RequestOptions] options
484+
# Request-specific options
485+
#
486+
# @yield [result, err] Result & error if block supplied
487+
# @yieldparam result [Google::Apis::ObservabilityV1::Operation] parsed result object
488+
# @yieldparam err [StandardError] error object if request failed
489+
#
490+
# @return [Google::Apis::ObservabilityV1::Operation]
491+
#
492+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
493+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
494+
# @raise [Google::Apis::AuthorizationError] Authorization is required
495+
def update_organization_location_settings(name, settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
496+
command = make_simple_command(:patch, 'v1/{+name}', options)
497+
command.request_representation = Google::Apis::ObservabilityV1::Settings::Representation
498+
command.request_object = settings_object
499+
command.response_representation = Google::Apis::ObservabilityV1::Operation::Representation
500+
command.response_class = Google::Apis::ObservabilityV1::Operation
501+
command.params['name'] = name unless name.nil?
502+
command.query['updateMask'] = update_mask unless update_mask.nil?
503+
command.query['fields'] = fields unless fields.nil?
504+
command.query['quotaUser'] = quota_user unless quota_user.nil?
505+
execute_or_queue_command(command, &block)
506+
end
507+
370508
# Starts asynchronous cancellation on a long-running operation. The server makes
371509
# a best effort to cancel the operation, but success is not guaranteed. If the
372510
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -550,6 +688,38 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
550688
execute_or_queue_command(command, &block)
551689
end
552690

691+
# Get Settings
692+
# @param [String] name
693+
# Required. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID]
694+
# /locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/
695+
# settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings"
696+
# @param [String] fields
697+
# Selector specifying which fields to include in a partial response.
698+
# @param [String] quota_user
699+
# Available to use for quota purposes for server-side applications. Can be any
700+
# arbitrary string assigned to a user, but should not exceed 40 characters.
701+
# @param [Google::Apis::RequestOptions] options
702+
# Request-specific options
703+
#
704+
# @yield [result, err] Result & error if block supplied
705+
# @yieldparam result [Google::Apis::ObservabilityV1::Settings] parsed result object
706+
# @yieldparam err [StandardError] error object if request failed
707+
#
708+
# @return [Google::Apis::ObservabilityV1::Settings]
709+
#
710+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
711+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
712+
# @raise [Google::Apis::AuthorizationError] Authorization is required
713+
def get_project_location_settings(name, fields: nil, quota_user: nil, options: nil, &block)
714+
command = make_simple_command(:get, 'v1/{+name}', options)
715+
command.response_representation = Google::Apis::ObservabilityV1::Settings::Representation
716+
command.response_class = Google::Apis::ObservabilityV1::Settings
717+
command.params['name'] = name unless name.nil?
718+
command.query['fields'] = fields unless fields.nil?
719+
command.query['quotaUser'] = quota_user unless quota_user.nil?
720+
execute_or_queue_command(command, &block)
721+
end
722+
553723
# Lists information about the supported locations for this service. This method
554724
# can be called in two ways: * **List all public locations:** Use the path `GET /
555725
# v1/locations`. * **List project-visible locations:** Use the path `GET /v1/
@@ -601,6 +771,43 @@ def list_project_locations(name, extra_location_types: nil, filter: nil, page_si
601771
execute_or_queue_command(command, &block)
602772
end
603773

774+
# Update Settings
775+
# @param [String] name
776+
# Identifier. The resource name of the settings.
777+
# @param [Google::Apis::ObservabilityV1::Settings] settings_object
778+
# @param [String] update_mask
779+
# Optional. The field mask specifying which fields of the settings are to be
780+
# updated.
781+
# @param [String] fields
782+
# Selector specifying which fields to include in a partial response.
783+
# @param [String] quota_user
784+
# Available to use for quota purposes for server-side applications. Can be any
785+
# arbitrary string assigned to a user, but should not exceed 40 characters.
786+
# @param [Google::Apis::RequestOptions] options
787+
# Request-specific options
788+
#
789+
# @yield [result, err] Result & error if block supplied
790+
# @yieldparam result [Google::Apis::ObservabilityV1::Operation] parsed result object
791+
# @yieldparam err [StandardError] error object if request failed
792+
#
793+
# @return [Google::Apis::ObservabilityV1::Operation]
794+
#
795+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
796+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
797+
# @raise [Google::Apis::AuthorizationError] Authorization is required
798+
def update_project_location_settings(name, settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
799+
command = make_simple_command(:patch, 'v1/{+name}', options)
800+
command.request_representation = Google::Apis::ObservabilityV1::Settings::Representation
801+
command.request_object = settings_object
802+
command.response_representation = Google::Apis::ObservabilityV1::Operation::Representation
803+
command.response_class = Google::Apis::ObservabilityV1::Operation
804+
command.params['name'] = name unless name.nil?
805+
command.query['updateMask'] = update_mask unless update_mask.nil?
806+
command.query['fields'] = fields unless fields.nil?
807+
command.query['quotaUser'] = quota_user unless quota_user.nil?
808+
execute_or_queue_command(command, &block)
809+
end
810+
604811
# Get bucket resource.
605812
# @param [String] name
606813
# Required. Name of the bucket to retrieve. The format is: projects/[PROJECT_ID]/

0 commit comments

Comments
 (0)