lib/oci/core/virtual_network_client.rb
def update_internet_gateway(ig_id, update_internet_gateway_details, opts = {})
      logger.debug 'Calling operation VirtualNetworkClient#update_internet_gateway.' if logger

      raise "Missing the required parameter 'ig_id' when calling update_internet_gateway." if ig_id.nil?
      raise "Missing the required parameter 'update_internet_gateway_details' when calling update_internet_gateway." if update_internet_gateway_details.nil?
      raise "Parameter value for 'ig_id' must not be blank" if OCI::Internal::Util.blank_string?(ig_id)

      path = '/internetGateways/{igId}'.sub('{igId}', ig_id.to_s)
      operation_signing_strategy = :standard

      # rubocop:disable Style/NegatedIf
      # Query Params
      query_params = {}

      # Header 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]
      # rubocop:enable Style/NegatedIf

      post_body = @api_client.object_to_http_body(update_internet_gateway_details)

      # rubocop:disable Metrics/BlockLength
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_internet_gateway') do
        @api_client.call_api(
          :PUT,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body,
          return_type: 'OCI::Core::Models::InternetGateway'
        )
      end
      # rubocop:enable Metrics/BlockLength
    end
# Updates the specified internet gateway. You can disable/enable it, or change its display name
# or tags. Avoid entering confidential information.
#
# If the gateway is disabled, that means no traffic will flow to/from the internet even if there's
# a route rule that enables that traffic.
#
# @param [String] ig_id The OCID of the internet gateway.
# @param [OCI::Core::Models::UpdateInternetGatewayDetails] update_internet_gateway_details Details for updating the internet gateway.
# @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.
#
# @return [Response] A Response object with data of type {OCI::Core::Models::InternetGateway InternetGateway}
Updates the specified internet gateway. You can disable/enable it, or change its display name
or tags. Avoid entering confidential information.

If the gateway is disabled, that means no traffic will flow to/from the internet even if there's
a route rule that enables that traffic.
Updates the specified internet gateway . You can disable / enable it or change its display name or tags . Avoid entering confidential information . If the gateway is disabled that means no traffic will flow to / from the internet even if there ' s a route rule that enables that traffic .
def update_internet_gateway(ig_id, update_internet_gateway_details, opts = {})
      logger.debug 'Calling operation VirtualNetworkClient#update_internet_gateway.' if logger
      raise "Missing the required parameter 'ig_id' when calling update_internet_gateway." if ig_id.nil?
      raise "Missing the required parameter 'update_internet_gateway_details' when calling update_internet_gateway." if update_internet_gateway_details.nil?
      raise "Parameter value for 'ig_id' must not be blank" if OCI::Internal::Util.blank_string?(ig_id)
      path = '/internetGateways/{igId}'.sub('{igId}', ig_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]
      post_body = @api_client.object_to_http_body(update_internet_gateway_details)
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#update_internet_gateway') do
        @api_client.call_api(
          :PUT,
          path,
          endpoint,
          header_params: header_params,
          query_params: query_params,
          operation_signing_strategy: operation_signing_strategy,
          body: post_body,
          return_type: 'OCI::Core::Models::InternetGateway'
        )
      end
    end
def update_internet_gateway ( ig_id , update_internet_gateway_details , opts = { } ) logger . debug 'Calling operation VirtualNetworkClient#update_internet_gateway.' if logger raise "Missing the required parameter 'ig_id' when calling update_internet_gateway." if ig_id . nil? raise "Missing the required parameter 'update_internet_gateway_details' when calling update_internet_gateway." if update_internet_gateway_details . nil? raise "Parameter value for 'ig_id' must not be blank" if OCI :: Internal :: Util . blank_string? ( ig_id ) path = '/internetGateways/{igId}' . sub ( '{igId}' , ig_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 ] post_body = @api_client . object_to_http_body ( update_internet_gateway_details ) OCI :: Retry . make_retrying_call ( applicable_retry_config ( opts ) , call_name : 'VirtualNetworkClient#update_internet_gateway' ) do @api_client . call_api ( :PUT , path , endpoint , header_params : header_params , query_params : query_params , operation_signing_strategy : operation_signing_strategy , body : post_body , return_type : 'OCI::Core::Models::InternetGateway' ) end end
Updates the specified internet gateway.
Updates the specified internet gateway .
# 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 {OCI::Core::Models::InternetGateway InternetGateway}
A Response object with data of type { OCI :: Core :: Models :: InternetGateway InternetGateway }
Response
ig_id
update_internet_gateway_details
opts
: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.
: 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 .
opts the optional parameters
opts the optional parameters