Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateCustomName(params *CreateCustomNameParams, opts ...ClientOption) (*CreateCustomNameCreated, error)
- func (a *Client) DeleteCustomname(params *DeleteCustomnameParams, opts ...ClientOption) (*DeleteCustomnameNoContent, error)
- func (a *Client) GetCustomName(params *GetCustomNameParams, opts ...ClientOption) (*GetCustomNameOK, error)
- func (a *Client) GetCustomNameByProjectID(params *GetCustomNameByProjectIDParams, opts ...ClientOption) (*GetCustomNameByProjectIDOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateCustomName(params *UpdateCustomNameParams, opts ...ClientOption) (*UpdateCustomNameNoContent, error)
- type ClientOption
- type ClientService
- type CreateCustomNameBadRequest
- type CreateCustomNameCreated
- type CreateCustomNameForbidden
- type CreateCustomNameNotFound
- type CreateCustomNameParams
- func NewCreateCustomNameParams() *CreateCustomNameParams
- func NewCreateCustomNameParamsWithContext(ctx context.Context) *CreateCustomNameParams
- func NewCreateCustomNameParamsWithHTTPClient(client *http.Client) *CreateCustomNameParams
- func NewCreateCustomNameParamsWithTimeout(timeout time.Duration) *CreateCustomNameParams
- func (o *CreateCustomNameParams) SetAPIVersion(aPIVersion *string)
- func (o *CreateCustomNameParams) SetBody(body *models.CustomNamingModel)
- func (o *CreateCustomNameParams) SetContext(ctx context.Context)
- func (o *CreateCustomNameParams) SetDefaults()
- func (o *CreateCustomNameParams) SetHTTPClient(client *http.Client)
- func (o *CreateCustomNameParams) SetTimeout(timeout time.Duration)
- func (o *CreateCustomNameParams) WithAPIVersion(aPIVersion *string) *CreateCustomNameParams
- func (o *CreateCustomNameParams) WithBody(body *models.CustomNamingModel) *CreateCustomNameParams
- func (o *CreateCustomNameParams) WithContext(ctx context.Context) *CreateCustomNameParams
- func (o *CreateCustomNameParams) WithDefaults() *CreateCustomNameParams
- func (o *CreateCustomNameParams) WithHTTPClient(client *http.Client) *CreateCustomNameParams
- func (o *CreateCustomNameParams) WithTimeout(timeout time.Duration) *CreateCustomNameParams
- func (o *CreateCustomNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateCustomNameReader
- type DeleteCustomnameForbidden
- type DeleteCustomnameNoContent
- type DeleteCustomnameNotFound
- type DeleteCustomnameParams
- func NewDeleteCustomnameParams() *DeleteCustomnameParams
- func NewDeleteCustomnameParamsWithContext(ctx context.Context) *DeleteCustomnameParams
- func NewDeleteCustomnameParamsWithHTTPClient(client *http.Client) *DeleteCustomnameParams
- func NewDeleteCustomnameParamsWithTimeout(timeout time.Duration) *DeleteCustomnameParams
- func (o *DeleteCustomnameParams) SetAPIVersion(aPIVersion *string)
- func (o *DeleteCustomnameParams) SetContext(ctx context.Context)
- func (o *DeleteCustomnameParams) SetDefaults()
- func (o *DeleteCustomnameParams) SetHTTPClient(client *http.Client)
- func (o *DeleteCustomnameParams) SetID(id string)
- func (o *DeleteCustomnameParams) SetTimeout(timeout time.Duration)
- func (o *DeleteCustomnameParams) WithAPIVersion(aPIVersion *string) *DeleteCustomnameParams
- func (o *DeleteCustomnameParams) WithContext(ctx context.Context) *DeleteCustomnameParams
- func (o *DeleteCustomnameParams) WithDefaults() *DeleteCustomnameParams
- func (o *DeleteCustomnameParams) WithHTTPClient(client *http.Client) *DeleteCustomnameParams
- func (o *DeleteCustomnameParams) WithID(id string) *DeleteCustomnameParams
- func (o *DeleteCustomnameParams) WithTimeout(timeout time.Duration) *DeleteCustomnameParams
- func (o *DeleteCustomnameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteCustomnameReader
- type GetCustomNameBadRequest
- type GetCustomNameByProjectIDBadRequest
- type GetCustomNameByProjectIDForbidden
- type GetCustomNameByProjectIDNotFound
- type GetCustomNameByProjectIDOK
- type GetCustomNameByProjectIDParams
- func NewGetCustomNameByProjectIDParams() *GetCustomNameByProjectIDParams
- func NewGetCustomNameByProjectIDParamsWithContext(ctx context.Context) *GetCustomNameByProjectIDParams
- func NewGetCustomNameByProjectIDParamsWithHTTPClient(client *http.Client) *GetCustomNameByProjectIDParams
- func NewGetCustomNameByProjectIDParamsWithTimeout(timeout time.Duration) *GetCustomNameByProjectIDParams
- func (o *GetCustomNameByProjectIDParams) SetAPIVersion(aPIVersion *string)
- func (o *GetCustomNameByProjectIDParams) SetContext(ctx context.Context)
- func (o *GetCustomNameByProjectIDParams) SetDefaults()
- func (o *GetCustomNameByProjectIDParams) SetHTTPClient(client *http.Client)
- func (o *GetCustomNameByProjectIDParams) SetID(id string)
- func (o *GetCustomNameByProjectIDParams) SetTimeout(timeout time.Duration)
- func (o *GetCustomNameByProjectIDParams) WithAPIVersion(aPIVersion *string) *GetCustomNameByProjectIDParams
- func (o *GetCustomNameByProjectIDParams) WithContext(ctx context.Context) *GetCustomNameByProjectIDParams
- func (o *GetCustomNameByProjectIDParams) WithDefaults() *GetCustomNameByProjectIDParams
- func (o *GetCustomNameByProjectIDParams) WithHTTPClient(client *http.Client) *GetCustomNameByProjectIDParams
- func (o *GetCustomNameByProjectIDParams) WithID(id string) *GetCustomNameByProjectIDParams
- func (o *GetCustomNameByProjectIDParams) WithTimeout(timeout time.Duration) *GetCustomNameByProjectIDParams
- func (o *GetCustomNameByProjectIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCustomNameByProjectIDReader
- type GetCustomNameForbidden
- type GetCustomNameNotFound
- type GetCustomNameOK
- type GetCustomNameParams
- func (o *GetCustomNameParams) SetAPIVersion(aPIVersion *string)
- func (o *GetCustomNameParams) SetContext(ctx context.Context)
- func (o *GetCustomNameParams) SetDefaults()
- func (o *GetCustomNameParams) SetHTTPClient(client *http.Client)
- func (o *GetCustomNameParams) SetID(id string)
- func (o *GetCustomNameParams) SetTimeout(timeout time.Duration)
- func (o *GetCustomNameParams) WithAPIVersion(aPIVersion *string) *GetCustomNameParams
- func (o *GetCustomNameParams) WithContext(ctx context.Context) *GetCustomNameParams
- func (o *GetCustomNameParams) WithDefaults() *GetCustomNameParams
- func (o *GetCustomNameParams) WithHTTPClient(client *http.Client) *GetCustomNameParams
- func (o *GetCustomNameParams) WithID(id string) *GetCustomNameParams
- func (o *GetCustomNameParams) WithTimeout(timeout time.Duration) *GetCustomNameParams
- func (o *GetCustomNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCustomNameReader
- type UpdateCustomNameBadRequest
- type UpdateCustomNameForbidden
- type UpdateCustomNameNoContent
- type UpdateCustomNameNotFound
- type UpdateCustomNameParams
- func NewUpdateCustomNameParams() *UpdateCustomNameParams
- func NewUpdateCustomNameParamsWithContext(ctx context.Context) *UpdateCustomNameParams
- func NewUpdateCustomNameParamsWithHTTPClient(client *http.Client) *UpdateCustomNameParams
- func NewUpdateCustomNameParamsWithTimeout(timeout time.Duration) *UpdateCustomNameParams
- func (o *UpdateCustomNameParams) SetAPIVersion(aPIVersion *string)
- func (o *UpdateCustomNameParams) SetBody(body *models.CustomNamingModel)
- func (o *UpdateCustomNameParams) SetContext(ctx context.Context)
- func (o *UpdateCustomNameParams) SetDefaults()
- func (o *UpdateCustomNameParams) SetHTTPClient(client *http.Client)
- func (o *UpdateCustomNameParams) SetTimeout(timeout time.Duration)
- func (o *UpdateCustomNameParams) WithAPIVersion(aPIVersion *string) *UpdateCustomNameParams
- func (o *UpdateCustomNameParams) WithBody(body *models.CustomNamingModel) *UpdateCustomNameParams
- func (o *UpdateCustomNameParams) WithContext(ctx context.Context) *UpdateCustomNameParams
- func (o *UpdateCustomNameParams) WithDefaults() *UpdateCustomNameParams
- func (o *UpdateCustomNameParams) WithHTTPClient(client *http.Client) *UpdateCustomNameParams
- func (o *UpdateCustomNameParams) WithTimeout(timeout time.Duration) *UpdateCustomNameParams
- func (o *UpdateCustomNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateCustomNameReader
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 custom naming API
func (*Client) CreateCustomName ¶
func (a *Client) CreateCustomName(params *CreateCustomNameParams, opts ...ClientOption) (*CreateCustomNameCreated, error)
CreateCustomName creates custom name
Create Custom Name
func (*Client) DeleteCustomname ¶
func (a *Client) DeleteCustomname(params *DeleteCustomnameParams, opts ...ClientOption) (*DeleteCustomnameNoContent, error)
DeleteCustomname deletes custom name
Delete custom name with a given id
func (*Client) GetCustomName ¶
func (a *Client) GetCustomName(params *GetCustomNameParams, opts ...ClientOption) (*GetCustomNameOK, error)
GetCustomName gets custom name by Id
Get Custom Name by Id
func (*Client) GetCustomNameByProjectID ¶
func (a *Client) GetCustomNameByProjectID(params *GetCustomNameByProjectIDParams, opts ...ClientOption) (*GetCustomNameByProjectIDOK, error)
GetCustomNameByProjectID gets custom names for project Id
Get Custom Names For Project Id
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateCustomName ¶
func (a *Client) UpdateCustomName(params *UpdateCustomNameParams, opts ...ClientOption) (*UpdateCustomNameNoContent, error)
UpdateCustomName updates custom name
Update custom name
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateCustomName(params *CreateCustomNameParams, opts ...ClientOption) (*CreateCustomNameCreated, error) DeleteCustomname(params *DeleteCustomnameParams, opts ...ClientOption) (*DeleteCustomnameNoContent, error) GetCustomName(params *GetCustomNameParams, opts ...ClientOption) (*GetCustomNameOK, error) GetCustomNameByProjectID(params *GetCustomNameByProjectIDParams, opts ...ClientOption) (*GetCustomNameByProjectIDOK, error) UpdateCustomName(params *UpdateCustomNameParams, opts ...ClientOption) (*UpdateCustomNameNoContent, 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 custom naming API client.
type CreateCustomNameBadRequest ¶
CreateCustomNameBadRequest describes a response with status code 400, with default header values.
Invalid Request - bad data
func NewCreateCustomNameBadRequest ¶
func NewCreateCustomNameBadRequest() *CreateCustomNameBadRequest
NewCreateCustomNameBadRequest creates a CreateCustomNameBadRequest with default headers values
func (*CreateCustomNameBadRequest) Error ¶
func (o *CreateCustomNameBadRequest) Error() string
func (*CreateCustomNameBadRequest) GetPayload ¶
func (o *CreateCustomNameBadRequest) GetPayload() *models.Error
type CreateCustomNameCreated ¶
type CreateCustomNameCreated struct {
Payload *models.CustomNaming
}
CreateCustomNameCreated describes a response with status code 201, with default header values.
successful operation
func NewCreateCustomNameCreated ¶
func NewCreateCustomNameCreated() *CreateCustomNameCreated
NewCreateCustomNameCreated creates a CreateCustomNameCreated with default headers values
func (*CreateCustomNameCreated) Error ¶
func (o *CreateCustomNameCreated) Error() string
func (*CreateCustomNameCreated) GetPayload ¶
func (o *CreateCustomNameCreated) GetPayload() *models.CustomNaming
type CreateCustomNameForbidden ¶
type CreateCustomNameForbidden struct {
Payload *models.ServiceErrorResponse
}
CreateCustomNameForbidden describes a response with status code 403, with default header values.
Forbidden
func NewCreateCustomNameForbidden ¶
func NewCreateCustomNameForbidden() *CreateCustomNameForbidden
NewCreateCustomNameForbidden creates a CreateCustomNameForbidden with default headers values
func (*CreateCustomNameForbidden) Error ¶
func (o *CreateCustomNameForbidden) Error() string
func (*CreateCustomNameForbidden) GetPayload ¶
func (o *CreateCustomNameForbidden) GetPayload() *models.ServiceErrorResponse
type CreateCustomNameNotFound ¶
CreateCustomNameNotFound describes a response with status code 404, with default header values.
Not Found
func NewCreateCustomNameNotFound ¶
func NewCreateCustomNameNotFound() *CreateCustomNameNotFound
NewCreateCustomNameNotFound creates a CreateCustomNameNotFound with default headers values
func (*CreateCustomNameNotFound) Error ¶
func (o *CreateCustomNameNotFound) Error() string
func (*CreateCustomNameNotFound) GetPayload ¶
func (o *CreateCustomNameNotFound) GetPayload() *models.Error
type CreateCustomNameParams ¶
type CreateCustomNameParams struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about */ APIVersion *string /* Body. Custom naming instance */ Body *models.CustomNamingModel Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateCustomNameParams contains all the parameters to send to the API endpoint
for the create custom name operation. Typically these are written to a http.Request.
func NewCreateCustomNameParams ¶
func NewCreateCustomNameParams() *CreateCustomNameParams
NewCreateCustomNameParams creates a new CreateCustomNameParams 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 NewCreateCustomNameParamsWithContext ¶
func NewCreateCustomNameParamsWithContext(ctx context.Context) *CreateCustomNameParams
NewCreateCustomNameParamsWithContext creates a new CreateCustomNameParams object with the ability to set a context for a request.
func NewCreateCustomNameParamsWithHTTPClient ¶
func NewCreateCustomNameParamsWithHTTPClient(client *http.Client) *CreateCustomNameParams
NewCreateCustomNameParamsWithHTTPClient creates a new CreateCustomNameParams object with the ability to set a custom HTTPClient for a request.
func NewCreateCustomNameParamsWithTimeout ¶
func NewCreateCustomNameParamsWithTimeout(timeout time.Duration) *CreateCustomNameParams
NewCreateCustomNameParamsWithTimeout creates a new CreateCustomNameParams object with the ability to set a timeout on a request.
func (*CreateCustomNameParams) SetAPIVersion ¶
func (o *CreateCustomNameParams) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the create custom name params
func (*CreateCustomNameParams) SetBody ¶
func (o *CreateCustomNameParams) SetBody(body *models.CustomNamingModel)
SetBody adds the body to the create custom name params
func (*CreateCustomNameParams) SetContext ¶
func (o *CreateCustomNameParams) SetContext(ctx context.Context)
SetContext adds the context to the create custom name params
func (*CreateCustomNameParams) SetDefaults ¶
func (o *CreateCustomNameParams) SetDefaults()
SetDefaults hydrates default values in the create custom name params (not the query body).
All values with no default are reset to their zero value.
func (*CreateCustomNameParams) SetHTTPClient ¶
func (o *CreateCustomNameParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create custom name params
func (*CreateCustomNameParams) SetTimeout ¶
func (o *CreateCustomNameParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create custom name params
func (*CreateCustomNameParams) WithAPIVersion ¶
func (o *CreateCustomNameParams) WithAPIVersion(aPIVersion *string) *CreateCustomNameParams
WithAPIVersion adds the aPIVersion to the create custom name params
func (*CreateCustomNameParams) WithBody ¶
func (o *CreateCustomNameParams) WithBody(body *models.CustomNamingModel) *CreateCustomNameParams
WithBody adds the body to the create custom name params
func (*CreateCustomNameParams) WithContext ¶
func (o *CreateCustomNameParams) WithContext(ctx context.Context) *CreateCustomNameParams
WithContext adds the context to the create custom name params
func (*CreateCustomNameParams) WithDefaults ¶
func (o *CreateCustomNameParams) WithDefaults() *CreateCustomNameParams
WithDefaults hydrates default values in the create custom name params (not the query body).
All values with no default are reset to their zero value.
func (*CreateCustomNameParams) WithHTTPClient ¶
func (o *CreateCustomNameParams) WithHTTPClient(client *http.Client) *CreateCustomNameParams
WithHTTPClient adds the HTTPClient to the create custom name params
func (*CreateCustomNameParams) WithTimeout ¶
func (o *CreateCustomNameParams) WithTimeout(timeout time.Duration) *CreateCustomNameParams
WithTimeout adds the timeout to the create custom name params
func (*CreateCustomNameParams) WriteToRequest ¶
func (o *CreateCustomNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateCustomNameReader ¶
type CreateCustomNameReader struct {
// contains filtered or unexported fields
}
CreateCustomNameReader is a Reader for the CreateCustomName structure.
func (*CreateCustomNameReader) ReadResponse ¶
func (o *CreateCustomNameReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteCustomnameForbidden ¶
type DeleteCustomnameForbidden struct {
Payload *models.ServiceErrorResponse
}
DeleteCustomnameForbidden describes a response with status code 403, with default header values.
Forbidden
func NewDeleteCustomnameForbidden ¶
func NewDeleteCustomnameForbidden() *DeleteCustomnameForbidden
NewDeleteCustomnameForbidden creates a DeleteCustomnameForbidden with default headers values
func (*DeleteCustomnameForbidden) Error ¶
func (o *DeleteCustomnameForbidden) Error() string
func (*DeleteCustomnameForbidden) GetPayload ¶
func (o *DeleteCustomnameForbidden) GetPayload() *models.ServiceErrorResponse
type DeleteCustomnameNoContent ¶
type DeleteCustomnameNoContent struct { }
DeleteCustomnameNoContent describes a response with status code 204, with default header values.
No Content
func NewDeleteCustomnameNoContent ¶
func NewDeleteCustomnameNoContent() *DeleteCustomnameNoContent
NewDeleteCustomnameNoContent creates a DeleteCustomnameNoContent with default headers values
func (*DeleteCustomnameNoContent) Error ¶
func (o *DeleteCustomnameNoContent) Error() string
type DeleteCustomnameNotFound ¶
DeleteCustomnameNotFound describes a response with status code 404, with default header values.
Not Found
func NewDeleteCustomnameNotFound ¶
func NewDeleteCustomnameNotFound() *DeleteCustomnameNotFound
NewDeleteCustomnameNotFound creates a DeleteCustomnameNotFound with default headers values
func (*DeleteCustomnameNotFound) Error ¶
func (o *DeleteCustomnameNotFound) Error() string
func (*DeleteCustomnameNotFound) GetPayload ¶
func (o *DeleteCustomnameNotFound) GetPayload() *models.Error
type DeleteCustomnameParams ¶
type DeleteCustomnameParams struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about */ APIVersion *string /* ID. The ID of the custom name. */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteCustomnameParams contains all the parameters to send to the API endpoint
for the delete customname operation. Typically these are written to a http.Request.
func NewDeleteCustomnameParams ¶
func NewDeleteCustomnameParams() *DeleteCustomnameParams
NewDeleteCustomnameParams creates a new DeleteCustomnameParams 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 NewDeleteCustomnameParamsWithContext ¶
func NewDeleteCustomnameParamsWithContext(ctx context.Context) *DeleteCustomnameParams
NewDeleteCustomnameParamsWithContext creates a new DeleteCustomnameParams object with the ability to set a context for a request.
func NewDeleteCustomnameParamsWithHTTPClient ¶
func NewDeleteCustomnameParamsWithHTTPClient(client *http.Client) *DeleteCustomnameParams
NewDeleteCustomnameParamsWithHTTPClient creates a new DeleteCustomnameParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteCustomnameParamsWithTimeout ¶
func NewDeleteCustomnameParamsWithTimeout(timeout time.Duration) *DeleteCustomnameParams
NewDeleteCustomnameParamsWithTimeout creates a new DeleteCustomnameParams object with the ability to set a timeout on a request.
func (*DeleteCustomnameParams) SetAPIVersion ¶
func (o *DeleteCustomnameParams) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the delete customname params
func (*DeleteCustomnameParams) SetContext ¶
func (o *DeleteCustomnameParams) SetContext(ctx context.Context)
SetContext adds the context to the delete customname params
func (*DeleteCustomnameParams) SetDefaults ¶
func (o *DeleteCustomnameParams) SetDefaults()
SetDefaults hydrates default values in the delete customname params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteCustomnameParams) SetHTTPClient ¶
func (o *DeleteCustomnameParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete customname params
func (*DeleteCustomnameParams) SetID ¶
func (o *DeleteCustomnameParams) SetID(id string)
SetID adds the id to the delete customname params
func (*DeleteCustomnameParams) SetTimeout ¶
func (o *DeleteCustomnameParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete customname params
func (*DeleteCustomnameParams) WithAPIVersion ¶
func (o *DeleteCustomnameParams) WithAPIVersion(aPIVersion *string) *DeleteCustomnameParams
WithAPIVersion adds the aPIVersion to the delete customname params
func (*DeleteCustomnameParams) WithContext ¶
func (o *DeleteCustomnameParams) WithContext(ctx context.Context) *DeleteCustomnameParams
WithContext adds the context to the delete customname params
func (*DeleteCustomnameParams) WithDefaults ¶
func (o *DeleteCustomnameParams) WithDefaults() *DeleteCustomnameParams
WithDefaults hydrates default values in the delete customname params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteCustomnameParams) WithHTTPClient ¶
func (o *DeleteCustomnameParams) WithHTTPClient(client *http.Client) *DeleteCustomnameParams
WithHTTPClient adds the HTTPClient to the delete customname params
func (*DeleteCustomnameParams) WithID ¶
func (o *DeleteCustomnameParams) WithID(id string) *DeleteCustomnameParams
WithID adds the id to the delete customname params
func (*DeleteCustomnameParams) WithTimeout ¶
func (o *DeleteCustomnameParams) WithTimeout(timeout time.Duration) *DeleteCustomnameParams
WithTimeout adds the timeout to the delete customname params
func (*DeleteCustomnameParams) WriteToRequest ¶
func (o *DeleteCustomnameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteCustomnameReader ¶
type DeleteCustomnameReader struct {
// contains filtered or unexported fields
}
DeleteCustomnameReader is a Reader for the DeleteCustomname structure.
func (*DeleteCustomnameReader) ReadResponse ¶
func (o *DeleteCustomnameReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetCustomNameBadRequest ¶
GetCustomNameBadRequest describes a response with status code 400, with default header values.
Invalid Request - bad data
func NewGetCustomNameBadRequest ¶
func NewGetCustomNameBadRequest() *GetCustomNameBadRequest
NewGetCustomNameBadRequest creates a GetCustomNameBadRequest with default headers values
func (*GetCustomNameBadRequest) Error ¶
func (o *GetCustomNameBadRequest) Error() string
func (*GetCustomNameBadRequest) GetPayload ¶
func (o *GetCustomNameBadRequest) GetPayload() *models.Error
type GetCustomNameByProjectIDBadRequest ¶
GetCustomNameByProjectIDBadRequest describes a response with status code 400, with default header values.
Invalid Request - bad data
func NewGetCustomNameByProjectIDBadRequest ¶
func NewGetCustomNameByProjectIDBadRequest() *GetCustomNameByProjectIDBadRequest
NewGetCustomNameByProjectIDBadRequest creates a GetCustomNameByProjectIDBadRequest with default headers values
func (*GetCustomNameByProjectIDBadRequest) Error ¶
func (o *GetCustomNameByProjectIDBadRequest) Error() string
func (*GetCustomNameByProjectIDBadRequest) GetPayload ¶
func (o *GetCustomNameByProjectIDBadRequest) GetPayload() *models.Error
type GetCustomNameByProjectIDForbidden ¶
type GetCustomNameByProjectIDForbidden struct {
Payload *models.ServiceErrorResponse
}
GetCustomNameByProjectIDForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetCustomNameByProjectIDForbidden ¶
func NewGetCustomNameByProjectIDForbidden() *GetCustomNameByProjectIDForbidden
NewGetCustomNameByProjectIDForbidden creates a GetCustomNameByProjectIDForbidden with default headers values
func (*GetCustomNameByProjectIDForbidden) Error ¶
func (o *GetCustomNameByProjectIDForbidden) Error() string
func (*GetCustomNameByProjectIDForbidden) GetPayload ¶
func (o *GetCustomNameByProjectIDForbidden) GetPayload() *models.ServiceErrorResponse
type GetCustomNameByProjectIDNotFound ¶
GetCustomNameByProjectIDNotFound describes a response with status code 404, with default header values.
Not Found
func NewGetCustomNameByProjectIDNotFound ¶
func NewGetCustomNameByProjectIDNotFound() *GetCustomNameByProjectIDNotFound
NewGetCustomNameByProjectIDNotFound creates a GetCustomNameByProjectIDNotFound with default headers values
func (*GetCustomNameByProjectIDNotFound) Error ¶
func (o *GetCustomNameByProjectIDNotFound) Error() string
func (*GetCustomNameByProjectIDNotFound) GetPayload ¶
func (o *GetCustomNameByProjectIDNotFound) GetPayload() *models.Error
type GetCustomNameByProjectIDOK ¶
type GetCustomNameByProjectIDOK struct {
Payload *models.CustomNaming
}
GetCustomNameByProjectIDOK describes a response with status code 200, with default header values.
successful operation
func NewGetCustomNameByProjectIDOK ¶
func NewGetCustomNameByProjectIDOK() *GetCustomNameByProjectIDOK
NewGetCustomNameByProjectIDOK creates a GetCustomNameByProjectIDOK with default headers values
func (*GetCustomNameByProjectIDOK) Error ¶
func (o *GetCustomNameByProjectIDOK) Error() string
func (*GetCustomNameByProjectIDOK) GetPayload ¶
func (o *GetCustomNameByProjectIDOK) GetPayload() *models.CustomNaming
type GetCustomNameByProjectIDParams ¶
type GetCustomNameByProjectIDParams struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about */ APIVersion *string /* ID. Project id. */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCustomNameByProjectIDParams contains all the parameters to send to the API endpoint
for the get custom name by project Id operation. Typically these are written to a http.Request.
func NewGetCustomNameByProjectIDParams ¶
func NewGetCustomNameByProjectIDParams() *GetCustomNameByProjectIDParams
NewGetCustomNameByProjectIDParams creates a new GetCustomNameByProjectIDParams 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 NewGetCustomNameByProjectIDParamsWithContext ¶
func NewGetCustomNameByProjectIDParamsWithContext(ctx context.Context) *GetCustomNameByProjectIDParams
NewGetCustomNameByProjectIDParamsWithContext creates a new GetCustomNameByProjectIDParams object with the ability to set a context for a request.
func NewGetCustomNameByProjectIDParamsWithHTTPClient ¶
func NewGetCustomNameByProjectIDParamsWithHTTPClient(client *http.Client) *GetCustomNameByProjectIDParams
NewGetCustomNameByProjectIDParamsWithHTTPClient creates a new GetCustomNameByProjectIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetCustomNameByProjectIDParamsWithTimeout ¶
func NewGetCustomNameByProjectIDParamsWithTimeout(timeout time.Duration) *GetCustomNameByProjectIDParams
NewGetCustomNameByProjectIDParamsWithTimeout creates a new GetCustomNameByProjectIDParams object with the ability to set a timeout on a request.
func (*GetCustomNameByProjectIDParams) SetAPIVersion ¶
func (o *GetCustomNameByProjectIDParams) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the get custom name by project Id params
func (*GetCustomNameByProjectIDParams) SetContext ¶
func (o *GetCustomNameByProjectIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get custom name by project Id params
func (*GetCustomNameByProjectIDParams) SetDefaults ¶
func (o *GetCustomNameByProjectIDParams) SetDefaults()
SetDefaults hydrates default values in the get custom name by project Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetCustomNameByProjectIDParams) SetHTTPClient ¶
func (o *GetCustomNameByProjectIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get custom name by project Id params
func (*GetCustomNameByProjectIDParams) SetID ¶
func (o *GetCustomNameByProjectIDParams) SetID(id string)
SetID adds the id to the get custom name by project Id params
func (*GetCustomNameByProjectIDParams) SetTimeout ¶
func (o *GetCustomNameByProjectIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get custom name by project Id params
func (*GetCustomNameByProjectIDParams) WithAPIVersion ¶
func (o *GetCustomNameByProjectIDParams) WithAPIVersion(aPIVersion *string) *GetCustomNameByProjectIDParams
WithAPIVersion adds the aPIVersion to the get custom name by project Id params
func (*GetCustomNameByProjectIDParams) WithContext ¶
func (o *GetCustomNameByProjectIDParams) WithContext(ctx context.Context) *GetCustomNameByProjectIDParams
WithContext adds the context to the get custom name by project Id params
func (*GetCustomNameByProjectIDParams) WithDefaults ¶
func (o *GetCustomNameByProjectIDParams) WithDefaults() *GetCustomNameByProjectIDParams
WithDefaults hydrates default values in the get custom name by project Id params (not the query body).
All values with no default are reset to their zero value.
func (*GetCustomNameByProjectIDParams) WithHTTPClient ¶
func (o *GetCustomNameByProjectIDParams) WithHTTPClient(client *http.Client) *GetCustomNameByProjectIDParams
WithHTTPClient adds the HTTPClient to the get custom name by project Id params
func (*GetCustomNameByProjectIDParams) WithID ¶
func (o *GetCustomNameByProjectIDParams) WithID(id string) *GetCustomNameByProjectIDParams
WithID adds the id to the get custom name by project Id params
func (*GetCustomNameByProjectIDParams) WithTimeout ¶
func (o *GetCustomNameByProjectIDParams) WithTimeout(timeout time.Duration) *GetCustomNameByProjectIDParams
WithTimeout adds the timeout to the get custom name by project Id params
func (*GetCustomNameByProjectIDParams) WriteToRequest ¶
func (o *GetCustomNameByProjectIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetCustomNameByProjectIDReader ¶
type GetCustomNameByProjectIDReader struct {
// contains filtered or unexported fields
}
GetCustomNameByProjectIDReader is a Reader for the GetCustomNameByProjectID structure.
func (*GetCustomNameByProjectIDReader) ReadResponse ¶
func (o *GetCustomNameByProjectIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetCustomNameForbidden ¶
type GetCustomNameForbidden struct {
Payload *models.ServiceErrorResponse
}
GetCustomNameForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetCustomNameForbidden ¶
func NewGetCustomNameForbidden() *GetCustomNameForbidden
NewGetCustomNameForbidden creates a GetCustomNameForbidden with default headers values
func (*GetCustomNameForbidden) Error ¶
func (o *GetCustomNameForbidden) Error() string
func (*GetCustomNameForbidden) GetPayload ¶
func (o *GetCustomNameForbidden) GetPayload() *models.ServiceErrorResponse
type GetCustomNameNotFound ¶
GetCustomNameNotFound describes a response with status code 404, with default header values.
Not Found
func NewGetCustomNameNotFound ¶
func NewGetCustomNameNotFound() *GetCustomNameNotFound
NewGetCustomNameNotFound creates a GetCustomNameNotFound with default headers values
func (*GetCustomNameNotFound) Error ¶
func (o *GetCustomNameNotFound) Error() string
func (*GetCustomNameNotFound) GetPayload ¶
func (o *GetCustomNameNotFound) GetPayload() *models.Error
type GetCustomNameOK ¶
type GetCustomNameOK struct {
Payload *models.CustomNaming
}
GetCustomNameOK describes a response with status code 200, with default header values.
successful operation
func NewGetCustomNameOK ¶
func NewGetCustomNameOK() *GetCustomNameOK
NewGetCustomNameOK creates a GetCustomNameOK with default headers values
func (*GetCustomNameOK) Error ¶
func (o *GetCustomNameOK) Error() string
func (*GetCustomNameOK) GetPayload ¶
func (o *GetCustomNameOK) GetPayload() *models.CustomNaming
type GetCustomNameParams ¶
type GetCustomNameParams struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about */ APIVersion *string /* ID. The ID of the custom name. */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCustomNameParams contains all the parameters to send to the API endpoint
for the get custom name operation. Typically these are written to a http.Request.
func NewGetCustomNameParams ¶
func NewGetCustomNameParams() *GetCustomNameParams
NewGetCustomNameParams creates a new GetCustomNameParams 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 NewGetCustomNameParamsWithContext ¶
func NewGetCustomNameParamsWithContext(ctx context.Context) *GetCustomNameParams
NewGetCustomNameParamsWithContext creates a new GetCustomNameParams object with the ability to set a context for a request.
func NewGetCustomNameParamsWithHTTPClient ¶
func NewGetCustomNameParamsWithHTTPClient(client *http.Client) *GetCustomNameParams
NewGetCustomNameParamsWithHTTPClient creates a new GetCustomNameParams object with the ability to set a custom HTTPClient for a request.
func NewGetCustomNameParamsWithTimeout ¶
func NewGetCustomNameParamsWithTimeout(timeout time.Duration) *GetCustomNameParams
NewGetCustomNameParamsWithTimeout creates a new GetCustomNameParams object with the ability to set a timeout on a request.
func (*GetCustomNameParams) SetAPIVersion ¶
func (o *GetCustomNameParams) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the get custom name params
func (*GetCustomNameParams) SetContext ¶
func (o *GetCustomNameParams) SetContext(ctx context.Context)
SetContext adds the context to the get custom name params
func (*GetCustomNameParams) SetDefaults ¶
func (o *GetCustomNameParams) SetDefaults()
SetDefaults hydrates default values in the get custom name params (not the query body).
All values with no default are reset to their zero value.
func (*GetCustomNameParams) SetHTTPClient ¶
func (o *GetCustomNameParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get custom name params
func (*GetCustomNameParams) SetID ¶
func (o *GetCustomNameParams) SetID(id string)
SetID adds the id to the get custom name params
func (*GetCustomNameParams) SetTimeout ¶
func (o *GetCustomNameParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get custom name params
func (*GetCustomNameParams) WithAPIVersion ¶
func (o *GetCustomNameParams) WithAPIVersion(aPIVersion *string) *GetCustomNameParams
WithAPIVersion adds the aPIVersion to the get custom name params
func (*GetCustomNameParams) WithContext ¶
func (o *GetCustomNameParams) WithContext(ctx context.Context) *GetCustomNameParams
WithContext adds the context to the get custom name params
func (*GetCustomNameParams) WithDefaults ¶
func (o *GetCustomNameParams) WithDefaults() *GetCustomNameParams
WithDefaults hydrates default values in the get custom name params (not the query body).
All values with no default are reset to their zero value.
func (*GetCustomNameParams) WithHTTPClient ¶
func (o *GetCustomNameParams) WithHTTPClient(client *http.Client) *GetCustomNameParams
WithHTTPClient adds the HTTPClient to the get custom name params
func (*GetCustomNameParams) WithID ¶
func (o *GetCustomNameParams) WithID(id string) *GetCustomNameParams
WithID adds the id to the get custom name params
func (*GetCustomNameParams) WithTimeout ¶
func (o *GetCustomNameParams) WithTimeout(timeout time.Duration) *GetCustomNameParams
WithTimeout adds the timeout to the get custom name params
func (*GetCustomNameParams) WriteToRequest ¶
func (o *GetCustomNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetCustomNameReader ¶
type GetCustomNameReader struct {
// contains filtered or unexported fields
}
GetCustomNameReader is a Reader for the GetCustomName structure.
func (*GetCustomNameReader) ReadResponse ¶
func (o *GetCustomNameReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateCustomNameBadRequest ¶
UpdateCustomNameBadRequest describes a response with status code 400, with default header values.
Invalid Request - bad data
func NewUpdateCustomNameBadRequest ¶
func NewUpdateCustomNameBadRequest() *UpdateCustomNameBadRequest
NewUpdateCustomNameBadRequest creates a UpdateCustomNameBadRequest with default headers values
func (*UpdateCustomNameBadRequest) Error ¶
func (o *UpdateCustomNameBadRequest) Error() string
func (*UpdateCustomNameBadRequest) GetPayload ¶
func (o *UpdateCustomNameBadRequest) GetPayload() *models.Error
type UpdateCustomNameForbidden ¶
type UpdateCustomNameForbidden struct {
Payload *models.ServiceErrorResponse
}
UpdateCustomNameForbidden describes a response with status code 403, with default header values.
Forbidden
func NewUpdateCustomNameForbidden ¶
func NewUpdateCustomNameForbidden() *UpdateCustomNameForbidden
NewUpdateCustomNameForbidden creates a UpdateCustomNameForbidden with default headers values
func (*UpdateCustomNameForbidden) Error ¶
func (o *UpdateCustomNameForbidden) Error() string
func (*UpdateCustomNameForbidden) GetPayload ¶
func (o *UpdateCustomNameForbidden) GetPayload() *models.ServiceErrorResponse
type UpdateCustomNameNoContent ¶
type UpdateCustomNameNoContent struct { }
UpdateCustomNameNoContent describes a response with status code 204, with default header values.
No Content
func NewUpdateCustomNameNoContent ¶
func NewUpdateCustomNameNoContent() *UpdateCustomNameNoContent
NewUpdateCustomNameNoContent creates a UpdateCustomNameNoContent with default headers values
func (*UpdateCustomNameNoContent) Error ¶
func (o *UpdateCustomNameNoContent) Error() string
type UpdateCustomNameNotFound ¶
UpdateCustomNameNotFound describes a response with status code 404, with default header values.
Not Found
func NewUpdateCustomNameNotFound ¶
func NewUpdateCustomNameNotFound() *UpdateCustomNameNotFound
NewUpdateCustomNameNotFound creates a UpdateCustomNameNotFound with default headers values
func (*UpdateCustomNameNotFound) Error ¶
func (o *UpdateCustomNameNotFound) Error() string
func (*UpdateCustomNameNotFound) GetPayload ¶
func (o *UpdateCustomNameNotFound) GetPayload() *models.Error
type UpdateCustomNameParams ¶
type UpdateCustomNameParams struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about */ APIVersion *string /* Body. Custom Name specification */ Body *models.CustomNamingModel Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateCustomNameParams contains all the parameters to send to the API endpoint
for the update custom name operation. Typically these are written to a http.Request.
func NewUpdateCustomNameParams ¶
func NewUpdateCustomNameParams() *UpdateCustomNameParams
NewUpdateCustomNameParams creates a new UpdateCustomNameParams 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 NewUpdateCustomNameParamsWithContext ¶
func NewUpdateCustomNameParamsWithContext(ctx context.Context) *UpdateCustomNameParams
NewUpdateCustomNameParamsWithContext creates a new UpdateCustomNameParams object with the ability to set a context for a request.
func NewUpdateCustomNameParamsWithHTTPClient ¶
func NewUpdateCustomNameParamsWithHTTPClient(client *http.Client) *UpdateCustomNameParams
NewUpdateCustomNameParamsWithHTTPClient creates a new UpdateCustomNameParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateCustomNameParamsWithTimeout ¶
func NewUpdateCustomNameParamsWithTimeout(timeout time.Duration) *UpdateCustomNameParams
NewUpdateCustomNameParamsWithTimeout creates a new UpdateCustomNameParams object with the ability to set a timeout on a request.
func (*UpdateCustomNameParams) SetAPIVersion ¶
func (o *UpdateCustomNameParams) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the update custom name params
func (*UpdateCustomNameParams) SetBody ¶
func (o *UpdateCustomNameParams) SetBody(body *models.CustomNamingModel)
SetBody adds the body to the update custom name params
func (*UpdateCustomNameParams) SetContext ¶
func (o *UpdateCustomNameParams) SetContext(ctx context.Context)
SetContext adds the context to the update custom name params
func (*UpdateCustomNameParams) SetDefaults ¶
func (o *UpdateCustomNameParams) SetDefaults()
SetDefaults hydrates default values in the update custom name params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateCustomNameParams) SetHTTPClient ¶
func (o *UpdateCustomNameParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update custom name params
func (*UpdateCustomNameParams) SetTimeout ¶
func (o *UpdateCustomNameParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update custom name params
func (*UpdateCustomNameParams) WithAPIVersion ¶
func (o *UpdateCustomNameParams) WithAPIVersion(aPIVersion *string) *UpdateCustomNameParams
WithAPIVersion adds the aPIVersion to the update custom name params
func (*UpdateCustomNameParams) WithBody ¶
func (o *UpdateCustomNameParams) WithBody(body *models.CustomNamingModel) *UpdateCustomNameParams
WithBody adds the body to the update custom name params
func (*UpdateCustomNameParams) WithContext ¶
func (o *UpdateCustomNameParams) WithContext(ctx context.Context) *UpdateCustomNameParams
WithContext adds the context to the update custom name params
func (*UpdateCustomNameParams) WithDefaults ¶
func (o *UpdateCustomNameParams) WithDefaults() *UpdateCustomNameParams
WithDefaults hydrates default values in the update custom name params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateCustomNameParams) WithHTTPClient ¶
func (o *UpdateCustomNameParams) WithHTTPClient(client *http.Client) *UpdateCustomNameParams
WithHTTPClient adds the HTTPClient to the update custom name params
func (*UpdateCustomNameParams) WithTimeout ¶
func (o *UpdateCustomNameParams) WithTimeout(timeout time.Duration) *UpdateCustomNameParams
WithTimeout adds the timeout to the update custom name params
func (*UpdateCustomNameParams) WriteToRequest ¶
func (o *UpdateCustomNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateCustomNameReader ¶
type UpdateCustomNameReader struct {
// contains filtered or unexported fields
}
UpdateCustomNameReader is a Reader for the UpdateCustomName structure.
func (*UpdateCustomNameReader) ReadResponse ¶
func (o *UpdateCustomNameReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- create_custom_name_parameters.go
- create_custom_name_responses.go
- custom_naming_client.go
- delete_customname_parameters.go
- delete_customname_responses.go
- get_custom_name_by_project_id_parameters.go
- get_custom_name_by_project_id_responses.go
- get_custom_name_parameters.go
- get_custom_name_responses.go
- update_custom_name_parameters.go
- update_custom_name_responses.go