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

      raise "Missing the required parameter 'compartment_id' when calling list_local_peering_gateways." if compartment_id.nil?

      path = '/localPeeringGateways'
      operation_signing_strategy = :standard

      # rubocop:disable Style/NegatedIf
      # Query Params
      query_params = {}
      query_params[:compartmentId] = compartment_id
      query_params[:limit] = opts[:limit] if opts[:limit]
      query_params[:page] = opts[:page] if opts[:page]
      query_params[:vcnId] = opts[:vcn_id] if opts[:vcn_id]

      # Header Params
      header_params = {}
      header_params[:accept] = 'application/json'
      header_params[:'content-type'] = 'application/json'
      # rubocop:enable Style/NegatedIf

      post_body = nil

      # rubocop:disable Metrics/BlockLength
      OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'VirtualNetworkClient#list_local_peering_gateways') 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::Core::Models::LocalPeeringGateway>'
        )
      end
      # rubocop:enable Metrics/BlockLength
    end
# Lists the local peering gateways (LPGs) for the specified VCN and specified compartment.
# If the VCN ID is not provided, then the list includes the LPGs from all VCNs in the specified compartment.
#
# @param [String] compartment_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the 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 [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a paginated
#   \"List\" call. For important details about how pagination works, see
#   [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
#
#   Example: `50`
#
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the previous \"List\"
#   call. For important details about how pagination works, see
#   [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
#
# @option opts [String] :vcn_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN.
# @return [Response] A Response object with data of type Array<{OCI::Core::Models::LocalPeeringGateway LocalPeeringGateway}>
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/core/list_local_peering_gateways.rb.html) to see an example of how to use list_local_peering_gateways API.
Lists the local peering gateways (LPGs) for the specified VCN and specified compartment.
If the VCN ID is not provided, then the list includes the LPGs from all VCNs in the specified compartment.
Lists the local peering gateways ( LPGs ) for the specified VCN and specified compartment . If the VCN ID is not provided then the list includes the LPGs from all VCNs in the specified compartment .
def list_local_peering_gateways(compartment_id, opts = {})
      logger.debug 'Calling operation VirtualNetworkClient#list_local_peering_gateways.' if logger
      raise "Missing the required parameter 'compartment_id' when calling list_local_peering_gateways." if compartment_id.nil?
      path = '/localPeeringGateways'
      operation_signing_strategy = :standard
      query_params = {}
      query_params[:compartmentId] = compartment_id
      query_params[:limit] = opts[:limit] if opts[:limit]
      query_params[:page] = opts[:page] if opts[:page]
      query_params[:vcnId] = opts[:vcn_id] if opts[:vcn_id]
      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: 'VirtualNetworkClient#list_local_peering_gateways') 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::Core::Models::LocalPeeringGateway>'
        )
      end
    end
def list_local_peering_gateways ( compartment_id , opts = { } ) logger . debug 'Calling operation VirtualNetworkClient#list_local_peering_gateways.' if logger raise "Missing the required parameter 'compartment_id' when calling list_local_peering_gateways." if compartment_id . nil? path = '/localPeeringGateways' operation_signing_strategy = :standard query_params = { } query_params [ :compartmentId ] = compartment_id query_params [ :limit ] = opts [ :limit ] if opts [ :limit ] query_params [ :page ] = opts [ :page ] if opts [ :page ] query_params [ :vcnId ] = opts [ :vcn_id ] if opts [ :vcn_id ] 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 : 'VirtualNetworkClient#list_local_peering_gateways' ) 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::Core::Models::LocalPeeringGateway>' ) end end
Lists the local peering gateways (LPGs) for the specified VCN and specified compartment.
Lists the local peering gateways ( LPGs ) for the specified VCN and specified compartment .
# 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::Core::Models::LocalPeeringGateway LocalPeeringGateway}>
A Response object with data of type Array< { OCI :: Core :: Models :: LocalPeeringGateway LocalPeeringGateway } >
Response
compartment_id
opts
:vcn_id The [OCID] of the VCN.
: vcn_id The [ OCID ] of the VCN .
opts the optional parameters
opts the optional parameters
note
Click [here] to see an example of how to use list_local_peering_gateways API.
Click [ here ] to see an example of how to use list_local_peering_gateways API .