workspaces

package
v0.0.0-...-3fd5aad Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 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 workspaces API

func New

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

New creates a new workspaces API client.

func (*Client) CreateWorkspace

CreateWorkspace Create a Terraform workspace

func (*Client) DescribeWorkspace

func (a *Client) DescribeWorkspace(params *DescribeWorkspaceParams, authInfo runtime.ClientAuthInfoWriter) (*DescribeWorkspaceOK, error)

DescribeWorkspace Describe a terraform workspace

func (*Client) ListWorkspaces

func (a *Client) ListWorkspaces(params *ListWorkspacesParams, authInfo runtime.ClientAuthInfoWriter) (*ListWorkspacesOK, error)

ListWorkspaces List approved terraform workspaces

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type CreateWorkspaceBadRequest

type CreateWorkspaceBadRequest struct {
	Payload *models.ServerError
}

CreateWorkspaceBadRequest handles this case with default header values.

Bad Request

func NewCreateWorkspaceBadRequest

func NewCreateWorkspaceBadRequest() *CreateWorkspaceBadRequest

NewCreateWorkspaceBadRequest creates a CreateWorkspaceBadRequest with default headers values

func (*CreateWorkspaceBadRequest) Error

func (o *CreateWorkspaceBadRequest) Error() string

type CreateWorkspaceCreated

type CreateWorkspaceCreated struct {
	Payload *models.ResourceTfWorkspace
}

CreateWorkspaceCreated handles this case with default header values.

Created

func NewCreateWorkspaceCreated

func NewCreateWorkspaceCreated() *CreateWorkspaceCreated

NewCreateWorkspaceCreated creates a CreateWorkspaceCreated with default headers values

func (*CreateWorkspaceCreated) Error

func (o *CreateWorkspaceCreated) Error() string

type CreateWorkspaceInternalServerError

type CreateWorkspaceInternalServerError struct {
	Payload *models.ServerError
}

CreateWorkspaceInternalServerError handles this case with default header values.

Internal Server Error

func NewCreateWorkspaceInternalServerError

func NewCreateWorkspaceInternalServerError() *CreateWorkspaceInternalServerError

NewCreateWorkspaceInternalServerError creates a CreateWorkspaceInternalServerError with default headers values

func (*CreateWorkspaceInternalServerError) Error

type CreateWorkspaceNotFound

type CreateWorkspaceNotFound struct {
	Payload *models.ServerError
}

CreateWorkspaceNotFound handles this case with default header values.

Not Found

func NewCreateWorkspaceNotFound

func NewCreateWorkspaceNotFound() *CreateWorkspaceNotFound

NewCreateWorkspaceNotFound creates a CreateWorkspaceNotFound with default headers values

func (*CreateWorkspaceNotFound) Error

func (o *CreateWorkspaceNotFound) Error() string

type CreateWorkspaceOK

type CreateWorkspaceOK struct {
	Payload *models.ResourceTfWorkspace
}

CreateWorkspaceOK handles this case with default header values.

OK

func NewCreateWorkspaceOK

func NewCreateWorkspaceOK() *CreateWorkspaceOK

NewCreateWorkspaceOK creates a CreateWorkspaceOK with default headers values

func (*CreateWorkspaceOK) Error

func (o *CreateWorkspaceOK) Error() string

type CreateWorkspaceParams

