lib/oci/core/virtual_network_client.rb
# Adds one or more customer public IP prefixes to the specified public virtual circuit.
# Use this operation (and not {#update_virtual_circuit update_virtual_circuit})
# to add prefixes to the virtual circuit. Oracle must verify the customer's ownership
# of each prefix before traffic for that prefix will flow across the virtual circuit.
#
# @param [String] virtual_circuit_id The OCID of the virtual circuit.
# @param [OCI::Core::Models::BulkAddVirtualCircuitPublicPrefixesDetails] bulk_add_virtual_circuit_public_prefixes_details Request with publix prefixes to be added to the virtual circuit
# @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
# @return [Response] A Response object with data of type nil
Adds one or more customer public IP prefixes to the specified public virtual circuit.
Use this operation (and not {#update_virtual_circuit update_virtual_circuit})
to add prefixes to the virtual circuit. Oracle must verify the customer's ownership
of each prefix before traffic for that prefix will flow across the virtual circuit.
Adds one or more customer public IP prefixes to the specified public virtual circuit . Use this operation ( and not { #update_virtual_circuit update_virtual_circuit } ) to add prefixes to the virtual circuit . Oracle must verify the customer ' s ownership of each prefix before traffic for that prefix will flow across the virtual circuit .
def bulk_add_virtual_circuit_public_prefixes(virtual_circuit_id, bulk_add_virtual_circuit_public_prefixes_details, opts = {})
      logger.debug 'Calling operation VirtualNetworkClient#bulk_add_virtual_circuit_public_prefixes.' if logger
      raise "Missing the required parameter 'virtual_circuit_id' when calling bulk_add_virtual_circuit_public_prefixes." if virtual_circuit_id.nil?
      raise "Missing the required parameter 'bulk_add_virtual_circuit_public_prefixes_details' when calling bulk_add_virtual_circuit_public_prefixes." if bulk_add_virtual_circuit_public_prefixes_details.nil?
      raise "Parameter value for 'virtual_circuit_id' must not be blank" if OCI::Internal::Util.blank_string?(virtual_circuit_id)
      path = '/virtualCircuits/{virtualCircuitId}/actions/bulkAddPublicPrefixes'.sub('{virtualCircuitId}', virtual_circuit_id.to_s)
      operation_signing_strategy = :standard
      query_params = {}
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      post_body = @api_client.object_to_http_body(bulk_add_virtual_circuit_public_prefixes_details)
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#bulk_add_virtual_circuit_public_prefixes') 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 bulk_add_virtual_circuit_public_prefixes ( virtual_circuit_id , bulk_add_virtual_circuit_public_prefixes_details , opts = { } ) logger . debug 'Calling operation VirtualNetworkClient#bulk_add_virtual_circuit_public_prefixes.' if logger raise "Missing the required parameter 'virtual_circuit_id' when calling bulk_add_virtual_circuit_public_prefixes." if virtual_circuit_id . nil? raise "Missing the required parameter 'bulk_add_virtual_circuit_public_prefixes_details' when calling bulk_add_virtual_circuit_public_prefixes." if bulk_add_virtual_circuit_public_prefixes_details . nil? raise "Parameter value for 'virtual_circuit_id' must not be blank" if OCI :: Internal :: Util . blank_string? ( virtual_circuit_id ) path = '/virtualCircuits/{virtualCircuitId}/actions/bulkAddPublicPrefixes' . sub ( '{virtualCircuitId}' , virtual_circuit_id . to_s ) operation_signing_strategy = :standard query_params = { } header_params = { } header_params [ :accept ] = 'application/json' header_params [ :' content-type ' ] = 'application/json' post_body = @api_client . object_to_http_body ( bulk_add_virtual_circuit_public_prefixes_details ) OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'VirtualNetworkClient#bulk_add_virtual_circuit_public_prefixes' ) 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
Adds one or more customer public IP prefixes to the specified public virtual circuit.
Adds one or more customer public IP prefixes to the specified public virtual circuit .
# 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
virtual_circuit_id
<not_specific>
bulk_add_virtual_circuit_public_prefixes_details
<not_specific>
opts
: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
: 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
<not_specific>
opts the optional parameters
opts the optional parameters