deployments_notes

package
v1.2.30 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 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 deployments notes API

func (*Client) CreateDeploymentNote

func (a *Client) CreateDeploymentNote(params *CreateDeploymentNoteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateDeploymentNoteCreated, error)
CreateDeploymentNote creates deployment note

> WARNING

> This endpoint is deprecated and scheduled to be removed in the next major version. Use [Create a Comment](#Comments) instead.

Create note for the running deployment.

func (*Client) DeleteDeploymentNote

func (a *Client) DeleteDeploymentNote(params *DeleteDeploymentNoteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteDeploymentNoteOK, error)
DeleteDeploymentNote deletes deployment note

> WARNING

> This endpoint is deprecated and scheduled to be removed in the next major version. Use [Delete Comment](#Comments) instead.

Delete note for the running deployment.

func (*Client) GetDeploymentNote

func (a *Client) GetDeploymentNote(params *GetDeploymentNoteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentNoteOK, error)
GetDeploymentNote gets a deployment note

> WARNING

> This endpoint is deprecated and scheduled to be removed in the next major version. Use [Get Comment](#Comments) instead.

Gets a deployment note.

func (*Client) GetDeploymentNotes

func (a *Client) GetDeploymentNotes(params *GetDeploymentNotesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentNotesOK, error)
GetDeploymentNotes gets deployment notes

> WARNING

> This endpoint is deprecated and scheduled to be removed in the next major version. Use [List Comments](#Comments) instead.

Get deployment notes.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateDeploymentNote

func (a *Client) UpdateDeploymentNote(params *UpdateDeploymentNoteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateDeploymentNoteOK, error)
UpdateDeploymentNote updates deployment note

> WARNING

> This endpoint is deprecated and scheduled to be removed in the next major version. Use [Update Comment](#Comments) instead.

Update note for the running deployment.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateDeploymentNote(params *CreateDeploymentNoteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateDeploymentNoteCreated, error)

	DeleteDeploymentNote(params *DeleteDeploymentNoteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteDeploymentNoteOK, error)

	GetDeploymentNote(params *GetDeploymentNoteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentNoteOK, error)

	GetDeploymentNotes(params *GetDeploymentNotesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeploymentNotesOK, error)

	UpdateDeploymentNote(params *UpdateDeploymentNoteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateDeploymentNoteOK, 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 deployments notes API client.

type CreateDeploymentNoteCreated

type CreateDeploymentNoteCreated struct {
	Payload *models.Notes
}

CreateDeploymentNoteCreated describes a response with status code 201, with default header values.

List of deployment notes after the new deployment note has been added

func NewCreateDeploymentNoteCreated

func NewCreateDeploymentNoteCreated() *CreateDeploymentNoteCreated

NewCreateDeploymentNoteCreated creates a CreateDeploymentNoteCreated with default headers values

func (*CreateDeploymentNoteCreated) Code

func (o *CreateDeploymentNoteCreated) Code() int

Code gets the status code for the create deployment note created response

func (*CreateDeploymentNoteCreated) Error

func (*CreateDeploymentNoteCreated) GetPayload

func (o *CreateDeploymentNoteCreated) GetPayload() *models.Notes

func (*CreateDeploymentNoteCreated) IsClientError

func (o *CreateDeploymentNoteCreated) IsClientError() bool

IsClientError returns true when this create deployment note created response has a 4xx status code

func (*CreateDeploymentNoteCreated) IsCode

func (o *CreateDeploymentNoteCreated) IsCode(code int) bool

IsCode returns true when this create deployment note created response a status code equal to that given

func (*CreateDeploymentNoteCreated) IsRedirect

func (o *CreateDeploymentNoteCreated) IsRedirect() bool

IsRedirect returns true when this create deployment note created response has a 3xx status code

func (*CreateDeploymentNoteCreated) IsServerError

func (o *CreateDeploymentNoteCreated) IsServerError() bool

IsServerError returns true when this create deployment note created response has a 5xx status code

func (*CreateDeploymentNoteCreated) IsSuccess

func (o *CreateDeploymentNoteCreated) IsSuccess() bool

IsSuccess returns true when this create deployment note created response has a 2xx status code

func (*CreateDeploymentNoteCreated) String

func (o *CreateDeploymentNoteCreated) String() string

type CreateDeploymentNoteNotFound

type CreateDeploymentNoteNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

CreateDeploymentNoteNotFound describes a response with status code 404, with default header values.

The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)

func NewCreateDeploymentNoteNotFound

func NewCreateDeploymentNoteNotFound() *CreateDeploymentNoteNotFound

NewCreateDeploymentNoteNotFound creates a CreateDeploymentNoteNotFound with default headers values

func (*CreateDeploymentNoteNotFound) Code

Code gets the status code for the create deployment note not found response

func (*CreateDeploymentNoteNotFound) Error

func (*CreateDeploymentNoteNotFound) GetPayload

func (*CreateDeploymentNoteNotFound) IsClientError

func (o *CreateDeploymentNoteNotFound) IsClientError() bool

IsClientError returns true when this create deployment note not found response has a 4xx status code

func (*CreateDeploymentNoteNotFound) IsCode

func (o *CreateDeploymentNoteNotFound) IsCode(code int) bool

IsCode returns true when this create deployment note not found response a status code equal to that given

func (*CreateDeploymentNoteNotFound) IsRedirect

func (o *CreateDeploymentNoteNotFound) IsRedirect() bool

IsRedirect returns true when this create deployment note not found response has a 3xx status code

func (*CreateDeploymentNoteNotFound) IsServerError

func (o *CreateDeploymentNoteNotFound) IsServerError() bool

IsServerError returns true when this create deployment note not found response has a 5xx status code

func (*CreateDeploymentNoteNotFound) IsSuccess

func (o *CreateDeploymentNoteNotFound) IsSuccess() bool

IsSuccess returns true when this create deployment note not found response has a 2xx status code

func (*CreateDeploymentNoteNotFound) String

type CreateDeploymentNoteParams

type CreateDeploymentNoteParams struct {

	/* Body.

	   New deployment note
	*/
	Body *models.Note

	/* DeploymentID.

	   Identifier for the deployment
	*/
	DeploymentID string

	/* Version.

	   If specified then checks for conflicts against the version of the deployment note
	*/
	Version *string

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

CreateDeploymentNoteParams contains all the parameters to send to the API endpoint

for the create deployment note operation.

Typically these are written to a http.Request.

func NewCreateDeploymentNoteParams

func NewCreateDeploymentNoteParams() *CreateDeploymentNoteParams

NewCreateDeploymentNoteParams creates a new CreateDeploymentNoteParams 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 NewCreateDeploymentNoteParamsWithContext

func NewCreateDeploymentNoteParamsWithContext(ctx context.Context) *CreateDeploymentNoteParams

NewCreateDeploymentNoteParamsWithContext creates a new CreateDeploymentNoteParams object with the ability to set a context for a request.

func NewCreateDeploymentNoteParamsWithHTTPClient

func NewCreateDeploymentNoteParamsWithHTTPClient(client *http.Client) *CreateDeploymentNoteParams

NewCreateDeploymentNoteParamsWithHTTPClient creates a new CreateDeploymentNoteParams object with the ability to set a custom HTTPClient for a request.

func NewCreateDeploymentNoteParamsWithTimeout

func NewCreateDeploymentNoteParamsWithTimeout(timeout time.Duration) *CreateDeploymentNoteParams

NewCreateDeploymentNoteParamsWithTimeout creates a new CreateDeploymentNoteParams object with the ability to set a timeout on a request.

func (*CreateDeploymentNoteParams) SetBody

func (o *CreateDeploymentNoteParams) SetBody(body *models.Note)

SetBody adds the body to the create deployment note params

func (*CreateDeploymentNoteParams) SetContext

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

SetContext adds the context to the create deployment note params

func (*CreateDeploymentNoteParams) SetDefaults

func (o *CreateDeploymentNoteParams) SetDefaults()

SetDefaults hydrates default values in the create deployment note params (not the query body).

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

func (*CreateDeploymentNoteParams) SetDeploymentID

func (o *CreateDeploymentNoteParams) SetDeploymentID(deploymentID string)

SetDeploymentID adds the deploymentId to the create deployment note params

func (*CreateDeploymentNoteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create deployment note params

func (*CreateDeploymentNoteParams) SetTimeout

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

SetTimeout adds the timeout to the create deployment note params

func (*CreateDeploymentNoteParams) SetVersion

func (o *CreateDeploymentNoteParams) SetVersion(version *string)

SetVersion adds the version to the create deployment note params

func (*CreateDeploymentNoteParams) WithBody

WithBody adds the body to the create deployment note params

func (*CreateDeploymentNoteParams) WithContext

WithContext adds the context to the create deployment note params

func (*CreateDeploymentNoteParams) WithDefaults

WithDefaults hydrates default values in the create deployment note params (not the query body).

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

func (*CreateDeploymentNoteParams) WithDeploymentID

func (o *CreateDeploymentNoteParams) WithDeploymentID(deploymentID string) *CreateDeploymentNoteParams

WithDeploymentID adds the deploymentID to the create deployment note params

func (*CreateDeploymentNoteParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create deployment note params

func (*CreateDeploymentNoteParams) WithTimeout

WithTimeout adds the timeout to the create deployment note params

func (*CreateDeploymentNoteParams) WithVersion

WithVersion adds the version to the create deployment note params

func (*CreateDeploymentNoteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateDeploymentNoteReader

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

CreateDeploymentNoteReader is a Reader for the CreateDeploymentNote structure.

func (*CreateDeploymentNoteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteDeploymentNoteNotFound

type DeleteDeploymentNoteNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
DeleteDeploymentNoteNotFound describes a response with status code 404, with default header values.

* "The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)

* The note specified by {note_id} cannot be found. (code: `notes.note_not_found`)

func NewDeleteDeploymentNoteNotFound

func NewDeleteDeploymentNoteNotFound() *DeleteDeploymentNoteNotFound

NewDeleteDeploymentNoteNotFound creates a DeleteDeploymentNoteNotFound with default headers values

func (*DeleteDeploymentNoteNotFound) Code

Code gets the status code for the delete deployment note not found response

func (*DeleteDeploymentNoteNotFound) Error

func (*DeleteDeploymentNoteNotFound) GetPayload

func (*DeleteDeploymentNoteNotFound) IsClientError

func (o *DeleteDeploymentNoteNotFound) IsClientError() bool

IsClientError returns true when this delete deployment note not found response has a 4xx status code

func (*DeleteDeploymentNoteNotFound) IsCode

func (o *DeleteDeploymentNoteNotFound) IsCode(code int) bool

IsCode returns true when this delete deployment note not found response a status code equal to that given

func (*DeleteDeploymentNoteNotFound) IsRedirect

func (o *DeleteDeploymentNoteNotFound) IsRedirect() bool

IsRedirect returns true when this delete deployment note not found response has a 3xx status code

func (*DeleteDeploymentNoteNotFound) IsServerError

func (o *DeleteDeploymentNoteNotFound) IsServerError() bool

IsServerError returns true when this delete deployment note not found response has a 5xx status code

func (*DeleteDeploymentNoteNotFound) IsSuccess

func (o *DeleteDeploymentNoteNotFound) IsSuccess() bool

IsSuccess returns true when this delete deployment note not found response has a 2xx status code

func (*DeleteDeploymentNoteNotFound) String

type DeleteDeploymentNoteOK

type DeleteDeploymentNoteOK struct {

	/* The date-time when the resource was created (ISO format relative to UTC)
	 */
	XCloudResourceCreated string

	/* The date-time when the resource was last modified (ISO format relative to UTC)
	 */
	XCloudResourceLastModified string

	/* The resource version, which is used to avoid update conflicts with concurrent operations
	 */
	XCloudResourceVersion string

	Payload *models.Notes
}

DeleteDeploymentNoteOK describes a response with status code 200, with default header values.

List of deployment notes after {note_id} has been deleted

func NewDeleteDeploymentNoteOK

func NewDeleteDeploymentNoteOK() *DeleteDeploymentNoteOK

NewDeleteDeploymentNoteOK creates a DeleteDeploymentNoteOK with default headers values

func (*DeleteDeploymentNoteOK) Code

func (o *DeleteDeploymentNoteOK) Code() int

Code gets the status code for the delete deployment note o k response

func (*DeleteDeploymentNoteOK) Error

func (o *DeleteDeploymentNoteOK) Error() string

func (*DeleteDeploymentNoteOK) GetPayload

func (o *DeleteDeploymentNoteOK) GetPayload() *models.Notes

func (*DeleteDeploymentNoteOK) IsClientError

func (o *DeleteDeploymentNoteOK) IsClientError() bool

IsClientError returns true when this delete deployment note o k response has a 4xx status code

func (*DeleteDeploymentNoteOK) IsCode

func (o *DeleteDeploymentNoteOK) IsCode(code int) bool

IsCode returns true when this delete deployment note o k response a status code equal to that given

func (*DeleteDeploymentNoteOK) IsRedirect

func (o *DeleteDeploymentNoteOK) IsRedirect() bool

IsRedirect returns true when this delete deployment note o k response has a 3xx status code

func (*DeleteDeploymentNoteOK) IsServerError

func (o *DeleteDeploymentNoteOK) IsServerError() bool

IsServerError returns true when this delete deployment note o k response has a 5xx status code

func (*DeleteDeploymentNoteOK) IsSuccess

func (o *DeleteDeploymentNoteOK) IsSuccess() bool

IsSuccess returns true when this delete deployment note o k response has a 2xx status code

func (*DeleteDeploymentNoteOK) String

func (o *DeleteDeploymentNoteOK) String() string

type DeleteDeploymentNoteParams

type DeleteDeploymentNoteParams struct {

	/* DeploymentID.

	   Identifier for the deployment
	*/
	DeploymentID string

	/* NoteID.

	   Identifier of the note to be deleted
	*/
	NoteID string

	/* Version.

	   If specified then checks for conflicts against the version of the deployment note
	*/
	Version *string

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

DeleteDeploymentNoteParams contains all the parameters to send to the API endpoint

for the delete deployment note operation.

Typically these are written to a http.Request.

func NewDeleteDeploymentNoteParams

func NewDeleteDeploymentNoteParams() *DeleteDeploymentNoteParams

NewDeleteDeploymentNoteParams creates a new DeleteDeploymentNoteParams 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 NewDeleteDeploymentNoteParamsWithContext

func NewDeleteDeploymentNoteParamsWithContext(ctx context.Context) *DeleteDeploymentNoteParams

NewDeleteDeploymentNoteParamsWithContext creates a new DeleteDeploymentNoteParams object with the ability to set a context for a request.

func NewDeleteDeploymentNoteParamsWithHTTPClient

func NewDeleteDeploymentNoteParamsWithHTTPClient(client *http.Client) *DeleteDeploymentNoteParams

NewDeleteDeploymentNoteParamsWithHTTPClient creates a new DeleteDeploymentNoteParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteDeploymentNoteParamsWithTimeout

func NewDeleteDeploymentNoteParamsWithTimeout(timeout time.Duration) *DeleteDeploymentNoteParams

NewDeleteDeploymentNoteParamsWithTimeout creates a new DeleteDeploymentNoteParams object with the ability to set a timeout on a request.

func (*DeleteDeploymentNoteParams) SetContext

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

SetContext adds the context to the delete deployment note params

func (*DeleteDeploymentNoteParams) SetDefaults

func (o *DeleteDeploymentNoteParams) SetDefaults()

SetDefaults hydrates default values in the delete deployment note params (not the query body).

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

func (*DeleteDeploymentNoteParams) SetDeploymentID

func (o *DeleteDeploymentNoteParams) SetDeploymentID(deploymentID string)

SetDeploymentID adds the deploymentId to the delete deployment note params

func (*DeleteDeploymentNoteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete deployment note params

func (*DeleteDeploymentNoteParams) SetNoteID

func (o *DeleteDeploymentNoteParams) SetNoteID(noteID string)

SetNoteID adds the noteId to the delete deployment note params

func (*DeleteDeploymentNoteParams) SetTimeout

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

SetTimeout adds the timeout to the delete deployment note params

func (*DeleteDeploymentNoteParams) SetVersion

func (o *DeleteDeploymentNoteParams) SetVersion(version *string)

SetVersion adds the version to the delete deployment note params

func (*DeleteDeploymentNoteParams) WithContext

WithContext adds the context to the delete deployment note params

func (*DeleteDeploymentNoteParams) WithDefaults

WithDefaults hydrates default values in the delete deployment note params (not the query body).

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

func (*DeleteDeploymentNoteParams) WithDeploymentID

func (o *DeleteDeploymentNoteParams) WithDeploymentID(deploymentID string) *DeleteDeploymentNoteParams

WithDeploymentID adds the deploymentID to the delete deployment note params

func (*DeleteDeploymentNoteParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete deployment note params

func (*DeleteDeploymentNoteParams) WithNoteID

WithNoteID adds the noteID to the delete deployment note params

func (*DeleteDeploymentNoteParams) WithTimeout

WithTimeout adds the timeout to the delete deployment note params

func (*DeleteDeploymentNoteParams) WithVersion

WithVersion adds the version to the delete deployment note params

func (*DeleteDeploymentNoteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteDeploymentNoteReader

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

DeleteDeploymentNoteReader is a Reader for the DeleteDeploymentNote structure.

func (*DeleteDeploymentNoteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDeploymentNoteNotFound

type GetDeploymentNoteNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
GetDeploymentNoteNotFound describes a response with status code 404, with default header values.

* "The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)

* The note specified by {note_id} cannot be found. (code: `notes.note_not_found`)

func NewGetDeploymentNoteNotFound

func NewGetDeploymentNoteNotFound() *GetDeploymentNoteNotFound

NewGetDeploymentNoteNotFound creates a GetDeploymentNoteNotFound with default headers values

func (*GetDeploymentNoteNotFound) Code

func (o *GetDeploymentNoteNotFound) Code() int

Code gets the status code for the get deployment note not found response

func (*GetDeploymentNoteNotFound) Error

func (o *GetDeploymentNoteNotFound) Error() string

func (*GetDeploymentNoteNotFound) GetPayload

func (*GetDeploymentNoteNotFound) IsClientError

func (o *GetDeploymentNoteNotFound) IsClientError() bool

IsClientError returns true when this get deployment note not found response has a 4xx status code

func (*GetDeploymentNoteNotFound) IsCode

func (o *GetDeploymentNoteNotFound) IsCode(code int) bool

IsCode returns true when this get deployment note not found response a status code equal to that given

func (*GetDeploymentNoteNotFound) IsRedirect

func (o *GetDeploymentNoteNotFound) IsRedirect() bool

IsRedirect returns true when this get deployment note not found response has a 3xx status code

func (*GetDeploymentNoteNotFound) IsServerError

func (o *GetDeploymentNoteNotFound) IsServerError() bool

IsServerError returns true when this get deployment note not found response has a 5xx status code

func (*GetDeploymentNoteNotFound) IsSuccess

func (o *GetDeploymentNoteNotFound) IsSuccess() bool

IsSuccess returns true when this get deployment note not found response has a 2xx status code

func (*GetDeploymentNoteNotFound) String

func (o *GetDeploymentNoteNotFound) String() string

type GetDeploymentNoteOK

type GetDeploymentNoteOK struct {

	/* The date-time when the resource was created (ISO format relative to UTC)
	 */
	XCloudResourceCreated string

	/* The date-time when the resource was last modified (ISO format relative to UTC)
	 */
	XCloudResourceLastModified string

	/* The resource version, which is used to avoid update conflicts with concurrent operations
	 */
	XCloudResourceVersion string

	Payload *models.Note
}

GetDeploymentNoteOK describes a response with status code 200, with default header values.

The deployment note was successfully returned

func NewGetDeploymentNoteOK

func NewGetDeploymentNoteOK() *GetDeploymentNoteOK

NewGetDeploymentNoteOK creates a GetDeploymentNoteOK with default headers values

func (*GetDeploymentNoteOK) Code

func (o *GetDeploymentNoteOK) Code() int

Code gets the status code for the get deployment note o k response

func (*GetDeploymentNoteOK) Error

func (o *GetDeploymentNoteOK) Error() string

func (*GetDeploymentNoteOK) GetPayload

func (o *GetDeploymentNoteOK) GetPayload() *models.Note

func (*GetDeploymentNoteOK) IsClientError

func (o *GetDeploymentNoteOK) IsClientError() bool

IsClientError returns true when this get deployment note o k response has a 4xx status code

func (*GetDeploymentNoteOK) IsCode

func (o *GetDeploymentNoteOK) IsCode(code int) bool

IsCode returns true when this get deployment note o k response a status code equal to that given

func (*GetDeploymentNoteOK) IsRedirect

func (o *GetDeploymentNoteOK) IsRedirect() bool

IsRedirect returns true when this get deployment note o k response has a 3xx status code

func (*GetDeploymentNoteOK) IsServerError

func (o *GetDeploymentNoteOK) IsServerError() bool

IsServerError returns true when this get deployment note o k response has a 5xx status code

func (*GetDeploymentNoteOK) IsSuccess

func (o *GetDeploymentNoteOK) IsSuccess() bool

IsSuccess returns true when this get deployment note o k response has a 2xx status code

func (*GetDeploymentNoteOK) String

func (o *GetDeploymentNoteOK) String() string

type GetDeploymentNoteParams

type GetDeploymentNoteParams struct {

	/* DeploymentID.

	   Identifier for the deployment
	*/
	DeploymentID string

	/* NoteID.

	   Identifier of the note to be fetched
	*/
	NoteID string

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

GetDeploymentNoteParams contains all the parameters to send to the API endpoint

for the get deployment note operation.

Typically these are written to a http.Request.

func NewGetDeploymentNoteParams

func NewGetDeploymentNoteParams() *GetDeploymentNoteParams

NewGetDeploymentNoteParams creates a new GetDeploymentNoteParams 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 NewGetDeploymentNoteParamsWithContext

func NewGetDeploymentNoteParamsWithContext(ctx context.Context) *GetDeploymentNoteParams

NewGetDeploymentNoteParamsWithContext creates a new GetDeploymentNoteParams object with the ability to set a context for a request.

func NewGetDeploymentNoteParamsWithHTTPClient

func NewGetDeploymentNoteParamsWithHTTPClient(client *http.Client) *GetDeploymentNoteParams

NewGetDeploymentNoteParamsWithHTTPClient creates a new GetDeploymentNoteParams object with the ability to set a custom HTTPClient for a request.

func NewGetDeploymentNoteParamsWithTimeout

func NewGetDeploymentNoteParamsWithTimeout(timeout time.Duration) *GetDeploymentNoteParams

NewGetDeploymentNoteParamsWithTimeout creates a new GetDeploymentNoteParams object with the ability to set a timeout on a request.

func (*GetDeploymentNoteParams) SetContext

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

SetContext adds the context to the get deployment note params

func (*GetDeploymentNoteParams) SetDefaults

func (o *GetDeploymentNoteParams) SetDefaults()

SetDefaults hydrates default values in the get deployment note params (not the query body).

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

func (*GetDeploymentNoteParams) SetDeploymentID

func (o *GetDeploymentNoteParams) SetDeploymentID(deploymentID string)

SetDeploymentID adds the deploymentId to the get deployment note params

func (*GetDeploymentNoteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get deployment note params

func (*GetDeploymentNoteParams) SetNoteID

func (o *GetDeploymentNoteParams) SetNoteID(noteID string)

SetNoteID adds the noteId to the get deployment note params

func (*GetDeploymentNoteParams) SetTimeout

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

SetTimeout adds the timeout to the get deployment note params

func (*GetDeploymentNoteParams) WithContext

WithContext adds the context to the get deployment note params

func (*GetDeploymentNoteParams) WithDefaults

WithDefaults hydrates default values in the get deployment note params (not the query body).

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

func (*GetDeploymentNoteParams) WithDeploymentID

func (o *GetDeploymentNoteParams) WithDeploymentID(deploymentID string) *GetDeploymentNoteParams

WithDeploymentID adds the deploymentID to the get deployment note params

func (*GetDeploymentNoteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get deployment note params

func (*GetDeploymentNoteParams) WithNoteID

WithNoteID adds the noteID to the get deployment note params

func (*GetDeploymentNoteParams) WithTimeout

WithTimeout adds the timeout to the get deployment note params

func (*GetDeploymentNoteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDeploymentNoteReader

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

GetDeploymentNoteReader is a Reader for the GetDeploymentNote structure.

func (*GetDeploymentNoteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDeploymentNotesNotFound

type GetDeploymentNotesNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetDeploymentNotesNotFound describes a response with status code 404, with default header values.

The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)

func NewGetDeploymentNotesNotFound

func NewGetDeploymentNotesNotFound() *GetDeploymentNotesNotFound

NewGetDeploymentNotesNotFound creates a GetDeploymentNotesNotFound with default headers values

func (*GetDeploymentNotesNotFound) Code

func (o *GetDeploymentNotesNotFound) Code() int

Code gets the status code for the get deployment notes not found response

func (*GetDeploymentNotesNotFound) Error

func (*GetDeploymentNotesNotFound) GetPayload

func (*GetDeploymentNotesNotFound) IsClientError

func (o *GetDeploymentNotesNotFound) IsClientError() bool

IsClientError returns true when this get deployment notes not found response has a 4xx status code

func (*GetDeploymentNotesNotFound) IsCode

func (o *GetDeploymentNotesNotFound) IsCode(code int) bool

IsCode returns true when this get deployment notes not found response a status code equal to that given

func (*GetDeploymentNotesNotFound) IsRedirect

func (o *GetDeploymentNotesNotFound) IsRedirect() bool

IsRedirect returns true when this get deployment notes not found response has a 3xx status code

func (*GetDeploymentNotesNotFound) IsServerError

func (o *GetDeploymentNotesNotFound) IsServerError() bool

IsServerError returns true when this get deployment notes not found response has a 5xx status code

func (*GetDeploymentNotesNotFound) IsSuccess

func (o *GetDeploymentNotesNotFound) IsSuccess() bool

IsSuccess returns true when this get deployment notes not found response has a 2xx status code

func (*GetDeploymentNotesNotFound) String

func (o *GetDeploymentNotesNotFound) String() string

type GetDeploymentNotesOK

type GetDeploymentNotesOK struct {

	/* The date-time when the resource was created (ISO format relative to UTC)
	 */
	XCloudResourceCreated string

	/* The date-time when the resource was last modified (ISO format relative to UTC)
	 */
	XCloudResourceLastModified string

	/* The resource version, which is used to avoid update conflicts with concurrent operations
	 */
	XCloudResourceVersion string

	Payload *models.Notes
}

GetDeploymentNotesOK describes a response with status code 200, with default header values.

The deployment notes were successfully returned

func NewGetDeploymentNotesOK

func NewGetDeploymentNotesOK() *GetDeploymentNotesOK

NewGetDeploymentNotesOK creates a GetDeploymentNotesOK with default headers values

func (*GetDeploymentNotesOK) Code

func (o *GetDeploymentNotesOK) Code() int

Code gets the status code for the get deployment notes o k response

func (*GetDeploymentNotesOK) Error

func (o *GetDeploymentNotesOK) Error() string

func (*GetDeploymentNotesOK) GetPayload

func (o *GetDeploymentNotesOK) GetPayload() *models.Notes

func (*GetDeploymentNotesOK) IsClientError

func (o *GetDeploymentNotesOK) IsClientError() bool

IsClientError returns true when this get deployment notes o k response has a 4xx status code

func (*GetDeploymentNotesOK) IsCode

func (o *GetDeploymentNotesOK) IsCode(code int) bool

IsCode returns true when this get deployment notes o k response a status code equal to that given

func (*GetDeploymentNotesOK) IsRedirect

func (o *GetDeploymentNotesOK) IsRedirect() bool

IsRedirect returns true when this get deployment notes o k response has a 3xx status code

func (*GetDeploymentNotesOK) IsServerError

func (o *GetDeploymentNotesOK) IsServerError() bool

IsServerError returns true when this get deployment notes o k response has a 5xx status code

func (*GetDeploymentNotesOK) IsSuccess

func (o *GetDeploymentNotesOK) IsSuccess() bool

IsSuccess returns true when this get deployment notes o k response has a 2xx status code

func (*GetDeploymentNotesOK) String

func (o *GetDeploymentNotesOK) String() string

type GetDeploymentNotesParams

type GetDeploymentNotesParams struct {

	/* DeploymentID.

	   Identifier for the deployment
	*/
	DeploymentID string

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

GetDeploymentNotesParams contains all the parameters to send to the API endpoint

for the get deployment notes operation.

Typically these are written to a http.Request.

func NewGetDeploymentNotesParams

func NewGetDeploymentNotesParams() *GetDeploymentNotesParams

NewGetDeploymentNotesParams creates a new GetDeploymentNotesParams 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 NewGetDeploymentNotesParamsWithContext

func NewGetDeploymentNotesParamsWithContext(ctx context.Context) *GetDeploymentNotesParams

NewGetDeploymentNotesParamsWithContext creates a new GetDeploymentNotesParams object with the ability to set a context for a request.

func NewGetDeploymentNotesParamsWithHTTPClient

func NewGetDeploymentNotesParamsWithHTTPClient(client *http.Client) *GetDeploymentNotesParams

NewGetDeploymentNotesParamsWithHTTPClient creates a new GetDeploymentNotesParams object with the ability to set a custom HTTPClient for a request.

func NewGetDeploymentNotesParamsWithTimeout

func NewGetDeploymentNotesParamsWithTimeout(timeout time.Duration) *GetDeploymentNotesParams

NewGetDeploymentNotesParamsWithTimeout creates a new GetDeploymentNotesParams object with the ability to set a timeout on a request.

func (*GetDeploymentNotesParams) SetContext

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

SetContext adds the context to the get deployment notes params

func (*GetDeploymentNotesParams) SetDefaults

func (o *GetDeploymentNotesParams) SetDefaults()

SetDefaults hydrates default values in the get deployment notes params (not the query body).

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

func (*GetDeploymentNotesParams) SetDeploymentID

func (o *GetDeploymentNotesParams) SetDeploymentID(deploymentID string)

SetDeploymentID adds the deploymentId to the get deployment notes params

func (*GetDeploymentNotesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get deployment notes params

func (*GetDeploymentNotesParams) SetTimeout

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

SetTimeout adds the timeout to the get deployment notes params

func (*GetDeploymentNotesParams) WithContext

WithContext adds the context to the get deployment notes params

func (*GetDeploymentNotesParams) WithDefaults

WithDefaults hydrates default values in the get deployment notes params (not the query body).

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

func (*GetDeploymentNotesParams) WithDeploymentID

func (o *GetDeploymentNotesParams) WithDeploymentID(deploymentID string) *GetDeploymentNotesParams

WithDeploymentID adds the deploymentID to the get deployment notes params

func (*GetDeploymentNotesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get deployment notes params

func (*GetDeploymentNotesParams) WithTimeout

WithTimeout adds the timeout to the get deployment notes params

func (*GetDeploymentNotesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDeploymentNotesReader

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

GetDeploymentNotesReader is a Reader for the GetDeploymentNotes structure.

func (*GetDeploymentNotesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateDeploymentNoteNotFound

type UpdateDeploymentNoteNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
UpdateDeploymentNoteNotFound describes a response with status code 404, with default header values.

* "The deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)

* The note specified by {note_id} cannot be found. (code: `notes.note_not_found`)

func NewUpdateDeploymentNoteNotFound

func NewUpdateDeploymentNoteNotFound() *UpdateDeploymentNoteNotFound

NewUpdateDeploymentNoteNotFound creates a UpdateDeploymentNoteNotFound with default headers values

func (*UpdateDeploymentNoteNotFound) Code

Code gets the status code for the update deployment note not found response

func (*UpdateDeploymentNoteNotFound) Error

func (*UpdateDeploymentNoteNotFound) GetPayload

func (*UpdateDeploymentNoteNotFound) IsClientError

func (o *UpdateDeploymentNoteNotFound) IsClientError() bool

IsClientError returns true when this update deployment note not found response has a 4xx status code

func (*UpdateDeploymentNoteNotFound) IsCode

func (o *UpdateDeploymentNoteNotFound) IsCode(code int) bool

IsCode returns true when this update deployment note not found response a status code equal to that given

func (*UpdateDeploymentNoteNotFound) IsRedirect

func (o *UpdateDeploymentNoteNotFound) IsRedirect() bool

IsRedirect returns true when this update deployment note not found response has a 3xx status code

func (*UpdateDeploymentNoteNotFound) IsServerError

func (o *UpdateDeploymentNoteNotFound) IsServerError() bool

IsServerError returns true when this update deployment note not found response has a 5xx status code

func (*UpdateDeploymentNoteNotFound) IsSuccess

func (o *UpdateDeploymentNoteNotFound) IsSuccess() bool

IsSuccess returns true when this update deployment note not found response has a 2xx status code

func (*UpdateDeploymentNoteNotFound) String

type UpdateDeploymentNoteOK

type UpdateDeploymentNoteOK struct {

	/* The date-time when the resource was created (ISO format relative to UTC)
	 */
	XCloudResourceCreated string

	/* The date-time when the resource was last modified (ISO format relative to UTC)
	 */
	XCloudResourceLastModified string

	/* The resource version, which is used to avoid update conflicts with concurrent operations
	 */
	XCloudResourceVersion string

	Payload *models.Note
}

UpdateDeploymentNoteOK describes a response with status code 200, with default header values.

Updated deployment note

func NewUpdateDeploymentNoteOK

func NewUpdateDeploymentNoteOK() *UpdateDeploymentNoteOK

NewUpdateDeploymentNoteOK creates a UpdateDeploymentNoteOK with default headers values

func (*UpdateDeploymentNoteOK) Code

func (o *UpdateDeploymentNoteOK) Code() int

Code gets the status code for the update deployment note o k response

func (*UpdateDeploymentNoteOK) Error

func (o *UpdateDeploymentNoteOK) Error() string

func (*UpdateDeploymentNoteOK) GetPayload

func (o *UpdateDeploymentNoteOK) GetPayload() *models.Note

func (*UpdateDeploymentNoteOK) IsClientError

func (o *UpdateDeploymentNoteOK) IsClientError() bool

IsClientError returns true when this update deployment note o k response has a 4xx status code

func (*UpdateDeploymentNoteOK) IsCode

func (o *UpdateDeploymentNoteOK) IsCode(code int) bool

IsCode returns true when this update deployment note o k response a status code equal to that given

func (*UpdateDeploymentNoteOK) IsRedirect

func (o *UpdateDeploymentNoteOK) IsRedirect() bool

IsRedirect returns true when this update deployment note o k response has a 3xx status code

func (*UpdateDeploymentNoteOK) IsServerError

func (o *UpdateDeploymentNoteOK) IsServerError() bool

IsServerError returns true when this update deployment note o k response has a 5xx status code

func (*UpdateDeploymentNoteOK) IsSuccess

func (o *UpdateDeploymentNoteOK) IsSuccess() bool

IsSuccess returns true when this update deployment note o k response has a 2xx status code

func (*UpdateDeploymentNoteOK) String

func (o *UpdateDeploymentNoteOK) String() string

type UpdateDeploymentNoteParams

type UpdateDeploymentNoteParams struct {

	/* Body.

	   New content for deployment note
	*/
	Body *models.Note

	/* DeploymentID.

	   Identifier for the deployment
	*/
	DeploymentID string

	/* NoteID.

	   Identifier of the note to be updated
	*/
	NoteID string

	/* Version.

	   If specified then checks for conflicts against the version of the deployment note
	*/
	Version *string

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

UpdateDeploymentNoteParams contains all the parameters to send to the API endpoint

for the update deployment note operation.

Typically these are written to a http.Request.

func NewUpdateDeploymentNoteParams

func NewUpdateDeploymentNoteParams() *UpdateDeploymentNoteParams

NewUpdateDeploymentNoteParams creates a new UpdateDeploymentNoteParams 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 NewUpdateDeploymentNoteParamsWithContext

func NewUpdateDeploymentNoteParamsWithContext(ctx context.Context) *UpdateDeploymentNoteParams

NewUpdateDeploymentNoteParamsWithContext creates a new UpdateDeploymentNoteParams object with the ability to set a context for a request.

func NewUpdateDeploymentNoteParamsWithHTTPClient

func NewUpdateDeploymentNoteParamsWithHTTPClient(client *http.Client) *UpdateDeploymentNoteParams

NewUpdateDeploymentNoteParamsWithHTTPClient creates a new UpdateDeploymentNoteParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateDeploymentNoteParamsWithTimeout

func NewUpdateDeploymentNoteParamsWithTimeout(timeout time.Duration) *UpdateDeploymentNoteParams

NewUpdateDeploymentNoteParamsWithTimeout creates a new UpdateDeploymentNoteParams object with the ability to set a timeout on a request.

func (*UpdateDeploymentNoteParams) SetBody

func (o *UpdateDeploymentNoteParams) SetBody(body *models.Note)

SetBody adds the body to the update deployment note params

func (*UpdateDeploymentNoteParams) SetContext

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

SetContext adds the context to the update deployment note params

func (*UpdateDeploymentNoteParams) SetDefaults

func (o *UpdateDeploymentNoteParams) SetDefaults()

SetDefaults hydrates default values in the update deployment note params (not the query body).

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

func (*UpdateDeploymentNoteParams) SetDeploymentID

func (o *UpdateDeploymentNoteParams) SetDeploymentID(deploymentID string)

SetDeploymentID adds the deploymentId to the update deployment note params

func (*UpdateDeploymentNoteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update deployment note params

func (*UpdateDeploymentNoteParams) SetNoteID

func (o *UpdateDeploymentNoteParams) SetNoteID(noteID string)

SetNoteID adds the noteId to the update deployment note params

func (*UpdateDeploymentNoteParams) SetTimeout

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

SetTimeout adds the timeout to the update deployment note params

func (*UpdateDeploymentNoteParams) SetVersion

func (o *UpdateDeploymentNoteParams) SetVersion(version *string)

SetVersion adds the version to the update deployment note params

func (*UpdateDeploymentNoteParams) WithBody

WithBody adds the body to the update deployment note params

func (*UpdateDeploymentNoteParams) WithContext

WithContext adds the context to the update deployment note params

func (*UpdateDeploymentNoteParams) WithDefaults

WithDefaults hydrates default values in the update deployment note params (not the query body).

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

func (*UpdateDeploymentNoteParams) WithDeploymentID

func (o *UpdateDeploymentNoteParams) WithDeploymentID(deploymentID string) *UpdateDeploymentNoteParams

WithDeploymentID adds the deploymentID to the update deployment note params

func (*UpdateDeploymentNoteParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update deployment note params

func (*UpdateDeploymentNoteParams) WithNoteID

WithNoteID adds the noteID to the update deployment note params

func (*UpdateDeploymentNoteParams) WithTimeout

WithTimeout adds the timeout to the update deployment note params

func (*UpdateDeploymentNoteParams) WithVersion

WithVersion adds the version to the update deployment note params

func (*UpdateDeploymentNoteParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateDeploymentNoteReader

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

UpdateDeploymentNoteReader is a Reader for the UpdateDeploymentNote structure.

func (*UpdateDeploymentNoteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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