network_profile

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

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 network profile API

func (*Client) CreateNetworkProfile

func (a *Client) CreateNetworkProfile(params *CreateNetworkProfileParams, opts ...ClientOption) (*CreateNetworkProfileCreated, error)

CreateNetworkProfile creates network profile

Create network profile

func (*Client) DeleteNetworkProfile

func (a *Client) DeleteNetworkProfile(params *DeleteNetworkProfileParams, opts ...ClientOption) (*DeleteNetworkProfileNoContent, error)

DeleteNetworkProfile deletes network profile

Delete network profile with a given id

func (*Client) GetNetworkProfile

func (a *Client) GetNetworkProfile(params *GetNetworkProfileParams, opts ...ClientOption) (*GetNetworkProfileOK, error)

GetNetworkProfile gets network profile

Get network profile with a given id

func (*Client) GetNetworkProfiles

func (a *Client) GetNetworkProfiles(params *GetNetworkProfilesParams, opts ...ClientOption) (*GetNetworkProfilesOK, error)

GetNetworkProfiles gets network profiles

Get all network profiles

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateNetworkProfile

func (a *Client) UpdateNetworkProfile(params *UpdateNetworkProfileParams, opts ...ClientOption) (*UpdateNetworkProfileOK, error)

UpdateNetworkProfile updates network profile

Update network profile

type ClientOption added in v0.2.20

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.2.18

