tenant_service

package
v0.112.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 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) ListOrganizationTenants

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

ListOrganizationTenants list organization tenants 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)

	ListOrganizationTenants(params *ListOrganizationTenantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListOrganizationTenantsOK, 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 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.

Jump to

Keyboard shortcuts

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