project

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: Apache-2.0 Imports: 10 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 New

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

New creates a new project API client.

func (*Client) CreateProject

func (a *Client) CreateProject(params *CreateProjectParams) (*CreateProjectCreated, error)

CreateProject creates project

Create project

func (*Client) DeleteProject

func (a *Client) DeleteProject(params *DeleteProjectParams) (*DeleteProjectNoContent, error)

DeleteProject deletes project

Delete project with a given id

func (*Client) GetProject

func (a *Client) GetProject(params *GetProjectParams) (*GetProjectOK, error)

GetProject gets project

Get project with a given id

func (*Client) GetProjectResourceMetadata

func (a *Client) GetProjectResourceMetadata(params *GetProjectResourceMetadataParams) (*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) (*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) (*UpdateProjectOK, error)

UpdateProject updates project

Update project

func (*Client) UpdateProjectResourceMetadata

func (a *Client) UpdateProjectResourceMetadata(params *UpdateProjectResourceMetadataParams) (*UpdateProjectResourceMetadataOK, error)

UpdateProjectResourceMetadata updates project resource metadata

Update project resource metadata by a given project id

type CreateProjectBadRequest

type CreateProjectBadRequest struct {
}

CreateProjectBadRequest handles this case 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

type CreateProjectCreated

type CreateProjectCreated struct {
	Payload *models.Project
}

CreateProjectCreated handles this case 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 {
}

CreateProjectForbidden handles this case 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

type CreateProjectParams

type CreateProjectParams struct {

	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information please 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 values initialized.

func NewCreateProjectParamsWithContext

func NewCreateProjectParamsWithContext(ctx context.Context) *CreateProjectParams

NewCreateProjectParamsWithContext creates a new CreateProjectParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 {
}

DeleteProjectConflict handles this case 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

type DeleteProjectForbidden

type DeleteProjectForbidden struct {
}

DeleteProjectForbidden handles this case 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

type DeleteProjectNoContent

type DeleteProjectNoContent struct {
}

DeleteProjectNoContent handles this case 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 please 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 values initialized.

func NewDeleteProjectParamsWithContext

func NewDeleteProjectParamsWithContext(ctx context.Context) *DeleteProjectParams

NewDeleteProjectParamsWithContext creates a new DeleteProjectParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 {
}

GetProjectForbidden handles this case 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

type GetProjectNotFound

type GetProjectNotFound struct {
}

GetProjectNotFound handles this case 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

type GetProjectOK

type GetProjectOK struct {
	Payload *models.Project
}

GetProjectOK handles this case 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 please 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 values initialized.

func NewGetProjectParamsWithContext

func NewGetProjectParamsWithContext(ctx context.Context) *GetProjectParams

NewGetProjectParamsWithContext creates a new GetProjectParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 {
}

GetProjectResourceMetadataForbidden handles this case with default header values.

Forbidden

func NewGetProjectResourceMetadataForbidden

func NewGetProjectResourceMetadataForbidden() *GetProjectResourceMetadataForbidden

NewGetProjectResourceMetadataForbidden creates a GetProjectResourceMetadataForbidden with default headers values

func (*GetProjectResourceMetadataForbidden) Error

type GetProjectResourceMetadataNotFound

type GetProjectResourceMetadataNotFound struct {
}

GetProjectResourceMetadataNotFound handles this case with default header values.

Not Found

func NewGetProjectResourceMetadataNotFound

func NewGetProjectResourceMetadataNotFound() *GetProjectResourceMetadataNotFound

NewGetProjectResourceMetadataNotFound creates a GetProjectResourceMetadataNotFound with default headers values

func (*GetProjectResourceMetadataNotFound) Error

type GetProjectResourceMetadataOK

type GetProjectResourceMetadataOK struct {
	Payload *models.ProjectResourceMetadata
}

GetProjectResourceMetadataOK handles this case 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 please 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 values initialized.

func NewGetProjectResourceMetadataParamsWithContext

func NewGetProjectResourceMetadataParamsWithContext(ctx context.Context) *GetProjectResourceMetadataParams

NewGetProjectResourceMetadataParamsWithContext creates a new GetProjectResourceMetadataParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 {
}

GetProjectsForbidden handles this case 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

type GetProjectsOK

type GetProjectsOK struct {
	Payload *models.ProjectResult
}

GetProjectsOK handles this case 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 {

	/*DollarFilter
	  Add a filter to return limited results

	*/
	DollarFilter *string
	/*APIVersion
	  The version of the API in yyyy-MM-dd format (UTC). For versioning information please 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 values initialized.

func NewGetProjectsParamsWithContext

func NewGetProjectsParamsWithContext(ctx context.Context) *GetProjectsParams

NewGetProjectsParamsWithContext creates a new GetProjectsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) SetDollarFilter

func (o *GetProjectsParams) SetDollarFilter(dollarFilter *string)

SetDollarFilter adds the dollarFilter 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) WithDollarFilter

func (o *GetProjectsParams) WithDollarFilter(dollarFilter *string) *GetProjectsParams

WithDollarFilter adds the dollarFilter 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 {
}

UpdateProjectBadRequest handles this case 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

type UpdateProjectForbidden

type UpdateProjectForbidden struct {
}

UpdateProjectForbidden handles this case 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

type UpdateProjectOK

type UpdateProjectOK struct {
	Payload *models.Project
}

UpdateProjectOK handles this case 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 please 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 values initialized.

func NewUpdateProjectParamsWithContext

func NewUpdateProjectParamsWithContext(ctx context.Context) *UpdateProjectParams

NewUpdateProjectParamsWithContext creates a new UpdateProjectParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 {
}

UpdateProjectResourceMetadataBadRequest handles this case with default header values.

Invalid Request - bad data

func NewUpdateProjectResourceMetadataBadRequest

func NewUpdateProjectResourceMetadataBadRequest() *UpdateProjectResourceMetadataBadRequest

NewUpdateProjectResourceMetadataBadRequest creates a UpdateProjectResourceMetadataBadRequest with default headers values

func (*UpdateProjectResourceMetadataBadRequest) Error

type UpdateProjectResourceMetadataForbidden

type UpdateProjectResourceMetadataForbidden struct {
}

UpdateProjectResourceMetadataForbidden handles this case with default header values.

Forbidden

func NewUpdateProjectResourceMetadataForbidden

func NewUpdateProjectResourceMetadataForbidden() *UpdateProjectResourceMetadataForbidden

NewUpdateProjectResourceMetadataForbidden creates a UpdateProjectResourceMetadataForbidden with default headers values

func (*UpdateProjectResourceMetadataForbidden) Error

type UpdateProjectResourceMetadataOK

type UpdateProjectResourceMetadataOK struct {
	Payload *models.Project
}

UpdateProjectResourceMetadataOK handles this case 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 please 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 values initialized.

func NewUpdateProjectResourceMetadataParamsWithContext

func NewUpdateProjectResourceMetadataParamsWithContext(ctx context.Context) *UpdateProjectResourceMetadataParams

NewUpdateProjectResourceMetadataParamsWithContext creates a new UpdateProjectResourceMetadataParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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