Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateProject(params *CreateProjectParams, opts ...ClientOption) (*CreateProjectCreated, error)
- func (a *Client) DeleteProject(params *DeleteProjectParams, opts ...ClientOption) (*DeleteProjectNoContent, error)
- func (a *Client) GetProject(params *GetProjectParams, opts ...ClientOption) (*GetProjectOK, error)
- func (a *Client) GetProjectResourceMetadata(params *GetProjectResourceMetadataParams, opts ...ClientOption) (*GetProjectResourceMetadataOK, error)
- func (a *Client) GetProjects(params *GetProjectsParams, opts ...ClientOption) (*GetProjectsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateProject(params *UpdateProjectParams, opts ...ClientOption) (*UpdateProjectOK, error)
- func (a *Client) UpdateProjectResourceMetadata(params *UpdateProjectResourceMetadataParams, opts ...ClientOption) (*UpdateProjectResourceMetadataOK, error)
- type ClientOption
- type ClientService
- type CreateProjectBadRequest
- type CreateProjectCreated
- type CreateProjectForbidden
- type CreateProjectParams
- func (o *CreateProjectParams) SetAPIVersion(aPIVersion *string)
- func (o *CreateProjectParams) SetBody(body *models.ProjectSpecification)
- func (o *CreateProjectParams) SetContext(ctx context.Context)
- func (o *CreateProjectParams) SetDefaults()
- func (o *CreateProjectParams) SetHTTPClient(client *http.Client)
- func (o *CreateProjectParams) SetTimeout(timeout time.Duration)
- func (o *CreateProjectParams) WithAPIVersion(aPIVersion *string) *CreateProjectParams
- func (o *CreateProjectParams) WithBody(body *models.ProjectSpecification) *CreateProjectParams
- func (o *CreateProjectParams) WithContext(ctx context.Context) *CreateProjectParams
- func (o *CreateProjectParams) WithDefaults() *CreateProjectParams
- func (o *CreateProjectParams) WithHTTPClient(client *http.Client) *CreateProjectParams
- func (o *CreateProjectParams) WithTimeout(timeout time.Duration) *CreateProjectParams
- func (o *CreateProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateProjectReader
- type DeleteProjectConflict
- type DeleteProjectForbidden
- type DeleteProjectNoContent
- type DeleteProjectParams
- func (o *DeleteProjectParams) SetAPIVersion(aPIVersion *string)
- func (o *DeleteProjectParams) SetContext(ctx context.Context)
- func (o *DeleteProjectParams) SetDefaults()
- func (o *DeleteProjectParams) SetHTTPClient(client *http.Client)
- func (o *DeleteProjectParams) SetID(id string)
- func (o *DeleteProjectParams) SetTimeout(timeout time.Duration)
- func (o *DeleteProjectParams) WithAPIVersion(aPIVersion *string) *DeleteProjectParams
- func (o *DeleteProjectParams) WithContext(ctx context.Context) *DeleteProjectParams
- func (o *DeleteProjectParams) WithDefaults() *DeleteProjectParams
- func (o *DeleteProjectParams) WithHTTPClient(client *http.Client) *DeleteProjectParams
- func (o *DeleteProjectParams) WithID(id string) *DeleteProjectParams
- func (o *DeleteProjectParams) WithTimeout(timeout time.Duration) *DeleteProjectParams
- func (o *DeleteProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteProjectReader
- type GetProjectForbidden
- type GetProjectNotFound
- type GetProjectOK
- type GetProjectParams
- func (o *GetProjectParams) SetAPIVersion(aPIVersion *string)
- func (o *GetProjectParams) SetContext(ctx context.Context)
- func (o *GetProjectParams) SetDefaults()
- func (o *GetProjectParams) SetHTTPClient(client *http.Client)
- func (o *GetProjectParams) SetID(id string)
- func (o *GetProjectParams) SetTimeout(timeout time.Duration)
- func (o *GetProjectParams) WithAPIVersion(aPIVersion *string) *GetProjectParams
- func (o *GetProjectParams) WithContext(ctx context.Context) *GetProjectParams
- func (o *GetProjectParams) WithDefaults() *GetProjectParams
- func (o *GetProjectParams) WithHTTPClient(client *http.Client) *GetProjectParams
- func (o *GetProjectParams) WithID(id string) *GetProjectParams
- func (o *GetProjectParams) WithTimeout(timeout time.Duration) *GetProjectParams
- func (o *GetProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProjectReader
- type GetProjectResourceMetadataForbidden
- type GetProjectResourceMetadataNotFound
- type GetProjectResourceMetadataOK
- type GetProjectResourceMetadataParams
- func NewGetProjectResourceMetadataParams() *GetProjectResourceMetadataParams
- func NewGetProjectResourceMetadataParamsWithContext(ctx context.Context) *GetProjectResourceMetadataParams
- func NewGetProjectResourceMetadataParamsWithHTTPClient(client *http.Client) *GetProjectResourceMetadataParams
- func NewGetProjectResourceMetadataParamsWithTimeout(timeout time.Duration) *GetProjectResourceMetadataParams
- func (o *GetProjectResourceMetadataParams) SetAPIVersion(aPIVersion *string)
- func (o *GetProjectResourceMetadataParams) SetContext(ctx context.Context)
- func (o *GetProjectResourceMetadataParams) SetDefaults()
- func (o *GetProjectResourceMetadataParams) SetHTTPClient(client *http.Client)
- func (o *GetProjectResourceMetadataParams) SetID(id string)
- func (o *GetProjectResourceMetadataParams) SetTimeout(timeout time.Duration)
- func (o *GetProjectResourceMetadataParams) WithAPIVersion(aPIVersion *string) *GetProjectResourceMetadataParams
- func (o *GetProjectResourceMetadataParams) WithContext(ctx context.Context) *GetProjectResourceMetadataParams
- func (o *GetProjectResourceMetadataParams) WithDefaults() *GetProjectResourceMetadataParams
- func (o *GetProjectResourceMetadataParams) WithHTTPClient(client *http.Client) *GetProjectResourceMetadataParams
- func (o *GetProjectResourceMetadataParams) WithID(id string) *GetProjectResourceMetadataParams
- func (o *GetProjectResourceMetadataParams) WithTimeout(timeout time.Duration) *GetProjectResourceMetadataParams
- func (o *GetProjectResourceMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProjectResourceMetadataReader
- type GetProjectsForbidden
- type GetProjectsOK
- type GetProjectsParams
- func (o *GetProjectsParams) SetAPIVersion(aPIVersion *string)
- func (o *GetProjectsParams) SetContext(ctx context.Context)
- func (o *GetProjectsParams) SetDefaults()
- func (o *GetProjectsParams) SetDollarCount(dollarCount *bool)
- func (o *GetProjectsParams) SetDollarFilter(dollarFilter *string)
- func (o *GetProjectsParams) SetDollarOrderBy(dollarOrderBy *string)
- func (o *GetProjectsParams) SetDollarSkip(dollarSkip *int64)
- func (o *GetProjectsParams) SetDollarTop(dollarTop *int64)
- func (o *GetProjectsParams) SetHTTPClient(client *http.Client)
- func (o *GetProjectsParams) SetTimeout(timeout time.Duration)
- func (o *GetProjectsParams) WithAPIVersion(aPIVersion *string) *GetProjectsParams
- func (o *GetProjectsParams) WithContext(ctx context.Context) *GetProjectsParams
- func (o *GetProjectsParams) WithDefaults() *GetProjectsParams
- func (o *GetProjectsParams) WithDollarCount(dollarCount *bool) *GetProjectsParams
- func (o *GetProjectsParams) WithDollarFilter(dollarFilter *string) *GetProjectsParams
- func (o *GetProjectsParams) WithDollarOrderBy(dollarOrderBy *string) *GetProjectsParams
- func (o *GetProjectsParams) WithDollarSkip(dollarSkip *int64) *GetProjectsParams
- func (o *GetProjectsParams) WithDollarTop(dollarTop *int64) *GetProjectsParams
- func (o *GetProjectsParams) WithHTTPClient(client *http.Client) *GetProjectsParams
- func (o *GetProjectsParams) WithTimeout(timeout time.Duration) *GetProjectsParams
- func (o *GetProjectsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProjectsReader
- type UpdateProjectBadRequest
- type UpdateProjectForbidden
- type UpdateProjectOK
- type UpdateProjectParams
- func (o *UpdateProjectParams) SetAPIVersion(aPIVersion *string)
- func (o *UpdateProjectParams) SetBody(body *models.ProjectSpecification)
- func (o *UpdateProjectParams) SetContext(ctx context.Context)
- func (o *UpdateProjectParams) SetDefaults()
- func (o *UpdateProjectParams) SetHTTPClient(client *http.Client)
- func (o *UpdateProjectParams) SetID(id string)
- func (o *UpdateProjectParams) SetTimeout(timeout time.Duration)
- func (o *UpdateProjectParams) WithAPIVersion(aPIVersion *string) *UpdateProjectParams
- func (o *UpdateProjectParams) WithBody(body *models.ProjectSpecification) *UpdateProjectParams
- func (o *UpdateProjectParams) WithContext(ctx context.Context) *UpdateProjectParams
- func (o *UpdateProjectParams) WithDefaults() *UpdateProjectParams
- func (o *UpdateProjectParams) WithHTTPClient(client *http.Client) *UpdateProjectParams
- func (o *UpdateProjectParams) WithID(id string) *UpdateProjectParams
- func (o *UpdateProjectParams) WithTimeout(timeout time.Duration) *UpdateProjectParams
- func (o *UpdateProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateProjectReader
- type UpdateProjectResourceMetadataBadRequest
- type UpdateProjectResourceMetadataForbidden
- type UpdateProjectResourceMetadataOK
- type UpdateProjectResourceMetadataParams
- func NewUpdateProjectResourceMetadataParams() *UpdateProjectResourceMetadataParams
- func NewUpdateProjectResourceMetadataParamsWithContext(ctx context.Context) *UpdateProjectResourceMetadataParams
- func NewUpdateProjectResourceMetadataParamsWithHTTPClient(client *http.Client) *UpdateProjectResourceMetadataParams
- func NewUpdateProjectResourceMetadataParamsWithTimeout(timeout time.Duration) *UpdateProjectResourceMetadataParams
- func (o *UpdateProjectResourceMetadataParams) SetAPIVersion(aPIVersion *string)
- func (o *UpdateProjectResourceMetadataParams) SetBody(body *models.ProjectResourceMetadataSpecification)
- func (o *UpdateProjectResourceMetadataParams) SetContext(ctx context.Context)
- func (o *UpdateProjectResourceMetadataParams) SetDefaults()
- func (o *UpdateProjectResourceMetadataParams) SetHTTPClient(client *http.Client)
- func (o *UpdateProjectResourceMetadataParams) SetID(id string)
- func (o *UpdateProjectResourceMetadataParams) SetTimeout(timeout time.Duration)
- func (o *UpdateProjectResourceMetadataParams) WithAPIVersion(aPIVersion *string) *UpdateProjectResourceMetadataParams
- func (o *UpdateProjectResourceMetadataParams) WithBody(body *models.ProjectResourceMetadataSpecification) *UpdateProjectResourceMetadataParams
- func (o *UpdateProjectResourceMetadataParams) WithContext(ctx context.Context) *UpdateProjectResourceMetadataParams
- func (o *UpdateProjectResourceMetadataParams) WithDefaults() *UpdateProjectResourceMetadataParams
- func (o *UpdateProjectResourceMetadataParams) WithHTTPClient(client *http.Client) *UpdateProjectResourceMetadataParams
- func (o *UpdateProjectResourceMetadataParams) WithID(id string) *UpdateProjectResourceMetadataParams
- func (o *UpdateProjectResourceMetadataParams) WithTimeout(timeout time.Duration) *UpdateProjectResourceMetadataParams
- func (o *UpdateProjectResourceMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateProjectResourceMetadataReader
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 project API
func (*Client) CreateProject ¶
func (a *Client) CreateProject(params *CreateProjectParams, opts ...ClientOption) (*CreateProjectCreated, error)
CreateProject creates project
Create project
func (*Client) DeleteProject ¶
func (a *Client) DeleteProject(params *DeleteProjectParams, opts ...ClientOption) (*DeleteProjectNoContent, error)
DeleteProject deletes project
Delete project with a given id
func (*Client) GetProject ¶
func (a *Client) GetProject(params *GetProjectParams, opts ...ClientOption) (*GetProjectOK, error)
GetProject gets project
Get project with a given id
func (*Client) GetProjectResourceMetadata ¶
func (a *Client) GetProjectResourceMetadata(params *GetProjectResourceMetadataParams, opts ...ClientOption) (*GetProjectResourceMetadataOK, error)
GetProjectResourceMetadata gets project resource metadata
Get project resource metadata by a given project id
func (*Client) GetProjects ¶
func (a *Client) GetProjects(params *GetProjectsParams, opts ...ClientOption) (*GetProjectsOK, error)
GetProjects gets projects
Get all projects
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateProject ¶
func (a *Client) UpdateProject(params *UpdateProjectParams, opts ...ClientOption) (*UpdateProjectOK, error)
UpdateProject updates project
Update project
func (*Client) UpdateProjectResourceMetadata ¶
func (a *Client) UpdateProjectResourceMetadata(params *UpdateProjectResourceMetadataParams, opts ...ClientOption) (*UpdateProjectResourceMetadataOK, error)
UpdateProjectResourceMetadata updates project resource metadata
Update project resource metadata by a given project id
type ClientOption ¶ added in v0.2.20
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶ added in v0.2.18
type ClientService interface { CreateProject(params *CreateProjectParams, opts ...ClientOption) (*CreateProjectCreated, error) DeleteProject(params *DeleteProjectParams, opts ...ClientOption) (*DeleteProjectNoContent, error) GetProject(params *GetProjectParams, opts ...ClientOption) (*GetProjectOK, error) GetProjectResourceMetadata(params *GetProjectResourceMetadataParams, opts ...ClientOption) (*GetProjectResourceMetadataOK, error) GetProjects(params *GetProjectsParams, opts ...ClientOption) (*GetProjectsOK, error) UpdateProject(params *UpdateProjectParams, opts ...ClientOption) (*UpdateProjectOK, error) UpdateProjectResourceMetadata(params *UpdateProjectResourceMetadataParams, opts ...ClientOption) (*UpdateProjectResourceMetadataOK, 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 project API client.
type CreateProjectBadRequest ¶
CreateProjectBadRequest describes a response with status code 400, with default header values.
Invalid Request - bad data
func NewCreateProjectBadRequest ¶
func NewCreateProjectBadRequest() *CreateProjectBadRequest
NewCreateProjectBadRequest creates a CreateProjectBadRequest with default headers values
func (*CreateProjectBadRequest) Error ¶
func (o *CreateProjectBadRequest) Error() string
func (*CreateProjectBadRequest) GetPayload ¶ added in v0.2.9
func (o *CreateProjectBadRequest) GetPayload() *models.Error
type CreateProjectCreated ¶
CreateProjectCreated describes a response with status code 201, with default header values.
successful operation
func NewCreateProjectCreated ¶
func NewCreateProjectCreated() *CreateProjectCreated
NewCreateProjectCreated creates a CreateProjectCreated with default headers values
func (*CreateProjectCreated) Error ¶
func (o *CreateProjectCreated) Error() string
func (*CreateProjectCreated) GetPayload ¶
func (o *CreateProjectCreated) GetPayload() *models.Project
type CreateProjectForbidden ¶
type CreateProjectForbidden struct {
Payload *models.ServiceErrorResponse
}
CreateProjectForbidden describes a response with status code 403, with default header values.
Forbidden
func NewCreateProjectForbidden ¶
func NewCreateProjectForbidden() *CreateProjectForbidden
NewCreateProjectForbidden creates a CreateProjectForbidden with default headers values
func (*CreateProjectForbidden) Error ¶
func (o *CreateProjectForbidden) Error() string
func (*CreateProjectForbidden) GetPayload ¶ added in v0.2.20
func (o *CreateProjectForbidden) GetPayload() *models.ServiceErrorResponse
type CreateProjectParams ¶
type CreateProjectParams struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about */ APIVersion *string /* Body. Project Specification instance */ Body *models.ProjectSpecification Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateProjectParams contains all the parameters to send to the API endpoint
for the create project operation. Typically these are written to a http.Request.
func NewCreateProjectParams ¶
func NewCreateProjectParams() *CreateProjectParams
NewCreateProjectParams creates a new CreateProjectParams 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 NewCreateProjectParamsWithContext ¶
func NewCreateProjectParamsWithContext(ctx context.Context) *CreateProjectParams
NewCreateProjectParamsWithContext creates a new CreateProjectParams object with the ability to set a context for a request.
func NewCreateProjectParamsWithHTTPClient ¶
func NewCreateProjectParamsWithHTTPClient(client *http.Client) *CreateProjectParams
NewCreateProjectParamsWithHTTPClient creates a new CreateProjectParams object with the ability to set a custom HTTPClient for a request.
func NewCreateProjectParamsWithTimeout ¶
func NewCreateProjectParamsWithTimeout(timeout time.Duration) *CreateProjectParams
NewCreateProjectParamsWithTimeout creates a new CreateProjectParams object with the ability to set a timeout on a request.
func (*CreateProjectParams) SetAPIVersion ¶
func (o *CreateProjectParams) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the create project params
func (*CreateProjectParams) SetBody ¶
func (o *CreateProjectParams) SetBody(body *models.ProjectSpecification)
SetBody adds the body to the create project params
func (*CreateProjectParams) SetContext ¶
func (o *CreateProjectParams) SetContext(ctx context.Context)
SetContext adds the context to the create project params
func (*CreateProjectParams) SetDefaults ¶ added in v0.2.20
func (o *CreateProjectParams) SetDefaults()
SetDefaults hydrates default values in the create project params (not the query body).
All values with no default are reset to their zero value.
func (*CreateProjectParams) SetHTTPClient ¶
func (o *CreateProjectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create project params
func (*CreateProjectParams) SetTimeout ¶
func (o *CreateProjectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create project params
func (*CreateProjectParams) WithAPIVersion ¶
func (o *CreateProjectParams) WithAPIVersion(aPIVersion *string) *CreateProjectParams
WithAPIVersion adds the aPIVersion to the create project params
func (*CreateProjectParams) WithBody ¶
func (o *CreateProjectParams) WithBody(body *models.ProjectSpecification) *CreateProjectParams
WithBody adds the body to the create project params
func (*CreateProjectParams) WithContext ¶
func (o *CreateProjectParams) WithContext(ctx context.Context) *CreateProjectParams
WithContext adds the context to the create project params
func (*CreateProjectParams) WithDefaults ¶ added in v0.2.20
func (o *CreateProjectParams) WithDefaults() *CreateProjectParams
WithDefaults hydrates default values in the create project params (not the query body).
All values with no default are reset to their zero value.
func (*CreateProjectParams) WithHTTPClient ¶
func (o *CreateProjectParams) WithHTTPClient(client *http.Client) *CreateProjectParams
WithHTTPClient adds the HTTPClient to the create project params
func (*CreateProjectParams) WithTimeout ¶
func (o *CreateProjectParams) WithTimeout(timeout time.Duration) *CreateProjectParams
WithTimeout adds the timeout to the create project params
func (*CreateProjectParams) WriteToRequest ¶
func (o *CreateProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateProjectReader ¶
type CreateProjectReader struct {
// contains filtered or unexported fields
}
CreateProjectReader is a Reader for the CreateProject structure.
func (*CreateProjectReader) ReadResponse ¶
func (o *CreateProjectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteProjectConflict ¶
type DeleteProjectConflict struct {
Payload *models.ServiceErrorResponse
}
DeleteProjectConflict describes a response with status code 409, with default header values.
Conflict, when the project is in use
func NewDeleteProjectConflict ¶
func NewDeleteProjectConflict() *DeleteProjectConflict
NewDeleteProjectConflict creates a DeleteProjectConflict with default headers values
func (*DeleteProjectConflict) Error ¶
func (o *DeleteProjectConflict) Error() string
func (*DeleteProjectConflict) GetPayload ¶ added in v0.2.20
func (o *DeleteProjectConflict) GetPayload() *models.ServiceErrorResponse
type DeleteProjectForbidden ¶
type DeleteProjectForbidden struct {
Payload *models.ServiceErrorResponse
}
DeleteProjectForbidden describes a response with status code 403, with default header values.
Forbidden
func NewDeleteProjectForbidden ¶
func NewDeleteProjectForbidden() *DeleteProjectForbidden
NewDeleteProjectForbidden creates a DeleteProjectForbidden with default headers values
func (*DeleteProjectForbidden) Error ¶
func (o *DeleteProjectForbidden) Error() string
func (*DeleteProjectForbidden) GetPayload ¶ added in v0.2.20
func (o *DeleteProjectForbidden) GetPayload() *models.ServiceErrorResponse
type DeleteProjectNoContent ¶
type DeleteProjectNoContent struct { }
DeleteProjectNoContent describes a response with status code 204, with default header values.
No Content
func NewDeleteProjectNoContent ¶
func NewDeleteProjectNoContent() *DeleteProjectNoContent
NewDeleteProjectNoContent creates a DeleteProjectNoContent with default headers values
func (*DeleteProjectNoContent) Error ¶
func (o *DeleteProjectNoContent) Error() string
type DeleteProjectParams ¶
type DeleteProjectParams struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about */ APIVersion *string /* ID. The ID of the project. */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteProjectParams contains all the parameters to send to the API endpoint
for the delete project operation. Typically these are written to a http.Request.
func NewDeleteProjectParams ¶
func NewDeleteProjectParams() *DeleteProjectParams
NewDeleteProjectParams creates a new DeleteProjectParams 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 NewDeleteProjectParamsWithContext ¶
func NewDeleteProjectParamsWithContext(ctx context.Context) *DeleteProjectParams
NewDeleteProjectParamsWithContext creates a new DeleteProjectParams object with the ability to set a context for a request.
func NewDeleteProjectParamsWithHTTPClient ¶
func NewDeleteProjectParamsWithHTTPClient(client *http.Client) *DeleteProjectParams
NewDeleteProjectParamsWithHTTPClient creates a new DeleteProjectParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteProjectParamsWithTimeout ¶
func NewDeleteProjectParamsWithTimeout(timeout time.Duration) *DeleteProjectParams
NewDeleteProjectParamsWithTimeout creates a new DeleteProjectParams object with the ability to set a timeout on a request.
func (*DeleteProjectParams) SetAPIVersion ¶
func (o *DeleteProjectParams) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the delete project params
func (*DeleteProjectParams) SetContext ¶
func (o *DeleteProjectParams) SetContext(ctx context.Context)
SetContext adds the context to the delete project params
func (*DeleteProjectParams) SetDefaults ¶ added in v0.2.20
func (o *DeleteProjectParams) SetDefaults()
SetDefaults hydrates default values in the delete project params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteProjectParams) SetHTTPClient ¶
func (o *DeleteProjectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete project params
func (*DeleteProjectParams) SetID ¶
func (o *DeleteProjectParams) SetID(id string)
SetID adds the id to the delete project params
func (*DeleteProjectParams) SetTimeout ¶
func (o *DeleteProjectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete project params
func (*DeleteProjectParams) WithAPIVersion ¶
func (o *DeleteProjectParams) WithAPIVersion(aPIVersion *string) *DeleteProjectParams
WithAPIVersion adds the aPIVersion to the delete project params
func (*DeleteProjectParams) WithContext ¶
func (o *DeleteProjectParams) WithContext(ctx context.Context) *DeleteProjectParams
WithContext adds the context to the delete project params
func (*DeleteProjectParams) WithDefaults ¶ added in v0.2.20
func (o *DeleteProjectParams) WithDefaults() *DeleteProjectParams
WithDefaults hydrates default values in the delete project params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteProjectParams) WithHTTPClient ¶
func (o *DeleteProjectParams) WithHTTPClient(client *http.Client) *DeleteProjectParams
WithHTTPClient adds the HTTPClient to the delete project params
func (*DeleteProjectParams) WithID ¶
func (o *DeleteProjectParams) WithID(id string) *DeleteProjectParams
WithID adds the id to the delete project params
func (*DeleteProjectParams) WithTimeout ¶
func (o *DeleteProjectParams) WithTimeout(timeout time.Duration) *DeleteProjectParams
WithTimeout adds the timeout to the delete project params
func (*DeleteProjectParams) WriteToRequest ¶
func (o *DeleteProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteProjectReader ¶
type DeleteProjectReader struct {
// contains filtered or unexported fields
}
DeleteProjectReader is a Reader for the DeleteProject structure.
func (*DeleteProjectReader) ReadResponse ¶
func (o *DeleteProjectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetProjectForbidden ¶
type GetProjectForbidden struct {
Payload *models.ServiceErrorResponse
}
GetProjectForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetProjectForbidden ¶
func NewGetProjectForbidden() *GetProjectForbidden
NewGetProjectForbidden creates a GetProjectForbidden with default headers values
func (*GetProjectForbidden) Error ¶
func (o *GetProjectForbidden) Error() string
func (*GetProjectForbidden) GetPayload ¶ added in v0.2.20
func (o *GetProjectForbidden) GetPayload() *models.ServiceErrorResponse
type GetProjectNotFound ¶
GetProjectNotFound describes a response with status code 404, with default header values.
Not Found
func NewGetProjectNotFound ¶
func NewGetProjectNotFound() *GetProjectNotFound
NewGetProjectNotFound creates a GetProjectNotFound with default headers values
func (*GetProjectNotFound) Error ¶
func (o *GetProjectNotFound) Error() string
func (*GetProjectNotFound) GetPayload ¶ added in v0.2.9
func (o *GetProjectNotFound) GetPayload() *models.Error
type GetProjectOK ¶
GetProjectOK describes a response with status code 200, with default header values.
successful operation
func NewGetProjectOK ¶
func NewGetProjectOK() *GetProjectOK
NewGetProjectOK creates a GetProjectOK with default headers values
func (*GetProjectOK) Error ¶
func (o *GetProjectOK) Error() string
func (*GetProjectOK) GetPayload ¶
func (o *GetProjectOK) GetPayload() *models.Project
type GetProjectParams ¶
type GetProjectParams struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about */ APIVersion *string /* ID. The ID of the project. */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetProjectParams contains all the parameters to send to the API endpoint
for the get project operation. Typically these are written to a http.Request.
func NewGetProjectParams ¶
func NewGetProjectParams() *GetProjectParams
NewGetProjectParams creates a new GetProjectParams 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 NewGetProjectParamsWithContext ¶
func NewGetProjectParamsWithContext(ctx context.Context) *GetProjectParams
NewGetProjectParamsWithContext creates a new GetProjectParams object with the ability to set a context for a request.
func NewGetProjectParamsWithHTTPClient ¶
func NewGetProjectParamsWithHTTPClient(client *http.Client) *GetProjectParams
NewGetProjectParamsWithHTTPClient creates a new GetProjectParams object with the ability to set a custom HTTPClient for a request.
func NewGetProjectParamsWithTimeout ¶
func NewGetProjectParamsWithTimeout(timeout time.Duration) *GetProjectParams
NewGetProjectParamsWithTimeout creates a new GetProjectParams object with the ability to set a timeout on a request.
func (*GetProjectParams) SetAPIVersion ¶
func (o *GetProjectParams) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the get project params
func (*GetProjectParams) SetContext ¶
func (o *GetProjectParams) SetContext(ctx context.Context)
SetContext adds the context to the get project params
func (*GetProjectParams) SetDefaults ¶ added in v0.2.20
func (o *GetProjectParams) SetDefaults()
SetDefaults hydrates default values in the get project params (not the query body).
All values with no default are reset to their zero value.
func (*GetProjectParams) SetHTTPClient ¶
func (o *GetProjectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get project params
func (*GetProjectParams) SetID ¶
func (o *GetProjectParams) SetID(id string)
SetID adds the id to the get project params
func (*GetProjectParams) SetTimeout ¶
func (o *GetProjectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get project params
func (*GetProjectParams) WithAPIVersion ¶
func (o *GetProjectParams) WithAPIVersion(aPIVersion *string) *GetProjectParams
WithAPIVersion adds the aPIVersion to the get project params
func (*GetProjectParams) WithContext ¶
func (o *GetProjectParams) WithContext(ctx context.Context) *GetProjectParams
WithContext adds the context to the get project params
func (*GetProjectParams) WithDefaults ¶ added in v0.2.20
func (o *GetProjectParams) WithDefaults() *GetProjectParams
WithDefaults hydrates default values in the get project params (not the query body).
All values with no default are reset to their zero value.
func (*GetProjectParams) WithHTTPClient ¶
func (o *GetProjectParams) WithHTTPClient(client *http.Client) *GetProjectParams
WithHTTPClient adds the HTTPClient to the get project params
func (*GetProjectParams) WithID ¶
func (o *GetProjectParams) WithID(id string) *GetProjectParams
WithID adds the id to the get project params
func (*GetProjectParams) WithTimeout ¶
func (o *GetProjectParams) WithTimeout(timeout time.Duration) *GetProjectParams
WithTimeout adds the timeout to the get project params
func (*GetProjectParams) WriteToRequest ¶
func (o *GetProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetProjectReader ¶
type GetProjectReader struct {
// contains filtered or unexported fields
}
GetProjectReader is a Reader for the GetProject structure.
func (*GetProjectReader) ReadResponse ¶
func (o *GetProjectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetProjectResourceMetadataForbidden ¶
type GetProjectResourceMetadataForbidden struct {
Payload *models.ServiceErrorResponse
}
GetProjectResourceMetadataForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetProjectResourceMetadataForbidden ¶
func NewGetProjectResourceMetadataForbidden() *GetProjectResourceMetadataForbidden
NewGetProjectResourceMetadataForbidden creates a GetProjectResourceMetadataForbidden with default headers values
func (*GetProjectResourceMetadataForbidden) Error ¶
func (o *GetProjectResourceMetadataForbidden) Error() string
func (*GetProjectResourceMetadataForbidden) GetPayload ¶ added in v0.2.20
func (o *GetProjectResourceMetadataForbidden) GetPayload() *models.ServiceErrorResponse
type GetProjectResourceMetadataNotFound ¶
GetProjectResourceMetadataNotFound describes a response with status code 404, with default header values.
Not Found
func NewGetProjectResourceMetadataNotFound ¶
func NewGetProjectResourceMetadataNotFound() *GetProjectResourceMetadataNotFound
NewGetProjectResourceMetadataNotFound creates a GetProjectResourceMetadataNotFound with default headers values
func (*GetProjectResourceMetadataNotFound) Error ¶
func (o *GetProjectResourceMetadataNotFound) Error() string
func (*GetProjectResourceMetadataNotFound) GetPayload ¶ added in v0.2.9
func (o *GetProjectResourceMetadataNotFound) GetPayload() *models.Error
type GetProjectResourceMetadataOK ¶
type GetProjectResourceMetadataOK struct {
Payload *models.ProjectResourceMetadata
}
GetProjectResourceMetadataOK describes a response with status code 200, with default header values.
successful operation
func NewGetProjectResourceMetadataOK ¶
func NewGetProjectResourceMetadataOK() *GetProjectResourceMetadataOK
NewGetProjectResourceMetadataOK creates a GetProjectResourceMetadataOK with default headers values
func (*GetProjectResourceMetadataOK) Error ¶
func (o *GetProjectResourceMetadataOK) Error() string
func (*GetProjectResourceMetadataOK) GetPayload ¶
func (o *GetProjectResourceMetadataOK) GetPayload() *models.ProjectResourceMetadata
type GetProjectResourceMetadataParams ¶
type GetProjectResourceMetadataParams struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about */ APIVersion *string /* ID. The ID of the project. */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetProjectResourceMetadataParams contains all the parameters to send to the API endpoint
for the get project resource metadata operation. Typically these are written to a http.Request.
func NewGetProjectResourceMetadataParams ¶
func NewGetProjectResourceMetadataParams() *GetProjectResourceMetadataParams
NewGetProjectResourceMetadataParams creates a new GetProjectResourceMetadataParams 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 NewGetProjectResourceMetadataParamsWithContext ¶
func NewGetProjectResourceMetadataParamsWithContext(ctx context.Context) *GetProjectResourceMetadataParams
NewGetProjectResourceMetadataParamsWithContext creates a new GetProjectResourceMetadataParams object with the ability to set a context for a request.
func NewGetProjectResourceMetadataParamsWithHTTPClient ¶
func NewGetProjectResourceMetadataParamsWithHTTPClient(client *http.Client) *GetProjectResourceMetadataParams
NewGetProjectResourceMetadataParamsWithHTTPClient creates a new GetProjectResourceMetadataParams object with the ability to set a custom HTTPClient for a request.
func NewGetProjectResourceMetadataParamsWithTimeout ¶
func NewGetProjectResourceMetadataParamsWithTimeout(timeout time.Duration) *GetProjectResourceMetadataParams
NewGetProjectResourceMetadataParamsWithTimeout creates a new GetProjectResourceMetadataParams object with the ability to set a timeout on a request.
func (*GetProjectResourceMetadataParams) SetAPIVersion ¶
func (o *GetProjectResourceMetadataParams) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the get project resource metadata params
func (*GetProjectResourceMetadataParams) SetContext ¶
func (o *GetProjectResourceMetadataParams) SetContext(ctx context.Context)
SetContext adds the context to the get project resource metadata params
func (*GetProjectResourceMetadataParams) SetDefaults ¶ added in v0.2.20
func (o *GetProjectResourceMetadataParams) SetDefaults()
SetDefaults hydrates default values in the get project resource metadata params (not the query body).
All values with no default are reset to their zero value.
func (*GetProjectResourceMetadataParams) SetHTTPClient ¶
func (o *GetProjectResourceMetadataParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get project resource metadata params
func (*GetProjectResourceMetadataParams) SetID ¶
func (o *GetProjectResourceMetadataParams) SetID(id string)
SetID adds the id to the get project resource metadata params
func (*GetProjectResourceMetadataParams) SetTimeout ¶
func (o *GetProjectResourceMetadataParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get project resource metadata params
func (*GetProjectResourceMetadataParams) WithAPIVersion ¶
func (o *GetProjectResourceMetadataParams) WithAPIVersion(aPIVersion *string) *GetProjectResourceMetadataParams
WithAPIVersion adds the aPIVersion to the get project resource metadata params
func (*GetProjectResourceMetadataParams) WithContext ¶
func (o *GetProjectResourceMetadataParams) WithContext(ctx context.Context) *GetProjectResourceMetadataParams
WithContext adds the context to the get project resource metadata params
func (*GetProjectResourceMetadataParams) WithDefaults ¶ added in v0.2.20
func (o *GetProjectResourceMetadataParams) WithDefaults() *GetProjectResourceMetadataParams
WithDefaults hydrates default values in the get project resource metadata params (not the query body).
All values with no default are reset to their zero value.
func (*GetProjectResourceMetadataParams) WithHTTPClient ¶
func (o *GetProjectResourceMetadataParams) WithHTTPClient(client *http.Client) *GetProjectResourceMetadataParams
WithHTTPClient adds the HTTPClient to the get project resource metadata params
func (*GetProjectResourceMetadataParams) WithID ¶
func (o *GetProjectResourceMetadataParams) WithID(id string) *GetProjectResourceMetadataParams
WithID adds the id to the get project resource metadata params
func (*GetProjectResourceMetadataParams) WithTimeout ¶
func (o *GetProjectResourceMetadataParams) WithTimeout(timeout time.Duration) *GetProjectResourceMetadataParams
WithTimeout adds the timeout to the get project resource metadata params
func (*GetProjectResourceMetadataParams) WriteToRequest ¶
func (o *GetProjectResourceMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetProjectResourceMetadataReader ¶
type GetProjectResourceMetadataReader struct {
// contains filtered or unexported fields
}
GetProjectResourceMetadataReader is a Reader for the GetProjectResourceMetadata structure.
func (*GetProjectResourceMetadataReader) ReadResponse ¶
func (o *GetProjectResourceMetadataReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetProjectsForbidden ¶
type GetProjectsForbidden struct {
Payload *models.ServiceErrorResponse
}
GetProjectsForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetProjectsForbidden ¶
func NewGetProjectsForbidden() *GetProjectsForbidden
NewGetProjectsForbidden creates a GetProjectsForbidden with default headers values
func (*GetProjectsForbidden) Error ¶
func (o *GetProjectsForbidden) Error() string
func (*GetProjectsForbidden) GetPayload ¶ added in v0.2.20
func (o *GetProjectsForbidden) GetPayload() *models.ServiceErrorResponse
type GetProjectsOK ¶
type GetProjectsOK struct {
Payload *models.ProjectResult
}
GetProjectsOK describes a response with status code 200, with default header values.
successful operation
func NewGetProjectsOK ¶
func NewGetProjectsOK() *GetProjectsOK
NewGetProjectsOK creates a GetProjectsOK with default headers values
func (*GetProjectsOK) Error ¶
func (o *GetProjectsOK) Error() string
func (*GetProjectsOK) GetPayload ¶
func (o *GetProjectsOK) GetPayload() *models.ProjectResult
type GetProjectsParams ¶
type GetProjectsParams struct { /* DollarCount. Flag which when specified shows the total number of records. If the collection has a filter it shows the number of records matching the filter. */ DollarCount *bool /* DollarFilter. Filter the results by a specified predicate expression. A set of operators and functions are defined for use: Operators: eq, ne, gt, ge, lt, le, and, or, not. Functions: bool substringof(string p0, string p1) bool endswith(string p0, string p1) bool startswith(string p0, string p1) int length(string p0) int indexof(string p0, string p1) string replace(string p0, string find, string replace) string substring(string p0, int pos) string substring(string p0, int pos, int length) string tolower(string p0) string toupper(string p0) string trim(string p0) string concat(string p0, string p1) */ DollarFilter *string /* DollarOrderBy. Sorting criteria in the format: property (asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ DollarOrderBy *string /* DollarSkip. Number of records you want to skip. */ DollarSkip *int64 /* DollarTop. Number of records you want to get. */ DollarTop *int64 /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about */ APIVersion *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetProjectsParams contains all the parameters to send to the API endpoint
for the get projects operation. Typically these are written to a http.Request.
func NewGetProjectsParams ¶
func NewGetProjectsParams() *GetProjectsParams
NewGetProjectsParams creates a new GetProjectsParams 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 NewGetProjectsParamsWithContext ¶
func NewGetProjectsParamsWithContext(ctx context.Context) *GetProjectsParams
NewGetProjectsParamsWithContext creates a new GetProjectsParams object with the ability to set a context for a request.
func NewGetProjectsParamsWithHTTPClient ¶
func NewGetProjectsParamsWithHTTPClient(client *http.Client) *GetProjectsParams
NewGetProjectsParamsWithHTTPClient creates a new GetProjectsParams object with the ability to set a custom HTTPClient for a request.
func NewGetProjectsParamsWithTimeout ¶
func NewGetProjectsParamsWithTimeout(timeout time.Duration) *GetProjectsParams
NewGetProjectsParamsWithTimeout creates a new GetProjectsParams object with the ability to set a timeout on a request.
func (*GetProjectsParams) SetAPIVersion ¶
func (o *GetProjectsParams) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the get projects params
func (*GetProjectsParams) SetContext ¶
func (o *GetProjectsParams) SetContext(ctx context.Context)
SetContext adds the context to the get projects params
func (*GetProjectsParams) SetDefaults ¶ added in v0.2.20
func (o *GetProjectsParams) SetDefaults()
SetDefaults hydrates default values in the get projects params (not the query body).
All values with no default are reset to their zero value.
func (*GetProjectsParams) SetDollarCount ¶ added in v0.2.18
func (o *GetProjectsParams) SetDollarCount(dollarCount *bool)
SetDollarCount adds the dollarCount to the get projects params
func (*GetProjectsParams) SetDollarFilter ¶
func (o *GetProjectsParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the get projects params
func (*GetProjectsParams) SetDollarOrderBy ¶ added in v0.2.20
func (o *GetProjectsParams) SetDollarOrderBy(dollarOrderBy *string)
SetDollarOrderBy adds the dollarOrderBy to the get projects params
func (*GetProjectsParams) SetDollarSkip ¶ added in v0.2.18
func (o *GetProjectsParams) SetDollarSkip(dollarSkip *int64)
SetDollarSkip adds the dollarSkip to the get projects params
func (*GetProjectsParams) SetDollarTop ¶ added in v0.2.18
func (o *GetProjectsParams) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the get projects params
func (*GetProjectsParams) SetHTTPClient ¶
func (o *GetProjectsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get projects params
func (*GetProjectsParams) SetTimeout ¶
func (o *GetProjectsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get projects params
func (*GetProjectsParams) WithAPIVersion ¶
func (o *GetProjectsParams) WithAPIVersion(aPIVersion *string) *GetProjectsParams
WithAPIVersion adds the aPIVersion to the get projects params
func (*GetProjectsParams) WithContext ¶
func (o *GetProjectsParams) WithContext(ctx context.Context) *GetProjectsParams
WithContext adds the context to the get projects params
func (*GetProjectsParams) WithDefaults ¶ added in v0.2.20
func (o *GetProjectsParams) WithDefaults() *GetProjectsParams
WithDefaults hydrates default values in the get projects params (not the query body).
All values with no default are reset to their zero value.
func (*GetProjectsParams) WithDollarCount ¶ added in v0.2.18
func (o *GetProjectsParams) WithDollarCount(dollarCount *bool) *GetProjectsParams
WithDollarCount adds the dollarCount to the get projects params
func (*GetProjectsParams) WithDollarFilter ¶
func (o *GetProjectsParams) WithDollarFilter(dollarFilter *string) *GetProjectsParams
WithDollarFilter adds the dollarFilter to the get projects params
func (*GetProjectsParams) WithDollarOrderBy ¶ added in v0.2.20
func (o *GetProjectsParams) WithDollarOrderBy(dollarOrderBy *string) *GetProjectsParams
WithDollarOrderBy adds the dollarOrderBy to the get projects params
func (*GetProjectsParams) WithDollarSkip ¶ added in v0.2.18
func (o *GetProjectsParams) WithDollarSkip(dollarSkip *int64) *GetProjectsParams
WithDollarSkip adds the dollarSkip to the get projects params
func (*GetProjectsParams) WithDollarTop ¶ added in v0.2.18
func (o *GetProjectsParams) WithDollarTop(dollarTop *int64) *GetProjectsParams
WithDollarTop adds the dollarTop to the get projects params
func (*GetProjectsParams) WithHTTPClient ¶
func (o *GetProjectsParams) WithHTTPClient(client *http.Client) *GetProjectsParams
WithHTTPClient adds the HTTPClient to the get projects params
func (*GetProjectsParams) WithTimeout ¶
func (o *GetProjectsParams) WithTimeout(timeout time.Duration) *GetProjectsParams
WithTimeout adds the timeout to the get projects params
func (*GetProjectsParams) WriteToRequest ¶
func (o *GetProjectsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetProjectsReader ¶
type GetProjectsReader struct {
// contains filtered or unexported fields
}
GetProjectsReader is a Reader for the GetProjects structure.
func (*GetProjectsReader) ReadResponse ¶
func (o *GetProjectsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateProjectBadRequest ¶
UpdateProjectBadRequest describes a response with status code 400, with default header values.
Invalid Request - bad data
func NewUpdateProjectBadRequest ¶
func NewUpdateProjectBadRequest() *UpdateProjectBadRequest
NewUpdateProjectBadRequest creates a UpdateProjectBadRequest with default headers values
func (*UpdateProjectBadRequest) Error ¶
func (o *UpdateProjectBadRequest) Error() string
func (*UpdateProjectBadRequest) GetPayload ¶ added in v0.2.9
func (o *UpdateProjectBadRequest) GetPayload() *models.Error
type UpdateProjectForbidden ¶
type UpdateProjectForbidden struct {
Payload *models.ServiceErrorResponse
}
UpdateProjectForbidden describes a response with status code 403, with default header values.
Forbidden
func NewUpdateProjectForbidden ¶
func NewUpdateProjectForbidden() *UpdateProjectForbidden
NewUpdateProjectForbidden creates a UpdateProjectForbidden with default headers values
func (*UpdateProjectForbidden) Error ¶
func (o *UpdateProjectForbidden) Error() string
func (*UpdateProjectForbidden) GetPayload ¶ added in v0.2.20
func (o *UpdateProjectForbidden) GetPayload() *models.ServiceErrorResponse
type UpdateProjectOK ¶
UpdateProjectOK describes a response with status code 200, with default header values.
successful operation
func NewUpdateProjectOK ¶
func NewUpdateProjectOK() *UpdateProjectOK
NewUpdateProjectOK creates a UpdateProjectOK with default headers values
func (*UpdateProjectOK) Error ¶
func (o *UpdateProjectOK) Error() string
func (*UpdateProjectOK) GetPayload ¶
func (o *UpdateProjectOK) GetPayload() *models.Project
type UpdateProjectParams ¶
type UpdateProjectParams struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about */ APIVersion *string /* Body. Project specification */ Body *models.ProjectSpecification /* ID. The ID of the project. */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateProjectParams contains all the parameters to send to the API endpoint
for the update project operation. Typically these are written to a http.Request.
func NewUpdateProjectParams ¶
func NewUpdateProjectParams() *UpdateProjectParams
NewUpdateProjectParams creates a new UpdateProjectParams 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 NewUpdateProjectParamsWithContext ¶
func NewUpdateProjectParamsWithContext(ctx context.Context) *UpdateProjectParams
NewUpdateProjectParamsWithContext creates a new UpdateProjectParams object with the ability to set a context for a request.
func NewUpdateProjectParamsWithHTTPClient ¶
func NewUpdateProjectParamsWithHTTPClient(client *http.Client) *UpdateProjectParams
NewUpdateProjectParamsWithHTTPClient creates a new UpdateProjectParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateProjectParamsWithTimeout ¶
func NewUpdateProjectParamsWithTimeout(timeout time.Duration) *UpdateProjectParams
NewUpdateProjectParamsWithTimeout creates a new UpdateProjectParams object with the ability to set a timeout on a request.
func (*UpdateProjectParams) SetAPIVersion ¶
func (o *UpdateProjectParams) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the update project params
func (*UpdateProjectParams) SetBody ¶
func (o *UpdateProjectParams) SetBody(body *models.ProjectSpecification)
SetBody adds the body to the update project params
func (*UpdateProjectParams) SetContext ¶
func (o *UpdateProjectParams) SetContext(ctx context.Context)
SetContext adds the context to the update project params
func (*UpdateProjectParams) SetDefaults ¶ added in v0.2.20
func (o *UpdateProjectParams) SetDefaults()
SetDefaults hydrates default values in the update project params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateProjectParams) SetHTTPClient ¶
func (o *UpdateProjectParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update project params
func (*UpdateProjectParams) SetID ¶
func (o *UpdateProjectParams) SetID(id string)
SetID adds the id to the update project params
func (*UpdateProjectParams) SetTimeout ¶
func (o *UpdateProjectParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update project params
func (*UpdateProjectParams) WithAPIVersion ¶
func (o *UpdateProjectParams) WithAPIVersion(aPIVersion *string) *UpdateProjectParams
WithAPIVersion adds the aPIVersion to the update project params
func (*UpdateProjectParams) WithBody ¶
func (o *UpdateProjectParams) WithBody(body *models.ProjectSpecification) *UpdateProjectParams
WithBody adds the body to the update project params
func (*UpdateProjectParams) WithContext ¶
func (o *UpdateProjectParams) WithContext(ctx context.Context) *UpdateProjectParams
WithContext adds the context to the update project params
func (*UpdateProjectParams) WithDefaults ¶ added in v0.2.20
func (o *UpdateProjectParams) WithDefaults() *UpdateProjectParams
WithDefaults hydrates default values in the update project params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateProjectParams) WithHTTPClient ¶
func (o *UpdateProjectParams) WithHTTPClient(client *http.Client) *UpdateProjectParams
WithHTTPClient adds the HTTPClient to the update project params
func (*UpdateProjectParams) WithID ¶
func (o *UpdateProjectParams) WithID(id string) *UpdateProjectParams
WithID adds the id to the update project params
func (*UpdateProjectParams) WithTimeout ¶
func (o *UpdateProjectParams) WithTimeout(timeout time.Duration) *UpdateProjectParams
WithTimeout adds the timeout to the update project params
func (*UpdateProjectParams) WriteToRequest ¶
func (o *UpdateProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateProjectReader ¶
type UpdateProjectReader struct {
// contains filtered or unexported fields
}
UpdateProjectReader is a Reader for the UpdateProject structure.
func (*UpdateProjectReader) ReadResponse ¶
func (o *UpdateProjectReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateProjectResourceMetadataBadRequest ¶
UpdateProjectResourceMetadataBadRequest describes a response with status code 400, with default header values.
Invalid Request - bad data
func NewUpdateProjectResourceMetadataBadRequest ¶
func NewUpdateProjectResourceMetadataBadRequest() *UpdateProjectResourceMetadataBadRequest
NewUpdateProjectResourceMetadataBadRequest creates a UpdateProjectResourceMetadataBadRequest with default headers values
func (*UpdateProjectResourceMetadataBadRequest) Error ¶
func (o *UpdateProjectResourceMetadataBadRequest) Error() string
func (*UpdateProjectResourceMetadataBadRequest) GetPayload ¶ added in v0.2.9
func (o *UpdateProjectResourceMetadataBadRequest) GetPayload() *models.Error
type UpdateProjectResourceMetadataForbidden ¶
type UpdateProjectResourceMetadataForbidden struct {
Payload *models.ServiceErrorResponse
}
UpdateProjectResourceMetadataForbidden describes a response with status code 403, with default header values.
Forbidden
func NewUpdateProjectResourceMetadataForbidden ¶
func NewUpdateProjectResourceMetadataForbidden() *UpdateProjectResourceMetadataForbidden
NewUpdateProjectResourceMetadataForbidden creates a UpdateProjectResourceMetadataForbidden with default headers values
func (*UpdateProjectResourceMetadataForbidden) Error ¶
func (o *UpdateProjectResourceMetadataForbidden) Error() string
func (*UpdateProjectResourceMetadataForbidden) GetPayload ¶ added in v0.2.20
func (o *UpdateProjectResourceMetadataForbidden) GetPayload() *models.ServiceErrorResponse
type UpdateProjectResourceMetadataOK ¶
UpdateProjectResourceMetadataOK describes a response with status code 200, with default header values.
successful operation
func NewUpdateProjectResourceMetadataOK ¶
func NewUpdateProjectResourceMetadataOK() *UpdateProjectResourceMetadataOK
NewUpdateProjectResourceMetadataOK creates a UpdateProjectResourceMetadataOK with default headers values
func (*UpdateProjectResourceMetadataOK) Error ¶
func (o *UpdateProjectResourceMetadataOK) Error() string
func (*UpdateProjectResourceMetadataOK) GetPayload ¶
func (o *UpdateProjectResourceMetadataOK) GetPayload() *models.Project
type UpdateProjectResourceMetadataParams ¶
type UpdateProjectResourceMetadataParams struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about */ APIVersion *string /* Body. Project specification */ Body *models.ProjectResourceMetadataSpecification /* ID. The ID of the project. */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateProjectResourceMetadataParams contains all the parameters to send to the API endpoint
for the update project resource metadata operation. Typically these are written to a http.Request.
func NewUpdateProjectResourceMetadataParams ¶
func NewUpdateProjectResourceMetadataParams() *UpdateProjectResourceMetadataParams
NewUpdateProjectResourceMetadataParams creates a new UpdateProjectResourceMetadataParams 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 NewUpdateProjectResourceMetadataParamsWithContext ¶
func NewUpdateProjectResourceMetadataParamsWithContext(ctx context.Context) *UpdateProjectResourceMetadataParams
NewUpdateProjectResourceMetadataParamsWithContext creates a new UpdateProjectResourceMetadataParams object with the ability to set a context for a request.
func NewUpdateProjectResourceMetadataParamsWithHTTPClient ¶
func NewUpdateProjectResourceMetadataParamsWithHTTPClient(client *http.Client) *UpdateProjectResourceMetadataParams
NewUpdateProjectResourceMetadataParamsWithHTTPClient creates a new UpdateProjectResourceMetadataParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateProjectResourceMetadataParamsWithTimeout ¶
func NewUpdateProjectResourceMetadataParamsWithTimeout(timeout time.Duration) *UpdateProjectResourceMetadataParams
NewUpdateProjectResourceMetadataParamsWithTimeout creates a new UpdateProjectResourceMetadataParams object with the ability to set a timeout on a request.
func (*UpdateProjectResourceMetadataParams) SetAPIVersion ¶
func (o *UpdateProjectResourceMetadataParams) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the update project resource metadata params
func (*UpdateProjectResourceMetadataParams) SetBody ¶
func (o *UpdateProjectResourceMetadataParams) SetBody(body *models.ProjectResourceMetadataSpecification)
SetBody adds the body to the update project resource metadata params
func (*UpdateProjectResourceMetadataParams) SetContext ¶
func (o *UpdateProjectResourceMetadataParams) SetContext(ctx context.Context)
SetContext adds the context to the update project resource metadata params
func (*UpdateProjectResourceMetadataParams) SetDefaults ¶ added in v0.2.20
func (o *UpdateProjectResourceMetadataParams) SetDefaults()
SetDefaults hydrates default values in the update project resource metadata params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateProjectResourceMetadataParams) SetHTTPClient ¶
func (o *UpdateProjectResourceMetadataParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update project resource metadata params
func (*UpdateProjectResourceMetadataParams) SetID ¶
func (o *UpdateProjectResourceMetadataParams) SetID(id string)
SetID adds the id to the update project resource metadata params
func (*UpdateProjectResourceMetadataParams) SetTimeout ¶
func (o *UpdateProjectResourceMetadataParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update project resource metadata params
func (*UpdateProjectResourceMetadataParams) WithAPIVersion ¶
func (o *UpdateProjectResourceMetadataParams) WithAPIVersion(aPIVersion *string) *UpdateProjectResourceMetadataParams
WithAPIVersion adds the aPIVersion to the update project resource metadata params
func (*UpdateProjectResourceMetadataParams) WithBody ¶
func (o *UpdateProjectResourceMetadataParams) WithBody(body *models.ProjectResourceMetadataSpecification) *UpdateProjectResourceMetadataParams
WithBody adds the body to the update project resource metadata params
func (*UpdateProjectResourceMetadataParams) WithContext ¶
func (o *UpdateProjectResourceMetadataParams) WithContext(ctx context.Context) *UpdateProjectResourceMetadataParams
WithContext adds the context to the update project resource metadata params
func (*UpdateProjectResourceMetadataParams) WithDefaults ¶ added in v0.2.20
func (o *UpdateProjectResourceMetadataParams) WithDefaults() *UpdateProjectResourceMetadataParams
WithDefaults hydrates default values in the update project resource metadata params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateProjectResourceMetadataParams) WithHTTPClient ¶
func (o *UpdateProjectResourceMetadataParams) WithHTTPClient(client *http.Client) *UpdateProjectResourceMetadataParams
WithHTTPClient adds the HTTPClient to the update project resource metadata params
func (*UpdateProjectResourceMetadataParams) WithID ¶
func (o *UpdateProjectResourceMetadataParams) WithID(id string) *UpdateProjectResourceMetadataParams
WithID adds the id to the update project resource metadata params
func (*UpdateProjectResourceMetadataParams) WithTimeout ¶
func (o *UpdateProjectResourceMetadataParams) WithTimeout(timeout time.Duration) *UpdateProjectResourceMetadataParams
WithTimeout adds the timeout to the update project resource metadata params
func (*UpdateProjectResourceMetadataParams) WriteToRequest ¶
func (o *UpdateProjectResourceMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateProjectResourceMetadataReader ¶
type UpdateProjectResourceMetadataReader struct {
// contains filtered or unexported fields
}
UpdateProjectResourceMetadataReader is a Reader for the UpdateProjectResourceMetadata structure.
func (*UpdateProjectResourceMetadataReader) ReadResponse ¶
func (o *UpdateProjectResourceMetadataReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- create_project_parameters.go
- create_project_responses.go
- delete_project_parameters.go
- delete_project_responses.go
- get_project_parameters.go
- get_project_resource_metadata_parameters.go
- get_project_resource_metadata_responses.go
- get_project_responses.go
- get_projects_parameters.go
- get_projects_responses.go
- project_client.go
- update_project_parameters.go
- update_project_resource_metadata_parameters.go
- update_project_resource_metadata_responses.go
- update_project_responses.go