Help us shape the future of Go! Take the 2026 Go Developer Survey

assets

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for assets API

func (*Client) DeleteAssets

func (a *Client) DeleteAssets(params *DeleteAssetsParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteAssetsOK, error)

DeleteAssets this API is used to delete the asset with the asset id supplied as the required argument

Delete Asset

func (*Client) GetAssets

func (a *Client) GetAssets(params *GetAssetsParams, authInfo runtime.ClientAuthInfoWriter) (*GetAssetsOK, error)

GetAssets retrieves basic information about all assets

Get All Assets

func (*Client) GetAssetsAssetID

func (a *Client) GetAssetsAssetID(params *GetAssetsAssetIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetAssetsAssetIDOK, error)

GetAssetsAssetID retrieves detailed information about a specific asset

Get a Specific Asset

func (*Client) PostAssets

func (a *Client) PostAssets(params *PostAssetsParams, authInfo runtime.ClientAuthInfoWriter) (*PostAssetsOK, error)

PostAssets creates assets

Create Assets

func (*Client) PutAssets

func (a *Client) PutAssets(params *PutAssetsParams, authInfo runtime.ClientAuthInfoWriter) (*PutAssetsOK, error)

PutAssets modifies assets

Modify Assets. Need either <b>Asset ID</b> or <b>Asset</b>

func (*Client) PutCustomFieldsAsset

func (a *Client) PutCustomFieldsAsset(params *PutCustomFieldsAssetParams, authInfo runtime.ClientAuthInfoWriter) (*PutCustomFieldsAssetOK, error)

PutCustomFieldsAsset creates update custom fields for assets

