project

package
v0.2.20 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for 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

type CreateProjectBadRequest struct {
	Payload *models.Error
}
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

type CreateProjectCreated struct {
	Payload *models.Project
}
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

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

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

WithBody adds the body to the create project params

func (*CreateProjectParams) WithContext

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

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

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

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

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

type GetProjectNotFound

type GetProjectNotFound struct {
	Payload *models.Error
}
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

type GetProjectOK struct {
	Payload *models.Project
}
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 (*GetProjectResourceMetadataForbidden) GetPayload added in v0.2.20

type GetProjectResourceMetadataNotFound

type GetProjectResourceMetadataNotFound struct {
	Payload *models.Error
}
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 (*GetProjectResourceMetadataNotFound) GetPayload added in v0.2.9

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 (*GetProjectResourceMetadataOK) GetPayload

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

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

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

WithAPIVersion adds the aPIVersion to the get project resource metadata params

func (*GetProjectResourceMetadataParams) WithContext

WithContext adds the context to the get project resource metadata params

func (*GetProjectResourceMetadataParams) WithDefaults added in v0.2.20

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

WithHTTPClient adds the HTTPClient to the get project resource metadata params

func (*GetProjectResourceMetadataParams) WithID

WithID adds the id to the get project resource metadata params

func (*GetProjectResourceMetadataParams) WithTimeout

WithTimeout adds the timeout to the get project resource metadata params

func (*GetProjectResourceMetadataParams) WriteToRequest

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

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

type UpdateProjectBadRequest struct {
	Payload *models.Error
}
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

type UpdateProjectOK

type UpdateProjectOK struct {
	Payload *models.Project
}
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

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

WithBody adds the body to the update project params

func (*UpdateProjectParams) WithContext

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

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

type UpdateProjectResourceMetadataBadRequest struct {
	Payload *models.Error
}
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 (*UpdateProjectResourceMetadataBadRequest) GetPayload added in v0.2.9

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 (*UpdateProjectResourceMetadataForbidden) GetPayload added in v0.2.20

type UpdateProjectResourceMetadataOK

type UpdateProjectResourceMetadataOK struct {
	Payload *models.Project
}
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 (*UpdateProjectResourceMetadataOK) GetPayload

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

SetBody adds the body to the update project resource metadata params

func (*UpdateProjectResourceMetadataParams) SetContext

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

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

WithAPIVersion adds the aPIVersion to the update project resource metadata params

func (*UpdateProjectResourceMetadataParams) WithBody

WithBody adds the body to the update project resource metadata params

func (*UpdateProjectResourceMetadataParams) WithContext

WithContext adds the context to the update project resource metadata params

func (*UpdateProjectResourceMetadataParams) WithDefaults added in v0.2.20

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

WithHTTPClient adds the HTTPClient to the update project resource metadata params

func (*UpdateProjectResourceMetadataParams) WithID

WithID adds the id to the update project resource metadata params

func (*UpdateProjectResourceMetadataParams) WithTimeout

WithTimeout adds the timeout to the update project resource metadata params

func (*UpdateProjectResourceMetadataParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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