Skip to content

Commit 96195bf

Browse files
feat: Automated regeneration of observability v1 client (googleapis#25301)
Auto-created at 2025-12-21 10:33:45 +0000 using the toys pull request generator.
1 parent 3756731 commit 96195bf

File tree

6 files changed

+10
-271
lines changed

6 files changed

+10
-271
lines changed

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.12.0 (2025-12-21)
4+
5+
* Regenerated from discovery document revision 20251211
6+
37
### v0.11.0 (2025-12-14)
48

59
* Regenerated from discovery document revision 20251204

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ module Google
2121
module Apis
2222
# Observability API
2323
#
24-
#
24+
# Provides functionality for configuring the observability scope, which controls
25+
# the log, metric, and trace data that you can view.
2526
#
2627
# @see https://cloud.google.com/stackdriver/docs/
2728
module ObservabilityV1

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

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -347,50 +347,6 @@ def update!(**args)
347347
end
348348
end
349349

350-
# Describes the settings associated with a project, organization, or folder.
351-
class Settings
352-
include Google::Apis::Core::Hashable
353-
354-
# Optional. The location which should be used when any regional resources are
355-
# provisioned by GCP.
356-
# Corresponds to the JSON property `defaultStorageLocation`
357-
# @return [String]
358-
attr_accessor :default_storage_location
359-
360-
# Optional. The resource name for the configured Cloud KMS key. KMS key name
361-
# format: "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/
362-
# cryptoKeys/[KEY]" For example: `"projects/my-project/locations/us-central1/
363-
# keyRings/my-ring/cryptoKeys/my-key"`
364-
# Corresponds to the JSON property `kmsKeyName`
365-
# @return [String]
366-
attr_accessor :kms_key_name
367-
368-
# Identifier. The resource name of the settings.
369-
# Corresponds to the JSON property `name`
370-
# @return [String]
371-
attr_accessor :name
372-
373-
# Output only. The service account for the given resource container, such as
374-
# project or folder. This will be used by Cloud Observability to perform actions
375-
# in the container's project like access KMS keys or create Links. Always the
376-
# same service account per resource container regardless of region.
377-
# Corresponds to the JSON property `serviceAccountId`
378-
# @return [String]
379-
attr_accessor :service_account_id
380-
381-
def initialize(**args)
382-
update!(**args)
383-
end
384-
385-
# Update properties of this object
386-
def update!(**args)
387-
@default_storage_location = args[:default_storage_location] if args.key?(:default_storage_location)
388-
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
389-
@name = args[:name] if args.key?(:name)
390-
@service_account_id = args[:service_account_id] if args.key?(:service_account_id)
391-
end
392-
end
393-
394350
# The `Status` type defines a logical error model that is suitable for different
395351
# programming environments, including REST APIs and RPC APIs. It is used by [
396352
# 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.11.0"
19+
GEM_VERSION = "0.12.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 = "20251204"
25+
REVISION = "20251211"
2626
end
2727
end
2828
end

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,6 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
7676
include Google::Apis::Core::JsonObjectSupport
7777
end
7878

79-
class Settings
80-
class Representation < Google::Apis::Core::JsonRepresentation; end
81-
82-
include Google::Apis::Core::JsonObjectSupport
83-
end
84-
8579
class Status
8680
class Representation < Google::Apis::Core::JsonRepresentation; end
8781

@@ -180,16 +174,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
180174
end
181175
end
182176

183-
class Settings
184-
# @private
185-
class Representation < Google::Apis::Core::JsonRepresentation
186-
property :default_storage_location, as: 'defaultStorageLocation'
187-
property :kms_key_name, as: 'kmsKeyName'
188-
property :name, as: 'name'
189-
property :service_account_id, as: 'serviceAccountId'
190-
end
191-
end
192-
193177
class Status
194178
# @private
195179
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 2 additions & 208 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ module Apis
2222
module ObservabilityV1
2323
# Observability API
2424
#
25-
#
25+
# Provides functionality for configuring the observability scope, which controls
26+
# the log, metric, and trace data that you can view.
2627
#
2728
# @example
2829
# require 'google/apis/observability_v1'
@@ -51,144 +52,6 @@ def initialize
5152
@batch_path = 'batch'
5253
end
5354

54-
# Get Settings
55-
# @param [String] name
56-
# Required. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID]
57-
# /locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/
58-
# settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings"
59-
# @param [String] fields
60-
# Selector specifying which fields to include in a partial response.
61-
# @param [String] quota_user
62-
# Available to use for quota purposes for server-side applications. Can be any
63-
# arbitrary string assigned to a user, but should not exceed 40 characters.
64-
# @param [Google::Apis::RequestOptions] options
65-
# Request-specific options
66-
#
67-
# @yield [result, err] Result & error if block supplied
68-
# @yieldparam result [Google::Apis::ObservabilityV1::Settings] parsed result object
69-
# @yieldparam err [StandardError] error object if request failed
70-
#
71-
# @return [Google::Apis::ObservabilityV1::Settings]
72-
#
73-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75-
# @raise [Google::Apis::AuthorizationError] Authorization is required
76-
def get_folder_location_settings(name, fields: nil, quota_user: nil, options: nil, &block)
77-
command = make_simple_command(:get, 'v1/{+name}', options)
78-
command.response_representation = Google::Apis::ObservabilityV1::Settings::Representation
79-
command.response_class = Google::Apis::ObservabilityV1::Settings
80-
command.params['name'] = name unless name.nil?
81-
command.query['fields'] = fields unless fields.nil?
82-
command.query['quotaUser'] = quota_user unless quota_user.nil?
83-
execute_or_queue_command(command, &block)
84-
end
85-
86-
# Update Settings
87-
# @param [String] name
88-
# Identifier. The resource name of the settings.
89-
# @param [Google::Apis::ObservabilityV1::Settings] settings_object
90-
# @param [String] update_mask
91-
# Optional. The field mask specifying which fields of the settings are to be
92-
# updated.
93-
# @param [String] fields
94-
# Selector specifying which fields to include in a partial response.
95-
# @param [String] quota_user
96-
# Available to use for quota purposes for server-side applications. Can be any
97-
# arbitrary string assigned to a user, but should not exceed 40 characters.
98-
# @param [Google::Apis::RequestOptions] options
99-
# Request-specific options
100-
#
101-
# @yield [result, err] Result & error if block supplied
102-
# @yieldparam result [Google::Apis::ObservabilityV1::Operation] parsed result object
103-
# @yieldparam err [StandardError] error object if request failed
104-
#
105-
# @return [Google::Apis::ObservabilityV1::Operation]
106-
#
107-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
108-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
109-
# @raise [Google::Apis::AuthorizationError] Authorization is required
110-
def update_folder_location_settings(name, settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
111-
command = make_simple_command(:patch, 'v1/{+name}', options)
112-
command.request_representation = Google::Apis::ObservabilityV1::Settings::Representation
113-
command.request_object = settings_object
114-
command.response_representation = Google::Apis::ObservabilityV1::Operation::Representation
115-
command.response_class = Google::Apis::ObservabilityV1::Operation
116-
command.params['name'] = name unless name.nil?
117-
command.query['updateMask'] = update_mask unless update_mask.nil?
118-
command.query['fields'] = fields unless fields.nil?
119-
command.query['quotaUser'] = quota_user unless quota_user.nil?
120-
execute_or_queue_command(command, &block)
121-
end
122-
123-
# Get Settings
124-
# @param [String] name
125-
# Required. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID]
126-
# /locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/
127-
# settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings"
128-
# @param [String] fields
129-
# Selector specifying which fields to include in a partial response.
130-
# @param [String] quota_user
131-
# Available to use for quota purposes for server-side applications. Can be any
132-
# arbitrary string assigned to a user, but should not exceed 40 characters.
133-
# @param [Google::Apis::RequestOptions] options
134-
# Request-specific options
135-
#
136-
# @yield [result, err] Result & error if block supplied
137-
# @yieldparam result [Google::Apis::ObservabilityV1::Settings] parsed result object
138-
# @yieldparam err [StandardError] error object if request failed
139-
#
140-
# @return [Google::Apis::ObservabilityV1::Settings]
141-
#
142-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
143-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
144-
# @raise [Google::Apis::AuthorizationError] Authorization is required
145-
def get_organization_location_settings(name, fields: nil, quota_user: nil, options: nil, &block)
146-
command = make_simple_command(:get, 'v1/{+name}', options)
147-
command.response_representation = Google::Apis::ObservabilityV1::Settings::Representation
148-
command.response_class = Google::Apis::ObservabilityV1::Settings
149-
command.params['name'] = name unless name.nil?
150-
command.query['fields'] = fields unless fields.nil?
151-
command.query['quotaUser'] = quota_user unless quota_user.nil?
152-
execute_or_queue_command(command, &block)
153-
end
154-
155-
# Update Settings
156-
# @param [String] name
157-
# Identifier. The resource name of the settings.
158-
# @param [Google::Apis::ObservabilityV1::Settings] settings_object
159-
# @param [String] update_mask
160-
# Optional. The field mask specifying which fields of the settings are to be
161-
# updated.
162-
# @param [String] fields
163-
# Selector specifying which fields to include in a partial response.
164-
# @param [String] quota_user
165-
# Available to use for quota purposes for server-side applications. Can be any
166-
# arbitrary string assigned to a user, but should not exceed 40 characters.
167-
# @param [Google::Apis::RequestOptions] options
168-
# Request-specific options
169-
#
170-
# @yield [result, err] Result & error if block supplied
171-
# @yieldparam result [Google::Apis::ObservabilityV1::Operation] parsed result object
172-
# @yieldparam err [StandardError] error object if request failed
173-
#
174-
# @return [Google::Apis::ObservabilityV1::Operation]
175-
#
176-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
177-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
178-
# @raise [Google::Apis::AuthorizationError] Authorization is required
179-
def update_organization_location_settings(name, settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
180-
command = make_simple_command(:patch, 'v1/{+name}', options)
181-
command.request_representation = Google::Apis::ObservabilityV1::Settings::Representation
182-
command.request_object = settings_object
183-
command.response_representation = Google::Apis::ObservabilityV1::Operation::Representation
184-
command.response_class = Google::Apis::ObservabilityV1::Operation
185-
command.params['name'] = name unless name.nil?
186-
command.query['updateMask'] = update_mask unless update_mask.nil?
187-
command.query['fields'] = fields unless fields.nil?
188-
command.query['quotaUser'] = quota_user unless quota_user.nil?
189-
execute_or_queue_command(command, &block)
190-
end
191-
19255
# Gets information about a location.
19356
# @param [String] name
19457
# Resource name for the location.
@@ -219,38 +82,6 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
21982
execute_or_queue_command(command, &block)
22083
end
22184

222-
# Get Settings
223-
# @param [String] name
224-
# Required. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID]
225-
# /locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/
226-
# settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings"
227-
# @param [String] fields
228-
# Selector specifying which fields to include in a partial response.
229-
# @param [String] quota_user
230-
# Available to use for quota purposes for server-side applications. Can be any
231-
# arbitrary string assigned to a user, but should not exceed 40 characters.
232-
# @param [Google::Apis::RequestOptions] options
233-
# Request-specific options
234-
#
235-
# @yield [result, err] Result & error if block supplied
236-
# @yieldparam result [Google::Apis::ObservabilityV1::Settings] parsed result object
237-
# @yieldparam err [StandardError] error object if request failed
238-
#
239-
# @return [Google::Apis::ObservabilityV1::Settings]
240-
#
241-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
242-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
243-
# @raise [Google::Apis::AuthorizationError] Authorization is required
244-
def get_project_location_settings(name, fields: nil, quota_user: nil, options: nil, &block)
245-
command = make_simple_command(:get, 'v1/{+name}', options)
246-
command.response_representation = Google::Apis::ObservabilityV1::Settings::Representation
247-
command.response_class = Google::Apis::ObservabilityV1::Settings
248-
command.params['name'] = name unless name.nil?
249-
command.query['fields'] = fields unless fields.nil?
250-
command.query['quotaUser'] = quota_user unless quota_user.nil?
251-
execute_or_queue_command(command, &block)
252-
end
253-
25485
# Lists information about the supported locations for this service.
25586
# @param [String] name
25687
# The resource that owns the locations collection, if applicable.
@@ -298,43 +129,6 @@ def list_project_locations(name, extra_location_types: nil, filter: nil, page_si
298129
execute_or_queue_command(command, &block)
299130
end
300131

301-
# Update Settings
302-
# @param [String] name
303-
# Identifier. The resource name of the settings.
304-
# @param [Google::Apis::ObservabilityV1::Settings] settings_object
305-
# @param [String] update_mask
306-
# Optional. The field mask specifying which fields of the settings are to be
307-
# updated.
308-
# @param [String] fields
309-
# Selector specifying which fields to include in a partial response.
310-
# @param [String] quota_user
311-
# Available to use for quota purposes for server-side applications. Can be any
312-
# arbitrary string assigned to a user, but should not exceed 40 characters.
313-
# @param [Google::Apis::RequestOptions] options
314-
# Request-specific options
315-
#
316-
# @yield [result, err] Result & error if block supplied
317-
# @yieldparam result [Google::Apis::ObservabilityV1::Operation] parsed result object
318-
# @yieldparam err [StandardError] error object if request failed
319-
#
320-
# @return [Google::Apis::ObservabilityV1::Operation]
321-
#
322-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
323-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
324-
# @raise [Google::Apis::AuthorizationError] Authorization is required
325-
def update_project_location_settings(name, settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
326-
command = make_simple_command(:patch, 'v1/{+name}', options)
327-
command.request_representation = Google::Apis::ObservabilityV1::Settings::Representation
328-
command.request_object = settings_object
329-
command.response_representation = Google::Apis::ObservabilityV1::Operation::Representation
330-
command.response_class = Google::Apis::ObservabilityV1::Operation
331-
command.params['name'] = name unless name.nil?
332-
command.query['updateMask'] = update_mask unless update_mask.nil?
333-
command.query['fields'] = fields unless fields.nil?
334-
command.query['quotaUser'] = quota_user unless quota_user.nil?
335-
execute_or_queue_command(command, &block)
336-
end
337-
338132
# Starts asynchronous cancellation on a long-running operation. The server makes
339133
# a best effort to cancel the operation, but success is not guaranteed. If the
340134
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.

0 commit comments

Comments
 (0)