src/vsphere_cpi/lib/nsxt/nsxt_client/api/nsx_component_administration_api.rb
# List appliance management tasks
# List appliance management tasks
# @param [Hash] opts the optional parameters
# @option opts [String] :fields Fields to include in query results
# @option opts [String] :request_method Request method(s) to include in query result
# @option opts [String] :request_path Request URI path(s) to include in query result
# @option opts [String] :request_uri Request URI(s) to include in query result
# @option opts [String] :status Status(es) to include in query result
# @option opts [String] :user Names of users to include in query result
# @return [Array<(ApplianceManagementTaskListResult, Fixnum, Hash)>] ApplianceManagementTaskListResult data, response status code and response headers
List appliance management tasks
List appliance management tasks
List appliance management tasks List appliance management tasks
def list_appliance_management_tasks_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug "Calling API: NsxComponentAdministrationApi.list_appliance_management_tasks ..."
      end
      if @api_client.config.client_side_validation && !opts[:'request_method'].nil? && opts[:'request_method'] !~ Regexp.new(/^(=|!=|~|!~)?.+$/)
        fail ArgumentError, "invalid value for 'opts[:\"request_method\"]' when calling NsxComponentAdministrationApi.list_appliance_management_tasks, must conform to the pattern /^(=|!=|~|!~)?.+$/."
      end
      if @api_client.config.client_side_validation && !opts[:'request_path'].nil? && opts[:'request_path'] !~ Regexp.new(/^(=|!=|~|!~)?.+$/)
        fail ArgumentError, "invalid value for 'opts[:\"request_path\"]' when calling NsxComponentAdministrationApi.list_appliance_management_tasks, must conform to the pattern /^(=|!=|~|!~)?.+$/."
      end
      if @api_client.config.client_side_validation && !opts[:'request_uri'].nil? && opts[:'request_uri'] !~ Regexp.new(/^(=|!=|~|!~)?.+$/)
        fail ArgumentError, "invalid value for 'opts[:\"request_uri\"]' when calling NsxComponentAdministrationApi.list_appliance_management_tasks, must conform to the pattern /^(=|!=|~|!~)?.+$/."
      end
      if @api_client.config.client_side_validation && !opts[:'status'].nil? && opts[:'status'] !~ Regexp.new(/^(=|!=|~|!~)?.+$/)
        fail ArgumentError, "invalid value for 'opts[:\"status\"]' when calling NsxComponentAdministrationApi.list_appliance_management_tasks, must conform to the pattern /^(=|!=|~|!~)?.+$/."
      end
      if @api_client.config.client_side_validation && !opts[:'user'].nil? && opts[:'user'] !~ Regexp.new(/^(=|!=|~|!~)?.+$/)
        fail ArgumentError, "invalid value for 'opts[:\"user\"]' when calling NsxComponentAdministrationApi.list_appliance_management_tasks, must conform to the pattern /^(=|!=|~|!~)?.+$/."
      end
      local_var_path = "/node/tasks"
      query_params = {}
      query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
      query_params[:'request_method'] = opts[:'request_method'] if !opts[:'request_method'].nil?
      query_params[:'request_path'] = opts[:'request_path'] if !opts[:'request_path'].nil?
      query_params[:'request_uri'] = opts[:'request_uri'] if !opts[:'request_uri'].nil?
      query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
      query_params[:'user'] = opts[:'user'] if !opts[:'user'].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 => 'ApplianceManagementTaskListResult')
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: NsxComponentAdministrationApi#list_appliance_management_tasks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def list_appliance_management_tasks_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug "Calling API: NsxComponentAdministrationApi.list_appliance_management_tasks ..." end if @api_client . config . client_side_validation && ! opts [ :' request_method ' ] . nil? && opts [ :' request_method ' ] !~ Regexp . new ( / ^(=|!=|~|!~)?.+$ / ) fail ArgumentError , "invalid value for 'opts[:\"request_method\"]' when calling NsxComponentAdministrationApi.list_appliance_management_tasks, must conform to the pattern /^(=|!=|~|!~)?.+$/." end if @api_client . config . client_side_validation && ! opts [ :' request_path ' ] . nil? && opts [ :' request_path ' ] !~ Regexp . new ( / ^(=|!=|~|!~)?.+$ / ) fail ArgumentError , "invalid value for 'opts[:\"request_path\"]' when calling NsxComponentAdministrationApi.list_appliance_management_tasks, must conform to the pattern /^(=|!=|~|!~)?.+$/." end if @api_client . config . client_side_validation && ! opts [ :' request_uri ' ] . nil? && opts [ :' request_uri ' ] !~ Regexp . new ( / ^(=|!=|~|!~)?.+$ / ) fail ArgumentError , "invalid value for 'opts[:\"request_uri\"]' when calling NsxComponentAdministrationApi.list_appliance_management_tasks, must conform to the pattern /^(=|!=|~|!~)?.+$/." end if @api_client . config . client_side_validation && ! opts [ :' status ' ] . nil? && opts [ :' status ' ] !~ Regexp . new ( / ^(=|!=|~|!~)?.+$ / ) fail ArgumentError , "invalid value for 'opts[:\"status\"]' when calling NsxComponentAdministrationApi.list_appliance_management_tasks, must conform to the pattern /^(=|!=|~|!~)?.+$/." end if @api_client . config . client_side_validation && ! opts [ :' user ' ] . nil? && opts [ :' user ' ] !~ Regexp . new ( / ^(=|!=|~|!~)?.+$ / ) fail ArgumentError , "invalid value for 'opts[:\"user\"]' when calling NsxComponentAdministrationApi.list_appliance_management_tasks, must conform to the pattern /^(=|!=|~|!~)?.+$/." end local_var_path = "/node/tasks" query_params = { } query_params [ :' fields ' ] = opts [ :' fields ' ] if ! opts [ :' fields ' ] . nil? query_params [ :' request_method ' ] = opts [ :' request_method ' ] if ! opts [ :' request_method ' ] . nil? query_params [ :' request_path ' ] = opts [ :' request_path ' ] if ! opts [ :' request_path ' ] . nil? query_params [ :' request_uri ' ] = opts [ :' request_uri ' ] if ! opts [ :' request_uri ' ] . nil? query_params [ :' status ' ] = opts [ :' status ' ] if ! opts [ :' status ' ] . nil? query_params [ :' user ' ] = opts [ :' user ' ] if ! opts [ :' user ' ] . 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 => 'ApplianceManagementTaskListResult' ) if @api_client . config . debugging @api_client . config . logger . debug "API called: NsxComponentAdministrationApi#list_appliance_management_tasks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
List appliance management tasks
List appliance management tasks
List appliance management tasks List appliance management tasks
# resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model)
ApplianceManagementTaskListResult data, response status code and response headers
ApplianceManagementTaskListResult data response status code and response headers
Array<(ApplianceManagementTaskListResult, Fixnum, Hash)>
opts
:user Names of users to include in query result
: user Names of users to include in query result
opts the optional parameters
opts the optional parameters