lib/oci/identity/identity_client.rb
# Assembles tag defaults in the specified compartment and any parent compartments to determine
# the tags to apply. Tag defaults from parent compartments do not override tag defaults
# referencing the same tag in a compartment lower down the hierarchy. This set of tag defaults
# includes all tag defaults from the current compartment back to the root compartment.
#
# @param [String] compartment_id The OCID of the compartment (remember that the tenancy is simply the root compartment).
#
# @param [Hash] opts the optional parameters
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
#   retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
# @option opts [String] :lifecycle_state A filter to only return resources that match the given lifecycle state.  The state value is case-insensitive.
#
# @return [Response] A Response object with data of type Array<{OCI::Identity::Models::TagDefaultSummary TagDefaultSummary}>
Assembles tag defaults in the specified compartment and any parent compartments to determine
the tags to apply. Tag defaults from parent compartments do not override tag defaults
referencing the same tag in a compartment lower down the hierarchy. This set of tag defaults
includes all tag defaults from the current compartment back to the root compartment.
Assembles tag defaults in the specified compartment and any parent compartments to determine the tags to apply . Tag defaults from parent compartments do not override tag defaults referencing the same tag in a compartment lower down the hierarchy . This set of tag defaults includes all tag defaults from the current compartment back to the root compartment .
def assemble_effective_tag_set(compartment_id, opts = {})
      logger.debug 'Calling operation IdentityClient#assemble_effective_tag_set.' if logger
      raise "Missing the required parameter 'compartment_id' when calling assemble_effective_tag_set." if compartment_id.nil?
      if opts[:lifecycle_state] && !OCI::Identity::Models::TagDefaultSummary::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
        raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Identity::Models::TagDefaultSummary::LIFECYCLE_STATE_ENUM.'
      end
      path = '/tagDefaults/actions/assembleEffectiveTagSet'
      operation_signing_strategy = :standard
      query_params = {}
      query_params[:compartmentId] = compartment_id
      query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      post_body = nil
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'IdentityClient#assemble_effective_tag_set') do
        @api_client.call_api(
          :GET,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body,
          return_type: 'Array<OCI::Identity::Models::TagDefaultSummary>'
        )
      end
    end
def assemble_effective_tag_set ( compartment_id , opts = { } ) logger . debug 'Calling operation IdentityClient#assemble_effective_tag_set.' if logger raise "Missing the required parameter 'compartment_id' when calling assemble_effective_tag_set." if compartment_id . nil? if opts [ :lifecycle_state ] && ! OCI :: Identity :: Models :: TagDefaultSummary :: LIFECYCLE_STATE_ENUM . include? ( opts [ :lifecycle_state ] ) raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Identity::Models::TagDefaultSummary::LIFECYCLE_STATE_ENUM.' end path = '/tagDefaults/actions/assembleEffectiveTagSet' operation_signing_strategy = :standard query_params = { } query_params [ :compartmentId ] = compartment_id query_params [ :lifecycleState ] = opts [ :lifecycle_state ] if opts [ :lifecycle_state ] header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' post_body = nil OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'IdentityClient#assemble_effective_tag_set' ) do @api_client . call_api ( :GET , path , endpoint , header_params : header_params , query_params : query_params , operation_signing_strategy : operation_signing_strategy , body : post_body , return_type : 'Array<OCI::Identity::Models::TagDefaultSummary>' ) end end
Assembles tag defaults in the specified compartment and any parent compartments to determine
the tags to apply.
Assembles tag defaults in the specified compartment and any parent compartments to determine the tags to apply .
# rubocop:disable Style/NegatedIf # Query Params # Header Params # rubocop:enable Style/NegatedIf # rubocop:disable Metrics/BlockLength # rubocop:enable Metrics/BlockLength
A Response object with data of type Array<{OCI::Identity::Models::TagDefaultSummary TagDefaultSummary}>
A Response object with data of type Array< { OCI :: Identity :: Models :: TagDefaultSummary TagDefaultSummary } >
Response
compartment_id
<not_specific>
opts
:lifecycle_state A filter to only return resources that match the given lifecycle state. The state value is case-insensitive.
: lifecycle_state A filter to only return resources that match the given lifecycle state . The state value is case - insensitive .
<not_specific>
opts the optional parameters
opts the optional parameters