Create or update custom fields for assets. "ID" or "name" of asset is needed even when value is not being changed

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	DeleteAssets(params *DeleteAssetsParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteAssetsOK, error)

	GetAssets(params *GetAssetsParams, authInfo runtime.ClientAuthInfoWriter) (*GetAssetsOK, error)

	GetAssetsAssetID(params *GetAssetsAssetIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetAssetsAssetIDOK, error)

	PostAssets(params *PostAssetsParams, authInfo runtime.ClientAuthInfoWriter) (*PostAssetsOK, error)

	PutAssets(params *PutAssetsParams, authInfo runtime.ClientAuthInfoWriter) (*PutAssetsOK, error)

	PutCustomFieldsAsset(params *PutCustomFieldsAssetParams, authInfo runtime.ClientAuthInfoWriter) (*PutCustomFieldsAssetOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new assets API client.

type DeleteAssetsBadRequest

type DeleteAssetsBadRequest struct {
}

DeleteAssetsBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewDeleteAssetsBadRequest

func NewDeleteAssetsBadRequest() *DeleteAssetsBadRequest

NewDeleteAssetsBadRequest creates a DeleteAssetsBadRequest with default headers values

func (*DeleteAssetsBadRequest) Error

func (o *DeleteAssetsBadRequest) Error() string

type DeleteAssetsForbidden

type DeleteAssetsForbidden struct {
}

DeleteAssetsForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewDeleteAssetsForbidden

func NewDeleteAssetsForbidden() *DeleteAssetsForbidden

NewDeleteAssetsForbidden creates a DeleteAssetsForbidden with default headers values

func (*DeleteAssetsForbidden) Error

func (o *DeleteAssetsForbidden) Error() string

type DeleteAssetsGone

type DeleteAssetsGone struct {
}

DeleteAssetsGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewDeleteAssetsGone

func NewDeleteAssetsGone() *DeleteAssetsGone

NewDeleteAssetsGone creates a DeleteAssetsGone with default headers values

func (*DeleteAssetsGone) Error

func (o *DeleteAssetsGone) Error() string

type DeleteAssetsInternalServerError

type DeleteAssetsInternalServerError struct {
}

DeleteAssetsInternalServerError handles this case with default header values.

Internal Server Error (Some parameter missing or issue with the server. Check with returned “msg” from the call.)

func NewDeleteAssetsInternalServerError

func NewDeleteAssetsInternalServerError() *DeleteAssetsInternalServerError

NewDeleteAssetsInternalServerError creates a DeleteAssetsInternalServerError with default headers values

func (*DeleteAssetsInternalServerError) Error

type DeleteAssetsMethodNotAllowed

type DeleteAssetsMethodNotAllowed struct {
}

DeleteAssetsMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewDeleteAssetsMethodNotAllowed

func NewDeleteAssetsMethodNotAllowed() *DeleteAssetsMethodNotAllowed

NewDeleteAssetsMethodNotAllowed creates a DeleteAssetsMethodNotAllowed with default headers values

func (*DeleteAssetsMethodNotAllowed) Error

type DeleteAssetsNotFound

type DeleteAssetsNotFound struct {
}

DeleteAssetsNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewDeleteAssetsNotFound

func NewDeleteAssetsNotFound() *DeleteAssetsNotFound

NewDeleteAssetsNotFound creates a DeleteAssetsNotFound with default headers values

func (*DeleteAssetsNotFound) Error

func (o *DeleteAssetsNotFound) Error() string

type DeleteAssetsOK

type DeleteAssetsOK struct {
	Payload *DeleteAssetsOKBody
}

DeleteAssetsOK handles this case with default header values.

The above command returns results like this:

func NewDeleteAssetsOK

func NewDeleteAssetsOK() *DeleteAssetsOK

NewDeleteAssetsOK creates a DeleteAssetsOK with default headers values

func (*DeleteAssetsOK) Error

func (o *DeleteAssetsOK) Error() string

func (*DeleteAssetsOK) GetPayload

func (o *DeleteAssetsOK) GetPayload() *DeleteAssetsOKBody

type DeleteAssetsOKBody

type DeleteAssetsOKBody struct {

	// deleted
	Deleted interface{} `json:"deleted,omitempty"`

	// id
	ID interface{} `json:"id,omitempty"`
}

DeleteAssetsOKBody delete assets o k body swagger:model DeleteAssetsOKBody

func (*DeleteAssetsOKBody) MarshalBinary

func (o *DeleteAssetsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteAssetsOKBody) UnmarshalBinary

func (o *DeleteAssetsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteAssetsOKBody) Validate

func (o *DeleteAssetsOKBody) Validate(formats strfmt.Registry) error

Validate validates this delete assets o k body

type DeleteAssetsParams

type DeleteAssetsParams struct {

	/*AssetID
	  asset id

	*/
	AssetID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteAssetsParams contains all the parameters to send to the API endpoint for the delete assets operation typically these are written to a http.Request

func NewDeleteAssetsParams

func NewDeleteAssetsParams() *DeleteAssetsParams

NewDeleteAssetsParams creates a new DeleteAssetsParams object with the default values initialized.

func NewDeleteAssetsParamsWithContext

func NewDeleteAssetsParamsWithContext(ctx context.Context) *DeleteAssetsParams

NewDeleteAssetsParamsWithContext creates a new DeleteAssetsParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteAssetsParamsWithHTTPClient

func NewDeleteAssetsParamsWithHTTPClient(client *http.Client) *DeleteAssetsParams

NewDeleteAssetsParamsWithHTTPClient creates a new DeleteAssetsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteAssetsParamsWithTimeout

func NewDeleteAssetsParamsWithTimeout(timeout time.Duration) *DeleteAssetsParams

NewDeleteAssetsParamsWithTimeout creates a new DeleteAssetsParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteAssetsParams) SetAssetID

func (o *DeleteAssetsParams) SetAssetID(assetID int64)

SetAssetID adds the assetId to the delete assets params

func (*DeleteAssetsParams) SetContext

func (o *DeleteAssetsParams) SetContext(ctx context.Context)

SetContext adds the context to the delete assets params

func (*DeleteAssetsParams) SetHTTPClient

func (o *DeleteAssetsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete assets params

func (*DeleteAssetsParams) SetTimeout

func (o *DeleteAssetsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete assets params

func (*DeleteAssetsParams) WithAssetID

func (o *DeleteAssetsParams) WithAssetID(assetID int64) *DeleteAssetsParams

WithAssetID adds the assetID to the delete assets params

func (*DeleteAssetsParams) WithContext

WithContext adds the context to the delete assets params

func (*DeleteAssetsParams) WithHTTPClient

func (o *DeleteAssetsParams) WithHTTPClient(client *http.Client) *DeleteAssetsParams

WithHTTPClient adds the HTTPClient to the delete assets params

func (*DeleteAssetsParams) WithTimeout

func (o *DeleteAssetsParams) WithTimeout(timeout time.Duration) *DeleteAssetsParams

WithTimeout adds the timeout to the delete assets params

func (*DeleteAssetsParams) WriteToRequest

func (o *DeleteAssetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteAssetsReader

type DeleteAssetsReader struct {
	// contains filtered or unexported fields
}

DeleteAssetsReader is a Reader for the DeleteAssets structure.

func (*DeleteAssetsReader) ReadResponse

func (o *DeleteAssetsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteAssetsServiceUnavailable

type DeleteAssetsServiceUnavailable struct {
}

DeleteAssetsServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewDeleteAssetsServiceUnavailable

func NewDeleteAssetsServiceUnavailable() *DeleteAssetsServiceUnavailable

NewDeleteAssetsServiceUnavailable creates a DeleteAssetsServiceUnavailable with default headers values

func (*DeleteAssetsServiceUnavailable) Error

type DeleteAssetsUnauthorized

type DeleteAssetsUnauthorized struct {
}

DeleteAssetsUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewDeleteAssetsUnauthorized

func NewDeleteAssetsUnauthorized() *DeleteAssetsUnauthorized

NewDeleteAssetsUnauthorized creates a DeleteAssetsUnauthorized with default headers values

func (*DeleteAssetsUnauthorized) Error

func (o *DeleteAssetsUnauthorized) Error() string

type GetAssetsAssetIDBadRequest

type GetAssetsAssetIDBadRequest struct {
}

GetAssetsAssetIDBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewGetAssetsAssetIDBadRequest

func NewGetAssetsAssetIDBadRequest() *GetAssetsAssetIDBadRequest

NewGetAssetsAssetIDBadRequest creates a GetAssetsAssetIDBadRequest with default headers values

func (*GetAssetsAssetIDBadRequest) Error

type GetAssetsAssetIDForbidden

type GetAssetsAssetIDForbidden struct {
}

GetAssetsAssetIDForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewGetAssetsAssetIDForbidden

func NewGetAssetsAssetIDForbidden() *GetAssetsAssetIDForbidden

NewGetAssetsAssetIDForbidden creates a GetAssetsAssetIDForbidden with default headers values

func (*GetAssetsAssetIDForbidden) Error

func (o *GetAssetsAssetIDForbidden) Error() string

type GetAssetsAssetIDGone

type GetAssetsAssetIDGone struct {
}

GetAssetsAssetIDGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewGetAssetsAssetIDGone

func NewGetAssetsAssetIDGone() *GetAssetsAssetIDGone

NewGetAssetsAssetIDGone creates a GetAssetsAssetIDGone with default headers values

func (*GetAssetsAssetIDGone) Error

func (o *GetAssetsAssetIDGone) Error() string

type GetAssetsAssetIDInternalServerError

type GetAssetsAssetIDInternalServerError struct {
}

GetAssetsAssetIDInternalServerError handles this case with default header values.

Internal Server Error (Some parameter missing or issue with the server. Check with returned “msg” from the call.)

func NewGetAssetsAssetIDInternalServerError

func NewGetAssetsAssetIDInternalServerError() *GetAssetsAssetIDInternalServerError

NewGetAssetsAssetIDInternalServerError creates a GetAssetsAssetIDInternalServerError with default headers values

func (*GetAssetsAssetIDInternalServerError) Error

type GetAssetsAssetIDMethodNotAllowed

type GetAssetsAssetIDMethodNotAllowed struct {
}

GetAssetsAssetIDMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewGetAssetsAssetIDMethodNotAllowed

func NewGetAssetsAssetIDMethodNotAllowed() *GetAssetsAssetIDMethodNotAllowed

NewGetAssetsAssetIDMethodNotAllowed creates a GetAssetsAssetIDMethodNotAllowed with default headers values

func (*GetAssetsAssetIDMethodNotAllowed) Error

type GetAssetsAssetIDNotFound

type GetAssetsAssetIDNotFound struct {
}

GetAssetsAssetIDNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewGetAssetsAssetIDNotFound

func NewGetAssetsAssetIDNotFound() *GetAssetsAssetIDNotFound

NewGetAssetsAssetIDNotFound creates a GetAssetsAssetIDNotFound with default headers values

func (*GetAssetsAssetIDNotFound) Error

func (o *GetAssetsAssetIDNotFound) Error() string

type GetAssetsAssetIDOK

type GetAssetsAssetIDOK struct {
	Payload *models.Assets
}

GetAssetsAssetIDOK handles this case with default header values.

The above command returns results like this:

func NewGetAssetsAssetIDOK

func NewGetAssetsAssetIDOK() *GetAssetsAssetIDOK

NewGetAssetsAssetIDOK creates a GetAssetsAssetIDOK with default headers values

func (*GetAssetsAssetIDOK) Error

func (o *GetAssetsAssetIDOK) Error() string

func (*GetAssetsAssetIDOK) GetPayload

func (o *GetAssetsAssetIDOK) GetPayload() *models.Assets

type GetAssetsAssetIDParams

type GetAssetsAssetIDParams struct {

	/*AssetID
	  The ID of the asset to retrieve

	*/
	AssetID int64
	/*IncludeCols
	  do not return all columns just the ones specified. For example, ?include_cols=name, device_id, rack will only result in name, device_id, and rack included in the output. The following column names can be part of include_cols: name, device_id, rack, name, device_id, serial_no, asset_no, uuid, notes, in_service, service_level, type, id, last_updated, tags, customer_id, customer, hw_model, hw_size, manufacturer, hw_depth, rack, start_at, rack_id, orientation, row, room, building, blade_host_name, blade_host_id, slot_number, virtual_host_name, location, device_sub_type, os, osarch, osver, osverno, custom_fields, device_purchase_line_items, device_external_links, ip_addresses, mac_addresses, cpucount, cpucore, cpuspeed, ram, hddcount, hddsize, hddraid, hddraid_type, hdd_details, pdu_mapping_url,modules, vms, devices, aliases, xpos, ucs_manager

	*/
	IncludeCols *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetAssetsAssetIDParams contains all the parameters to send to the API endpoint for the get assets asset id operation typically these are written to a http.Request

func NewGetAssetsAssetIDParams

func NewGetAssetsAssetIDParams() *GetAssetsAssetIDParams

NewGetAssetsAssetIDParams creates a new GetAssetsAssetIDParams object with the default values initialized.

func NewGetAssetsAssetIDParamsWithContext

func NewGetAssetsAssetIDParamsWithContext(ctx context.Context) *GetAssetsAssetIDParams

NewGetAssetsAssetIDParamsWithContext creates a new GetAssetsAssetIDParams object with the default values initialized, and the ability to set a context for a request

func NewGetAssetsAssetIDParamsWithHTTPClient

func NewGetAssetsAssetIDParamsWithHTTPClient(client *http.Client) *GetAssetsAssetIDParams

NewGetAssetsAssetIDParamsWithHTTPClient creates a new GetAssetsAssetIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetAssetsAssetIDParamsWithTimeout

func NewGetAssetsAssetIDParamsWithTimeout(timeout time.Duration) *GetAssetsAssetIDParams

NewGetAssetsAssetIDParamsWithTimeout creates a new GetAssetsAssetIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetAssetsAssetIDParams) SetAssetID

func (o *GetAssetsAssetIDParams) SetAssetID(assetID int64)

SetAssetID adds the assetId to the get assets asset id params

func (*GetAssetsAssetIDParams) SetContext

func (o *GetAssetsAssetIDParams) SetContext(ctx context.Context)

SetContext adds the context to the get assets asset id params

func (*GetAssetsAssetIDParams) SetHTTPClient

func (o *GetAssetsAssetIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get assets asset id params

func (*GetAssetsAssetIDParams) SetIncludeCols

func (o *GetAssetsAssetIDParams) SetIncludeCols(includeCols *string)

SetIncludeCols adds the includeCols to the get assets asset id params

func (*GetAssetsAssetIDParams) SetTimeout

func (o *GetAssetsAssetIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get assets asset id params

func (*GetAssetsAssetIDParams) WithAssetID

func (o *GetAssetsAssetIDParams) WithAssetID(assetID int64) *GetAssetsAssetIDParams

WithAssetID adds the assetID to the get assets asset id params

func (*GetAssetsAssetIDParams) WithContext

WithContext adds the context to the get assets asset id params

func (*GetAssetsAssetIDParams) WithHTTPClient

func (o *GetAssetsAssetIDParams) WithHTTPClient(client *http.Client) *GetAssetsAssetIDParams

WithHTTPClient adds the HTTPClient to the get assets asset id params

func (*GetAssetsAssetIDParams) WithIncludeCols

func (o *GetAssetsAssetIDParams) WithIncludeCols(includeCols *string) *GetAssetsAssetIDParams

WithIncludeCols adds the includeCols to the get assets asset id params

func (*GetAssetsAssetIDParams) WithTimeout

WithTimeout adds the timeout to the get assets asset id params

func (*GetAssetsAssetIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAssetsAssetIDReader

type GetAssetsAssetIDReader struct {
	// contains filtered or unexported fields
}

GetAssetsAssetIDReader is a Reader for the GetAssetsAssetID structure.

func (*GetAssetsAssetIDReader) ReadResponse

func (o *GetAssetsAssetIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetAssetsAssetIDServiceUnavailable

type GetAssetsAssetIDServiceUnavailable struct {
}

GetAssetsAssetIDServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewGetAssetsAssetIDServiceUnavailable

func NewGetAssetsAssetIDServiceUnavailable() *GetAssetsAssetIDServiceUnavailable

NewGetAssetsAssetIDServiceUnavailable creates a GetAssetsAssetIDServiceUnavailable with default headers values

func (*GetAssetsAssetIDServiceUnavailable) Error

type GetAssetsAssetIDUnauthorized

type GetAssetsAssetIDUnauthorized struct {
}

GetAssetsAssetIDUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewGetAssetsAssetIDUnauthorized

func NewGetAssetsAssetIDUnauthorized() *GetAssetsAssetIDUnauthorized

NewGetAssetsAssetIDUnauthorized creates a GetAssetsAssetIDUnauthorized with default headers values

func (*GetAssetsAssetIDUnauthorized) Error

type GetAssetsBadRequest

type GetAssetsBadRequest struct {
}

GetAssetsBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewGetAssetsBadRequest

func NewGetAssetsBadRequest() *GetAssetsBadRequest

NewGetAssetsBadRequest creates a GetAssetsBadRequest with default headers values

func (*GetAssetsBadRequest) Error

func (o *GetAssetsBadRequest) Error() string

type GetAssetsForbidden

type GetAssetsForbidden struct {
}

GetAssetsForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewGetAssetsForbidden

func NewGetAssetsForbidden() *GetAssetsForbidden

NewGetAssetsForbidden creates a GetAssetsForbidden with default headers values

func (*GetAssetsForbidden) Error

func (o *GetAssetsForbidden) Error() string

type GetAssetsGone

type GetAssetsGone struct {
}

GetAssetsGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewGetAssetsGone

func NewGetAssetsGone() *GetAssetsGone

NewGetAssetsGone creates a GetAssetsGone with default headers values

func (*GetAssetsGone) Error

func (o *GetAssetsGone) Error() string

type GetAssetsInternalServerError

type GetAssetsInternalServerError struct {
}

GetAssetsInternalServerError handles this case with default header values.

Internal Server Error (Some parameter missing or issue with the server. Check with returned “msg” from the call.)

func NewGetAssetsInternalServerError

func NewGetAssetsInternalServerError() *GetAssetsInternalServerError

NewGetAssetsInternalServerError creates a GetAssetsInternalServerError with default headers values

func (*GetAssetsInternalServerError) Error

type GetAssetsMethodNotAllowed

type GetAssetsMethodNotAllowed struct {
}

GetAssetsMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewGetAssetsMethodNotAllowed

func NewGetAssetsMethodNotAllowed() *GetAssetsMethodNotAllowed

NewGetAssetsMethodNotAllowed creates a GetAssetsMethodNotAllowed with default headers values

func (*GetAssetsMethodNotAllowed) Error

func (o *GetAssetsMethodNotAllowed) Error() string

type GetAssetsNotFound

type GetAssetsNotFound struct {
}

GetAssetsNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewGetAssetsNotFound

func NewGetAssetsNotFound() *GetAssetsNotFound

NewGetAssetsNotFound creates a GetAssetsNotFound with default headers values

func (*GetAssetsNotFound) Error

func (o *GetAssetsNotFound) Error() string

type GetAssetsOK

type GetAssetsOK struct {
	Payload *GetAssetsOKBody
}

GetAssetsOK handles this case with default header values.

The above command returns results like this:

func NewGetAssetsOK

func NewGetAssetsOK() *GetAssetsOK

NewGetAssetsOK creates a GetAssetsOK with default headers values

func (*GetAssetsOK) Error

func (o *GetAssetsOK) Error() string

func (*GetAssetsOK) GetPayload

func (o *GetAssetsOK) GetPayload() *GetAssetsOKBody

type GetAssetsOKBody

type GetAssetsOKBody struct {

	// assets
	Assets []*models.Assets `json:"assets"`

	// limit
	Limit interface{} `json:"limit,omitempty"`

	// offset
	Offset interface{} `json:"offset,omitempty"`

	// total count
	TotalCount interface{} `json:"total_count,omitempty"`
}

GetAssetsOKBody get assets o k body swagger:model GetAssetsOKBody

func (*GetAssetsOKBody) MarshalBinary

func (o *GetAssetsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetAssetsOKBody) UnmarshalBinary

func (o *GetAssetsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetAssetsOKBody) Validate

func (o *GetAssetsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get assets o k body

type GetAssetsParams

type GetAssetsParams struct {

	/*AssetID
	  comma separated values of existing assets.

	*/
	AssetID *string
	/*AssetNo
	  filter by asset # (Added in v6.0.0)

	*/
	AssetNo *string
	/*AssetNoContains
	  search for any asset that contains matching asset # (Added in v9.2.0)

	*/
	AssetNoContains *string
	/*CustomFieldsAnd
	  filter by custom fields, and filter, format of key1:value1,key2:value2

	*/
	CustomFieldsAnd *string
	/*CustomFieldsOr
	  filter by custom fields, or filter, format of key1:value1,key2:value2

	*/
	CustomFieldsOr *string
	/*Customer
	  filter by customer name

	*/
	Customer *string
	/*FirstAddedGt
	  first added greater date YYYY-MM-DD format

	*/
	FirstAddedGt *string
	/*FirstAddedLt
	  first added less than date YYYY-MM-DD format

	*/
	FirstAddedLt *string
	/*LastUpdatedGt
	  last updated greater than date YYYY-MM-DD format

	*/
	LastUpdatedGt *string
	/*LastUpdatedLt
	  last updated less than date YYYY-MM-DD format

	*/
	LastUpdatedLt *string
	/*RelatedDeviceID
	  ID of the related device (added in v9.3.0)

	*/
	RelatedDeviceID *string
	/*SerialNo
	  filter by serial # (Added in v6.0.0)

	*/
	SerialNo *string
	/*ServiceLevel
	  filter by service level name

	*/
	ServiceLevel *string
	/*Tags
	  filter by tags. comma separated for multiple tags (This is an OR filter, gets all the devices for all comma separated tags)

	*/
	Tags *string
	/*TagsAnd
	  filter by all the tags, separated by comma. (This is an AND filter and all tags have to match for filter, this was added in v6.3.1)

	*/
	TagsAnd *string
	/*Type
	  filter by asset type

	*/
	Type *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetAssetsParams contains all the parameters to send to the API endpoint for the get assets operation typically these are written to a http.Request

func NewGetAssetsParams

func NewGetAssetsParams() *GetAssetsParams

NewGetAssetsParams creates a new GetAssetsParams object with the default values initialized.

func NewGetAssetsParamsWithContext

func NewGetAssetsParamsWithContext(ctx context.Context) *GetAssetsParams

NewGetAssetsParamsWithContext creates a new GetAssetsParams object with the default values initialized, and the ability to set a context for a request

func NewGetAssetsParamsWithHTTPClient

func NewGetAssetsParamsWithHTTPClient(client *http.Client) *GetAssetsParams

NewGetAssetsParamsWithHTTPClient creates a new GetAssetsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetAssetsParamsWithTimeout

func NewGetAssetsParamsWithTimeout(timeout time.Duration) *GetAssetsParams

NewGetAssetsParamsWithTimeout creates a new GetAssetsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetAssetsParams) SetAssetID

func (o *GetAssetsParams) SetAssetID(assetID *string)

SetAssetID adds the assetId to the get assets params

func (*GetAssetsParams) SetAssetNo

func (o *GetAssetsParams) SetAssetNo(assetNo *string)

SetAssetNo adds the assetNo to the get assets params

func (*GetAssetsParams) SetAssetNoContains

func (o *GetAssetsParams) SetAssetNoContains(assetNoContains *string)

SetAssetNoContains adds the assetNoContains to the get assets params

func (*GetAssetsParams) SetContext

func (o *GetAssetsParams) SetContext(ctx context.Context)

SetContext adds the context to the get assets params

func (*GetAssetsParams) SetCustomFieldsAnd

func (o *GetAssetsParams) SetCustomFieldsAnd(customFieldsAnd *string)

SetCustomFieldsAnd adds the customFieldsAnd to the get assets params

func (*GetAssetsParams) SetCustomFieldsOr

func (o *GetAssetsParams) SetCustomFieldsOr(customFieldsOr *string)

SetCustomFieldsOr adds the customFieldsOr to the get assets params

func (*GetAssetsParams) SetCustomer

func (o *GetAssetsParams) SetCustomer(customer *string)

SetCustomer adds the customer to the get assets params

func (*GetAssetsParams) SetFirstAddedGt

func (o *GetAssetsParams) SetFirstAddedGt(firstAddedGt *string)

SetFirstAddedGt adds the firstAddedGt to the get assets params

func (*GetAssetsParams) SetFirstAddedLt

func (o *GetAssetsParams) SetFirstAddedLt(firstAddedLt *string)

SetFirstAddedLt adds the firstAddedLt to the get assets params

func (*GetAssetsParams) SetHTTPClient

func (o *GetAssetsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get assets params

func (*GetAssetsParams) SetLastUpdatedGt

func (o *GetAssetsParams) SetLastUpdatedGt(lastUpdatedGt *string)

SetLastUpdatedGt adds the lastUpdatedGt to the get assets params

func (*GetAssetsParams) SetLastUpdatedLt

func (o *GetAssetsParams) SetLastUpdatedLt(lastUpdatedLt *string)

SetLastUpdatedLt adds the lastUpdatedLt to the get assets params

func (*GetAssetsParams) SetRelatedDeviceID

func (o *GetAssetsParams) SetRelatedDeviceID(relatedDeviceID *string)

SetRelatedDeviceID adds the relatedDeviceId to the get assets params

func (*GetAssetsParams) SetSerialNo

func (o *GetAssetsParams) SetSerialNo(serialNo *string)

SetSerialNo adds the serialNo to the get assets params

func (*GetAssetsParams) SetServiceLevel

func (o *GetAssetsParams) SetServiceLevel(serviceLevel *string)

SetServiceLevel adds the serviceLevel to the get assets params

func (*GetAssetsParams) SetTags

func (o *GetAssetsParams) SetTags(tags *string)

SetTags adds the tags to the get assets params

func (*GetAssetsParams) SetTagsAnd

func (o *GetAssetsParams) SetTagsAnd(tagsAnd *string)

SetTagsAnd adds the tagsAnd to the get assets params

func (*GetAssetsParams) SetTimeout

func (o *GetAssetsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get assets params

func (*GetAssetsParams) SetType

func (o *GetAssetsParams) SetType(typeVar *string)

SetType adds the type to the get assets params

func (*GetAssetsParams) WithAssetID

func (o *GetAssetsParams) WithAssetID(assetID *string) *GetAssetsParams

WithAssetID adds the assetID to the get assets params

func (*GetAssetsParams) WithAssetNo

func (o *GetAssetsParams) WithAssetNo(assetNo *string) *GetAssetsParams

WithAssetNo adds the assetNo to the get assets params

func (*GetAssetsParams) WithAssetNoContains

func (o *GetAssetsParams) WithAssetNoContains(assetNoContains *string) *GetAssetsParams

WithAssetNoContains adds the assetNoContains to the get assets params

func (*GetAssetsParams) WithContext

func (o *GetAssetsParams) WithContext(ctx context.Context) *GetAssetsParams

WithContext adds the context to the get assets params

func (*GetAssetsParams) WithCustomFieldsAnd

func (o *GetAssetsParams) WithCustomFieldsAnd(customFieldsAnd *string) *GetAssetsParams

WithCustomFieldsAnd adds the customFieldsAnd to the get assets params

func (*GetAssetsParams) WithCustomFieldsOr

func (o *GetAssetsParams) WithCustomFieldsOr(customFieldsOr *string) *GetAssetsParams

WithCustomFieldsOr adds the customFieldsOr to the get assets params

func (*GetAssetsParams) WithCustomer

func (o *GetAssetsParams) WithCustomer(customer *string) *GetAssetsParams

WithCustomer adds the customer to the get assets params

func (*GetAssetsParams) WithFirstAddedGt

func (o *GetAssetsParams) WithFirstAddedGt(firstAddedGt *string) *GetAssetsParams

WithFirstAddedGt adds the firstAddedGt to the get assets params

func (*GetAssetsParams) WithFirstAddedLt

func (o *GetAssetsParams) WithFirstAddedLt(firstAddedLt *string) *GetAssetsParams

WithFirstAddedLt adds the firstAddedLt to the get assets params

func (*GetAssetsParams) WithHTTPClient

func (o *GetAssetsParams) WithHTTPClient(client *http.Client) *GetAssetsParams

WithHTTPClient adds the HTTPClient to the get assets params

func (*GetAssetsParams) WithLastUpdatedGt

func (o *GetAssetsParams) WithLastUpdatedGt(lastUpdatedGt *string) *GetAssetsParams

WithLastUpdatedGt adds the lastUpdatedGt to the get assets params

func (*GetAssetsParams) WithLastUpdatedLt

func (o *GetAssetsParams) WithLastUpdatedLt(lastUpdatedLt *string) *GetAssetsParams

WithLastUpdatedLt adds the lastUpdatedLt to the get assets params

func (*GetAssetsParams) WithRelatedDeviceID

func (o *GetAssetsParams) WithRelatedDeviceID(relatedDeviceID *string) *GetAssetsParams

WithRelatedDeviceID adds the relatedDeviceID to the get assets params

func (*GetAssetsParams) WithSerialNo

func (o *GetAssetsParams) WithSerialNo(serialNo *string) *GetAssetsParams

WithSerialNo adds the serialNo to the get assets params

func (*GetAssetsParams) WithServiceLevel

func (o *GetAssetsParams) WithServiceLevel(serviceLevel *string) *GetAssetsParams

WithServiceLevel adds the serviceLevel to the get assets params

func (*GetAssetsParams) WithTags

func (o *GetAssetsParams) WithTags(tags *string) *GetAssetsParams

WithTags adds the tags to the get assets params

func (*GetAssetsParams) WithTagsAnd

func (o *GetAssetsParams) WithTagsAnd(tagsAnd *string) *GetAssetsParams

WithTagsAnd adds the tagsAnd to the get assets params

func (*GetAssetsParams) WithTimeout

func (o *GetAssetsParams) WithTimeout(timeout time.Duration) *GetAssetsParams

WithTimeout adds the timeout to the get assets params

func (*GetAssetsParams) WithType

func (o *GetAssetsParams) WithType(typeVar *string) *GetAssetsParams

WithType adds the typeVar to the get assets params

func (*GetAssetsParams) WriteToRequest

func (o *GetAssetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetAssetsReader

type GetAssetsReader struct {
	// contains filtered or unexported fields
}

GetAssetsReader is a Reader for the GetAssets structure.

func (*GetAssetsReader) ReadResponse

func (o *GetAssetsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetAssetsServiceUnavailable

type GetAssetsServiceUnavailable struct {
}

GetAssetsServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewGetAssetsServiceUnavailable

func NewGetAssetsServiceUnavailable() *GetAssetsServiceUnavailable

NewGetAssetsServiceUnavailable creates a GetAssetsServiceUnavailable with default headers values

func (*GetAssetsServiceUnavailable) Error

type GetAssetsUnauthorized

type GetAssetsUnauthorized struct {
}

GetAssetsUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewGetAssetsUnauthorized

func NewGetAssetsUnauthorized() *GetAssetsUnauthorized

NewGetAssetsUnauthorized creates a GetAssetsUnauthorized with default headers values

func (*GetAssetsUnauthorized) Error

func (o *GetAssetsUnauthorized) Error() string

type PostAssetsBadRequest

type PostAssetsBadRequest struct {
}

PostAssetsBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewPostAssetsBadRequest

func NewPostAssetsBadRequest() *PostAssetsBadRequest

NewPostAssetsBadRequest creates a PostAssetsBadRequest with default headers values

func (*PostAssetsBadRequest) Error

func (o *PostAssetsBadRequest) Error() string

type PostAssetsForbidden

type PostAssetsForbidden struct {
}

PostAssetsForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewPostAssetsForbidden

func NewPostAssetsForbidden() *PostAssetsForbidden

NewPostAssetsForbidden creates a PostAssetsForbidden with default headers values

func (*PostAssetsForbidden) Error

func (o *PostAssetsForbidden) Error() string

type PostAssetsGone

type PostAssetsGone struct {
}

PostAssetsGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewPostAssetsGone

func NewPostAssetsGone() *PostAssetsGone

NewPostAssetsGone creates a PostAssetsGone with default headers values

func (*PostAssetsGone) Error

func (o *PostAssetsGone) Error() string

type PostAssetsInternalServerError

type PostAssetsInternalServerError struct {
}

PostAssetsInternalServerError handles this case with default header values.

Internal Server Error (Some parameter missing or issue with the server. Check with returned “msg” from the call.)

func NewPostAssetsInternalServerError

func NewPostAssetsInternalServerError() *PostAssetsInternalServerError

NewPostAssetsInternalServerError creates a PostAssetsInternalServerError with default headers values

func (*PostAssetsInternalServerError) Error

type PostAssetsMethodNotAllowed

type PostAssetsMethodNotAllowed struct {
}

PostAssetsMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewPostAssetsMethodNotAllowed

func NewPostAssetsMethodNotAllowed() *PostAssetsMethodNotAllowed

NewPostAssetsMethodNotAllowed creates a PostAssetsMethodNotAllowed with default headers values

func (*PostAssetsMethodNotAllowed) Error

type PostAssetsNotFound

type PostAssetsNotFound struct {
}

PostAssetsNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewPostAssetsNotFound

func NewPostAssetsNotFound() *PostAssetsNotFound

NewPostAssetsNotFound creates a PostAssetsNotFound with default headers values

func (*PostAssetsNotFound) Error

func (o *PostAssetsNotFound) Error() string

type PostAssetsOK

type PostAssetsOK struct {
	Payload *PostAssetsOKBody
}

PostAssetsOK handles this case with default header values.

The above command returns results like this:

func NewPostAssetsOK

func NewPostAssetsOK() *PostAssetsOK

NewPostAssetsOK creates a PostAssetsOK with default headers values

func (*PostAssetsOK) Error

func (o *PostAssetsOK) Error() string

func (*PostAssetsOK) GetPayload

func (o *PostAssetsOK) GetPayload() *PostAssetsOKBody

type PostAssetsOKBody

type PostAssetsOKBody struct {

	// code
	Code interface{} `json:"code,omitempty"`

	// msg
	Msg interface{} `json:"msg,omitempty"`
}

PostAssetsOKBody post assets o k body swagger:model PostAssetsOKBody

func (*PostAssetsOKBody) MarshalBinary

func (o *PostAssetsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostAssetsOKBody) UnmarshalBinary

func (o *PostAssetsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostAssetsOKBody) Validate

func (o *PostAssetsOKBody) Validate(formats strfmt.Registry) error

Validate validates this post assets o k body

type PostAssetsParams

type PostAssetsParams struct {

	/*AssetNo*/
	AssetNo *string
	/*BackImage
	  name of the back image file. Use instead of back_image_id.

	*/
	BackImage *string
	/*BackImageID
	  back image file id. You can see these from Tools > Import > Hardware Import for now.

	*/
	BackImageID *string
	/*Building*/
	Building *string
	/*Category
	  If multitenancy is on, admin groups that have access to this object are specified here, e.g. Prod_East:no,Corp:yes specifies that the admin groups for this object are Prod_East with view only permission and Corp with change permission.

	*/
	Category *string
	/*Customer
	  Name of existing customer.

	*/
	Customer *string
	/*Depth
	  Half depth by default. full to override. Optional.

	*/
	Depth *string
	/*DeviceID
	  ID of the related device

	*/
	DeviceID *int64
	/*Imgfile
	  name of the image file (Added in v5.8.2). Use instead of imgfile_id

	*/
	Imgfile *string
	/*ImgfileID
	  image file id. You can see these from Tools > Import > Hardware Import for now.

	*/
	ImgfileID *string
	/*Location
	  Location/region of instance deployment

	*/
	Location *string
	/*ModuleHost
	  Name of the Module host. Must be unique asset name for this to work. (use instead of ID, Added in v5.8.2)

	*/
	ModuleHost *string
	/*ModuleHostID*/
	ModuleHostID *string
	/*Name
	  name of asset

	*/
	Name *string
	/*Notes
	  Any additional notes

	*/
	Notes *string
	/*NumberingStartFrom
	  This is starting # for patch panel ports. Defaults to 1 if not entered.

	*/
	NumberingStartFrom *string
	/*Orientation
	  Back if back facing. Otherwise ignored

	*/
	Orientation *string
	/*PatchPanelModel
	  Name of the patch panel model (use instead of ID, Added in v5.8.2)

	*/
	PatchPanelModel *string
	/*PatchPanelModelID
	  Patch Panel Model ID or UI Tools > Export > Patch Panel Model

	*/
	PatchPanelModelID *string
	/*PatchPanelModuleModel
	  Name of the patch panel module model (use instead of ID, Added in v5.8.2)

	*/
	PatchPanelModuleModel *string
	/*PatchPanelModuleModelID*/
	PatchPanelModuleModelID *string
	/*RackID
	  ID of existing rack to add asset to.

	*/
	RackID *string
	/*Room
	  Used to identify a unique rack or to place asset in existing room.

	*/
	Room *string
	/*SerialNo*/
	SerialNo *string
	/*ServiceLevel
	  In Service, Spare, Not in Service are pre-defined - or choose your own.

	*/
	ServiceLevel *string
	/*Size
	  Required if adding asset to rack. in U.

	*/
	Size *int64
	/*SlotNo*/
	SlotNo *string
	/*StartAt
	  Required if adding to rack. U Start location.

	*/
	StartAt *string
	/*Tags
	  add tags (comma separated)

	*/
	Tags *string
	/*TagsRemove
	  remove tags (comma separated)

	*/
	TagsRemove *string
	/*Type
	  You can choose an existing type or add a new type here.

	*/
	Type string
	/*Vendor
	  Name of existing vendor

	*/
	Vendor *string
	/*Where
	  Location in a rack. Note: If mounted a size must be provided or available from the hardware model.

	*/
	Where *string
	/*XPos
	  A number between 0 and 2520 representing the position within the u slot in increments of 252, which is equal to 1/10th of the width of the rack. 0 will place a device flush left, 1260 will place the left side of a device in center.

	*/
	XPos *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostAssetsParams contains all the parameters to send to the API endpoint for the post assets operation typically these are written to a http.Request

func NewPostAssetsParams

func NewPostAssetsParams() *PostAssetsParams

NewPostAssetsParams creates a new PostAssetsParams object with the default values initialized.

func NewPostAssetsParamsWithContext

func NewPostAssetsParamsWithContext(ctx context.Context) *PostAssetsParams

NewPostAssetsParamsWithContext creates a new PostAssetsParams object with the default values initialized, and the ability to set a context for a request

func NewPostAssetsParamsWithHTTPClient

func NewPostAssetsParamsWithHTTPClient(client *http.Client) *PostAssetsParams

NewPostAssetsParamsWithHTTPClient creates a new PostAssetsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPostAssetsParamsWithTimeout

func NewPostAssetsParamsWithTimeout(timeout time.Duration) *PostAssetsParams

NewPostAssetsParamsWithTimeout creates a new PostAssetsParams object with the default values initialized, and the ability to set a timeout on a request

func (*PostAssetsParams) SetAssetNo

func (o *PostAssetsParams) SetAssetNo(assetNo *string)

SetAssetNo adds the assetNo to the post assets params

func (*PostAssetsParams) SetBackImage

func (o *PostAssetsParams) SetBackImage(backImage *string)

SetBackImage adds the backImage to the post assets params

func (*PostAssetsParams) SetBackImageID

func (o *PostAssetsParams) SetBackImageID(backImageID *string)

SetBackImageID adds the backImageId to the post assets params

func (*PostAssetsParams) SetBuilding

func (o *PostAssetsParams) SetBuilding(building *string)

SetBuilding adds the building to the post assets params

func (*PostAssetsParams) SetCategory

func (o *PostAssetsParams) SetCategory(category *string)

SetCategory adds the category to the post assets params

func (*PostAssetsParams) SetContext

func (o *PostAssetsParams) SetContext(ctx context.Context)

SetContext adds the context to the post assets params

func (*PostAssetsParams) SetCustomer

func (o *PostAssetsParams) SetCustomer(customer *string)

SetCustomer adds the customer to the post assets params

func (*PostAssetsParams) SetDepth

func (o *PostAssetsParams) SetDepth(depth *string)

SetDepth adds the depth to the post assets params

func (*PostAssetsParams) SetDeviceID

func (o *PostAssetsParams) SetDeviceID(deviceID *int64)

SetDeviceID adds the deviceId to the post assets params

func (*PostAssetsParams) SetHTTPClient

func (o *PostAssetsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post assets params

func (*PostAssetsParams) SetImgfile

func (o *PostAssetsParams) SetImgfile(imgfile *string)

SetImgfile adds the imgfile to the post assets params

func (*PostAssetsParams) SetImgfileID

func (o *PostAssetsParams) SetImgfileID(imgfileID *string)

SetImgfileID adds the imgfileId to the post assets params

func (*PostAssetsParams) SetLocation

func (o *PostAssetsParams) SetLocation(location *string)

SetLocation adds the location to the post assets params

func (*PostAssetsParams) SetModuleHost

func (o *PostAssetsParams) SetModuleHost(moduleHost *string)

SetModuleHost adds the moduleHost to the post assets params

func (*PostAssetsParams) SetModuleHostID

func (o *PostAssetsParams) SetModuleHostID(moduleHostID *string)

SetModuleHostID adds the moduleHostId to the post assets params

func (*PostAssetsParams) SetName

func (o *PostAssetsParams) SetName(name *string)

SetName adds the name to the post assets params

func (*PostAssetsParams) SetNotes

func (o *PostAssetsParams) SetNotes(notes *string)

SetNotes adds the notes to the post assets params

func (*PostAssetsParams) SetNumberingStartFrom

func (o *PostAssetsParams) SetNumberingStartFrom(numberingStartFrom *string)

SetNumberingStartFrom adds the numberingStartFrom to the post assets params

func (*PostAssetsParams) SetOrientation

func (o *PostAssetsParams) SetOrientation(orientation *string)

SetOrientation adds the orientation to the post assets params

func (*PostAssetsParams) SetPatchPanelModel

func (o *PostAssetsParams) SetPatchPanelModel(patchPanelModel *string)

SetPatchPanelModel adds the patchPanelModel to the post assets params

func (*PostAssetsParams) SetPatchPanelModelID

func (o *PostAssetsParams) SetPatchPanelModelID(patchPanelModelID *string)

SetPatchPanelModelID adds the patchPanelModelId to the post assets params

func (*PostAssetsParams) SetPatchPanelModuleModel

func (o *PostAssetsParams) SetPatchPanelModuleModel(patchPanelModuleModel *string)

SetPatchPanelModuleModel adds the patchPanelModuleModel to the post assets params

func (*PostAssetsParams) SetPatchPanelModuleModelID

func (o *PostAssetsParams) SetPatchPanelModuleModelID(patchPanelModuleModelID *string)

SetPatchPanelModuleModelID adds the patchPanelModuleModelId to the post assets params

func (*PostAssetsParams) SetRackID

func (o *PostAssetsParams) SetRackID(rackID *string)

SetRackID adds the rackId to the post assets params

func (*PostAssetsParams) SetRoom

func (o *PostAssetsParams) SetRoom(room *string)

SetRoom adds the room to the post assets params

func (*PostAssetsParams) SetSerialNo

func (o *PostAssetsParams) SetSerialNo(serialNo *string)

SetSerialNo adds the serialNo to the post assets params

func (*PostAssetsParams) SetServiceLevel

func (o *PostAssetsParams) SetServiceLevel(serviceLevel *string)

SetServiceLevel adds the serviceLevel to the post assets params

func (*PostAssetsParams) SetSize

func (o *PostAssetsParams) SetSize(size *int64)

SetSize adds the size to the post assets params

func (*PostAssetsParams) SetSlotNo

func (o *PostAssetsParams) SetSlotNo(slotNo *string)

SetSlotNo adds the slotNo to the post assets params

func (*PostAssetsParams) SetStartAt

func (o *PostAssetsParams) SetStartAt(startAt *string)

SetStartAt adds the startAt to the post assets params

func (*PostAssetsParams) SetTags

func (o *PostAssetsParams) SetTags(tags *string)

SetTags adds the tags to the post assets params

func (*PostAssetsParams) SetTagsRemove

func (o *PostAssetsParams) SetTagsRemove(tagsRemove *string)

SetTagsRemove adds the tagsRemove to the post assets params

func (*PostAssetsParams) SetTimeout

func (o *PostAssetsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post assets params

func (*PostAssetsParams) SetType

func (o *PostAssetsParams) SetType(typeVar string)

SetType adds the type to the post assets params

func (*PostAssetsParams) SetVendor

func (o *PostAssetsParams) SetVendor(vendor *string)

SetVendor adds the vendor to the post assets params

func (*PostAssetsParams) SetWhere

func (o *PostAssetsParams) SetWhere(where *string)

SetWhere adds the where to the post assets params

func (*PostAssetsParams) SetXPos

func (o *PostAssetsParams) SetXPos(xPos *int64)

SetXPos adds the xPos to the post assets params

func (*PostAssetsParams) WithAssetNo

func (o *PostAssetsParams) WithAssetNo(assetNo *string) *PostAssetsParams

WithAssetNo adds the assetNo to the post assets params

func (*PostAssetsParams) WithBackImage

func (o *PostAssetsParams) WithBackImage(backImage *string) *PostAssetsParams

WithBackImage adds the backImage to the post assets params

func (*PostAssetsParams) WithBackImageID

func (o *PostAssetsParams) WithBackImageID(backImageID *string) *PostAssetsParams

WithBackImageID adds the backImageID to the post assets params

func (*PostAssetsParams) WithBuilding

func (o *PostAssetsParams) WithBuilding(building *string) *PostAssetsParams

WithBuilding adds the building to the post assets params

func (*PostAssetsParams) WithCategory

func (o *PostAssetsParams) WithCategory(category *string) *PostAssetsParams

WithCategory adds the category to the post assets params

func (*PostAssetsParams) WithContext

func (o *PostAssetsParams) WithContext(ctx context.Context) *PostAssetsParams

WithContext adds the context to the post assets params

func (*PostAssetsParams) WithCustomer

func (o *PostAssetsParams) WithCustomer(customer *string) *PostAssetsParams

WithCustomer adds the customer to the post assets params

func (*PostAssetsParams) WithDepth

func (o *PostAssetsParams) WithDepth(depth *string) *PostAssetsParams

WithDepth adds the depth to the post assets params

func (*PostAssetsParams) WithDeviceID

func (o *PostAssetsParams) WithDeviceID(deviceID *int64) *PostAssetsParams

WithDeviceID adds the deviceID to the post assets params

func (*PostAssetsParams) WithHTTPClient

func (o *PostAssetsParams) WithHTTPClient(client *http.Client) *PostAssetsParams

WithHTTPClient adds the HTTPClient to the post assets params

func (*PostAssetsParams) WithImgfile

func (o *PostAssetsParams) WithImgfile(imgfile *string) *PostAssetsParams

WithImgfile adds the imgfile to the post assets params

func (*PostAssetsParams) WithImgfileID

func (o *PostAssetsParams) WithImgfileID(imgfileID *string) *PostAssetsParams

WithImgfileID adds the imgfileID to the post assets params

func (*PostAssetsParams) WithLocation

func (o *PostAssetsParams) WithLocation(location *string) *PostAssetsParams

WithLocation adds the location to the post assets params

func (*PostAssetsParams) WithModuleHost

func (o *PostAssetsParams) WithModuleHost(moduleHost *string) *PostAssetsParams

WithModuleHost adds the moduleHost to the post assets params

func (*PostAssetsParams) WithModuleHostID

func (o *PostAssetsParams) WithModuleHostID(moduleHostID *string) *PostAssetsParams

WithModuleHostID adds the moduleHostID to the post assets params

func (*PostAssetsParams) WithName

func (o *PostAssetsParams) WithName(name *string) *PostAssetsParams

WithName adds the name to the post assets params

func (*PostAssetsParams) WithNotes

func (o *PostAssetsParams) WithNotes(notes *string) *PostAssetsParams

WithNotes adds the notes to the post assets params

func (*PostAssetsParams) WithNumberingStartFrom

func (o *PostAssetsParams) WithNumberingStartFrom(numberingStartFrom *string) *PostAssetsParams

WithNumberingStartFrom adds the numberingStartFrom to the post assets params

func (*PostAssetsParams) WithOrientation

func (o *PostAssetsParams) WithOrientation(orientation *string) *PostAssetsParams

WithOrientation adds the orientation to the post assets params

func (*PostAssetsParams) WithPatchPanelModel

func (o *PostAssetsParams) WithPatchPanelModel(patchPanelModel *string) *PostAssetsParams

WithPatchPanelModel adds the patchPanelModel to the post assets params

func (*PostAssetsParams) WithPatchPanelModelID

func (o *PostAssetsParams) WithPatchPanelModelID(patchPanelModelID *string) *PostAssetsParams

WithPatchPanelModelID adds the patchPanelModelID to the post assets params

func (*PostAssetsParams) WithPatchPanelModuleModel

func (o *PostAssetsParams) WithPatchPanelModuleModel(patchPanelModuleModel *string) *PostAssetsParams

WithPatchPanelModuleModel adds the patchPanelModuleModel to the post assets params

func (*PostAssetsParams) WithPatchPanelModuleModelID

func (o *PostAssetsParams) WithPatchPanelModuleModelID(patchPanelModuleModelID *string) *PostAssetsParams

WithPatchPanelModuleModelID adds the patchPanelModuleModelID to the post assets params

func (*PostAssetsParams) WithRackID

func (o *PostAssetsParams) WithRackID(rackID *string) *PostAssetsParams

WithRackID adds the rackID to the post assets params

func (*PostAssetsParams) WithRoom

func (o *PostAssetsParams) WithRoom(room *string) *PostAssetsParams

WithRoom adds the room to the post assets params

func (*PostAssetsParams) WithSerialNo

func (o *PostAssetsParams) WithSerialNo(serialNo *string) *PostAssetsParams

WithSerialNo adds the serialNo to the post assets params

func (*PostAssetsParams) WithServiceLevel

func (o *PostAssetsParams) WithServiceLevel(serviceLevel *string) *PostAssetsParams

WithServiceLevel adds the serviceLevel to the post assets params

func (*PostAssetsParams) WithSize

func (o *PostAssetsParams) WithSize(size *int64) *PostAssetsParams

WithSize adds the size to the post assets params

func (*PostAssetsParams) WithSlotNo

func (o *PostAssetsParams) WithSlotNo(slotNo *string) *PostAssetsParams

WithSlotNo adds the slotNo to the post assets params

func (*PostAssetsParams) WithStartAt

func (o *PostAssetsParams) WithStartAt(startAt *string) *PostAssetsParams

WithStartAt adds the startAt to the post assets params

func (*PostAssetsParams) WithTags

func (o *PostAssetsParams) WithTags(tags *string) *PostAssetsParams

WithTags adds the tags to the post assets params

func (*PostAssetsParams) WithTagsRemove

func (o *PostAssetsParams) WithTagsRemove(tagsRemove *string) *PostAssetsParams

WithTagsRemove adds the tagsRemove to the post assets params

func (*PostAssetsParams) WithTimeout

func (o *PostAssetsParams) WithTimeout(timeout time.Duration) *PostAssetsParams

WithTimeout adds the timeout to the post assets params

func (*PostAssetsParams) WithType

func (o *PostAssetsParams) WithType(typeVar string) *PostAssetsParams

WithType adds the typeVar to the post assets params

func (*PostAssetsParams) WithVendor

func (o *PostAssetsParams) WithVendor(vendor *string) *PostAssetsParams

WithVendor adds the vendor to the post assets params

func (*PostAssetsParams) WithWhere

func (o *PostAssetsParams) WithWhere(where *string) *PostAssetsParams

WithWhere adds the where to the post assets params

func (*PostAssetsParams) WithXPos

func (o *PostAssetsParams) WithXPos(xPos *int64) *PostAssetsParams

WithXPos adds the xPos to the post assets params

func (*PostAssetsParams) WriteToRequest

func (o *PostAssetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostAssetsReader

type PostAssetsReader struct {
	// contains filtered or unexported fields
}

PostAssetsReader is a Reader for the PostAssets structure.

func (*PostAssetsReader) ReadResponse

func (o *PostAssetsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostAssetsServiceUnavailable

type PostAssetsServiceUnavailable struct {
}

PostAssetsServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewPostAssetsServiceUnavailable

func NewPostAssetsServiceUnavailable() *PostAssetsServiceUnavailable

NewPostAssetsServiceUnavailable creates a PostAssetsServiceUnavailable with default headers values

func (*PostAssetsServiceUnavailable) Error

type PostAssetsUnauthorized

type PostAssetsUnauthorized struct {
}

PostAssetsUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewPostAssetsUnauthorized

func NewPostAssetsUnauthorized() *PostAssetsUnauthorized

NewPostAssetsUnauthorized creates a PostAssetsUnauthorized with default headers values

func (*PostAssetsUnauthorized) Error

func (o *PostAssetsUnauthorized) Error() string

type PutAssetsBadRequest

type PutAssetsBadRequest struct {
}

PutAssetsBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewPutAssetsBadRequest

func NewPutAssetsBadRequest() *PutAssetsBadRequest

NewPutAssetsBadRequest creates a PutAssetsBadRequest with default headers values

func (*PutAssetsBadRequest) Error

func (o *PutAssetsBadRequest) Error() string

type PutAssetsForbidden

type PutAssetsForbidden struct {
}

PutAssetsForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewPutAssetsForbidden

func NewPutAssetsForbidden() *PutAssetsForbidden

NewPutAssetsForbidden creates a PutAssetsForbidden with default headers values

func (*PutAssetsForbidden) Error

func (o *PutAssetsForbidden) Error() string

type PutAssetsGone

type PutAssetsGone struct {
}

PutAssetsGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewPutAssetsGone

func NewPutAssetsGone() *PutAssetsGone

NewPutAssetsGone creates a PutAssetsGone with default headers values

func (*PutAssetsGone) Error

func (o *PutAssetsGone) Error() string

type PutAssetsInternalServerError

type PutAssetsInternalServerError struct {
}

PutAssetsInternalServerError handles this case with default header values.

Internal Server Error (Some parameter missing or issue with the server. Check with returned “msg” from the call.)

func NewPutAssetsInternalServerError

func NewPutAssetsInternalServerError() *PutAssetsInternalServerError

NewPutAssetsInternalServerError creates a PutAssetsInternalServerError with default headers values

func (*PutAssetsInternalServerError) Error

type PutAssetsMethodNotAllowed

type PutAssetsMethodNotAllowed struct {
}

PutAssetsMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewPutAssetsMethodNotAllowed

func NewPutAssetsMethodNotAllowed() *PutAssetsMethodNotAllowed

NewPutAssetsMethodNotAllowed creates a PutAssetsMethodNotAllowed with default headers values

func (*PutAssetsMethodNotAllowed) Error

func (o *PutAssetsMethodNotAllowed) Error() string

type PutAssetsNotFound

type PutAssetsNotFound struct {
}

PutAssetsNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewPutAssetsNotFound

func NewPutAssetsNotFound() *PutAssetsNotFound

NewPutAssetsNotFound creates a PutAssetsNotFound with default headers values

func (*PutAssetsNotFound) Error

func (o *PutAssetsNotFound) Error() string

type PutAssetsOK

type PutAssetsOK struct {
	Payload *PutAssetsOKBody
}

PutAssetsOK handles this case with default header values.

The above command returns results like this:

func NewPutAssetsOK

func NewPutAssetsOK() *PutAssetsOK

NewPutAssetsOK creates a PutAssetsOK with default headers values

func (*PutAssetsOK) Error

func (o *PutAssetsOK) Error() string

func (*PutAssetsOK) GetPayload

func (o *PutAssetsOK) GetPayload() *PutAssetsOKBody

type PutAssetsOKBody

type PutAssetsOKBody struct {

	// code
	Code interface{} `json:"code,omitempty"`

	// msg
	Msg interface{} `json:"msg,omitempty"`
}

PutAssetsOKBody put assets o k body swagger:model PutAssetsOKBody

func (*PutAssetsOKBody) MarshalBinary

func (o *PutAssetsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PutAssetsOKBody) UnmarshalBinary

func (o *PutAssetsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PutAssetsOKBody) Validate

func (o *PutAssetsOKBody) Validate(formats strfmt.Registry) error

Validate validates this put assets o k body

type PutAssetsParams

type PutAssetsParams struct {

	/*Asset
	  Name of asset. Required if asset_id not provided.

	*/
	Asset *string
	/*AssetID
	  Asset ID

	*/
	AssetID *int64
	/*AssetNo*/
	AssetNo *string
	/*BackImage
	  name of the back image file. Use instead of back_image_id.

	*/
	BackImage *string
	/*BackImageID
	  back image file id. You can see these from Tools > Import > Hardware Import for now.

	*/
	BackImageID *string
	/*Building*/
	Building *string
	/*Category
	  name of the category

	*/
	Category *string
	/*Customer
	  Name of existing customer.

	*/
	Customer *string
	/*Depth
	  Half depth by default. full to override. Optional.

	*/
	Depth *string
	/*DeviceID
	  ID of the related device

	*/
	DeviceID *int64
	/*Imgfile
	  name of the image file (Added in v5.8.2). Use instead of imgfile_id

	*/
	Imgfile *string
	/*ImgfileID
	  image file id. You can see these from Tools > Import > Hardware Import for now.

	*/
	ImgfileID *string
	/*Location
	  Location/region of instance deployment

	*/
	Location *string
	/*ModuleHost
	  Name of the Module host. Must be unique asset name for this to work. (use instead of ID, Added in v5.8.2)

	*/
	ModuleHost *string
	/*ModuleHostID*/
	ModuleHostID *string
	/*Notes
	  Any additional notes

	*/
	Notes *string
	/*NumberingStartFrom
	  This is starting # for patch panel ports. Defaults to 1 if not entered.

	*/
	NumberingStartFrom *string
	/*Orientation
	  Back if back facing. Otherwise ignored

	*/
	Orientation *string
	/*PatchPanelModel
	  Name of the patch panel model (use instead of ID, Added in v5.8.2)

	*/
	PatchPanelModel *string
	/*PatchPanelModelID
	  Patch Panel Model ID or UI Tools > Export > Patch Panel Model

	*/
	PatchPanelModelID *string
	/*PatchPanelModuleModel
	  Name of the patch panel module model (use instead of ID, Added in v5.8.2)

	*/
	PatchPanelModuleModel *string
	/*PatchPanelModuleModelID*/
	PatchPanelModuleModelID *string
	/*RackID
	  ID of existing rack to add asset to.

	*/
	RackID *string
	/*Room
	  Used to identify a unique rack or to place asset in existing room.

	*/
	Room *string
	/*SerialNo*/
	SerialNo *string
	/*ServiceLevel
	  In Service, Spare, Not in Service are pre-defined - or choose your own.

	*/
	ServiceLevel *string
	/*Size
	  Required if adding asset to rack. in U.

	*/
	Size *int64
	/*SlotNo*/
	SlotNo *string
	/*StartAt
	  Required if adding to rack. U Start location.

	*/
	StartAt *string
	/*Tags
	  add tags (comma separated)

	*/
	Tags *string
	/*TagsRemove
	  remove tags (comma separated)

	*/
	TagsRemove *string
	/*Type
	  Used to change/add the type of asset

	*/
	Type *string
	/*Vendor
	  Name of existing vendor

	*/
	Vendor *string
	/*Where
	  Location in a rack. Note: If mounted a size must be provided or available from the hardware model.

	*/
	Where *string
	/*XPos
	  A number between 0 and 2520 representing the position within the u slot in increments of 252, which is equal to 1/10th of the width of the rack. 0 will place a device flush left, 1260 will place the left side of a device in center.

	*/
	XPos *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PutAssetsParams contains all the parameters to send to the API endpoint for the put assets operation typically these are written to a http.Request

func NewPutAssetsParams

func NewPutAssetsParams() *PutAssetsParams

NewPutAssetsParams creates a new PutAssetsParams object with the default values initialized.

func NewPutAssetsParamsWithContext

func NewPutAssetsParamsWithContext(ctx context.Context) *PutAssetsParams

NewPutAssetsParamsWithContext creates a new PutAssetsParams object with the default values initialized, and the ability to set a context for a request

func NewPutAssetsParamsWithHTTPClient

func NewPutAssetsParamsWithHTTPClient(client *http.Client) *PutAssetsParams

NewPutAssetsParamsWithHTTPClient creates a new PutAssetsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPutAssetsParamsWithTimeout

func NewPutAssetsParamsWithTimeout(timeout time.Duration) *PutAssetsParams

NewPutAssetsParamsWithTimeout creates a new PutAssetsParams object with the default values initialized, and the ability to set a timeout on a request

func (*PutAssetsParams) SetAsset

func (o *PutAssetsParams) SetAsset(asset *string)

SetAsset adds the asset to the put assets params

func (*PutAssetsParams) SetAssetID

func (o *PutAssetsParams) SetAssetID(assetID *int64)

SetAssetID adds the assetId to the put assets params

func (*PutAssetsParams) SetAssetNo

func (o *PutAssetsParams) SetAssetNo(assetNo *string)

SetAssetNo adds the assetNo to the put assets params

func (*PutAssetsParams) SetBackImage

func (o *PutAssetsParams) SetBackImage(backImage *string)

SetBackImage adds the backImage to the put assets params

func (*PutAssetsParams) SetBackImageID

func (o *PutAssetsParams) SetBackImageID(backImageID *string)

SetBackImageID adds the backImageId to the put assets params

func (*PutAssetsParams) SetBuilding

func (o *PutAssetsParams) SetBuilding(building *string)

SetBuilding adds the building to the put assets params

func (*PutAssetsParams) SetCategory

func (o *PutAssetsParams) SetCategory(category *string)

SetCategory adds the category to the put assets params

func (*PutAssetsParams) SetContext

func (o *PutAssetsParams) SetContext(ctx context.Context)

SetContext adds the context to the put assets params

func (*PutAssetsParams) SetCustomer

func (o *PutAssetsParams) SetCustomer(customer *string)

SetCustomer adds the customer to the put assets params

func (*PutAssetsParams) SetDepth

func (o *PutAssetsParams) SetDepth(depth *string)

SetDepth adds the depth to the put assets params

func (*PutAssetsParams) SetDeviceID

func (o *PutAssetsParams) SetDeviceID(deviceID *int64)

SetDeviceID adds the deviceId to the put assets params

func (*PutAssetsParams) SetHTTPClient

func (o *PutAssetsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the put assets params

func (*PutAssetsParams) SetImgfile

func (o *PutAssetsParams) SetImgfile(imgfile *string)

SetImgfile adds the imgfile to the put assets params

func (*PutAssetsParams) SetImgfileID

func (o *PutAssetsParams) SetImgfileID(imgfileID *string)

SetImgfileID adds the imgfileId to the put assets params

func (*PutAssetsParams) SetLocation

func (o *PutAssetsParams) SetLocation(location *string)

SetLocation adds the location to the put assets params

func (*PutAssetsParams) SetModuleHost

func (o *PutAssetsParams) SetModuleHost(moduleHost *string)

SetModuleHost adds the moduleHost to the put assets params

func (*PutAssetsParams) SetModuleHostID

func (o *PutAssetsParams) SetModuleHostID(moduleHostID *string)

SetModuleHostID adds the moduleHostId to the put assets params

func (*PutAssetsParams) SetNotes

func (o *PutAssetsParams) SetNotes(notes *string)

SetNotes adds the notes to the put assets params

func (*PutAssetsParams) SetNumberingStartFrom

func (o *PutAssetsParams) SetNumberingStartFrom(numberingStartFrom *string)

SetNumberingStartFrom adds the numberingStartFrom to the put assets params

func (*PutAssetsParams) SetOrientation

func (o *PutAssetsParams) SetOrientation(orientation *string)

SetOrientation adds the orientation to the put assets params

func (*PutAssetsParams) SetPatchPanelModel

func (o *PutAssetsParams) SetPatchPanelModel(patchPanelModel *string)

SetPatchPanelModel adds the patchPanelModel to the put assets params

func (*PutAssetsParams) SetPatchPanelModelID

func (o *PutAssetsParams) SetPatchPanelModelID(patchPanelModelID *string)

SetPatchPanelModelID adds the patchPanelModelId to the put assets params

func (*PutAssetsParams) SetPatchPanelModuleModel

func (o *PutAssetsParams) SetPatchPanelModuleModel(patchPanelModuleModel *string)

SetPatchPanelModuleModel adds the patchPanelModuleModel to the put assets params

func (*PutAssetsParams) SetPatchPanelModuleModelID

func (o *PutAssetsParams) SetPatchPanelModuleModelID(patchPanelModuleModelID *string)

SetPatchPanelModuleModelID adds the patchPanelModuleModelId to the put assets params

func (*PutAssetsParams) SetRackID

func (o *PutAssetsParams) SetRackID(rackID *string)

SetRackID adds the rackId to the put assets params

func (*PutAssetsParams) SetRoom

func (o *PutAssetsParams) SetRoom(room *string)

SetRoom adds the room to the put assets params

func (*PutAssetsParams) SetSerialNo

func (o *PutAssetsParams) SetSerialNo(serialNo *string)

SetSerialNo adds the serialNo to the put assets params

func (*PutAssetsParams) SetServiceLevel

func (o *PutAssetsParams) SetServiceLevel(serviceLevel *string)

SetServiceLevel adds the serviceLevel to the put assets params

func (*PutAssetsParams) SetSize

func (o *PutAssetsParams) SetSize(size *int64)

SetSize adds the size to the put assets params

func (*PutAssetsParams) SetSlotNo

func (o *PutAssetsParams) SetSlotNo(slotNo *string)

SetSlotNo adds the slotNo to the put assets params

func (*PutAssetsParams) SetStartAt

func (o *PutAssetsParams) SetStartAt(startAt *string)

SetStartAt adds the startAt to the put assets params

func (*PutAssetsParams) SetTags

func (o *PutAssetsParams) SetTags(tags *string)

SetTags adds the tags to the put assets params

func (*PutAssetsParams) SetTagsRemove

func (o *PutAssetsParams) SetTagsRemove(tagsRemove *string)

SetTagsRemove adds the tagsRemove to the put assets params

func (*PutAssetsParams) SetTimeout

func (o *PutAssetsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the put assets params

func (*PutAssetsParams) SetType

func (o *PutAssetsParams) SetType(typeVar *string)

SetType adds the type to the put assets params

func (*PutAssetsParams) SetVendor

func (o *PutAssetsParams) SetVendor(vendor *string)

SetVendor adds the vendor to the put assets params

func (*PutAssetsParams) SetWhere

func (o *PutAssetsParams) SetWhere(where *string)

SetWhere adds the where to the put assets params

func (*PutAssetsParams) SetXPos

func (o *PutAssetsParams) SetXPos(xPos *int64)

SetXPos adds the xPos to the put assets params

func (*PutAssetsParams) WithAsset

func (o *PutAssetsParams) WithAsset(asset *string) *PutAssetsParams

WithAsset adds the asset to the put assets params

func (*PutAssetsParams) WithAssetID

func (o *PutAssetsParams) WithAssetID(assetID *int64) *PutAssetsParams

WithAssetID adds the assetID to the put assets params

func (*PutAssetsParams) WithAssetNo

func (o *PutAssetsParams) WithAssetNo(assetNo *string) *PutAssetsParams

WithAssetNo adds the assetNo to the put assets params

func (*PutAssetsParams) WithBackImage

func (o *PutAssetsParams) WithBackImage(backImage *string) *PutAssetsParams

WithBackImage adds the backImage to the put assets params

func (*PutAssetsParams) WithBackImageID

func (o *PutAssetsParams) WithBackImageID(backImageID *string) *PutAssetsParams

WithBackImageID adds the backImageID to the put assets params

func (*PutAssetsParams) WithBuilding

func (o *PutAssetsParams) WithBuilding(building *string) *PutAssetsParams

WithBuilding adds the building to the put assets params

func (*PutAssetsParams) WithCategory

func (o *PutAssetsParams) WithCategory(category *string) *PutAssetsParams

WithCategory adds the category to the put assets params

func (*PutAssetsParams) WithContext

func (o *PutAssetsParams) WithContext(ctx context.Context) *PutAssetsParams

WithContext adds the context to the put assets params

func (*PutAssetsParams) WithCustomer

func (o *PutAssetsParams) WithCustomer(customer *string) *PutAssetsParams

WithCustomer adds the customer to the put assets params

func (*PutAssetsParams) WithDepth

func (o *PutAssetsParams) WithDepth(depth *string) *PutAssetsParams

WithDepth adds the depth to the put assets params

func (*PutAssetsParams) WithDeviceID

func (o *PutAssetsParams) WithDeviceID(deviceID *int64) *PutAssetsParams

WithDeviceID adds the deviceID to the put assets params

func (*PutAssetsParams) WithHTTPClient

func (o *PutAssetsParams) WithHTTPClient(client *http.Client) *PutAssetsParams

WithHTTPClient adds the HTTPClient to the put assets params

func (*PutAssetsParams) WithImgfile

func (o *PutAssetsParams) WithImgfile(imgfile *string) *PutAssetsParams

WithImgfile adds the imgfile to the put assets params

func (*PutAssetsParams) WithImgfileID

func (o *PutAssetsParams) WithImgfileID(imgfileID *string) *PutAssetsParams

WithImgfileID adds the imgfileID to the put assets params

func (*PutAssetsParams) WithLocation

func (o *PutAssetsParams) WithLocation(location *string) *PutAssetsParams

WithLocation adds the location to the put assets params

func (*PutAssetsParams) WithModuleHost

func (o *PutAssetsParams) WithModuleHost(moduleHost *string) *PutAssetsParams

WithModuleHost adds the moduleHost to the put assets params

func (*PutAssetsParams) WithModuleHostID

func (o *PutAssetsParams) WithModuleHostID(moduleHostID *string) *PutAssetsParams

WithModuleHostID adds the moduleHostID to the put assets params

func (*PutAssetsParams) WithNotes

func (o *PutAssetsParams) WithNotes(notes *string) *PutAssetsParams

WithNotes adds the notes to the put assets params

func (*PutAssetsParams) WithNumberingStartFrom

func (o *PutAssetsParams) WithNumberingStartFrom(numberingStartFrom *string) *PutAssetsParams

WithNumberingStartFrom adds the numberingStartFrom to the put assets params

func (*PutAssetsParams) WithOrientation

func (o *PutAssetsParams) WithOrientation(orientation *string) *PutAssetsParams

WithOrientation adds the orientation to the put assets params

func (*PutAssetsParams) WithPatchPanelModel

func (o *PutAssetsParams) WithPatchPanelModel(patchPanelModel *string) *PutAssetsParams

WithPatchPanelModel adds the patchPanelModel to the put assets params

func (*PutAssetsParams) WithPatchPanelModelID

func (o *PutAssetsParams) WithPatchPanelModelID(patchPanelModelID *string) *PutAssetsParams

WithPatchPanelModelID adds the patchPanelModelID to the put assets params

func (*PutAssetsParams) WithPatchPanelModuleModel

func (o *PutAssetsParams) WithPatchPanelModuleModel(patchPanelModuleModel *string) *PutAssetsParams

WithPatchPanelModuleModel adds the patchPanelModuleModel to the put assets params

func (*PutAssetsParams) WithPatchPanelModuleModelID

func (o *PutAssetsParams) WithPatchPanelModuleModelID(patchPanelModuleModelID *string) *PutAssetsParams

WithPatchPanelModuleModelID adds the patchPanelModuleModelID to the put assets params

func (*PutAssetsParams) WithRackID

func (o *PutAssetsParams) WithRackID(rackID *string) *PutAssetsParams

WithRackID adds the rackID to the put assets params

func (*PutAssetsParams) WithRoom

func (o *PutAssetsParams) WithRoom(room *string) *PutAssetsParams

WithRoom adds the room to the put assets params

func (*PutAssetsParams) WithSerialNo

func (o *PutAssetsParams) WithSerialNo(serialNo *string) *PutAssetsParams

WithSerialNo adds the serialNo to the put assets params

func (*PutAssetsParams) WithServiceLevel

func (o *PutAssetsParams) WithServiceLevel(serviceLevel *string) *PutAssetsParams

WithServiceLevel adds the serviceLevel to the put assets params

func (*PutAssetsParams) WithSize

func (o *PutAssetsParams) WithSize(size *int64) *PutAssetsParams

WithSize adds the size to the put assets params

func (*PutAssetsParams) WithSlotNo

func (o *PutAssetsParams) WithSlotNo(slotNo *string) *PutAssetsParams

WithSlotNo adds the slotNo to the put assets params

func (*PutAssetsParams) WithStartAt

func (o *PutAssetsParams) WithStartAt(startAt *string) *PutAssetsParams

WithStartAt adds the startAt to the put assets params

func (*PutAssetsParams) WithTags

func (o *PutAssetsParams) WithTags(tags *string) *PutAssetsParams

WithTags adds the tags to the put assets params

func (*PutAssetsParams) WithTagsRemove

func (o *PutAssetsParams) WithTagsRemove(tagsRemove *string) *PutAssetsParams

WithTagsRemove adds the tagsRemove to the put assets params

func (*PutAssetsParams) WithTimeout

func (o *PutAssetsParams) WithTimeout(timeout time.Duration) *PutAssetsParams

WithTimeout adds the timeout to the put assets params

func (*PutAssetsParams) WithType

func (o *PutAssetsParams) WithType(typeVar *string) *PutAssetsParams

WithType adds the typeVar to the put assets params

func (*PutAssetsParams) WithVendor

func (o *PutAssetsParams) WithVendor(vendor *string) *PutAssetsParams

WithVendor adds the vendor to the put assets params

func (*PutAssetsParams) WithWhere

func (o *PutAssetsParams) WithWhere(where *string) *PutAssetsParams

WithWhere adds the where to the put assets params

func (*PutAssetsParams) WithXPos

func (o *PutAssetsParams) WithXPos(xPos *int64) *PutAssetsParams

WithXPos adds the xPos to the put assets params

func (*PutAssetsParams) WriteToRequest

func (o *PutAssetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PutAssetsReader

type PutAssetsReader struct {
	// contains filtered or unexported fields
}

PutAssetsReader is a Reader for the PutAssets structure.

func (*PutAssetsReader) ReadResponse

func (o *PutAssetsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PutAssetsServiceUnavailable

type PutAssetsServiceUnavailable struct {
}

PutAssetsServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewPutAssetsServiceUnavailable

func NewPutAssetsServiceUnavailable() *PutAssetsServiceUnavailable

NewPutAssetsServiceUnavailable creates a PutAssetsServiceUnavailable with default headers values

func (*PutAssetsServiceUnavailable) Error

type PutAssetsUnauthorized

type PutAssetsUnauthorized struct {
}

PutAssetsUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewPutAssetsUnauthorized

func NewPutAssetsUnauthorized() *PutAssetsUnauthorized

NewPutAssetsUnauthorized creates a PutAssetsUnauthorized with default headers values

func (*PutAssetsUnauthorized) Error

func (o *PutAssetsUnauthorized) Error() string

type PutCustomFieldsAssetBadRequest

type PutCustomFieldsAssetBadRequest struct {
}

PutCustomFieldsAssetBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewPutCustomFieldsAssetBadRequest

func NewPutCustomFieldsAssetBadRequest() *PutCustomFieldsAssetBadRequest

NewPutCustomFieldsAssetBadRequest creates a PutCustomFieldsAssetBadRequest with default headers values

func (*PutCustomFieldsAssetBadRequest) Error

type PutCustomFieldsAssetForbidden

type PutCustomFieldsAssetForbidden struct {
}

PutCustomFieldsAssetForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewPutCustomFieldsAssetForbidden

func NewPutCustomFieldsAssetForbidden() *PutCustomFieldsAssetForbidden

NewPutCustomFieldsAssetForbidden creates a PutCustomFieldsAssetForbidden with default headers values

func (*PutCustomFieldsAssetForbidden) Error

type PutCustomFieldsAssetGone

type PutCustomFieldsAssetGone struct {
}

PutCustomFieldsAssetGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewPutCustomFieldsAssetGone

func NewPutCustomFieldsAssetGone() *PutCustomFieldsAssetGone

NewPutCustomFieldsAssetGone creates a PutCustomFieldsAssetGone with default headers values

func (*PutCustomFieldsAssetGone) Error

func (o *PutCustomFieldsAssetGone) Error() string

type PutCustomFieldsAssetInternalServerError

type PutCustomFieldsAssetInternalServerError struct {
}

PutCustomFieldsAssetInternalServerError handles this case with default header values.

Internal Server Error (Some parameter missing or issue with the server. Check with returned “msg” from the call.)

func NewPutCustomFieldsAssetInternalServerError

func NewPutCustomFieldsAssetInternalServerError() *PutCustomFieldsAssetInternalServerError

NewPutCustomFieldsAssetInternalServerError creates a PutCustomFieldsAssetInternalServerError with default headers values

func (*PutCustomFieldsAssetInternalServerError) Error

type PutCustomFieldsAssetMethodNotAllowed

type PutCustomFieldsAssetMethodNotAllowed struct {
}

PutCustomFieldsAssetMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewPutCustomFieldsAssetMethodNotAllowed

func NewPutCustomFieldsAssetMethodNotAllowed() *PutCustomFieldsAssetMethodNotAllowed

NewPutCustomFieldsAssetMethodNotAllowed creates a PutCustomFieldsAssetMethodNotAllowed with default headers values

func (*PutCustomFieldsAssetMethodNotAllowed) Error

type PutCustomFieldsAssetNotFound

type PutCustomFieldsAssetNotFound struct {
}

PutCustomFieldsAssetNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewPutCustomFieldsAssetNotFound

func NewPutCustomFieldsAssetNotFound() *PutCustomFieldsAssetNotFound

NewPutCustomFieldsAssetNotFound creates a PutCustomFieldsAssetNotFound with default headers values

func (*PutCustomFieldsAssetNotFound) Error

type PutCustomFieldsAssetOK

type PutCustomFieldsAssetOK struct {
	Payload *PutCustomFieldsAssetOKBody
}

PutCustomFieldsAssetOK handles this case with default header values.

The above command returns results like this:

func NewPutCustomFieldsAssetOK

func NewPutCustomFieldsAssetOK() *PutCustomFieldsAssetOK

NewPutCustomFieldsAssetOK creates a PutCustomFieldsAssetOK with default headers values

func (*PutCustomFieldsAssetOK) Error

func (o *PutCustomFieldsAssetOK) Error() string

func (*PutCustomFieldsAssetOK) GetPayload

type PutCustomFieldsAssetOKBody

type PutCustomFieldsAssetOKBody struct {

	// code
	Code interface{} `json:"code,omitempty"`

	// msg
	Msg interface{} `json:"msg,omitempty"`
}

PutCustomFieldsAssetOKBody put custom fields asset o k body swagger:model PutCustomFieldsAssetOKBody

func (*PutCustomFieldsAssetOKBody) MarshalBinary

func (o *PutCustomFieldsAssetOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PutCustomFieldsAssetOKBody) UnmarshalBinary

func (o *PutCustomFieldsAssetOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PutCustomFieldsAssetOKBody) Validate

func (o *PutCustomFieldsAssetOKBody) Validate(formats strfmt.Registry) error

Validate validates this put custom fields asset o k body

type PutCustomFieldsAssetParams

type PutCustomFieldsAssetParams struct {

	/*AddToPicklist
	  Comma separated values to add to picklist. If type is picklist and custom field is new, this is a required field. Duplicates will be ignored.

	*/
	AddToPicklist *string
	/*BulkFields
	  comma separated key value pairs, with key and value separated by colon. e.g.key1:value1, key2:value2

	*/
	BulkFields *string
	/*ClearValue
	  yes to clear existing value for that field

	*/
	ClearValue *string
	/*ID
	  ID of asset

	*/
	ID *string
	/*Key
	  Can be new or existing. This is the custom field name.

	*/
	Key string
	/*Name
	  Name of asset

	*/
	Name *string
	/*Notes
	  Any additional notes

	*/
	Notes *string
	/*RelatedFieldName
	  Required if type = related field.

	*/
	RelatedFieldName *string
	/*Type
	  this is the custom field type. If left blank, default is text. Date should be formatted as YYYY-MM-DD

	*/
	Type *string
	/*Value
	  This will set the value of the custom field for the specific object.

	*/
	Value *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PutCustomFieldsAssetParams contains all the parameters to send to the API endpoint for the put custom fields asset operation typically these are written to a http.Request

func NewPutCustomFieldsAssetParams

func NewPutCustomFieldsAssetParams() *PutCustomFieldsAssetParams

NewPutCustomFieldsAssetParams creates a new PutCustomFieldsAssetParams object with the default values initialized.

func NewPutCustomFieldsAssetParamsWithContext

func NewPutCustomFieldsAssetParamsWithContext(ctx context.Context) *PutCustomFieldsAssetParams

NewPutCustomFieldsAssetParamsWithContext creates a new PutCustomFieldsAssetParams object with the default values initialized, and the ability to set a context for a request

func NewPutCustomFieldsAssetParamsWithHTTPClient

func NewPutCustomFieldsAssetParamsWithHTTPClient(client *http.Client) *PutCustomFieldsAssetParams

NewPutCustomFieldsAssetParamsWithHTTPClient creates a new PutCustomFieldsAssetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPutCustomFieldsAssetParamsWithTimeout

func NewPutCustomFieldsAssetParamsWithTimeout(timeout time.Duration) *PutCustomFieldsAssetParams

NewPutCustomFieldsAssetParamsWithTimeout creates a new PutCustomFieldsAssetParams object with the default values initialized, and the ability to set a timeout on a request

func (*PutCustomFieldsAssetParams) SetAddToPicklist

func (o *PutCustomFieldsAssetParams) SetAddToPicklist(addToPicklist *string)

SetAddToPicklist adds the addToPicklist to the put custom fields asset params

func (*PutCustomFieldsAssetParams) SetBulkFields

func (o *PutCustomFieldsAssetParams) SetBulkFields(bulkFields *string)

SetBulkFields adds the bulkFields to the put custom fields asset params

func (*PutCustomFieldsAssetParams) SetClearValue

func (o *PutCustomFieldsAssetParams) SetClearValue(clearValue *string)

SetClearValue adds the clearValue to the put custom fields asset params

func (*PutCustomFieldsAssetParams) SetContext

func (o *PutCustomFieldsAssetParams) SetContext(ctx context.Context)

SetContext adds the context to the put custom fields asset params

func (*PutCustomFieldsAssetParams) SetHTTPClient

func (o *PutCustomFieldsAssetParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the put custom fields asset params

func (*PutCustomFieldsAssetParams) SetID

func (o *PutCustomFieldsAssetParams) SetID(id *string)

SetID adds the id to the put custom fields asset params

func (*PutCustomFieldsAssetParams) SetKey

func (o *PutCustomFieldsAssetParams) SetKey(key string)

SetKey adds the key to the put custom fields asset params

func (*PutCustomFieldsAssetParams) SetName

func (o *PutCustomFieldsAssetParams) SetName(name *string)

SetName adds the name to the put custom fields asset params

func (*PutCustomFieldsAssetParams) SetNotes

func (o *PutCustomFieldsAssetParams) SetNotes(notes *string)

SetNotes adds the notes to the put custom fields asset params

func (*PutCustomFieldsAssetParams) SetRelatedFieldName

func (o *PutCustomFieldsAssetParams) SetRelatedFieldName(relatedFieldName *string)

SetRelatedFieldName adds the relatedFieldName to the put custom fields asset params

func (*PutCustomFieldsAssetParams) SetTimeout

func (o *PutCustomFieldsAssetParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the put custom fields asset params

func (*PutCustomFieldsAssetParams) SetType

func (o *PutCustomFieldsAssetParams) SetType(typeVar *string)

SetType adds the type to the put custom fields asset params

func (*PutCustomFieldsAssetParams) SetValue

func (o *PutCustomFieldsAssetParams) SetValue(value *string)

SetValue adds the value to the put custom fields asset params

func (*PutCustomFieldsAssetParams) WithAddToPicklist

func (o *PutCustomFieldsAssetParams) WithAddToPicklist(addToPicklist *string) *PutCustomFieldsAssetParams

WithAddToPicklist adds the addToPicklist to the put custom fields asset params

func (*PutCustomFieldsAssetParams) WithBulkFields

func (o *PutCustomFieldsAssetParams) WithBulkFields(bulkFields *string) *PutCustomFieldsAssetParams

WithBulkFields adds the bulkFields to the put custom fields asset params

func (*PutCustomFieldsAssetParams) WithClearValue

func (o *PutCustomFieldsAssetParams) WithClearValue(clearValue *string) *PutCustomFieldsAssetParams

WithClearValue adds the clearValue to the put custom fields asset params

func (*PutCustomFieldsAssetParams) WithContext

WithContext adds the context to the put custom fields asset params

func (*PutCustomFieldsAssetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the put custom fields asset params

func (*PutCustomFieldsAssetParams) WithID

WithID adds the id to the put custom fields asset params

func (*PutCustomFieldsAssetParams) WithKey

WithKey adds the key to the put custom fields asset params

func (*PutCustomFieldsAssetParams) WithName

WithName adds the name to the put custom fields asset params

func (*PutCustomFieldsAssetParams) WithNotes

WithNotes adds the notes to the put custom fields asset params

func (*PutCustomFieldsAssetParams) WithRelatedFieldName

func (o *PutCustomFieldsAssetParams) WithRelatedFieldName(relatedFieldName *string) *PutCustomFieldsAssetParams

WithRelatedFieldName adds the relatedFieldName to the put custom fields asset params

func (*PutCustomFieldsAssetParams) WithTimeout

WithTimeout adds the timeout to the put custom fields asset params

func (*PutCustomFieldsAssetParams) WithType

WithType adds the typeVar to the put custom fields asset params

func (*PutCustomFieldsAssetParams) WithValue

WithValue adds the value to the put custom fields asset params

func (*PutCustomFieldsAssetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutCustomFieldsAssetReader

type PutCustomFieldsAssetReader struct {
	// contains filtered or unexported fields
}

PutCustomFieldsAssetReader is a Reader for the PutCustomFieldsAsset structure.

func (*PutCustomFieldsAssetReader) ReadResponse

func (o *PutCustomFieldsAssetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PutCustomFieldsAssetServiceUnavailable

type PutCustomFieldsAssetServiceUnavailable struct {
}

PutCustomFieldsAssetServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewPutCustomFieldsAssetServiceUnavailable

func NewPutCustomFieldsAssetServiceUnavailable() *PutCustomFieldsAssetServiceUnavailable

NewPutCustomFieldsAssetServiceUnavailable creates a PutCustomFieldsAssetServiceUnavailable with default headers values

func (*PutCustomFieldsAssetServiceUnavailable) Error

type PutCustomFieldsAssetUnauthorized

type PutCustomFieldsAssetUnauthorized struct {
}

PutCustomFieldsAssetUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewPutCustomFieldsAssetUnauthorized

func NewPutCustomFieldsAssetUnauthorized() *PutCustomFieldsAssetUnauthorized

NewPutCustomFieldsAssetUnauthorized creates a PutCustomFieldsAssetUnauthorized with default headers values

func (*PutCustomFieldsAssetUnauthorized) Error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL