organization_service

package
v0.79.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MPL-2.0 Imports: 12 Imported by: 2

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

func (*Client) OrganizationServiceCreate

func (a *Client) OrganizationServiceCreate(params *OrganizationServiceCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrganizationServiceCreateOK, error)

OrganizationServiceCreate creates creates a new organization the owner is set to the identity of the caller an organization can not be owned by a machine account

func (*Client) OrganizationServiceGet

func (a *Client) OrganizationServiceGet(params *OrganizationServiceGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrganizationServiceGetOK, error)

OrganizationServiceGet gets retrieves the requested organization by ID

func (*Client) OrganizationServiceGetIamPolicy

func (a *Client) OrganizationServiceGetIamPolicy(params *OrganizationServiceGetIamPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrganizationServiceGetIamPolicyOK, error)

OrganizationServiceGetIamPolicy gets iam policy retrieves the requested organization s i a m policy

func (*Client) OrganizationServiceGetRole

func (a *Client) OrganizationServiceGetRole(params *OrganizationServiceGetRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrganizationServiceGetRoleOK, error)

OrganizationServiceGetRole gets role returns a role and its mapped permissions

func (*Client) OrganizationServiceList

func (a *Client) OrganizationServiceList(params *OrganizationServiceListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrganizationServiceListOK, error)

OrganizationServiceList lists lists the organizations the caller has access to

func (*Client) OrganizationServiceListRoles

func (a *Client) OrganizationServiceListRoles(params *OrganizationServiceListRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrganizationServiceListRolesOK, error)

OrganizationServiceListRoles lists roles returns a list of all user facing roles for an organization

func (*Client) OrganizationServiceSetIamPolicy

func (a *Client) OrganizationServiceSetIamPolicy(params *OrganizationServiceSetIamPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrganizationServiceSetIamPolicyOK, error)

OrganizationServiceSetIamPolicy sets iam policy sets the i a m policy for an organization since this updates the full policy the policy takes an etag argument that should match with the current policy stored in the system this is to avoid concurrent writes erasing each other s data hence the client should always get the current policy that includes the etag modify the policy and then set the policy with the same etag if there is no existing policy the etag must be empty

func (*Client) OrganizationServiceSetName

func (a *Client) OrganizationServiceSetName(params *OrganizationServiceSetNameParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrganizationServiceSetNameOK, error)

OrganizationServiceSetName sets name updates the organization s name

func (*Client) OrganizationServiceTestIamPermissions

func (a *Client) OrganizationServiceTestIamPermissions(params *OrganizationServiceTestIamPermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrganizationServiceTestIamPermissionsOK, error)

