organization_service

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 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 organization service API

func (*Client) OrganizationServiceCreate

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

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

func (*Client) OrganizationServiceGet

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

OrganizationServiceGet gets retrieves the requested organization by ID

func (*Client) OrganizationServiceGetIamPolicy

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

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

func (*Client) OrganizationServiceList

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

OrganizationServiceList lists lists the organizations the caller has access to

func (*Client) OrganizationServiceSetIamPolicy

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

OrganizationServiceSetIamPolicy sets iam policy sets the i a m policy for an organization

func (*Client) OrganizationServiceTestIamPermissions

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

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	OrganizationServiceCreate(params *OrganizationServiceCreateParams, authInfo runtime.ClientAuthInfoWriter) (*OrganizationServiceCreateOK, error)

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

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

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

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

	OrganizationServiceTestIamPermissions(params *OrganizationServiceTestIamPermissionsParams, authInfo runtime.ClientAuthInfoWriter) (*OrganizationServiceTestIamPermissionsOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new organization service API client.

type OrganizationServiceCreateDefault

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

OrganizationServiceCreateDefault handles this case with default header values.

An unexpected error response.

func NewOrganizationServiceCreateDefault

func NewOrganizationServiceCreateDefault(code int) *OrganizationServiceCreateDefault

NewOrganizationServiceCreateDefault creates a OrganizationServiceCreateDefault with default headers values

func (*OrganizationServiceCreateDefault) Code

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

func (*OrganizationServiceCreateDefault) Error

func (*OrganizationServiceCreateDefault) GetPayload

type OrganizationServiceCreateOK

type OrganizationServiceCreateOK struct {
	Payload *models.HashicorpCloudResourcemanagerOrganizationCreateResponse
}

OrganizationServiceCreateOK handles this case with default header values.

A successful response.

func NewOrganizationServiceCreateOK

func NewOrganizationServiceCreateOK() *OrganizationServiceCreateOK

NewOrganizationServiceCreateOK creates a OrganizationServiceCreateOK with default headers values

func (*OrganizationServiceCreateOK) Error

type OrganizationServiceCreateParams

type OrganizationServiceCreateParams struct {

	/*Body*/
	Body *models.HashicorpCloudResourcemanagerOrganizationCreateRequest

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

OrganizationServiceCreateParams contains all the parameters to send to the API endpoint for the organization service create operation typically these are written to a http.Request

func NewOrganizationServiceCreateParams

func NewOrganizationServiceCreateParams() *OrganizationServiceCreateParams

NewOrganizationServiceCreateParams creates a new OrganizationServiceCreateParams object with the default values initialized.

func NewOrganizationServiceCreateParamsWithContext

func NewOrganizationServiceCreateParamsWithContext(ctx context.Context) *OrganizationServiceCreateParams

NewOrganizationServiceCreateParamsWithContext creates a new OrganizationServiceCreateParams object with the default values initialized, and the ability to set a context for a request

func NewOrganizationServiceCreateParamsWithHTTPClient

func NewOrganizationServiceCreateParamsWithHTTPClient(client *http.Client) *OrganizationServiceCreateParams

NewOrganizationServiceCreateParamsWithHTTPClient creates a new OrganizationServiceCreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewOrganizationServiceCreateParamsWithTimeout

func NewOrganizationServiceCreateParamsWithTimeout(timeout time.Duration) *OrganizationServiceCreateParams

NewOrganizationServiceCreateParamsWithTimeout creates a new OrganizationServiceCreateParams object with the default values initialized, and the ability to set a timeout on a request

func (*OrganizationServiceCreateParams) SetBody

SetBody adds the body to the organization service create params

func (*OrganizationServiceCreateParams) SetContext

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

SetContext adds the context to the organization service create params

func (*OrganizationServiceCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the organization service create params

func (*OrganizationServiceCreateParams) SetTimeout

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

SetTimeout adds the timeout to the organization service create params

func (*OrganizationServiceCreateParams) WithBody

WithBody adds the body to the organization service create params

func (*OrganizationServiceCreateParams) WithContext

WithContext adds the context to the organization service create params

func (*OrganizationServiceCreateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the organization service create params

func (*OrganizationServiceCreateParams) WithTimeout

WithTimeout adds the timeout to the organization service create params

func (*OrganizationServiceCreateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrganizationServiceCreateReader

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

OrganizationServiceCreateReader is a Reader for the OrganizationServiceCreate structure.

func (*OrganizationServiceCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrganizationServiceGetDefault

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

OrganizationServiceGetDefault handles this case with default header values.

An unexpected error response.

func NewOrganizationServiceGetDefault

func NewOrganizationServiceGetDefault(code int) *OrganizationServiceGetDefault

NewOrganizationServiceGetDefault creates a OrganizationServiceGetDefault with default headers values

func (*OrganizationServiceGetDefault) Code

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

func (*OrganizationServiceGetDefault) Error

func (*OrganizationServiceGetDefault) GetPayload

type OrganizationServiceGetIamPolicyDefault

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

OrganizationServiceGetIamPolicyDefault handles this case with default header values.

An unexpected error response.

func NewOrganizationServiceGetIamPolicyDefault

func NewOrganizationServiceGetIamPolicyDefault(code int) *OrganizationServiceGetIamPolicyDefault

NewOrganizationServiceGetIamPolicyDefault creates a OrganizationServiceGetIamPolicyDefault with default headers values

func (*OrganizationServiceGetIamPolicyDefault) Code

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

func (*OrganizationServiceGetIamPolicyDefault) Error

func (*OrganizationServiceGetIamPolicyDefault) GetPayload

type OrganizationServiceGetIamPolicyOK

type OrganizationServiceGetIamPolicyOK struct {
	Payload *models.HashicorpCloudResourcemanagerOrganizationGetIamPolicyResponse
}

OrganizationServiceGetIamPolicyOK handles this case with default header values.

A successful response.

func NewOrganizationServiceGetIamPolicyOK

func NewOrganizationServiceGetIamPolicyOK() *OrganizationServiceGetIamPolicyOK

NewOrganizationServiceGetIamPolicyOK creates a OrganizationServiceGetIamPolicyOK with default headers values

func (*OrganizationServiceGetIamPolicyOK) Error

type OrganizationServiceGetIamPolicyParams

type OrganizationServiceGetIamPolicyParams struct {

	/*ID
	  ID is the identifier of the organization.

	*/
	ID string

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

OrganizationServiceGetIamPolicyParams contains all the parameters to send to the API endpoint for the organization service get iam policy operation typically these are written to a http.Request

func NewOrganizationServiceGetIamPolicyParams

func NewOrganizationServiceGetIamPolicyParams() *OrganizationServiceGetIamPolicyParams

NewOrganizationServiceGetIamPolicyParams creates a new OrganizationServiceGetIamPolicyParams object with the default values initialized.

func NewOrganizationServiceGetIamPolicyParamsWithContext

func NewOrganizationServiceGetIamPolicyParamsWithContext(ctx context.Context) *OrganizationServiceGetIamPolicyParams

NewOrganizationServiceGetIamPolicyParamsWithContext creates a new OrganizationServiceGetIamPolicyParams object with the default values initialized, and the ability to set a context for a request

func NewOrganizationServiceGetIamPolicyParamsWithHTTPClient

func NewOrganizationServiceGetIamPolicyParamsWithHTTPClient(client *http.Client) *OrganizationServiceGetIamPolicyParams

NewOrganizationServiceGetIamPolicyParamsWithHTTPClient creates a new OrganizationServiceGetIamPolicyParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewOrganizationServiceGetIamPolicyParamsWithTimeout

func NewOrganizationServiceGetIamPolicyParamsWithTimeout(timeout time.Duration) *OrganizationServiceGetIamPolicyParams

NewOrganizationServiceGetIamPolicyParamsWithTimeout creates a new OrganizationServiceGetIamPolicyParams object with the default values initialized, and the ability to set a timeout on a request

func (*OrganizationServiceGetIamPolicyParams) SetContext

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

func (*OrganizationServiceGetIamPolicyParams) SetHTTPClient

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

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

func (*OrganizationServiceGetIamPolicyParams) SetID

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

func (*OrganizationServiceGetIamPolicyParams) SetTimeout

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

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

func (*OrganizationServiceGetIamPolicyParams) WithContext

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

func (*OrganizationServiceGetIamPolicyParams) WithHTTPClient

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

func (*OrganizationServiceGetIamPolicyParams) WithID

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

func (*OrganizationServiceGetIamPolicyParams) WithTimeout

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

func (*OrganizationServiceGetIamPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrganizationServiceGetIamPolicyReader

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

OrganizationServiceGetIamPolicyReader is a Reader for the OrganizationServiceGetIamPolicy structure.

func (*OrganizationServiceGetIamPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrganizationServiceGetOK

type OrganizationServiceGetOK struct {
	Payload *models.HashicorpCloudResourcemanagerOrganizationGetResponse
}

OrganizationServiceGetOK handles this case with default header values.

A successful response.

func NewOrganizationServiceGetOK

func NewOrganizationServiceGetOK() *OrganizationServiceGetOK

NewOrganizationServiceGetOK creates a OrganizationServiceGetOK with default headers values

func (*OrganizationServiceGetOK) Error

func (o *OrganizationServiceGetOK) Error() string

func (*OrganizationServiceGetOK) GetPayload

type OrganizationServiceGetParams

type OrganizationServiceGetParams struct {

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

	*/
	ID string

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

OrganizationServiceGetParams contains all the parameters to send to the API endpoint for the organization service get operation typically these are written to a http.Request

func NewOrganizationServiceGetParams

func NewOrganizationServiceGetParams() *OrganizationServiceGetParams

NewOrganizationServiceGetParams creates a new OrganizationServiceGetParams object with the default values initialized.

func NewOrganizationServiceGetParamsWithContext

func NewOrganizationServiceGetParamsWithContext(ctx context.Context) *OrganizationServiceGetParams

NewOrganizationServiceGetParamsWithContext creates a new OrganizationServiceGetParams object with the default values initialized, and the ability to set a context for a request

func NewOrganizationServiceGetParamsWithHTTPClient

func NewOrganizationServiceGetParamsWithHTTPClient(client *http.Client) *OrganizationServiceGetParams

NewOrganizationServiceGetParamsWithHTTPClient creates a new OrganizationServiceGetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewOrganizationServiceGetParamsWithTimeout

func NewOrganizationServiceGetParamsWithTimeout(timeout time.Duration) *OrganizationServiceGetParams

NewOrganizationServiceGetParamsWithTimeout creates a new OrganizationServiceGetParams object with the default values initialized, and the ability to set a timeout on a request

func (*OrganizationServiceGetParams) SetContext

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

SetContext adds the context to the organization service get params

func (*OrganizationServiceGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the organization service get params

func (*OrganizationServiceGetParams) SetID

func (o *OrganizationServiceGetParams) SetID(id string)

SetID adds the id to the organization service get params

func (*OrganizationServiceGetParams) SetTimeout

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

SetTimeout adds the timeout to the organization service get params

func (*OrganizationServiceGetParams) WithContext

WithContext adds the context to the organization service get params

func (*OrganizationServiceGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the organization service get params

func (*OrganizationServiceGetParams) WithID

WithID adds the id to the organization service get params

func (*OrganizationServiceGetParams) WithTimeout

WithTimeout adds the timeout to the organization service get params

func (*OrganizationServiceGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrganizationServiceGetReader

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

OrganizationServiceGetReader is a Reader for the OrganizationServiceGet structure.

func (*OrganizationServiceGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrganizationServiceListDefault

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

OrganizationServiceListDefault handles this case with default header values.

An unexpected error response.

func NewOrganizationServiceListDefault

func NewOrganizationServiceListDefault(code int) *OrganizationServiceListDefault

NewOrganizationServiceListDefault creates a OrganizationServiceListDefault with default headers values

func (*OrganizationServiceListDefault) Code

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

func (*OrganizationServiceListDefault) Error

func (*OrganizationServiceListDefault) GetPayload

type OrganizationServiceListOK

type OrganizationServiceListOK struct {
	Payload *models.HashicorpCloudResourcemanagerOrganizationListResponse
}

OrganizationServiceListOK handles this case with default header values.

A successful response.

func NewOrganizationServiceListOK

func NewOrganizationServiceListOK() *OrganizationServiceListOK

NewOrganizationServiceListOK creates a OrganizationServiceListOK with default headers values

func (*OrganizationServiceListOK) Error

func (o *OrganizationServiceListOK) Error() string

func (*OrganizationServiceListOK) GetPayload

type OrganizationServiceListParams

type OrganizationServiceListParams struct {

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

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

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

	*/
	PaginationPreviousPageToken *string

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

OrganizationServiceListParams contains all the parameters to send to the API endpoint for the organization service list operation typically these are written to a http.Request

func NewOrganizationServiceListParams

func NewOrganizationServiceListParams() *OrganizationServiceListParams

NewOrganizationServiceListParams creates a new OrganizationServiceListParams object with the default values initialized.

func NewOrganizationServiceListParamsWithContext

func NewOrganizationServiceListParamsWithContext(ctx context.Context) *OrganizationServiceListParams

NewOrganizationServiceListParamsWithContext creates a new OrganizationServiceListParams object with the default values initialized, and the ability to set a context for a request

func NewOrganizationServiceListParamsWithHTTPClient

func NewOrganizationServiceListParamsWithHTTPClient(client *http.Client) *OrganizationServiceListParams

NewOrganizationServiceListParamsWithHTTPClient creates a new OrganizationServiceListParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewOrganizationServiceListParamsWithTimeout

func NewOrganizationServiceListParamsWithTimeout(timeout time.Duration) *OrganizationServiceListParams

NewOrganizationServiceListParamsWithTimeout creates a new OrganizationServiceListParams object with the default values initialized, and the ability to set a timeout on a request

func (*OrganizationServiceListParams) SetContext

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

SetContext adds the context to the organization service list params

func (*OrganizationServiceListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the organization service list params

func (*OrganizationServiceListParams) SetPaginationNextPageToken

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

SetPaginationNextPageToken adds the paginationNextPageToken to the organization service list params

func (*OrganizationServiceListParams) SetPaginationPageSize

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

SetPaginationPageSize adds the paginationPageSize to the organization service list params

func (*OrganizationServiceListParams) SetPaginationPreviousPageToken

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

SetPaginationPreviousPageToken adds the paginationPreviousPageToken to the organization service list params

func (*OrganizationServiceListParams) SetTimeout

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

SetTimeout adds the timeout to the organization service list params

func (*OrganizationServiceListParams) WithContext

WithContext adds the context to the organization service list params

func (*OrganizationServiceListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the organization service list params

func (*OrganizationServiceListParams) WithPaginationNextPageToken

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

WithPaginationNextPageToken adds the paginationNextPageToken to the organization service list params

func (*OrganizationServiceListParams) WithPaginationPageSize

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

WithPaginationPageSize adds the paginationPageSize to the organization service list params

func (*OrganizationServiceListParams) WithPaginationPreviousPageToken

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

WithPaginationPreviousPageToken adds the paginationPreviousPageToken to the organization service list params

func (*OrganizationServiceListParams) WithTimeout

WithTimeout adds the timeout to the organization service list params

func (*OrganizationServiceListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrganizationServiceListReader

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

OrganizationServiceListReader is a Reader for the OrganizationServiceList structure.

func (*OrganizationServiceListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrganizationServiceSetIamPolicyDefault

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

OrganizationServiceSetIamPolicyDefault handles this case with default header values.

An unexpected error response.

func NewOrganizationServiceSetIamPolicyDefault

func NewOrganizationServiceSetIamPolicyDefault(code int) *OrganizationServiceSetIamPolicyDefault

NewOrganizationServiceSetIamPolicyDefault creates a OrganizationServiceSetIamPolicyDefault with default headers values

func (*OrganizationServiceSetIamPolicyDefault) Code

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

func (*OrganizationServiceSetIamPolicyDefault) Error

func (*OrganizationServiceSetIamPolicyDefault) GetPayload

type OrganizationServiceSetIamPolicyOK

type OrganizationServiceSetIamPolicyOK struct {
	Payload *models.HashicorpCloudResourcemanagerOrganizationSetIamPolicyResponse
}

OrganizationServiceSetIamPolicyOK handles this case with default header values.

A successful response.

func NewOrganizationServiceSetIamPolicyOK

func NewOrganizationServiceSetIamPolicyOK() *OrganizationServiceSetIamPolicyOK

NewOrganizationServiceSetIamPolicyOK creates a OrganizationServiceSetIamPolicyOK with default headers values

func (*OrganizationServiceSetIamPolicyOK) Error

type OrganizationServiceSetIamPolicyParams

type OrganizationServiceSetIamPolicyParams struct {

	/*Body*/
	Body *models.HashicorpCloudResourcemanagerOrganizationSetIamPolicyRequest
	/*ID
	  ID is the identifier of the organization.

	*/
	ID string

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

OrganizationServiceSetIamPolicyParams contains all the parameters to send to the API endpoint for the organization service set iam policy operation typically these are written to a http.Request

func NewOrganizationServiceSetIamPolicyParams

func NewOrganizationServiceSetIamPolicyParams() *OrganizationServiceSetIamPolicyParams

NewOrganizationServiceSetIamPolicyParams creates a new OrganizationServiceSetIamPolicyParams object with the default values initialized.

func NewOrganizationServiceSetIamPolicyParamsWithContext

func NewOrganizationServiceSetIamPolicyParamsWithContext(ctx context.Context) *OrganizationServiceSetIamPolicyParams

NewOrganizationServiceSetIamPolicyParamsWithContext creates a new OrganizationServiceSetIamPolicyParams object with the default values initialized, and the ability to set a context for a request

func NewOrganizationServiceSetIamPolicyParamsWithHTTPClient

func NewOrganizationServiceSetIamPolicyParamsWithHTTPClient(client *http.Client) *OrganizationServiceSetIamPolicyParams

NewOrganizationServiceSetIamPolicyParamsWithHTTPClient creates a new OrganizationServiceSetIamPolicyParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewOrganizationServiceSetIamPolicyParamsWithTimeout

func NewOrganizationServiceSetIamPolicyParamsWithTimeout(timeout time.Duration) *OrganizationServiceSetIamPolicyParams

NewOrganizationServiceSetIamPolicyParamsWithTimeout creates a new OrganizationServiceSetIamPolicyParams object with the default values initialized, and the ability to set a timeout on a request

func (*OrganizationServiceSetIamPolicyParams) SetBody

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

func (*OrganizationServiceSetIamPolicyParams) SetContext

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

func (*OrganizationServiceSetIamPolicyParams) SetHTTPClient

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

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

func (*OrganizationServiceSetIamPolicyParams) SetID

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

func (*OrganizationServiceSetIamPolicyParams) SetTimeout

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

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

func (*OrganizationServiceSetIamPolicyParams) WithBody

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

func (*OrganizationServiceSetIamPolicyParams) WithContext

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

func (*OrganizationServiceSetIamPolicyParams) WithHTTPClient

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

func (*OrganizationServiceSetIamPolicyParams) WithID

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

func (*OrganizationServiceSetIamPolicyParams) WithTimeout

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

func (*OrganizationServiceSetIamPolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrganizationServiceSetIamPolicyReader

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

OrganizationServiceSetIamPolicyReader is a Reader for the OrganizationServiceSetIamPolicy structure.

func (*OrganizationServiceSetIamPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrganizationServiceTestIamPermissionsDefault

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

OrganizationServiceTestIamPermissionsDefault handles this case with default header values.

An unexpected error response.

func NewOrganizationServiceTestIamPermissionsDefault

func NewOrganizationServiceTestIamPermissionsDefault(code int) *OrganizationServiceTestIamPermissionsDefault

NewOrganizationServiceTestIamPermissionsDefault creates a OrganizationServiceTestIamPermissionsDefault with default headers values

func (*OrganizationServiceTestIamPermissionsDefault) Code

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

func (*OrganizationServiceTestIamPermissionsDefault) Error

func (*OrganizationServiceTestIamPermissionsDefault) GetPayload

type OrganizationServiceTestIamPermissionsOK

type OrganizationServiceTestIamPermissionsOK struct {
	Payload *models.HashicorpCloudResourcemanagerOrganizationTestIamPermissionsResponse
}

OrganizationServiceTestIamPermissionsOK handles this case with default header values.

A successful response.

func NewOrganizationServiceTestIamPermissionsOK

func NewOrganizationServiceTestIamPermissionsOK() *OrganizationServiceTestIamPermissionsOK

NewOrganizationServiceTestIamPermissionsOK creates a OrganizationServiceTestIamPermissionsOK with default headers values

func (*OrganizationServiceTestIamPermissionsOK) Error

type OrganizationServiceTestIamPermissionsParams

type OrganizationServiceTestIamPermissionsParams struct {

	/*Body*/
	Body *models.HashicorpCloudResourcemanagerOrganizationTestIamPermissionsRequest
	/*ID
	  ID is the identifier of the organization.

	*/
	ID string

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

OrganizationServiceTestIamPermissionsParams contains all the parameters to send to the API endpoint for the organization service test iam permissions operation typically these are written to a http.Request

func NewOrganizationServiceTestIamPermissionsParams

func NewOrganizationServiceTestIamPermissionsParams() *OrganizationServiceTestIamPermissionsParams

NewOrganizationServiceTestIamPermissionsParams creates a new OrganizationServiceTestIamPermissionsParams object with the default values initialized.

func NewOrganizationServiceTestIamPermissionsParamsWithContext

func NewOrganizationServiceTestIamPermissionsParamsWithContext(ctx context.Context) *OrganizationServiceTestIamPermissionsParams

NewOrganizationServiceTestIamPermissionsParamsWithContext creates a new OrganizationServiceTestIamPermissionsParams object with the default values initialized, and the ability to set a context for a request

func NewOrganizationServiceTestIamPermissionsParamsWithHTTPClient

func NewOrganizationServiceTestIamPermissionsParamsWithHTTPClient(client *http.Client) *OrganizationServiceTestIamPermissionsParams

NewOrganizationServiceTestIamPermissionsParamsWithHTTPClient creates a new OrganizationServiceTestIamPermissionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewOrganizationServiceTestIamPermissionsParamsWithTimeout

func NewOrganizationServiceTestIamPermissionsParamsWithTimeout(timeout time.Duration) *OrganizationServiceTestIamPermissionsParams

NewOrganizationServiceTestIamPermissionsParamsWithTimeout creates a new OrganizationServiceTestIamPermissionsParams object with the default values initialized, and the ability to set a timeout on a request

func (*OrganizationServiceTestIamPermissionsParams) SetBody

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

func (*OrganizationServiceTestIamPermissionsParams) SetContext

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

func (*OrganizationServiceTestIamPermissionsParams) SetHTTPClient

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

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

func (*OrganizationServiceTestIamPermissionsParams) SetID

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

func (*OrganizationServiceTestIamPermissionsParams) SetTimeout

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

func (*OrganizationServiceTestIamPermissionsParams) WithBody

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

func (*OrganizationServiceTestIamPermissionsParams) WithContext

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

func (*OrganizationServiceTestIamPermissionsParams) WithHTTPClient

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

func (*OrganizationServiceTestIamPermissionsParams) WithID

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

func (*OrganizationServiceTestIamPermissionsParams) WithTimeout

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

func (*OrganizationServiceTestIamPermissionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrganizationServiceTestIamPermissionsReader

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

OrganizationServiceTestIamPermissionsReader is a Reader for the OrganizationServiceTestIamPermissions structure.

func (*OrganizationServiceTestIamPermissionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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