iam_service

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MPL-2.0 Imports: 12 Imported by: 3

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 iam service API

func (*Client) CreateUserPrincipal

func (a *Client) CreateUserPrincipal(params *CreateUserPrincipalParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateUserPrincipalOK, error)

CreateUserPrincipal creates user principal creates a new user principal

func (*Client) DeleteOrganizationMembership

func (a *Client) DeleteOrganizationMembership(params *DeleteOrganizationMembershipParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteOrganizationMembershipOK, error)

DeleteOrganizationMembership deletes organization membership deletes a user principal s organization membership

func (*Client) GetCurrentUserPrincipal

func (a *Client) GetCurrentUserPrincipal(params *GetCurrentUserPrincipalParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCurrentUserPrincipalOK, error)

GetCurrentUserPrincipal gets current user principal retrieves information about the current user principal this endpoint it meant to be used by external clients over an HTTP API it supports retrieving the basic user principal data useful for any client and optionally the user preferences for the h c p web portal j s application

func (*Client) GetOrganizationAuthMetadata

func (a *Client) GetOrganizationAuthMetadata(params *GetOrganizationAuthMetadataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrganizationAuthMetadataOK, error)

GetOrganizationAuthMetadata gets organization auth metadata returns metadata about the organization s configured authentication methods

func (*Client) GetUserPrincipalByIDInOrganization

func (a *Client) GetUserPrincipalByIDInOrganization(params *GetUserPrincipalByIDInOrganizationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserPrincipalByIDInOrganizationOK, error)

GetUserPrincipalByIDInOrganization gets user principal retrieves a user principal

func (*Client) GetUserPrincipalsByIDsInOrganization

func (a *Client) GetUserPrincipalsByIDsInOrganization(params *GetUserPrincipalsByIDsInOrganizationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserPrincipalsByIDsInOrganizationOK, error)

GetUserPrincipalsByIDsInOrganization gets user principals by i ds in organization is a batch method to fetch users by ID for a given organization if some of the requested users don t exist or aren t members of the given organization then they will be omitted in response we re using p o s t because g e t has a length limitation for URL which is given that user id is UUID would limit us to fetching up to 48 users at a time which is less than ideal

func (*Client) ListUserPrincipalsByOrganization

func (a *Client) ListUserPrincipalsByOrganization(params *ListUserPrincipalsByOrganizationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserPrincipalsByOrganizationOK, error)

ListUserPrincipalsByOrganization lists user principals by organization returns a list of principals that are members of an organization

func (*Client) Ping

func (a *Client) Ping(params *PingParams, opts ...ClientOption) (*PingOK, error)

Ping pings pings the healthcheck endpoint exposed for HTTP healthchecks via datadog synthetic monitoring

func (*Client) SearchPrincipals

func (a *Client) SearchPrincipals(params *SearchPrincipalsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchPrincipalsOK, error)

SearchPrincipals searches principals returns principal details for principals within the supplied organization optional filters may be specified to filter the result set

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateWebConsolePreferences

func (a *Client) UpdateWebConsolePreferences(params *UpdateWebConsolePreferencesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateWebConsolePreferencesOK, error)

UpdateWebConsolePreferences updates web console preferences updates a user principal s web portal fka web console preferences

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateUserPrincipal(params *CreateUserPrincipalParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateUserPrincipalOK, error)

	DeleteOrganizationMembership(params *DeleteOrganizationMembershipParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteOrganizationMembershipOK, error)

	GetCurrentUserPrincipal(params *GetCurrentUserPrincipalParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCurrentUserPrincipalOK, error)

	GetOrganizationAuthMetadata(params *GetOrganizationAuthMetadataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrganizationAuthMetadataOK, error)

	GetUserPrincipalByIDInOrganization(params *GetUserPrincipalByIDInOrganizationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserPrincipalByIDInOrganizationOK, error)

	GetUserPrincipalsByIDsInOrganization(params *GetUserPrincipalsByIDsInOrganizationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserPrincipalsByIDsInOrganizationOK, error)

	ListUserPrincipalsByOrganization(params *ListUserPrincipalsByOrganizationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserPrincipalsByOrganizationOK, error)

	Ping(params *PingParams, opts ...ClientOption) (*PingOK, error)

	SearchPrincipals(params *SearchPrincipalsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchPrincipalsOK, error)

	UpdateWebConsolePreferences(params *UpdateWebConsolePreferencesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateWebConsolePreferencesOK, 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 iam service API client.

type CreateUserPrincipalDefault

type CreateUserPrincipalDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewCreateUserPrincipalDefault

func NewCreateUserPrincipalDefault(code int) *CreateUserPrincipalDefault

NewCreateUserPrincipalDefault creates a CreateUserPrincipalDefault with default headers values

func (*CreateUserPrincipalDefault) Code

func (o *CreateUserPrincipalDefault) Code() int

Code gets the status code for the create user principal default response

func (*CreateUserPrincipalDefault) Error

func (*CreateUserPrincipalDefault) GetPayload

func (*CreateUserPrincipalDefault) IsClientError

func (o *CreateUserPrincipalDefault) IsClientError() bool

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

func (*CreateUserPrincipalDefault) IsCode

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

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

func (*CreateUserPrincipalDefault) IsRedirect

func (o *CreateUserPrincipalDefault) IsRedirect() bool

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

func (*CreateUserPrincipalDefault) IsServerError

func (o *CreateUserPrincipalDefault) IsServerError() bool

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

func (*CreateUserPrincipalDefault) IsSuccess

func (o *CreateUserPrincipalDefault) IsSuccess() bool

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

func (*CreateUserPrincipalDefault) String

func (o *CreateUserPrincipalDefault) String() string

type CreateUserPrincipalOK

type CreateUserPrincipalOK struct {
	Payload *models.HashicorpCloudIamUserPrincipalResponse
}

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

A successful response.

func NewCreateUserPrincipalOK

func NewCreateUserPrincipalOK() *CreateUserPrincipalOK

NewCreateUserPrincipalOK creates a CreateUserPrincipalOK with default headers values

func (*CreateUserPrincipalOK) Error

func (o *CreateUserPrincipalOK) Error() string

func (*CreateUserPrincipalOK) GetPayload

func (*CreateUserPrincipalOK) IsClientError

func (o *CreateUserPrincipalOK) IsClientError() bool

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

func (*CreateUserPrincipalOK) IsCode

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

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

func (*CreateUserPrincipalOK) IsRedirect

func (o *CreateUserPrincipalOK) IsRedirect() bool

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

func (*CreateUserPrincipalOK) IsServerError

func (o *CreateUserPrincipalOK) IsServerError() bool

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

func (*CreateUserPrincipalOK) IsSuccess

func (o *CreateUserPrincipalOK) IsSuccess() bool

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

func (*CreateUserPrincipalOK) String

func (o *CreateUserPrincipalOK) String() string

type CreateUserPrincipalParams

type CreateUserPrincipalParams struct {

	// Body.
	Body *models.HashicorpCloudIamCreateUserPrincipalRequest

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

CreateUserPrincipalParams contains all the parameters to send to the API endpoint

for the create user principal operation.

Typically these are written to a http.Request.

func NewCreateUserPrincipalParams

func NewCreateUserPrincipalParams() *CreateUserPrincipalParams

NewCreateUserPrincipalParams creates a new CreateUserPrincipalParams 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 NewCreateUserPrincipalParamsWithContext

func NewCreateUserPrincipalParamsWithContext(ctx context.Context) *CreateUserPrincipalParams

NewCreateUserPrincipalParamsWithContext creates a new CreateUserPrincipalParams object with the ability to set a context for a request.

func NewCreateUserPrincipalParamsWithHTTPClient

func NewCreateUserPrincipalParamsWithHTTPClient(client *http.Client) *CreateUserPrincipalParams

NewCreateUserPrincipalParamsWithHTTPClient creates a new CreateUserPrincipalParams object with the ability to set a custom HTTPClient for a request.

func NewCreateUserPrincipalParamsWithTimeout

func NewCreateUserPrincipalParamsWithTimeout(timeout time.Duration) *CreateUserPrincipalParams

NewCreateUserPrincipalParamsWithTimeout creates a new CreateUserPrincipalParams object with the ability to set a timeout on a request.

func (*CreateUserPrincipalParams) SetBody

SetBody adds the body to the create user principal params

func (*CreateUserPrincipalParams) SetContext

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

SetContext adds the context to the create user principal params

func (*CreateUserPrincipalParams) SetDefaults

func (o *CreateUserPrincipalParams) SetDefaults()

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

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

func (*CreateUserPrincipalParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create user principal params

func (*CreateUserPrincipalParams) SetTimeout

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

SetTimeout adds the timeout to the create user principal params

func (*CreateUserPrincipalParams) WithBody

WithBody adds the body to the create user principal params

func (*CreateUserPrincipalParams) WithContext

WithContext adds the context to the create user principal params

func (*CreateUserPrincipalParams) WithDefaults

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

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

func (*CreateUserPrincipalParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create user principal params

func (*CreateUserPrincipalParams) WithTimeout

WithTimeout adds the timeout to the create user principal params

func (*CreateUserPrincipalParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateUserPrincipalReader

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

CreateUserPrincipalReader is a Reader for the CreateUserPrincipal structure.

func (*CreateUserPrincipalReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteOrganizationMembershipDefault

type DeleteOrganizationMembershipDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewDeleteOrganizationMembershipDefault

func NewDeleteOrganizationMembershipDefault(code int) *DeleteOrganizationMembershipDefault

NewDeleteOrganizationMembershipDefault creates a DeleteOrganizationMembershipDefault with default headers values

func (*DeleteOrganizationMembershipDefault) Code

Code gets the status code for the delete organization membership default response

func (*DeleteOrganizationMembershipDefault) Error

func (*DeleteOrganizationMembershipDefault) GetPayload

func (*DeleteOrganizationMembershipDefault) IsClientError

func (o *DeleteOrganizationMembershipDefault) IsClientError() bool

IsClientError returns true when this delete organization membership default response has a 4xx status code

func (*DeleteOrganizationMembershipDefault) IsCode

IsCode returns true when this delete organization membership default response a status code equal to that given

func (*DeleteOrganizationMembershipDefault) IsRedirect

func (o *DeleteOrganizationMembershipDefault) IsRedirect() bool

IsRedirect returns true when this delete organization membership default response has a 3xx status code

func (*DeleteOrganizationMembershipDefault) IsServerError

func (o *DeleteOrganizationMembershipDefault) IsServerError() bool

IsServerError returns true when this delete organization membership default response has a 5xx status code

func (*DeleteOrganizationMembershipDefault) IsSuccess

IsSuccess returns true when this delete organization membership default response has a 2xx status code

func (*DeleteOrganizationMembershipDefault) String

type DeleteOrganizationMembershipOK

type DeleteOrganizationMembershipOK struct {
	Payload models.HashicorpCloudIamDeleteOrganizationMembershipResponse
}

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

A successful response.

func NewDeleteOrganizationMembershipOK

func NewDeleteOrganizationMembershipOK() *DeleteOrganizationMembershipOK

NewDeleteOrganizationMembershipOK creates a DeleteOrganizationMembershipOK with default headers values

func (*DeleteOrganizationMembershipOK) Error

func (*DeleteOrganizationMembershipOK) GetPayload

func (*DeleteOrganizationMembershipOK) IsClientError

func (o *DeleteOrganizationMembershipOK) IsClientError() bool

IsClientError returns true when this delete organization membership o k response has a 4xx status code

func (*DeleteOrganizationMembershipOK) IsCode

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

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

func (*DeleteOrganizationMembershipOK) IsRedirect

func (o *DeleteOrganizationMembershipOK) IsRedirect() bool

IsRedirect returns true when this delete organization membership o k response has a 3xx status code

func (*DeleteOrganizationMembershipOK) IsServerError

func (o *DeleteOrganizationMembershipOK) IsServerError() bool

IsServerError returns true when this delete organization membership o k response has a 5xx status code

func (*DeleteOrganizationMembershipOK) IsSuccess

func (o *DeleteOrganizationMembershipOK) IsSuccess() bool

IsSuccess returns true when this delete organization membership o k response has a 2xx status code

func (*DeleteOrganizationMembershipOK) String

type DeleteOrganizationMembershipParams

type DeleteOrganizationMembershipParams struct {

	/* OrganizationID.

	   organization_id is the ID of the organization the user principal is being deleted from.
	*/
	OrganizationID string

	/* UserPrincipalID.

	   user_principal_id is the ID of the user principal to delete from the organization.
	*/
	UserPrincipalID string

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

DeleteOrganizationMembershipParams contains all the parameters to send to the API endpoint

for the delete organization membership operation.

Typically these are written to a http.Request.

func NewDeleteOrganizationMembershipParams

func NewDeleteOrganizationMembershipParams() *DeleteOrganizationMembershipParams

NewDeleteOrganizationMembershipParams creates a new DeleteOrganizationMembershipParams 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 NewDeleteOrganizationMembershipParamsWithContext

func NewDeleteOrganizationMembershipParamsWithContext(ctx context.Context) *DeleteOrganizationMembershipParams

NewDeleteOrganizationMembershipParamsWithContext creates a new DeleteOrganizationMembershipParams object with the ability to set a context for a request.

func NewDeleteOrganizationMembershipParamsWithHTTPClient

func NewDeleteOrganizationMembershipParamsWithHTTPClient(client *http.Client) *DeleteOrganizationMembershipParams

NewDeleteOrganizationMembershipParamsWithHTTPClient creates a new DeleteOrganizationMembershipParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteOrganizationMembershipParamsWithTimeout

func NewDeleteOrganizationMembershipParamsWithTimeout(timeout time.Duration) *DeleteOrganizationMembershipParams

NewDeleteOrganizationMembershipParamsWithTimeout creates a new DeleteOrganizationMembershipParams object with the ability to set a timeout on a request.

func (*DeleteOrganizationMembershipParams) SetContext

SetContext adds the context to the delete organization membership params

func (*DeleteOrganizationMembershipParams) SetDefaults

func (o *DeleteOrganizationMembershipParams) SetDefaults()

SetDefaults hydrates default values in the delete organization membership params (not the query body).

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

func (*DeleteOrganizationMembershipParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete organization membership params

func (*DeleteOrganizationMembershipParams) SetOrganizationID

func (o *DeleteOrganizationMembershipParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the delete organization membership params

func (*DeleteOrganizationMembershipParams) SetTimeout

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

SetTimeout adds the timeout to the delete organization membership params

func (*DeleteOrganizationMembershipParams) SetUserPrincipalID

func (o *DeleteOrganizationMembershipParams) SetUserPrincipalID(userPrincipalID string)

SetUserPrincipalID adds the userPrincipalId to the delete organization membership params

func (*DeleteOrganizationMembershipParams) WithContext

WithContext adds the context to the delete organization membership params

func (*DeleteOrganizationMembershipParams) WithDefaults

WithDefaults hydrates default values in the delete organization membership params (not the query body).

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

func (*DeleteOrganizationMembershipParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete organization membership params

func (*DeleteOrganizationMembershipParams) WithOrganizationID

func (o *DeleteOrganizationMembershipParams) WithOrganizationID(organizationID string) *DeleteOrganizationMembershipParams

WithOrganizationID adds the organizationID to the delete organization membership params

func (*DeleteOrganizationMembershipParams) WithTimeout

WithTimeout adds the timeout to the delete organization membership params

func (*DeleteOrganizationMembershipParams) WithUserPrincipalID

func (o *DeleteOrganizationMembershipParams) WithUserPrincipalID(userPrincipalID string) *DeleteOrganizationMembershipParams

WithUserPrincipalID adds the userPrincipalID to the delete organization membership params

func (*DeleteOrganizationMembershipParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteOrganizationMembershipReader

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

DeleteOrganizationMembershipReader is a Reader for the DeleteOrganizationMembership structure.

func (*DeleteOrganizationMembershipReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCurrentUserPrincipalDefault

type GetCurrentUserPrincipalDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewGetCurrentUserPrincipalDefault

func NewGetCurrentUserPrincipalDefault(code int) *GetCurrentUserPrincipalDefault

NewGetCurrentUserPrincipalDefault creates a GetCurrentUserPrincipalDefault with default headers values

func (*GetCurrentUserPrincipalDefault) Code

Code gets the status code for the get current user principal default response

func (*GetCurrentUserPrincipalDefault) Error

func (*GetCurrentUserPrincipalDefault) GetPayload

func (*GetCurrentUserPrincipalDefault) IsClientError

func (o *GetCurrentUserPrincipalDefault) IsClientError() bool

IsClientError returns true when this get current user principal default response has a 4xx status code

func (*GetCurrentUserPrincipalDefault) IsCode

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

IsCode returns true when this get current user principal default response a status code equal to that given

func (*GetCurrentUserPrincipalDefault) IsRedirect

func (o *GetCurrentUserPrincipalDefault) IsRedirect() bool

IsRedirect returns true when this get current user principal default response has a 3xx status code

func (*GetCurrentUserPrincipalDefault) IsServerError

func (o *GetCurrentUserPrincipalDefault) IsServerError() bool

IsServerError returns true when this get current user principal default response has a 5xx status code

func (*GetCurrentUserPrincipalDefault) IsSuccess

func (o *GetCurrentUserPrincipalDefault) IsSuccess() bool

IsSuccess returns true when this get current user principal default response has a 2xx status code

func (*GetCurrentUserPrincipalDefault) String

type GetCurrentUserPrincipalOK

type GetCurrentUserPrincipalOK struct {
	Payload *models.HashicorpCloudIamGetCurrentUserPrincipalResponse
}

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

A successful response.

func NewGetCurrentUserPrincipalOK

func NewGetCurrentUserPrincipalOK() *GetCurrentUserPrincipalOK

NewGetCurrentUserPrincipalOK creates a GetCurrentUserPrincipalOK with default headers values

func (*GetCurrentUserPrincipalOK) Error

func (o *GetCurrentUserPrincipalOK) Error() string

func (*GetCurrentUserPrincipalOK) GetPayload

func (*GetCurrentUserPrincipalOK) IsClientError

func (o *GetCurrentUserPrincipalOK) IsClientError() bool

IsClientError returns true when this get current user principal o k response has a 4xx status code

func (*GetCurrentUserPrincipalOK) IsCode

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

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

func (*GetCurrentUserPrincipalOK) IsRedirect

func (o *GetCurrentUserPrincipalOK) IsRedirect() bool

IsRedirect returns true when this get current user principal o k response has a 3xx status code

func (*GetCurrentUserPrincipalOK) IsServerError

func (o *GetCurrentUserPrincipalOK) IsServerError() bool

IsServerError returns true when this get current user principal o k response has a 5xx status code

func (*GetCurrentUserPrincipalOK) IsSuccess

func (o *GetCurrentUserPrincipalOK) IsSuccess() bool

IsSuccess returns true when this get current user principal o k response has a 2xx status code

func (*GetCurrentUserPrincipalOK) String

func (o *GetCurrentUserPrincipalOK) String() string

type GetCurrentUserPrincipalParams

type GetCurrentUserPrincipalParams struct {

	/* WebPortalPreferences.

	     web_portal_preferences is a flag indicating whether user's portal preferences
	need to be included or not. Typically the HCP Web Portal JS application will
	set this option to true, as its the main consumer of this data. Other clients
	(e.g. a CLI, a TF provider) will not need to enable it.
	*/
	WebPortalPreferences *bool

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

GetCurrentUserPrincipalParams contains all the parameters to send to the API endpoint

for the get current user principal operation.

Typically these are written to a http.Request.

func NewGetCurrentUserPrincipalParams

func NewGetCurrentUserPrincipalParams() *GetCurrentUserPrincipalParams

NewGetCurrentUserPrincipalParams creates a new GetCurrentUserPrincipalParams 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 NewGetCurrentUserPrincipalParamsWithContext

func NewGetCurrentUserPrincipalParamsWithContext(ctx context.Context) *GetCurrentUserPrincipalParams

NewGetCurrentUserPrincipalParamsWithContext creates a new GetCurrentUserPrincipalParams object with the ability to set a context for a request.

func NewGetCurrentUserPrincipalParamsWithHTTPClient

func NewGetCurrentUserPrincipalParamsWithHTTPClient(client *http.Client) *GetCurrentUserPrincipalParams

NewGetCurrentUserPrincipalParamsWithHTTPClient creates a new GetCurrentUserPrincipalParams object with the ability to set a custom HTTPClient for a request.

func NewGetCurrentUserPrincipalParamsWithTimeout

func NewGetCurrentUserPrincipalParamsWithTimeout(timeout time.Duration) *GetCurrentUserPrincipalParams

NewGetCurrentUserPrincipalParamsWithTimeout creates a new GetCurrentUserPrincipalParams object with the ability to set a timeout on a request.

func (*GetCurrentUserPrincipalParams) SetContext

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

SetContext adds the context to the get current user principal params

func (*GetCurrentUserPrincipalParams) SetDefaults

func (o *GetCurrentUserPrincipalParams) SetDefaults()

SetDefaults hydrates default values in the get current user principal params (not the query body).

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

func (*GetCurrentUserPrincipalParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get current user principal params

func (*GetCurrentUserPrincipalParams) SetTimeout

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

SetTimeout adds the timeout to the get current user principal params

func (*GetCurrentUserPrincipalParams) SetWebPortalPreferences

func (o *GetCurrentUserPrincipalParams) SetWebPortalPreferences(webPortalPreferences *bool)

SetWebPortalPreferences adds the webPortalPreferences to the get current user principal params

func (*GetCurrentUserPrincipalParams) WithContext

WithContext adds the context to the get current user principal params

func (*GetCurrentUserPrincipalParams) WithDefaults

WithDefaults hydrates default values in the get current user principal params (not the query body).

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

func (*GetCurrentUserPrincipalParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get current user principal params

func (*GetCurrentUserPrincipalParams) WithTimeout

WithTimeout adds the timeout to the get current user principal params

func (*GetCurrentUserPrincipalParams) WithWebPortalPreferences

func (o *GetCurrentUserPrincipalParams) WithWebPortalPreferences(webPortalPreferences *bool) *GetCurrentUserPrincipalParams

WithWebPortalPreferences adds the webPortalPreferences to the get current user principal params

func (*GetCurrentUserPrincipalParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCurrentUserPrincipalReader

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

GetCurrentUserPrincipalReader is a Reader for the GetCurrentUserPrincipal structure.

func (*GetCurrentUserPrincipalReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetOrganizationAuthMetadataDefault

type GetOrganizationAuthMetadataDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewGetOrganizationAuthMetadataDefault

func NewGetOrganizationAuthMetadataDefault(code int) *GetOrganizationAuthMetadataDefault

NewGetOrganizationAuthMetadataDefault creates a GetOrganizationAuthMetadataDefault with default headers values

func (*GetOrganizationAuthMetadataDefault) Code

Code gets the status code for the get organization auth metadata default response

func (*GetOrganizationAuthMetadataDefault) Error

func (*GetOrganizationAuthMetadataDefault) GetPayload

func (*GetOrganizationAuthMetadataDefault) IsClientError

func (o *GetOrganizationAuthMetadataDefault) IsClientError() bool

IsClientError returns true when this get organization auth metadata default response has a 4xx status code

func (*GetOrganizationAuthMetadataDefault) IsCode

IsCode returns true when this get organization auth metadata default response a status code equal to that given

func (*GetOrganizationAuthMetadataDefault) IsRedirect

func (o *GetOrganizationAuthMetadataDefault) IsRedirect() bool

IsRedirect returns true when this get organization auth metadata default response has a 3xx status code

func (*GetOrganizationAuthMetadataDefault) IsServerError

func (o *GetOrganizationAuthMetadataDefault) IsServerError() bool

IsServerError returns true when this get organization auth metadata default response has a 5xx status code

func (*GetOrganizationAuthMetadataDefault) IsSuccess

IsSuccess returns true when this get organization auth metadata default response has a 2xx status code

func (*GetOrganizationAuthMetadataDefault) String

type GetOrganizationAuthMetadataOK

type GetOrganizationAuthMetadataOK struct {
	Payload *models.HashicorpCloudIamGetOrganizationAuthMetadataResponse
}

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

A successful response.

func NewGetOrganizationAuthMetadataOK

func NewGetOrganizationAuthMetadataOK() *GetOrganizationAuthMetadataOK

NewGetOrganizationAuthMetadataOK creates a GetOrganizationAuthMetadataOK with default headers values

func (*GetOrganizationAuthMetadataOK) Error

func (*GetOrganizationAuthMetadataOK) GetPayload

func (*GetOrganizationAuthMetadataOK) IsClientError

func (o *GetOrganizationAuthMetadataOK) IsClientError() bool

IsClientError returns true when this get organization auth metadata o k response has a 4xx status code

func (*GetOrganizationAuthMetadataOK) IsCode

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

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

func (*GetOrganizationAuthMetadataOK) IsRedirect

func (o *GetOrganizationAuthMetadataOK) IsRedirect() bool

IsRedirect returns true when this get organization auth metadata o k response has a 3xx status code

func (*GetOrganizationAuthMetadataOK) IsServerError

func (o *GetOrganizationAuthMetadataOK) IsServerError() bool

IsServerError returns true when this get organization auth metadata o k response has a 5xx status code

func (*GetOrganizationAuthMetadataOK) IsSuccess

func (o *GetOrganizationAuthMetadataOK) IsSuccess() bool

IsSuccess returns true when this get organization auth metadata o k response has a 2xx status code

func (*GetOrganizationAuthMetadataOK) String

type GetOrganizationAuthMetadataParams

type GetOrganizationAuthMetadataParams struct {

	/* OrganizationID.

	     organization_id is the UUID identifier of the organization for which
	authentication metadata will be retrieved.
	*/
	OrganizationID string

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

GetOrganizationAuthMetadataParams contains all the parameters to send to the API endpoint

for the get organization auth metadata operation.

Typically these are written to a http.Request.

func NewGetOrganizationAuthMetadataParams

func NewGetOrganizationAuthMetadataParams() *GetOrganizationAuthMetadataParams

NewGetOrganizationAuthMetadataParams creates a new GetOrganizationAuthMetadataParams 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 NewGetOrganizationAuthMetadataParamsWithContext

func NewGetOrganizationAuthMetadataParamsWithContext(ctx context.Context) *GetOrganizationAuthMetadataParams

NewGetOrganizationAuthMetadataParamsWithContext creates a new GetOrganizationAuthMetadataParams object with the ability to set a context for a request.

func NewGetOrganizationAuthMetadataParamsWithHTTPClient

func NewGetOrganizationAuthMetadataParamsWithHTTPClient(client *http.Client) *GetOrganizationAuthMetadataParams

NewGetOrganizationAuthMetadataParamsWithHTTPClient creates a new GetOrganizationAuthMetadataParams object with the ability to set a custom HTTPClient for a request.

func NewGetOrganizationAuthMetadataParamsWithTimeout

func NewGetOrganizationAuthMetadataParamsWithTimeout(timeout time.Duration) *GetOrganizationAuthMetadataParams

NewGetOrganizationAuthMetadataParamsWithTimeout creates a new GetOrganizationAuthMetadataParams object with the ability to set a timeout on a request.

func (*GetOrganizationAuthMetadataParams) SetContext

SetContext adds the context to the get organization auth metadata params

func (*GetOrganizationAuthMetadataParams) SetDefaults

func (o *GetOrganizationAuthMetadataParams) SetDefaults()

SetDefaults hydrates default values in the get organization auth metadata params (not the query body).

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

func (*GetOrganizationAuthMetadataParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get organization auth metadata params

func (*GetOrganizationAuthMetadataParams) SetOrganizationID

func (o *GetOrganizationAuthMetadataParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the get organization auth metadata params

func (*GetOrganizationAuthMetadataParams) SetTimeout

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

SetTimeout adds the timeout to the get organization auth metadata params

func (*GetOrganizationAuthMetadataParams) WithContext

WithContext adds the context to the get organization auth metadata params

func (*GetOrganizationAuthMetadataParams) WithDefaults

WithDefaults hydrates default values in the get organization auth metadata params (not the query body).

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

func (*GetOrganizationAuthMetadataParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get organization auth metadata params

func (*GetOrganizationAuthMetadataParams) WithOrganizationID

func (o *GetOrganizationAuthMetadataParams) WithOrganizationID(organizationID string) *GetOrganizationAuthMetadataParams

WithOrganizationID adds the organizationID to the get organization auth metadata params

func (*GetOrganizationAuthMetadataParams) WithTimeout

WithTimeout adds the timeout to the get organization auth metadata params

func (*GetOrganizationAuthMetadataParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOrganizationAuthMetadataReader

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

GetOrganizationAuthMetadataReader is a Reader for the GetOrganizationAuthMetadata structure.

func (*GetOrganizationAuthMetadataReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserPrincipalByIDInOrganizationDefault

type GetUserPrincipalByIDInOrganizationDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewGetUserPrincipalByIDInOrganizationDefault

func NewGetUserPrincipalByIDInOrganizationDefault(code int) *GetUserPrincipalByIDInOrganizationDefault

NewGetUserPrincipalByIDInOrganizationDefault creates a GetUserPrincipalByIDInOrganizationDefault with default headers values

func (*GetUserPrincipalByIDInOrganizationDefault) Code

Code gets the status code for the get user principal by Id in organization default response

func (*GetUserPrincipalByIDInOrganizationDefault) Error

func (*GetUserPrincipalByIDInOrganizationDefault) GetPayload

func (*GetUserPrincipalByIDInOrganizationDefault) IsClientError

IsClientError returns true when this get user principal by Id in organization default response has a 4xx status code

func (*GetUserPrincipalByIDInOrganizationDefault) IsCode

IsCode returns true when this get user principal by Id in organization default response a status code equal to that given

func (*GetUserPrincipalByIDInOrganizationDefault) IsRedirect

IsRedirect returns true when this get user principal by Id in organization default response has a 3xx status code

func (*GetUserPrincipalByIDInOrganizationDefault) IsServerError

IsServerError returns true when this get user principal by Id in organization default response has a 5xx status code

func (*GetUserPrincipalByIDInOrganizationDefault) IsSuccess

IsSuccess returns true when this get user principal by Id in organization default response has a 2xx status code

func (*GetUserPrincipalByIDInOrganizationDefault) String

type GetUserPrincipalByIDInOrganizationOK

type GetUserPrincipalByIDInOrganizationOK struct {
	Payload *models.HashicorpCloudIamUserPrincipalResponse
}

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

A successful response.

func NewGetUserPrincipalByIDInOrganizationOK

func NewGetUserPrincipalByIDInOrganizationOK() *GetUserPrincipalByIDInOrganizationOK

NewGetUserPrincipalByIDInOrganizationOK creates a GetUserPrincipalByIDInOrganizationOK with default headers values

func (*GetUserPrincipalByIDInOrganizationOK) Error

func (*GetUserPrincipalByIDInOrganizationOK) GetPayload

func (*GetUserPrincipalByIDInOrganizationOK) IsClientError

func (o *GetUserPrincipalByIDInOrganizationOK) IsClientError() bool

IsClientError returns true when this get user principal by Id in organization o k response has a 4xx status code

func (*GetUserPrincipalByIDInOrganizationOK) IsCode

IsCode returns true when this get user principal by Id in organization o k response a status code equal to that given

func (*GetUserPrincipalByIDInOrganizationOK) IsRedirect

IsRedirect returns true when this get user principal by Id in organization o k response has a 3xx status code

func (*GetUserPrincipalByIDInOrganizationOK) IsServerError

func (o *GetUserPrincipalByIDInOrganizationOK) IsServerError() bool

IsServerError returns true when this get user principal by Id in organization o k response has a 5xx status code

func (*GetUserPrincipalByIDInOrganizationOK) IsSuccess

IsSuccess returns true when this get user principal by Id in organization o k response has a 2xx status code

func (*GetUserPrincipalByIDInOrganizationOK) String

type GetUserPrincipalByIDInOrganizationParams

type GetUserPrincipalByIDInOrganizationParams struct {

	/* OrganizationID.

	   organization_id is the organization_id the requested user principal belongs to.
	*/
	OrganizationID string

	/* UserPrincipalID.

	   user_principal_id is the user ID for the requested user principal.
	*/
	UserPrincipalID string

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

GetUserPrincipalByIDInOrganizationParams contains all the parameters to send to the API endpoint

for the get user principal by Id in organization operation.

Typically these are written to a http.Request.

func NewGetUserPrincipalByIDInOrganizationParams

func NewGetUserPrincipalByIDInOrganizationParams() *GetUserPrincipalByIDInOrganizationParams

NewGetUserPrincipalByIDInOrganizationParams creates a new GetUserPrincipalByIDInOrganizationParams 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 NewGetUserPrincipalByIDInOrganizationParamsWithContext

func NewGetUserPrincipalByIDInOrganizationParamsWithContext(ctx context.Context) *GetUserPrincipalByIDInOrganizationParams

NewGetUserPrincipalByIDInOrganizationParamsWithContext creates a new GetUserPrincipalByIDInOrganizationParams object with the ability to set a context for a request.

func NewGetUserPrincipalByIDInOrganizationParamsWithHTTPClient

func NewGetUserPrincipalByIDInOrganizationParamsWithHTTPClient(client *http.Client) *GetUserPrincipalByIDInOrganizationParams

NewGetUserPrincipalByIDInOrganizationParamsWithHTTPClient creates a new GetUserPrincipalByIDInOrganizationParams object with the ability to set a custom HTTPClient for a request.

func NewGetUserPrincipalByIDInOrganizationParamsWithTimeout

func NewGetUserPrincipalByIDInOrganizationParamsWithTimeout(timeout time.Duration) *GetUserPrincipalByIDInOrganizationParams

NewGetUserPrincipalByIDInOrganizationParamsWithTimeout creates a new GetUserPrincipalByIDInOrganizationParams object with the ability to set a timeout on a request.

func (*GetUserPrincipalByIDInOrganizationParams) SetContext

SetContext adds the context to the get user principal by Id in organization params

func (*GetUserPrincipalByIDInOrganizationParams) SetDefaults

SetDefaults hydrates default values in the get user principal by Id in organization params (not the query body).

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

func (*GetUserPrincipalByIDInOrganizationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user principal by Id in organization params

func (*GetUserPrincipalByIDInOrganizationParams) SetOrganizationID

func (o *GetUserPrincipalByIDInOrganizationParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the get user principal by Id in organization params

func (*GetUserPrincipalByIDInOrganizationParams) SetTimeout

SetTimeout adds the timeout to the get user principal by Id in organization params

func (*GetUserPrincipalByIDInOrganizationParams) SetUserPrincipalID

func (o *GetUserPrincipalByIDInOrganizationParams) SetUserPrincipalID(userPrincipalID string)

SetUserPrincipalID adds the userPrincipalId to the get user principal by Id in organization params

func (*GetUserPrincipalByIDInOrganizationParams) WithContext

WithContext adds the context to the get user principal by Id in organization params

func (*GetUserPrincipalByIDInOrganizationParams) WithDefaults

WithDefaults hydrates default values in the get user principal by Id in organization params (not the query body).

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

func (*GetUserPrincipalByIDInOrganizationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get user principal by Id in organization params

func (*GetUserPrincipalByIDInOrganizationParams) WithOrganizationID

WithOrganizationID adds the organizationID to the get user principal by Id in organization params

func (*GetUserPrincipalByIDInOrganizationParams) WithTimeout

WithTimeout adds the timeout to the get user principal by Id in organization params

func (*GetUserPrincipalByIDInOrganizationParams) WithUserPrincipalID

WithUserPrincipalID adds the userPrincipalID to the get user principal by Id in organization params

func (*GetUserPrincipalByIDInOrganizationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUserPrincipalByIDInOrganizationReader

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

GetUserPrincipalByIDInOrganizationReader is a Reader for the GetUserPrincipalByIDInOrganization structure.

func (*GetUserPrincipalByIDInOrganizationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserPrincipalsByIDsInOrganizationDefault

type GetUserPrincipalsByIDsInOrganizationDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewGetUserPrincipalsByIDsInOrganizationDefault

func NewGetUserPrincipalsByIDsInOrganizationDefault(code int) *GetUserPrincipalsByIDsInOrganizationDefault

NewGetUserPrincipalsByIDsInOrganizationDefault creates a GetUserPrincipalsByIDsInOrganizationDefault with default headers values

func (*GetUserPrincipalsByIDsInOrganizationDefault) Code

Code gets the status code for the get user principals by i ds in organization default response

func (*GetUserPrincipalsByIDsInOrganizationDefault) Error

func (*GetUserPrincipalsByIDsInOrganizationDefault) GetPayload

func (*GetUserPrincipalsByIDsInOrganizationDefault) IsClientError

IsClientError returns true when this get user principals by i ds in organization default response has a 4xx status code

func (*GetUserPrincipalsByIDsInOrganizationDefault) IsCode

IsCode returns true when this get user principals by i ds in organization default response a status code equal to that given

func (*GetUserPrincipalsByIDsInOrganizationDefault) IsRedirect

IsRedirect returns true when this get user principals by i ds in organization default response has a 3xx status code

func (*GetUserPrincipalsByIDsInOrganizationDefault) IsServerError

IsServerError returns true when this get user principals by i ds in organization default response has a 5xx status code

func (*GetUserPrincipalsByIDsInOrganizationDefault) IsSuccess

IsSuccess returns true when this get user principals by i ds in organization default response has a 2xx status code

func (*GetUserPrincipalsByIDsInOrganizationDefault) String

type GetUserPrincipalsByIDsInOrganizationOK

type GetUserPrincipalsByIDsInOrganizationOK struct {
	Payload *models.HashicorpCloudIamGetUserPrincipalsByIDsInOrganizationResponse
}

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

A successful response.

func NewGetUserPrincipalsByIDsInOrganizationOK

func NewGetUserPrincipalsByIDsInOrganizationOK() *GetUserPrincipalsByIDsInOrganizationOK

NewGetUserPrincipalsByIDsInOrganizationOK creates a GetUserPrincipalsByIDsInOrganizationOK with default headers values

func (*GetUserPrincipalsByIDsInOrganizationOK) Error

func (*GetUserPrincipalsByIDsInOrganizationOK) IsClientError

func (o *GetUserPrincipalsByIDsInOrganizationOK) IsClientError() bool

IsClientError returns true when this get user principals by i ds in organization o k response has a 4xx status code

func (*GetUserPrincipalsByIDsInOrganizationOK) IsCode

IsCode returns true when this get user principals by i ds in organization o k response a status code equal to that given

func (*GetUserPrincipalsByIDsInOrganizationOK) IsRedirect

IsRedirect returns true when this get user principals by i ds in organization o k response has a 3xx status code

func (*GetUserPrincipalsByIDsInOrganizationOK) IsServerError

func (o *GetUserPrincipalsByIDsInOrganizationOK) IsServerError() bool

IsServerError returns true when this get user principals by i ds in organization o k response has a 5xx status code

func (*GetUserPrincipalsByIDsInOrganizationOK) IsSuccess

IsSuccess returns true when this get user principals by i ds in organization o k response has a 2xx status code

func (*GetUserPrincipalsByIDsInOrganizationOK) String

type GetUserPrincipalsByIDsInOrganizationParams

type GetUserPrincipalsByIDsInOrganizationParams struct {

	// Body.
	Body *models.HashicorpCloudIamGetUserPrincipalsByIDsInOrganizationRequest

	/* OrganizationID.

	   organization_id is the ID of organization for users to look up
	*/
	OrganizationID string

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

GetUserPrincipalsByIDsInOrganizationParams contains all the parameters to send to the API endpoint

for the get user principals by i ds in organization operation.

Typically these are written to a http.Request.

func NewGetUserPrincipalsByIDsInOrganizationParams

func NewGetUserPrincipalsByIDsInOrganizationParams() *GetUserPrincipalsByIDsInOrganizationParams

NewGetUserPrincipalsByIDsInOrganizationParams creates a new GetUserPrincipalsByIDsInOrganizationParams 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 NewGetUserPrincipalsByIDsInOrganizationParamsWithContext

func NewGetUserPrincipalsByIDsInOrganizationParamsWithContext(ctx context.Context) *GetUserPrincipalsByIDsInOrganizationParams

NewGetUserPrincipalsByIDsInOrganizationParamsWithContext creates a new GetUserPrincipalsByIDsInOrganizationParams object with the ability to set a context for a request.

func NewGetUserPrincipalsByIDsInOrganizationParamsWithHTTPClient

func NewGetUserPrincipalsByIDsInOrganizationParamsWithHTTPClient(client *http.Client) *GetUserPrincipalsByIDsInOrganizationParams

NewGetUserPrincipalsByIDsInOrganizationParamsWithHTTPClient creates a new GetUserPrincipalsByIDsInOrganizationParams object with the ability to set a custom HTTPClient for a request.

func NewGetUserPrincipalsByIDsInOrganizationParamsWithTimeout

func NewGetUserPrincipalsByIDsInOrganizationParamsWithTimeout(timeout time.Duration) *GetUserPrincipalsByIDsInOrganizationParams

NewGetUserPrincipalsByIDsInOrganizationParamsWithTimeout creates a new GetUserPrincipalsByIDsInOrganizationParams object with the ability to set a timeout on a request.

func (*GetUserPrincipalsByIDsInOrganizationParams) SetBody

SetBody adds the body to the get user principals by i ds in organization params

func (*GetUserPrincipalsByIDsInOrganizationParams) SetContext

SetContext adds the context to the get user principals by i ds in organization params

func (*GetUserPrincipalsByIDsInOrganizationParams) SetDefaults

SetDefaults hydrates default values in the get user principals by i ds in organization params (not the query body).

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

func (*GetUserPrincipalsByIDsInOrganizationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user principals by i ds in organization params

func (*GetUserPrincipalsByIDsInOrganizationParams) SetOrganizationID

func (o *GetUserPrincipalsByIDsInOrganizationParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the get user principals by i ds in organization params

func (*GetUserPrincipalsByIDsInOrganizationParams) SetTimeout

SetTimeout adds the timeout to the get user principals by i ds in organization params

func (*GetUserPrincipalsByIDsInOrganizationParams) WithBody

WithBody adds the body to the get user principals by i ds in organization params

func (*GetUserPrincipalsByIDsInOrganizationParams) WithContext

WithContext adds the context to the get user principals by i ds in organization params

func (*GetUserPrincipalsByIDsInOrganizationParams) WithDefaults

WithDefaults hydrates default values in the get user principals by i ds in organization params (not the query body).

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

func (*GetUserPrincipalsByIDsInOrganizationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get user principals by i ds in organization params

func (*GetUserPrincipalsByIDsInOrganizationParams) WithOrganizationID

WithOrganizationID adds the organizationID to the get user principals by i ds in organization params

func (*GetUserPrincipalsByIDsInOrganizationParams) WithTimeout

WithTimeout adds the timeout to the get user principals by i ds in organization params

func (*GetUserPrincipalsByIDsInOrganizationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUserPrincipalsByIDsInOrganizationReader

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

GetUserPrincipalsByIDsInOrganizationReader is a Reader for the GetUserPrincipalsByIDsInOrganization structure.

func (*GetUserPrincipalsByIDsInOrganizationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListUserPrincipalsByOrganizationDefault

type ListUserPrincipalsByOrganizationDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewListUserPrincipalsByOrganizationDefault

func NewListUserPrincipalsByOrganizationDefault(code int) *ListUserPrincipalsByOrganizationDefault

NewListUserPrincipalsByOrganizationDefault creates a ListUserPrincipalsByOrganizationDefault with default headers values

func (*ListUserPrincipalsByOrganizationDefault) Code

Code gets the status code for the list user principals by organization default response

func (*ListUserPrincipalsByOrganizationDefault) Error

func (*ListUserPrincipalsByOrganizationDefault) GetPayload

func (*ListUserPrincipalsByOrganizationDefault) IsClientError

func (o *ListUserPrincipalsByOrganizationDefault) IsClientError() bool

IsClientError returns true when this list user principals by organization default response has a 4xx status code

func (*ListUserPrincipalsByOrganizationDefault) IsCode

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

func (*ListUserPrincipalsByOrganizationDefault) IsRedirect

IsRedirect returns true when this list user principals by organization default response has a 3xx status code

func (*ListUserPrincipalsByOrganizationDefault) IsServerError

func (o *ListUserPrincipalsByOrganizationDefault) IsServerError() bool

IsServerError returns true when this list user principals by organization default response has a 5xx status code

func (*ListUserPrincipalsByOrganizationDefault) IsSuccess

IsSuccess returns true when this list user principals by organization default response has a 2xx status code

func (*ListUserPrincipalsByOrganizationDefault) String

type ListUserPrincipalsByOrganizationOK

type ListUserPrincipalsByOrganizationOK struct {
	Payload *models.HashicorpCloudIamListUserPrincipalsByOrganizationResponse
}

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

A successful response.

func NewListUserPrincipalsByOrganizationOK

func NewListUserPrincipalsByOrganizationOK() *ListUserPrincipalsByOrganizationOK

NewListUserPrincipalsByOrganizationOK creates a ListUserPrincipalsByOrganizationOK with default headers values

func (*ListUserPrincipalsByOrganizationOK) Error

func (*ListUserPrincipalsByOrganizationOK) GetPayload

func (*ListUserPrincipalsByOrganizationOK) IsClientError

func (o *ListUserPrincipalsByOrganizationOK) IsClientError() bool

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

func (*ListUserPrincipalsByOrganizationOK) IsCode

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

func (*ListUserPrincipalsByOrganizationOK) IsRedirect

func (o *ListUserPrincipalsByOrganizationOK) IsRedirect() bool

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

func (*ListUserPrincipalsByOrganizationOK) IsServerError

func (o *ListUserPrincipalsByOrganizationOK) IsServerError() bool

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

func (*ListUserPrincipalsByOrganizationOK) IsSuccess

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

func (*ListUserPrincipalsByOrganizationOK) String

type ListUserPrincipalsByOrganizationParams

type ListUserPrincipalsByOrganizationParams struct {

	/* OrganizationID.

	   organization_id is the UUID of an organization.
	*/
	OrganizationID string

	/* PaginationNextPageToken.

	     Specifies a page token to use to retrieve the next page. Set this to the
	`next_page_token` returned by previous list requests to get the next page of
	results. If set, `previous_page_token` must not be set.
	*/
	PaginationNextPageToken *string

	/* PaginationPageSize.

	     The max number of results per page that should be returned. If the number
	of available results is larger than `page_size`, a `next_page_token` is
	returned which can be used to get the next page of results in subsequent
	requests. A value of zero will cause `page_size` to be defaulted.

	     Format: int64
	*/
	PaginationPageSize *int64

	/* PaginationPreviousPageToken.

	     Specifies a page token to use to retrieve the previous page. Set this to
	the `previous_page_token` returned by previous list requests to get the
	previous page of results. If set, `next_page_token` must not be set.
	*/
	PaginationPreviousPageToken *string

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

ListUserPrincipalsByOrganizationParams contains all the parameters to send to the API endpoint

for the list user principals by organization operation.

Typically these are written to a http.Request.

func NewListUserPrincipalsByOrganizationParams

func NewListUserPrincipalsByOrganizationParams() *ListUserPrincipalsByOrganizationParams

NewListUserPrincipalsByOrganizationParams creates a new ListUserPrincipalsByOrganizationParams 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 NewListUserPrincipalsByOrganizationParamsWithContext

func NewListUserPrincipalsByOrganizationParamsWithContext(ctx context.Context) *ListUserPrincipalsByOrganizationParams

NewListUserPrincipalsByOrganizationParamsWithContext creates a new ListUserPrincipalsByOrganizationParams object with the ability to set a context for a request.

func NewListUserPrincipalsByOrganizationParamsWithHTTPClient

func NewListUserPrincipalsByOrganizationParamsWithHTTPClient(client *http.Client) *ListUserPrincipalsByOrganizationParams

NewListUserPrincipalsByOrganizationParamsWithHTTPClient creates a new ListUserPrincipalsByOrganizationParams object with the ability to set a custom HTTPClient for a request.

func NewListUserPrincipalsByOrganizationParamsWithTimeout

func NewListUserPrincipalsByOrganizationParamsWithTimeout(timeout time.Duration) *ListUserPrincipalsByOrganizationParams

NewListUserPrincipalsByOrganizationParamsWithTimeout creates a new ListUserPrincipalsByOrganizationParams object with the ability to set a timeout on a request.

func (*ListUserPrincipalsByOrganizationParams) SetContext

SetContext adds the context to the list user principals by organization params

func (*ListUserPrincipalsByOrganizationParams) SetDefaults

func (o *ListUserPrincipalsByOrganizationParams) SetDefaults()

SetDefaults hydrates default values in the list user principals by organization params (not the query body).

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

func (*ListUserPrincipalsByOrganizationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list user principals by organization params

func (*ListUserPrincipalsByOrganizationParams) SetOrganizationID

func (o *ListUserPrincipalsByOrganizationParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the list user principals by organization params

func (*ListUserPrincipalsByOrganizationParams) SetPaginationNextPageToken

func (o *ListUserPrincipalsByOrganizationParams) SetPaginationNextPageToken(paginationNextPageToken *string)

SetPaginationNextPageToken adds the paginationNextPageToken to the list user principals by organization params

func (*ListUserPrincipalsByOrganizationParams) SetPaginationPageSize

func (o *ListUserPrincipalsByOrganizationParams) SetPaginationPageSize(paginationPageSize *int64)

SetPaginationPageSize adds the paginationPageSize to the list user principals by organization params

func (*ListUserPrincipalsByOrganizationParams) SetPaginationPreviousPageToken

func (o *ListUserPrincipalsByOrganizationParams) SetPaginationPreviousPageToken(paginationPreviousPageToken *string)

SetPaginationPreviousPageToken adds the paginationPreviousPageToken to the list user principals by organization params

func (*ListUserPrincipalsByOrganizationParams) SetTimeout

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

SetTimeout adds the timeout to the list user principals by organization params

func (*ListUserPrincipalsByOrganizationParams) WithContext

WithContext adds the context to the list user principals by organization params

func (*ListUserPrincipalsByOrganizationParams) WithDefaults

WithDefaults hydrates default values in the list user principals by organization params (not the query body).

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

func (*ListUserPrincipalsByOrganizationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list user principals by organization params

func (*ListUserPrincipalsByOrganizationParams) WithOrganizationID

WithOrganizationID adds the organizationID to the list user principals by organization params

func (*ListUserPrincipalsByOrganizationParams) WithPaginationNextPageToken

func (o *ListUserPrincipalsByOrganizationParams) WithPaginationNextPageToken(paginationNextPageToken *string) *ListUserPrincipalsByOrganizationParams

WithPaginationNextPageToken adds the paginationNextPageToken to the list user principals by organization params

func (*ListUserPrincipalsByOrganizationParams) WithPaginationPageSize

func (o *ListUserPrincipalsByOrganizationParams) WithPaginationPageSize(paginationPageSize *int64) *ListUserPrincipalsByOrganizationParams

WithPaginationPageSize adds the paginationPageSize to the list user principals by organization params

func (*ListUserPrincipalsByOrganizationParams) WithPaginationPreviousPageToken

func (o *ListUserPrincipalsByOrganizationParams) WithPaginationPreviousPageToken(paginationPreviousPageToken *string) *ListUserPrincipalsByOrganizationParams

WithPaginationPreviousPageToken adds the paginationPreviousPageToken to the list user principals by organization params

func (*ListUserPrincipalsByOrganizationParams) WithTimeout

WithTimeout adds the timeout to the list user principals by organization params

func (*ListUserPrincipalsByOrganizationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListUserPrincipalsByOrganizationReader

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

ListUserPrincipalsByOrganizationReader is a Reader for the ListUserPrincipalsByOrganization structure.

func (*ListUserPrincipalsByOrganizationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PingDefault

type PingDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewPingDefault

func NewPingDefault(code int) *PingDefault

NewPingDefault creates a PingDefault with default headers values

func (*PingDefault) Code

func (o *PingDefault) Code() int

Code gets the status code for the ping default response

func (*PingDefault) Error

func (o *PingDefault) Error() string

func (*PingDefault) GetPayload

func (o *PingDefault) GetPayload() *cloud.GoogleRPCStatus

func (*PingDefault) IsClientError

func (o *PingDefault) IsClientError() bool

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

func (*PingDefault) IsCode

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

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

func (*PingDefault) IsRedirect

func (o *PingDefault) IsRedirect() bool

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

func (*PingDefault) IsServerError

func (o *PingDefault) IsServerError() bool

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

func (*PingDefault) IsSuccess

func (o *PingDefault) IsSuccess() bool

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

func (*PingDefault) String

func (o *PingDefault) String() string

type PingOK

type PingOK struct {
	Payload models.HashicorpCloudIamPingResponse
}

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

A successful response.

func NewPingOK

func NewPingOK() *PingOK

NewPingOK creates a PingOK with default headers values

func (*PingOK) Error

func (o *PingOK) Error() string

func (*PingOK) GetPayload

func (*PingOK) IsClientError

func (o *PingOK) IsClientError() bool

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

func (*PingOK) IsCode

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

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

func (*PingOK) IsRedirect

func (o *PingOK) IsRedirect() bool

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

func (*PingOK) IsServerError

func (o *PingOK) IsServerError() bool

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

func (*PingOK) IsSuccess

func (o *PingOK) IsSuccess() bool

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

func (*PingOK) String

func (o *PingOK) String() string

type PingParams

type PingParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PingParams contains all the parameters to send to the API endpoint

for the ping operation.

Typically these are written to a http.Request.

func NewPingParams

func NewPingParams() *PingParams

NewPingParams creates a new PingParams 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 NewPingParamsWithContext

func NewPingParamsWithContext(ctx context.Context) *PingParams

NewPingParamsWithContext creates a new PingParams object with the ability to set a context for a request.

func NewPingParamsWithHTTPClient

func NewPingParamsWithHTTPClient(client *http.Client) *PingParams

NewPingParamsWithHTTPClient creates a new PingParams object with the ability to set a custom HTTPClient for a request.

func NewPingParamsWithTimeout

func NewPingParamsWithTimeout(timeout time.Duration) *PingParams

NewPingParamsWithTimeout creates a new PingParams object with the ability to set a timeout on a request.

func (*PingParams) SetContext

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

SetContext adds the context to the ping params

func (*PingParams) SetDefaults

func (o *PingParams) SetDefaults()

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

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

func (*PingParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the ping params

func (*PingParams) SetTimeout

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

SetTimeout adds the timeout to the ping params

func (*PingParams) WithContext

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

WithContext adds the context to the ping params

func (*PingParams) WithDefaults

func (o *PingParams) WithDefaults() *PingParams

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

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

func (*PingParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the ping params

func (*PingParams) WithTimeout

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

WithTimeout adds the timeout to the ping params

func (*PingParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PingReader

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

PingReader is a Reader for the Ping structure.

func (*PingReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchPrincipalsDefault

type SearchPrincipalsDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewSearchPrincipalsDefault

func NewSearchPrincipalsDefault(code int) *SearchPrincipalsDefault

NewSearchPrincipalsDefault creates a SearchPrincipalsDefault with default headers values

func (*SearchPrincipalsDefault) Code

func (o *SearchPrincipalsDefault) Code() int

Code gets the status code for the search principals default response

func (*SearchPrincipalsDefault) Error

func (o *SearchPrincipalsDefault) Error() string

func (*SearchPrincipalsDefault) GetPayload

func (*SearchPrincipalsDefault) IsClientError

func (o *SearchPrincipalsDefault) IsClientError() bool

IsClientError returns true when this search principals default response has a 4xx status code

func (*SearchPrincipalsDefault) IsCode

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

IsCode returns true when this search principals default response a status code equal to that given

func (*SearchPrincipalsDefault) IsRedirect

func (o *SearchPrincipalsDefault) IsRedirect() bool

IsRedirect returns true when this search principals default response has a 3xx status code

func (*SearchPrincipalsDefault) IsServerError

func (o *SearchPrincipalsDefault) IsServerError() bool

IsServerError returns true when this search principals default response has a 5xx status code

func (*SearchPrincipalsDefault) IsSuccess

func (o *SearchPrincipalsDefault) IsSuccess() bool

IsSuccess returns true when this search principals default response has a 2xx status code

func (*SearchPrincipalsDefault) String

func (o *SearchPrincipalsDefault) String() string

type SearchPrincipalsOK

type SearchPrincipalsOK struct {
	Payload *models.HashicorpCloudIamSearchPrincipalsResponse
}

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

A successful response.

func NewSearchPrincipalsOK

func NewSearchPrincipalsOK() *SearchPrincipalsOK

NewSearchPrincipalsOK creates a SearchPrincipalsOK with default headers values

func (*SearchPrincipalsOK) Error

func (o *SearchPrincipalsOK) Error() string

func (*SearchPrincipalsOK) GetPayload

func (*SearchPrincipalsOK) IsClientError

func (o *SearchPrincipalsOK) IsClientError() bool

IsClientError returns true when this search principals o k response has a 4xx status code

func (*SearchPrincipalsOK) IsCode

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

IsCode returns true when this search principals o k response a status code equal to that given

func (*SearchPrincipalsOK) IsRedirect

func (o *SearchPrincipalsOK) IsRedirect() bool

IsRedirect returns true when this search principals o k response has a 3xx status code

func (*SearchPrincipalsOK) IsServerError

func (o *SearchPrincipalsOK) IsServerError() bool

IsServerError returns true when this search principals o k response has a 5xx status code

func (*SearchPrincipalsOK) IsSuccess

func (o *SearchPrincipalsOK) IsSuccess() bool

IsSuccess returns true when this search principals o k response has a 2xx status code

func (*SearchPrincipalsOK) String

func (o *SearchPrincipalsOK) String() string

type SearchPrincipalsParams

type SearchPrincipalsParams struct {

	// Body.
	Body *models.HashicorpCloudIamSearchPrincipalsRequest

	/* OrganizationID.

	     organization_id is the ID of the organization in which the principals
	belong.
	*/
	OrganizationID string

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

SearchPrincipalsParams contains all the parameters to send to the API endpoint

for the search principals operation.

Typically these are written to a http.Request.

func NewSearchPrincipalsParams

func NewSearchPrincipalsParams() *SearchPrincipalsParams

NewSearchPrincipalsParams creates a new SearchPrincipalsParams 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 NewSearchPrincipalsParamsWithContext

func NewSearchPrincipalsParamsWithContext(ctx context.Context) *SearchPrincipalsParams

NewSearchPrincipalsParamsWithContext creates a new SearchPrincipalsParams object with the ability to set a context for a request.

func NewSearchPrincipalsParamsWithHTTPClient

func NewSearchPrincipalsParamsWithHTTPClient(client *http.Client) *SearchPrincipalsParams

NewSearchPrincipalsParamsWithHTTPClient creates a new SearchPrincipalsParams object with the ability to set a custom HTTPClient for a request.

func NewSearchPrincipalsParamsWithTimeout

func NewSearchPrincipalsParamsWithTimeout(timeout time.Duration) *SearchPrincipalsParams

NewSearchPrincipalsParamsWithTimeout creates a new SearchPrincipalsParams object with the ability to set a timeout on a request.

func (*SearchPrincipalsParams) SetBody

SetBody adds the body to the search principals params

func (*SearchPrincipalsParams) SetContext

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

SetContext adds the context to the search principals params

func (*SearchPrincipalsParams) SetDefaults

func (o *SearchPrincipalsParams) SetDefaults()

SetDefaults hydrates default values in the search principals params (not the query body).

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

func (*SearchPrincipalsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search principals params

func (*SearchPrincipalsParams) SetOrganizationID

func (o *SearchPrincipalsParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the search principals params

func (*SearchPrincipalsParams) SetTimeout

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

SetTimeout adds the timeout to the search principals params

func (*SearchPrincipalsParams) WithBody

WithBody adds the body to the search principals params

func (*SearchPrincipalsParams) WithContext

WithContext adds the context to the search principals params

func (*SearchPrincipalsParams) WithDefaults

WithDefaults hydrates default values in the search principals params (not the query body).

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

func (*SearchPrincipalsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search principals params

func (*SearchPrincipalsParams) WithOrganizationID

func (o *SearchPrincipalsParams) WithOrganizationID(organizationID string) *SearchPrincipalsParams

WithOrganizationID adds the organizationID to the search principals params

func (*SearchPrincipalsParams) WithTimeout

WithTimeout adds the timeout to the search principals params

func (*SearchPrincipalsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SearchPrincipalsReader

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

SearchPrincipalsReader is a Reader for the SearchPrincipals structure.

func (*SearchPrincipalsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateWebConsolePreferencesDefault

type UpdateWebConsolePreferencesDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

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

An unexpected error response.

func NewUpdateWebConsolePreferencesDefault

func NewUpdateWebConsolePreferencesDefault(code int) *UpdateWebConsolePreferencesDefault

NewUpdateWebConsolePreferencesDefault creates a UpdateWebConsolePreferencesDefault with default headers values

func (*UpdateWebConsolePreferencesDefault) Code

Code gets the status code for the update web console preferences default response

func (*UpdateWebConsolePreferencesDefault) Error

func (*UpdateWebConsolePreferencesDefault) GetPayload

func (*UpdateWebConsolePreferencesDefault) IsClientError

func (o *UpdateWebConsolePreferencesDefault) IsClientError() bool

IsClientError returns true when this update web console preferences default response has a 4xx status code

func (*UpdateWebConsolePreferencesDefault) IsCode

IsCode returns true when this update web console preferences default response a status code equal to that given

func (*UpdateWebConsolePreferencesDefault) IsRedirect

func (o *UpdateWebConsolePreferencesDefault) IsRedirect() bool

IsRedirect returns true when this update web console preferences default response has a 3xx status code

func (*UpdateWebConsolePreferencesDefault) IsServerError

func (o *UpdateWebConsolePreferencesDefault) IsServerError() bool

IsServerError returns true when this update web console preferences default response has a 5xx status code

func (*UpdateWebConsolePreferencesDefault) IsSuccess

IsSuccess returns true when this update web console preferences default response has a 2xx status code

func (*UpdateWebConsolePreferencesDefault) String

type UpdateWebConsolePreferencesOK

type UpdateWebConsolePreferencesOK struct {
	Payload *models.HashicorpCloudIamUpdateWebConsolePreferencesResponse
}

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

A successful response.

func NewUpdateWebConsolePreferencesOK

func NewUpdateWebConsolePreferencesOK() *UpdateWebConsolePreferencesOK

NewUpdateWebConsolePreferencesOK creates a UpdateWebConsolePreferencesOK with default headers values

func (*UpdateWebConsolePreferencesOK) Error

func (*UpdateWebConsolePreferencesOK) GetPayload

func (*UpdateWebConsolePreferencesOK) IsClientError

func (o *UpdateWebConsolePreferencesOK) IsClientError() bool

IsClientError returns true when this update web console preferences o k response has a 4xx status code

func (*UpdateWebConsolePreferencesOK) IsCode

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

IsCode returns true when this update web console preferences o k response a status code equal to that given

func (*UpdateWebConsolePreferencesOK) IsRedirect

func (o *UpdateWebConsolePreferencesOK) IsRedirect() bool

IsRedirect returns true when this update web console preferences o k response has a 3xx status code

func (*UpdateWebConsolePreferencesOK) IsServerError

func (o *UpdateWebConsolePreferencesOK) IsServerError() bool

IsServerError returns true when this update web console preferences o k response has a 5xx status code

func (*UpdateWebConsolePreferencesOK) IsSuccess

func (o *UpdateWebConsolePreferencesOK) IsSuccess() bool

IsSuccess returns true when this update web console preferences o k response has a 2xx status code

func (*UpdateWebConsolePreferencesOK) String

type UpdateWebConsolePreferencesParams

type UpdateWebConsolePreferencesParams struct {

	// Body.
	Body *models.HashicorpCloudIamUpdateWebConsolePreferencesRequest

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

UpdateWebConsolePreferencesParams contains all the parameters to send to the API endpoint

for the update web console preferences operation.

Typically these are written to a http.Request.

func NewUpdateWebConsolePreferencesParams

func NewUpdateWebConsolePreferencesParams() *UpdateWebConsolePreferencesParams

NewUpdateWebConsolePreferencesParams creates a new UpdateWebConsolePreferencesParams 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 NewUpdateWebConsolePreferencesParamsWithContext

func NewUpdateWebConsolePreferencesParamsWithContext(ctx context.Context) *UpdateWebConsolePreferencesParams

NewUpdateWebConsolePreferencesParamsWithContext creates a new UpdateWebConsolePreferencesParams object with the ability to set a context for a request.

func NewUpdateWebConsolePreferencesParamsWithHTTPClient

func NewUpdateWebConsolePreferencesParamsWithHTTPClient(client *http.Client) *UpdateWebConsolePreferencesParams

NewUpdateWebConsolePreferencesParamsWithHTTPClient creates a new UpdateWebConsolePreferencesParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateWebConsolePreferencesParamsWithTimeout

func NewUpdateWebConsolePreferencesParamsWithTimeout(timeout time.Duration) *UpdateWebConsolePreferencesParams

NewUpdateWebConsolePreferencesParamsWithTimeout creates a new UpdateWebConsolePreferencesParams object with the ability to set a timeout on a request.

func (*UpdateWebConsolePreferencesParams) SetBody

SetBody adds the body to the update web console preferences params

func (*UpdateWebConsolePreferencesParams) SetContext

SetContext adds the context to the update web console preferences params

func (*UpdateWebConsolePreferencesParams) SetDefaults

func (o *UpdateWebConsolePreferencesParams) SetDefaults()

SetDefaults hydrates default values in the update web console preferences params (not the query body).

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

func (*UpdateWebConsolePreferencesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update web console preferences params

func (*UpdateWebConsolePreferencesParams) SetTimeout

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

SetTimeout adds the timeout to the update web console preferences params

func (*UpdateWebConsolePreferencesParams) WithBody

WithBody adds the body to the update web console preferences params

func (*UpdateWebConsolePreferencesParams) WithContext

WithContext adds the context to the update web console preferences params

func (*UpdateWebConsolePreferencesParams) WithDefaults

WithDefaults hydrates default values in the update web console preferences params (not the query body).

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

func (*UpdateWebConsolePreferencesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update web console preferences params

func (*UpdateWebConsolePreferencesParams) WithTimeout

WithTimeout adds the timeout to the update web console preferences params

func (*UpdateWebConsolePreferencesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateWebConsolePreferencesReader

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

UpdateWebConsolePreferencesReader is a Reader for the UpdateWebConsolePreferences structure.

func (*UpdateWebConsolePreferencesReader) ReadResponse

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