resource_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: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for resource service API

func (*Client) ResourceServiceGetIamPolicy added in v0.75.0

func (a *Client) ResourceServiceGetIamPolicy(params *ResourceServiceGetIamPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResourceServiceGetIamPolicyOK, error)

ResourceServiceGetIamPolicy gets iam policy gets the i a m policy for a resource

func (*Client) ResourceServiceList

func (a *Client) ResourceServiceList(params *ResourceServiceListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResourceServiceListOK, error)

ResourceServiceList lists lists the resources the caller has access to

func (*Client) ResourceServiceSetIamPolicy added in v0.75.0

func (a *Client) ResourceServiceSetIamPolicy(params *ResourceServiceSetIamPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResourceServiceSetIamPolicyOK, error)

ResourceServiceSetIamPolicy sets iam policy sets the i a m policy for a resource 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) ResourceServiceTestIamPermissions added in v0.75.0

func (a *Client) ResourceServiceTestIamPermissions(params *ResourceServiceTestIamPermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResourceServiceTestIamPermissionsOK, error)

ResourceServiceTestIamPermissions tests iam permissions returns a subset of the request permissions the calling principal has on the resource

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 {
	ResourceServiceGetIamPolicy(params *ResourceServiceGetIamPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResourceServiceGetIamPolicyOK, error)

	ResourceServiceList(params *ResourceServiceListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResourceServiceListOK, error)

	ResourceServiceSetIamPolicy(params *ResourceServiceSetIamPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResourceServiceSetIamPolicyOK, error)

	ResourceServiceTestIamPermissions(params *ResourceServiceTestIamPermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResourceServiceTestIamPermissionsOK, 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 resource service API client.

type ResourceServiceGetIamPolicyDefault added in v0.75.0

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

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

An unexpected error response.

func NewResourceServiceGetIamPolicyDefault added in v0.75.0

func NewResourceServiceGetIamPolicyDefault(code int) *ResourceServiceGetIamPolicyDefault

NewResourceServiceGetIamPolicyDefault creates a ResourceServiceGetIamPolicyDefault with default headers values

func (*ResourceServiceGetIamPolicyDefault) Code added in v0.75.0

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

func (*ResourceServiceGetIamPolicyDefault) Error added in v0.75.0

func (*ResourceServiceGetIamPolicyDefault) GetPayload added in v0.75.0

func (*ResourceServiceGetIamPolicyDefault) IsClientError added in v0.75.0

func (o *ResourceServiceGetIamPolicyDefault) IsClientError() bool

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

func (*ResourceServiceGetIamPolicyDefault) IsCode added in v0.75.0

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

func (*ResourceServiceGetIamPolicyDefault) IsRedirect added in v0.75.0

func (o *ResourceServiceGetIamPolicyDefault) IsRedirect() bool

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

func (*ResourceServiceGetIamPolicyDefault) IsServerError added in v0.75.0

func (o *ResourceServiceGetIamPolicyDefault) IsServerError() bool

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

func (*ResourceServiceGetIamPolicyDefault) IsSuccess added in v0.75.0

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

func (*ResourceServiceGetIamPolicyDefault) String added in v0.75.0

type ResourceServiceGetIamPolicyOK added in v0.75.0

type ResourceServiceGetIamPolicyOK struct {
	Payload *models.HashicorpCloudResourcemanagerResourceGetIamPolicyResponse
}

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

A successful response.

func NewResourceServiceGetIamPolicyOK added in v0.75.0

func NewResourceServiceGetIamPolicyOK() *ResourceServiceGetIamPolicyOK

NewResourceServiceGetIamPolicyOK creates a ResourceServiceGetIamPolicyOK with default headers values

func (*ResourceServiceGetIamPolicyOK) Code added in v0.75.0

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

func (*ResourceServiceGetIamPolicyOK) Error added in v0.75.0

func (*ResourceServiceGetIamPolicyOK) GetPayload added in v0.75.0

func (*ResourceServiceGetIamPolicyOK) IsClientError added in v0.75.0

func (o *ResourceServiceGetIamPolicyOK) IsClientError() bool

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

func (*ResourceServiceGetIamPolicyOK) IsCode added in v0.75.0

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

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

func (*ResourceServiceGetIamPolicyOK) IsRedirect added in v0.75.0

func (o *ResourceServiceGetIamPolicyOK) IsRedirect() bool

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

func (*ResourceServiceGetIamPolicyOK) IsServerError added in v0.75.0

func (o *ResourceServiceGetIamPolicyOK) IsServerError() bool

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

func (*ResourceServiceGetIamPolicyOK) IsSuccess added in v0.75.0

func (o *ResourceServiceGetIamPolicyOK) IsSuccess() bool

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

func (*ResourceServiceGetIamPolicyOK) String added in v0.75.0

type ResourceServiceGetIamPolicyParams added in v0.75.0

type ResourceServiceGetIamPolicyParams struct {

	/* ResourceID.

	   ResourceId is the resource name of the resource. Either this or the ResourceName needs to be provided.
	*/
	ResourceID *string

	/* ResourceName.

	   ResourceName is the resource name of the resource. Either this or the ResourceId needs to be provided.
	*/
	ResourceName *string

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

ResourceServiceGetIamPolicyParams contains all the parameters to send to the API endpoint

for the resource service get iam policy operation.

Typically these are written to a http.Request.

func NewResourceServiceGetIamPolicyParams added in v0.75.0

func NewResourceServiceGetIamPolicyParams() *ResourceServiceGetIamPolicyParams

NewResourceServiceGetIamPolicyParams creates a new ResourceServiceGetIamPolicyParams 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 NewResourceServiceGetIamPolicyParamsWithContext added in v0.75.0

func NewResourceServiceGetIamPolicyParamsWithContext(ctx context.Context) *ResourceServiceGetIamPolicyParams

NewResourceServiceGetIamPolicyParamsWithContext creates a new ResourceServiceGetIamPolicyParams object with the ability to set a context for a request.

func NewResourceServiceGetIamPolicyParamsWithHTTPClient added in v0.75.0

func NewResourceServiceGetIamPolicyParamsWithHTTPClient(client *http.Client) *ResourceServiceGetIamPolicyParams

NewResourceServiceGetIamPolicyParamsWithHTTPClient creates a new ResourceServiceGetIamPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewResourceServiceGetIamPolicyParamsWithTimeout added in v0.75.0

func NewResourceServiceGetIamPolicyParamsWithTimeout(timeout time.Duration) *ResourceServiceGetIamPolicyParams

NewResourceServiceGetIamPolicyParamsWithTimeout creates a new ResourceServiceGetIamPolicyParams object with the ability to set a timeout on a request.

func (*ResourceServiceGetIamPolicyParams) SetContext added in v0.75.0

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

func (*ResourceServiceGetIamPolicyParams) SetDefaults added in v0.75.0

func (o *ResourceServiceGetIamPolicyParams) SetDefaults()

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

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

func (*ResourceServiceGetIamPolicyParams) SetHTTPClient added in v0.75.0

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

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

func (*ResourceServiceGetIamPolicyParams) SetResourceID added in v0.75.0

func (o *ResourceServiceGetIamPolicyParams) SetResourceID(resourceID *string)

SetResourceID adds the resourceId to the resource service get iam policy params

func (*ResourceServiceGetIamPolicyParams) SetResourceName added in v0.75.0

func (o *ResourceServiceGetIamPolicyParams) SetResourceName(resourceName *string)

SetResourceName adds the resourceName to the resource service get iam policy params

func (*ResourceServiceGetIamPolicyParams) SetTimeout added in v0.75.0

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

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

func (*ResourceServiceGetIamPolicyParams) WithContext added in v0.75.0

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

func (*ResourceServiceGetIamPolicyParams) WithDefaults added in v0.75.0

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

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

func (*ResourceServiceGetIamPolicyParams) WithHTTPClient added in v0.75.0

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

func (*ResourceServiceGetIamPolicyParams) WithResourceID added in v0.75.0

WithResourceID adds the resourceID to the resource service get iam policy params

func (*ResourceServiceGetIamPolicyParams) WithResourceName added in v0.75.0

WithResourceName adds the resourceName to the resource service get iam policy params

func (*ResourceServiceGetIamPolicyParams) WithTimeout added in v0.75.0

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

func (*ResourceServiceGetIamPolicyParams) WriteToRequest added in v0.75.0

WriteToRequest writes these params to a swagger request

type ResourceServiceGetIamPolicyReader added in v0.75.0

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

ResourceServiceGetIamPolicyReader is a Reader for the ResourceServiceGetIamPolicy structure.

func (*ResourceServiceGetIamPolicyReader) ReadResponse added in v0.75.0

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

ReadResponse reads a server response into the received o.

type ResourceServiceListDefault

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

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

An unexpected error response.

func NewResourceServiceListDefault

func NewResourceServiceListDefault(code int) *ResourceServiceListDefault

NewResourceServiceListDefault creates a ResourceServiceListDefault with default headers values

func (*ResourceServiceListDefault) Code

func (o *ResourceServiceListDefault) Code() int

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

func (*ResourceServiceListDefault) Error

func (*ResourceServiceListDefault) GetPayload

func (*ResourceServiceListDefault) IsClientError

func (o *ResourceServiceListDefault) IsClientError() bool

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

func (*ResourceServiceListDefault) IsCode

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

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

func (*ResourceServiceListDefault) IsRedirect

func (o *ResourceServiceListDefault) IsRedirect() bool

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

func (*ResourceServiceListDefault) IsServerError

func (o *ResourceServiceListDefault) IsServerError() bool

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

func (*ResourceServiceListDefault) IsSuccess

func (o *ResourceServiceListDefault) IsSuccess() bool

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

func (*ResourceServiceListDefault) String

func (o *ResourceServiceListDefault) String() string

type ResourceServiceListOK

type ResourceServiceListOK struct {
	Payload *models.HashicorpCloudResourcemanagerResourceListResponse
}

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

A successful response.

func NewResourceServiceListOK

func NewResourceServiceListOK() *ResourceServiceListOK

NewResourceServiceListOK creates a ResourceServiceListOK with default headers values

func (*ResourceServiceListOK) Code added in v0.75.0

func (o *ResourceServiceListOK) Code() int

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

func (*ResourceServiceListOK) Error

func (o *ResourceServiceListOK) Error() string

func (*ResourceServiceListOK) GetPayload

func (*ResourceServiceListOK) IsClientError

func (o *ResourceServiceListOK) IsClientError() bool

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

func (*ResourceServiceListOK) IsCode

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

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

func (*ResourceServiceListOK) IsRedirect

func (o *ResourceServiceListOK) IsRedirect() bool

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

func (*ResourceServiceListOK) IsServerError

func (o *ResourceServiceListOK) IsServerError() bool

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

func (*ResourceServiceListOK) IsSuccess

func (o *ResourceServiceListOK) IsSuccess() bool

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

func (*ResourceServiceListOK) String

func (o *ResourceServiceListOK) String() string

type ResourceServiceListParams

type ResourceServiceListParams 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

	/* ScopeID.

	   id is the id of the object being referenced.
	*/
	ScopeID *string

	/* ScopeType.

	   ResourceType is the type of object being referenced.

	   Default: "UNKNOWN"
	*/
	ScopeType *string

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

ResourceServiceListParams contains all the parameters to send to the API endpoint

for the resource service list operation.

Typically these are written to a http.Request.

func NewResourceServiceListParams

func NewResourceServiceListParams() *ResourceServiceListParams

NewResourceServiceListParams creates a new ResourceServiceListParams 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 NewResourceServiceListParamsWithContext

func NewResourceServiceListParamsWithContext(ctx context.Context) *ResourceServiceListParams

NewResourceServiceListParamsWithContext creates a new ResourceServiceListParams object with the ability to set a context for a request.

func NewResourceServiceListParamsWithHTTPClient

func NewResourceServiceListParamsWithHTTPClient(client *http.Client) *ResourceServiceListParams

NewResourceServiceListParamsWithHTTPClient creates a new ResourceServiceListParams object with the ability to set a custom HTTPClient for a request.

func NewResourceServiceListParamsWithTimeout

func NewResourceServiceListParamsWithTimeout(timeout time.Duration) *ResourceServiceListParams

NewResourceServiceListParamsWithTimeout creates a new ResourceServiceListParams object with the ability to set a timeout on a request.

func (*ResourceServiceListParams) SetContext

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

SetContext adds the context to the resource service list params

func (*ResourceServiceListParams) SetDefaults

func (o *ResourceServiceListParams) SetDefaults()

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

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

func (*ResourceServiceListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the resource service list params

func (*ResourceServiceListParams) SetPaginationNextPageToken

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

SetPaginationNextPageToken adds the paginationNextPageToken to the resource service list params

func (*ResourceServiceListParams) SetPaginationPageSize

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

SetPaginationPageSize adds the paginationPageSize to the resource service list params

func (*ResourceServiceListParams) SetPaginationPreviousPageToken

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

SetPaginationPreviousPageToken adds the paginationPreviousPageToken to the resource service list params

func (*ResourceServiceListParams) SetScopeID

func (o *ResourceServiceListParams) SetScopeID(scopeID *string)

SetScopeID adds the scopeId to the resource service list params

func (*ResourceServiceListParams) SetScopeType

func (o *ResourceServiceListParams) SetScopeType(scopeType *string)

SetScopeType adds the scopeType to the resource service list params

func (*ResourceServiceListParams) SetTimeout

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

SetTimeout adds the timeout to the resource service list params

func (*ResourceServiceListParams) WithContext

WithContext adds the context to the resource service list params

func (*ResourceServiceListParams) WithDefaults

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

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

func (*ResourceServiceListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the resource service list params

func (*ResourceServiceListParams) WithPaginationNextPageToken

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

WithPaginationNextPageToken adds the paginationNextPageToken to the resource service list params

func (*ResourceServiceListParams) WithPaginationPageSize

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

WithPaginationPageSize adds the paginationPageSize to the resource service list params

func (*ResourceServiceListParams) WithPaginationPreviousPageToken

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

WithPaginationPreviousPageToken adds the paginationPreviousPageToken to the resource service list params

func (*ResourceServiceListParams) WithScopeID

WithScopeID adds the scopeID to the resource service list params

func (*ResourceServiceListParams) WithScopeType

func (o *ResourceServiceListParams) WithScopeType(scopeType *string) *ResourceServiceListParams

WithScopeType adds the scopeType to the resource service list params

func (*ResourceServiceListParams) WithTimeout

WithTimeout adds the timeout to the resource service list params

func (*ResourceServiceListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ResourceServiceListReader

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

ResourceServiceListReader is a Reader for the ResourceServiceList structure.

func (*ResourceServiceListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ResourceServiceSetIamPolicyDefault added in v0.75.0

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

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

An unexpected error response.

func NewResourceServiceSetIamPolicyDefault added in v0.75.0

func NewResourceServiceSetIamPolicyDefault(code int) *ResourceServiceSetIamPolicyDefault

NewResourceServiceSetIamPolicyDefault creates a ResourceServiceSetIamPolicyDefault with default headers values

func (*ResourceServiceSetIamPolicyDefault) Code added in v0.75.0

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

func (*ResourceServiceSetIamPolicyDefault) Error added in v0.75.0

func (*ResourceServiceSetIamPolicyDefault) GetPayload added in v0.75.0

func (*ResourceServiceSetIamPolicyDefault) IsClientError added in v0.75.0

func (o *ResourceServiceSetIamPolicyDefault) IsClientError() bool

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

func (*ResourceServiceSetIamPolicyDefault) IsCode added in v0.75.0

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

func (*ResourceServiceSetIamPolicyDefault) IsRedirect added in v0.75.0

func (o *ResourceServiceSetIamPolicyDefault) IsRedirect() bool

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

func (*ResourceServiceSetIamPolicyDefault) IsServerError added in v0.75.0

func (o *ResourceServiceSetIamPolicyDefault) IsServerError() bool

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

func (*ResourceServiceSetIamPolicyDefault) IsSuccess added in v0.75.0

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

func (*ResourceServiceSetIamPolicyDefault) String added in v0.75.0

type ResourceServiceSetIamPolicyOK added in v0.75.0

type ResourceServiceSetIamPolicyOK struct {
	Payload *models.HashicorpCloudResourcemanagerResourceSetIamPolicyResponse
}

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

A successful response.

func NewResourceServiceSetIamPolicyOK added in v0.75.0

func NewResourceServiceSetIamPolicyOK() *ResourceServiceSetIamPolicyOK

NewResourceServiceSetIamPolicyOK creates a ResourceServiceSetIamPolicyOK with default headers values

func (*ResourceServiceSetIamPolicyOK) Code added in v0.75.0

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

func (*ResourceServiceSetIamPolicyOK) Error added in v0.75.0

func (*ResourceServiceSetIamPolicyOK) GetPayload added in v0.75.0

func (*ResourceServiceSetIamPolicyOK) IsClientError added in v0.75.0

func (o *ResourceServiceSetIamPolicyOK) IsClientError() bool

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

func (*ResourceServiceSetIamPolicyOK) IsCode added in v0.75.0

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

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

func (*ResourceServiceSetIamPolicyOK) IsRedirect added in v0.75.0

func (o *ResourceServiceSetIamPolicyOK) IsRedirect() bool

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

func (*ResourceServiceSetIamPolicyOK) IsServerError added in v0.75.0

func (o *ResourceServiceSetIamPolicyOK) IsServerError() bool

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

func (*ResourceServiceSetIamPolicyOK) IsSuccess added in v0.75.0

func (o *ResourceServiceSetIamPolicyOK) IsSuccess() bool

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

func (*ResourceServiceSetIamPolicyOK) String added in v0.75.0

type ResourceServiceSetIamPolicyParams added in v0.75.0

type ResourceServiceSetIamPolicyParams struct {

	// Body.
	Body *models.HashicorpCloudResourcemanagerResourceSetIamPolicyRequest

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

ResourceServiceSetIamPolicyParams contains all the parameters to send to the API endpoint

for the resource service set iam policy operation.

Typically these are written to a http.Request.

func NewResourceServiceSetIamPolicyParams added in v0.75.0

func NewResourceServiceSetIamPolicyParams() *ResourceServiceSetIamPolicyParams

NewResourceServiceSetIamPolicyParams creates a new ResourceServiceSetIamPolicyParams 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 NewResourceServiceSetIamPolicyParamsWithContext added in v0.75.0

func NewResourceServiceSetIamPolicyParamsWithContext(ctx context.Context) *ResourceServiceSetIamPolicyParams

NewResourceServiceSetIamPolicyParamsWithContext creates a new ResourceServiceSetIamPolicyParams object with the ability to set a context for a request.

func NewResourceServiceSetIamPolicyParamsWithHTTPClient added in v0.75.0

func NewResourceServiceSetIamPolicyParamsWithHTTPClient(client *http.Client) *ResourceServiceSetIamPolicyParams

NewResourceServiceSetIamPolicyParamsWithHTTPClient creates a new ResourceServiceSetIamPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewResourceServiceSetIamPolicyParamsWithTimeout added in v0.75.0

func NewResourceServiceSetIamPolicyParamsWithTimeout(timeout time.Duration) *ResourceServiceSetIamPolicyParams

NewResourceServiceSetIamPolicyParamsWithTimeout creates a new ResourceServiceSetIamPolicyParams object with the ability to set a timeout on a request.

func (*ResourceServiceSetIamPolicyParams) SetBody added in v0.75.0

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

func (*ResourceServiceSetIamPolicyParams) SetContext added in v0.75.0

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

func (*ResourceServiceSetIamPolicyParams) SetDefaults added in v0.75.0

func (o *ResourceServiceSetIamPolicyParams) SetDefaults()

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

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

func (*ResourceServiceSetIamPolicyParams) SetHTTPClient added in v0.75.0

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

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

func (*ResourceServiceSetIamPolicyParams) SetTimeout added in v0.75.0

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

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

func (*ResourceServiceSetIamPolicyParams) WithBody added in v0.75.0

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

func (*ResourceServiceSetIamPolicyParams) WithContext added in v0.75.0

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

func (*ResourceServiceSetIamPolicyParams) WithDefaults added in v0.75.0

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

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

func (*ResourceServiceSetIamPolicyParams) WithHTTPClient added in v0.75.0

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

func (*ResourceServiceSetIamPolicyParams) WithTimeout added in v0.75.0

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

func (*ResourceServiceSetIamPolicyParams) WriteToRequest added in v0.75.0

WriteToRequest writes these params to a swagger request

type ResourceServiceSetIamPolicyReader added in v0.75.0

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

ResourceServiceSetIamPolicyReader is a Reader for the ResourceServiceSetIamPolicy structure.

func (*ResourceServiceSetIamPolicyReader) ReadResponse added in v0.75.0

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

ReadResponse reads a server response into the received o.

type ResourceServiceTestIamPermissionsDefault added in v0.75.0

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

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

An unexpected error response.

func NewResourceServiceTestIamPermissionsDefault added in v0.75.0

func NewResourceServiceTestIamPermissionsDefault(code int) *ResourceServiceTestIamPermissionsDefault

NewResourceServiceTestIamPermissionsDefault creates a ResourceServiceTestIamPermissionsDefault with default headers values

func (*ResourceServiceTestIamPermissionsDefault) Code added in v0.75.0

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

func (*ResourceServiceTestIamPermissionsDefault) Error added in v0.75.0

func (*ResourceServiceTestIamPermissionsDefault) GetPayload added in v0.75.0

func (*ResourceServiceTestIamPermissionsDefault) IsClientError added in v0.75.0

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

func (*ResourceServiceTestIamPermissionsDefault) IsCode added in v0.75.0

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

func (*ResourceServiceTestIamPermissionsDefault) IsRedirect added in v0.75.0

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

func (*ResourceServiceTestIamPermissionsDefault) IsServerError added in v0.75.0

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

func (*ResourceServiceTestIamPermissionsDefault) IsSuccess added in v0.75.0

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

func (*ResourceServiceTestIamPermissionsDefault) String added in v0.75.0

type ResourceServiceTestIamPermissionsOK added in v0.75.0

type ResourceServiceTestIamPermissionsOK struct {
	Payload *models.HashicorpCloudResourcemanagerResourceTestIamPermissionsResponse
}

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

A successful response.

func NewResourceServiceTestIamPermissionsOK added in v0.75.0

func NewResourceServiceTestIamPermissionsOK() *ResourceServiceTestIamPermissionsOK

NewResourceServiceTestIamPermissionsOK creates a ResourceServiceTestIamPermissionsOK with default headers values

func (*ResourceServiceTestIamPermissionsOK) Code added in v0.75.0

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

func (*ResourceServiceTestIamPermissionsOK) Error added in v0.75.0

func (*ResourceServiceTestIamPermissionsOK) GetPayload added in v0.75.0

func (*ResourceServiceTestIamPermissionsOK) IsClientError added in v0.75.0

func (o *ResourceServiceTestIamPermissionsOK) IsClientError() bool

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

func (*ResourceServiceTestIamPermissionsOK) IsCode added in v0.75.0

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

func (*ResourceServiceTestIamPermissionsOK) IsRedirect added in v0.75.0

func (o *ResourceServiceTestIamPermissionsOK) IsRedirect() bool

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

func (*ResourceServiceTestIamPermissionsOK) IsServerError added in v0.75.0

func (o *ResourceServiceTestIamPermissionsOK) IsServerError() bool

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

func (*ResourceServiceTestIamPermissionsOK) IsSuccess added in v0.75.0

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

func (*ResourceServiceTestIamPermissionsOK) String added in v0.75.0

type ResourceServiceTestIamPermissionsParams added in v0.75.0

type ResourceServiceTestIamPermissionsParams struct {

	// Body.
	Body *models.HashicorpCloudResourcemanagerResourceTestIamPermissionsRequest

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

ResourceServiceTestIamPermissionsParams contains all the parameters to send to the API endpoint

for the resource service test iam permissions operation.

Typically these are written to a http.Request.

func NewResourceServiceTestIamPermissionsParams added in v0.75.0

func NewResourceServiceTestIamPermissionsParams() *ResourceServiceTestIamPermissionsParams

NewResourceServiceTestIamPermissionsParams creates a new ResourceServiceTestIamPermissionsParams 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 NewResourceServiceTestIamPermissionsParamsWithContext added in v0.75.0

func NewResourceServiceTestIamPermissionsParamsWithContext(ctx context.Context) *ResourceServiceTestIamPermissionsParams

NewResourceServiceTestIamPermissionsParamsWithContext creates a new ResourceServiceTestIamPermissionsParams object with the ability to set a context for a request.

func NewResourceServiceTestIamPermissionsParamsWithHTTPClient added in v0.75.0

func NewResourceServiceTestIamPermissionsParamsWithHTTPClient(client *http.Client) *ResourceServiceTestIamPermissionsParams

NewResourceServiceTestIamPermissionsParamsWithHTTPClient creates a new ResourceServiceTestIamPermissionsParams object with the ability to set a custom HTTPClient for a request.

func NewResourceServiceTestIamPermissionsParamsWithTimeout added in v0.75.0

func NewResourceServiceTestIamPermissionsParamsWithTimeout(timeout time.Duration) *ResourceServiceTestIamPermissionsParams

NewResourceServiceTestIamPermissionsParamsWithTimeout creates a new ResourceServiceTestIamPermissionsParams object with the ability to set a timeout on a request.

func (*ResourceServiceTestIamPermissionsParams) SetBody added in v0.75.0

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

func (*ResourceServiceTestIamPermissionsParams) SetContext added in v0.75.0

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

func (*ResourceServiceTestIamPermissionsParams) SetDefaults added in v0.75.0

func (o *ResourceServiceTestIamPermissionsParams) SetDefaults()

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

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

func (*ResourceServiceTestIamPermissionsParams) SetHTTPClient added in v0.75.0

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

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

func (*ResourceServiceTestIamPermissionsParams) SetTimeout added in v0.75.0

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

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

func (*ResourceServiceTestIamPermissionsParams) WithBody added in v0.75.0

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

func (*ResourceServiceTestIamPermissionsParams) WithContext added in v0.75.0

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

func (*ResourceServiceTestIamPermissionsParams) WithDefaults added in v0.75.0

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

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

func (*ResourceServiceTestIamPermissionsParams) WithHTTPClient added in v0.75.0

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

func (*ResourceServiceTestIamPermissionsParams) WithTimeout added in v0.75.0

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

func (*ResourceServiceTestIamPermissionsParams) WriteToRequest added in v0.75.0

WriteToRequest writes these params to a swagger request

type ResourceServiceTestIamPermissionsReader added in v0.75.0

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

ResourceServiceTestIamPermissionsReader is a Reader for the ResourceServiceTestIamPermissions structure.

func (*ResourceServiceTestIamPermissionsReader) ReadResponse added in v0.75.0

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