Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GenerateEnvironmentBadRequest
- type GenerateEnvironmentDefault
- type GenerateEnvironmentOK
- type GenerateEnvironmentParams
- func NewGenerateEnvironmentParams() *GenerateEnvironmentParams
- func NewGenerateEnvironmentParamsWithContext(ctx context.Context) *GenerateEnvironmentParams
- func NewGenerateEnvironmentParamsWithHTTPClient(client *http.Client) *GenerateEnvironmentParams
- func NewGenerateEnvironmentParamsWithTimeout(timeout time.Duration) *GenerateEnvironmentParams
- func (o *GenerateEnvironmentParams) SetBody(body *models.ModelsEnvironmentRequest)
- func (o *GenerateEnvironmentParams) SetContext(ctx context.Context)
- func (o *GenerateEnvironmentParams) SetDefaults()
- func (o *GenerateEnvironmentParams) SetHTTPClient(client *http.Client)
- func (o *GenerateEnvironmentParams) SetTimeout(timeout time.Duration)
- func (o *GenerateEnvironmentParams) WithBody(body *models.ModelsEnvironmentRequest) *GenerateEnvironmentParams
- func (o *GenerateEnvironmentParams) WithContext(ctx context.Context) *GenerateEnvironmentParams
- func (o *GenerateEnvironmentParams) WithDefaults() *GenerateEnvironmentParams
- func (o *GenerateEnvironmentParams) WithHTTPClient(client *http.Client) *GenerateEnvironmentParams
- func (o *GenerateEnvironmentParams) WithTimeout(timeout time.Duration) *GenerateEnvironmentParams
- func (o *GenerateEnvironmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GenerateEnvironmentReader
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) GenerateEnvironment ¶
func (a *Client) GenerateEnvironment(params *GenerateEnvironmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenerateEnvironmentOK, error)
GenerateEnvironment generates a temporary environment
Generate a temporary environment (set of environment variables)
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 is the option for Client methods
type ClientService ¶
type ClientService interface { GenerateEnvironment(params *GenerateEnvironmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenerateEnvironmentOK, 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.
type GenerateEnvironmentBadRequest ¶
type GenerateEnvironmentBadRequest struct {
Payload string
}
GenerateEnvironmentBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewGenerateEnvironmentBadRequest ¶
func NewGenerateEnvironmentBadRequest() *GenerateEnvironmentBadRequest
NewGenerateEnvironmentBadRequest creates a GenerateEnvironmentBadRequest with default headers values
func (*GenerateEnvironmentBadRequest) Error ¶
func (o *GenerateEnvironmentBadRequest) Error() string
func (*GenerateEnvironmentBadRequest) GetPayload ¶
func (o *GenerateEnvironmentBadRequest) GetPayload() string
type GenerateEnvironmentDefault ¶
type GenerateEnvironmentDefault struct { Payload *models.Error // contains filtered or unexported fields }
GenerateEnvironmentDefault describes a response with status code -1, with default header values.
generic error response
func NewGenerateEnvironmentDefault ¶
func NewGenerateEnvironmentDefault(code int) *GenerateEnvironmentDefault
NewGenerateEnvironmentDefault creates a GenerateEnvironmentDefault with default headers values
func (*GenerateEnvironmentDefault) Code ¶
func (o *GenerateEnvironmentDefault) Code() int
Code gets the status code for the generate environment default response
func (*GenerateEnvironmentDefault) Error ¶
func (o *GenerateEnvironmentDefault) Error() string
func (*GenerateEnvironmentDefault) GetPayload ¶
func (o *GenerateEnvironmentDefault) GetPayload() *models.Error
type GenerateEnvironmentOK ¶
type GenerateEnvironmentOK struct {
Payload *models.ModelsEnvironmentResponse
}
GenerateEnvironmentOK describes a response with status code 200, with default header values.
OK
func NewGenerateEnvironmentOK ¶
func NewGenerateEnvironmentOK() *GenerateEnvironmentOK
NewGenerateEnvironmentOK creates a GenerateEnvironmentOK with default headers values
func (*GenerateEnvironmentOK) Error ¶
func (o *GenerateEnvironmentOK) Error() string
func (*GenerateEnvironmentOK) GetPayload ¶
func (o *GenerateEnvironmentOK) GetPayload() *models.ModelsEnvironmentResponse
type GenerateEnvironmentParams ¶
type GenerateEnvironmentParams struct { /* Body. Temporary Environment Request definition */ Body *models.ModelsEnvironmentRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GenerateEnvironmentParams contains all the parameters to send to the API endpoint
for the generate environment operation. Typically these are written to a http.Request.
func NewGenerateEnvironmentParams ¶
func NewGenerateEnvironmentParams() *GenerateEnvironmentParams
NewGenerateEnvironmentParams creates a new GenerateEnvironmentParams 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 NewGenerateEnvironmentParamsWithContext ¶
func NewGenerateEnvironmentParamsWithContext(ctx context.Context) *GenerateEnvironmentParams
NewGenerateEnvironmentParamsWithContext creates a new GenerateEnvironmentParams object with the ability to set a context for a request.
func NewGenerateEnvironmentParamsWithHTTPClient ¶
func NewGenerateEnvironmentParamsWithHTTPClient(client *http.Client) *GenerateEnvironmentParams
NewGenerateEnvironmentParamsWithHTTPClient creates a new GenerateEnvironmentParams object with the ability to set a custom HTTPClient for a request.
func NewGenerateEnvironmentParamsWithTimeout ¶
func NewGenerateEnvironmentParamsWithTimeout(timeout time.Duration) *GenerateEnvironmentParams
NewGenerateEnvironmentParamsWithTimeout creates a new GenerateEnvironmentParams object with the ability to set a timeout on a request.
func (*GenerateEnvironmentParams) SetBody ¶
func (o *GenerateEnvironmentParams) SetBody(body *models.ModelsEnvironmentRequest)
SetBody adds the body to the generate environment params
func (*GenerateEnvironmentParams) SetContext ¶
func (o *GenerateEnvironmentParams) SetContext(ctx context.Context)
SetContext adds the context to the generate environment params
func (*GenerateEnvironmentParams) SetDefaults ¶
func (o *GenerateEnvironmentParams) SetDefaults()
SetDefaults hydrates default values in the generate environment params (not the query body).
All values with no default are reset to their zero value.
func (*GenerateEnvironmentParams) SetHTTPClient ¶
func (o *GenerateEnvironmentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the generate environment params
func (*GenerateEnvironmentParams) SetTimeout ¶
func (o *GenerateEnvironmentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the generate environment params
func (*GenerateEnvironmentParams) WithBody ¶
func (o *GenerateEnvironmentParams) WithBody(body *models.ModelsEnvironmentRequest) *GenerateEnvironmentParams
WithBody adds the body to the generate environment params
func (*GenerateEnvironmentParams) WithContext ¶
func (o *GenerateEnvironmentParams) WithContext(ctx context.Context) *GenerateEnvironmentParams
WithContext adds the context to the generate environment params
func (*GenerateEnvironmentParams) WithDefaults ¶
func (o *GenerateEnvironmentParams) WithDefaults() *GenerateEnvironmentParams
WithDefaults hydrates default values in the generate environment params (not the query body).
All values with no default are reset to their zero value.
func (*GenerateEnvironmentParams) WithHTTPClient ¶
func (o *GenerateEnvironmentParams) WithHTTPClient(client *http.Client) *GenerateEnvironmentParams
WithHTTPClient adds the HTTPClient to the generate environment params
func (*GenerateEnvironmentParams) WithTimeout ¶
func (o *GenerateEnvironmentParams) WithTimeout(timeout time.Duration) *GenerateEnvironmentParams
WithTimeout adds the timeout to the generate environment params
func (*GenerateEnvironmentParams) WriteToRequest ¶
func (o *GenerateEnvironmentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GenerateEnvironmentReader ¶
type GenerateEnvironmentReader struct {
// contains filtered or unexported fields
}
GenerateEnvironmentReader is a Reader for the GenerateEnvironment structure.
func (*GenerateEnvironmentReader) ReadResponse ¶
func (o *GenerateEnvironmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.