From 1dce7d0703306ed5db2694db191f15395951321f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 21 Dec 2025 10:33:45 +0000 Subject: [PATCH] feat: Automated regeneration of observability v1 client --- .../google-apis-observability_v1/CHANGELOG.md | 4 + .../lib/google/apis/observability_v1.rb | 3 +- .../google/apis/observability_v1/classes.rb | 44 ---- .../apis/observability_v1/gem_version.rb | 4 +- .../apis/observability_v1/representations.rb | 16 -- .../google/apis/observability_v1/service.rb | 210 +----------------- 6 files changed, 10 insertions(+), 271 deletions(-) diff --git a/generated/google-apis-observability_v1/CHANGELOG.md b/generated/google-apis-observability_v1/CHANGELOG.md index a647fb0beb6..b29389bfa6f 100644 --- a/generated/google-apis-observability_v1/CHANGELOG.md +++ b/generated/google-apis-observability_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-observability_v1 +### v0.12.0 (2025-12-21) + +* Regenerated from discovery document revision 20251211 + ### v0.11.0 (2025-12-14) * Regenerated from discovery document revision 20251204 diff --git a/generated/google-apis-observability_v1/lib/google/apis/observability_v1.rb b/generated/google-apis-observability_v1/lib/google/apis/observability_v1.rb index af1a7f38905..cf59ab35aff 100644 --- a/generated/google-apis-observability_v1/lib/google/apis/observability_v1.rb +++ b/generated/google-apis-observability_v1/lib/google/apis/observability_v1.rb @@ -21,7 +21,8 @@ module Google module Apis # Observability API # - # + # Provides functionality for configuring the observability scope, which controls + # the log, metric, and trace data that you can view. # # @see https://cloud.google.com/stackdriver/docs/ module ObservabilityV1 diff --git a/generated/google-apis-observability_v1/lib/google/apis/observability_v1/classes.rb b/generated/google-apis-observability_v1/lib/google/apis/observability_v1/classes.rb index 3d58cc527c3..0e028df5211 100644 --- a/generated/google-apis-observability_v1/lib/google/apis/observability_v1/classes.rb +++ b/generated/google-apis-observability_v1/lib/google/apis/observability_v1/classes.rb @@ -347,50 +347,6 @@ def update!(**args) end end - # Describes the settings associated with a project, organization, or folder. - class Settings - include Google::Apis::Core::Hashable - - # Optional. The location which should be used when any regional resources are - # provisioned by GCP. - # Corresponds to the JSON property `defaultStorageLocation` - # @return [String] - attr_accessor :default_storage_location - - # Optional. The resource name for the configured Cloud KMS key. KMS key name - # format: "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/ - # cryptoKeys/[KEY]" For example: `"projects/my-project/locations/us-central1/ - # keyRings/my-ring/cryptoKeys/my-key"` - # Corresponds to the JSON property `kmsKeyName` - # @return [String] - attr_accessor :kms_key_name - - # Identifier. The resource name of the settings. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Output only. The service account for the given resource container, such as - # project or folder. This will be used by Cloud Observability to perform actions - # in the container's project like access KMS keys or create Links. Always the - # same service account per resource container regardless of region. - # Corresponds to the JSON property `serviceAccountId` - # @return [String] - attr_accessor :service_account_id - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @default_storage_location = args[:default_storage_location] if args.key?(:default_storage_location) - @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name) - @name = args[:name] if args.key?(:name) - @service_account_id = args[:service_account_id] if args.key?(:service_account_id) - end - end - # The `Status` type defines a logical error model that is suitable for different # programming environments, including REST APIs and RPC APIs. It is used by [ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of diff --git a/generated/google-apis-observability_v1/lib/google/apis/observability_v1/gem_version.rb b/generated/google-apis-observability_v1/lib/google/apis/observability_v1/gem_version.rb index ec19c60991b..56070987edd 100644 --- a/generated/google-apis-observability_v1/lib/google/apis/observability_v1/gem_version.rb +++ b/generated/google-apis-observability_v1/lib/google/apis/observability_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module ObservabilityV1 # Version of the google-apis-observability_v1 gem - GEM_VERSION = "0.11.0" + GEM_VERSION = "0.12.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20251204" + REVISION = "20251211" end end end diff --git a/generated/google-apis-observability_v1/lib/google/apis/observability_v1/representations.rb b/generated/google-apis-observability_v1/lib/google/apis/observability_v1/representations.rb index 468ce313a12..7cf6aef50c1 100644 --- a/generated/google-apis-observability_v1/lib/google/apis/observability_v1/representations.rb +++ b/generated/google-apis-observability_v1/lib/google/apis/observability_v1/representations.rb @@ -76,12 +76,6 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class Settings - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Status class Representation < Google::Apis::Core::JsonRepresentation; end @@ -180,16 +174,6 @@ class Representation < Google::Apis::Core::JsonRepresentation end end - class Settings - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :default_storage_location, as: 'defaultStorageLocation' - property :kms_key_name, as: 'kmsKeyName' - property :name, as: 'name' - property :service_account_id, as: 'serviceAccountId' - end - end - class Status # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-observability_v1/lib/google/apis/observability_v1/service.rb b/generated/google-apis-observability_v1/lib/google/apis/observability_v1/service.rb index 1cdf80c0b36..27b0ce5cc6e 100644 --- a/generated/google-apis-observability_v1/lib/google/apis/observability_v1/service.rb +++ b/generated/google-apis-observability_v1/lib/google/apis/observability_v1/service.rb @@ -22,7 +22,8 @@ module Apis module ObservabilityV1 # Observability API # - # + # Provides functionality for configuring the observability scope, which controls + # the log, metric, and trace data that you can view. # # @example # require 'google/apis/observability_v1' @@ -51,144 +52,6 @@ def initialize @batch_path = 'batch' end - # Get Settings - # @param [String] name - # Required. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID] - # /locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/ - # settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings" - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ObservabilityV1::Settings] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ObservabilityV1::Settings] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_folder_location_settings(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) - command.response_representation = Google::Apis::ObservabilityV1::Settings::Representation - command.response_class = Google::Apis::ObservabilityV1::Settings - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Update Settings - # @param [String] name - # Identifier. The resource name of the settings. - # @param [Google::Apis::ObservabilityV1::Settings] settings_object - # @param [String] update_mask - # Optional. The field mask specifying which fields of the settings are to be - # updated. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ObservabilityV1::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ObservabilityV1::Operation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_folder_location_settings(name, settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1/{+name}', options) - command.request_representation = Google::Apis::ObservabilityV1::Settings::Representation - command.request_object = settings_object - command.response_representation = Google::Apis::ObservabilityV1::Operation::Representation - command.response_class = Google::Apis::ObservabilityV1::Operation - command.params['name'] = name unless name.nil? - command.query['updateMask'] = update_mask unless update_mask.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Get Settings - # @param [String] name - # Required. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID] - # /locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/ - # settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings" - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ObservabilityV1::Settings] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ObservabilityV1::Settings] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_organization_location_settings(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) - command.response_representation = Google::Apis::ObservabilityV1::Settings::Representation - command.response_class = Google::Apis::ObservabilityV1::Settings - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Update Settings - # @param [String] name - # Identifier. The resource name of the settings. - # @param [Google::Apis::ObservabilityV1::Settings] settings_object - # @param [String] update_mask - # Optional. The field mask specifying which fields of the settings are to be - # updated. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ObservabilityV1::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ObservabilityV1::Operation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_organization_location_settings(name, settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1/{+name}', options) - command.request_representation = Google::Apis::ObservabilityV1::Settings::Representation - command.request_object = settings_object - command.response_representation = Google::Apis::ObservabilityV1::Operation::Representation - command.response_class = Google::Apis::ObservabilityV1::Operation - command.params['name'] = name unless name.nil? - command.query['updateMask'] = update_mask unless update_mask.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Gets information about a location. # @param [String] name # Resource name for the location. @@ -219,38 +82,6 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc execute_or_queue_command(command, &block) end - # Get Settings - # @param [String] name - # Required. Name of the settings to retrieve. Name format: "projects/[PROJECT_ID] - # /locations/[LOCATION]/settings" "folders/[FOLDER_ID]/locations/[LOCATION]/ - # settings" "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings" - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ObservabilityV1::Settings] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ObservabilityV1::Settings] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_project_location_settings(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1/{+name}', options) - command.response_representation = Google::Apis::ObservabilityV1::Settings::Representation - command.response_class = Google::Apis::ObservabilityV1::Settings - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Lists information about the supported locations for this service. # @param [String] name # 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 execute_or_queue_command(command, &block) end - # Update Settings - # @param [String] name - # Identifier. The resource name of the settings. - # @param [Google::Apis::ObservabilityV1::Settings] settings_object - # @param [String] update_mask - # Optional. The field mask specifying which fields of the settings are to be - # updated. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ObservabilityV1::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ObservabilityV1::Operation] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_project_location_settings(name, settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:patch, 'v1/{+name}', options) - command.request_representation = Google::Apis::ObservabilityV1::Settings::Representation - command.request_object = settings_object - command.response_representation = Google::Apis::ObservabilityV1::Operation::Representation - command.response_class = Google::Apis::ObservabilityV1::Operation - command.params['name'] = name unless name.nil? - command.query['updateMask'] = update_mask unless update_mask.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - # Starts asynchronous cancellation on a long-running operation. The server makes # a best effort to cancel the operation, but success is not guaranteed. If the # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.