lib/oci/apm_control_plane/apm_domain_client.rb
# Generates a set of new Data Keys for the specified APM domain with the specified names and
# types. These will be added to the existing set of Data Keys for the specified APM domain.
#
# @param [Array<OCI::ApmControlPlane::Models::OCI::ApmControlPlane::Models::GenerateDataKeyDetails>] generate_data_keys_list_details List of new Data Keys to be generated.
# @param [String] apm_domain_id OCID of the APM Domain
# @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] :if_match For optimistic concurrency control. In the PUT or DELETE call
#   for a resource, set the `if-match` parameter to the value of the
#   etag from a previous GET or POST response for that resource.
#   The resource will be updated or deleted only if the etag you
#   provide matches the resource's current etag value.
#
# @option opts [String] :opc_request_id The client request ID for tracing.
# @return [Response] A Response object with data of type nil
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/apmcontrolplane/generate_data_keys.rb.html) to see an example of how to use generate_data_keys API.
Generates a set of new Data Keys for the specified APM domain with the specified names and
types. These will be added to the existing set of Data Keys for the specified APM domain.
Generates a set of new Data Keys for the specified APM domain with the specified names and types . These will be added to the existing set of Data Keys for the specified APM domain .
def generate_data_keys(generate_data_keys_list_details, apm_domain_id, opts = {})
      logger.debug 'Calling operation ApmDomainClient#generate_data_keys.' if logger
      raise "Missing the required parameter 'generate_data_keys_list_details' when calling generate_data_keys." if generate_data_keys_list_details.nil?
      raise "Missing the required parameter 'apm_domain_id' when calling generate_data_keys." if apm_domain_id.nil?
      raise "Parameter value for 'apm_domain_id' must not be blank" if OCI::Internal::Util.blank_string?(apm_domain_id)
      path = '/apmDomains/{apmDomainId}/actions/generateDataKeys'.sub('{apmDomainId}', apm_domain_id.to_s)
      operation_signing_strategy = :standard
      query_params = {}
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
      header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
      post_body = @api_client.object_to_http_body(generate_data_keys_list_details)
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'ApmDomainClient#generate_data_keys') do
        @api_client.call_api(
          :POST,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body
        )
      end
    end
def generate_data_keys ( generate_data_keys_list_details , apm_domain_id , opts = { } ) logger . debug 'Calling operation ApmDomainClient#generate_data_keys.' if logger raise "Missing the required parameter 'generate_data_keys_list_details' when calling generate_data_keys." if generate_data_keys_list_details . nil? raise "Missing the required parameter 'apm_domain_id' when calling generate_data_keys." if apm_domain_id . nil? raise "Parameter value for 'apm_domain_id' must not be blank" if OCI :: Internal :: Util . blank_string? ( apm_domain_id ) path = '/apmDomains/{apmDomainId}/actions/generateDataKeys' . sub ( '{apmDomainId}' , apm_domain_id . to_s ) operation_signing_strategy = :standard query_params = { } header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' header_params [ :' if-match ' ] = opts [ :if_match ] if opts [ :if_match ] header_params [ :' opc-request-id ' ] = opts [ :opc_request_id ] if opts [ :opc_request_id ] post_body = @api_client . object_to_http_body ( generate_data_keys_list_details ) OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'ApmDomainClient#generate_data_keys' ) do @api_client . call_api ( :POST , path , endpoint , header_params : header_params , query_params : query_params , operation_signing_strategy : operation_signing_strategy , body : post_body ) end end
Generates a set of new Data Keys for the specified APM domain with the specified names and
types.
Generates a set of new Data Keys for the specified APM domain with the specified names and types .
# 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 nil
A Response object with data of type nil
Response
generate_data_keys_list_details
apm_domain_id
opts
:opc_request_id The client request ID for tracing.
: opc_request_id The client request ID for tracing .
opts the optional parameters
opts the optional parameters
note
Click [here] to see an example of how to use generate_data_keys API.
Click [ here ] to see an example of how to use generate_data_keys API .