Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions generated/google-apis-observability_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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`.
Expand Down