Documentation
¶
Index ¶
- Constants
- type Client
- func (a *Client) CreateProject(params *CreateProjectParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateProjectCreated, error)
- func (a *Client) DeleteProject(params *DeleteProjectParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteProjectNoContent, error)
- func (a *Client) GetProject(params *GetProjectParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetProjectOK, error)
- func (a *Client) GetProjects(params *GetProjectsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetProjectsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateProject(params *UpdateProjectParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateProjectOK, error)
- type ClientOption
- type ClientService
- type CreateProjectBody
- type CreateProjectCreated
- func (o *CreateProjectCreated) Code() int
- func (o *CreateProjectCreated) Error() string
- func (o *CreateProjectCreated) GetData() []renderer.ResponseData
- func (o *CreateProjectCreated) GetPayload() *CreateProjectCreatedBody
- func (o *CreateProjectCreated) IsClientError() bool
- func (o *CreateProjectCreated) IsCode(code int) bool
- func (o *CreateProjectCreated) IsRedirect() bool
- func (o *CreateProjectCreated) IsServerError() bool
- func (o *CreateProjectCreated) IsSuccess() bool
- func (o *CreateProjectCreated) String() string
- type CreateProjectCreatedBody
- func (o *CreateProjectCreatedBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateProjectCreatedBody) MarshalBinary() ([]byte, error)
- func (o *CreateProjectCreatedBody) UnmarshalBinary(b []byte) error
- func (o *CreateProjectCreatedBody) Validate(formats strfmt.Registry) error
- type CreateProjectParams
- func (o *CreateProjectParams) SetBody(body CreateProjectBody)
- 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) WithBody(body CreateProjectBody) *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 CreateProjectParamsBodyData
- func (o *CreateProjectParamsBodyData) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateProjectParamsBodyData) MarshalBinary() ([]byte, error)
- func (o *CreateProjectParamsBodyData) UnmarshalBinary(b []byte) error
- func (o *CreateProjectParamsBodyData) Validate(formats strfmt.Registry) error
- type CreateProjectParamsBodyDataAttributes
- func (o *CreateProjectParamsBodyDataAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateProjectParamsBodyDataAttributes) MarshalBinary() ([]byte, error)
- func (o *CreateProjectParamsBodyDataAttributes) UnmarshalBinary(b []byte) error
- func (o *CreateProjectParamsBodyDataAttributes) Validate(formats strfmt.Registry) error
- type CreateProjectReader
- type DeleteProjectNoContent
- func (o *DeleteProjectNoContent) Code() int
- func (o *DeleteProjectNoContent) Error() string
- func (o *DeleteProjectNoContent) IsClientError() bool
- func (o *DeleteProjectNoContent) IsCode(code int) bool
- func (o *DeleteProjectNoContent) IsRedirect() bool
- func (o *DeleteProjectNoContent) IsServerError() bool
- func (o *DeleteProjectNoContent) IsSuccess() bool
- func (o *DeleteProjectNoContent) Render()
- func (o *DeleteProjectNoContent) String() string
- type DeleteProjectParams
- func (o *DeleteProjectParams) SetContext(ctx context.Context)
- func (o *DeleteProjectParams) SetDefaults()
- func (o *DeleteProjectParams) SetHTTPClient(client *http.Client)
- func (o *DeleteProjectParams) SetIDOrSlug(iDOrSlug string)
- func (o *DeleteProjectParams) SetTimeout(timeout time.Duration)
- func (o *DeleteProjectParams) WithContext(ctx context.Context) *DeleteProjectParams
- func (o *DeleteProjectParams) WithDefaults() *DeleteProjectParams
- func (o *DeleteProjectParams) WithHTTPClient(client *http.Client) *DeleteProjectParams
- func (o *DeleteProjectParams) WithIDOrSlug(iDOrSlug string) *DeleteProjectParams
- func (o *DeleteProjectParams) WithTimeout(timeout time.Duration) *DeleteProjectParams
- func (o *DeleteProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteProjectReader
- type GetProjectOK
- func (o *GetProjectOK) Code() int
- func (o *GetProjectOK) Error() string
- func (o *GetProjectOK) GetData() []renderer.ResponseData
- func (o *GetProjectOK) GetPayload() *GetProjectOKBody
- func (o *GetProjectOK) IsClientError() bool
- func (o *GetProjectOK) IsCode(code int) bool
- func (o *GetProjectOK) IsRedirect() bool
- func (o *GetProjectOK) IsServerError() bool
- func (o *GetProjectOK) IsSuccess() bool
- func (o *GetProjectOK) String() string
- type GetProjectOKBody
- type GetProjectParams
- func (o *GetProjectParams) SetContext(ctx context.Context)
- func (o *GetProjectParams) SetDefaults()
- func (o *GetProjectParams) SetExtraFieldsProjects(extraFieldsProjects *string)
- func (o *GetProjectParams) SetHTTPClient(client *http.Client)
- func (o *GetProjectParams) SetIDOrSlug(iDOrSlug string)
- func (o *GetProjectParams) SetTimeout(timeout time.Duration)
- func (o *GetProjectParams) WithContext(ctx context.Context) *GetProjectParams
- func (o *GetProjectParams) WithDefaults() *GetProjectParams
- func (o *GetProjectParams) WithExtraFieldsProjects(extraFieldsProjects *string) *GetProjectParams
- func (o *GetProjectParams) WithHTTPClient(client *http.Client) *GetProjectParams
- func (o *GetProjectParams) WithIDOrSlug(iDOrSlug string) *GetProjectParams
- func (o *GetProjectParams) WithTimeout(timeout time.Duration) *GetProjectParams
- func (o *GetProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProjectReader
- type GetProjectsOK
- func (o *GetProjectsOK) Code() int
- func (o *GetProjectsOK) Error() string
- func (o *GetProjectsOK) GetData() []renderer.ResponseData
- func (o *GetProjectsOK) GetPayload() *models.Projects
- func (o *GetProjectsOK) IsClientError() bool
- func (o *GetProjectsOK) IsCode(code int) bool
- func (o *GetProjectsOK) IsRedirect() bool
- func (o *GetProjectsOK) IsServerError() bool
- func (o *GetProjectsOK) IsSuccess() bool
- func (o *GetProjectsOK) String() string
- type GetProjectsParams
- func (o *GetProjectsParams) SetContext(ctx context.Context)
- func (o *GetProjectsParams) SetDefaults()
- func (o *GetProjectsParams) SetExtraFieldsProjects(extraFieldsProjects *string)
- func (o *GetProjectsParams) SetFilterBillingType(filterBillingType *string)
- func (o *GetProjectsParams) SetFilterDescription(filterDescription *string)
- func (o *GetProjectsParams) SetFilterEnvironment(filterEnvironment *string)
- func (o *GetProjectsParams) SetFilterName(filterName *string)
- func (o *GetProjectsParams) SetFilterSlug(filterSlug *string)
- func (o *GetProjectsParams) SetFilterTags(filterTags *string)
- func (o *GetProjectsParams) SetHTTPClient(client *http.Client)
- func (o *GetProjectsParams) SetTimeout(timeout time.Duration)
- func (o *GetProjectsParams) WithContext(ctx context.Context) *GetProjectsParams
- func (o *GetProjectsParams) WithDefaults() *GetProjectsParams
- func (o *GetProjectsParams) WithExtraFieldsProjects(extraFieldsProjects *string) *GetProjectsParams
- func (o *GetProjectsParams) WithFilterBillingType(filterBillingType *string) *GetProjectsParams
- func (o *GetProjectsParams) WithFilterDescription(filterDescription *string) *GetProjectsParams
- func (o *GetProjectsParams) WithFilterEnvironment(filterEnvironment *string) *GetProjectsParams
- func (o *GetProjectsParams) WithFilterName(filterName *string) *GetProjectsParams
- func (o *GetProjectsParams) WithFilterSlug(filterSlug *string) *GetProjectsParams
- func (o *GetProjectsParams) WithFilterTags(filterTags *string) *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 UpdateProjectBody
- type UpdateProjectForbidden
- func (o *UpdateProjectForbidden) Code() int
- func (o *UpdateProjectForbidden) Error() string
- func (o *UpdateProjectForbidden) GetPayload() *models.ErrorObject
- func (o *UpdateProjectForbidden) IsClientError() bool
- func (o *UpdateProjectForbidden) IsCode(code int) bool
- func (o *UpdateProjectForbidden) IsRedirect() bool
- func (o *UpdateProjectForbidden) IsServerError() bool
- func (o *UpdateProjectForbidden) IsSuccess() bool
- func (o *UpdateProjectForbidden) String() string
- type UpdateProjectOK
- func (o *UpdateProjectOK) Code() int
- func (o *UpdateProjectOK) Error() string
- func (o *UpdateProjectOK) GetData() []renderer.ResponseData
- func (o *UpdateProjectOK) GetPayload() *UpdateProjectOKBody
- func (o *UpdateProjectOK) IsClientError() bool
- func (o *UpdateProjectOK) IsCode(code int) bool
- func (o *UpdateProjectOK) IsRedirect() bool
- func (o *UpdateProjectOK) IsServerError() bool
- func (o *UpdateProjectOK) IsSuccess() bool
- func (o *UpdateProjectOK) String() string
- type UpdateProjectOKBody
- type UpdateProjectParams
- func (o *UpdateProjectParams) SetBody(body UpdateProjectBody)
- func (o *UpdateProjectParams) SetContext(ctx context.Context)
- func (o *UpdateProjectParams) SetDefaults()
- func (o *UpdateProjectParams) SetHTTPClient(client *http.Client)
- func (o *UpdateProjectParams) SetIDOrSlug(iDOrSlug string)
- func (o *UpdateProjectParams) SetTimeout(timeout time.Duration)
- func (o *UpdateProjectParams) WithBody(body UpdateProjectBody) *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) WithIDOrSlug(iDOrSlug string) *UpdateProjectParams
- func (o *UpdateProjectParams) WithTimeout(timeout time.Duration) *UpdateProjectParams
- func (o *UpdateProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateProjectParamsBodyData
- func (o *UpdateProjectParamsBodyData) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UpdateProjectParamsBodyData) MarshalBinary() ([]byte, error)
- func (o *UpdateProjectParamsBodyData) UnmarshalBinary(b []byte) error
- func (o *UpdateProjectParamsBodyData) Validate(formats strfmt.Registry) error
- type UpdateProjectParamsBodyDataAttributes
- func (o *UpdateProjectParamsBodyDataAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *UpdateProjectParamsBodyDataAttributes) MarshalBinary() ([]byte, error)
- func (o *UpdateProjectParamsBodyDataAttributes) UnmarshalBinary(b []byte) error
- func (o *UpdateProjectParamsBodyDataAttributes) Validate(formats strfmt.Registry) error
- type UpdateProjectReader
Constants ¶
const ( // CreateProjectParamsBodyDataAttributesEnvironmentDevelopment captures enum value "Development" CreateProjectParamsBodyDataAttributesEnvironmentDevelopment string = "Development" // CreateProjectParamsBodyDataAttributesEnvironmentStaging captures enum value "Staging" CreateProjectParamsBodyDataAttributesEnvironmentStaging string = "Staging" // CreateProjectParamsBodyDataAttributesEnvironmentProduction captures enum value "Production" CreateProjectParamsBodyDataAttributesEnvironmentProduction string = "Production" )
const ( // CreateProjectParamsBodyDataAttributesProvisioningTypeReserved captures enum value "reserved" CreateProjectParamsBodyDataAttributesProvisioningTypeReserved string = "reserved" // CreateProjectParamsBodyDataAttributesProvisioningTypeOnDemand captures enum value "on_demand" CreateProjectParamsBodyDataAttributesProvisioningTypeOnDemand string = "on_demand" )
const ( // UpdateProjectParamsBodyDataAttributesEnvironmentDevelopment captures enum value "Development" UpdateProjectParamsBodyDataAttributesEnvironmentDevelopment string = "Development" // UpdateProjectParamsBodyDataAttributesEnvironmentStaging captures enum value "Staging" UpdateProjectParamsBodyDataAttributesEnvironmentStaging string = "Staging" // UpdateProjectParamsBodyDataAttributesEnvironmentProduction captures enum value "Production" UpdateProjectParamsBodyDataAttributesEnvironmentProduction string = "Production" )
const ( // CreateProjectParamsBodyDataTypeProjects captures enum value "projects" CreateProjectParamsBodyDataTypeProjects string = "projects" )
const ( // UpdateProjectParamsBodyDataTypeProjects captures enum value "projects" UpdateProjectParamsBodyDataTypeProjects string = "projects" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for projects API
func (*Client) CreateProject ¶
func (a *Client) CreateProject(params *CreateProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateProjectCreated, error)
CreateProject creates a project
func (*Client) DeleteProject ¶
func (a *Client) DeleteProject(params *DeleteProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProjectNoContent, error)
DeleteProject deletes a project
func (*Client) GetProject ¶
func (a *Client) GetProject(params *GetProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectOK, error)
GetProject retrieves a project
func (*Client) GetProjects ¶
func (a *Client) GetProjects(params *GetProjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectsOK, error)
GetProjects lists all projects
Returns a list of all projects for the current team
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, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateProjectOK, error)
UpdateProject updates a project
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface {
CreateProject(params *CreateProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateProjectCreated, error)
DeleteProject(params *DeleteProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteProjectNoContent, error)
GetProject(params *GetProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectOK, error)
GetProjects(params *GetProjectsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectsOK, error)
UpdateProject(params *UpdateProjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateProjectOK, 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 projects API client.
type CreateProjectBody ¶
type CreateProjectBody struct {
// data
Data *CreateProjectParamsBodyData `json:"data,omitempty"`
}
CreateProjectBody create project body swagger:model CreateProjectBody
func (*CreateProjectBody) ContextValidate ¶
ContextValidate validate this create project body based on the context it is used
func (*CreateProjectBody) MarshalBinary ¶
func (o *CreateProjectBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateProjectBody) UnmarshalBinary ¶
func (o *CreateProjectBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateProjectCreated ¶
type CreateProjectCreated struct {
Payload *CreateProjectCreatedBody
}
CreateProjectCreated describes a response with status code 201, with default header values.
Success
func NewCreateProjectCreated ¶
func NewCreateProjectCreated() *CreateProjectCreated
NewCreateProjectCreated creates a CreateProjectCreated with default headers values
func (*CreateProjectCreated) Code ¶
func (o *CreateProjectCreated) Code() int
Code gets the status code for the create project created response
func (*CreateProjectCreated) Error ¶
func (o *CreateProjectCreated) Error() string
func (*CreateProjectCreated) GetData ¶
func (o *CreateProjectCreated) GetData() []renderer.ResponseData
func (*CreateProjectCreated) GetPayload ¶
func (o *CreateProjectCreated) GetPayload() *CreateProjectCreatedBody
func (*CreateProjectCreated) IsClientError ¶
func (o *CreateProjectCreated) IsClientError() bool
IsClientError returns true when this create project created response has a 4xx status code
func (*CreateProjectCreated) IsCode ¶
func (o *CreateProjectCreated) IsCode(code int) bool
IsCode returns true when this create project created response a status code equal to that given
func (*CreateProjectCreated) IsRedirect ¶
func (o *CreateProjectCreated) IsRedirect() bool
IsRedirect returns true when this create project created response has a 3xx status code
func (*CreateProjectCreated) IsServerError ¶
func (o *CreateProjectCreated) IsServerError() bool
IsServerError returns true when this create project created response has a 5xx status code
func (*CreateProjectCreated) IsSuccess ¶
func (o *CreateProjectCreated) IsSuccess() bool
IsSuccess returns true when this create project created response has a 2xx status code
func (*CreateProjectCreated) String ¶
func (o *CreateProjectCreated) String() string
type CreateProjectCreatedBody ¶
CreateProjectCreatedBody create project created body swagger:model CreateProjectCreatedBody
func (*CreateProjectCreatedBody) ContextValidate ¶
func (o *CreateProjectCreatedBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this create project created body based on the context it is used
func (*CreateProjectCreatedBody) MarshalBinary ¶
func (o *CreateProjectCreatedBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateProjectCreatedBody) UnmarshalBinary ¶
func (o *CreateProjectCreatedBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateProjectParams ¶
type CreateProjectParams struct {
// Body.
Body CreateProjectBody
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) SetBody ¶
func (o *CreateProjectParams) SetBody(body CreateProjectBody)
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 ¶
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) WithBody ¶
func (o *CreateProjectParams) WithBody(body CreateProjectBody) *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 ¶
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 CreateProjectParamsBodyData ¶
type CreateProjectParamsBodyData struct {
// attributes
Attributes *CreateProjectParamsBodyDataAttributes `json:"attributes,omitempty"`
// type
// Required: true
// Enum: [projects]
Type *string `json:"type"`
}
CreateProjectParamsBodyData create project params body data swagger:model CreateProjectParamsBodyData
func (*CreateProjectParamsBodyData) ContextValidate ¶
func (o *CreateProjectParamsBodyData) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this create project params body data based on the context it is used
func (*CreateProjectParamsBodyData) MarshalBinary ¶
func (o *CreateProjectParamsBodyData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateProjectParamsBodyData) UnmarshalBinary ¶
func (o *CreateProjectParamsBodyData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateProjectParamsBodyDataAttributes ¶
type CreateProjectParamsBodyDataAttributes struct {
Description string `json:"description,omitempty"`
Environment string `json:"environment,omitempty"`
Name string `json:"name"`
ProvisioningType string `json:"provisioning_type"`
}
CreateProjectParamsBodyDataAttributes create project params body data attributes swagger:model CreateProjectParamsBodyDataAttributes
func (*CreateProjectParamsBodyDataAttributes) ContextValidate ¶
func (o *CreateProjectParamsBodyDataAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create project params body data attributes based on context it is used
func (*CreateProjectParamsBodyDataAttributes) MarshalBinary ¶
func (o *CreateProjectParamsBodyDataAttributes) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateProjectParamsBodyDataAttributes) UnmarshalBinary ¶
func (o *CreateProjectParamsBodyDataAttributes) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 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) Code ¶
func (o *DeleteProjectNoContent) Code() int
Code gets the status code for the delete project no content response
func (*DeleteProjectNoContent) Error ¶
func (o *DeleteProjectNoContent) Error() string
func (*DeleteProjectNoContent) IsClientError ¶
func (o *DeleteProjectNoContent) IsClientError() bool
IsClientError returns true when this delete project no content response has a 4xx status code
func (*DeleteProjectNoContent) IsCode ¶
func (o *DeleteProjectNoContent) IsCode(code int) bool
IsCode returns true when this delete project no content response a status code equal to that given
func (*DeleteProjectNoContent) IsRedirect ¶
func (o *DeleteProjectNoContent) IsRedirect() bool
IsRedirect returns true when this delete project no content response has a 3xx status code
func (*DeleteProjectNoContent) IsServerError ¶
func (o *DeleteProjectNoContent) IsServerError() bool
IsServerError returns true when this delete project no content response has a 5xx status code
func (*DeleteProjectNoContent) IsSuccess ¶
func (o *DeleteProjectNoContent) IsSuccess() bool
IsSuccess returns true when this delete project no content response has a 2xx status code
func (*DeleteProjectNoContent) Render ¶
func (o *DeleteProjectNoContent) Render()
func (*DeleteProjectNoContent) String ¶
func (o *DeleteProjectNoContent) String() string
type DeleteProjectParams ¶
type DeleteProjectParams struct {
IDOrSlug string `json:"id_or_slug"`
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) SetContext ¶
func (o *DeleteProjectParams) SetContext(ctx context.Context)
SetContext adds the context to the delete project params
func (*DeleteProjectParams) SetDefaults ¶
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) SetIDOrSlug ¶
func (o *DeleteProjectParams) SetIDOrSlug(iDOrSlug string)
SetIDOrSlug adds the idOrSlug 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) WithContext ¶
func (o *DeleteProjectParams) WithContext(ctx context.Context) *DeleteProjectParams
WithContext adds the context to the delete project params
func (*DeleteProjectParams) WithDefaults ¶
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) WithIDOrSlug ¶
func (o *DeleteProjectParams) WithIDOrSlug(iDOrSlug string) *DeleteProjectParams
WithIDOrSlug adds the iDOrSlug 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 GetProjectOK ¶
type GetProjectOK struct {
Payload *GetProjectOKBody
}
GetProjectOK describes a response with status code 200, with default header values.
Success
func NewGetProjectOK ¶
func NewGetProjectOK() *GetProjectOK
NewGetProjectOK creates a GetProjectOK with default headers values
func (*GetProjectOK) Code ¶
func (o *GetProjectOK) Code() int
Code gets the status code for the get project o k response
func (*GetProjectOK) Error ¶
func (o *GetProjectOK) Error() string
func (*GetProjectOK) GetData ¶
func (o *GetProjectOK) GetData() []renderer.ResponseData
func (*GetProjectOK) GetPayload ¶
func (o *GetProjectOK) GetPayload() *GetProjectOKBody
func (*GetProjectOK) IsClientError ¶
func (o *GetProjectOK) IsClientError() bool
IsClientError returns true when this get project o k response has a 4xx status code
func (*GetProjectOK) IsCode ¶
func (o *GetProjectOK) IsCode(code int) bool
IsCode returns true when this get project o k response a status code equal to that given
func (*GetProjectOK) IsRedirect ¶
func (o *GetProjectOK) IsRedirect() bool
IsRedirect returns true when this get project o k response has a 3xx status code
func (*GetProjectOK) IsServerError ¶
func (o *GetProjectOK) IsServerError() bool
IsServerError returns true when this get project o k response has a 5xx status code
func (*GetProjectOK) IsSuccess ¶
func (o *GetProjectOK) IsSuccess() bool
IsSuccess returns true when this get project o k response has a 2xx status code
func (*GetProjectOK) String ¶
func (o *GetProjectOK) String() string
type GetProjectOKBody ¶
GetProjectOKBody get project o k body swagger:model GetProjectOKBody
func (*GetProjectOKBody) ContextValidate ¶
ContextValidate validate this get project o k body based on the context it is used
func (*GetProjectOKBody) MarshalBinary ¶
func (o *GetProjectOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetProjectOKBody) UnmarshalBinary ¶
func (o *GetProjectOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetProjectParams ¶
type GetProjectParams struct {
/* ExtraFieldsProjects.
The `last_renewal_date` and `next_renewal_date` are provided as extra attributes that show previous and future billing cycle dates. To request it, just set `extra_fields[projects]=last_renewal_date,next_renewal_date` in the query string.
*/
ExtraFieldsProjects *string
/* IDOrSlug.
The project ID or Slug
*/
IDOrSlug 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) SetContext ¶
func (o *GetProjectParams) SetContext(ctx context.Context)
SetContext adds the context to the get project params
func (*GetProjectParams) SetDefaults ¶
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) SetExtraFieldsProjects ¶
func (o *GetProjectParams) SetExtraFieldsProjects(extraFieldsProjects *string)
SetExtraFieldsProjects adds the extraFieldsProjects 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) SetIDOrSlug ¶
func (o *GetProjectParams) SetIDOrSlug(iDOrSlug string)
SetIDOrSlug adds the idOrSlug 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) WithContext ¶
func (o *GetProjectParams) WithContext(ctx context.Context) *GetProjectParams
WithContext adds the context to the get project params
func (*GetProjectParams) WithDefaults ¶
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) WithExtraFieldsProjects ¶
func (o *GetProjectParams) WithExtraFieldsProjects(extraFieldsProjects *string) *GetProjectParams
WithExtraFieldsProjects adds the extraFieldsProjects 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) WithIDOrSlug ¶
func (o *GetProjectParams) WithIDOrSlug(iDOrSlug string) *GetProjectParams
WithIDOrSlug adds the iDOrSlug 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 GetProjectsOK ¶
GetProjectsOK describes a response with status code 200, with default header values.
Success
func NewGetProjectsOK ¶
func NewGetProjectsOK() *GetProjectsOK
NewGetProjectsOK creates a GetProjectsOK with default headers values
func (*GetProjectsOK) Code ¶
func (o *GetProjectsOK) Code() int
Code gets the status code for the get projects o k response
func (*GetProjectsOK) Error ¶
func (o *GetProjectsOK) Error() string
func (*GetProjectsOK) GetData ¶
func (o *GetProjectsOK) GetData() []renderer.ResponseData
func (*GetProjectsOK) GetPayload ¶
func (o *GetProjectsOK) GetPayload() *models.Projects
func (*GetProjectsOK) IsClientError ¶
func (o *GetProjectsOK) IsClientError() bool
IsClientError returns true when this get projects o k response has a 4xx status code
func (*GetProjectsOK) IsCode ¶
func (o *GetProjectsOK) IsCode(code int) bool
IsCode returns true when this get projects o k response a status code equal to that given
func (*GetProjectsOK) IsRedirect ¶
func (o *GetProjectsOK) IsRedirect() bool
IsRedirect returns true when this get projects o k response has a 3xx status code
func (*GetProjectsOK) IsServerError ¶
func (o *GetProjectsOK) IsServerError() bool
IsServerError returns true when this get projects o k response has a 5xx status code
func (*GetProjectsOK) IsSuccess ¶
func (o *GetProjectsOK) IsSuccess() bool
IsSuccess returns true when this get projects o k response has a 2xx status code
func (*GetProjectsOK) String ¶
func (o *GetProjectsOK) String() string
type GetProjectsParams ¶
type GetProjectsParams struct {
/* ExtraFieldsProjects.
The `last_renewal_date` and `next_renewal_date` are provided as extra attributes that show previous and future billing cycle dates. To request it, just set `extra_fields[projects]=last_renewal_date,next_renewal_date` in the query string.
*/
ExtraFieldsProjects *string
/* FilterBillingType.
The billing type to filter by
*/
FilterBillingType *string
/* FilterDescription.
The project description to filter by
*/
FilterDescription *string
/* FilterEnvironment.
The environment to filter by
*/
FilterEnvironment *string
/* FilterName.
The project name to filter by
*/
FilterName *string
/* FilterSlug.
The project slug to filter by
*/
FilterSlug *string
FilterTags *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) SetContext ¶
func (o *GetProjectsParams) SetContext(ctx context.Context)
SetContext adds the context to the get projects params
func (*GetProjectsParams) SetDefaults ¶
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) SetExtraFieldsProjects ¶
func (o *GetProjectsParams) SetExtraFieldsProjects(extraFieldsProjects *string)
SetExtraFieldsProjects adds the extraFieldsProjects to the get projects params
func (*GetProjectsParams) SetFilterBillingType ¶
func (o *GetProjectsParams) SetFilterBillingType(filterBillingType *string)
SetFilterBillingType adds the filterBillingType to the get projects params
func (*GetProjectsParams) SetFilterDescription ¶
func (o *GetProjectsParams) SetFilterDescription(filterDescription *string)
SetFilterDescription adds the filterDescription to the get projects params
func (*GetProjectsParams) SetFilterEnvironment ¶
func (o *GetProjectsParams) SetFilterEnvironment(filterEnvironment *string)
SetFilterEnvironment adds the filterEnvironment to the get projects params
func (*GetProjectsParams) SetFilterName ¶
func (o *GetProjectsParams) SetFilterName(filterName *string)
SetFilterName adds the filterName to the get projects params
func (*GetProjectsParams) SetFilterSlug ¶
func (o *GetProjectsParams) SetFilterSlug(filterSlug *string)
SetFilterSlug adds the filterSlug to the get projects params
func (*GetProjectsParams) SetFilterTags ¶
func (o *GetProjectsParams) SetFilterTags(filterTags *string)
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) WithContext ¶
func (o *GetProjectsParams) WithContext(ctx context.Context) *GetProjectsParams
WithContext adds the context to the get projects params
func (*GetProjectsParams) WithDefaults ¶
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) WithExtraFieldsProjects ¶
func (o *GetProjectsParams) WithExtraFieldsProjects(extraFieldsProjects *string) *GetProjectsParams
WithExtraFieldsProjects adds the extraFieldsProjects to the get projects params
func (*GetProjectsParams) WithFilterBillingType ¶
func (o *GetProjectsParams) WithFilterBillingType(filterBillingType *string) *GetProjectsParams
WithFilterBillingType adds the filterBillingType to the get projects params
func (*GetProjectsParams) WithFilterDescription ¶
func (o *GetProjectsParams) WithFilterDescription(filterDescription *string) *GetProjectsParams
WithFilterDescription adds the filterDescription to the get projects params
func (*GetProjectsParams) WithFilterEnvironment ¶
func (o *GetProjectsParams) WithFilterEnvironment(filterEnvironment *string) *GetProjectsParams
WithFilterEnvironment adds the filterEnvironment to the get projects params
func (*GetProjectsParams) WithFilterName ¶
func (o *GetProjectsParams) WithFilterName(filterName *string) *GetProjectsParams
WithFilterName adds the filterName to the get projects params
func (*GetProjectsParams) WithFilterSlug ¶
func (o *GetProjectsParams) WithFilterSlug(filterSlug *string) *GetProjectsParams
WithFilterSlug adds the filterSlug to the get projects params
func (*GetProjectsParams) WithFilterTags ¶
func (o *GetProjectsParams) WithFilterTags(filterTags *string) *GetProjectsParams
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 UpdateProjectBody ¶
type UpdateProjectBody struct {
// data
// Required: true
Data *UpdateProjectParamsBodyData `json:"data"`
}
UpdateProjectBody update project body swagger:model UpdateProjectBody
func (*UpdateProjectBody) ContextValidate ¶
ContextValidate validate this update project body based on the context it is used
func (*UpdateProjectBody) MarshalBinary ¶
func (o *UpdateProjectBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateProjectBody) UnmarshalBinary ¶
func (o *UpdateProjectBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateProjectForbidden ¶
type UpdateProjectForbidden struct {
Payload *models.ErrorObject
}
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) Code ¶
func (o *UpdateProjectForbidden) Code() int
Code gets the status code for the update project forbidden response
func (*UpdateProjectForbidden) Error ¶
func (o *UpdateProjectForbidden) Error() string
func (*UpdateProjectForbidden) GetPayload ¶
func (o *UpdateProjectForbidden) GetPayload() *models.ErrorObject
func (*UpdateProjectForbidden) IsClientError ¶
func (o *UpdateProjectForbidden) IsClientError() bool
IsClientError returns true when this update project forbidden response has a 4xx status code
func (*UpdateProjectForbidden) IsCode ¶
func (o *UpdateProjectForbidden) IsCode(code int) bool
IsCode returns true when this update project forbidden response a status code equal to that given
func (*UpdateProjectForbidden) IsRedirect ¶
func (o *UpdateProjectForbidden) IsRedirect() bool
IsRedirect returns true when this update project forbidden response has a 3xx status code
func (*UpdateProjectForbidden) IsServerError ¶
func (o *UpdateProjectForbidden) IsServerError() bool
IsServerError returns true when this update project forbidden response has a 5xx status code
func (*UpdateProjectForbidden) IsSuccess ¶
func (o *UpdateProjectForbidden) IsSuccess() bool
IsSuccess returns true when this update project forbidden response has a 2xx status code
func (*UpdateProjectForbidden) String ¶
func (o *UpdateProjectForbidden) String() string
type UpdateProjectOK ¶
type UpdateProjectOK struct {
Payload *UpdateProjectOKBody
}
UpdateProjectOK describes a response with status code 200, with default header values.
Success
func NewUpdateProjectOK ¶
func NewUpdateProjectOK() *UpdateProjectOK
NewUpdateProjectOK creates a UpdateProjectOK with default headers values
func (*UpdateProjectOK) Code ¶
func (o *UpdateProjectOK) Code() int
Code gets the status code for the update project o k response
func (*UpdateProjectOK) Error ¶
func (o *UpdateProjectOK) Error() string
func (*UpdateProjectOK) GetData ¶
func (o *UpdateProjectOK) GetData() []renderer.ResponseData
func (*UpdateProjectOK) GetPayload ¶
func (o *UpdateProjectOK) GetPayload() *UpdateProjectOKBody
func (*UpdateProjectOK) IsClientError ¶
func (o *UpdateProjectOK) IsClientError() bool
IsClientError returns true when this update project o k response has a 4xx status code
func (*UpdateProjectOK) IsCode ¶
func (o *UpdateProjectOK) IsCode(code int) bool
IsCode returns true when this update project o k response a status code equal to that given
func (*UpdateProjectOK) IsRedirect ¶
func (o *UpdateProjectOK) IsRedirect() bool
IsRedirect returns true when this update project o k response has a 3xx status code
func (*UpdateProjectOK) IsServerError ¶
func (o *UpdateProjectOK) IsServerError() bool
IsServerError returns true when this update project o k response has a 5xx status code
func (*UpdateProjectOK) IsSuccess ¶
func (o *UpdateProjectOK) IsSuccess() bool
IsSuccess returns true when this update project o k response has a 2xx status code
func (*UpdateProjectOK) String ¶
func (o *UpdateProjectOK) String() string
type UpdateProjectOKBody ¶
UpdateProjectOKBody update project o k body swagger:model UpdateProjectOKBody
func (*UpdateProjectOKBody) ContextValidate ¶
ContextValidate validate this update project o k body based on the context it is used
func (*UpdateProjectOKBody) MarshalBinary ¶
func (o *UpdateProjectOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateProjectOKBody) UnmarshalBinary ¶
func (o *UpdateProjectOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateProjectParams ¶
type UpdateProjectParams struct {
Body UpdateProjectBody
IDOrSlug string `json:"id_or_slug,omitempty"`
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) SetBody ¶
func (o *UpdateProjectParams) SetBody(body UpdateProjectBody)
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 ¶
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) SetIDOrSlug ¶
func (o *UpdateProjectParams) SetIDOrSlug(iDOrSlug string)
SetIDOrSlug adds the idOrSlug 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) WithBody ¶
func (o *UpdateProjectParams) WithBody(body UpdateProjectBody) *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 ¶
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) WithIDOrSlug ¶
func (o *UpdateProjectParams) WithIDOrSlug(iDOrSlug string) *UpdateProjectParams
WithIDOrSlug adds the iDOrSlug 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 UpdateProjectParamsBodyData ¶
type UpdateProjectParamsBodyData struct {
Attributes *UpdateProjectParamsBodyDataAttributes `json:"attributes,omitempty"`
ID string `json:"id"`
Type string `json:"type"`
}
UpdateProjectParamsBodyData update project params body data swagger:model UpdateProjectParamsBodyData
func (*UpdateProjectParamsBodyData) ContextValidate ¶
func (o *UpdateProjectParamsBodyData) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this update project params body data based on the context it is used
func (*UpdateProjectParamsBodyData) MarshalBinary ¶
func (o *UpdateProjectParamsBodyData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateProjectParamsBodyData) UnmarshalBinary ¶
func (o *UpdateProjectParamsBodyData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateProjectParamsBodyDataAttributes ¶
type UpdateProjectParamsBodyDataAttributes struct {
// bandwidth alert
BandwidthAlert bool `json:"bandwidth_alert,omitempty"`
// description
Description string `json:"description,omitempty"`
// environment
// Enum: [Development Staging Production]
Environment string `json:"environment,omitempty"`
// name
Name string `json:"name,omitempty"`
Tags []string `json:"tags,omitempty"`
}
UpdateProjectParamsBodyDataAttributes update project params body data attributes swagger:model UpdateProjectParamsBodyDataAttributes
func (*UpdateProjectParamsBodyDataAttributes) ContextValidate ¶
func (o *UpdateProjectParamsBodyDataAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this update project params body data attributes based on context it is used
func (*UpdateProjectParamsBodyDataAttributes) MarshalBinary ¶
func (o *UpdateProjectParamsBodyDataAttributes) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateProjectParamsBodyDataAttributes) UnmarshalBinary ¶
func (o *UpdateProjectParamsBodyDataAttributes) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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.