authorization_service

package
v0.132.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 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 AuthorizationServiceBatchTestIamPermissionsDefault

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

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

An unexpected error response.

func NewAuthorizationServiceBatchTestIamPermissionsDefault

func NewAuthorizationServiceBatchTestIamPermissionsDefault(code int) *AuthorizationServiceBatchTestIamPermissionsDefault

NewAuthorizationServiceBatchTestIamPermissionsDefault creates a AuthorizationServiceBatchTestIamPermissionsDefault with default headers values

func (*AuthorizationServiceBatchTestIamPermissionsDefault) Code

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

func (*AuthorizationServiceBatchTestIamPermissionsDefault) Error

func (*AuthorizationServiceBatchTestIamPermissionsDefault) GetPayload

func (*AuthorizationServiceBatchTestIamPermissionsDefault) IsClientError

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

func (*AuthorizationServiceBatchTestIamPermissionsDefault) IsCode

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

func (*AuthorizationServiceBatchTestIamPermissionsDefault) IsRedirect

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

func (*AuthorizationServiceBatchTestIamPermissionsDefault) IsServerError

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

func (*AuthorizationServiceBatchTestIamPermissionsDefault) IsSuccess

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

func (*AuthorizationServiceBatchTestIamPermissionsDefault) String

type AuthorizationServiceBatchTestIamPermissionsOK

type AuthorizationServiceBatchTestIamPermissionsOK struct {
	Payload *models.HashicorpCloudResourcemanagerBatchAuthorizationTestIamPermissionsResponse
}

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

A successful response.

func NewAuthorizationServiceBatchTestIamPermissionsOK

func NewAuthorizationServiceBatchTestIamPermissionsOK() *AuthorizationServiceBatchTestIamPermissionsOK

NewAuthorizationServiceBatchTestIamPermissionsOK creates a AuthorizationServiceBatchTestIamPermissionsOK with default headers values

func (*AuthorizationServiceBatchTestIamPermissionsOK) Code

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

func (*AuthorizationServiceBatchTestIamPermissionsOK) Error

func (*AuthorizationServiceBatchTestIamPermissionsOK) IsClientError

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

func (*AuthorizationServiceBatchTestIamPermissionsOK) IsCode

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

func (*AuthorizationServiceBatchTestIamPermissionsOK) IsRedirect

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

func (*AuthorizationServiceBatchTestIamPermissionsOK) IsServerError

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

func (*AuthorizationServiceBatchTestIamPermissionsOK) IsSuccess

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

func (*AuthorizationServiceBatchTestIamPermissionsOK) String

type AuthorizationServiceBatchTestIamPermissionsParams

