Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateTenant(params *CreateTenantParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateTenantOK, error)
- func (a *Client) GetTenant(params *GetTenantParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetTenantOK, error)
- func (a *Client) ListOrganizationTenants(params *ListOrganizationTenantsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListOrganizationTenantsOK, error)
- func (a *Client) ProvisionTenant(params *ProvisionTenantParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ProvisionTenantOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateTenantBody
- type CreateTenantDefault
- func (o *CreateTenantDefault) Code() int
- func (o *CreateTenantDefault) Error() string
- func (o *CreateTenantDefault) GetPayload() *models.RPCStatus
- func (o *CreateTenantDefault) IsClientError() bool
- func (o *CreateTenantDefault) IsCode(code int) bool
- func (o *CreateTenantDefault) IsRedirect() bool
- func (o *CreateTenantDefault) IsServerError() bool
- func (o *CreateTenantDefault) IsSuccess() bool
- func (o *CreateTenantDefault) String() string
- type CreateTenantOK
- func (o *CreateTenantOK) Code() int
- func (o *CreateTenantOK) Error() string
- func (o *CreateTenantOK) GetPayload() *models.VaultRadar20230501TenantCreateResponse
- func (o *CreateTenantOK) IsClientError() bool
- func (o *CreateTenantOK) IsCode(code int) bool
- func (o *CreateTenantOK) IsRedirect() bool
- func (o *CreateTenantOK) IsServerError() bool
- func (o *CreateTenantOK) IsSuccess() bool
- func (o *CreateTenantOK) String() string
- type CreateTenantParams
- func (o *CreateTenantParams) SetBody(body CreateTenantBody)
- func (o *CreateTenantParams) SetContext(ctx context.Context)
- func (o *CreateTenantParams) SetDefaults()
- func (o *CreateTenantParams) SetHTTPClient(client *http.Client)
- func (o *CreateTenantParams) SetLocationProjectID(locationProjectID string)
- func (o *CreateTenantParams) SetTimeout(timeout time.Duration)
- func (o *CreateTenantParams) WithBody(body CreateTenantBody) *CreateTenantParams
- func (o *CreateTenantParams) WithContext(ctx context.Context) *CreateTenantParams
- func (o *CreateTenantParams) WithDefaults() *CreateTenantParams
- func (o *CreateTenantParams) WithHTTPClient(client *http.Client) *CreateTenantParams
- func (o *CreateTenantParams) WithLocationProjectID(locationProjectID string) *CreateTenantParams
- func (o *CreateTenantParams) WithTimeout(timeout time.Duration) *CreateTenantParams
- func (o *CreateTenantParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateTenantParamsBodyLocation
- func (o *CreateTenantParamsBodyLocation) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateTenantParamsBodyLocation) MarshalBinary() ([]byte, error)
- func (o *CreateTenantParamsBodyLocation) UnmarshalBinary(b []byte) error
- func (o *CreateTenantParamsBodyLocation) Validate(formats strfmt.Registry) error
- type CreateTenantReader
- type GetTenantDefault
- func (o *GetTenantDefault) Code() int
- func (o *GetTenantDefault) Error() string
- func (o *GetTenantDefault) GetPayload() *models.RPCStatus
- func (o *GetTenantDefault) IsClientError() bool
- func (o *GetTenantDefault) IsCode(code int) bool
- func (o *GetTenantDefault) IsRedirect() bool
- func (o *GetTenantDefault) IsServerError() bool
- func (o *GetTenantDefault) IsSuccess() bool
- func (o *GetTenantDefault) String() string
- type GetTenantOK
- func (o *GetTenantOK) Code() int
- func (o *GetTenantOK) Error() string
- func (o *GetTenantOK) GetPayload() *models.VaultRadar20230501TenantGetResponse
- func (o *GetTenantOK) IsClientError() bool
- func (o *GetTenantOK) IsCode(code int) bool
- func (o *GetTenantOK) IsRedirect() bool
- func (o *GetTenantOK) IsServerError() bool
- func (o *GetTenantOK) IsSuccess() bool
- func (o *GetTenantOK) String() string
- type GetTenantParams
- func (o *GetTenantParams) SetContext(ctx context.Context)
- func (o *GetTenantParams) SetDefaults()
- func (o *GetTenantParams) SetHTTPClient(client *http.Client)
- func (o *GetTenantParams) SetLocationOrganizationID(locationOrganizationID *string)
- func (o *GetTenantParams) SetLocationProjectID(locationProjectID string)
- func (o *GetTenantParams) SetLocationRegionProvider(locationRegionProvider *string)
- func (o *GetTenantParams) SetLocationRegionRegion(locationRegionRegion *string)
- func (o *GetTenantParams) SetTimeout(timeout time.Duration)
- func (o *GetTenantParams) WithContext(ctx context.Context) *GetTenantParams
- func (o *GetTenantParams) WithDefaults() *GetTenantParams
- func (o *GetTenantParams) WithHTTPClient(client *http.Client) *GetTenantParams
- func (o *GetTenantParams) WithLocationOrganizationID(locationOrganizationID *string) *GetTenantParams
- func (o *GetTenantParams) WithLocationProjectID(locationProjectID string) *GetTenantParams
- func (o *GetTenantParams) WithLocationRegionProvider(locationRegionProvider *string) *GetTenantParams
- func (o *GetTenantParams) WithLocationRegionRegion(locationRegionRegion *string) *GetTenantParams
- func (o *GetTenantParams) WithTimeout(timeout time.Duration) *GetTenantParams
- func (o *GetTenantParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTenantReader
- type ListOrganizationTenantsDefault
- func (o *ListOrganizationTenantsDefault) Code() int
- func (o *ListOrganizationTenantsDefault) Error() string
- func (o *ListOrganizationTenantsDefault) GetPayload() *models.RPCStatus
- func (o *ListOrganizationTenantsDefault) IsClientError() bool
- func (o *ListOrganizationTenantsDefault) IsCode(code int) bool
- func (o *ListOrganizationTenantsDefault) IsRedirect() bool
- func (o *ListOrganizationTenantsDefault) IsServerError() bool
- func (o *ListOrganizationTenantsDefault) IsSuccess() bool
- func (o *ListOrganizationTenantsDefault) String() string
- type ListOrganizationTenantsOK
- func (o *ListOrganizationTenantsOK) Code() int
- func (o *ListOrganizationTenantsOK) Error() string
- func (o *ListOrganizationTenantsOK) GetPayload() *models.VaultRadar20230501ListOrganizationTenantsResponse
- func (o *ListOrganizationTenantsOK) IsClientError() bool
- func (o *ListOrganizationTenantsOK) IsCode(code int) bool
- func (o *ListOrganizationTenantsOK) IsRedirect() bool
- func (o *ListOrganizationTenantsOK) IsServerError() bool
- func (o *ListOrganizationTenantsOK) IsSuccess() bool
- func (o *ListOrganizationTenantsOK) String() string
- type ListOrganizationTenantsParams
- func NewListOrganizationTenantsParams() *ListOrganizationTenantsParams
- func NewListOrganizationTenantsParamsWithContext(ctx context.Context) *ListOrganizationTenantsParams
- func NewListOrganizationTenantsParamsWithHTTPClient(client *http.Client) *ListOrganizationTenantsParams
- func NewListOrganizationTenantsParamsWithTimeout(timeout time.Duration) *ListOrganizationTenantsParams
- func (o *ListOrganizationTenantsParams) SetContext(ctx context.Context)
- func (o *ListOrganizationTenantsParams) SetDefaults()
- func (o *ListOrganizationTenantsParams) SetHTTPClient(client *http.Client)
- func (o *ListOrganizationTenantsParams) SetLocationOrganizationID(locationOrganizationID string)
- func (o *ListOrganizationTenantsParams) SetLocationProjectID(locationProjectID string)
- func (o *ListOrganizationTenantsParams) SetLocationRegionProvider(locationRegionProvider *string)
- func (o *ListOrganizationTenantsParams) SetLocationRegionRegion(locationRegionRegion *string)
- func (o *ListOrganizationTenantsParams) SetTimeout(timeout time.Duration)
- func (o *ListOrganizationTenantsParams) WithContext(ctx context.Context) *ListOrganizationTenantsParams
- func (o *ListOrganizationTenantsParams) WithDefaults() *ListOrganizationTenantsParams
- func (o *ListOrganizationTenantsParams) WithHTTPClient(client *http.Client) *ListOrganizationTenantsParams
- func (o *ListOrganizationTenantsParams) WithLocationOrganizationID(locationOrganizationID string) *ListOrganizationTenantsParams
- func (o *ListOrganizationTenantsParams) WithLocationProjectID(locationProjectID string) *ListOrganizationTenantsParams
- func (o *ListOrganizationTenantsParams) WithLocationRegionProvider(locationRegionProvider *string) *ListOrganizationTenantsParams
- func (o *ListOrganizationTenantsParams) WithLocationRegionRegion(locationRegionRegion *string) *ListOrganizationTenantsParams
- func (o *ListOrganizationTenantsParams) WithTimeout(timeout time.Duration) *ListOrganizationTenantsParams
- func (o *ListOrganizationTenantsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListOrganizationTenantsReader
- type ProvisionTenantBody
- type ProvisionTenantDefault
- func (o *ProvisionTenantDefault) Code() int
- func (o *ProvisionTenantDefault) Error() string
- func (o *ProvisionTenantDefault) GetPayload() *models.RPCStatus
- func (o *ProvisionTenantDefault) IsClientError() bool
- func (o *ProvisionTenantDefault) IsCode(code int) bool
- func (o *ProvisionTenantDefault) IsRedirect() bool
- func (o *ProvisionTenantDefault) IsServerError() bool
- func (o *ProvisionTenantDefault) IsSuccess() bool
- func (o *ProvisionTenantDefault) String() string
- type ProvisionTenantOK
- func (o *ProvisionTenantOK) Code() int
- func (o *ProvisionTenantOK) Error() string
- func (o *ProvisionTenantOK) GetPayload() interface{}
- func (o *ProvisionTenantOK) IsClientError() bool
- func (o *ProvisionTenantOK) IsCode(code int) bool
- func (o *ProvisionTenantOK) IsRedirect() bool
- func (o *ProvisionTenantOK) IsServerError() bool
- func (o *ProvisionTenantOK) IsSuccess() bool
- func (o *ProvisionTenantOK) String() string
- type ProvisionTenantParams
- func NewProvisionTenantParams() *ProvisionTenantParams
- func NewProvisionTenantParamsWithContext(ctx context.Context) *ProvisionTenantParams
- func NewProvisionTenantParamsWithHTTPClient(client *http.Client) *ProvisionTenantParams
- func NewProvisionTenantParamsWithTimeout(timeout time.Duration) *ProvisionTenantParams
- func (o *ProvisionTenantParams) SetBody(body ProvisionTenantBody)
- func (o *ProvisionTenantParams) SetContext(ctx context.Context)
- func (o *ProvisionTenantParams) SetDefaults()
- func (o *ProvisionTenantParams) SetHTTPClient(client *http.Client)
- func (o *ProvisionTenantParams) SetLocationProjectID(locationProjectID string)
- func (o *ProvisionTenantParams) SetTimeout(timeout time.Duration)
- func (o *ProvisionTenantParams) WithBody(body ProvisionTenantBody) *ProvisionTenantParams
- func (o *ProvisionTenantParams) WithContext(ctx context.Context) *ProvisionTenantParams
- func (o *ProvisionTenantParams) WithDefaults() *ProvisionTenantParams
- func (o *ProvisionTenantParams) WithHTTPClient(client *http.Client) *ProvisionTenantParams
- func (o *ProvisionTenantParams) WithLocationProjectID(locationProjectID string) *ProvisionTenantParams
- func (o *ProvisionTenantParams) WithTimeout(timeout time.Duration) *ProvisionTenantParams
- func (o *ProvisionTenantParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ProvisionTenantParamsBodyLocation
- func (o *ProvisionTenantParamsBodyLocation) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *ProvisionTenantParamsBodyLocation) MarshalBinary() ([]byte, error)
- func (o *ProvisionTenantParamsBodyLocation) UnmarshalBinary(b []byte) error
- func (o *ProvisionTenantParamsBodyLocation) Validate(formats strfmt.Registry) error
- type ProvisionTenantReader
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 ¶
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
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 (o *CreateTenantOK) GetPayload() *models.VaultRadar20230501TenantCreateResponse
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 ¶
func (o *CreateTenantParams) WithBody(body CreateTenantBody) *CreateTenantParams
WithBody adds the body to the create tenant params
func (*CreateTenantParams) WithContext ¶
func (o *CreateTenantParams) WithContext(ctx context.Context) *CreateTenantParams
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
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 (o *GetTenantOK) GetPayload() *models.VaultRadar20230501TenantGetResponse
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 ¶
func (o *ListOrganizationTenantsDefault) Code() int
Code gets the status code for the list organization tenants default response
func (*ListOrganizationTenantsDefault) Error ¶
func (o *ListOrganizationTenantsDefault) Error() string
func (*ListOrganizationTenantsDefault) GetPayload ¶
func (o *ListOrganizationTenantsDefault) GetPayload() *models.RPCStatus
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 ¶
func (o *ListOrganizationTenantsDefault) String() 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 (o *ListOrganizationTenantsOK) GetPayload() *models.VaultRadar20230501ListOrganizationTenantsResponse
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 ¶
func (o *ListOrganizationTenantsParams) WithContext(ctx context.Context) *ListOrganizationTenantsParams
WithContext adds the context to the list organization tenants params
func (*ListOrganizationTenantsParams) WithDefaults ¶
func (o *ListOrganizationTenantsParams) WithDefaults() *ListOrganizationTenantsParams
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 ¶
func (o *ListOrganizationTenantsParams) WithHTTPClient(client *http.Client) *ListOrganizationTenantsParams
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 ¶
func (o *ListOrganizationTenantsParams) WithTimeout(timeout time.Duration) *ListOrganizationTenantsParams
WithTimeout adds the timeout to the list organization tenants params
func (*ListOrganizationTenantsParams) WriteToRequest ¶
func (o *ListOrganizationTenantsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
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
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
func (o *ProvisionTenantParams) WithBody(body ProvisionTenantBody) *ProvisionTenantParams
WithBody adds the body to the provision tenant params
func (*ProvisionTenantParams) WithContext ¶ added in v0.116.0
func (o *ProvisionTenantParams) WithContext(ctx context.Context) *ProvisionTenantParams
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
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.