resource_actions

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 10 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 resource actions API

func (*Client) GetResourceActionUsingGET1

func (a *Client) GetResourceActionUsingGET1(params *GetResourceActionUsingGET1Params, opts ...ClientOption) (*GetResourceActionUsingGET1OK, error)

GetResourceActionUsingGET1 fetches resource action

Returns an action for the resource specified by its Resource ID and Action ID.

func (*Client) GetResourceActionsUsingGET1

func (a *Client) GetResourceActionsUsingGET1(params *GetResourceActionsUsingGET1Params, opts ...ClientOption) (*GetResourceActionsUsingGET1OK, error)

GetResourceActionsUsingGET1 fetches available resource actions

Returns the complete list of available actions that can be performed on a given resource.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) SubmitResourceActionRequestUsingPOST1

func (a *Client) SubmitResourceActionRequestUsingPOST1(params *SubmitResourceActionRequestUsingPOST1Params, opts ...ClientOption) (*SubmitResourceActionRequestUsingPOST1OK, error)

SubmitResourceActionRequestUsingPOST1 resources action request

Submit a resource action request.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetResourceActionUsingGET1(params *GetResourceActionUsingGET1Params, opts ...ClientOption) (*GetResourceActionUsingGET1OK, error)

	GetResourceActionsUsingGET1(params *GetResourceActionsUsingGET1Params, opts ...ClientOption) (*GetResourceActionsUsingGET1OK, error)

	SubmitResourceActionRequestUsingPOST1(params *SubmitResourceActionRequestUsingPOST1Params, opts ...ClientOption) (*SubmitResourceActionRequestUsingPOST1OK, 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 resource actions API client.

type GetResourceActionUsingGET1NotFound

type GetResourceActionUsingGET1NotFound struct {
	Payload *models.Error
}
GetResourceActionUsingGET1NotFound describes a response with status code 404, with default header values.

Not Found

func NewGetResourceActionUsingGET1NotFound

func NewGetResourceActionUsingGET1NotFound() *GetResourceActionUsingGET1NotFound

NewGetResourceActionUsingGET1NotFound creates a GetResourceActionUsingGET1NotFound with default headers values

func (*GetResourceActionUsingGET1NotFound) Error

func (*GetResourceActionUsingGET1NotFound) GetPayload

type GetResourceActionUsingGET1OK

type GetResourceActionUsingGET1OK struct {
	Payload *models.ResourceAction
}
GetResourceActionUsingGET1OK describes a response with status code 200, with default header values.

OK

func NewGetResourceActionUsingGET1OK

func NewGetResourceActionUsingGET1OK() *GetResourceActionUsingGET1OK

NewGetResourceActionUsingGET1OK creates a GetResourceActionUsingGET1OK with default headers values

func (*GetResourceActionUsingGET1OK) Error

func (*GetResourceActionUsingGET1OK) GetPayload

type GetResourceActionUsingGET1Params

type GetResourceActionUsingGET1Params struct {

	/* ActionID.

	   Action ID
	*/
	ActionID string

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.
	*/
	APIVersion *string

	/* ResourceID.

	   Resource ID

	   Format: uuid
	*/
	ResourceID strfmt.UUID

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

GetResourceActionUsingGET1Params contains all the parameters to send to the API endpoint

for the get resource action using get1 operation.

Typically these are written to a http.Request.

func NewGetResourceActionUsingGET1Params

func NewGetResourceActionUsingGET1Params() *GetResourceActionUsingGET1Params

NewGetResourceActionUsingGET1Params creates a new GetResourceActionUsingGET1Params 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 NewGetResourceActionUsingGET1ParamsWithContext

func NewGetResourceActionUsingGET1ParamsWithContext(ctx context.Context) *GetResourceActionUsingGET1Params

NewGetResourceActionUsingGET1ParamsWithContext creates a new GetResourceActionUsingGET1Params object with the ability to set a context for a request.

func NewGetResourceActionUsingGET1ParamsWithHTTPClient

func NewGetResourceActionUsingGET1ParamsWithHTTPClient(client *http.Client) *GetResourceActionUsingGET1Params

NewGetResourceActionUsingGET1ParamsWithHTTPClient creates a new GetResourceActionUsingGET1Params object with the ability to set a custom HTTPClient for a request.

func NewGetResourceActionUsingGET1ParamsWithTimeout

func NewGetResourceActionUsingGET1ParamsWithTimeout(timeout time.Duration) *GetResourceActionUsingGET1Params

NewGetResourceActionUsingGET1ParamsWithTimeout creates a new GetResourceActionUsingGET1Params object with the ability to set a timeout on a request.

func (*GetResourceActionUsingGET1Params) SetAPIVersion

func (o *GetResourceActionUsingGET1Params) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get resource action using get1 params

func (*GetResourceActionUsingGET1Params) SetActionID

func (o *GetResourceActionUsingGET1Params) SetActionID(actionID string)

SetActionID adds the actionId to the get resource action using get1 params

func (*GetResourceActionUsingGET1Params) SetContext

SetContext adds the context to the get resource action using get1 params

func (*GetResourceActionUsingGET1Params) SetDefaults

func (o *GetResourceActionUsingGET1Params) SetDefaults()

SetDefaults hydrates default values in the get resource action using get1 params (not the query body).

All values with no default are reset to their zero value.

func (*GetResourceActionUsingGET1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get resource action using get1 params

func (*GetResourceActionUsingGET1Params) SetResourceID

func (o *GetResourceActionUsingGET1Params) SetResourceID(resourceID strfmt.UUID)

SetResourceID adds the resourceId to the get resource action using get1 params

func (*GetResourceActionUsingGET1Params) SetTimeout

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

SetTimeout adds the timeout to the get resource action using get1 params

func (*GetResourceActionUsingGET1Params) WithAPIVersion

WithAPIVersion adds the aPIVersion to the get resource action using get1 params

func (*GetResourceActionUsingGET1Params) WithActionID

WithActionID adds the actionID to the get resource action using get1 params

func (*GetResourceActionUsingGET1Params) WithContext

WithContext adds the context to the get resource action using get1 params

func (*GetResourceActionUsingGET1Params) WithDefaults

WithDefaults hydrates default values in the get resource action using get1 params (not the query body).

All values with no default are reset to their zero value.

func (*GetResourceActionUsingGET1Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get resource action using get1 params

func (*GetResourceActionUsingGET1Params) WithResourceID

WithResourceID adds the resourceID to the get resource action using get1 params

func (*GetResourceActionUsingGET1Params) WithTimeout

WithTimeout adds the timeout to the get resource action using get1 params

func (*GetResourceActionUsingGET1Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetResourceActionUsingGET1Reader

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

GetResourceActionUsingGET1Reader is a Reader for the GetResourceActionUsingGET1 structure.

func (*GetResourceActionUsingGET1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetResourceActionUsingGET1Unauthorized

type GetResourceActionUsingGET1Unauthorized struct {
}
GetResourceActionUsingGET1Unauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetResourceActionUsingGET1Unauthorized

func NewGetResourceActionUsingGET1Unauthorized() *GetResourceActionUsingGET1Unauthorized

NewGetResourceActionUsingGET1Unauthorized creates a GetResourceActionUsingGET1Unauthorized with default headers values

func (*GetResourceActionUsingGET1Unauthorized) Error

type GetResourceActionsUsingGET1NotFound

type GetResourceActionsUsingGET1NotFound struct {
	Payload *models.Error
}
GetResourceActionsUsingGET1NotFound describes a response with status code 404, with default header values.

Not Found

func NewGetResourceActionsUsingGET1NotFound

func NewGetResourceActionsUsingGET1NotFound() *GetResourceActionsUsingGET1NotFound

NewGetResourceActionsUsingGET1NotFound creates a GetResourceActionsUsingGET1NotFound with default headers values

func (*GetResourceActionsUsingGET1NotFound) Error

func (*GetResourceActionsUsingGET1NotFound) GetPayload

type GetResourceActionsUsingGET1OK

type GetResourceActionsUsingGET1OK struct {
	Payload []*models.ResourceAction
}
GetResourceActionsUsingGET1OK describes a response with status code 200, with default header values.

OK

func NewGetResourceActionsUsingGET1OK

func NewGetResourceActionsUsingGET1OK() *GetResourceActionsUsingGET1OK

NewGetResourceActionsUsingGET1OK creates a GetResourceActionsUsingGET1OK with default headers values

func (*GetResourceActionsUsingGET1OK) Error

func (*GetResourceActionsUsingGET1OK) GetPayload

type GetResourceActionsUsingGET1Params

type GetResourceActionsUsingGET1Params struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.
	*/
	APIVersion *string

	/* ResourceID.

	   Resource ID

	   Format: uuid
	*/
	ResourceID strfmt.UUID

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

GetResourceActionsUsingGET1Params contains all the parameters to send to the API endpoint

for the get resource actions using get1 operation.

Typically these are written to a http.Request.

func NewGetResourceActionsUsingGET1Params

func NewGetResourceActionsUsingGET1Params() *GetResourceActionsUsingGET1Params

NewGetResourceActionsUsingGET1Params creates a new GetResourceActionsUsingGET1Params 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 NewGetResourceActionsUsingGET1ParamsWithContext

func NewGetResourceActionsUsingGET1ParamsWithContext(ctx context.Context) *GetResourceActionsUsingGET1Params

NewGetResourceActionsUsingGET1ParamsWithContext creates a new GetResourceActionsUsingGET1Params object with the ability to set a context for a request.

func NewGetResourceActionsUsingGET1ParamsWithHTTPClient

func NewGetResourceActionsUsingGET1ParamsWithHTTPClient(client *http.Client) *GetResourceActionsUsingGET1Params

NewGetResourceActionsUsingGET1ParamsWithHTTPClient creates a new GetResourceActionsUsingGET1Params object with the ability to set a custom HTTPClient for a request.

func NewGetResourceActionsUsingGET1ParamsWithTimeout

func NewGetResourceActionsUsingGET1ParamsWithTimeout(timeout time.Duration) *GetResourceActionsUsingGET1Params

NewGetResourceActionsUsingGET1ParamsWithTimeout creates a new GetResourceActionsUsingGET1Params object with the ability to set a timeout on a request.

func (*GetResourceActionsUsingGET1Params) SetAPIVersion

func (o *GetResourceActionsUsingGET1Params) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get resource actions using get1 params

func (*GetResourceActionsUsingGET1Params) SetContext

SetContext adds the context to the get resource actions using get1 params

func (*GetResourceActionsUsingGET1Params) SetDefaults

func (o *GetResourceActionsUsingGET1Params) SetDefaults()

SetDefaults hydrates default values in the get resource actions using get1 params (not the query body).

All values with no default are reset to their zero value.

func (*GetResourceActionsUsingGET1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get resource actions using get1 params

func (*GetResourceActionsUsingGET1Params) SetResourceID

func (o *GetResourceActionsUsingGET1Params) SetResourceID(resourceID strfmt.UUID)

SetResourceID adds the resourceId to the get resource actions using get1 params

func (*GetResourceActionsUsingGET1Params) SetTimeout

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

SetTimeout adds the timeout to the get resource actions using get1 params

func (*GetResourceActionsUsingGET1Params) WithAPIVersion

WithAPIVersion adds the aPIVersion to the get resource actions using get1 params

func (*GetResourceActionsUsingGET1Params) WithContext

WithContext adds the context to the get resource actions using get1 params

func (*GetResourceActionsUsingGET1Params) WithDefaults

WithDefaults hydrates default values in the get resource actions using get1 params (not the query body).

All values with no default are reset to their zero value.

func (*GetResourceActionsUsingGET1Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get resource actions using get1 params

func (*GetResourceActionsUsingGET1Params) WithResourceID

WithResourceID adds the resourceID to the get resource actions using get1 params

func (*GetResourceActionsUsingGET1Params) WithTimeout

WithTimeout adds the timeout to the get resource actions using get1 params

func (*GetResourceActionsUsingGET1Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetResourceActionsUsingGET1Reader

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

GetResourceActionsUsingGET1Reader is a Reader for the GetResourceActionsUsingGET1 structure.

func (*GetResourceActionsUsingGET1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetResourceActionsUsingGET1Unauthorized

type GetResourceActionsUsingGET1Unauthorized struct {
}
GetResourceActionsUsingGET1Unauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetResourceActionsUsingGET1Unauthorized

func NewGetResourceActionsUsingGET1Unauthorized() *GetResourceActionsUsingGET1Unauthorized

NewGetResourceActionsUsingGET1Unauthorized creates a GetResourceActionsUsingGET1Unauthorized with default headers values

func (*GetResourceActionsUsingGET1Unauthorized) Error

type SubmitResourceActionRequestUsingPOST1Forbidden

type SubmitResourceActionRequestUsingPOST1Forbidden struct {
}
SubmitResourceActionRequestUsingPOST1Forbidden describes a response with status code 403, with default header values.

Forbidden

func NewSubmitResourceActionRequestUsingPOST1Forbidden

func NewSubmitResourceActionRequestUsingPOST1Forbidden() *SubmitResourceActionRequestUsingPOST1Forbidden

NewSubmitResourceActionRequestUsingPOST1Forbidden creates a SubmitResourceActionRequestUsingPOST1Forbidden with default headers values

func (*SubmitResourceActionRequestUsingPOST1Forbidden) Error

type SubmitResourceActionRequestUsingPOST1NotFound

type SubmitResourceActionRequestUsingPOST1NotFound struct {
	Payload *models.Error
}
SubmitResourceActionRequestUsingPOST1NotFound describes a response with status code 404, with default header values.

Not Found

func NewSubmitResourceActionRequestUsingPOST1NotFound

func NewSubmitResourceActionRequestUsingPOST1NotFound() *SubmitResourceActionRequestUsingPOST1NotFound

NewSubmitResourceActionRequestUsingPOST1NotFound creates a SubmitResourceActionRequestUsingPOST1NotFound with default headers values

func (*SubmitResourceActionRequestUsingPOST1NotFound) Error

func (*SubmitResourceActionRequestUsingPOST1NotFound) GetPayload

type SubmitResourceActionRequestUsingPOST1OK

type SubmitResourceActionRequestUsingPOST1OK struct {
	Payload *models.Request
}
SubmitResourceActionRequestUsingPOST1OK describes a response with status code 200, with default header values.

OK

func NewSubmitResourceActionRequestUsingPOST1OK

func NewSubmitResourceActionRequestUsingPOST1OK() *SubmitResourceActionRequestUsingPOST1OK

NewSubmitResourceActionRequestUsingPOST1OK creates a SubmitResourceActionRequestUsingPOST1OK with default headers values

func (*SubmitResourceActionRequestUsingPOST1OK) Error

func (*SubmitResourceActionRequestUsingPOST1OK) GetPayload

type SubmitResourceActionRequestUsingPOST1Params

type SubmitResourceActionRequestUsingPOST1Params struct {

	/* ActionRequest.

	   actionRequest
	*/
	ActionRequest *models.ResourceActionRequest

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.
	*/
	APIVersion *string

	/* ResourceID.

	   Resource ID

	   Format: uuid
	*/
	ResourceID strfmt.UUID

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

SubmitResourceActionRequestUsingPOST1Params contains all the parameters to send to the API endpoint

for the submit resource action request using p o s t 1 operation.

Typically these are written to a http.Request.

func NewSubmitResourceActionRequestUsingPOST1Params

func NewSubmitResourceActionRequestUsingPOST1Params() *SubmitResourceActionRequestUsingPOST1Params

NewSubmitResourceActionRequestUsingPOST1Params creates a new SubmitResourceActionRequestUsingPOST1Params 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 NewSubmitResourceActionRequestUsingPOST1ParamsWithContext

func NewSubmitResourceActionRequestUsingPOST1ParamsWithContext(ctx context.Context) *SubmitResourceActionRequestUsingPOST1Params

NewSubmitResourceActionRequestUsingPOST1ParamsWithContext creates a new SubmitResourceActionRequestUsingPOST1Params object with the ability to set a context for a request.

func NewSubmitResourceActionRequestUsingPOST1ParamsWithHTTPClient

func NewSubmitResourceActionRequestUsingPOST1ParamsWithHTTPClient(client *http.Client) *SubmitResourceActionRequestUsingPOST1Params

NewSubmitResourceActionRequestUsingPOST1ParamsWithHTTPClient creates a new SubmitResourceActionRequestUsingPOST1Params object with the ability to set a custom HTTPClient for a request.

func NewSubmitResourceActionRequestUsingPOST1ParamsWithTimeout

func NewSubmitResourceActionRequestUsingPOST1ParamsWithTimeout(timeout time.Duration) *SubmitResourceActionRequestUsingPOST1Params

NewSubmitResourceActionRequestUsingPOST1ParamsWithTimeout creates a new SubmitResourceActionRequestUsingPOST1Params object with the ability to set a timeout on a request.

func (*SubmitResourceActionRequestUsingPOST1Params) SetAPIVersion

func (o *SubmitResourceActionRequestUsingPOST1Params) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the submit resource action request using p o s t 1 params

func (*SubmitResourceActionRequestUsingPOST1Params) SetActionRequest

func (o *SubmitResourceActionRequestUsingPOST1Params) SetActionRequest(actionRequest *models.ResourceActionRequest)

SetActionRequest adds the actionRequest to the submit resource action request using p o s t 1 params

func (*SubmitResourceActionRequestUsingPOST1Params) SetContext

SetContext adds the context to the submit resource action request using p o s t 1 params

func (*SubmitResourceActionRequestUsingPOST1Params) SetDefaults

SetDefaults hydrates default values in the submit resource action request using p o s t 1 params (not the query body).

All values with no default are reset to their zero value.

func (*SubmitResourceActionRequestUsingPOST1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the submit resource action request using p o s t 1 params

func (*SubmitResourceActionRequestUsingPOST1Params) SetResourceID

func (o *SubmitResourceActionRequestUsingPOST1Params) SetResourceID(resourceID strfmt.UUID)

SetResourceID adds the resourceId to the submit resource action request using p o s t 1 params

func (*SubmitResourceActionRequestUsingPOST1Params) SetTimeout

SetTimeout adds the timeout to the submit resource action request using p o s t 1 params

func (*SubmitResourceActionRequestUsingPOST1Params) WithAPIVersion

WithAPIVersion adds the aPIVersion to the submit resource action request using p o s t 1 params

func (*SubmitResourceActionRequestUsingPOST1Params) WithActionRequest

WithActionRequest adds the actionRequest to the submit resource action request using p o s t 1 params

func (*SubmitResourceActionRequestUsingPOST1Params) WithContext

WithContext adds the context to the submit resource action request using p o s t 1 params

func (*SubmitResourceActionRequestUsingPOST1Params) WithDefaults

WithDefaults hydrates default values in the submit resource action request using p o s t 1 params (not the query body).

All values with no default are reset to their zero value.

func (*SubmitResourceActionRequestUsingPOST1Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the submit resource action request using p o s t 1 params

func (*SubmitResourceActionRequestUsingPOST1Params) WithResourceID

WithResourceID adds the resourceID to the submit resource action request using p o s t 1 params

func (*SubmitResourceActionRequestUsingPOST1Params) WithTimeout

WithTimeout adds the timeout to the submit resource action request using p o s t 1 params

func (*SubmitResourceActionRequestUsingPOST1Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type SubmitResourceActionRequestUsingPOST1Reader

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

SubmitResourceActionRequestUsingPOST1Reader is a Reader for the SubmitResourceActionRequestUsingPOST1 structure.

func (*SubmitResourceActionRequestUsingPOST1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SubmitResourceActionRequestUsingPOST1Unauthorized

type SubmitResourceActionRequestUsingPOST1Unauthorized struct {
}
SubmitResourceActionRequestUsingPOST1Unauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewSubmitResourceActionRequestUsingPOST1Unauthorized

func NewSubmitResourceActionRequestUsingPOST1Unauthorized() *SubmitResourceActionRequestUsingPOST1Unauthorized

NewSubmitResourceActionRequestUsingPOST1Unauthorized creates a SubmitResourceActionRequestUsingPOST1Unauthorized with default headers values

func (*SubmitResourceActionRequestUsingPOST1Unauthorized) Error

Jump to

Keyboard shortcuts

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