type CreateWorkspaceParams struct {

	/*Name
	  A terraform workspace

	*/
	Name string
	/*TerraformWorkspace
	  A terraform workspace

	*/
	TerraformWorkspace *models.ResourceTfWorkspace

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

CreateWorkspaceParams contains all the parameters to send to the API endpoint for the create workspace operation typically these are written to a http.Request

func NewCreateWorkspaceParams

func NewCreateWorkspaceParams() *CreateWorkspaceParams

NewCreateWorkspaceParams creates a new CreateWorkspaceParams object with the default values initialized.

func NewCreateWorkspaceParamsWithContext

func NewCreateWorkspaceParamsWithContext(ctx context.Context) *CreateWorkspaceParams

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

func NewCreateWorkspaceParamsWithHTTPClient

func NewCreateWorkspaceParamsWithHTTPClient(client *http.Client) *CreateWorkspaceParams

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

func NewCreateWorkspaceParamsWithTimeout

func NewCreateWorkspaceParamsWithTimeout(timeout time.Duration) *CreateWorkspaceParams

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

func (*CreateWorkspaceParams) SetContext

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

SetContext adds the context to the create workspace params

func (*CreateWorkspaceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create workspace params

func (*CreateWorkspaceParams) SetName

func (o *CreateWorkspaceParams) SetName(name string)

SetName adds the name to the create workspace params

func (*CreateWorkspaceParams) SetTerraformWorkspace

func (o *CreateWorkspaceParams) SetTerraformWorkspace(terraformWorkspace *models.ResourceTfWorkspace)

SetTerraformWorkspace adds the terraformWorkspace to the create workspace params

func (*CreateWorkspaceParams) SetTimeout

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

SetTimeout adds the timeout to the create workspace params

func (*CreateWorkspaceParams) WithContext

WithContext adds the context to the create workspace params

func (*CreateWorkspaceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create workspace params

func (*CreateWorkspaceParams) WithName

WithName adds the name to the create workspace params

func (*CreateWorkspaceParams) WithTerraformWorkspace

func (o *CreateWorkspaceParams) WithTerraformWorkspace(terraformWorkspace *models.ResourceTfWorkspace) *CreateWorkspaceParams

WithTerraformWorkspace adds the terraformWorkspace to the create workspace params

func (*CreateWorkspaceParams) WithTimeout

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

WithTimeout adds the timeout to the create workspace params

func (*CreateWorkspaceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateWorkspaceReader

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

CreateWorkspaceReader is a Reader for the CreateWorkspace structure.

func (*CreateWorkspaceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DescribeWorkspaceInternalServerError

type DescribeWorkspaceInternalServerError struct {
	Payload *models.ServerError
}

DescribeWorkspaceInternalServerError handles this case with default header values.

Internal Server Error

func NewDescribeWorkspaceInternalServerError

func NewDescribeWorkspaceInternalServerError() *DescribeWorkspaceInternalServerError

NewDescribeWorkspaceInternalServerError creates a DescribeWorkspaceInternalServerError with default headers values

func (*DescribeWorkspaceInternalServerError) Error

type DescribeWorkspaceNotFound

type DescribeWorkspaceNotFound struct {
	Payload *models.ServerError
}

DescribeWorkspaceNotFound handles this case with default header values.

Not Found

func NewDescribeWorkspaceNotFound

func NewDescribeWorkspaceNotFound() *DescribeWorkspaceNotFound

NewDescribeWorkspaceNotFound creates a DescribeWorkspaceNotFound with default headers values

func (*DescribeWorkspaceNotFound) Error

func (o *DescribeWorkspaceNotFound) Error() string

type DescribeWorkspaceOK

type DescribeWorkspaceOK struct {
	Payload *models.ResourceTfWorkspace
}

DescribeWorkspaceOK handles this case with default header values.

OK

func NewDescribeWorkspaceOK

func NewDescribeWorkspaceOK() *DescribeWorkspaceOK

NewDescribeWorkspaceOK creates a DescribeWorkspaceOK with default headers values

func (*DescribeWorkspaceOK) Error

func (o *DescribeWorkspaceOK) Error() string

type DescribeWorkspaceParams

type DescribeWorkspaceParams struct {

	/*Name
	  A terraform workspace

	*/
	Name string

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

DescribeWorkspaceParams contains all the parameters to send to the API endpoint for the describe workspace operation typically these are written to a http.Request

func NewDescribeWorkspaceParams

func NewDescribeWorkspaceParams() *DescribeWorkspaceParams

NewDescribeWorkspaceParams creates a new DescribeWorkspaceParams object with the default values initialized.

func NewDescribeWorkspaceParamsWithContext

func NewDescribeWorkspaceParamsWithContext(ctx context.Context) *DescribeWorkspaceParams

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

func NewDescribeWorkspaceParamsWithHTTPClient

func NewDescribeWorkspaceParamsWithHTTPClient(client *http.Client) *DescribeWorkspaceParams

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

func NewDescribeWorkspaceParamsWithTimeout

func NewDescribeWorkspaceParamsWithTimeout(timeout time.Duration) *DescribeWorkspaceParams

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

func (*DescribeWorkspaceParams) SetContext

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

SetContext adds the context to the describe workspace params

func (*DescribeWorkspaceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the describe workspace params

func (*DescribeWorkspaceParams) SetName

func (o *DescribeWorkspaceParams) SetName(name string)

SetName adds the name to the describe workspace params

func (*DescribeWorkspaceParams) SetTimeout

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

SetTimeout adds the timeout to the describe workspace params

func (*DescribeWorkspaceParams) WithContext

WithContext adds the context to the describe workspace params

func (*DescribeWorkspaceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the describe workspace params

func (*DescribeWorkspaceParams) WithName

WithName adds the name to the describe workspace params

func (*DescribeWorkspaceParams) WithTimeout

WithTimeout adds the timeout to the describe workspace params

func (*DescribeWorkspaceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DescribeWorkspaceReader

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

DescribeWorkspaceReader is a Reader for the DescribeWorkspace structure.

func (*DescribeWorkspaceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListWorkspacesInternalServerError

type ListWorkspacesInternalServerError struct {
	Payload *models.ServerError
}

ListWorkspacesInternalServerError handles this case with default header values.

Internal Server Error

func NewListWorkspacesInternalServerError

func NewListWorkspacesInternalServerError() *ListWorkspacesInternalServerError

NewListWorkspacesInternalServerError creates a ListWorkspacesInternalServerError with default headers values

func (*ListWorkspacesInternalServerError) Error

type ListWorkspacesNotFound

type ListWorkspacesNotFound struct {
}

ListWorkspacesNotFound handles this case with default header values.

Not Found

func NewListWorkspacesNotFound

func NewListWorkspacesNotFound() *ListWorkspacesNotFound

NewListWorkspacesNotFound creates a ListWorkspacesNotFound with default headers values

func (*ListWorkspacesNotFound) Error

func (o *ListWorkspacesNotFound) Error() string

type ListWorkspacesOK

type ListWorkspacesOK struct {
	Payload *models.ResponseListTfWorkspaces
}

ListWorkspacesOK handles this case with default header values.

OK

func NewListWorkspacesOK

func NewListWorkspacesOK() *ListWorkspacesOK

NewListWorkspacesOK creates a ListWorkspacesOK with default headers values

func (*ListWorkspacesOK) Error

func (o *ListWorkspacesOK) Error() string

type ListWorkspacesParams

type ListWorkspacesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListWorkspacesParams contains all the parameters to send to the API endpoint for the list workspaces operation typically these are written to a http.Request

func NewListWorkspacesParams

func NewListWorkspacesParams() *ListWorkspacesParams

NewListWorkspacesParams creates a new ListWorkspacesParams object with the default values initialized.

func NewListWorkspacesParamsWithContext

func NewListWorkspacesParamsWithContext(ctx context.Context) *ListWorkspacesParams

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

func NewListWorkspacesParamsWithHTTPClient

func NewListWorkspacesParamsWithHTTPClient(client *http.Client) *ListWorkspacesParams

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

func NewListWorkspacesParamsWithTimeout

func NewListWorkspacesParamsWithTimeout(timeout time.Duration) *ListWorkspacesParams

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

func (*ListWorkspacesParams) SetContext

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

SetContext adds the context to the list workspaces params

func (*ListWorkspacesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list workspaces params

func (*ListWorkspacesParams) SetTimeout

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

SetTimeout adds the timeout to the list workspaces params

func (*ListWorkspacesParams) WithContext

WithContext adds the context to the list workspaces params

func (*ListWorkspacesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list workspaces params

func (*ListWorkspacesParams) WithTimeout

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

WithTimeout adds the timeout to the list workspaces params

func (*ListWorkspacesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListWorkspacesReader

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

ListWorkspacesReader is a Reader for the ListWorkspaces structure.

func (*ListWorkspacesReader) ReadResponse

func (o *ListWorkspacesReader) 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