resource_service

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 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) 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) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v0.23.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ResourceServiceList(params *ResourceServiceListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ResourceServiceListOK, 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 ResourceServiceListDefault

type ResourceServiceListDefault struct {
	Payload *cloud.GrpcGatewayRuntimeError
	// 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 added in v0.23.0

func (o *ResourceServiceListDefault) IsClientError() bool

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

func (*ResourceServiceListDefault) IsCode added in v0.23.0

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 added in v0.23.0

func (o *ResourceServiceListDefault) IsRedirect() bool

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

func (*ResourceServiceListDefault) IsServerError added in v0.23.0

func (o *ResourceServiceListDefault) IsServerError() bool

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

func (*ResourceServiceListDefault) IsSuccess added in v0.23.0

func (o *ResourceServiceListDefault) IsSuccess() bool

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

func (*ResourceServiceListDefault) String added in v0.23.0

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) Error

func (o *ResourceServiceListOK) Error() string

func (*ResourceServiceListOK) GetPayload

func (*ResourceServiceListOK) IsClientError added in v0.23.0

func (o *ResourceServiceListOK) IsClientError() bool

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

func (*ResourceServiceListOK) IsCode added in v0.23.0

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 added in v0.23.0

func (o *ResourceServiceListOK) IsRedirect() bool

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

func (*ResourceServiceListOK) IsServerError added in v0.23.0

func (o *ResourceServiceListOK) IsServerError() bool

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

func (*ResourceServiceListOK) IsSuccess added in v0.23.0

func (o *ResourceServiceListOK) IsSuccess() bool

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

func (*ResourceServiceListOK) String added in v0.23.0

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 added in v0.23.0

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 added in v0.23.0

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.

Jump to

Keyboard shortcuts

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