custom_naming

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

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

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

type CreateCustomNameNotFound

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

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

WithBody adds the body to the create custom name params

func (*CreateCustomNameParams) WithContext

WithContext adds the context to the create custom name params

func (*CreateCustomNameParams) WithDefaults

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

WithTimeout adds the timeout to the create custom name params

func (*CreateCustomNameParams) WriteToRequest

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

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

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

WithContext adds the context to the delete customname params

func (*DeleteCustomnameParams) WithDefaults

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

WithID adds the id to the delete customname params

func (*DeleteCustomnameParams) WithTimeout

WithTimeout adds the timeout to the delete customname params

func (*DeleteCustomnameParams) WriteToRequest

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

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

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

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

type GetCustomNameByProjectIDNotFound

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

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

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

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

WithAPIVersion adds the aPIVersion to the get custom name by project Id params

func (*GetCustomNameByProjectIDParams) WithContext

WithContext adds the context to the get custom name by project Id params

func (*GetCustomNameByProjectIDParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get custom name by project Id params

func (*GetCustomNameByProjectIDParams) WithID

WithID adds the id to the get custom name by project Id params

func (*GetCustomNameByProjectIDParams) WithTimeout

WithTimeout adds the timeout to the get custom name by project Id params

func (*GetCustomNameByProjectIDParams) WriteToRequest

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

type GetCustomNameNotFound

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

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

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

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

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

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

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

WithBody adds the body to the update custom name params

func (*UpdateCustomNameParams) WithContext

WithContext adds the context to the update custom name params

func (*UpdateCustomNameParams) WithDefaults

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

WithTimeout adds the timeout to the update custom name params

func (*UpdateCustomNameParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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