src/vsphere_cpi/lib/nsxt/nsxt_client/api/network_transport_api.rb
def list_transport_nodes_by_state_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug "Calling API: NetworkTransportApi.list_transport_nodes_by_state ..."
      end
      if @api_client.config.client_side_validation && opts[:'mm_state'] && !['ENTERING', 'ENABLED', 'EXITING', 'DISABLED'].include?(opts[:'mm_state'])
        fail ArgumentError, 'invalid value for "mm_state", must be one of ENTERING, ENABLED, EXITING, DISABLED'
      end
      if @api_client.config.client_side_validation && opts[:'status'] && !['PENDING', 'IN_PROGRESS', 'SUCCESS', 'PARTIAL_SUCCESS', 'FAILED', 'ORPHANED'].include?(opts[:'status'])
        fail ArgumentError, 'invalid value for "status", must be one of PENDING, IN_PROGRESS, SUCCESS, PARTIAL_SUCCESS, FAILED, ORPHANED'
      end
      # resource path
      local_var_path = "/transport-nodes/state"

      # query parameters
      query_params = {}
      query_params[:'mm_state'] = opts[:'mm_state'] if !opts[:'mm_state'].nil?
      query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
      query_params[:'vtep_ip'] = opts[:'vtep_ip'] if !opts[:'vtep_ip'].nil?

      # header parameters
      header_params = {}
      # HTTP header 'Accept' (if needed)
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      # HTTP header 'Content-Type'
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

      # form parameters
      form_params = {}

      # http body (model)
      post_body = nil
      auth_names = ['BasicAuth']
      data, status_code, headers = @api_client.call_api(:GET, local_var_path,
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => 'TransportNodeStateListResult')
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: NetworkTransportApi#list_transport_nodes_by_state\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
# List transport nodes by realized state
# Returns a list of transport node states that have realized state as provided as query parameter 
# @param [Hash] opts the optional parameters
# @option opts [String] :mm_state maintenance mode state
# @option opts [String] :status Realized state of transport nodes
# @option opts [String] :vtep_ip Virtual tunnel endpoint ip address of transport node
# @return [Array<(TransportNodeStateListResult, Fixnum, Hash)>] TransportNodeStateListResult data, response status code and response headers
List transport nodes by realized state
Returns a list of transport node states that have realized state as provided as query parameter
List transport nodes by realized state Returns a list of transport node states that have realized state as provided as query parameter
def list_transport_nodes_by_state_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug "Calling API: NetworkTransportApi.list_transport_nodes_by_state ..."
      end
      if @api_client.config.client_side_validation && opts[:'mm_state'] && !['ENTERING', 'ENABLED', 'EXITING', 'DISABLED'].include?(opts[:'mm_state'])
        fail ArgumentError, 'invalid value for "mm_state", must be one of ENTERING, ENABLED, EXITING, DISABLED'
      end
      if @api_client.config.client_side_validation && opts[:'status'] && !['PENDING', 'IN_PROGRESS', 'SUCCESS', 'PARTIAL_SUCCESS', 'FAILED', 'ORPHANED'].include?(opts[:'status'])
        fail ArgumentError, 'invalid value for "status", must be one of PENDING, IN_PROGRESS, SUCCESS, PARTIAL_SUCCESS, FAILED, ORPHANED'
      end
      local_var_path = "/transport-nodes/state"
      query_params = {}
      query_params[:'mm_state'] = opts[:'mm_state'] if !opts[:'mm_state'].nil?
      query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
      query_params[:'vtep_ip'] = opts[:'vtep_ip'] if !opts[:'vtep_ip'].nil?
      header_params = {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
      form_params = {}
      post_body = nil
      auth_names = ['BasicAuth']
      data, status_code, headers = @api_client.call_api(:GET, local_var_path,
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => 'TransportNodeStateListResult')
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: NetworkTransportApi#list_transport_nodes_by_state\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def list_transport_nodes_by_state_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug "Calling API: NetworkTransportApi.list_transport_nodes_by_state ..." end if @api_client . config . client_side_validation && opts [ :' mm_state ' ] && ! [ 'ENTERING' , 'ENABLED' , 'EXITING' , 'DISABLED' ] . include? ( opts [ :' mm_state ' ] ) fail ArgumentError , 'invalid value for "mm_state", must be one of ENTERING, ENABLED, EXITING, DISABLED' end if @api_client . config . client_side_validation && opts [ :' status ' ] && ! [ 'PENDING' , 'IN_PROGRESS' , 'SUCCESS' , 'PARTIAL_SUCCESS' , 'FAILED' , 'ORPHANED' ] . include? ( opts [ :' status ' ] ) fail ArgumentError , 'invalid value for "status", must be one of PENDING, IN_PROGRESS, SUCCESS, PARTIAL_SUCCESS, FAILED, ORPHANED' end local_var_path = "/transport-nodes/state" query_params = { } query_params [ :' mm_state ' ] = opts [ :' mm_state ' ] if ! opts [ :' mm_state ' ] . nil? query_params [ :' status ' ] = opts [ :' status ' ] if ! opts [ :' status ' ] . nil? query_params [ :' vtep_ip ' ] = opts [ :' vtep_ip ' ] if ! opts [ :' vtep_ip ' ] . nil? header_params = { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'application/json' ] ) form_params = { } post_body = nil auth_names = [ 'BasicAuth' ] data , status_code , headers = @api_client . call_api ( :GET , local_var_path , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => 'TransportNodeStateListResult' ) if @api_client . config . debugging @api_client . config . logger . debug "API called: NetworkTransportApi#list_transport_nodes_by_state\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
List transport nodes by realized state
Returns a list of transport node states that have realized state as provided as query parameter
List transport nodes by realized state Returns a list of transport node states that have realized state as provided as query parameter
# resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model)
TransportNodeStateListResult data, response status code and response headers
TransportNodeStateListResult data response status code and response headers
Array<(TransportNodeStateListResult, Fixnum, Hash)>
opts
:vtep_ip Virtual tunnel endpoint ip address of transport node
: vtep_ip Virtual tunnel endpoint ip address of transport node
opts the optional parameters
opts the optional parameters