deployments_notes

package
v1.0.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 11 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) (*CreateDeploymentNoteCreated, error)

CreateDeploymentNote creates deployment note

Create note for the running deployment.

func (*Client) DeleteDeploymentNote

func (a *Client) DeleteDeploymentNote(params *DeleteDeploymentNoteParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteDeploymentNoteOK, error)

DeleteDeploymentNote deletes deployment note

Delete note for the running deployment.

func (*Client) GetDeploymentNote

func (a *Client) GetDeploymentNote(params *GetDeploymentNoteParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeploymentNoteOK, error)

GetDeploymentNote gets a deployment note

Gets a deployment note.

func (*Client) GetDeploymentNotes

func (a *Client) GetDeploymentNotes(params *GetDeploymentNotesParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeploymentNotesOK, error)

GetDeploymentNotes gets deployment notes

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) (*UpdateDeploymentNoteOK, error)

UpdateDeploymentNote updates deployment note

Update note for the running deployment.

type ClientService

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

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

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

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

	UpdateDeploymentNote(params *UpdateDeploymentNoteParams, authInfo runtime.ClientAuthInfoWriter) (*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 handles this case 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) Error

func (*CreateDeploymentNoteCreated) GetPayload

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

type CreateDeploymentNoteNotFound

type CreateDeploymentNoteNotFound struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

CreateDeploymentNoteNotFound handles this case 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) Error

func (*CreateDeploymentNoteNotFound) GetPayload

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 *int64

	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 values initialized.

func NewCreateDeploymentNoteParamsWithContext

func NewCreateDeploymentNoteParamsWithContext(ctx context.Context) *CreateDeploymentNoteParams

NewCreateDeploymentNoteParamsWithContext creates a new CreateDeploymentNoteParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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 *int64)

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) 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 CreateDeploymentNoteRetryWith

type CreateDeploymentNoteRetryWith struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

CreateDeploymentNoteRetryWith handles this case with default header values.

Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`)

func NewCreateDeploymentNoteRetryWith

func NewCreateDeploymentNoteRetryWith() *CreateDeploymentNoteRetryWith

NewCreateDeploymentNoteRetryWith creates a CreateDeploymentNoteRetryWith with default headers values

func (*CreateDeploymentNoteRetryWith) Error

func (*CreateDeploymentNoteRetryWith) GetPayload

type DeleteDeploymentNoteNotFound

type DeleteDeploymentNoteNotFound struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

DeleteDeploymentNoteNotFound handles this case 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) Error

func (*DeleteDeploymentNoteNotFound) GetPayload

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 handles this case 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) Error

func (o *DeleteDeploymentNoteOK) Error() string

func (*DeleteDeploymentNoteOK) GetPayload

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

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 *int64

	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 values initialized.

func NewDeleteDeploymentNoteParamsWithContext

func NewDeleteDeploymentNoteParamsWithContext(ctx context.Context) *DeleteDeploymentNoteParams

NewDeleteDeploymentNoteParamsWithContext creates a new DeleteDeploymentNoteParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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 *int64)

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) 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 DeleteDeploymentNoteRetryWith

type DeleteDeploymentNoteRetryWith struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

DeleteDeploymentNoteRetryWith handles this case with default header values.

Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`)

func NewDeleteDeploymentNoteRetryWith

func NewDeleteDeploymentNoteRetryWith() *DeleteDeploymentNoteRetryWith

NewDeleteDeploymentNoteRetryWith creates a DeleteDeploymentNoteRetryWith with default headers values

func (*DeleteDeploymentNoteRetryWith) Error

func (*DeleteDeploymentNoteRetryWith) GetPayload

type GetDeploymentNoteNotFound

type GetDeploymentNoteNotFound struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetDeploymentNoteNotFound handles this case 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) Error

func (o *GetDeploymentNoteNotFound) Error() string

func (*GetDeploymentNoteNotFound) GetPayload

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 handles this case 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) Error

func (o *GetDeploymentNoteOK) Error() string

func (*GetDeploymentNoteOK) GetPayload

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

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 values initialized.

func NewGetDeploymentNoteParamsWithContext

func NewGetDeploymentNoteParamsWithContext(ctx context.Context) *GetDeploymentNoteParams

NewGetDeploymentNoteParamsWithContext creates a new GetDeploymentNoteParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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) Error

func (*GetDeploymentNotesNotFound) GetPayload

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 handles this case 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) Error

func (o *GetDeploymentNotesOK) Error() string

func (*GetDeploymentNotesOK) GetPayload

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

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 values initialized.

func NewGetDeploymentNotesParamsWithContext

func NewGetDeploymentNotesParamsWithContext(ctx context.Context) *GetDeploymentNotesParams

NewGetDeploymentNotesParamsWithContext creates a new GetDeploymentNotesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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) Error

func (*UpdateDeploymentNoteNotFound) GetPayload

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 handles this case with default header values.

Updated deployment note

func NewUpdateDeploymentNoteOK

func NewUpdateDeploymentNoteOK() *UpdateDeploymentNoteOK

NewUpdateDeploymentNoteOK creates a UpdateDeploymentNoteOK with default headers values

func (*UpdateDeploymentNoteOK) Error

func (o *UpdateDeploymentNoteOK) Error() string

func (*UpdateDeploymentNoteOK) GetPayload

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

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 *int64

	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 values initialized.

func NewUpdateDeploymentNoteParamsWithContext

func NewUpdateDeploymentNoteParamsWithContext(ctx context.Context) *UpdateDeploymentNoteParams

NewUpdateDeploymentNoteParamsWithContext creates a new UpdateDeploymentNoteParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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 *int64)

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) 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.

type UpdateDeploymentNoteRetryWith

type UpdateDeploymentNoteRetryWith struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

UpdateDeploymentNoteRetryWith handles this case with default header values.

Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`)

func NewUpdateDeploymentNoteRetryWith

func NewUpdateDeploymentNoteRetryWith() *UpdateDeploymentNoteRetryWith

NewUpdateDeploymentNoteRetryWith creates a UpdateDeploymentNoteRetryWith with default headers values

func (*UpdateDeploymentNoteRetryWith) Error

func (*UpdateDeploymentNoteRetryWith) GetPayload

Jump to

Keyboard shortcuts

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