Documentation
¶
Index ¶
- func WithAcceptApplicationHalJSON(r *runtime.ClientOperation)
- func WithAcceptApplicationJSON(r *runtime.ClientOperation)
- func WithAcceptApplicationVndErrorJSON(r *runtime.ClientOperation)
- type Client
- func (a *Client) GetAssetModelLock(params *GetAssetModelLockParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAssetModelLockOK, error)
- func (a *Client) PutAssetModelLock(params *PutAssetModelLockParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PutAssetModelLockOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetAssetModelLockForbidden
- func (o *GetAssetModelLockForbidden) Code() int
- func (o *GetAssetModelLockForbidden) Error() string
- func (o *GetAssetModelLockForbidden) GetPayload() *models.Errors
- func (o *GetAssetModelLockForbidden) IsClientError() bool
- func (o *GetAssetModelLockForbidden) IsCode(code int) bool
- func (o *GetAssetModelLockForbidden) IsRedirect() bool
- func (o *GetAssetModelLockForbidden) IsServerError() bool
- func (o *GetAssetModelLockForbidden) IsSuccess() bool
- func (o *GetAssetModelLockForbidden) String() string
- type GetAssetModelLockInternalServerError
- func (o *GetAssetModelLockInternalServerError) Code() int
- func (o *GetAssetModelLockInternalServerError) Error() string
- func (o *GetAssetModelLockInternalServerError) GetPayload() *models.Errors
- func (o *GetAssetModelLockInternalServerError) IsClientError() bool
- func (o *GetAssetModelLockInternalServerError) IsCode(code int) bool
- func (o *GetAssetModelLockInternalServerError) IsRedirect() bool
- func (o *GetAssetModelLockInternalServerError) IsServerError() bool
- func (o *GetAssetModelLockInternalServerError) IsSuccess() bool
- func (o *GetAssetModelLockInternalServerError) String() string
- type GetAssetModelLockOK
- func (o *GetAssetModelLockOK) Code() int
- func (o *GetAssetModelLockOK) Error() string
- func (o *GetAssetModelLockOK) GetPayload() *models.AssetModelLock
- func (o *GetAssetModelLockOK) IsClientError() bool
- func (o *GetAssetModelLockOK) IsCode(code int) bool
- func (o *GetAssetModelLockOK) IsRedirect() bool
- func (o *GetAssetModelLockOK) IsServerError() bool
- func (o *GetAssetModelLockOK) IsSuccess() bool
- func (o *GetAssetModelLockOK) String() string
- type GetAssetModelLockParams
- func NewGetAssetModelLockParams() *GetAssetModelLockParams
- func NewGetAssetModelLockParamsWithContext(ctx context.Context) *GetAssetModelLockParams
- func NewGetAssetModelLockParamsWithHTTPClient(client *http.Client) *GetAssetModelLockParams
- func NewGetAssetModelLockParamsWithTimeout(timeout time.Duration) *GetAssetModelLockParams
- func (o *GetAssetModelLockParams) SetContext(ctx context.Context)
- func (o *GetAssetModelLockParams) SetDefaults()
- func (o *GetAssetModelLockParams) SetHTTPClient(client *http.Client)
- func (o *GetAssetModelLockParams) SetTimeout(timeout time.Duration)
- func (o *GetAssetModelLockParams) WithContext(ctx context.Context) *GetAssetModelLockParams
- func (o *GetAssetModelLockParams) WithDefaults() *GetAssetModelLockParams
- func (o *GetAssetModelLockParams) WithHTTPClient(client *http.Client) *GetAssetModelLockParams
- func (o *GetAssetModelLockParams) WithTimeout(timeout time.Duration) *GetAssetModelLockParams
- func (o *GetAssetModelLockParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAssetModelLockReader
- type GetAssetModelLockTooManyRequests
- func (o *GetAssetModelLockTooManyRequests) Code() int
- func (o *GetAssetModelLockTooManyRequests) Error() string
- func (o *GetAssetModelLockTooManyRequests) GetPayload() *models.Errors
- func (o *GetAssetModelLockTooManyRequests) IsClientError() bool
- func (o *GetAssetModelLockTooManyRequests) IsCode(code int) bool
- func (o *GetAssetModelLockTooManyRequests) IsRedirect() bool
- func (o *GetAssetModelLockTooManyRequests) IsServerError() bool
- func (o *GetAssetModelLockTooManyRequests) IsSuccess() bool
- func (o *GetAssetModelLockTooManyRequests) String() string
- type GetAssetModelLockUnauthorized
- func (o *GetAssetModelLockUnauthorized) Code() int
- func (o *GetAssetModelLockUnauthorized) Error() string
- func (o *GetAssetModelLockUnauthorized) GetPayload() *models.Errors
- func (o *GetAssetModelLockUnauthorized) IsClientError() bool
- func (o *GetAssetModelLockUnauthorized) IsCode(code int) bool
- func (o *GetAssetModelLockUnauthorized) IsRedirect() bool
- func (o *GetAssetModelLockUnauthorized) IsServerError() bool
- func (o *GetAssetModelLockUnauthorized) IsSuccess() bool
- func (o *GetAssetModelLockUnauthorized) String() string
- type PutAssetModelLockForbidden
- func (o *PutAssetModelLockForbidden) Code() int
- func (o *PutAssetModelLockForbidden) Error() string
- func (o *PutAssetModelLockForbidden) GetPayload() *models.Errors
- func (o *PutAssetModelLockForbidden) IsClientError() bool
- func (o *PutAssetModelLockForbidden) IsCode(code int) bool
- func (o *PutAssetModelLockForbidden) IsRedirect() bool
- func (o *PutAssetModelLockForbidden) IsServerError() bool
- func (o *PutAssetModelLockForbidden) IsSuccess() bool
- func (o *PutAssetModelLockForbidden) String() string
- type PutAssetModelLockInternalServerError
- func (o *PutAssetModelLockInternalServerError) Code() int
- func (o *PutAssetModelLockInternalServerError) Error() string
- func (o *PutAssetModelLockInternalServerError) GetPayload() *models.Errors
- func (o *PutAssetModelLockInternalServerError) IsClientError() bool
- func (o *PutAssetModelLockInternalServerError) IsCode(code int) bool
- func (o *PutAssetModelLockInternalServerError) IsRedirect() bool
- func (o *PutAssetModelLockInternalServerError) IsServerError() bool
- func (o *PutAssetModelLockInternalServerError) IsSuccess() bool
- func (o *PutAssetModelLockInternalServerError) String() string
- type PutAssetModelLockOK
- func (o *PutAssetModelLockOK) Code() int
- func (o *PutAssetModelLockOK) Error() string
- func (o *PutAssetModelLockOK) GetPayload() *models.ModelLock
- func (o *PutAssetModelLockOK) IsClientError() bool
- func (o *PutAssetModelLockOK) IsCode(code int) bool
- func (o *PutAssetModelLockOK) IsRedirect() bool
- func (o *PutAssetModelLockOK) IsServerError() bool
- func (o *PutAssetModelLockOK) IsSuccess() bool
- func (o *PutAssetModelLockOK) String() string
- type PutAssetModelLockParams
- func NewPutAssetModelLockParams() *PutAssetModelLockParams
- func NewPutAssetModelLockParamsWithContext(ctx context.Context) *PutAssetModelLockParams
- func NewPutAssetModelLockParamsWithHTTPClient(client *http.Client) *PutAssetModelLockParams
- func NewPutAssetModelLockParamsWithTimeout(timeout time.Duration) *PutAssetModelLockParams
- func (o *PutAssetModelLockParams) SetContext(ctx context.Context)
- func (o *PutAssetModelLockParams) SetDefaults()
- func (o *PutAssetModelLockParams) SetEnabled(enabled bool)
- func (o *PutAssetModelLockParams) SetHTTPClient(client *http.Client)
- func (o *PutAssetModelLockParams) SetTimeout(timeout time.Duration)
- func (o *PutAssetModelLockParams) WithContext(ctx context.Context) *PutAssetModelLockParams
- func (o *PutAssetModelLockParams) WithDefaults() *PutAssetModelLockParams
- func (o *PutAssetModelLockParams) WithEnabled(enabled bool) *PutAssetModelLockParams
- func (o *PutAssetModelLockParams) WithHTTPClient(client *http.Client) *PutAssetModelLockParams
- func (o *PutAssetModelLockParams) WithTimeout(timeout time.Duration) *PutAssetModelLockParams
- func (o *PutAssetModelLockParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutAssetModelLockPreconditionFailed
- func (o *PutAssetModelLockPreconditionFailed) Code() int
- func (o *PutAssetModelLockPreconditionFailed) Error() string
- func (o *PutAssetModelLockPreconditionFailed) GetPayload() *models.Errors
- func (o *PutAssetModelLockPreconditionFailed) IsClientError() bool
- func (o *PutAssetModelLockPreconditionFailed) IsCode(code int) bool
- func (o *PutAssetModelLockPreconditionFailed) IsRedirect() bool
- func (o *PutAssetModelLockPreconditionFailed) IsServerError() bool
- func (o *PutAssetModelLockPreconditionFailed) IsSuccess() bool
- func (o *PutAssetModelLockPreconditionFailed) String() string
- type PutAssetModelLockReader
- type PutAssetModelLockTooManyRequests
- func (o *PutAssetModelLockTooManyRequests) Code() int
- func (o *PutAssetModelLockTooManyRequests) Error() string
- func (o *PutAssetModelLockTooManyRequests) GetPayload() *models.Errors
- func (o *PutAssetModelLockTooManyRequests) IsClientError() bool
- func (o *PutAssetModelLockTooManyRequests) IsCode(code int) bool
- func (o *PutAssetModelLockTooManyRequests) IsRedirect() bool
- func (o *PutAssetModelLockTooManyRequests) IsServerError() bool
- func (o *PutAssetModelLockTooManyRequests) IsSuccess() bool
- func (o *PutAssetModelLockTooManyRequests) String() string
- type PutAssetModelLockUnauthorized
- func (o *PutAssetModelLockUnauthorized) Code() int
- func (o *PutAssetModelLockUnauthorized) Error() string
- func (o *PutAssetModelLockUnauthorized) GetPayload() *models.Errors
- func (o *PutAssetModelLockUnauthorized) IsClientError() bool
- func (o *PutAssetModelLockUnauthorized) IsCode(code int) bool
- func (o *PutAssetModelLockUnauthorized) IsRedirect() bool
- func (o *PutAssetModelLockUnauthorized) IsServerError() bool
- func (o *PutAssetModelLockUnauthorized) IsSuccess() bool
- func (o *PutAssetModelLockUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAcceptApplicationHalJSON ¶
func WithAcceptApplicationHalJSON(r *runtime.ClientOperation)
WithAcceptApplicationHalJSON sets the Accept header to "application/hal+json".
func WithAcceptApplicationJSON ¶
func WithAcceptApplicationJSON(r *runtime.ClientOperation)
WithAcceptApplicationJSON sets the Accept header to "application/json".
func WithAcceptApplicationVndErrorJSON ¶
func WithAcceptApplicationVndErrorJSON(r *runtime.ClientOperation)
WithAcceptApplicationVndErrorJSON sets the Accept header to "application/vnd.error+json".
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for assetmodellock API
func (*Client) GetAssetModelLock ¶
func (a *Client) GetAssetModelLock(params *GetAssetModelLockParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAssetModelLockOK, error)
GetAssetModelLock returns lock state of an asset model
Provides lock state of an asset model at tenant level.
func (*Client) PutAssetModelLock ¶
func (a *Client) PutAssetModelLock(params *PutAssetModelLockParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutAssetModelLockOK, error)
PutAssetModelLock enables disable lock state of an asset model
Enable/disable lock state of asset model at tenant level, managing restrictions on update/delete operations on assettypes and aspecttypes.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
func WithAccept ¶
func WithAccept(mime string) ClientOption
WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
type ClientService ¶
type ClientService interface { GetAssetModelLock(params *GetAssetModelLockParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAssetModelLockOK, error) PutAssetModelLock(params *PutAssetModelLockParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutAssetModelLockOK, 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 assetmodellock API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new assetmodellock API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new assetmodellock API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type GetAssetModelLockForbidden ¶
GetAssetModelLockForbidden describes a response with status code 403, with default header values.
User is not authorized for request
func NewGetAssetModelLockForbidden ¶
func NewGetAssetModelLockForbidden() *GetAssetModelLockForbidden
NewGetAssetModelLockForbidden creates a GetAssetModelLockForbidden with default headers values
func (*GetAssetModelLockForbidden) Code ¶
func (o *GetAssetModelLockForbidden) Code() int
Code gets the status code for the get asset model lock forbidden response
func (*GetAssetModelLockForbidden) Error ¶
func (o *GetAssetModelLockForbidden) Error() string
func (*GetAssetModelLockForbidden) GetPayload ¶
func (o *GetAssetModelLockForbidden) GetPayload() *models.Errors
func (*GetAssetModelLockForbidden) IsClientError ¶
func (o *GetAssetModelLockForbidden) IsClientError() bool
IsClientError returns true when this get asset model lock forbidden response has a 4xx status code
func (*GetAssetModelLockForbidden) IsCode ¶
func (o *GetAssetModelLockForbidden) IsCode(code int) bool
IsCode returns true when this get asset model lock forbidden response a status code equal to that given
func (*GetAssetModelLockForbidden) IsRedirect ¶
func (o *GetAssetModelLockForbidden) IsRedirect() bool
IsRedirect returns true when this get asset model lock forbidden response has a 3xx status code
func (*GetAssetModelLockForbidden) IsServerError ¶
func (o *GetAssetModelLockForbidden) IsServerError() bool
IsServerError returns true when this get asset model lock forbidden response has a 5xx status code
func (*GetAssetModelLockForbidden) IsSuccess ¶
func (o *GetAssetModelLockForbidden) IsSuccess() bool
IsSuccess returns true when this get asset model lock forbidden response has a 2xx status code
func (*GetAssetModelLockForbidden) String ¶
func (o *GetAssetModelLockForbidden) String() string
type GetAssetModelLockInternalServerError ¶
GetAssetModelLockInternalServerError describes a response with status code 500, with default header values.
Server error, for more information see errorcode and message
func NewGetAssetModelLockInternalServerError ¶
func NewGetAssetModelLockInternalServerError() *GetAssetModelLockInternalServerError
NewGetAssetModelLockInternalServerError creates a GetAssetModelLockInternalServerError with default headers values
func (*GetAssetModelLockInternalServerError) Code ¶
func (o *GetAssetModelLockInternalServerError) Code() int
Code gets the status code for the get asset model lock internal server error response
func (*GetAssetModelLockInternalServerError) Error ¶
func (o *GetAssetModelLockInternalServerError) Error() string
func (*GetAssetModelLockInternalServerError) GetPayload ¶
func (o *GetAssetModelLockInternalServerError) GetPayload() *models.Errors
func (*GetAssetModelLockInternalServerError) IsClientError ¶
func (o *GetAssetModelLockInternalServerError) IsClientError() bool
IsClientError returns true when this get asset model lock internal server error response has a 4xx status code
func (*GetAssetModelLockInternalServerError) IsCode ¶
func (o *GetAssetModelLockInternalServerError) IsCode(code int) bool
IsCode returns true when this get asset model lock internal server error response a status code equal to that given
func (*GetAssetModelLockInternalServerError) IsRedirect ¶
func (o *GetAssetModelLockInternalServerError) IsRedirect() bool
IsRedirect returns true when this get asset model lock internal server error response has a 3xx status code
func (*GetAssetModelLockInternalServerError) IsServerError ¶
func (o *GetAssetModelLockInternalServerError) IsServerError() bool
IsServerError returns true when this get asset model lock internal server error response has a 5xx status code
func (*GetAssetModelLockInternalServerError) IsSuccess ¶
func (o *GetAssetModelLockInternalServerError) IsSuccess() bool
IsSuccess returns true when this get asset model lock internal server error response has a 2xx status code
func (*GetAssetModelLockInternalServerError) String ¶
func (o *GetAssetModelLockInternalServerError) String() string
type GetAssetModelLockOK ¶
type GetAssetModelLockOK struct {
Payload *models.AssetModelLock
}
GetAssetModelLockOK describes a response with status code 200, with default header values.
Returns lock state of an asset model and associated jobs.
func NewGetAssetModelLockOK ¶
func NewGetAssetModelLockOK() *GetAssetModelLockOK
NewGetAssetModelLockOK creates a GetAssetModelLockOK with default headers values
func (*GetAssetModelLockOK) Code ¶
func (o *GetAssetModelLockOK) Code() int
Code gets the status code for the get asset model lock o k response
func (*GetAssetModelLockOK) Error ¶
func (o *GetAssetModelLockOK) Error() string
func (*GetAssetModelLockOK) GetPayload ¶
func (o *GetAssetModelLockOK) GetPayload() *models.AssetModelLock
func (*GetAssetModelLockOK) IsClientError ¶
func (o *GetAssetModelLockOK) IsClientError() bool
IsClientError returns true when this get asset model lock o k response has a 4xx status code
func (*GetAssetModelLockOK) IsCode ¶
func (o *GetAssetModelLockOK) IsCode(code int) bool
IsCode returns true when this get asset model lock o k response a status code equal to that given
func (*GetAssetModelLockOK) IsRedirect ¶
func (o *GetAssetModelLockOK) IsRedirect() bool
IsRedirect returns true when this get asset model lock o k response has a 3xx status code
func (*GetAssetModelLockOK) IsServerError ¶
func (o *GetAssetModelLockOK) IsServerError() bool
IsServerError returns true when this get asset model lock o k response has a 5xx status code
func (*GetAssetModelLockOK) IsSuccess ¶
func (o *GetAssetModelLockOK) IsSuccess() bool
IsSuccess returns true when this get asset model lock o k response has a 2xx status code
func (*GetAssetModelLockOK) String ¶
func (o *GetAssetModelLockOK) String() string
type GetAssetModelLockParams ¶
type GetAssetModelLockParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAssetModelLockParams contains all the parameters to send to the API endpoint
for the get asset model lock operation. Typically these are written to a http.Request.
func NewGetAssetModelLockParams ¶
func NewGetAssetModelLockParams() *GetAssetModelLockParams
NewGetAssetModelLockParams creates a new GetAssetModelLockParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetAssetModelLockParamsWithContext ¶
func NewGetAssetModelLockParamsWithContext(ctx context.Context) *GetAssetModelLockParams
NewGetAssetModelLockParamsWithContext creates a new GetAssetModelLockParams object with the ability to set a context for a request.
func NewGetAssetModelLockParamsWithHTTPClient ¶
func NewGetAssetModelLockParamsWithHTTPClient(client *http.Client) *GetAssetModelLockParams
NewGetAssetModelLockParamsWithHTTPClient creates a new GetAssetModelLockParams object with the ability to set a custom HTTPClient for a request.
func NewGetAssetModelLockParamsWithTimeout ¶
func NewGetAssetModelLockParamsWithTimeout(timeout time.Duration) *GetAssetModelLockParams
NewGetAssetModelLockParamsWithTimeout creates a new GetAssetModelLockParams object with the ability to set a timeout on a request.
func (*GetAssetModelLockParams) SetContext ¶
func (o *GetAssetModelLockParams) SetContext(ctx context.Context)
SetContext adds the context to the get asset model lock params
func (*GetAssetModelLockParams) SetDefaults ¶
func (o *GetAssetModelLockParams) SetDefaults()
SetDefaults hydrates default values in the get asset model lock params (not the query body).
All values with no default are reset to their zero value.
func (*GetAssetModelLockParams) SetHTTPClient ¶
func (o *GetAssetModelLockParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get asset model lock params
func (*GetAssetModelLockParams) SetTimeout ¶
func (o *GetAssetModelLockParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get asset model lock params
func (*GetAssetModelLockParams) WithContext ¶
func (o *GetAssetModelLockParams) WithContext(ctx context.Context) *GetAssetModelLockParams
WithContext adds the context to the get asset model lock params
func (*GetAssetModelLockParams) WithDefaults ¶
func (o *GetAssetModelLockParams) WithDefaults() *GetAssetModelLockParams
WithDefaults hydrates default values in the get asset model lock params (not the query body).
All values with no default are reset to their zero value.
func (*GetAssetModelLockParams) WithHTTPClient ¶
func (o *GetAssetModelLockParams) WithHTTPClient(client *http.Client) *GetAssetModelLockParams
WithHTTPClient adds the HTTPClient to the get asset model lock params
func (*GetAssetModelLockParams) WithTimeout ¶
func (o *GetAssetModelLockParams) WithTimeout(timeout time.Duration) *GetAssetModelLockParams
WithTimeout adds the timeout to the get asset model lock params
func (*GetAssetModelLockParams) WriteToRequest ¶
func (o *GetAssetModelLockParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAssetModelLockReader ¶
type GetAssetModelLockReader struct {
// contains filtered or unexported fields
}
GetAssetModelLockReader is a Reader for the GetAssetModelLock structure.
func (*GetAssetModelLockReader) ReadResponse ¶
func (o *GetAssetModelLockReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAssetModelLockTooManyRequests ¶
GetAssetModelLockTooManyRequests describes a response with status code 429, with default header values.
Too Many Requests
func NewGetAssetModelLockTooManyRequests ¶
func NewGetAssetModelLockTooManyRequests() *GetAssetModelLockTooManyRequests
NewGetAssetModelLockTooManyRequests creates a GetAssetModelLockTooManyRequests with default headers values
func (*GetAssetModelLockTooManyRequests) Code ¶
func (o *GetAssetModelLockTooManyRequests) Code() int
Code gets the status code for the get asset model lock too many requests response
func (*GetAssetModelLockTooManyRequests) Error ¶
func (o *GetAssetModelLockTooManyRequests) Error() string
func (*GetAssetModelLockTooManyRequests) GetPayload ¶
func (o *GetAssetModelLockTooManyRequests) GetPayload() *models.Errors
func (*GetAssetModelLockTooManyRequests) IsClientError ¶
func (o *GetAssetModelLockTooManyRequests) IsClientError() bool
IsClientError returns true when this get asset model lock too many requests response has a 4xx status code
func (*GetAssetModelLockTooManyRequests) IsCode ¶
func (o *GetAssetModelLockTooManyRequests) IsCode(code int) bool
IsCode returns true when this get asset model lock too many requests response a status code equal to that given
func (*GetAssetModelLockTooManyRequests) IsRedirect ¶
func (o *GetAssetModelLockTooManyRequests) IsRedirect() bool
IsRedirect returns true when this get asset model lock too many requests response has a 3xx status code
func (*GetAssetModelLockTooManyRequests) IsServerError ¶
func (o *GetAssetModelLockTooManyRequests) IsServerError() bool
IsServerError returns true when this get asset model lock too many requests response has a 5xx status code
func (*GetAssetModelLockTooManyRequests) IsSuccess ¶
func (o *GetAssetModelLockTooManyRequests) IsSuccess() bool
IsSuccess returns true when this get asset model lock too many requests response has a 2xx status code
func (*GetAssetModelLockTooManyRequests) String ¶
func (o *GetAssetModelLockTooManyRequests) String() string
type GetAssetModelLockUnauthorized ¶
type GetAssetModelLockUnauthorized struct {
}GetAssetModelLockUnauthorized describes a response with status code 401, with default header values.
User is not authenticated
func NewGetAssetModelLockUnauthorized ¶
func NewGetAssetModelLockUnauthorized() *GetAssetModelLockUnauthorized
NewGetAssetModelLockUnauthorized creates a GetAssetModelLockUnauthorized with default headers values
func (*GetAssetModelLockUnauthorized) Code ¶
func (o *GetAssetModelLockUnauthorized) Code() int
Code gets the status code for the get asset model lock unauthorized response
func (*GetAssetModelLockUnauthorized) Error ¶
func (o *GetAssetModelLockUnauthorized) Error() string
func (*GetAssetModelLockUnauthorized) GetPayload ¶
func (o *GetAssetModelLockUnauthorized) GetPayload() *models.Errors
func (*GetAssetModelLockUnauthorized) IsClientError ¶
func (o *GetAssetModelLockUnauthorized) IsClientError() bool
IsClientError returns true when this get asset model lock unauthorized response has a 4xx status code
func (*GetAssetModelLockUnauthorized) IsCode ¶
func (o *GetAssetModelLockUnauthorized) IsCode(code int) bool
IsCode returns true when this get asset model lock unauthorized response a status code equal to that given
func (*GetAssetModelLockUnauthorized) IsRedirect ¶
func (o *GetAssetModelLockUnauthorized) IsRedirect() bool
IsRedirect returns true when this get asset model lock unauthorized response has a 3xx status code
func (*GetAssetModelLockUnauthorized) IsServerError ¶
func (o *GetAssetModelLockUnauthorized) IsServerError() bool
IsServerError returns true when this get asset model lock unauthorized response has a 5xx status code
func (*GetAssetModelLockUnauthorized) IsSuccess ¶
func (o *GetAssetModelLockUnauthorized) IsSuccess() bool
IsSuccess returns true when this get asset model lock unauthorized response has a 2xx status code
func (*GetAssetModelLockUnauthorized) String ¶
func (o *GetAssetModelLockUnauthorized) String() string
type PutAssetModelLockForbidden ¶
PutAssetModelLockForbidden describes a response with status code 403, with default header values.
User is not authorized for request
func NewPutAssetModelLockForbidden ¶
func NewPutAssetModelLockForbidden() *PutAssetModelLockForbidden
NewPutAssetModelLockForbidden creates a PutAssetModelLockForbidden with default headers values
func (*PutAssetModelLockForbidden) Code ¶
func (o *PutAssetModelLockForbidden) Code() int
Code gets the status code for the put asset model lock forbidden response
func (*PutAssetModelLockForbidden) Error ¶
func (o *PutAssetModelLockForbidden) Error() string
func (*PutAssetModelLockForbidden) GetPayload ¶
func (o *PutAssetModelLockForbidden) GetPayload() *models.Errors
func (*PutAssetModelLockForbidden) IsClientError ¶
func (o *PutAssetModelLockForbidden) IsClientError() bool
IsClientError returns true when this put asset model lock forbidden response has a 4xx status code
func (*PutAssetModelLockForbidden) IsCode ¶
func (o *PutAssetModelLockForbidden) IsCode(code int) bool
IsCode returns true when this put asset model lock forbidden response a status code equal to that given
func (*PutAssetModelLockForbidden) IsRedirect ¶
func (o *PutAssetModelLockForbidden) IsRedirect() bool
IsRedirect returns true when this put asset model lock forbidden response has a 3xx status code
func (*PutAssetModelLockForbidden) IsServerError ¶
func (o *PutAssetModelLockForbidden) IsServerError() bool
IsServerError returns true when this put asset model lock forbidden response has a 5xx status code
func (*PutAssetModelLockForbidden) IsSuccess ¶
func (o *PutAssetModelLockForbidden) IsSuccess() bool
IsSuccess returns true when this put asset model lock forbidden response has a 2xx status code
func (*PutAssetModelLockForbidden) String ¶
func (o *PutAssetModelLockForbidden) String() string
type PutAssetModelLockInternalServerError ¶
PutAssetModelLockInternalServerError describes a response with status code 500, with default header values.
Server error, for more information see errorcode and message
func NewPutAssetModelLockInternalServerError ¶
func NewPutAssetModelLockInternalServerError() *PutAssetModelLockInternalServerError
NewPutAssetModelLockInternalServerError creates a PutAssetModelLockInternalServerError with default headers values
func (*PutAssetModelLockInternalServerError) Code ¶
func (o *PutAssetModelLockInternalServerError) Code() int
Code gets the status code for the put asset model lock internal server error response
func (*PutAssetModelLockInternalServerError) Error ¶
func (o *PutAssetModelLockInternalServerError) Error() string
func (*PutAssetModelLockInternalServerError) GetPayload ¶
func (o *PutAssetModelLockInternalServerError) GetPayload() *models.Errors
func (*PutAssetModelLockInternalServerError) IsClientError ¶
func (o *PutAssetModelLockInternalServerError) IsClientError() bool
IsClientError returns true when this put asset model lock internal server error response has a 4xx status code
func (*PutAssetModelLockInternalServerError) IsCode ¶
func (o *PutAssetModelLockInternalServerError) IsCode(code int) bool
IsCode returns true when this put asset model lock internal server error response a status code equal to that given
func (*PutAssetModelLockInternalServerError) IsRedirect ¶
func (o *PutAssetModelLockInternalServerError) IsRedirect() bool
IsRedirect returns true when this put asset model lock internal server error response has a 3xx status code
func (*PutAssetModelLockInternalServerError) IsServerError ¶
func (o *PutAssetModelLockInternalServerError) IsServerError() bool
IsServerError returns true when this put asset model lock internal server error response has a 5xx status code
func (*PutAssetModelLockInternalServerError) IsSuccess ¶
func (o *PutAssetModelLockInternalServerError) IsSuccess() bool
IsSuccess returns true when this put asset model lock internal server error response has a 2xx status code
func (*PutAssetModelLockInternalServerError) String ¶
func (o *PutAssetModelLockInternalServerError) String() string
type PutAssetModelLockOK ¶
PutAssetModelLockOK describes a response with status code 200, with default header values.
Returns lock state of an asset model applied on a tenant.
func NewPutAssetModelLockOK ¶
func NewPutAssetModelLockOK() *PutAssetModelLockOK
NewPutAssetModelLockOK creates a PutAssetModelLockOK with default headers values
func (*PutAssetModelLockOK) Code ¶
func (o *PutAssetModelLockOK) Code() int
Code gets the status code for the put asset model lock o k response
func (*PutAssetModelLockOK) Error ¶
func (o *PutAssetModelLockOK) Error() string
func (*PutAssetModelLockOK) GetPayload ¶
func (o *PutAssetModelLockOK) GetPayload() *models.ModelLock
func (*PutAssetModelLockOK) IsClientError ¶
func (o *PutAssetModelLockOK) IsClientError() bool
IsClientError returns true when this put asset model lock o k response has a 4xx status code
func (*PutAssetModelLockOK) IsCode ¶
func (o *PutAssetModelLockOK) IsCode(code int) bool
IsCode returns true when this put asset model lock o k response a status code equal to that given
func (*PutAssetModelLockOK) IsRedirect ¶
func (o *PutAssetModelLockOK) IsRedirect() bool
IsRedirect returns true when this put asset model lock o k response has a 3xx status code
func (*PutAssetModelLockOK) IsServerError ¶
func (o *PutAssetModelLockOK) IsServerError() bool
IsServerError returns true when this put asset model lock o k response has a 5xx status code
func (*PutAssetModelLockOK) IsSuccess ¶
func (o *PutAssetModelLockOK) IsSuccess() bool
IsSuccess returns true when this put asset model lock o k response has a 2xx status code
func (*PutAssetModelLockOK) String ¶
func (o *PutAssetModelLockOK) String() string
type PutAssetModelLockParams ¶
type PutAssetModelLockParams struct { /* Enabled. Lock state of an asset model */ Enabled bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PutAssetModelLockParams contains all the parameters to send to the API endpoint
for the put asset model lock operation. Typically these are written to a http.Request.
func NewPutAssetModelLockParams ¶
func NewPutAssetModelLockParams() *PutAssetModelLockParams
NewPutAssetModelLockParams creates a new PutAssetModelLockParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPutAssetModelLockParamsWithContext ¶
func NewPutAssetModelLockParamsWithContext(ctx context.Context) *PutAssetModelLockParams
NewPutAssetModelLockParamsWithContext creates a new PutAssetModelLockParams object with the ability to set a context for a request.
func NewPutAssetModelLockParamsWithHTTPClient ¶
func NewPutAssetModelLockParamsWithHTTPClient(client *http.Client) *PutAssetModelLockParams
NewPutAssetModelLockParamsWithHTTPClient creates a new PutAssetModelLockParams object with the ability to set a custom HTTPClient for a request.
func NewPutAssetModelLockParamsWithTimeout ¶
func NewPutAssetModelLockParamsWithTimeout(timeout time.Duration) *PutAssetModelLockParams
NewPutAssetModelLockParamsWithTimeout creates a new PutAssetModelLockParams object with the ability to set a timeout on a request.
func (*PutAssetModelLockParams) SetContext ¶
func (o *PutAssetModelLockParams) SetContext(ctx context.Context)
SetContext adds the context to the put asset model lock params
func (*PutAssetModelLockParams) SetDefaults ¶
func (o *PutAssetModelLockParams) SetDefaults()
SetDefaults hydrates default values in the put asset model lock params (not the query body).
All values with no default are reset to their zero value.
func (*PutAssetModelLockParams) SetEnabled ¶
func (o *PutAssetModelLockParams) SetEnabled(enabled bool)
SetEnabled adds the enabled to the put asset model lock params
func (*PutAssetModelLockParams) SetHTTPClient ¶
func (o *PutAssetModelLockParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the put asset model lock params
func (*PutAssetModelLockParams) SetTimeout ¶
func (o *PutAssetModelLockParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the put asset model lock params
func (*PutAssetModelLockParams) WithContext ¶
func (o *PutAssetModelLockParams) WithContext(ctx context.Context) *PutAssetModelLockParams
WithContext adds the context to the put asset model lock params
func (*PutAssetModelLockParams) WithDefaults ¶
func (o *PutAssetModelLockParams) WithDefaults() *PutAssetModelLockParams
WithDefaults hydrates default values in the put asset model lock params (not the query body).
All values with no default are reset to their zero value.
func (*PutAssetModelLockParams) WithEnabled ¶
func (o *PutAssetModelLockParams) WithEnabled(enabled bool) *PutAssetModelLockParams
WithEnabled adds the enabled to the put asset model lock params
func (*PutAssetModelLockParams) WithHTTPClient ¶
func (o *PutAssetModelLockParams) WithHTTPClient(client *http.Client) *PutAssetModelLockParams
WithHTTPClient adds the HTTPClient to the put asset model lock params
func (*PutAssetModelLockParams) WithTimeout ¶
func (o *PutAssetModelLockParams) WithTimeout(timeout time.Duration) *PutAssetModelLockParams
WithTimeout adds the timeout to the put asset model lock params
func (*PutAssetModelLockParams) WriteToRequest ¶
func (o *PutAssetModelLockParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PutAssetModelLockPreconditionFailed ¶
PutAssetModelLockPreconditionFailed describes a response with status code 412, with default header values.
Precondition Failed
func NewPutAssetModelLockPreconditionFailed ¶
func NewPutAssetModelLockPreconditionFailed() *PutAssetModelLockPreconditionFailed
NewPutAssetModelLockPreconditionFailed creates a PutAssetModelLockPreconditionFailed with default headers values
func (*PutAssetModelLockPreconditionFailed) Code ¶
func (o *PutAssetModelLockPreconditionFailed) Code() int
Code gets the status code for the put asset model lock precondition failed response
func (*PutAssetModelLockPreconditionFailed) Error ¶
func (o *PutAssetModelLockPreconditionFailed) Error() string
func (*PutAssetModelLockPreconditionFailed) GetPayload ¶
func (o *PutAssetModelLockPreconditionFailed) GetPayload() *models.Errors
func (*PutAssetModelLockPreconditionFailed) IsClientError ¶
func (o *PutAssetModelLockPreconditionFailed) IsClientError() bool
IsClientError returns true when this put asset model lock precondition failed response has a 4xx status code
func (*PutAssetModelLockPreconditionFailed) IsCode ¶
func (o *PutAssetModelLockPreconditionFailed) IsCode(code int) bool
IsCode returns true when this put asset model lock precondition failed response a status code equal to that given
func (*PutAssetModelLockPreconditionFailed) IsRedirect ¶
func (o *PutAssetModelLockPreconditionFailed) IsRedirect() bool
IsRedirect returns true when this put asset model lock precondition failed response has a 3xx status code
func (*PutAssetModelLockPreconditionFailed) IsServerError ¶
func (o *PutAssetModelLockPreconditionFailed) IsServerError() bool
IsServerError returns true when this put asset model lock precondition failed response has a 5xx status code
func (*PutAssetModelLockPreconditionFailed) IsSuccess ¶
func (o *PutAssetModelLockPreconditionFailed) IsSuccess() bool
IsSuccess returns true when this put asset model lock precondition failed response has a 2xx status code
func (*PutAssetModelLockPreconditionFailed) String ¶
func (o *PutAssetModelLockPreconditionFailed) String() string
type PutAssetModelLockReader ¶
type PutAssetModelLockReader struct {
// contains filtered or unexported fields
}
PutAssetModelLockReader is a Reader for the PutAssetModelLock structure.
func (*PutAssetModelLockReader) ReadResponse ¶
func (o *PutAssetModelLockReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PutAssetModelLockTooManyRequests ¶
PutAssetModelLockTooManyRequests describes a response with status code 429, with default header values.
Too Many Requests
func NewPutAssetModelLockTooManyRequests ¶
func NewPutAssetModelLockTooManyRequests() *PutAssetModelLockTooManyRequests
NewPutAssetModelLockTooManyRequests creates a PutAssetModelLockTooManyRequests with default headers values
func (*PutAssetModelLockTooManyRequests) Code ¶
func (o *PutAssetModelLockTooManyRequests) Code() int
Code gets the status code for the put asset model lock too many requests response
func (*PutAssetModelLockTooManyRequests) Error ¶
func (o *PutAssetModelLockTooManyRequests) Error() string
func (*PutAssetModelLockTooManyRequests) GetPayload ¶
func (o *PutAssetModelLockTooManyRequests) GetPayload() *models.Errors
func (*PutAssetModelLockTooManyRequests) IsClientError ¶
func (o *PutAssetModelLockTooManyRequests) IsClientError() bool
IsClientError returns true when this put asset model lock too many requests response has a 4xx status code
func (*PutAssetModelLockTooManyRequests) IsCode ¶
func (o *PutAssetModelLockTooManyRequests) IsCode(code int) bool
IsCode returns true when this put asset model lock too many requests response a status code equal to that given
func (*PutAssetModelLockTooManyRequests) IsRedirect ¶
func (o *PutAssetModelLockTooManyRequests) IsRedirect() bool
IsRedirect returns true when this put asset model lock too many requests response has a 3xx status code
func (*PutAssetModelLockTooManyRequests) IsServerError ¶
func (o *PutAssetModelLockTooManyRequests) IsServerError() bool
IsServerError returns true when this put asset model lock too many requests response has a 5xx status code
func (*PutAssetModelLockTooManyRequests) IsSuccess ¶
func (o *PutAssetModelLockTooManyRequests) IsSuccess() bool
IsSuccess returns true when this put asset model lock too many requests response has a 2xx status code
func (*PutAssetModelLockTooManyRequests) String ¶
func (o *PutAssetModelLockTooManyRequests) String() string
type PutAssetModelLockUnauthorized ¶
type PutAssetModelLockUnauthorized struct {
}PutAssetModelLockUnauthorized describes a response with status code 401, with default header values.
User is not authenticated
func NewPutAssetModelLockUnauthorized ¶
func NewPutAssetModelLockUnauthorized() *PutAssetModelLockUnauthorized
NewPutAssetModelLockUnauthorized creates a PutAssetModelLockUnauthorized with default headers values
func (*PutAssetModelLockUnauthorized) Code ¶
func (o *PutAssetModelLockUnauthorized) Code() int
Code gets the status code for the put asset model lock unauthorized response
func (*PutAssetModelLockUnauthorized) Error ¶
func (o *PutAssetModelLockUnauthorized) Error() string
func (*PutAssetModelLockUnauthorized) GetPayload ¶
func (o *PutAssetModelLockUnauthorized) GetPayload() *models.Errors
func (*PutAssetModelLockUnauthorized) IsClientError ¶
func (o *PutAssetModelLockUnauthorized) IsClientError() bool
IsClientError returns true when this put asset model lock unauthorized response has a 4xx status code
func (*PutAssetModelLockUnauthorized) IsCode ¶
func (o *PutAssetModelLockUnauthorized) IsCode(code int) bool
IsCode returns true when this put asset model lock unauthorized response a status code equal to that given
func (*PutAssetModelLockUnauthorized) IsRedirect ¶
func (o *PutAssetModelLockUnauthorized) IsRedirect() bool
IsRedirect returns true when this put asset model lock unauthorized response has a 3xx status code
func (*PutAssetModelLockUnauthorized) IsServerError ¶
func (o *PutAssetModelLockUnauthorized) IsServerError() bool
IsServerError returns true when this put asset model lock unauthorized response has a 5xx status code
func (*PutAssetModelLockUnauthorized) IsSuccess ¶
func (o *PutAssetModelLockUnauthorized) IsSuccess() bool
IsSuccess returns true when this put asset model lock unauthorized response has a 2xx status code
func (*PutAssetModelLockUnauthorized) String ¶
func (o *PutAssetModelLockUnauthorized) String() string