type AuthorizationServiceBatchTestIamPermissionsParams struct {

	/* Body.

	   BatchAuthorizationTestIamPermissionsRequest is a request to test a set of permissions for multiple resources.
	*/
	Body *models.HashicorpCloudResourcemanagerBatchAuthorizationTestIamPermissionsRequest

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

AuthorizationServiceBatchTestIamPermissionsParams contains all the parameters to send to the API endpoint

for the authorization service batch test iam permissions operation.

Typically these are written to a http.Request.

func NewAuthorizationServiceBatchTestIamPermissionsParams

func NewAuthorizationServiceBatchTestIamPermissionsParams() *AuthorizationServiceBatchTestIamPermissionsParams

NewAuthorizationServiceBatchTestIamPermissionsParams creates a new AuthorizationServiceBatchTestIamPermissionsParams 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 NewAuthorizationServiceBatchTestIamPermissionsParamsWithContext

func NewAuthorizationServiceBatchTestIamPermissionsParamsWithContext(ctx context.Context) *AuthorizationServiceBatchTestIamPermissionsParams

NewAuthorizationServiceBatchTestIamPermissionsParamsWithContext creates a new AuthorizationServiceBatchTestIamPermissionsParams object with the ability to set a context for a request.

func NewAuthorizationServiceBatchTestIamPermissionsParamsWithHTTPClient

func NewAuthorizationServiceBatchTestIamPermissionsParamsWithHTTPClient(client *http.Client) *AuthorizationServiceBatchTestIamPermissionsParams

NewAuthorizationServiceBatchTestIamPermissionsParamsWithHTTPClient creates a new AuthorizationServiceBatchTestIamPermissionsParams object with the ability to set a custom HTTPClient for a request.

func NewAuthorizationServiceBatchTestIamPermissionsParamsWithTimeout

func NewAuthorizationServiceBatchTestIamPermissionsParamsWithTimeout(timeout time.Duration) *AuthorizationServiceBatchTestIamPermissionsParams

NewAuthorizationServiceBatchTestIamPermissionsParamsWithTimeout creates a new AuthorizationServiceBatchTestIamPermissionsParams object with the ability to set a timeout on a request.

func (*AuthorizationServiceBatchTestIamPermissionsParams) SetBody

SetBody adds the body to the authorization service batch test iam permissions params

func (*AuthorizationServiceBatchTestIamPermissionsParams) SetContext

SetContext adds the context to the authorization service batch test iam permissions params

func (*AuthorizationServiceBatchTestIamPermissionsParams) SetDefaults

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

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

func (*AuthorizationServiceBatchTestIamPermissionsParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the authorization service batch test iam permissions params

func (*AuthorizationServiceBatchTestIamPermissionsParams) SetTimeout

SetTimeout adds the timeout to the authorization service batch test iam permissions params

func (*AuthorizationServiceBatchTestIamPermissionsParams) WithBody

WithBody adds the body to the authorization service batch test iam permissions params

func (*AuthorizationServiceBatchTestIamPermissionsParams) WithContext

WithContext adds the context to the authorization service batch test iam permissions params

func (*AuthorizationServiceBatchTestIamPermissionsParams) WithDefaults

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

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

func (*AuthorizationServiceBatchTestIamPermissionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the authorization service batch test iam permissions params

func (*AuthorizationServiceBatchTestIamPermissionsParams) WithTimeout

WithTimeout adds the timeout to the authorization service batch test iam permissions params

func (*AuthorizationServiceBatchTestIamPermissionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AuthorizationServiceBatchTestIamPermissionsReader

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

AuthorizationServiceBatchTestIamPermissionsReader is a Reader for the AuthorizationServiceBatchTestIamPermissions structure.

func (*AuthorizationServiceBatchTestIamPermissionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AuthorizationServiceTestIamPermissionsDefault

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

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

An unexpected error response.

func NewAuthorizationServiceTestIamPermissionsDefault

func NewAuthorizationServiceTestIamPermissionsDefault(code int) *AuthorizationServiceTestIamPermissionsDefault

NewAuthorizationServiceTestIamPermissionsDefault creates a AuthorizationServiceTestIamPermissionsDefault with default headers values

func (*AuthorizationServiceTestIamPermissionsDefault) Code

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

func (*AuthorizationServiceTestIamPermissionsDefault) Error

func (*AuthorizationServiceTestIamPermissionsDefault) GetPayload

func (*AuthorizationServiceTestIamPermissionsDefault) IsClientError

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

func (*AuthorizationServiceTestIamPermissionsDefault) IsCode

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

func (*AuthorizationServiceTestIamPermissionsDefault) IsRedirect

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

func (*AuthorizationServiceTestIamPermissionsDefault) IsServerError

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

func (*AuthorizationServiceTestIamPermissionsDefault) IsSuccess

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

func (*AuthorizationServiceTestIamPermissionsDefault) String

type AuthorizationServiceTestIamPermissionsOK

type AuthorizationServiceTestIamPermissionsOK struct {
	Payload *models.HashicorpCloudResourcemanagerAuthorizationTestIamPermissionsResponse
}

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

A successful response.

func NewAuthorizationServiceTestIamPermissionsOK

func NewAuthorizationServiceTestIamPermissionsOK() *AuthorizationServiceTestIamPermissionsOK

NewAuthorizationServiceTestIamPermissionsOK creates a AuthorizationServiceTestIamPermissionsOK with default headers values

func (*AuthorizationServiceTestIamPermissionsOK) Code

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

func (*AuthorizationServiceTestIamPermissionsOK) Error

func (*AuthorizationServiceTestIamPermissionsOK) IsClientError

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

func (*AuthorizationServiceTestIamPermissionsOK) IsCode

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

func (*AuthorizationServiceTestIamPermissionsOK) IsRedirect

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

func (*AuthorizationServiceTestIamPermissionsOK) IsServerError

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

func (*AuthorizationServiceTestIamPermissionsOK) IsSuccess

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

func (*AuthorizationServiceTestIamPermissionsOK) String

type AuthorizationServiceTestIamPermissionsParams

type AuthorizationServiceTestIamPermissionsParams struct {

	/* Body.

	   AuthorizationTestIamPermissionsRequest is a request to test a set of permissions.
	*/
	Body *models.HashicorpCloudResourcemanagerAuthorizationTestIamPermissionsRequest

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

AuthorizationServiceTestIamPermissionsParams contains all the parameters to send to the API endpoint

for the authorization service test iam permissions operation.

Typically these are written to a http.Request.

func NewAuthorizationServiceTestIamPermissionsParams

func NewAuthorizationServiceTestIamPermissionsParams() *AuthorizationServiceTestIamPermissionsParams

NewAuthorizationServiceTestIamPermissionsParams creates a new AuthorizationServiceTestIamPermissionsParams 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 NewAuthorizationServiceTestIamPermissionsParamsWithContext

func NewAuthorizationServiceTestIamPermissionsParamsWithContext(ctx context.Context) *AuthorizationServiceTestIamPermissionsParams

NewAuthorizationServiceTestIamPermissionsParamsWithContext creates a new AuthorizationServiceTestIamPermissionsParams object with the ability to set a context for a request.

func NewAuthorizationServiceTestIamPermissionsParamsWithHTTPClient

func NewAuthorizationServiceTestIamPermissionsParamsWithHTTPClient(client *http.Client) *AuthorizationServiceTestIamPermissionsParams

NewAuthorizationServiceTestIamPermissionsParamsWithHTTPClient creates a new AuthorizationServiceTestIamPermissionsParams object with the ability to set a custom HTTPClient for a request.

func NewAuthorizationServiceTestIamPermissionsParamsWithTimeout

func NewAuthorizationServiceTestIamPermissionsParamsWithTimeout(timeout time.Duration) *AuthorizationServiceTestIamPermissionsParams

NewAuthorizationServiceTestIamPermissionsParamsWithTimeout creates a new AuthorizationServiceTestIamPermissionsParams object with the ability to set a timeout on a request.

func (*AuthorizationServiceTestIamPermissionsParams) SetBody

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

func (*AuthorizationServiceTestIamPermissionsParams) SetContext

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

func (*AuthorizationServiceTestIamPermissionsParams) SetDefaults

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

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

func (*AuthorizationServiceTestIamPermissionsParams) SetHTTPClient

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

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

func (*AuthorizationServiceTestIamPermissionsParams) SetTimeout

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

func (*AuthorizationServiceTestIamPermissionsParams) WithBody

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

func (*AuthorizationServiceTestIamPermissionsParams) WithContext

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

func (*AuthorizationServiceTestIamPermissionsParams) WithDefaults

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

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

func (*AuthorizationServiceTestIamPermissionsParams) WithHTTPClient

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

func (*AuthorizationServiceTestIamPermissionsParams) WithTimeout

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

func (*AuthorizationServiceTestIamPermissionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AuthorizationServiceTestIamPermissionsReader

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

AuthorizationServiceTestIamPermissionsReader is a Reader for the AuthorizationServiceTestIamPermissions structure.

func (*AuthorizationServiceTestIamPermissionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for authorization service API

func (*Client) AuthorizationServiceBatchTestIamPermissions

AuthorizationServiceBatchTestIamPermissions batches test iam permissions allows for a batch of test iam permissions requests to be made in a single call

func (*Client) AuthorizationServiceTestIamPermissions

AuthorizationServiceTestIamPermissions tests iam permissions returns a subset of the request permissions the calling principal has for the authorization context

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 may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	AuthorizationServiceBatchTestIamPermissions(params *AuthorizationServiceBatchTestIamPermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AuthorizationServiceBatchTestIamPermissionsOK, error)

	AuthorizationServiceTestIamPermissions(params *AuthorizationServiceTestIamPermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AuthorizationServiceTestIamPermissionsOK, 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 authorization service API client.

func NewClientWithBasicAuth added in v0.126.0

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new authorization service API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken added in v0.126.0

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new authorization service API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

Jump to

Keyboard shortcuts

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