Documentation ¶
Index ¶
- type Client
- func (a *Client) GetEnvironment(params *GetEnvironmentParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetEnvironmentOK, error)
- func (a *Client) GetWorkspaceEnvironment(params *GetWorkspaceEnvironmentParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetWorkspaceEnvironmentOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetEnvironmentForbidden
- func (o *GetEnvironmentForbidden) Code() int
- func (o *GetEnvironmentForbidden) Error() string
- func (o *GetEnvironmentForbidden) GetPayload() *models.Error
- func (o *GetEnvironmentForbidden) IsClientError() bool
- func (o *GetEnvironmentForbidden) IsCode(code int) bool
- func (o *GetEnvironmentForbidden) IsRedirect() bool
- func (o *GetEnvironmentForbidden) IsServerError() bool
- func (o *GetEnvironmentForbidden) IsSuccess() bool
- func (o *GetEnvironmentForbidden) String() string
- type GetEnvironmentOK
- func (o *GetEnvironmentOK) Code() int
- func (o *GetEnvironmentOK) Error() string
- func (o *GetEnvironmentOK) GetPayload() *models.Environment
- func (o *GetEnvironmentOK) IsClientError() bool
- func (o *GetEnvironmentOK) IsCode(code int) bool
- func (o *GetEnvironmentOK) IsRedirect() bool
- func (o *GetEnvironmentOK) IsServerError() bool
- func (o *GetEnvironmentOK) IsSuccess() bool
- func (o *GetEnvironmentOK) String() string
- type GetEnvironmentParams
- func NewGetEnvironmentParams() *GetEnvironmentParams
- func NewGetEnvironmentParamsWithContext(ctx context.Context) *GetEnvironmentParams
- func NewGetEnvironmentParamsWithHTTPClient(client *http.Client) *GetEnvironmentParams
- func NewGetEnvironmentParamsWithTimeout(timeout time.Duration) *GetEnvironmentParams
- func (o *GetEnvironmentParams) SetContext(ctx context.Context)
- func (o *GetEnvironmentParams) SetDefaults()
- func (o *GetEnvironmentParams) SetHTTPClient(client *http.Client)
- func (o *GetEnvironmentParams) SetIfMatch(ifMatch *string)
- func (o *GetEnvironmentParams) SetTimeout(timeout time.Duration)
- func (o *GetEnvironmentParams) WithContext(ctx context.Context) *GetEnvironmentParams
- func (o *GetEnvironmentParams) WithDefaults() *GetEnvironmentParams
- func (o *GetEnvironmentParams) WithHTTPClient(client *http.Client) *GetEnvironmentParams
- func (o *GetEnvironmentParams) WithIfMatch(ifMatch *string) *GetEnvironmentParams
- func (o *GetEnvironmentParams) WithTimeout(timeout time.Duration) *GetEnvironmentParams
- func (o *GetEnvironmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetEnvironmentReader
- type GetEnvironmentTooManyRequests
- func (o *GetEnvironmentTooManyRequests) Code() int
- func (o *GetEnvironmentTooManyRequests) Error() string
- func (o *GetEnvironmentTooManyRequests) GetPayload() *models.Error
- func (o *GetEnvironmentTooManyRequests) IsClientError() bool
- func (o *GetEnvironmentTooManyRequests) IsCode(code int) bool
- func (o *GetEnvironmentTooManyRequests) IsRedirect() bool
- func (o *GetEnvironmentTooManyRequests) IsServerError() bool
- func (o *GetEnvironmentTooManyRequests) IsSuccess() bool
- func (o *GetEnvironmentTooManyRequests) String() string
- type GetEnvironmentUnauthorized
- func (o *GetEnvironmentUnauthorized) Code() int
- func (o *GetEnvironmentUnauthorized) Error() string
- func (o *GetEnvironmentUnauthorized) GetPayload() *models.Error
- func (o *GetEnvironmentUnauthorized) IsClientError() bool
- func (o *GetEnvironmentUnauthorized) IsCode(code int) bool
- func (o *GetEnvironmentUnauthorized) IsRedirect() bool
- func (o *GetEnvironmentUnauthorized) IsServerError() bool
- func (o *GetEnvironmentUnauthorized) IsSuccess() bool
- func (o *GetEnvironmentUnauthorized) String() string
- type GetWorkspaceEnvironmentForbidden
- func (o *GetWorkspaceEnvironmentForbidden) Code() int
- func (o *GetWorkspaceEnvironmentForbidden) Error() string
- func (o *GetWorkspaceEnvironmentForbidden) GetPayload() *models.Error
- func (o *GetWorkspaceEnvironmentForbidden) IsClientError() bool
- func (o *GetWorkspaceEnvironmentForbidden) IsCode(code int) bool
- func (o *GetWorkspaceEnvironmentForbidden) IsRedirect() bool
- func (o *GetWorkspaceEnvironmentForbidden) IsServerError() bool
- func (o *GetWorkspaceEnvironmentForbidden) IsSuccess() bool
- func (o *GetWorkspaceEnvironmentForbidden) String() string
- type GetWorkspaceEnvironmentOK
- func (o *GetWorkspaceEnvironmentOK) Code() int
- func (o *GetWorkspaceEnvironmentOK) Error() string
- func (o *GetWorkspaceEnvironmentOK) GetPayload() *models.Environment
- func (o *GetWorkspaceEnvironmentOK) IsClientError() bool
- func (o *GetWorkspaceEnvironmentOK) IsCode(code int) bool
- func (o *GetWorkspaceEnvironmentOK) IsRedirect() bool
- func (o *GetWorkspaceEnvironmentOK) IsServerError() bool
- func (o *GetWorkspaceEnvironmentOK) IsSuccess() bool
- func (o *GetWorkspaceEnvironmentOK) String() string
- type GetWorkspaceEnvironmentParams
- func NewGetWorkspaceEnvironmentParams() *GetWorkspaceEnvironmentParams
- func NewGetWorkspaceEnvironmentParamsWithContext(ctx context.Context) *GetWorkspaceEnvironmentParams
- func NewGetWorkspaceEnvironmentParamsWithHTTPClient(client *http.Client) *GetWorkspaceEnvironmentParams
- func NewGetWorkspaceEnvironmentParamsWithTimeout(timeout time.Duration) *GetWorkspaceEnvironmentParams
- func (o *GetWorkspaceEnvironmentParams) SetContext(ctx context.Context)
- func (o *GetWorkspaceEnvironmentParams) SetDefaults()
- func (o *GetWorkspaceEnvironmentParams) SetHTTPClient(client *http.Client)
- func (o *GetWorkspaceEnvironmentParams) SetIfMatch(ifMatch *string)
- func (o *GetWorkspaceEnvironmentParams) SetTimeout(timeout time.Duration)
- func (o *GetWorkspaceEnvironmentParams) SetWid(wid string)
- func (o *GetWorkspaceEnvironmentParams) WithContext(ctx context.Context) *GetWorkspaceEnvironmentParams
- func (o *GetWorkspaceEnvironmentParams) WithDefaults() *GetWorkspaceEnvironmentParams
- func (o *GetWorkspaceEnvironmentParams) WithHTTPClient(client *http.Client) *GetWorkspaceEnvironmentParams
- func (o *GetWorkspaceEnvironmentParams) WithIfMatch(ifMatch *string) *GetWorkspaceEnvironmentParams
- func (o *GetWorkspaceEnvironmentParams) WithTimeout(timeout time.Duration) *GetWorkspaceEnvironmentParams
- func (o *GetWorkspaceEnvironmentParams) WithWid(wid string) *GetWorkspaceEnvironmentParams
- func (o *GetWorkspaceEnvironmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWorkspaceEnvironmentReader
- type GetWorkspaceEnvironmentTooManyRequests
- func (o *GetWorkspaceEnvironmentTooManyRequests) Code() int
- func (o *GetWorkspaceEnvironmentTooManyRequests) Error() string
- func (o *GetWorkspaceEnvironmentTooManyRequests) GetPayload() *models.Error
- func (o *GetWorkspaceEnvironmentTooManyRequests) IsClientError() bool
- func (o *GetWorkspaceEnvironmentTooManyRequests) IsCode(code int) bool
- func (o *GetWorkspaceEnvironmentTooManyRequests) IsRedirect() bool
- func (o *GetWorkspaceEnvironmentTooManyRequests) IsServerError() bool
- func (o *GetWorkspaceEnvironmentTooManyRequests) IsSuccess() bool
- func (o *GetWorkspaceEnvironmentTooManyRequests) String() string
- type GetWorkspaceEnvironmentUnauthorized
- func (o *GetWorkspaceEnvironmentUnauthorized) Code() int
- func (o *GetWorkspaceEnvironmentUnauthorized) Error() string
- func (o *GetWorkspaceEnvironmentUnauthorized) GetPayload() *models.Error
- func (o *GetWorkspaceEnvironmentUnauthorized) IsClientError() bool
- func (o *GetWorkspaceEnvironmentUnauthorized) IsCode(code int) bool
- func (o *GetWorkspaceEnvironmentUnauthorized) IsRedirect() bool
- func (o *GetWorkspaceEnvironmentUnauthorized) IsServerError() bool
- func (o *GetWorkspaceEnvironmentUnauthorized) IsSuccess() bool
- func (o *GetWorkspaceEnvironmentUnauthorized) String() string
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 environment API
func (*Client) GetEnvironment ¶
func (a *Client) GetEnvironment(params *GetEnvironmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetEnvironmentOK, error)
GetEnvironment gets environment
Get environment settings.
func (*Client) GetWorkspaceEnvironment ¶
func (a *Client) GetWorkspaceEnvironment(params *GetWorkspaceEnvironmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkspaceEnvironmentOK, error)
GetWorkspaceEnvironment gets workspace environment
Get workspace environment settings.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface { GetEnvironment(params *GetEnvironmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetEnvironmentOK, error) GetWorkspaceEnvironment(params *GetWorkspaceEnvironmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkspaceEnvironmentOK, 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 environment API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new environment API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new environment API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type GetEnvironmentForbidden ¶
GetEnvironmentForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetEnvironmentForbidden ¶
func NewGetEnvironmentForbidden() *GetEnvironmentForbidden
NewGetEnvironmentForbidden creates a GetEnvironmentForbidden with default headers values
func (*GetEnvironmentForbidden) Code ¶
func (o *GetEnvironmentForbidden) Code() int
Code gets the status code for the get environment forbidden response
func (*GetEnvironmentForbidden) Error ¶
func (o *GetEnvironmentForbidden) Error() string
func (*GetEnvironmentForbidden) GetPayload ¶
func (o *GetEnvironmentForbidden) GetPayload() *models.Error
func (*GetEnvironmentForbidden) IsClientError ¶
func (o *GetEnvironmentForbidden) IsClientError() bool
IsClientError returns true when this get environment forbidden response has a 4xx status code
func (*GetEnvironmentForbidden) IsCode ¶
func (o *GetEnvironmentForbidden) IsCode(code int) bool
IsCode returns true when this get environment forbidden response a status code equal to that given
func (*GetEnvironmentForbidden) IsRedirect ¶
func (o *GetEnvironmentForbidden) IsRedirect() bool
IsRedirect returns true when this get environment forbidden response has a 3xx status code
func (*GetEnvironmentForbidden) IsServerError ¶
func (o *GetEnvironmentForbidden) IsServerError() bool
IsServerError returns true when this get environment forbidden response has a 5xx status code
func (*GetEnvironmentForbidden) IsSuccess ¶
func (o *GetEnvironmentForbidden) IsSuccess() bool
IsSuccess returns true when this get environment forbidden response has a 2xx status code
func (*GetEnvironmentForbidden) String ¶
func (o *GetEnvironmentForbidden) String() string
type GetEnvironmentOK ¶
type GetEnvironmentOK struct { /* The ETag HTTP header is an identifier for a specific version of a resource in:header Format: etag */ Etag string Payload *models.Environment }
GetEnvironmentOK describes a response with status code 200, with default header values.
Environment
func NewGetEnvironmentOK ¶
func NewGetEnvironmentOK() *GetEnvironmentOK
NewGetEnvironmentOK creates a GetEnvironmentOK with default headers values
func (*GetEnvironmentOK) Code ¶
func (o *GetEnvironmentOK) Code() int
Code gets the status code for the get environment o k response
func (*GetEnvironmentOK) Error ¶
func (o *GetEnvironmentOK) Error() string
func (*GetEnvironmentOK) GetPayload ¶
func (o *GetEnvironmentOK) GetPayload() *models.Environment
func (*GetEnvironmentOK) IsClientError ¶
func (o *GetEnvironmentOK) IsClientError() bool
IsClientError returns true when this get environment o k response has a 4xx status code
func (*GetEnvironmentOK) IsCode ¶
func (o *GetEnvironmentOK) IsCode(code int) bool
IsCode returns true when this get environment o k response a status code equal to that given
func (*GetEnvironmentOK) IsRedirect ¶
func (o *GetEnvironmentOK) IsRedirect() bool
IsRedirect returns true when this get environment o k response has a 3xx status code
func (*GetEnvironmentOK) IsServerError ¶
func (o *GetEnvironmentOK) IsServerError() bool
IsServerError returns true when this get environment o k response has a 5xx status code
func (*GetEnvironmentOK) IsSuccess ¶
func (o *GetEnvironmentOK) IsSuccess() bool
IsSuccess returns true when this get environment o k response has a 2xx status code
func (*GetEnvironmentOK) String ¶
func (o *GetEnvironmentOK) String() string
type GetEnvironmentParams ¶
type GetEnvironmentParams struct { /* IfMatch. A server will only return requested resources if the resource matches one of the listed ETag value Format: etag */ IfMatch *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetEnvironmentParams contains all the parameters to send to the API endpoint
for the get environment operation. Typically these are written to a http.Request.
func NewGetEnvironmentParams ¶
func NewGetEnvironmentParams() *GetEnvironmentParams
NewGetEnvironmentParams creates a new GetEnvironmentParams 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 NewGetEnvironmentParamsWithContext ¶
func NewGetEnvironmentParamsWithContext(ctx context.Context) *GetEnvironmentParams
NewGetEnvironmentParamsWithContext creates a new GetEnvironmentParams object with the ability to set a context for a request.
func NewGetEnvironmentParamsWithHTTPClient ¶
func NewGetEnvironmentParamsWithHTTPClient(client *http.Client) *GetEnvironmentParams
NewGetEnvironmentParamsWithHTTPClient creates a new GetEnvironmentParams object with the ability to set a custom HTTPClient for a request.
func NewGetEnvironmentParamsWithTimeout ¶
func NewGetEnvironmentParamsWithTimeout(timeout time.Duration) *GetEnvironmentParams
NewGetEnvironmentParamsWithTimeout creates a new GetEnvironmentParams object with the ability to set a timeout on a request.
func (*GetEnvironmentParams) SetContext ¶
func (o *GetEnvironmentParams) SetContext(ctx context.Context)
SetContext adds the context to the get environment params
func (*GetEnvironmentParams) SetDefaults ¶
func (o *GetEnvironmentParams) SetDefaults()
SetDefaults hydrates default values in the get environment params (not the query body).
All values with no default are reset to their zero value.
func (*GetEnvironmentParams) SetHTTPClient ¶
func (o *GetEnvironmentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get environment params
func (*GetEnvironmentParams) SetIfMatch ¶
func (o *GetEnvironmentParams) SetIfMatch(ifMatch *string)
SetIfMatch adds the ifMatch to the get environment params
func (*GetEnvironmentParams) SetTimeout ¶
func (o *GetEnvironmentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get environment params
func (*GetEnvironmentParams) WithContext ¶
func (o *GetEnvironmentParams) WithContext(ctx context.Context) *GetEnvironmentParams
WithContext adds the context to the get environment params
func (*GetEnvironmentParams) WithDefaults ¶
func (o *GetEnvironmentParams) WithDefaults() *GetEnvironmentParams
WithDefaults hydrates default values in the get environment params (not the query body).
All values with no default are reset to their zero value.
func (*GetEnvironmentParams) WithHTTPClient ¶
func (o *GetEnvironmentParams) WithHTTPClient(client *http.Client) *GetEnvironmentParams
WithHTTPClient adds the HTTPClient to the get environment params
func (*GetEnvironmentParams) WithIfMatch ¶
func (o *GetEnvironmentParams) WithIfMatch(ifMatch *string) *GetEnvironmentParams
WithIfMatch adds the ifMatch to the get environment params
func (*GetEnvironmentParams) WithTimeout ¶
func (o *GetEnvironmentParams) WithTimeout(timeout time.Duration) *GetEnvironmentParams
WithTimeout adds the timeout to the get environment params
func (*GetEnvironmentParams) WriteToRequest ¶
func (o *GetEnvironmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetEnvironmentReader ¶
type GetEnvironmentReader struct {
// contains filtered or unexported fields
}
GetEnvironmentReader is a Reader for the GetEnvironment structure.
func (*GetEnvironmentReader) ReadResponse ¶
func (o *GetEnvironmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetEnvironmentTooManyRequests ¶
GetEnvironmentTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewGetEnvironmentTooManyRequests ¶
func NewGetEnvironmentTooManyRequests() *GetEnvironmentTooManyRequests
NewGetEnvironmentTooManyRequests creates a GetEnvironmentTooManyRequests with default headers values
func (*GetEnvironmentTooManyRequests) Code ¶
func (o *GetEnvironmentTooManyRequests) Code() int
Code gets the status code for the get environment too many requests response
func (*GetEnvironmentTooManyRequests) Error ¶
func (o *GetEnvironmentTooManyRequests) Error() string
func (*GetEnvironmentTooManyRequests) GetPayload ¶
func (o *GetEnvironmentTooManyRequests) GetPayload() *models.Error
func (*GetEnvironmentTooManyRequests) IsClientError ¶
func (o *GetEnvironmentTooManyRequests) IsClientError() bool
IsClientError returns true when this get environment too many requests response has a 4xx status code
func (*GetEnvironmentTooManyRequests) IsCode ¶
func (o *GetEnvironmentTooManyRequests) IsCode(code int) bool
IsCode returns true when this get environment too many requests response a status code equal to that given
func (*GetEnvironmentTooManyRequests) IsRedirect ¶
func (o *GetEnvironmentTooManyRequests) IsRedirect() bool
IsRedirect returns true when this get environment too many requests response has a 3xx status code
func (*GetEnvironmentTooManyRequests) IsServerError ¶
func (o *GetEnvironmentTooManyRequests) IsServerError() bool
IsServerError returns true when this get environment too many requests response has a 5xx status code
func (*GetEnvironmentTooManyRequests) IsSuccess ¶
func (o *GetEnvironmentTooManyRequests) IsSuccess() bool
IsSuccess returns true when this get environment too many requests response has a 2xx status code
func (*GetEnvironmentTooManyRequests) String ¶
func (o *GetEnvironmentTooManyRequests) String() string
type GetEnvironmentUnauthorized ¶
type GetEnvironmentUnauthorized struct {
}GetEnvironmentUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetEnvironmentUnauthorized ¶
func NewGetEnvironmentUnauthorized() *GetEnvironmentUnauthorized
NewGetEnvironmentUnauthorized creates a GetEnvironmentUnauthorized with default headers values
func (*GetEnvironmentUnauthorized) Code ¶
func (o *GetEnvironmentUnauthorized) Code() int
Code gets the status code for the get environment unauthorized response
func (*GetEnvironmentUnauthorized) Error ¶
func (o *GetEnvironmentUnauthorized) Error() string
func (*GetEnvironmentUnauthorized) GetPayload ¶
func (o *GetEnvironmentUnauthorized) GetPayload() *models.Error
func (*GetEnvironmentUnauthorized) IsClientError ¶
func (o *GetEnvironmentUnauthorized) IsClientError() bool
IsClientError returns true when this get environment unauthorized response has a 4xx status code
func (*GetEnvironmentUnauthorized) IsCode ¶
func (o *GetEnvironmentUnauthorized) IsCode(code int) bool
IsCode returns true when this get environment unauthorized response a status code equal to that given
func (*GetEnvironmentUnauthorized) IsRedirect ¶
func (o *GetEnvironmentUnauthorized) IsRedirect() bool
IsRedirect returns true when this get environment unauthorized response has a 3xx status code
func (*GetEnvironmentUnauthorized) IsServerError ¶
func (o *GetEnvironmentUnauthorized) IsServerError() bool
IsServerError returns true when this get environment unauthorized response has a 5xx status code
func (*GetEnvironmentUnauthorized) IsSuccess ¶
func (o *GetEnvironmentUnauthorized) IsSuccess() bool
IsSuccess returns true when this get environment unauthorized response has a 2xx status code
func (*GetEnvironmentUnauthorized) String ¶
func (o *GetEnvironmentUnauthorized) String() string
type GetWorkspaceEnvironmentForbidden ¶
GetWorkspaceEnvironmentForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetWorkspaceEnvironmentForbidden ¶
func NewGetWorkspaceEnvironmentForbidden() *GetWorkspaceEnvironmentForbidden
NewGetWorkspaceEnvironmentForbidden creates a GetWorkspaceEnvironmentForbidden with default headers values
func (*GetWorkspaceEnvironmentForbidden) Code ¶
func (o *GetWorkspaceEnvironmentForbidden) Code() int
Code gets the status code for the get workspace environment forbidden response
func (*GetWorkspaceEnvironmentForbidden) Error ¶
func (o *GetWorkspaceEnvironmentForbidden) Error() string
func (*GetWorkspaceEnvironmentForbidden) GetPayload ¶
func (o *GetWorkspaceEnvironmentForbidden) GetPayload() *models.Error
func (*GetWorkspaceEnvironmentForbidden) IsClientError ¶
func (o *GetWorkspaceEnvironmentForbidden) IsClientError() bool
IsClientError returns true when this get workspace environment forbidden response has a 4xx status code
func (*GetWorkspaceEnvironmentForbidden) IsCode ¶
func (o *GetWorkspaceEnvironmentForbidden) IsCode(code int) bool
IsCode returns true when this get workspace environment forbidden response a status code equal to that given
func (*GetWorkspaceEnvironmentForbidden) IsRedirect ¶
func (o *GetWorkspaceEnvironmentForbidden) IsRedirect() bool
IsRedirect returns true when this get workspace environment forbidden response has a 3xx status code
func (*GetWorkspaceEnvironmentForbidden) IsServerError ¶
func (o *GetWorkspaceEnvironmentForbidden) IsServerError() bool
IsServerError returns true when this get workspace environment forbidden response has a 5xx status code
func (*GetWorkspaceEnvironmentForbidden) IsSuccess ¶
func (o *GetWorkspaceEnvironmentForbidden) IsSuccess() bool
IsSuccess returns true when this get workspace environment forbidden response has a 2xx status code
func (*GetWorkspaceEnvironmentForbidden) String ¶
func (o *GetWorkspaceEnvironmentForbidden) String() string
type GetWorkspaceEnvironmentOK ¶
type GetWorkspaceEnvironmentOK struct { /* The ETag HTTP header is an identifier for a specific version of a resource in:header Format: etag */ Etag string Payload *models.Environment }
GetWorkspaceEnvironmentOK describes a response with status code 200, with default header values.
Environment
func NewGetWorkspaceEnvironmentOK ¶
func NewGetWorkspaceEnvironmentOK() *GetWorkspaceEnvironmentOK
NewGetWorkspaceEnvironmentOK creates a GetWorkspaceEnvironmentOK with default headers values
func (*GetWorkspaceEnvironmentOK) Code ¶
func (o *GetWorkspaceEnvironmentOK) Code() int
Code gets the status code for the get workspace environment o k response
func (*GetWorkspaceEnvironmentOK) Error ¶
func (o *GetWorkspaceEnvironmentOK) Error() string
func (*GetWorkspaceEnvironmentOK) GetPayload ¶
func (o *GetWorkspaceEnvironmentOK) GetPayload() *models.Environment
func (*GetWorkspaceEnvironmentOK) IsClientError ¶
func (o *GetWorkspaceEnvironmentOK) IsClientError() bool
IsClientError returns true when this get workspace environment o k response has a 4xx status code
func (*GetWorkspaceEnvironmentOK) IsCode ¶
func (o *GetWorkspaceEnvironmentOK) IsCode(code int) bool
IsCode returns true when this get workspace environment o k response a status code equal to that given
func (*GetWorkspaceEnvironmentOK) IsRedirect ¶
func (o *GetWorkspaceEnvironmentOK) IsRedirect() bool
IsRedirect returns true when this get workspace environment o k response has a 3xx status code
func (*GetWorkspaceEnvironmentOK) IsServerError ¶
func (o *GetWorkspaceEnvironmentOK) IsServerError() bool
IsServerError returns true when this get workspace environment o k response has a 5xx status code
func (*GetWorkspaceEnvironmentOK) IsSuccess ¶
func (o *GetWorkspaceEnvironmentOK) IsSuccess() bool
IsSuccess returns true when this get workspace environment o k response has a 2xx status code
func (*GetWorkspaceEnvironmentOK) String ¶
func (o *GetWorkspaceEnvironmentOK) String() string
type GetWorkspaceEnvironmentParams ¶
type GetWorkspaceEnvironmentParams struct { /* IfMatch. A server will only return requested resources if the resource matches one of the listed ETag value Format: etag */ IfMatch *string /* Wid. Workspace id Default: "default" */ Wid string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetWorkspaceEnvironmentParams contains all the parameters to send to the API endpoint
for the get workspace environment operation. Typically these are written to a http.Request.
func NewGetWorkspaceEnvironmentParams ¶
func NewGetWorkspaceEnvironmentParams() *GetWorkspaceEnvironmentParams
NewGetWorkspaceEnvironmentParams creates a new GetWorkspaceEnvironmentParams 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 NewGetWorkspaceEnvironmentParamsWithContext ¶
func NewGetWorkspaceEnvironmentParamsWithContext(ctx context.Context) *GetWorkspaceEnvironmentParams
NewGetWorkspaceEnvironmentParamsWithContext creates a new GetWorkspaceEnvironmentParams object with the ability to set a context for a request.
func NewGetWorkspaceEnvironmentParamsWithHTTPClient ¶
func NewGetWorkspaceEnvironmentParamsWithHTTPClient(client *http.Client) *GetWorkspaceEnvironmentParams
NewGetWorkspaceEnvironmentParamsWithHTTPClient creates a new GetWorkspaceEnvironmentParams object with the ability to set a custom HTTPClient for a request.
func NewGetWorkspaceEnvironmentParamsWithTimeout ¶
func NewGetWorkspaceEnvironmentParamsWithTimeout(timeout time.Duration) *GetWorkspaceEnvironmentParams
NewGetWorkspaceEnvironmentParamsWithTimeout creates a new GetWorkspaceEnvironmentParams object with the ability to set a timeout on a request.
func (*GetWorkspaceEnvironmentParams) SetContext ¶
func (o *GetWorkspaceEnvironmentParams) SetContext(ctx context.Context)
SetContext adds the context to the get workspace environment params
func (*GetWorkspaceEnvironmentParams) SetDefaults ¶
func (o *GetWorkspaceEnvironmentParams) SetDefaults()
SetDefaults hydrates default values in the get workspace environment params (not the query body).
All values with no default are reset to their zero value.
func (*GetWorkspaceEnvironmentParams) SetHTTPClient ¶
func (o *GetWorkspaceEnvironmentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get workspace environment params
func (*GetWorkspaceEnvironmentParams) SetIfMatch ¶
func (o *GetWorkspaceEnvironmentParams) SetIfMatch(ifMatch *string)
SetIfMatch adds the ifMatch to the get workspace environment params
func (*GetWorkspaceEnvironmentParams) SetTimeout ¶
func (o *GetWorkspaceEnvironmentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get workspace environment params
func (*GetWorkspaceEnvironmentParams) SetWid ¶
func (o *GetWorkspaceEnvironmentParams) SetWid(wid string)
SetWid adds the wid to the get workspace environment params
func (*GetWorkspaceEnvironmentParams) WithContext ¶
func (o *GetWorkspaceEnvironmentParams) WithContext(ctx context.Context) *GetWorkspaceEnvironmentParams
WithContext adds the context to the get workspace environment params
func (*GetWorkspaceEnvironmentParams) WithDefaults ¶
func (o *GetWorkspaceEnvironmentParams) WithDefaults() *GetWorkspaceEnvironmentParams
WithDefaults hydrates default values in the get workspace environment params (not the query body).
All values with no default are reset to their zero value.
func (*GetWorkspaceEnvironmentParams) WithHTTPClient ¶
func (o *GetWorkspaceEnvironmentParams) WithHTTPClient(client *http.Client) *GetWorkspaceEnvironmentParams
WithHTTPClient adds the HTTPClient to the get workspace environment params
func (*GetWorkspaceEnvironmentParams) WithIfMatch ¶
func (o *GetWorkspaceEnvironmentParams) WithIfMatch(ifMatch *string) *GetWorkspaceEnvironmentParams
WithIfMatch adds the ifMatch to the get workspace environment params
func (*GetWorkspaceEnvironmentParams) WithTimeout ¶
func (o *GetWorkspaceEnvironmentParams) WithTimeout(timeout time.Duration) *GetWorkspaceEnvironmentParams
WithTimeout adds the timeout to the get workspace environment params
func (*GetWorkspaceEnvironmentParams) WithWid ¶
func (o *GetWorkspaceEnvironmentParams) WithWid(wid string) *GetWorkspaceEnvironmentParams
WithWid adds the wid to the get workspace environment params
func (*GetWorkspaceEnvironmentParams) WriteToRequest ¶
func (o *GetWorkspaceEnvironmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetWorkspaceEnvironmentReader ¶
type GetWorkspaceEnvironmentReader struct {
// contains filtered or unexported fields
}
GetWorkspaceEnvironmentReader is a Reader for the GetWorkspaceEnvironment structure.
func (*GetWorkspaceEnvironmentReader) ReadResponse ¶
func (o *GetWorkspaceEnvironmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetWorkspaceEnvironmentTooManyRequests ¶
GetWorkspaceEnvironmentTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewGetWorkspaceEnvironmentTooManyRequests ¶
func NewGetWorkspaceEnvironmentTooManyRequests() *GetWorkspaceEnvironmentTooManyRequests
NewGetWorkspaceEnvironmentTooManyRequests creates a GetWorkspaceEnvironmentTooManyRequests with default headers values
func (*GetWorkspaceEnvironmentTooManyRequests) Code ¶
func (o *GetWorkspaceEnvironmentTooManyRequests) Code() int
Code gets the status code for the get workspace environment too many requests response
func (*GetWorkspaceEnvironmentTooManyRequests) Error ¶
func (o *GetWorkspaceEnvironmentTooManyRequests) Error() string
func (*GetWorkspaceEnvironmentTooManyRequests) GetPayload ¶
func (o *GetWorkspaceEnvironmentTooManyRequests) GetPayload() *models.Error
func (*GetWorkspaceEnvironmentTooManyRequests) IsClientError ¶
func (o *GetWorkspaceEnvironmentTooManyRequests) IsClientError() bool
IsClientError returns true when this get workspace environment too many requests response has a 4xx status code
func (*GetWorkspaceEnvironmentTooManyRequests) IsCode ¶
func (o *GetWorkspaceEnvironmentTooManyRequests) IsCode(code int) bool
IsCode returns true when this get workspace environment too many requests response a status code equal to that given
func (*GetWorkspaceEnvironmentTooManyRequests) IsRedirect ¶
func (o *GetWorkspaceEnvironmentTooManyRequests) IsRedirect() bool
IsRedirect returns true when this get workspace environment too many requests response has a 3xx status code
func (*GetWorkspaceEnvironmentTooManyRequests) IsServerError ¶
func (o *GetWorkspaceEnvironmentTooManyRequests) IsServerError() bool
IsServerError returns true when this get workspace environment too many requests response has a 5xx status code
func (*GetWorkspaceEnvironmentTooManyRequests) IsSuccess ¶
func (o *GetWorkspaceEnvironmentTooManyRequests) IsSuccess() bool
IsSuccess returns true when this get workspace environment too many requests response has a 2xx status code
func (*GetWorkspaceEnvironmentTooManyRequests) String ¶
func (o *GetWorkspaceEnvironmentTooManyRequests) String() string
type GetWorkspaceEnvironmentUnauthorized ¶
type GetWorkspaceEnvironmentUnauthorized struct {
}GetWorkspaceEnvironmentUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetWorkspaceEnvironmentUnauthorized ¶
func NewGetWorkspaceEnvironmentUnauthorized() *GetWorkspaceEnvironmentUnauthorized
NewGetWorkspaceEnvironmentUnauthorized creates a GetWorkspaceEnvironmentUnauthorized with default headers values
func (*GetWorkspaceEnvironmentUnauthorized) Code ¶
func (o *GetWorkspaceEnvironmentUnauthorized) Code() int
Code gets the status code for the get workspace environment unauthorized response
func (*GetWorkspaceEnvironmentUnauthorized) Error ¶
func (o *GetWorkspaceEnvironmentUnauthorized) Error() string
func (*GetWorkspaceEnvironmentUnauthorized) GetPayload ¶
func (o *GetWorkspaceEnvironmentUnauthorized) GetPayload() *models.Error
func (*GetWorkspaceEnvironmentUnauthorized) IsClientError ¶
func (o *GetWorkspaceEnvironmentUnauthorized) IsClientError() bool
IsClientError returns true when this get workspace environment unauthorized response has a 4xx status code
func (*GetWorkspaceEnvironmentUnauthorized) IsCode ¶
func (o *GetWorkspaceEnvironmentUnauthorized) IsCode(code int) bool
IsCode returns true when this get workspace environment unauthorized response a status code equal to that given
func (*GetWorkspaceEnvironmentUnauthorized) IsRedirect ¶
func (o *GetWorkspaceEnvironmentUnauthorized) IsRedirect() bool
IsRedirect returns true when this get workspace environment unauthorized response has a 3xx status code
func (*GetWorkspaceEnvironmentUnauthorized) IsServerError ¶
func (o *GetWorkspaceEnvironmentUnauthorized) IsServerError() bool
IsServerError returns true when this get workspace environment unauthorized response has a 5xx status code
func (*GetWorkspaceEnvironmentUnauthorized) IsSuccess ¶
func (o *GetWorkspaceEnvironmentUnauthorized) IsSuccess() bool
IsSuccess returns true when this get workspace environment unauthorized response has a 2xx status code
func (*GetWorkspaceEnvironmentUnauthorized) String ¶
func (o *GetWorkspaceEnvironmentUnauthorized) String() string