tenant_service

package
v0.118.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MPL-2.0 Imports: 11 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 tenant service API

func (*Client) CreateTenant

func (a *Client) CreateTenant(params *CreateTenantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTenantOK, error)

CreateTenant create tenant API

func (*Client) GetTenant added in v0.116.0

func (a *Client) GetTenant(params *GetTenantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantOK, error)

GetTenant get tenant API

func (*Client) ListOrganizationTenants

func (a *Client) ListOrganizationTenants(params *ListOrganizationTenantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListOrganizationTenantsOK, error)

ListOrganizationTenants list organization tenants API

func (*Client) ProvisionTenant added in v0.116.0

func (a *Client) ProvisionTenant(params *ProvisionTenantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ProvisionTenantOK, error)

ProvisionTenant provision tenant API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateTenant(params *CreateTenantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTenantOK, error)

	GetTenant(params *GetTenantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTenantOK, error)

	ListOrganizationTenants(params *ListOrganizationTenantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListOrganizationTenantsOK, error)

	ProvisionTenant(params *ProvisionTenantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ProvisionTenantOK, 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 tenant service API client.

type CreateTenantBody

type CreateTenantBody struct {

	// location
	Location *CreateTenantParamsBodyLocation `json:"location,omitempty"`
}

CreateTenantBody create tenant body swagger:model CreateTenantBody

func (*CreateTenantBody) ContextValidate

func (o *CreateTenantBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create tenant body based on the context it is used

func (*CreateTenantBody) MarshalBinary

func (o *CreateTenantBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateTenantBody) UnmarshalBinary

func (o *CreateTenantBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateTenantBody) Validate

func (o *CreateTenantBody) Validate(formats strfmt.Registry) error

Validate validates this create tenant body

type CreateTenantDefault

type CreateTenantDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

CreateTenantDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewCreateTenantDefault

func NewCreateTenantDefault(code int) *CreateTenantDefault

NewCreateTenantDefault creates a CreateTenantDefault with default headers values

func (*CreateTenantDefault) Code

func (o *CreateTenantDefault) Code() int

Code gets the status code for the create tenant default response

func (*CreateTenantDefault) Error

func (o *CreateTenantDefault) Error() string

func (*CreateTenantDefault) GetPayload

func (o *CreateTenantDefault) GetPayload() *models.RPCStatus

func (*CreateTenantDefault) IsClientError

func (o *CreateTenantDefault) IsClientError() bool

IsClientError returns true when this create tenant default response has a 4xx status code

func (*CreateTenantDefault) IsCode

func (o *CreateTenantDefault) IsCode(code int) bool

IsCode returns true when this create tenant default response a status code equal to that given

func (*CreateTenantDefault) IsRedirect

func (o *CreateTenantDefault) IsRedirect() bool

IsRedirect returns true when this create tenant default response has a 3xx status code

func (*CreateTenantDefault) IsServerError

func (o *CreateTenantDefault) IsServerError() bool

IsServerError returns true when this create tenant default response has a 5xx status code

func (*CreateTenantDefault) IsSuccess

func (o *CreateTenantDefault) IsSuccess() bool

IsSuccess returns true when this create tenant default response has a 2xx status code

func (*CreateTenantDefault) String

func (o *CreateTenantDefault) String() string

type CreateTenantOK

type CreateTenantOK struct {
	Payload *models.VaultRadar20230501TenantCreateResponse
}

CreateTenantOK describes a response with status code 200, with default header values.

A successful response.

func NewCreateTenantOK

func NewCreateTenantOK() *CreateTenantOK

NewCreateTenantOK creates a CreateTenantOK with default headers values

func (*CreateTenantOK) Code

func (o *CreateTenantOK) Code() int

Code gets the status code for the create tenant o k response

func (*CreateTenantOK) Error

func (o *CreateTenantOK) Error() string

func (*CreateTenantOK) GetPayload

func (*CreateTenantOK) IsClientError

func (o *CreateTenantOK) IsClientError() bool

IsClientError returns true when this create tenant o k response has a 4xx status code

func (*CreateTenantOK) IsCode

func (o *CreateTenantOK) IsCode(code int) bool

IsCode returns true when this create tenant o k response a status code equal to that given

func (*CreateTenantOK) IsRedirect

func (o *CreateTenantOK) IsRedirect() bool

IsRedirect returns true when this create tenant o k response has a 3xx status code

func (*CreateTenantOK) IsServerError

func (o *CreateTenantOK) IsServerError() bool

IsServerError returns true when this create tenant o k response has a 5xx status code

func (*CreateTenantOK) IsSuccess

func (o *CreateTenantOK) IsSuccess() bool

IsSuccess returns true when this create tenant o k response has a 2xx status code

func (*CreateTenantOK) String

func (o *CreateTenantOK) String() string

type CreateTenantParams

type CreateTenantParams struct {

	// Body.
	Body CreateTenantBody

	/* LocationProjectID.

	   project_id is the projects id.
	*/
	LocationProjectID string

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

CreateTenantParams contains all the parameters to send to the API endpoint

for the create tenant operation.

Typically these are written to a http.Request.

func NewCreateTenantParams

func NewCreateTenantParams() *CreateTenantParams

NewCreateTenantParams creates a new CreateTenantParams 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 NewCreateTenantParamsWithContext

func NewCreateTenantParamsWithContext(ctx context.Context) *CreateTenantParams

NewCreateTenantParamsWithContext creates a new CreateTenantParams object with the ability to set a context for a request.

func NewCreateTenantParamsWithHTTPClient

func NewCreateTenantParamsWithHTTPClient(client *http.Client) *CreateTenantParams

NewCreateTenantParamsWithHTTPClient creates a new CreateTenantParams object with the ability to set a custom HTTPClient for a request.

func NewCreateTenantParamsWithTimeout

func NewCreateTenantParamsWithTimeout(timeout time.Duration) *CreateTenantParams

NewCreateTenantParamsWithTimeout creates a new CreateTenantParams object with the ability to set a timeout on a request.

func (*CreateTenantParams) SetBody

func (o *CreateTenantParams) SetBody(body CreateTenantBody)

SetBody adds the body to the create tenant params

func (*CreateTenantParams) SetContext

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

SetContext adds the context to the create tenant params

func (*CreateTenantParams) SetDefaults

func (o *CreateTenantParams) SetDefaults()

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

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

func (*CreateTenantParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create tenant params

func (*CreateTenantParams) SetLocationProjectID

func (o *CreateTenantParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the create tenant params

func (*CreateTenantParams) SetTimeout

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

SetTimeout adds the timeout to the create tenant params

func (*CreateTenantParams) WithBody

WithBody adds the body to the create tenant params

func (*CreateTenantParams) WithContext

WithContext adds the context to the create tenant params

func (*CreateTenantParams) WithDefaults

func (o *CreateTenantParams) WithDefaults() *CreateTenantParams

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

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

func (*CreateTenantParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create tenant params

func (*CreateTenantParams) WithLocationProjectID

func (o *CreateTenantParams) WithLocationProjectID(locationProjectID string) *CreateTenantParams

WithLocationProjectID adds the locationProjectID to the create tenant params

func (*CreateTenantParams) WithTimeout

func (o *CreateTenantParams) WithTimeout(timeout time.Duration) *CreateTenantParams

WithTimeout adds the timeout to the create tenant params

func (*CreateTenantParams) WriteToRequest

func (o *CreateTenantParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateTenantParamsBodyLocation

type CreateTenantParamsBodyLocation struct {

	// organization_id is the id of the organization.
	OrganizationID string `json:"organization_id,omitempty"`

	// region
	Region *models.LocationRegion `json:"region,omitempty"`
}

CreateTenantParamsBodyLocation Location represents a target for an operation in HCP. swagger:model CreateTenantParamsBodyLocation

func (*CreateTenantParamsBodyLocation) ContextValidate

func (o *CreateTenantParamsBodyLocation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create tenant params body location based on the context it is used

func (*CreateTenantParamsBodyLocation) MarshalBinary

func (o *CreateTenantParamsBodyLocation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateTenantParamsBodyLocation) UnmarshalBinary

func (o *CreateTenantParamsBodyLocation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateTenantParamsBodyLocation) Validate

func (o *CreateTenantParamsBodyLocation) Validate(formats strfmt.Registry) error

Validate validates this create tenant params body location

type CreateTenantReader

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

CreateTenantReader is a Reader for the CreateTenant structure.

func (*CreateTenantReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTenantDefault added in v0.116.0

type GetTenantDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

GetTenantDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewGetTenantDefault added in v0.116.0

func NewGetTenantDefault(code int) *GetTenantDefault

NewGetTenantDefault creates a GetTenantDefault with default headers values

func (*GetTenantDefault) Code added in v0.116.0

func (o *GetTenantDefault) Code() int

Code gets the status code for the get tenant default response

func (*GetTenantDefault) Error added in v0.116.0

func (o *GetTenantDefault) Error() string

func (*GetTenantDefault) GetPayload added in v0.116.0

func (o *GetTenantDefault) GetPayload() *models.RPCStatus

func (*GetTenantDefault) IsClientError added in v0.116.0

func (o *GetTenantDefault) IsClientError() bool

IsClientError returns true when this get tenant default response has a 4xx status code

func (*GetTenantDefault) IsCode added in v0.116.0

func (o *GetTenantDefault) IsCode(code int) bool

IsCode returns true when this get tenant default response a status code equal to that given

func (*GetTenantDefault) IsRedirect added in v0.116.0

func (o *GetTenantDefault) IsRedirect() bool

IsRedirect returns true when this get tenant default response has a 3xx status code

func (*GetTenantDefault) IsServerError added in v0.116.0

func (o *GetTenantDefault) IsServerError() bool

IsServerError returns true when this get tenant default response has a 5xx status code

func (*GetTenantDefault) IsSuccess added in v0.116.0

func (o *GetTenantDefault) IsSuccess() bool

IsSuccess returns true when this get tenant default response has a 2xx status code

func (*GetTenantDefault) String added in v0.116.0

func (o *GetTenantDefault) String() string

type GetTenantOK added in v0.116.0

type GetTenantOK struct {
	Payload *models.VaultRadar20230501TenantGetResponse
}

GetTenantOK describes a response with status code 200, with default header values.

A successful response.

func NewGetTenantOK added in v0.116.0

func NewGetTenantOK() *GetTenantOK

NewGetTenantOK creates a GetTenantOK with default headers values

func (*GetTenantOK) Code added in v0.116.0

func (o *GetTenantOK) Code() int

Code gets the status code for the get tenant o k response

func (*GetTenantOK) Error added in v0.116.0

func (o *GetTenantOK) Error() string

func (*GetTenantOK) GetPayload added in v0.116.0

func (*GetTenantOK) IsClientError added in v0.116.0

func (o *GetTenantOK) IsClientError() bool

IsClientError returns true when this get tenant o k response has a 4xx status code

func (*GetTenantOK) IsCode added in v0.116.0

func (o *GetTenantOK) IsCode(code int) bool

IsCode returns true when this get tenant o k response a status code equal to that given

func (*GetTenantOK) IsRedirect added in v0.116.0

func (o *GetTenantOK) IsRedirect() bool

IsRedirect returns true when this get tenant o k response has a 3xx status code

func (*GetTenantOK) IsServerError added in v0.116.0

func (o *GetTenantOK) IsServerError() bool

IsServerError returns true when this get tenant o k response has a 5xx status code

func (*GetTenantOK) IsSuccess added in v0.116.0

func (o *GetTenantOK) IsSuccess() bool

IsSuccess returns true when this get tenant o k response has a 2xx status code

func (*GetTenantOK) String added in v0.116.0

func (o *GetTenantOK) String() string

type GetTenantParams added in v0.116.0

type GetTenantParams struct {

	/* LocationOrganizationID.

	   organization_id is the id of the organization.
	*/
	LocationOrganizationID *string

	/* LocationProjectID.

	   project_id is the projects id.
	*/
	LocationProjectID string

	/* LocationRegionProvider.

	   provider is the named cloud provider ("aws", "gcp", "azure")
	*/
	LocationRegionProvider *string

	/* LocationRegionRegion.

	   region is the cloud region ("us-west1", "us-east1")
	*/
	LocationRegionRegion *string

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

GetTenantParams contains all the parameters to send to the API endpoint

for the get tenant operation.

Typically these are written to a http.Request.

func NewGetTenantParams added in v0.116.0

func NewGetTenantParams() *GetTenantParams

NewGetTenantParams creates a new GetTenantParams 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 NewGetTenantParamsWithContext added in v0.116.0

func NewGetTenantParamsWithContext(ctx context.Context) *GetTenantParams

NewGetTenantParamsWithContext creates a new GetTenantParams object with the ability to set a context for a request.

func NewGetTenantParamsWithHTTPClient added in v0.116.0

func NewGetTenantParamsWithHTTPClient(client *http.Client) *GetTenantParams

NewGetTenantParamsWithHTTPClient creates a new GetTenantParams object with the ability to set a custom HTTPClient for a request.

func NewGetTenantParamsWithTimeout added in v0.116.0

func NewGetTenantParamsWithTimeout(timeout time.Duration) *GetTenantParams

NewGetTenantParamsWithTimeout creates a new GetTenantParams object with the ability to set a timeout on a request.

func (*GetTenantParams) SetContext added in v0.116.0

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

SetContext adds the context to the get tenant params

func (*GetTenantParams) SetDefaults added in v0.116.0

func (o *GetTenantParams) SetDefaults()

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

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

func (*GetTenantParams) SetHTTPClient added in v0.116.0

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

SetHTTPClient adds the HTTPClient to the get tenant params

func (*GetTenantParams) SetLocationOrganizationID added in v0.116.0

func (o *GetTenantParams) SetLocationOrganizationID(locationOrganizationID *string)

SetLocationOrganizationID adds the locationOrganizationId to the get tenant params

func (*GetTenantParams) SetLocationProjectID added in v0.116.0

func (o *GetTenantParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the get tenant params

func (*GetTenantParams) SetLocationRegionProvider added in v0.116.0

func (o *GetTenantParams) SetLocationRegionProvider(locationRegionProvider *string)

SetLocationRegionProvider adds the locationRegionProvider to the get tenant params

func (*GetTenantParams) SetLocationRegionRegion added in v0.116.0

func (o *GetTenantParams) SetLocationRegionRegion(locationRegionRegion *string)

SetLocationRegionRegion adds the locationRegionRegion to the get tenant params

func (*GetTenantParams) SetTimeout added in v0.116.0

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

SetTimeout adds the timeout to the get tenant params

func (*GetTenantParams) WithContext added in v0.116.0

func (o *GetTenantParams) WithContext(ctx context.Context) *GetTenantParams

WithContext adds the context to the get tenant params

func (*GetTenantParams) WithDefaults added in v0.116.0

func (o *GetTenantParams) WithDefaults() *GetTenantParams

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

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

func (*GetTenantParams) WithHTTPClient added in v0.116.0

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

WithHTTPClient adds the HTTPClient to the get tenant params

func (*GetTenantParams) WithLocationOrganizationID added in v0.116.0

func (o *GetTenantParams) WithLocationOrganizationID(locationOrganizationID *string) *GetTenantParams

WithLocationOrganizationID adds the locationOrganizationID to the get tenant params

func (*GetTenantParams) WithLocationProjectID added in v0.116.0

func (o *GetTenantParams) WithLocationProjectID(locationProjectID string) *GetTenantParams

WithLocationProjectID adds the locationProjectID to the get tenant params

func (*GetTenantParams) WithLocationRegionProvider added in v0.116.0

func (o *GetTenantParams) WithLocationRegionProvider(locationRegionProvider *string) *GetTenantParams

WithLocationRegionProvider adds the locationRegionProvider to the get tenant params

func (*GetTenantParams) WithLocationRegionRegion added in v0.116.0

func (o *GetTenantParams) WithLocationRegionRegion(locationRegionRegion *string) *GetTenantParams

WithLocationRegionRegion adds the locationRegionRegion to the get tenant params

func (*GetTenantParams) WithTimeout added in v0.116.0

func (o *GetTenantParams) WithTimeout(timeout time.Duration) *GetTenantParams

WithTimeout adds the timeout to the get tenant params

func (*GetTenantParams) WriteToRequest added in v0.116.0

func (o *GetTenantParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetTenantReader added in v0.116.0

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

GetTenantReader is a Reader for the GetTenant structure.

func (*GetTenantReader) ReadResponse added in v0.116.0

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

ReadResponse reads a server response into the received o.

type ListOrganizationTenantsDefault

type ListOrganizationTenantsDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

ListOrganizationTenantsDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewListOrganizationTenantsDefault

func NewListOrganizationTenantsDefault(code int) *ListOrganizationTenantsDefault

NewListOrganizationTenantsDefault creates a ListOrganizationTenantsDefault with default headers values

func (*ListOrganizationTenantsDefault) Code

Code gets the status code for the list organization tenants default response

func (*ListOrganizationTenantsDefault) Error

func (*ListOrganizationTenantsDefault) GetPayload

func (*ListOrganizationTenantsDefault) IsClientError

func (o *ListOrganizationTenantsDefault) IsClientError() bool

IsClientError returns true when this list organization tenants default response has a 4xx status code

func (*ListOrganizationTenantsDefault) IsCode

func (o *ListOrganizationTenantsDefault) IsCode(code int) bool

IsCode returns true when this list organization tenants default response a status code equal to that given

func (*ListOrganizationTenantsDefault) IsRedirect

func (o *ListOrganizationTenantsDefault) IsRedirect() bool

IsRedirect returns true when this list organization tenants default response has a 3xx status code

func (*ListOrganizationTenantsDefault) IsServerError

func (o *ListOrganizationTenantsDefault) IsServerError() bool

IsServerError returns true when this list organization tenants default response has a 5xx status code

func (*ListOrganizationTenantsDefault) IsSuccess

func (o *ListOrganizationTenantsDefault) IsSuccess() bool

IsSuccess returns true when this list organization tenants default response has a 2xx status code

func (*ListOrganizationTenantsDefault) String

type ListOrganizationTenantsOK

type ListOrganizationTenantsOK struct {
	Payload *models.VaultRadar20230501ListOrganizationTenantsResponse
}

ListOrganizationTenantsOK describes a response with status code 200, with default header values.

A successful response.

func NewListOrganizationTenantsOK

func NewListOrganizationTenantsOK() *ListOrganizationTenantsOK

NewListOrganizationTenantsOK creates a ListOrganizationTenantsOK with default headers values

func (*ListOrganizationTenantsOK) Code

func (o *ListOrganizationTenantsOK) Code() int

Code gets the status code for the list organization tenants o k response

func (*ListOrganizationTenantsOK) Error

func (o *ListOrganizationTenantsOK) Error() string

func (*ListOrganizationTenantsOK) GetPayload

func (*ListOrganizationTenantsOK) IsClientError

func (o *ListOrganizationTenantsOK) IsClientError() bool

IsClientError returns true when this list organization tenants o k response has a 4xx status code

func (*ListOrganizationTenantsOK) IsCode

func (o *ListOrganizationTenantsOK) IsCode(code int) bool

IsCode returns true when this list organization tenants o k response a status code equal to that given

func (*ListOrganizationTenantsOK) IsRedirect

func (o *ListOrganizationTenantsOK) IsRedirect() bool

IsRedirect returns true when this list organization tenants o k response has a 3xx status code

func (*ListOrganizationTenantsOK) IsServerError

func (o *ListOrganizationTenantsOK) IsServerError() bool

IsServerError returns true when this list organization tenants o k response has a 5xx status code

func (*ListOrganizationTenantsOK) IsSuccess

func (o *ListOrganizationTenantsOK) IsSuccess() bool

IsSuccess returns true when this list organization tenants o k response has a 2xx status code

func (*ListOrganizationTenantsOK) String

func (o *ListOrganizationTenantsOK) String() string

type ListOrganizationTenantsParams

type ListOrganizationTenantsParams struct {

	/* LocationOrganizationID.

	   organization_id is the id of the organization.
	*/
	LocationOrganizationID string

	/* LocationProjectID.

	   project_id is the projects id.
	*/
	LocationProjectID string

	/* LocationRegionProvider.

	   provider is the named cloud provider ("aws", "gcp", "azure")
	*/
	LocationRegionProvider *string

	/* LocationRegionRegion.

	   region is the cloud region ("us-west1", "us-east1")
	*/
	LocationRegionRegion *string

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

ListOrganizationTenantsParams contains all the parameters to send to the API endpoint

for the list organization tenants operation.

Typically these are written to a http.Request.

func NewListOrganizationTenantsParams

func NewListOrganizationTenantsParams() *ListOrganizationTenantsParams

NewListOrganizationTenantsParams creates a new ListOrganizationTenantsParams 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 NewListOrganizationTenantsParamsWithContext

func NewListOrganizationTenantsParamsWithContext(ctx context.Context) *ListOrganizationTenantsParams

NewListOrganizationTenantsParamsWithContext creates a new ListOrganizationTenantsParams object with the ability to set a context for a request.

func NewListOrganizationTenantsParamsWithHTTPClient

func NewListOrganizationTenantsParamsWithHTTPClient(client *http.Client) *ListOrganizationTenantsParams

NewListOrganizationTenantsParamsWithHTTPClient creates a new ListOrganizationTenantsParams object with the ability to set a custom HTTPClient for a request.

func NewListOrganizationTenantsParamsWithTimeout

func NewListOrganizationTenantsParamsWithTimeout(timeout time.Duration) *ListOrganizationTenantsParams

NewListOrganizationTenantsParamsWithTimeout creates a new ListOrganizationTenantsParams object with the ability to set a timeout on a request.

func (*ListOrganizationTenantsParams) SetContext

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

SetContext adds the context to the list organization tenants params

func (*ListOrganizationTenantsParams) SetDefaults

func (o *ListOrganizationTenantsParams) SetDefaults()

SetDefaults hydrates default values in the list organization tenants params (not the query body).

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

func (*ListOrganizationTenantsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list organization tenants params

func (*ListOrganizationTenantsParams) SetLocationOrganizationID

func (o *ListOrganizationTenantsParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the list organization tenants params

func (*ListOrganizationTenantsParams) SetLocationProjectID

func (o *ListOrganizationTenantsParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the list organization tenants params

func (*ListOrganizationTenantsParams) SetLocationRegionProvider

func (o *ListOrganizationTenantsParams) SetLocationRegionProvider(locationRegionProvider *string)

SetLocationRegionProvider adds the locationRegionProvider to the list organization tenants params

func (*ListOrganizationTenantsParams) SetLocationRegionRegion

func (o *ListOrganizationTenantsParams) SetLocationRegionRegion(locationRegionRegion *string)

SetLocationRegionRegion adds the locationRegionRegion to the list organization tenants params

func (*ListOrganizationTenantsParams) SetTimeout

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

SetTimeout adds the timeout to the list organization tenants params

func (*ListOrganizationTenantsParams) WithContext

WithContext adds the context to the list organization tenants params

func (*ListOrganizationTenantsParams) WithDefaults

WithDefaults hydrates default values in the list organization tenants params (not the query body).

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

func (*ListOrganizationTenantsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list organization tenants params

func (*ListOrganizationTenantsParams) WithLocationOrganizationID

func (o *ListOrganizationTenantsParams) WithLocationOrganizationID(locationOrganizationID string) *ListOrganizationTenantsParams

WithLocationOrganizationID adds the locationOrganizationID to the list organization tenants params

func (*ListOrganizationTenantsParams) WithLocationProjectID

func (o *ListOrganizationTenantsParams) WithLocationProjectID(locationProjectID string) *ListOrganizationTenantsParams

WithLocationProjectID adds the locationProjectID to the list organization tenants params

func (*ListOrganizationTenantsParams) WithLocationRegionProvider

func (o *ListOrganizationTenantsParams) WithLocationRegionProvider(locationRegionProvider *string) *ListOrganizationTenantsParams

WithLocationRegionProvider adds the locationRegionProvider to the list organization tenants params

func (*ListOrganizationTenantsParams) WithLocationRegionRegion

func (o *ListOrganizationTenantsParams) WithLocationRegionRegion(locationRegionRegion *string) *ListOrganizationTenantsParams

WithLocationRegionRegion adds the locationRegionRegion to the list organization tenants params

func (*ListOrganizationTenantsParams) WithTimeout

WithTimeout adds the timeout to the list organization tenants params

func (*ListOrganizationTenantsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListOrganizationTenantsReader

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

ListOrganizationTenantsReader is a Reader for the ListOrganizationTenants structure.

func (*ListOrganizationTenantsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProvisionTenantBody added in v0.116.0

type ProvisionTenantBody struct {

	// location
	Location *ProvisionTenantParamsBodyLocation `json:"location,omitempty"`
}

ProvisionTenantBody provision tenant body swagger:model ProvisionTenantBody

func (*ProvisionTenantBody) ContextValidate added in v0.116.0

func (o *ProvisionTenantBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this provision tenant body based on the context it is used

func (*ProvisionTenantBody) MarshalBinary added in v0.116.0

func (o *ProvisionTenantBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProvisionTenantBody) UnmarshalBinary added in v0.116.0

func (o *ProvisionTenantBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProvisionTenantBody) Validate added in v0.116.0

func (o *ProvisionTenantBody) Validate(formats strfmt.Registry) error

Validate validates this provision tenant body

type ProvisionTenantDefault added in v0.116.0

type ProvisionTenantDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}

ProvisionTenantDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewProvisionTenantDefault added in v0.116.0

func NewProvisionTenantDefault(code int) *ProvisionTenantDefault

NewProvisionTenantDefault creates a ProvisionTenantDefault with default headers values

func (*ProvisionTenantDefault) Code added in v0.116.0

func (o *ProvisionTenantDefault) Code() int

Code gets the status code for the provision tenant default response

func (*ProvisionTenantDefault) Error added in v0.116.0

func (o *ProvisionTenantDefault) Error() string

func (*ProvisionTenantDefault) GetPayload added in v0.116.0

func (o *ProvisionTenantDefault) GetPayload() *models.RPCStatus

func (*ProvisionTenantDefault) IsClientError added in v0.116.0

func (o *ProvisionTenantDefault) IsClientError() bool

IsClientError returns true when this provision tenant default response has a 4xx status code

func (*ProvisionTenantDefault) IsCode added in v0.116.0

func (o *ProvisionTenantDefault) IsCode(code int) bool

IsCode returns true when this provision tenant default response a status code equal to that given

func (*ProvisionTenantDefault) IsRedirect added in v0.116.0

func (o *ProvisionTenantDefault) IsRedirect() bool

IsRedirect returns true when this provision tenant default response has a 3xx status code

func (*ProvisionTenantDefault) IsServerError added in v0.116.0

func (o *ProvisionTenantDefault) IsServerError() bool

IsServerError returns true when this provision tenant default response has a 5xx status code

func (*ProvisionTenantDefault) IsSuccess added in v0.116.0

func (o *ProvisionTenantDefault) IsSuccess() bool

IsSuccess returns true when this provision tenant default response has a 2xx status code

func (*ProvisionTenantDefault) String added in v0.116.0

func (o *ProvisionTenantDefault) String() string

type ProvisionTenantOK added in v0.116.0

type ProvisionTenantOK struct {
	Payload interface{}
}

ProvisionTenantOK describes a response with status code 200, with default header values.

A successful response.

func NewProvisionTenantOK added in v0.116.0

func NewProvisionTenantOK() *ProvisionTenantOK

NewProvisionTenantOK creates a ProvisionTenantOK with default headers values

func (*ProvisionTenantOK) Code added in v0.116.0

func (o *ProvisionTenantOK) Code() int

Code gets the status code for the provision tenant o k response

func (*ProvisionTenantOK) Error added in v0.116.0

func (o *ProvisionTenantOK) Error() string

func (*ProvisionTenantOK) GetPayload added in v0.116.0

func (o *ProvisionTenantOK) GetPayload() interface{}

func (*ProvisionTenantOK) IsClientError added in v0.116.0

func (o *ProvisionTenantOK) IsClientError() bool

IsClientError returns true when this provision tenant o k response has a 4xx status code

func (*ProvisionTenantOK) IsCode added in v0.116.0

func (o *ProvisionTenantOK) IsCode(code int) bool

IsCode returns true when this provision tenant o k response a status code equal to that given

func (*ProvisionTenantOK) IsRedirect added in v0.116.0

func (o *ProvisionTenantOK) IsRedirect() bool

IsRedirect returns true when this provision tenant o k response has a 3xx status code

func (*ProvisionTenantOK) IsServerError added in v0.116.0

func (o *ProvisionTenantOK) IsServerError() bool

IsServerError returns true when this provision tenant o k response has a 5xx status code

func (*ProvisionTenantOK) IsSuccess added in v0.116.0

func (o *ProvisionTenantOK) IsSuccess() bool

IsSuccess returns true when this provision tenant o k response has a 2xx status code

func (*ProvisionTenantOK) String added in v0.116.0

func (o *ProvisionTenantOK) String() string

type ProvisionTenantParams added in v0.116.0

type ProvisionTenantParams struct {

	// Body.
	Body ProvisionTenantBody

	/* LocationProjectID.

	   project_id is the projects id.
	*/
	LocationProjectID string

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

ProvisionTenantParams contains all the parameters to send to the API endpoint

for the provision tenant operation.

Typically these are written to a http.Request.

func NewProvisionTenantParams added in v0.116.0

func NewProvisionTenantParams() *ProvisionTenantParams

NewProvisionTenantParams creates a new ProvisionTenantParams 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 NewProvisionTenantParamsWithContext added in v0.116.0

func NewProvisionTenantParamsWithContext(ctx context.Context) *ProvisionTenantParams

NewProvisionTenantParamsWithContext creates a new ProvisionTenantParams object with the ability to set a context for a request.

func NewProvisionTenantParamsWithHTTPClient added in v0.116.0

func NewProvisionTenantParamsWithHTTPClient(client *http.Client) *ProvisionTenantParams

NewProvisionTenantParamsWithHTTPClient creates a new ProvisionTenantParams object with the ability to set a custom HTTPClient for a request.

func NewProvisionTenantParamsWithTimeout added in v0.116.0

func NewProvisionTenantParamsWithTimeout(timeout time.Duration) *ProvisionTenantParams

NewProvisionTenantParamsWithTimeout creates a new ProvisionTenantParams object with the ability to set a timeout on a request.

func (*ProvisionTenantParams) SetBody added in v0.116.0

func (o *ProvisionTenantParams) SetBody(body ProvisionTenantBody)

SetBody adds the body to the provision tenant params

func (*ProvisionTenantParams) SetContext added in v0.116.0

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

SetContext adds the context to the provision tenant params

func (*ProvisionTenantParams) SetDefaults added in v0.116.0

func (o *ProvisionTenantParams) SetDefaults()

SetDefaults hydrates default values in the provision tenant params (not the query body).

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

func (*ProvisionTenantParams) SetHTTPClient added in v0.116.0

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

SetHTTPClient adds the HTTPClient to the provision tenant params

func (*ProvisionTenantParams) SetLocationProjectID added in v0.116.0

func (o *ProvisionTenantParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the provision tenant params

func (*ProvisionTenantParams) SetTimeout added in v0.116.0

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

SetTimeout adds the timeout to the provision tenant params

func (*ProvisionTenantParams) WithBody added in v0.116.0

WithBody adds the body to the provision tenant params

func (*ProvisionTenantParams) WithContext added in v0.116.0

WithContext adds the context to the provision tenant params

func (*ProvisionTenantParams) WithDefaults added in v0.116.0

func (o *ProvisionTenantParams) WithDefaults() *ProvisionTenantParams

WithDefaults hydrates default values in the provision tenant params (not the query body).

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

func (*ProvisionTenantParams) WithHTTPClient added in v0.116.0

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

WithHTTPClient adds the HTTPClient to the provision tenant params

func (*ProvisionTenantParams) WithLocationProjectID added in v0.116.0

func (o *ProvisionTenantParams) WithLocationProjectID(locationProjectID string) *ProvisionTenantParams

WithLocationProjectID adds the locationProjectID to the provision tenant params

func (*ProvisionTenantParams) WithTimeout added in v0.116.0

func (o *ProvisionTenantParams) WithTimeout(timeout time.Duration) *ProvisionTenantParams

WithTimeout adds the timeout to the provision tenant params

func (*ProvisionTenantParams) WriteToRequest added in v0.116.0

func (o *ProvisionTenantParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ProvisionTenantParamsBodyLocation added in v0.116.0

type ProvisionTenantParamsBodyLocation struct {

	// organization_id is the id of the organization.
	OrganizationID string `json:"organization_id,omitempty"`

	// region
	Region *models.LocationRegion `json:"region,omitempty"`
}

ProvisionTenantParamsBodyLocation Location represents a target for an operation in HCP. swagger:model ProvisionTenantParamsBodyLocation

func (*ProvisionTenantParamsBodyLocation) ContextValidate added in v0.116.0

func (o *ProvisionTenantParamsBodyLocation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this provision tenant params body location based on the context it is used

func (*ProvisionTenantParamsBodyLocation) MarshalBinary added in v0.116.0

func (o *ProvisionTenantParamsBodyLocation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProvisionTenantParamsBodyLocation) UnmarshalBinary added in v0.116.0

func (o *ProvisionTenantParamsBodyLocation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProvisionTenantParamsBodyLocation) Validate added in v0.116.0

Validate validates this provision tenant params body location

type ProvisionTenantReader added in v0.116.0

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

ProvisionTenantReader is a Reader for the ProvisionTenant structure.

func (*ProvisionTenantReader) ReadResponse added in v0.116.0

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