OrganizationServiceTestIamPermissions tests iam permissions returns a subset of the request permissions the calling principal has for the organization

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 {
	OrganizationServiceCreate(params *OrganizationServiceCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrganizationServiceCreateOK, error)

	OrganizationServiceGet(params *OrganizationServiceGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrganizationServiceGetOK, error)

	OrganizationServiceGetIamPolicy(params *OrganizationServiceGetIamPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrganizationServiceGetIamPolicyOK, error)

	OrganizationServiceGetRole(params *OrganizationServiceGetRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrganizationServiceGetRoleOK, error)

	OrganizationServiceList(params *OrganizationServiceListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrganizationServiceListOK, error)

	OrganizationServiceListRoles(params *OrganizationServiceListRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrganizationServiceListRolesOK, error)

	OrganizationServiceSetIamPolicy(params *OrganizationServiceSetIamPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrganizationServiceSetIamPolicyOK, error)

	OrganizationServiceSetName(params *OrganizationServiceSetNameParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrganizationServiceSetNameOK, error)

	OrganizationServiceTestIamPermissions(params *OrganizationServiceTestIamPermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrganizationServiceTestIamPermissionsOK, 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 organization service API client.

type OrganizationServiceCreateDefault

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

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

An unexpected error response.

func NewOrganizationServiceCreateDefault

func NewOrganizationServiceCreateDefault(code int) *OrganizationServiceCreateDefault

NewOrganizationServiceCreateDefault creates a OrganizationServiceCreateDefault with default headers values

func (*OrganizationServiceCreateDefault) Code

Code gets the status code for the organization service create default response

func (*OrganizationServiceCreateDefault) Error

func (*OrganizationServiceCreateDefault) GetPayload

func (*OrganizationServiceCreateDefault) IsClientError

func (o *OrganizationServiceCreateDefault) IsClientError() bool

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

func (*OrganizationServiceCreateDefault) IsCode

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

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

func (*OrganizationServiceCreateDefault) IsRedirect

func (o *OrganizationServiceCreateDefault) IsRedirect() bool

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

func (*OrganizationServiceCreateDefault) IsServerError

func (o *OrganizationServiceCreateDefault) IsServerError() bool

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

func (*OrganizationServiceCreateDefault) IsSuccess

func (o *OrganizationServiceCreateDefault) IsSuccess() bool

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

func (*OrganizationServiceCreateDefault) String

type OrganizationServiceCreateOK

type OrganizationServiceCreateOK struct {
	Payload *models.HashicorpCloudResourcemanagerOrganizationCreateResponse
}

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

A successful response.

func NewOrganizationServiceCreateOK

func NewOrganizationServiceCreateOK() *OrganizationServiceCreateOK

NewOrganizationServiceCreateOK creates a OrganizationServiceCreateOK with default headers values

func (*OrganizationServiceCreateOK) Code added in v0.75.0

func (o *OrganizationServiceCreateOK) Code() int

Code gets the status code for the organization service create o k response

func (*OrganizationServiceCreateOK) Error

func (*OrganizationServiceCreateOK) IsClientError

func (o *OrganizationServiceCreateOK) IsClientError() bool

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

func (*OrganizationServiceCreateOK) IsCode

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

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

func (*OrganizationServiceCreateOK) IsRedirect

func (o *OrganizationServiceCreateOK) IsRedirect() bool

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

func (*OrganizationServiceCreateOK) IsServerError

func (o *OrganizationServiceCreateOK) IsServerError() bool

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

func (*OrganizationServiceCreateOK) IsSuccess

func (o *OrganizationServiceCreateOK) IsSuccess() bool

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

func (*OrganizationServiceCreateOK) String

func (o *OrganizationServiceCreateOK) String() string

type OrganizationServiceCreateParams

type OrganizationServiceCreateParams struct {

	// Body.
	Body *models.HashicorpCloudResourcemanagerOrganizationCreateRequest

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

OrganizationServiceCreateParams contains all the parameters to send to the API endpoint

for the organization service create operation.

Typically these are written to a http.Request.

func NewOrganizationServiceCreateParams

func NewOrganizationServiceCreateParams() *OrganizationServiceCreateParams

NewOrganizationServiceCreateParams creates a new OrganizationServiceCreateParams 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 NewOrganizationServiceCreateParamsWithContext

func NewOrganizationServiceCreateParamsWithContext(ctx context.Context) *OrganizationServiceCreateParams

NewOrganizationServiceCreateParamsWithContext creates a new OrganizationServiceCreateParams object with the ability to set a context for a request.

func NewOrganizationServiceCreateParamsWithHTTPClient

func NewOrganizationServiceCreateParamsWithHTTPClient(client *http.Client) *OrganizationServiceCreateParams

NewOrganizationServiceCreateParamsWithHTTPClient creates a new OrganizationServiceCreateParams object with the ability to set a custom HTTPClient for a request.

func NewOrganizationServiceCreateParamsWithTimeout

func NewOrganizationServiceCreateParamsWithTimeout(timeout time.Duration) *OrganizationServiceCreateParams

NewOrganizationServiceCreateParamsWithTimeout creates a new OrganizationServiceCreateParams object with the ability to set a timeout on a request.

func (*OrganizationServiceCreateParams) SetBody

SetBody adds the body to the organization service create params

func (*OrganizationServiceCreateParams) SetContext

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

SetContext adds the context to the organization service create params

func (*OrganizationServiceCreateParams) SetDefaults

func (o *OrganizationServiceCreateParams) SetDefaults()

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

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

func (*OrganizationServiceCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the organization service create params

func (*OrganizationServiceCreateParams) SetTimeout

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

SetTimeout adds the timeout to the organization service create params

func (*OrganizationServiceCreateParams) WithBody

WithBody adds the body to the organization service create params

func (*OrganizationServiceCreateParams) WithContext

WithContext adds the context to the organization service create params

func (*OrganizationServiceCreateParams) WithDefaults

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

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

func (*OrganizationServiceCreateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the organization service create params

func (*OrganizationServiceCreateParams) WithTimeout

WithTimeout adds the timeout to the organization service create params

func (*OrganizationServiceCreateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrganizationServiceCreateReader

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

OrganizationServiceCreateReader is a Reader for the OrganizationServiceCreate structure.

func (*OrganizationServiceCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrganizationServiceGetDefault

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

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

An unexpected error response.

func NewOrganizationServiceGetDefault

func NewOrganizationServiceGetDefault(code int) *OrganizationServiceGetDefault

NewOrganizationServiceGetDefault creates a OrganizationServiceGetDefault with default headers values

func (*OrganizationServiceGetDefault) Code

Code gets the status code for the organization service get default response

func (*OrganizationServiceGetDefault) Error

func (*OrganizationServiceGetDefault) GetPayload

func (*OrganizationServiceGetDefault) IsClientError

func (o *OrganizationServiceGetDefault) IsClientError() bool

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

func (*OrganizationServiceGetDefault) IsCode

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

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

func (*OrganizationServiceGetDefault) IsRedirect

func (o *OrganizationServiceGetDefault) IsRedirect() bool

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

func (*OrganizationServiceGetDefault) IsServerError

func (o *OrganizationServiceGetDefault) IsServerError() bool

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

func (*OrganizationServiceGetDefault) IsSuccess

func (o *OrganizationServiceGetDefault) IsSuccess() bool

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

func (*OrganizationServiceGetDefault) String

type OrganizationServiceGetIamPolicyDefault

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

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

An unexpected error response.

func NewOrganizationServiceGetIamPolicyDefault

func NewOrganizationServiceGetIamPolicyDefault(code int) *OrganizationServiceGetIamPolicyDefault

NewOrganizationServiceGetIamPolicyDefault creates a OrganizationServiceGetIamPolicyDefault with default headers values

func (*OrganizationServiceGetIamPolicyDefault) Code

Code gets the status code for the organization service get iam policy default response

func (*OrganizationServiceGetIamPolicyDefault) Error

func (*OrganizationServiceGetIamPolicyDefault) GetPayload

func (*OrganizationServiceGetIamPolicyDefault) IsClientError

func (o *OrganizationServiceGetIamPolicyDefault) IsClientError() bool

IsClientError returns true when this organization service get iam policy default response has a 4xx status code

func (*OrganizationServiceGetIamPolicyDefault) IsCode

IsCode returns true when this organization service get iam policy default response a status code equal to that given

func (*OrganizationServiceGetIamPolicyDefault) IsRedirect

IsRedirect returns true when this organization service get iam policy default response has a 3xx status code

func (*OrganizationServiceGetIamPolicyDefault) IsServerError

func (o *OrganizationServiceGetIamPolicyDefault) IsServerError() bool

IsServerError returns true when this organization service get iam policy default response has a 5xx status code

func (*OrganizationServiceGetIamPolicyDefault) IsSuccess

IsSuccess returns true when this organization service get iam policy default response has a 2xx status code

func (*OrganizationServiceGetIamPolicyDefault) String

type OrganizationServiceGetIamPolicyOK

type OrganizationServiceGetIamPolicyOK struct {
	Payload *models.HashicorpCloudResourcemanagerOrganizationGetIamPolicyResponse
}

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

A successful response.

func NewOrganizationServiceGetIamPolicyOK

func NewOrganizationServiceGetIamPolicyOK() *OrganizationServiceGetIamPolicyOK

NewOrganizationServiceGetIamPolicyOK creates a OrganizationServiceGetIamPolicyOK with default headers values

func (*OrganizationServiceGetIamPolicyOK) Code added in v0.75.0

Code gets the status code for the organization service get iam policy o k response

func (*OrganizationServiceGetIamPolicyOK) Error

func (*OrganizationServiceGetIamPolicyOK) IsClientError

func (o *OrganizationServiceGetIamPolicyOK) IsClientError() bool

IsClientError returns true when this organization service get iam policy o k response has a 4xx status code

func (*OrganizationServiceGetIamPolicyOK) IsCode

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

IsCode returns true when this organization service get iam policy o k response a status code equal to that given

func (*OrganizationServiceGetIamPolicyOK) IsRedirect

func (o *OrganizationServiceGetIamPolicyOK) IsRedirect() bool

IsRedirect returns true when this organization service get iam policy o k response has a 3xx status code

func (*OrganizationServiceGetIamPolicyOK) IsServerError

func (o *OrganizationServiceGetIamPolicyOK) IsServerError() bool

IsServerError returns true when this organization service get iam policy o k response has a 5xx status code

func (*OrganizationServiceGetIamPolicyOK) IsSuccess

func (o *OrganizationServiceGetIamPolicyOK) IsSuccess() bool

IsSuccess returns true when this organization service get iam policy o k response has a 2xx status code

func (*OrganizationServiceGetIamPolicyOK) String

type OrganizationServiceGetIamPolicyParams

type OrganizationServiceGetIamPolicyParams struct {

	/* ID.

	   ID is the identifier of the organization.
	*/
	ID string

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

OrganizationServiceGetIamPolicyParams contains all the parameters to send to the API endpoint

for the organization service get iam policy operation.

Typically these are written to a http.Request.

func NewOrganizationServiceGetIamPolicyParams

func NewOrganizationServiceGetIamPolicyParams() *OrganizationServiceGetIamPolicyParams

NewOrganizationServiceGetIamPolicyParams creates a new OrganizationServiceGetIamPolicyParams 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 NewOrganizationServiceGetIamPolicyParamsWithContext

func NewOrganizationServiceGetIamPolicyParamsWithContext(ctx context.Context) *OrganizationServiceGetIamPolicyParams

NewOrganizationServiceGetIamPolicyParamsWithContext creates a new OrganizationServiceGetIamPolicyParams object with the ability to set a context for a request.

func NewOrganizationServiceGetIamPolicyParamsWithHTTPClient

func NewOrganizationServiceGetIamPolicyParamsWithHTTPClient(client *http.Client) *OrganizationServiceGetIamPolicyParams

NewOrganizationServiceGetIamPolicyParamsWithHTTPClient creates a new OrganizationServiceGetIamPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewOrganizationServiceGetIamPolicyParamsWithTimeout

func NewOrganizationServiceGetIamPolicyParamsWithTimeout(timeout time.Duration) *OrganizationServiceGetIamPolicyParams

NewOrganizationServiceGetIamPolicyParamsWithTimeout creates a new OrganizationServiceGetIamPolicyParams object with the ability to set a timeout on a request.

func (*OrganizationServiceGetIamPolicyParams) SetContext

SetContext adds the context to the organization service get iam policy params

func (*OrganizationServiceGetIamPolicyParams) SetDefaults

func (o *OrganizationServiceGetIamPolicyParams) SetDefaults()

SetDefaults hydrates default values in the organization service get iam policy params (not the query body).

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

func (*OrganizationServiceGetIamPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the organization service get iam policy params

func (*OrganizationServiceGetIamPolicyParams) SetID

SetID adds the id to the organization service get iam policy params

func (*OrganizationServiceGetIamPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the organization service get iam policy params

func (*OrganizationServiceGetIamPolicyParams) WithContext

WithContext adds the context to the organization service get iam policy params

func (*OrganizationServiceGetIamPolicyParams) WithDefaults

WithDefaults hydrates default values in the organization service get iam policy params (not the query body).

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

func (*OrganizationServiceGetIamPolicyParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the organization service get iam policy params

func (*OrganizationServiceGetIamPolicyParams) WithID

WithID adds the id to the organization service get iam policy params

func (*OrganizationServiceGetIamPolicyParams) WithTimeout

WithTimeout adds the timeout to the organization service get iam policy params

func (*OrganizationServiceGetIamPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrganizationServiceGetIamPolicyReader

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

OrganizationServiceGetIamPolicyReader is a Reader for the OrganizationServiceGetIamPolicy structure.

func (*OrganizationServiceGetIamPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrganizationServiceGetOK

type OrganizationServiceGetOK struct {
	Payload *models.HashicorpCloudResourcemanagerOrganizationGetResponse
}

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

A successful response.

func NewOrganizationServiceGetOK

func NewOrganizationServiceGetOK() *OrganizationServiceGetOK

NewOrganizationServiceGetOK creates a OrganizationServiceGetOK with default headers values

func (*OrganizationServiceGetOK) Code added in v0.75.0

func (o *OrganizationServiceGetOK) Code() int

Code gets the status code for the organization service get o k response

func (*OrganizationServiceGetOK) Error

func (o *OrganizationServiceGetOK) Error() string

func (*OrganizationServiceGetOK) GetPayload

func (*OrganizationServiceGetOK) IsClientError

func (o *OrganizationServiceGetOK) IsClientError() bool

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

func (*OrganizationServiceGetOK) IsCode

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

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

func (*OrganizationServiceGetOK) IsRedirect

func (o *OrganizationServiceGetOK) IsRedirect() bool

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

func (*OrganizationServiceGetOK) IsServerError

func (o *OrganizationServiceGetOK) IsServerError() bool

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

func (*OrganizationServiceGetOK) IsSuccess

func (o *OrganizationServiceGetOK) IsSuccess() bool

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

func (*OrganizationServiceGetOK) String

func (o *OrganizationServiceGetOK) String() string

type OrganizationServiceGetParams

type OrganizationServiceGetParams struct {

	/* ID.

	   ID is the identifier of the organization to retrieve.
	*/
	ID string

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

OrganizationServiceGetParams contains all the parameters to send to the API endpoint

for the organization service get operation.

Typically these are written to a http.Request.

func NewOrganizationServiceGetParams

func NewOrganizationServiceGetParams() *OrganizationServiceGetParams

NewOrganizationServiceGetParams creates a new OrganizationServiceGetParams 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 NewOrganizationServiceGetParamsWithContext

func NewOrganizationServiceGetParamsWithContext(ctx context.Context) *OrganizationServiceGetParams

NewOrganizationServiceGetParamsWithContext creates a new OrganizationServiceGetParams object with the ability to set a context for a request.

func NewOrganizationServiceGetParamsWithHTTPClient

func NewOrganizationServiceGetParamsWithHTTPClient(client *http.Client) *OrganizationServiceGetParams

NewOrganizationServiceGetParamsWithHTTPClient creates a new OrganizationServiceGetParams object with the ability to set a custom HTTPClient for a request.

func NewOrganizationServiceGetParamsWithTimeout

func NewOrganizationServiceGetParamsWithTimeout(timeout time.Duration) *OrganizationServiceGetParams

NewOrganizationServiceGetParamsWithTimeout creates a new OrganizationServiceGetParams object with the ability to set a timeout on a request.

func (*OrganizationServiceGetParams) SetContext

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

SetContext adds the context to the organization service get params

func (*OrganizationServiceGetParams) SetDefaults

func (o *OrganizationServiceGetParams) SetDefaults()

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

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

func (*OrganizationServiceGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the organization service get params

func (*OrganizationServiceGetParams) SetID

func (o *OrganizationServiceGetParams) SetID(id string)

SetID adds the id to the organization service get params

func (*OrganizationServiceGetParams) SetTimeout

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

SetTimeout adds the timeout to the organization service get params

func (*OrganizationServiceGetParams) WithContext

WithContext adds the context to the organization service get params

func (*OrganizationServiceGetParams) WithDefaults

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

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

func (*OrganizationServiceGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the organization service get params

func (*OrganizationServiceGetParams) WithID

WithID adds the id to the organization service get params

func (*OrganizationServiceGetParams) WithTimeout

WithTimeout adds the timeout to the organization service get params

func (*OrganizationServiceGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrganizationServiceGetReader

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

OrganizationServiceGetReader is a Reader for the OrganizationServiceGet structure.

func (*OrganizationServiceGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrganizationServiceGetRoleDefault

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

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

An unexpected error response.

func NewOrganizationServiceGetRoleDefault

func NewOrganizationServiceGetRoleDefault(code int) *OrganizationServiceGetRoleDefault

NewOrganizationServiceGetRoleDefault creates a OrganizationServiceGetRoleDefault with default headers values

func (*OrganizationServiceGetRoleDefault) Code

Code gets the status code for the organization service get role default response

func (*OrganizationServiceGetRoleDefault) Error

func (*OrganizationServiceGetRoleDefault) GetPayload

func (*OrganizationServiceGetRoleDefault) IsClientError

func (o *OrganizationServiceGetRoleDefault) IsClientError() bool

IsClientError returns true when this organization service get role default response has a 4xx status code

func (*OrganizationServiceGetRoleDefault) IsCode

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

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

func (*OrganizationServiceGetRoleDefault) IsRedirect

func (o *OrganizationServiceGetRoleDefault) IsRedirect() bool

IsRedirect returns true when this organization service get role default response has a 3xx status code

func (*OrganizationServiceGetRoleDefault) IsServerError

func (o *OrganizationServiceGetRoleDefault) IsServerError() bool

IsServerError returns true when this organization service get role default response has a 5xx status code

func (*OrganizationServiceGetRoleDefault) IsSuccess

func (o *OrganizationServiceGetRoleDefault) IsSuccess() bool

IsSuccess returns true when this organization service get role default response has a 2xx status code

func (*OrganizationServiceGetRoleDefault) String

type OrganizationServiceGetRoleOK

type OrganizationServiceGetRoleOK struct {
	Payload *models.HashicorpCloudResourcemanagerOrganizationGetRoleResponse
}

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

A successful response.

func NewOrganizationServiceGetRoleOK

func NewOrganizationServiceGetRoleOK() *OrganizationServiceGetRoleOK

NewOrganizationServiceGetRoleOK creates a OrganizationServiceGetRoleOK with default headers values

func (*OrganizationServiceGetRoleOK) Code added in v0.75.0

Code gets the status code for the organization service get role o k response

func (*OrganizationServiceGetRoleOK) Error

func (*OrganizationServiceGetRoleOK) IsClientError

func (o *OrganizationServiceGetRoleOK) IsClientError() bool

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

func (*OrganizationServiceGetRoleOK) IsCode

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

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

func (*OrganizationServiceGetRoleOK) IsRedirect

func (o *OrganizationServiceGetRoleOK) IsRedirect() bool

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

func (*OrganizationServiceGetRoleOK) IsServerError

func (o *OrganizationServiceGetRoleOK) IsServerError() bool

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

func (*OrganizationServiceGetRoleOK) IsSuccess

func (o *OrganizationServiceGetRoleOK) IsSuccess() bool

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

func (*OrganizationServiceGetRoleOK) String

type OrganizationServiceGetRoleParams

type OrganizationServiceGetRoleParams struct {

	/* ID.

	   ID is the identifier of the organization.
	*/
	ID string

	/* RoleID.

	   RoleId is the identifier of the role to retrieve.
	*/
	RoleID string

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

OrganizationServiceGetRoleParams contains all the parameters to send to the API endpoint

for the organization service get role operation.

Typically these are written to a http.Request.

func NewOrganizationServiceGetRoleParams

func NewOrganizationServiceGetRoleParams() *OrganizationServiceGetRoleParams

NewOrganizationServiceGetRoleParams creates a new OrganizationServiceGetRoleParams 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 NewOrganizationServiceGetRoleParamsWithContext

func NewOrganizationServiceGetRoleParamsWithContext(ctx context.Context) *OrganizationServiceGetRoleParams

NewOrganizationServiceGetRoleParamsWithContext creates a new OrganizationServiceGetRoleParams object with the ability to set a context for a request.

func NewOrganizationServiceGetRoleParamsWithHTTPClient

func NewOrganizationServiceGetRoleParamsWithHTTPClient(client *http.Client) *OrganizationServiceGetRoleParams

NewOrganizationServiceGetRoleParamsWithHTTPClient creates a new OrganizationServiceGetRoleParams object with the ability to set a custom HTTPClient for a request.

func NewOrganizationServiceGetRoleParamsWithTimeout

func NewOrganizationServiceGetRoleParamsWithTimeout(timeout time.Duration) *OrganizationServiceGetRoleParams

NewOrganizationServiceGetRoleParamsWithTimeout creates a new OrganizationServiceGetRoleParams object with the ability to set a timeout on a request.

func (*OrganizationServiceGetRoleParams) SetContext

SetContext adds the context to the organization service get role params

func (*OrganizationServiceGetRoleParams) SetDefaults

func (o *OrganizationServiceGetRoleParams) SetDefaults()

SetDefaults hydrates default values in the organization service get role params (not the query body).

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

func (*OrganizationServiceGetRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the organization service get role params

func (*OrganizationServiceGetRoleParams) SetID

SetID adds the id to the organization service get role params

func (*OrganizationServiceGetRoleParams) SetRoleID

func (o *OrganizationServiceGetRoleParams) SetRoleID(roleID string)

SetRoleID adds the roleId to the organization service get role params

func (*OrganizationServiceGetRoleParams) SetTimeout

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

SetTimeout adds the timeout to the organization service get role params

func (*OrganizationServiceGetRoleParams) WithContext

WithContext adds the context to the organization service get role params

func (*OrganizationServiceGetRoleParams) WithDefaults

WithDefaults hydrates default values in the organization service get role params (not the query body).

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

func (*OrganizationServiceGetRoleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the organization service get role params

func (*OrganizationServiceGetRoleParams) WithID

WithID adds the id to the organization service get role params

func (*OrganizationServiceGetRoleParams) WithRoleID

WithRoleID adds the roleID to the organization service get role params

func (*OrganizationServiceGetRoleParams) WithTimeout

WithTimeout adds the timeout to the organization service get role params

func (*OrganizationServiceGetRoleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrganizationServiceGetRoleReader

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

OrganizationServiceGetRoleReader is a Reader for the OrganizationServiceGetRole structure.

func (*OrganizationServiceGetRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrganizationServiceListDefault

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

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

An unexpected error response.

func NewOrganizationServiceListDefault

func NewOrganizationServiceListDefault(code int) *OrganizationServiceListDefault

NewOrganizationServiceListDefault creates a OrganizationServiceListDefault with default headers values

func (*OrganizationServiceListDefault) Code

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

func (*OrganizationServiceListDefault) Error

func (*OrganizationServiceListDefault) GetPayload

func (*OrganizationServiceListDefault) IsClientError

func (o *OrganizationServiceListDefault) IsClientError() bool

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

func (*OrganizationServiceListDefault) IsCode

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

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

func (*OrganizationServiceListDefault) IsRedirect

func (o *OrganizationServiceListDefault) IsRedirect() bool

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

func (*OrganizationServiceListDefault) IsServerError

func (o *OrganizationServiceListDefault) IsServerError() bool

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

func (*OrganizationServiceListDefault) IsSuccess

func (o *OrganizationServiceListDefault) IsSuccess() bool

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

func (*OrganizationServiceListDefault) String

type OrganizationServiceListOK

type OrganizationServiceListOK struct {
	Payload *models.HashicorpCloudResourcemanagerOrganizationListResponse
}

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

A successful response.

func NewOrganizationServiceListOK

func NewOrganizationServiceListOK() *OrganizationServiceListOK

NewOrganizationServiceListOK creates a OrganizationServiceListOK with default headers values

func (*OrganizationServiceListOK) Code added in v0.75.0

func (o *OrganizationServiceListOK) Code() int

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

func (*OrganizationServiceListOK) Error

func (o *OrganizationServiceListOK) Error() string

func (*OrganizationServiceListOK) GetPayload

func (*OrganizationServiceListOK) IsClientError

func (o *OrganizationServiceListOK) IsClientError() bool

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

func (*OrganizationServiceListOK) IsCode

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

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

func (*OrganizationServiceListOK) IsRedirect

func (o *OrganizationServiceListOK) IsRedirect() bool

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

func (*OrganizationServiceListOK) IsServerError

func (o *OrganizationServiceListOK) IsServerError() bool

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

func (*OrganizationServiceListOK) IsSuccess

func (o *OrganizationServiceListOK) IsSuccess() bool

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

func (*OrganizationServiceListOK) String

func (o *OrganizationServiceListOK) String() string

type OrganizationServiceListParams

type OrganizationServiceListParams struct {

	/* 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
}

OrganizationServiceListParams contains all the parameters to send to the API endpoint

for the organization service list operation.

Typically these are written to a http.Request.

func NewOrganizationServiceListParams

func NewOrganizationServiceListParams() *OrganizationServiceListParams

NewOrganizationServiceListParams creates a new OrganizationServiceListParams 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 NewOrganizationServiceListParamsWithContext

func NewOrganizationServiceListParamsWithContext(ctx context.Context) *OrganizationServiceListParams

NewOrganizationServiceListParamsWithContext creates a new OrganizationServiceListParams object with the ability to set a context for a request.

func NewOrganizationServiceListParamsWithHTTPClient

func NewOrganizationServiceListParamsWithHTTPClient(client *http.Client) *OrganizationServiceListParams

NewOrganizationServiceListParamsWithHTTPClient creates a new OrganizationServiceListParams object with the ability to set a custom HTTPClient for a request.

func NewOrganizationServiceListParamsWithTimeout

func NewOrganizationServiceListParamsWithTimeout(timeout time.Duration) *OrganizationServiceListParams

NewOrganizationServiceListParamsWithTimeout creates a new OrganizationServiceListParams object with the ability to set a timeout on a request.

func (*OrganizationServiceListParams) SetContext

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

SetContext adds the context to the organization service list params

func (*OrganizationServiceListParams) SetDefaults

func (o *OrganizationServiceListParams) SetDefaults()

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

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

func (*OrganizationServiceListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the organization service list params

func (*OrganizationServiceListParams) SetPaginationNextPageToken

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

SetPaginationNextPageToken adds the paginationNextPageToken to the organization service list params

func (*OrganizationServiceListParams) SetPaginationPageSize

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

SetPaginationPageSize adds the paginationPageSize to the organization service list params

func (*OrganizationServiceListParams) SetPaginationPreviousPageToken

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

SetPaginationPreviousPageToken adds the paginationPreviousPageToken to the organization service list params

func (*OrganizationServiceListParams) SetTimeout

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

SetTimeout adds the timeout to the organization service list params

func (*OrganizationServiceListParams) WithContext

WithContext adds the context to the organization service list params

func (*OrganizationServiceListParams) WithDefaults

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

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

func (*OrganizationServiceListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the organization service list params

func (*OrganizationServiceListParams) WithPaginationNextPageToken

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

WithPaginationNextPageToken adds the paginationNextPageToken to the organization service list params

func (*OrganizationServiceListParams) WithPaginationPageSize

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

WithPaginationPageSize adds the paginationPageSize to the organization service list params

func (*OrganizationServiceListParams) WithPaginationPreviousPageToken

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

WithPaginationPreviousPageToken adds the paginationPreviousPageToken to the organization service list params

func (*OrganizationServiceListParams) WithTimeout

WithTimeout adds the timeout to the organization service list params

func (*OrganizationServiceListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrganizationServiceListReader

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

OrganizationServiceListReader is a Reader for the OrganizationServiceList structure.

func (*OrganizationServiceListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrganizationServiceListRolesDefault

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

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

An unexpected error response.

func NewOrganizationServiceListRolesDefault

func NewOrganizationServiceListRolesDefault(code int) *OrganizationServiceListRolesDefault

NewOrganizationServiceListRolesDefault creates a OrganizationServiceListRolesDefault with default headers values

func (*OrganizationServiceListRolesDefault) Code

Code gets the status code for the organization service list roles default response

func (*OrganizationServiceListRolesDefault) Error

func (*OrganizationServiceListRolesDefault) GetPayload

func (*OrganizationServiceListRolesDefault) IsClientError

func (o *OrganizationServiceListRolesDefault) IsClientError() bool

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

func (*OrganizationServiceListRolesDefault) IsCode

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

func (*OrganizationServiceListRolesDefault) IsRedirect

func (o *OrganizationServiceListRolesDefault) IsRedirect() bool

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

func (*OrganizationServiceListRolesDefault) IsServerError

func (o *OrganizationServiceListRolesDefault) IsServerError() bool

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

func (*OrganizationServiceListRolesDefault) IsSuccess

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

func (*OrganizationServiceListRolesDefault) String

type OrganizationServiceListRolesOK

type OrganizationServiceListRolesOK struct {
	Payload *models.HashicorpCloudResourcemanagerOrganizationListRolesResponse
}

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

A successful response.

func NewOrganizationServiceListRolesOK

func NewOrganizationServiceListRolesOK() *OrganizationServiceListRolesOK

NewOrganizationServiceListRolesOK creates a OrganizationServiceListRolesOK with default headers values

func (*OrganizationServiceListRolesOK) Code added in v0.75.0

Code gets the status code for the organization service list roles o k response

func (*OrganizationServiceListRolesOK) Error

func (*OrganizationServiceListRolesOK) IsClientError

func (o *OrganizationServiceListRolesOK) IsClientError() bool

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

func (*OrganizationServiceListRolesOK) IsCode

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

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

func (*OrganizationServiceListRolesOK) IsRedirect

func (o *OrganizationServiceListRolesOK) IsRedirect() bool

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

func (*OrganizationServiceListRolesOK) IsServerError

func (o *OrganizationServiceListRolesOK) IsServerError() bool

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

func (*OrganizationServiceListRolesOK) IsSuccess

func (o *OrganizationServiceListRolesOK) IsSuccess() bool

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

func (*OrganizationServiceListRolesOK) String

type OrganizationServiceListRolesParams

type OrganizationServiceListRolesParams struct {

	/* ID.

	   ID is the identifier of the organization.
	*/
	ID 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
}

OrganizationServiceListRolesParams contains all the parameters to send to the API endpoint

for the organization service list roles operation.

Typically these are written to a http.Request.

func NewOrganizationServiceListRolesParams

func NewOrganizationServiceListRolesParams() *OrganizationServiceListRolesParams

NewOrganizationServiceListRolesParams creates a new OrganizationServiceListRolesParams 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 NewOrganizationServiceListRolesParamsWithContext

func NewOrganizationServiceListRolesParamsWithContext(ctx context.Context) *OrganizationServiceListRolesParams

NewOrganizationServiceListRolesParamsWithContext creates a new OrganizationServiceListRolesParams object with the ability to set a context for a request.

func NewOrganizationServiceListRolesParamsWithHTTPClient

func NewOrganizationServiceListRolesParamsWithHTTPClient(client *http.Client) *OrganizationServiceListRolesParams

NewOrganizationServiceListRolesParamsWithHTTPClient creates a new OrganizationServiceListRolesParams object with the ability to set a custom HTTPClient for a request.

func NewOrganizationServiceListRolesParamsWithTimeout

func NewOrganizationServiceListRolesParamsWithTimeout(timeout time.Duration) *OrganizationServiceListRolesParams

NewOrganizationServiceListRolesParamsWithTimeout creates a new OrganizationServiceListRolesParams object with the ability to set a timeout on a request.

func (*OrganizationServiceListRolesParams) SetContext

SetContext adds the context to the organization service list roles params

func (*OrganizationServiceListRolesParams) SetDefaults

func (o *OrganizationServiceListRolesParams) SetDefaults()

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

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

func (*OrganizationServiceListRolesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the organization service list roles params

func (*OrganizationServiceListRolesParams) SetID

SetID adds the id to the organization service list roles params

func (*OrganizationServiceListRolesParams) SetPaginationNextPageToken

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

SetPaginationNextPageToken adds the paginationNextPageToken to the organization service list roles params

func (*OrganizationServiceListRolesParams) SetPaginationPageSize

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

SetPaginationPageSize adds the paginationPageSize to the organization service list roles params

func (*OrganizationServiceListRolesParams) SetPaginationPreviousPageToken

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

SetPaginationPreviousPageToken adds the paginationPreviousPageToken to the organization service list roles params

func (*OrganizationServiceListRolesParams) SetTimeout

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

SetTimeout adds the timeout to the organization service list roles params

func (*OrganizationServiceListRolesParams) WithContext

WithContext adds the context to the organization service list roles params

func (*OrganizationServiceListRolesParams) WithDefaults

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

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

func (*OrganizationServiceListRolesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the organization service list roles params

func (*OrganizationServiceListRolesParams) WithID

WithID adds the id to the organization service list roles params

func (*OrganizationServiceListRolesParams) WithPaginationNextPageToken

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

WithPaginationNextPageToken adds the paginationNextPageToken to the organization service list roles params

func (*OrganizationServiceListRolesParams) WithPaginationPageSize

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

WithPaginationPageSize adds the paginationPageSize to the organization service list roles params

func (*OrganizationServiceListRolesParams) WithPaginationPreviousPageToken

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

WithPaginationPreviousPageToken adds the paginationPreviousPageToken to the organization service list roles params

func (*OrganizationServiceListRolesParams) WithTimeout

WithTimeout adds the timeout to the organization service list roles params

func (*OrganizationServiceListRolesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrganizationServiceListRolesReader

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

OrganizationServiceListRolesReader is a Reader for the OrganizationServiceListRoles structure.

func (*OrganizationServiceListRolesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrganizationServiceSetIamPolicyBody

type OrganizationServiceSetIamPolicyBody struct {

	// Policy is the updated IAM policy for the organization. The policy
	// will be completely replaced and therefore Policy.Etag must be specified
	// in order to prevent concurrent updates.
	Policy *models.HashicorpCloudResourcemanagerPolicy `json:"policy,omitempty"`
}

OrganizationServiceSetIamPolicyBody see OrganizationService.SetIamPolicy swagger:model OrganizationServiceSetIamPolicyBody

func (*OrganizationServiceSetIamPolicyBody) ContextValidate

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

ContextValidate validate this organization service set iam policy body based on the context it is used

func (*OrganizationServiceSetIamPolicyBody) MarshalBinary

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

MarshalBinary interface implementation

func (*OrganizationServiceSetIamPolicyBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OrganizationServiceSetIamPolicyBody) Validate

Validate validates this organization service set iam policy body

type OrganizationServiceSetIamPolicyDefault

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

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

An unexpected error response.

func NewOrganizationServiceSetIamPolicyDefault

func NewOrganizationServiceSetIamPolicyDefault(code int) *OrganizationServiceSetIamPolicyDefault

NewOrganizationServiceSetIamPolicyDefault creates a OrganizationServiceSetIamPolicyDefault with default headers values

func (*OrganizationServiceSetIamPolicyDefault) Code

Code gets the status code for the organization service set iam policy default response

func (*OrganizationServiceSetIamPolicyDefault) Error

func (*OrganizationServiceSetIamPolicyDefault) GetPayload

func (*OrganizationServiceSetIamPolicyDefault) IsClientError

func (o *OrganizationServiceSetIamPolicyDefault) IsClientError() bool

IsClientError returns true when this organization service set iam policy default response has a 4xx status code

func (*OrganizationServiceSetIamPolicyDefault) IsCode

IsCode returns true when this organization service set iam policy default response a status code equal to that given

func (*OrganizationServiceSetIamPolicyDefault) IsRedirect

IsRedirect returns true when this organization service set iam policy default response has a 3xx status code

func (*OrganizationServiceSetIamPolicyDefault) IsServerError

func (o *OrganizationServiceSetIamPolicyDefault) IsServerError() bool

IsServerError returns true when this organization service set iam policy default response has a 5xx status code

func (*OrganizationServiceSetIamPolicyDefault) IsSuccess

IsSuccess returns true when this organization service set iam policy default response has a 2xx status code

func (*OrganizationServiceSetIamPolicyDefault) String

type OrganizationServiceSetIamPolicyOK

type OrganizationServiceSetIamPolicyOK struct {
	Payload *models.HashicorpCloudResourcemanagerOrganizationSetIamPolicyResponse
}

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

A successful response.

func NewOrganizationServiceSetIamPolicyOK

func NewOrganizationServiceSetIamPolicyOK() *OrganizationServiceSetIamPolicyOK

NewOrganizationServiceSetIamPolicyOK creates a OrganizationServiceSetIamPolicyOK with default headers values

func (*OrganizationServiceSetIamPolicyOK) Code added in v0.75.0

Code gets the status code for the organization service set iam policy o k response

func (*OrganizationServiceSetIamPolicyOK) Error

func (*OrganizationServiceSetIamPolicyOK) IsClientError

func (o *OrganizationServiceSetIamPolicyOK) IsClientError() bool

IsClientError returns true when this organization service set iam policy o k response has a 4xx status code

func (*OrganizationServiceSetIamPolicyOK) IsCode

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

IsCode returns true when this organization service set iam policy o k response a status code equal to that given

func (*OrganizationServiceSetIamPolicyOK) IsRedirect

func (o *OrganizationServiceSetIamPolicyOK) IsRedirect() bool

IsRedirect returns true when this organization service set iam policy o k response has a 3xx status code

func (*OrganizationServiceSetIamPolicyOK) IsServerError

func (o *OrganizationServiceSetIamPolicyOK) IsServerError() bool

IsServerError returns true when this organization service set iam policy o k response has a 5xx status code

func (*OrganizationServiceSetIamPolicyOK) IsSuccess

func (o *OrganizationServiceSetIamPolicyOK) IsSuccess() bool

IsSuccess returns true when this organization service set iam policy o k response has a 2xx status code

func (*OrganizationServiceSetIamPolicyOK) String

type OrganizationServiceSetIamPolicyParams

type OrganizationServiceSetIamPolicyParams struct {

	// Body.
	Body OrganizationServiceSetIamPolicyBody

	/* ID.

	   ID is the identifier of the organization.
	*/
	ID string

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

OrganizationServiceSetIamPolicyParams contains all the parameters to send to the API endpoint

for the organization service set iam policy operation.

Typically these are written to a http.Request.

func NewOrganizationServiceSetIamPolicyParams

func NewOrganizationServiceSetIamPolicyParams() *OrganizationServiceSetIamPolicyParams

NewOrganizationServiceSetIamPolicyParams creates a new OrganizationServiceSetIamPolicyParams 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 NewOrganizationServiceSetIamPolicyParamsWithContext

func NewOrganizationServiceSetIamPolicyParamsWithContext(ctx context.Context) *OrganizationServiceSetIamPolicyParams

NewOrganizationServiceSetIamPolicyParamsWithContext creates a new OrganizationServiceSetIamPolicyParams object with the ability to set a context for a request.

func NewOrganizationServiceSetIamPolicyParamsWithHTTPClient

func NewOrganizationServiceSetIamPolicyParamsWithHTTPClient(client *http.Client) *OrganizationServiceSetIamPolicyParams

NewOrganizationServiceSetIamPolicyParamsWithHTTPClient creates a new OrganizationServiceSetIamPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewOrganizationServiceSetIamPolicyParamsWithTimeout

func NewOrganizationServiceSetIamPolicyParamsWithTimeout(timeout time.Duration) *OrganizationServiceSetIamPolicyParams

NewOrganizationServiceSetIamPolicyParamsWithTimeout creates a new OrganizationServiceSetIamPolicyParams object with the ability to set a timeout on a request.

func (*OrganizationServiceSetIamPolicyParams) SetBody

SetBody adds the body to the organization service set iam policy params

func (*OrganizationServiceSetIamPolicyParams) SetContext

SetContext adds the context to the organization service set iam policy params

func (*OrganizationServiceSetIamPolicyParams) SetDefaults

func (o *OrganizationServiceSetIamPolicyParams) SetDefaults()

SetDefaults hydrates default values in the organization service set iam policy params (not the query body).

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

func (*OrganizationServiceSetIamPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the organization service set iam policy params

func (*OrganizationServiceSetIamPolicyParams) SetID

SetID adds the id to the organization service set iam policy params

func (*OrganizationServiceSetIamPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the organization service set iam policy params

func (*OrganizationServiceSetIamPolicyParams) WithBody

WithBody adds the body to the organization service set iam policy params

func (*OrganizationServiceSetIamPolicyParams) WithContext

WithContext adds the context to the organization service set iam policy params

func (*OrganizationServiceSetIamPolicyParams) WithDefaults

WithDefaults hydrates default values in the organization service set iam policy params (not the query body).

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

func (*OrganizationServiceSetIamPolicyParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the organization service set iam policy params

func (*OrganizationServiceSetIamPolicyParams) WithID

WithID adds the id to the organization service set iam policy params

func (*OrganizationServiceSetIamPolicyParams) WithTimeout

WithTimeout adds the timeout to the organization service set iam policy params

func (*OrganizationServiceSetIamPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrganizationServiceSetIamPolicyReader

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

OrganizationServiceSetIamPolicyReader is a Reader for the OrganizationServiceSetIamPolicy structure.

func (*OrganizationServiceSetIamPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrganizationServiceSetNameBody

type OrganizationServiceSetNameBody struct {

	// Name is the new name of the organization.
	Name string `json:"name,omitempty"`
}

OrganizationServiceSetNameBody see OrganizationService.SetName swagger:model OrganizationServiceSetNameBody

func (*OrganizationServiceSetNameBody) ContextValidate

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

ContextValidate validates this organization service set name body based on context it is used

func (*OrganizationServiceSetNameBody) MarshalBinary

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

MarshalBinary interface implementation

func (*OrganizationServiceSetNameBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OrganizationServiceSetNameBody) Validate

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

Validate validates this organization service set name body

type OrganizationServiceSetNameDefault

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

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

An unexpected error response.

func NewOrganizationServiceSetNameDefault

func NewOrganizationServiceSetNameDefault(code int) *OrganizationServiceSetNameDefault

NewOrganizationServiceSetNameDefault creates a OrganizationServiceSetNameDefault with default headers values

func (*OrganizationServiceSetNameDefault) Code

Code gets the status code for the organization service set name default response

func (*OrganizationServiceSetNameDefault) Error

func (*OrganizationServiceSetNameDefault) GetPayload

func (*OrganizationServiceSetNameDefault) IsClientError

func (o *OrganizationServiceSetNameDefault) IsClientError() bool

IsClientError returns true when this organization service set name default response has a 4xx status code

func (*OrganizationServiceSetNameDefault) IsCode

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

IsCode returns true when this organization service set name default response a status code equal to that given

func (*OrganizationServiceSetNameDefault) IsRedirect

func (o *OrganizationServiceSetNameDefault) IsRedirect() bool

IsRedirect returns true when this organization service set name default response has a 3xx status code

func (*OrganizationServiceSetNameDefault) IsServerError

func (o *OrganizationServiceSetNameDefault) IsServerError() bool

IsServerError returns true when this organization service set name default response has a 5xx status code

func (*OrganizationServiceSetNameDefault) IsSuccess

func (o *OrganizationServiceSetNameDefault) IsSuccess() bool

IsSuccess returns true when this organization service set name default response has a 2xx status code

func (*OrganizationServiceSetNameDefault) String

type OrganizationServiceSetNameOK

type OrganizationServiceSetNameOK struct {
	Payload *models.HashicorpCloudResourcemanagerOrganizationSetNameResponse
}

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

A successful response.

func NewOrganizationServiceSetNameOK

func NewOrganizationServiceSetNameOK() *OrganizationServiceSetNameOK

NewOrganizationServiceSetNameOK creates a OrganizationServiceSetNameOK with default headers values

func (*OrganizationServiceSetNameOK) Code added in v0.75.0

Code gets the status code for the organization service set name o k response

func (*OrganizationServiceSetNameOK) Error

func (*OrganizationServiceSetNameOK) IsClientError

func (o *OrganizationServiceSetNameOK) IsClientError() bool

IsClientError returns true when this organization service set name o k response has a 4xx status code

func (*OrganizationServiceSetNameOK) IsCode

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

IsCode returns true when this organization service set name o k response a status code equal to that given

func (*OrganizationServiceSetNameOK) IsRedirect

func (o *OrganizationServiceSetNameOK) IsRedirect() bool

IsRedirect returns true when this organization service set name o k response has a 3xx status code

func (*OrganizationServiceSetNameOK) IsServerError

func (o *OrganizationServiceSetNameOK) IsServerError() bool

IsServerError returns true when this organization service set name o k response has a 5xx status code

func (*OrganizationServiceSetNameOK) IsSuccess

func (o *OrganizationServiceSetNameOK) IsSuccess() bool

IsSuccess returns true when this organization service set name o k response has a 2xx status code

func (*OrganizationServiceSetNameOK) String

type OrganizationServiceSetNameParams

type OrganizationServiceSetNameParams struct {

	// Body.
	Body OrganizationServiceSetNameBody

	/* ID.

	   ID is the identifier of the organization.
	*/
	ID string

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

OrganizationServiceSetNameParams contains all the parameters to send to the API endpoint

for the organization service set name operation.

Typically these are written to a http.Request.

func NewOrganizationServiceSetNameParams

func NewOrganizationServiceSetNameParams() *OrganizationServiceSetNameParams

NewOrganizationServiceSetNameParams creates a new OrganizationServiceSetNameParams 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 NewOrganizationServiceSetNameParamsWithContext

func NewOrganizationServiceSetNameParamsWithContext(ctx context.Context) *OrganizationServiceSetNameParams

NewOrganizationServiceSetNameParamsWithContext creates a new OrganizationServiceSetNameParams object with the ability to set a context for a request.

func NewOrganizationServiceSetNameParamsWithHTTPClient

func NewOrganizationServiceSetNameParamsWithHTTPClient(client *http.Client) *OrganizationServiceSetNameParams

NewOrganizationServiceSetNameParamsWithHTTPClient creates a new OrganizationServiceSetNameParams object with the ability to set a custom HTTPClient for a request.

func NewOrganizationServiceSetNameParamsWithTimeout

func NewOrganizationServiceSetNameParamsWithTimeout(timeout time.Duration) *OrganizationServiceSetNameParams

NewOrganizationServiceSetNameParamsWithTimeout creates a new OrganizationServiceSetNameParams object with the ability to set a timeout on a request.

func (*OrganizationServiceSetNameParams) SetBody

SetBody adds the body to the organization service set name params

func (*OrganizationServiceSetNameParams) SetContext

SetContext adds the context to the organization service set name params

func (*OrganizationServiceSetNameParams) SetDefaults

func (o *OrganizationServiceSetNameParams) SetDefaults()

SetDefaults hydrates default values in the organization service set name params (not the query body).

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

func (*OrganizationServiceSetNameParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the organization service set name params

func (*OrganizationServiceSetNameParams) SetID

SetID adds the id to the organization service set name params

func (*OrganizationServiceSetNameParams) SetTimeout

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

SetTimeout adds the timeout to the organization service set name params

func (*OrganizationServiceSetNameParams) WithBody

WithBody adds the body to the organization service set name params

func (*OrganizationServiceSetNameParams) WithContext

WithContext adds the context to the organization service set name params

func (*OrganizationServiceSetNameParams) WithDefaults

WithDefaults hydrates default values in the organization service set name params (not the query body).

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

func (*OrganizationServiceSetNameParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the organization service set name params

func (*OrganizationServiceSetNameParams) WithID

WithID adds the id to the organization service set name params

func (*OrganizationServiceSetNameParams) WithTimeout

WithTimeout adds the timeout to the organization service set name params

func (*OrganizationServiceSetNameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrganizationServiceSetNameReader

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

OrganizationServiceSetNameReader is a Reader for the OrganizationServiceSetName structure.

func (*OrganizationServiceSetNameReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrganizationServiceTestIamPermissionsBody

type OrganizationServiceTestIamPermissionsBody struct {

	// Permissions to test.
	Permissions []string `json:"permissions"`
}

OrganizationServiceTestIamPermissionsBody see OrganizationService.TestIamPermissions swagger:model OrganizationServiceTestIamPermissionsBody

func (*OrganizationServiceTestIamPermissionsBody) ContextValidate

ContextValidate validates this organization service test iam permissions body based on context it is used

func (*OrganizationServiceTestIamPermissionsBody) MarshalBinary

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

MarshalBinary interface implementation

func (*OrganizationServiceTestIamPermissionsBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*OrganizationServiceTestIamPermissionsBody) Validate

Validate validates this organization service test iam permissions body

type OrganizationServiceTestIamPermissionsDefault

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

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

An unexpected error response.

func NewOrganizationServiceTestIamPermissionsDefault

func NewOrganizationServiceTestIamPermissionsDefault(code int) *OrganizationServiceTestIamPermissionsDefault

NewOrganizationServiceTestIamPermissionsDefault creates a OrganizationServiceTestIamPermissionsDefault with default headers values

func (*OrganizationServiceTestIamPermissionsDefault) Code

Code gets the status code for the organization service test iam permissions default response

func (*OrganizationServiceTestIamPermissionsDefault) Error

func (*OrganizationServiceTestIamPermissionsDefault) GetPayload

func (*OrganizationServiceTestIamPermissionsDefault) IsClientError

IsClientError returns true when this organization service test iam permissions default response has a 4xx status code

func (*OrganizationServiceTestIamPermissionsDefault) IsCode

IsCode returns true when this organization service test iam permissions default response a status code equal to that given

func (*OrganizationServiceTestIamPermissionsDefault) IsRedirect

IsRedirect returns true when this organization service test iam permissions default response has a 3xx status code

func (*OrganizationServiceTestIamPermissionsDefault) IsServerError

IsServerError returns true when this organization service test iam permissions default response has a 5xx status code

func (*OrganizationServiceTestIamPermissionsDefault) IsSuccess

IsSuccess returns true when this organization service test iam permissions default response has a 2xx status code

func (*OrganizationServiceTestIamPermissionsDefault) String

type OrganizationServiceTestIamPermissionsOK

type OrganizationServiceTestIamPermissionsOK struct {
	Payload *models.HashicorpCloudResourcemanagerOrganizationTestIamPermissionsResponse
}

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

A successful response.

func NewOrganizationServiceTestIamPermissionsOK

func NewOrganizationServiceTestIamPermissionsOK() *OrganizationServiceTestIamPermissionsOK

NewOrganizationServiceTestIamPermissionsOK creates a OrganizationServiceTestIamPermissionsOK with default headers values

func (*OrganizationServiceTestIamPermissionsOK) Code added in v0.75.0

Code gets the status code for the organization service test iam permissions o k response

func (*OrganizationServiceTestIamPermissionsOK) Error

func (*OrganizationServiceTestIamPermissionsOK) IsClientError

func (o *OrganizationServiceTestIamPermissionsOK) IsClientError() bool

IsClientError returns true when this organization service test iam permissions o k response has a 4xx status code

func (*OrganizationServiceTestIamPermissionsOK) IsCode

IsCode returns true when this organization service test iam permissions o k response a status code equal to that given

func (*OrganizationServiceTestIamPermissionsOK) IsRedirect

IsRedirect returns true when this organization service test iam permissions o k response has a 3xx status code

func (*OrganizationServiceTestIamPermissionsOK) IsServerError

func (o *OrganizationServiceTestIamPermissionsOK) IsServerError() bool

IsServerError returns true when this organization service test iam permissions o k response has a 5xx status code

func (*OrganizationServiceTestIamPermissionsOK) IsSuccess

IsSuccess returns true when this organization service test iam permissions o k response has a 2xx status code

func (*OrganizationServiceTestIamPermissionsOK) String

type OrganizationServiceTestIamPermissionsParams

type OrganizationServiceTestIamPermissionsParams struct {

	// Body.
	Body OrganizationServiceTestIamPermissionsBody

	/* ID.

	   ID is the identifier of the organization.
	*/
	ID string

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

OrganizationServiceTestIamPermissionsParams contains all the parameters to send to the API endpoint

for the organization service test iam permissions operation.

Typically these are written to a http.Request.

func NewOrganizationServiceTestIamPermissionsParams

func NewOrganizationServiceTestIamPermissionsParams() *OrganizationServiceTestIamPermissionsParams

NewOrganizationServiceTestIamPermissionsParams creates a new OrganizationServiceTestIamPermissionsParams 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 NewOrganizationServiceTestIamPermissionsParamsWithContext

func NewOrganizationServiceTestIamPermissionsParamsWithContext(ctx context.Context) *OrganizationServiceTestIamPermissionsParams

NewOrganizationServiceTestIamPermissionsParamsWithContext creates a new OrganizationServiceTestIamPermissionsParams object with the ability to set a context for a request.

func NewOrganizationServiceTestIamPermissionsParamsWithHTTPClient

func NewOrganizationServiceTestIamPermissionsParamsWithHTTPClient(client *http.Client) *OrganizationServiceTestIamPermissionsParams

NewOrganizationServiceTestIamPermissionsParamsWithHTTPClient creates a new OrganizationServiceTestIamPermissionsParams object with the ability to set a custom HTTPClient for a request.

func NewOrganizationServiceTestIamPermissionsParamsWithTimeout

func NewOrganizationServiceTestIamPermissionsParamsWithTimeout(timeout time.Duration) *OrganizationServiceTestIamPermissionsParams

NewOrganizationServiceTestIamPermissionsParamsWithTimeout creates a new OrganizationServiceTestIamPermissionsParams object with the ability to set a timeout on a request.

func (*OrganizationServiceTestIamPermissionsParams) SetBody

SetBody adds the body to the organization service test iam permissions params

func (*OrganizationServiceTestIamPermissionsParams) SetContext

SetContext adds the context to the organization service test iam permissions params

func (*OrganizationServiceTestIamPermissionsParams) SetDefaults

SetDefaults hydrates default values in the organization service test iam permissions params (not the query body).

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

func (*OrganizationServiceTestIamPermissionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the organization service test iam permissions params

func (*OrganizationServiceTestIamPermissionsParams) SetID

SetID adds the id to the organization service test iam permissions params

func (*OrganizationServiceTestIamPermissionsParams) SetTimeout

SetTimeout adds the timeout to the organization service test iam permissions params

func (*OrganizationServiceTestIamPermissionsParams) WithBody

WithBody adds the body to the organization service test iam permissions params

func (*OrganizationServiceTestIamPermissionsParams) WithContext

WithContext adds the context to the organization service test iam permissions params

func (*OrganizationServiceTestIamPermissionsParams) WithDefaults

WithDefaults hydrates default values in the organization service test iam permissions params (not the query body).

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

func (*OrganizationServiceTestIamPermissionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the organization service test iam permissions params

func (*OrganizationServiceTestIamPermissionsParams) WithID

WithID adds the id to the organization service test iam permissions params

func (*OrganizationServiceTestIamPermissionsParams) WithTimeout

WithTimeout adds the timeout to the organization service test iam permissions params

func (*OrganizationServiceTestIamPermissionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrganizationServiceTestIamPermissionsReader

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

OrganizationServiceTestIamPermissionsReader is a Reader for the OrganizationServiceTestIamPermissions structure.

func (*OrganizationServiceTestIamPermissionsReader) ReadResponse

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