type ClientService interface {
	CreateNetworkProfile(params *CreateNetworkProfileParams, opts ...ClientOption) (*CreateNetworkProfileCreated, error)

	DeleteNetworkProfile(params *DeleteNetworkProfileParams, opts ...ClientOption) (*DeleteNetworkProfileNoContent, error)

	GetNetworkProfile(params *GetNetworkProfileParams, opts ...ClientOption) (*GetNetworkProfileOK, error)

	GetNetworkProfiles(params *GetNetworkProfilesParams, opts ...ClientOption) (*GetNetworkProfilesOK, error)

	UpdateNetworkProfile(params *UpdateNetworkProfileParams, opts ...ClientOption) (*UpdateNetworkProfileOK, 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 network profile API client.

type CreateNetworkProfileBadRequest

type CreateNetworkProfileBadRequest struct {
	Payload *models.Error
}
CreateNetworkProfileBadRequest describes a response with status code 400, with default header values.

Invalid Request - bad data

func NewCreateNetworkProfileBadRequest

func NewCreateNetworkProfileBadRequest() *CreateNetworkProfileBadRequest

NewCreateNetworkProfileBadRequest creates a CreateNetworkProfileBadRequest with default headers values

func (*CreateNetworkProfileBadRequest) Error

func (*CreateNetworkProfileBadRequest) GetPayload added in v0.2.9

func (o *CreateNetworkProfileBadRequest) GetPayload() *models.Error

type CreateNetworkProfileCreated

type CreateNetworkProfileCreated struct {
	Payload *models.NetworkProfile
}
CreateNetworkProfileCreated describes a response with status code 201, with default header values.

successful operation

func NewCreateNetworkProfileCreated

func NewCreateNetworkProfileCreated() *CreateNetworkProfileCreated

NewCreateNetworkProfileCreated creates a CreateNetworkProfileCreated with default headers values

func (*CreateNetworkProfileCreated) Error

func (*CreateNetworkProfileCreated) GetPayload

type CreateNetworkProfileForbidden

type CreateNetworkProfileForbidden struct {
	Payload *models.ServiceErrorResponse
}
CreateNetworkProfileForbidden describes a response with status code 403, with default header values.

Forbidden

func NewCreateNetworkProfileForbidden

func NewCreateNetworkProfileForbidden() *CreateNetworkProfileForbidden

NewCreateNetworkProfileForbidden creates a CreateNetworkProfileForbidden with default headers values

func (*CreateNetworkProfileForbidden) Error

func (*CreateNetworkProfileForbidden) GetPayload added in v0.2.20

type CreateNetworkProfileParams

type CreateNetworkProfileParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* Body.

	   NetworkProfile instance
	*/
	Body *models.NetworkProfileSpecification

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateNetworkProfileParams contains all the parameters to send to the API endpoint

for the create network profile operation.

Typically these are written to a http.Request.

func NewCreateNetworkProfileParams

func NewCreateNetworkProfileParams() *CreateNetworkProfileParams

NewCreateNetworkProfileParams creates a new CreateNetworkProfileParams 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 NewCreateNetworkProfileParamsWithContext

func NewCreateNetworkProfileParamsWithContext(ctx context.Context) *CreateNetworkProfileParams

NewCreateNetworkProfileParamsWithContext creates a new CreateNetworkProfileParams object with the ability to set a context for a request.

func NewCreateNetworkProfileParamsWithHTTPClient

func NewCreateNetworkProfileParamsWithHTTPClient(client *http.Client) *CreateNetworkProfileParams

NewCreateNetworkProfileParamsWithHTTPClient creates a new CreateNetworkProfileParams object with the ability to set a custom HTTPClient for a request.

func NewCreateNetworkProfileParamsWithTimeout

func NewCreateNetworkProfileParamsWithTimeout(timeout time.Duration) *CreateNetworkProfileParams

NewCreateNetworkProfileParamsWithTimeout creates a new CreateNetworkProfileParams object with the ability to set a timeout on a request.

func (*CreateNetworkProfileParams) SetAPIVersion

func (o *CreateNetworkProfileParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the create network profile params

func (*CreateNetworkProfileParams) SetBody

SetBody adds the body to the create network profile params

func (*CreateNetworkProfileParams) SetContext

func (o *CreateNetworkProfileParams) SetContext(ctx context.Context)

SetContext adds the context to the create network profile params

func (*CreateNetworkProfileParams) SetDefaults added in v0.2.20

func (o *CreateNetworkProfileParams) SetDefaults()

SetDefaults hydrates default values in the create network profile params (not the query body).

All values with no default are reset to their zero value.

func (*CreateNetworkProfileParams) SetHTTPClient

func (o *CreateNetworkProfileParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create network profile params

func (*CreateNetworkProfileParams) SetTimeout

func (o *CreateNetworkProfileParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create network profile params

func (*CreateNetworkProfileParams) WithAPIVersion

func (o *CreateNetworkProfileParams) WithAPIVersion(aPIVersion *string) *CreateNetworkProfileParams

WithAPIVersion adds the aPIVersion to the create network profile params

func (*CreateNetworkProfileParams) WithBody

WithBody adds the body to the create network profile params

func (*CreateNetworkProfileParams) WithContext

WithContext adds the context to the create network profile params

func (*CreateNetworkProfileParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the create network profile params (not the query body).

All values with no default are reset to their zero value.

func (*CreateNetworkProfileParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create network profile params

func (*CreateNetworkProfileParams) WithTimeout

WithTimeout adds the timeout to the create network profile params

func (*CreateNetworkProfileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateNetworkProfileReader

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

CreateNetworkProfileReader is a Reader for the CreateNetworkProfile structure.

func (*CreateNetworkProfileReader) ReadResponse

func (o *CreateNetworkProfileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteNetworkProfileForbidden

type DeleteNetworkProfileForbidden struct {
	Payload *models.ServiceErrorResponse
}
DeleteNetworkProfileForbidden describes a response with status code 403, with default header values.

Forbidden

func NewDeleteNetworkProfileForbidden

func NewDeleteNetworkProfileForbidden() *DeleteNetworkProfileForbidden

NewDeleteNetworkProfileForbidden creates a DeleteNetworkProfileForbidden with default headers values

func (*DeleteNetworkProfileForbidden) Error

func (*DeleteNetworkProfileForbidden) GetPayload added in v0.2.20

type DeleteNetworkProfileNoContent

type DeleteNetworkProfileNoContent struct {
}
DeleteNetworkProfileNoContent describes a response with status code 204, with default header values.

No Content

func NewDeleteNetworkProfileNoContent

func NewDeleteNetworkProfileNoContent() *DeleteNetworkProfileNoContent

NewDeleteNetworkProfileNoContent creates a DeleteNetworkProfileNoContent with default headers values

func (*DeleteNetworkProfileNoContent) Error

type DeleteNetworkProfileParams

type DeleteNetworkProfileParams 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 network profile.
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteNetworkProfileParams contains all the parameters to send to the API endpoint

for the delete network profile operation.

Typically these are written to a http.Request.

func NewDeleteNetworkProfileParams

func NewDeleteNetworkProfileParams() *DeleteNetworkProfileParams

NewDeleteNetworkProfileParams creates a new DeleteNetworkProfileParams 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 NewDeleteNetworkProfileParamsWithContext

func NewDeleteNetworkProfileParamsWithContext(ctx context.Context) *DeleteNetworkProfileParams

NewDeleteNetworkProfileParamsWithContext creates a new DeleteNetworkProfileParams object with the ability to set a context for a request.

func NewDeleteNetworkProfileParamsWithHTTPClient

func NewDeleteNetworkProfileParamsWithHTTPClient(client *http.Client) *DeleteNetworkProfileParams

NewDeleteNetworkProfileParamsWithHTTPClient creates a new DeleteNetworkProfileParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteNetworkProfileParamsWithTimeout

func NewDeleteNetworkProfileParamsWithTimeout(timeout time.Duration) *DeleteNetworkProfileParams

NewDeleteNetworkProfileParamsWithTimeout creates a new DeleteNetworkProfileParams object with the ability to set a timeout on a request.

func (*DeleteNetworkProfileParams) SetAPIVersion

func (o *DeleteNetworkProfileParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the delete network profile params

func (*DeleteNetworkProfileParams) SetContext

func (o *DeleteNetworkProfileParams) SetContext(ctx context.Context)

SetContext adds the context to the delete network profile params

func (*DeleteNetworkProfileParams) SetDefaults added in v0.2.20

func (o *DeleteNetworkProfileParams) SetDefaults()

SetDefaults hydrates default values in the delete network profile params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteNetworkProfileParams) SetHTTPClient

func (o *DeleteNetworkProfileParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete network profile params

func (*DeleteNetworkProfileParams) SetID

func (o *DeleteNetworkProfileParams) SetID(id string)

SetID adds the id to the delete network profile params

func (*DeleteNetworkProfileParams) SetTimeout

func (o *DeleteNetworkProfileParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete network profile params

func (*DeleteNetworkProfileParams) WithAPIVersion

func (o *DeleteNetworkProfileParams) WithAPIVersion(aPIVersion *string) *DeleteNetworkProfileParams

WithAPIVersion adds the aPIVersion to the delete network profile params

func (*DeleteNetworkProfileParams) WithContext

WithContext adds the context to the delete network profile params

func (*DeleteNetworkProfileParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the delete network profile params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteNetworkProfileParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete network profile params

func (*DeleteNetworkProfileParams) WithID

WithID adds the id to the delete network profile params

func (*DeleteNetworkProfileParams) WithTimeout

WithTimeout adds the timeout to the delete network profile params

func (*DeleteNetworkProfileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteNetworkProfileReader

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

DeleteNetworkProfileReader is a Reader for the DeleteNetworkProfile structure.

func (*DeleteNetworkProfileReader) ReadResponse

func (o *DeleteNetworkProfileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetNetworkProfileForbidden

type GetNetworkProfileForbidden struct {
	Payload *models.ServiceErrorResponse
}
GetNetworkProfileForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetNetworkProfileForbidden

func NewGetNetworkProfileForbidden() *GetNetworkProfileForbidden

NewGetNetworkProfileForbidden creates a GetNetworkProfileForbidden with default headers values

func (*GetNetworkProfileForbidden) Error

func (*GetNetworkProfileForbidden) GetPayload added in v0.2.20

type GetNetworkProfileNotFound

type GetNetworkProfileNotFound struct {
	Payload *models.Error
}
GetNetworkProfileNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetNetworkProfileNotFound

func NewGetNetworkProfileNotFound() *GetNetworkProfileNotFound

NewGetNetworkProfileNotFound creates a GetNetworkProfileNotFound with default headers values

func (*GetNetworkProfileNotFound) Error

func (o *GetNetworkProfileNotFound) Error() string

func (*GetNetworkProfileNotFound) GetPayload added in v0.2.9

func (o *GetNetworkProfileNotFound) GetPayload() *models.Error

type GetNetworkProfileOK

type GetNetworkProfileOK struct {
	Payload *models.NetworkProfile
}
GetNetworkProfileOK describes a response with status code 200, with default header values.

successful operation

func NewGetNetworkProfileOK

func NewGetNetworkProfileOK() *GetNetworkProfileOK

NewGetNetworkProfileOK creates a GetNetworkProfileOK with default headers values

func (*GetNetworkProfileOK) Error

func (o *GetNetworkProfileOK) Error() string

func (*GetNetworkProfileOK) GetPayload

func (o *GetNetworkProfileOK) GetPayload() *models.NetworkProfile

type GetNetworkProfileParams

type GetNetworkProfileParams 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 network profile.
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetNetworkProfileParams contains all the parameters to send to the API endpoint

for the get network profile operation.

Typically these are written to a http.Request.

func NewGetNetworkProfileParams

func NewGetNetworkProfileParams() *GetNetworkProfileParams

NewGetNetworkProfileParams creates a new GetNetworkProfileParams 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 NewGetNetworkProfileParamsWithContext

func NewGetNetworkProfileParamsWithContext(ctx context.Context) *GetNetworkProfileParams

NewGetNetworkProfileParamsWithContext creates a new GetNetworkProfileParams object with the ability to set a context for a request.

func NewGetNetworkProfileParamsWithHTTPClient

func NewGetNetworkProfileParamsWithHTTPClient(client *http.Client) *GetNetworkProfileParams

NewGetNetworkProfileParamsWithHTTPClient creates a new GetNetworkProfileParams object with the ability to set a custom HTTPClient for a request.

func NewGetNetworkProfileParamsWithTimeout

func NewGetNetworkProfileParamsWithTimeout(timeout time.Duration) *GetNetworkProfileParams

NewGetNetworkProfileParamsWithTimeout creates a new GetNetworkProfileParams object with the ability to set a timeout on a request.

func (*GetNetworkProfileParams) SetAPIVersion

func (o *GetNetworkProfileParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get network profile params

func (*GetNetworkProfileParams) SetContext

func (o *GetNetworkProfileParams) SetContext(ctx context.Context)

SetContext adds the context to the get network profile params

func (*GetNetworkProfileParams) SetDefaults added in v0.2.20

func (o *GetNetworkProfileParams) SetDefaults()

SetDefaults hydrates default values in the get network profile params (not the query body).

All values with no default are reset to their zero value.

func (*GetNetworkProfileParams) SetHTTPClient

func (o *GetNetworkProfileParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get network profile params

func (*GetNetworkProfileParams) SetID

func (o *GetNetworkProfileParams) SetID(id string)

SetID adds the id to the get network profile params

func (*GetNetworkProfileParams) SetTimeout

func (o *GetNetworkProfileParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get network profile params

func (*GetNetworkProfileParams) WithAPIVersion

func (o *GetNetworkProfileParams) WithAPIVersion(aPIVersion *string) *GetNetworkProfileParams

WithAPIVersion adds the aPIVersion to the get network profile params

func (*GetNetworkProfileParams) WithContext

WithContext adds the context to the get network profile params

func (*GetNetworkProfileParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the get network profile params (not the query body).

All values with no default are reset to their zero value.

func (*GetNetworkProfileParams) WithHTTPClient

func (o *GetNetworkProfileParams) WithHTTPClient(client *http.Client) *GetNetworkProfileParams

WithHTTPClient adds the HTTPClient to the get network profile params

func (*GetNetworkProfileParams) WithID

WithID adds the id to the get network profile params

func (*GetNetworkProfileParams) WithTimeout

WithTimeout adds the timeout to the get network profile params

func (*GetNetworkProfileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetNetworkProfileReader

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

GetNetworkProfileReader is a Reader for the GetNetworkProfile structure.

func (*GetNetworkProfileReader) ReadResponse

func (o *GetNetworkProfileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetNetworkProfilesForbidden

type GetNetworkProfilesForbidden struct {
	Payload *models.ServiceErrorResponse
}
GetNetworkProfilesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetNetworkProfilesForbidden

func NewGetNetworkProfilesForbidden() *GetNetworkProfilesForbidden

NewGetNetworkProfilesForbidden creates a GetNetworkProfilesForbidden with default headers values

func (*GetNetworkProfilesForbidden) Error

func (*GetNetworkProfilesForbidden) GetPayload added in v0.2.20

type GetNetworkProfilesOK

type GetNetworkProfilesOK struct {
	Payload *models.NetworkProfileResult
}
GetNetworkProfilesOK describes a response with status code 200, with default header values.

successful operation

func NewGetNetworkProfilesOK

func NewGetNetworkProfilesOK() *GetNetworkProfilesOK

NewGetNetworkProfilesOK creates a GetNetworkProfilesOK with default headers values

func (*GetNetworkProfilesOK) Error

func (o *GetNetworkProfilesOK) Error() string

func (*GetNetworkProfilesOK) GetPayload

type GetNetworkProfilesParams

type GetNetworkProfilesParams struct {

	/* DollarFilter.

	   Add a filter to return limited results
	*/
	DollarFilter *string

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetNetworkProfilesParams contains all the parameters to send to the API endpoint

for the get network profiles operation.

Typically these are written to a http.Request.

func NewGetNetworkProfilesParams

func NewGetNetworkProfilesParams() *GetNetworkProfilesParams

NewGetNetworkProfilesParams creates a new GetNetworkProfilesParams 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 NewGetNetworkProfilesParamsWithContext

func NewGetNetworkProfilesParamsWithContext(ctx context.Context) *GetNetworkProfilesParams

NewGetNetworkProfilesParamsWithContext creates a new GetNetworkProfilesParams object with the ability to set a context for a request.

func NewGetNetworkProfilesParamsWithHTTPClient

func NewGetNetworkProfilesParamsWithHTTPClient(client *http.Client) *GetNetworkProfilesParams

NewGetNetworkProfilesParamsWithHTTPClient creates a new GetNetworkProfilesParams object with the ability to set a custom HTTPClient for a request.

func NewGetNetworkProfilesParamsWithTimeout

func NewGetNetworkProfilesParamsWithTimeout(timeout time.Duration) *GetNetworkProfilesParams

NewGetNetworkProfilesParamsWithTimeout creates a new GetNetworkProfilesParams object with the ability to set a timeout on a request.

func (*GetNetworkProfilesParams) SetAPIVersion

func (o *GetNetworkProfilesParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get network profiles params

func (*GetNetworkProfilesParams) SetContext

func (o *GetNetworkProfilesParams) SetContext(ctx context.Context)

SetContext adds the context to the get network profiles params

func (*GetNetworkProfilesParams) SetDefaults added in v0.2.20

func (o *GetNetworkProfilesParams) SetDefaults()

SetDefaults hydrates default values in the get network profiles params (not the query body).

All values with no default are reset to their zero value.

func (*GetNetworkProfilesParams) SetDollarFilter added in v0.2.1

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

SetDollarFilter adds the dollarFilter to the get network profiles params

func (*GetNetworkProfilesParams) SetHTTPClient

func (o *GetNetworkProfilesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get network profiles params

func (*GetNetworkProfilesParams) SetTimeout

func (o *GetNetworkProfilesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get network profiles params

func (*GetNetworkProfilesParams) WithAPIVersion

func (o *GetNetworkProfilesParams) WithAPIVersion(aPIVersion *string) *GetNetworkProfilesParams

WithAPIVersion adds the aPIVersion to the get network profiles params

func (*GetNetworkProfilesParams) WithContext

WithContext adds the context to the get network profiles params

func (*GetNetworkProfilesParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the get network profiles params (not the query body).

All values with no default are reset to their zero value.

func (*GetNetworkProfilesParams) WithDollarFilter added in v0.2.1

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

WithDollarFilter adds the dollarFilter to the get network profiles params

func (*GetNetworkProfilesParams) WithHTTPClient

func (o *GetNetworkProfilesParams) WithHTTPClient(client *http.Client) *GetNetworkProfilesParams

WithHTTPClient adds the HTTPClient to the get network profiles params

func (*GetNetworkProfilesParams) WithTimeout

WithTimeout adds the timeout to the get network profiles params

func (*GetNetworkProfilesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetNetworkProfilesReader

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

GetNetworkProfilesReader is a Reader for the GetNetworkProfiles structure.

func (*GetNetworkProfilesReader) ReadResponse

func (o *GetNetworkProfilesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateNetworkProfileForbidden

type UpdateNetworkProfileForbidden struct {
	Payload *models.ServiceErrorResponse
}
UpdateNetworkProfileForbidden describes a response with status code 403, with default header values.

Forbidden

func NewUpdateNetworkProfileForbidden

func NewUpdateNetworkProfileForbidden() *UpdateNetworkProfileForbidden

NewUpdateNetworkProfileForbidden creates a UpdateNetworkProfileForbidden with default headers values

func (*UpdateNetworkProfileForbidden) Error

func (*UpdateNetworkProfileForbidden) GetPayload added in v0.2.20

type UpdateNetworkProfileNotFound

type UpdateNetworkProfileNotFound struct {
	Payload *models.Error
}
UpdateNetworkProfileNotFound describes a response with status code 404, with default header values.

Not Found

func NewUpdateNetworkProfileNotFound

func NewUpdateNetworkProfileNotFound() *UpdateNetworkProfileNotFound

NewUpdateNetworkProfileNotFound creates a UpdateNetworkProfileNotFound with default headers values

func (*UpdateNetworkProfileNotFound) Error

func (*UpdateNetworkProfileNotFound) GetPayload added in v0.2.9

func (o *UpdateNetworkProfileNotFound) GetPayload() *models.Error

type UpdateNetworkProfileOK

type UpdateNetworkProfileOK struct {
	Payload *models.NetworkProfile
}
UpdateNetworkProfileOK describes a response with status code 200, with default header values.

successful operation

func NewUpdateNetworkProfileOK

func NewUpdateNetworkProfileOK() *UpdateNetworkProfileOK

NewUpdateNetworkProfileOK creates a UpdateNetworkProfileOK with default headers values

func (*UpdateNetworkProfileOK) Error

func (o *UpdateNetworkProfileOK) Error() string

func (*UpdateNetworkProfileOK) GetPayload

func (o *UpdateNetworkProfileOK) GetPayload() *models.NetworkProfile

type UpdateNetworkProfileParams

type UpdateNetworkProfileParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* Body.

	   NetworkProfile specification
	*/
	Body *models.NetworkProfileSpecification

	/* ID.

	   The ID of the network profile.
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateNetworkProfileParams contains all the parameters to send to the API endpoint

for the update network profile operation.

Typically these are written to a http.Request.

func NewUpdateNetworkProfileParams

func NewUpdateNetworkProfileParams() *UpdateNetworkProfileParams

NewUpdateNetworkProfileParams creates a new UpdateNetworkProfileParams 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 NewUpdateNetworkProfileParamsWithContext

func NewUpdateNetworkProfileParamsWithContext(ctx context.Context) *UpdateNetworkProfileParams

NewUpdateNetworkProfileParamsWithContext creates a new UpdateNetworkProfileParams object with the ability to set a context for a request.

func NewUpdateNetworkProfileParamsWithHTTPClient

func NewUpdateNetworkProfileParamsWithHTTPClient(client *http.Client) *UpdateNetworkProfileParams

NewUpdateNetworkProfileParamsWithHTTPClient creates a new UpdateNetworkProfileParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateNetworkProfileParamsWithTimeout

func NewUpdateNetworkProfileParamsWithTimeout(timeout time.Duration) *UpdateNetworkProfileParams

NewUpdateNetworkProfileParamsWithTimeout creates a new UpdateNetworkProfileParams object with the ability to set a timeout on a request.

func (*UpdateNetworkProfileParams) SetAPIVersion

func (o *UpdateNetworkProfileParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the update network profile params

func (*UpdateNetworkProfileParams) SetBody

SetBody adds the body to the update network profile params

func (*UpdateNetworkProfileParams) SetContext

func (o *UpdateNetworkProfileParams) SetContext(ctx context.Context)

SetContext adds the context to the update network profile params

func (*UpdateNetworkProfileParams) SetDefaults added in v0.2.20

func (o *UpdateNetworkProfileParams) SetDefaults()

SetDefaults hydrates default values in the update network profile params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateNetworkProfileParams) SetHTTPClient

func (o *UpdateNetworkProfileParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update network profile params

func (*UpdateNetworkProfileParams) SetID

func (o *UpdateNetworkProfileParams) SetID(id string)

SetID adds the id to the update network profile params

func (*UpdateNetworkProfileParams) SetTimeout

func (o *UpdateNetworkProfileParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update network profile params

func (*UpdateNetworkProfileParams) WithAPIVersion

func (o *UpdateNetworkProfileParams) WithAPIVersion(aPIVersion *string) *UpdateNetworkProfileParams

WithAPIVersion adds the aPIVersion to the update network profile params

func (*UpdateNetworkProfileParams) WithBody

WithBody adds the body to the update network profile params

func (*UpdateNetworkProfileParams) WithContext

WithContext adds the context to the update network profile params

func (*UpdateNetworkProfileParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the update network profile params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateNetworkProfileParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update network profile params

func (*UpdateNetworkProfileParams) WithID

WithID adds the id to the update network profile params

func (*UpdateNetworkProfileParams) WithTimeout

WithTimeout adds the timeout to the update network profile params

func (*UpdateNetworkProfileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateNetworkProfileReader

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

UpdateNetworkProfileReader is a Reader for the UpdateNetworkProfile structure.

func (*UpdateNetworkProfileReader) ReadResponse

func (o *UpdateNetworkProfileReader) 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