Documentation ¶
Index ¶
- type AuthorizationServiceBatchTestIamPermissionsDefault
- func (o *AuthorizationServiceBatchTestIamPermissionsDefault) Code() int
- func (o *AuthorizationServiceBatchTestIamPermissionsDefault) Error() string
- func (o *AuthorizationServiceBatchTestIamPermissionsDefault) GetPayload() *cloud.GoogleRPCStatus
- func (o *AuthorizationServiceBatchTestIamPermissionsDefault) IsClientError() bool
- func (o *AuthorizationServiceBatchTestIamPermissionsDefault) IsCode(code int) bool
- func (o *AuthorizationServiceBatchTestIamPermissionsDefault) IsRedirect() bool
- func (o *AuthorizationServiceBatchTestIamPermissionsDefault) IsServerError() bool
- func (o *AuthorizationServiceBatchTestIamPermissionsDefault) IsSuccess() bool
- func (o *AuthorizationServiceBatchTestIamPermissionsDefault) String() string
- type AuthorizationServiceBatchTestIamPermissionsOK
- func (o *AuthorizationServiceBatchTestIamPermissionsOK) Code() int
- func (o *AuthorizationServiceBatchTestIamPermissionsOK) Error() string
- func (o *AuthorizationServiceBatchTestIamPermissionsOK) GetPayload() ...
- func (o *AuthorizationServiceBatchTestIamPermissionsOK) IsClientError() bool
- func (o *AuthorizationServiceBatchTestIamPermissionsOK) IsCode(code int) bool
- func (o *AuthorizationServiceBatchTestIamPermissionsOK) IsRedirect() bool
- func (o *AuthorizationServiceBatchTestIamPermissionsOK) IsServerError() bool
- func (o *AuthorizationServiceBatchTestIamPermissionsOK) IsSuccess() bool
- func (o *AuthorizationServiceBatchTestIamPermissionsOK) String() string
- type AuthorizationServiceBatchTestIamPermissionsParams
- func NewAuthorizationServiceBatchTestIamPermissionsParams() *AuthorizationServiceBatchTestIamPermissionsParams
- func NewAuthorizationServiceBatchTestIamPermissionsParamsWithContext(ctx context.Context) *AuthorizationServiceBatchTestIamPermissionsParams
- func NewAuthorizationServiceBatchTestIamPermissionsParamsWithHTTPClient(client *http.Client) *AuthorizationServiceBatchTestIamPermissionsParams
- func NewAuthorizationServiceBatchTestIamPermissionsParamsWithTimeout(timeout time.Duration) *AuthorizationServiceBatchTestIamPermissionsParams
- func (o *AuthorizationServiceBatchTestIamPermissionsParams) SetBody(...)
- func (o *AuthorizationServiceBatchTestIamPermissionsParams) SetContext(ctx context.Context)
- func (o *AuthorizationServiceBatchTestIamPermissionsParams) SetDefaults()
- func (o *AuthorizationServiceBatchTestIamPermissionsParams) SetHTTPClient(client *http.Client)
- func (o *AuthorizationServiceBatchTestIamPermissionsParams) SetTimeout(timeout time.Duration)
- func (o *AuthorizationServiceBatchTestIamPermissionsParams) WithBody(...) *AuthorizationServiceBatchTestIamPermissionsParams
- func (o *AuthorizationServiceBatchTestIamPermissionsParams) WithContext(ctx context.Context) *AuthorizationServiceBatchTestIamPermissionsParams
- func (o *AuthorizationServiceBatchTestIamPermissionsParams) WithDefaults() *AuthorizationServiceBatchTestIamPermissionsParams
- func (o *AuthorizationServiceBatchTestIamPermissionsParams) WithHTTPClient(client *http.Client) *AuthorizationServiceBatchTestIamPermissionsParams
- func (o *AuthorizationServiceBatchTestIamPermissionsParams) WithTimeout(timeout time.Duration) *AuthorizationServiceBatchTestIamPermissionsParams
- func (o *AuthorizationServiceBatchTestIamPermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AuthorizationServiceBatchTestIamPermissionsReader
- type AuthorizationServiceTestIamPermissionsDefault
- func (o *AuthorizationServiceTestIamPermissionsDefault) Code() int
- func (o *AuthorizationServiceTestIamPermissionsDefault) Error() string
- func (o *AuthorizationServiceTestIamPermissionsDefault) GetPayload() *cloud.GoogleRPCStatus
- func (o *AuthorizationServiceTestIamPermissionsDefault) IsClientError() bool
- func (o *AuthorizationServiceTestIamPermissionsDefault) IsCode(code int) bool
- func (o *AuthorizationServiceTestIamPermissionsDefault) IsRedirect() bool
- func (o *AuthorizationServiceTestIamPermissionsDefault) IsServerError() bool
- func (o *AuthorizationServiceTestIamPermissionsDefault) IsSuccess() bool
- func (o *AuthorizationServiceTestIamPermissionsDefault) String() string
- type AuthorizationServiceTestIamPermissionsOK
- func (o *AuthorizationServiceTestIamPermissionsOK) Code() int
- func (o *AuthorizationServiceTestIamPermissionsOK) Error() string
- func (o *AuthorizationServiceTestIamPermissionsOK) GetPayload() *models.HashicorpCloudResourcemanagerAuthorizationTestIamPermissionsResponse
- func (o *AuthorizationServiceTestIamPermissionsOK) IsClientError() bool
- func (o *AuthorizationServiceTestIamPermissionsOK) IsCode(code int) bool
- func (o *AuthorizationServiceTestIamPermissionsOK) IsRedirect() bool
- func (o *AuthorizationServiceTestIamPermissionsOK) IsServerError() bool
- func (o *AuthorizationServiceTestIamPermissionsOK) IsSuccess() bool
- func (o *AuthorizationServiceTestIamPermissionsOK) String() string
- type AuthorizationServiceTestIamPermissionsParams
- func NewAuthorizationServiceTestIamPermissionsParams() *AuthorizationServiceTestIamPermissionsParams
- func NewAuthorizationServiceTestIamPermissionsParamsWithContext(ctx context.Context) *AuthorizationServiceTestIamPermissionsParams
- func NewAuthorizationServiceTestIamPermissionsParamsWithHTTPClient(client *http.Client) *AuthorizationServiceTestIamPermissionsParams
- func NewAuthorizationServiceTestIamPermissionsParamsWithTimeout(timeout time.Duration) *AuthorizationServiceTestIamPermissionsParams
- func (o *AuthorizationServiceTestIamPermissionsParams) SetBody(...)
- func (o *AuthorizationServiceTestIamPermissionsParams) SetContext(ctx context.Context)
- func (o *AuthorizationServiceTestIamPermissionsParams) SetDefaults()
- func (o *AuthorizationServiceTestIamPermissionsParams) SetHTTPClient(client *http.Client)
- func (o *AuthorizationServiceTestIamPermissionsParams) SetTimeout(timeout time.Duration)
- func (o *AuthorizationServiceTestIamPermissionsParams) WithBody(...) *AuthorizationServiceTestIamPermissionsParams
- func (o *AuthorizationServiceTestIamPermissionsParams) WithContext(ctx context.Context) *AuthorizationServiceTestIamPermissionsParams
- func (o *AuthorizationServiceTestIamPermissionsParams) WithDefaults() *AuthorizationServiceTestIamPermissionsParams
- func (o *AuthorizationServiceTestIamPermissionsParams) WithHTTPClient(client *http.Client) *AuthorizationServiceTestIamPermissionsParams
- func (o *AuthorizationServiceTestIamPermissionsParams) WithTimeout(timeout time.Duration) *AuthorizationServiceTestIamPermissionsParams
- func (o *AuthorizationServiceTestIamPermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AuthorizationServiceTestIamPermissionsReader
- type Client
- func (a *Client) AuthorizationServiceBatchTestIamPermissions(params *AuthorizationServiceBatchTestIamPermissionsParams, ...) (*AuthorizationServiceBatchTestIamPermissionsOK, error)
- func (a *Client) AuthorizationServiceTestIamPermissions(params *AuthorizationServiceTestIamPermissionsParams, ...) (*AuthorizationServiceTestIamPermissionsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
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 ¶
func (o *AuthorizationServiceBatchTestIamPermissionsDefault) Code() int
Code gets the status code for the authorization service batch test iam permissions default response
func (*AuthorizationServiceBatchTestIamPermissionsDefault) Error ¶
func (o *AuthorizationServiceBatchTestIamPermissionsDefault) Error() string
func (*AuthorizationServiceBatchTestIamPermissionsDefault) GetPayload ¶
func (o *AuthorizationServiceBatchTestIamPermissionsDefault) GetPayload() *cloud.GoogleRPCStatus
func (*AuthorizationServiceBatchTestIamPermissionsDefault) IsClientError ¶
func (o *AuthorizationServiceBatchTestIamPermissionsDefault) IsClientError() bool
IsClientError returns true when this authorization service batch test iam permissions default response has a 4xx status code
func (*AuthorizationServiceBatchTestIamPermissionsDefault) IsCode ¶
func (o *AuthorizationServiceBatchTestIamPermissionsDefault) IsCode(code int) bool
IsCode returns true when this authorization service batch test iam permissions default response a status code equal to that given
func (*AuthorizationServiceBatchTestIamPermissionsDefault) IsRedirect ¶
func (o *AuthorizationServiceBatchTestIamPermissionsDefault) IsRedirect() bool
IsRedirect returns true when this authorization service batch test iam permissions default response has a 3xx status code
func (*AuthorizationServiceBatchTestIamPermissionsDefault) IsServerError ¶
func (o *AuthorizationServiceBatchTestIamPermissionsDefault) IsServerError() bool
IsServerError returns true when this authorization service batch test iam permissions default response has a 5xx status code
func (*AuthorizationServiceBatchTestIamPermissionsDefault) IsSuccess ¶
func (o *AuthorizationServiceBatchTestIamPermissionsDefault) IsSuccess() bool
IsSuccess returns true when this authorization service batch test iam permissions default response has a 2xx status code
func (*AuthorizationServiceBatchTestIamPermissionsDefault) String ¶
func (o *AuthorizationServiceBatchTestIamPermissionsDefault) String() 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 ¶
func (o *AuthorizationServiceBatchTestIamPermissionsOK) Code() int
Code gets the status code for the authorization service batch test iam permissions o k response
func (*AuthorizationServiceBatchTestIamPermissionsOK) Error ¶
func (o *AuthorizationServiceBatchTestIamPermissionsOK) Error() string
func (*AuthorizationServiceBatchTestIamPermissionsOK) GetPayload ¶
func (*AuthorizationServiceBatchTestIamPermissionsOK) IsClientError ¶
func (o *AuthorizationServiceBatchTestIamPermissionsOK) IsClientError() bool
IsClientError returns true when this authorization service batch test iam permissions o k response has a 4xx status code
func (*AuthorizationServiceBatchTestIamPermissionsOK) IsCode ¶
func (o *AuthorizationServiceBatchTestIamPermissionsOK) IsCode(code int) bool
IsCode returns true when this authorization service batch test iam permissions o k response a status code equal to that given
func (*AuthorizationServiceBatchTestIamPermissionsOK) IsRedirect ¶
func (o *AuthorizationServiceBatchTestIamPermissionsOK) IsRedirect() bool
IsRedirect returns true when this authorization service batch test iam permissions o k response has a 3xx status code
func (*AuthorizationServiceBatchTestIamPermissionsOK) IsServerError ¶
func (o *AuthorizationServiceBatchTestIamPermissionsOK) IsServerError() bool
IsServerError returns true when this authorization service batch test iam permissions o k response has a 5xx status code
func (*AuthorizationServiceBatchTestIamPermissionsOK) IsSuccess ¶
func (o *AuthorizationServiceBatchTestIamPermissionsOK) IsSuccess() bool
IsSuccess returns true when this authorization service batch test iam permissions o k response has a 2xx status code
func (*AuthorizationServiceBatchTestIamPermissionsOK) String ¶
func (o *AuthorizationServiceBatchTestIamPermissionsOK) String() 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 ¶
func (o *AuthorizationServiceBatchTestIamPermissionsParams) SetBody(body *models.HashicorpCloudResourcemanagerBatchAuthorizationTestIamPermissionsRequest)
SetBody adds the body to the authorization service batch test iam permissions params
func (*AuthorizationServiceBatchTestIamPermissionsParams) SetContext ¶
func (o *AuthorizationServiceBatchTestIamPermissionsParams) SetContext(ctx context.Context)
SetContext adds the context to the authorization service batch test iam permissions params
func (*AuthorizationServiceBatchTestIamPermissionsParams) SetDefaults ¶
func (o *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 ¶
func (o *AuthorizationServiceBatchTestIamPermissionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the authorization service batch test iam permissions params
func (*AuthorizationServiceBatchTestIamPermissionsParams) SetTimeout ¶
func (o *AuthorizationServiceBatchTestIamPermissionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the authorization service batch test iam permissions params
func (*AuthorizationServiceBatchTestIamPermissionsParams) WithBody ¶
func (o *AuthorizationServiceBatchTestIamPermissionsParams) WithBody(body *models.HashicorpCloudResourcemanagerBatchAuthorizationTestIamPermissionsRequest) *AuthorizationServiceBatchTestIamPermissionsParams
WithBody adds the body to the authorization service batch test iam permissions params
func (*AuthorizationServiceBatchTestIamPermissionsParams) WithContext ¶
func (o *AuthorizationServiceBatchTestIamPermissionsParams) WithContext(ctx context.Context) *AuthorizationServiceBatchTestIamPermissionsParams
WithContext adds the context to the authorization service batch test iam permissions params
func (*AuthorizationServiceBatchTestIamPermissionsParams) WithDefaults ¶
func (o *AuthorizationServiceBatchTestIamPermissionsParams) WithDefaults() *AuthorizationServiceBatchTestIamPermissionsParams
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 ¶
func (o *AuthorizationServiceBatchTestIamPermissionsParams) WithHTTPClient(client *http.Client) *AuthorizationServiceBatchTestIamPermissionsParams
WithHTTPClient adds the HTTPClient to the authorization service batch test iam permissions params
func (*AuthorizationServiceBatchTestIamPermissionsParams) WithTimeout ¶
func (o *AuthorizationServiceBatchTestIamPermissionsParams) WithTimeout(timeout time.Duration) *AuthorizationServiceBatchTestIamPermissionsParams
WithTimeout adds the timeout to the authorization service batch test iam permissions params
func (*AuthorizationServiceBatchTestIamPermissionsParams) WriteToRequest ¶
func (o *AuthorizationServiceBatchTestIamPermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *AuthorizationServiceTestIamPermissionsDefault) Code() int
Code gets the status code for the authorization service test iam permissions default response
func (*AuthorizationServiceTestIamPermissionsDefault) Error ¶
func (o *AuthorizationServiceTestIamPermissionsDefault) Error() string
func (*AuthorizationServiceTestIamPermissionsDefault) GetPayload ¶
func (o *AuthorizationServiceTestIamPermissionsDefault) GetPayload() *cloud.GoogleRPCStatus
func (*AuthorizationServiceTestIamPermissionsDefault) IsClientError ¶
func (o *AuthorizationServiceTestIamPermissionsDefault) IsClientError() bool
IsClientError returns true when this authorization service test iam permissions default response has a 4xx status code
func (*AuthorizationServiceTestIamPermissionsDefault) IsCode ¶
func (o *AuthorizationServiceTestIamPermissionsDefault) IsCode(code int) bool
IsCode returns true when this authorization service test iam permissions default response a status code equal to that given
func (*AuthorizationServiceTestIamPermissionsDefault) IsRedirect ¶
func (o *AuthorizationServiceTestIamPermissionsDefault) IsRedirect() bool
IsRedirect returns true when this authorization service test iam permissions default response has a 3xx status code
func (*AuthorizationServiceTestIamPermissionsDefault) IsServerError ¶
func (o *AuthorizationServiceTestIamPermissionsDefault) IsServerError() bool
IsServerError returns true when this authorization service test iam permissions default response has a 5xx status code
func (*AuthorizationServiceTestIamPermissionsDefault) IsSuccess ¶
func (o *AuthorizationServiceTestIamPermissionsDefault) IsSuccess() bool
IsSuccess returns true when this authorization service test iam permissions default response has a 2xx status code
func (*AuthorizationServiceTestIamPermissionsDefault) String ¶
func (o *AuthorizationServiceTestIamPermissionsDefault) String() 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 ¶
func (o *AuthorizationServiceTestIamPermissionsOK) Code() int
Code gets the status code for the authorization service test iam permissions o k response
func (*AuthorizationServiceTestIamPermissionsOK) Error ¶
func (o *AuthorizationServiceTestIamPermissionsOK) Error() string
func (*AuthorizationServiceTestIamPermissionsOK) GetPayload ¶
func (*AuthorizationServiceTestIamPermissionsOK) IsClientError ¶
func (o *AuthorizationServiceTestIamPermissionsOK) IsClientError() bool
IsClientError returns true when this authorization service test iam permissions o k response has a 4xx status code
func (*AuthorizationServiceTestIamPermissionsOK) IsCode ¶
func (o *AuthorizationServiceTestIamPermissionsOK) IsCode(code int) bool
IsCode returns true when this authorization service test iam permissions o k response a status code equal to that given
func (*AuthorizationServiceTestIamPermissionsOK) IsRedirect ¶
func (o *AuthorizationServiceTestIamPermissionsOK) IsRedirect() bool
IsRedirect returns true when this authorization service test iam permissions o k response has a 3xx status code
func (*AuthorizationServiceTestIamPermissionsOK) IsServerError ¶
func (o *AuthorizationServiceTestIamPermissionsOK) IsServerError() bool
IsServerError returns true when this authorization service test iam permissions o k response has a 5xx status code
func (*AuthorizationServiceTestIamPermissionsOK) IsSuccess ¶
func (o *AuthorizationServiceTestIamPermissionsOK) IsSuccess() bool
IsSuccess returns true when this authorization service test iam permissions o k response has a 2xx status code
func (*AuthorizationServiceTestIamPermissionsOK) String ¶
func (o *AuthorizationServiceTestIamPermissionsOK) String() 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 ¶
func (o *AuthorizationServiceTestIamPermissionsParams) SetBody(body *models.HashicorpCloudResourcemanagerAuthorizationTestIamPermissionsRequest)
SetBody adds the body to the authorization service test iam permissions params
func (*AuthorizationServiceTestIamPermissionsParams) SetContext ¶
func (o *AuthorizationServiceTestIamPermissionsParams) SetContext(ctx context.Context)
SetContext adds the context to the authorization service test iam permissions params
func (*AuthorizationServiceTestIamPermissionsParams) SetDefaults ¶
func (o *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 ¶
func (o *AuthorizationServiceTestIamPermissionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the authorization service test iam permissions params
func (*AuthorizationServiceTestIamPermissionsParams) WithBody ¶
func (o *AuthorizationServiceTestIamPermissionsParams) WithBody(body *models.HashicorpCloudResourcemanagerAuthorizationTestIamPermissionsRequest) *AuthorizationServiceTestIamPermissionsParams
WithBody adds the body to the authorization service test iam permissions params
func (*AuthorizationServiceTestIamPermissionsParams) WithContext ¶
func (o *AuthorizationServiceTestIamPermissionsParams) WithContext(ctx context.Context) *AuthorizationServiceTestIamPermissionsParams
WithContext adds the context to the authorization service test iam permissions params
func (*AuthorizationServiceTestIamPermissionsParams) WithDefaults ¶
func (o *AuthorizationServiceTestIamPermissionsParams) WithDefaults() *AuthorizationServiceTestIamPermissionsParams
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 ¶
func (o *AuthorizationServiceTestIamPermissionsParams) WithHTTPClient(client *http.Client) *AuthorizationServiceTestIamPermissionsParams
WithHTTPClient adds the HTTPClient to the authorization service test iam permissions params
func (*AuthorizationServiceTestIamPermissionsParams) WithTimeout ¶
func (o *AuthorizationServiceTestIamPermissionsParams) WithTimeout(timeout time.Duration) *AuthorizationServiceTestIamPermissionsParams
WithTimeout adds the timeout to the authorization service test iam permissions params
func (*AuthorizationServiceTestIamPermissionsParams) WriteToRequest ¶
func (o *AuthorizationServiceTestIamPermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (a *Client) AuthorizationServiceBatchTestIamPermissions(params *AuthorizationServiceBatchTestIamPermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AuthorizationServiceBatchTestIamPermissionsOK, error)
AuthorizationServiceBatchTestIamPermissions batches test iam permissions allows for a batch of test iam permissions requests to be made in a single call
func (*Client) AuthorizationServiceTestIamPermissions ¶
func (a *Client) AuthorizationServiceTestIamPermissions(params *AuthorizationServiceTestIamPermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AuthorizationServiceTestIamPermissionsOK, error)
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.