resource_service

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 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 resource service API

func (*Client) ResourceServiceList

func (a *Client) ResourceServiceList(params *ResourceServiceListParams, authInfo runtime.ClientAuthInfoWriter) (*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 ClientService

type ClientService interface {
	ResourceServiceList(params *ResourceServiceListParams, authInfo runtime.ClientAuthInfoWriter) (*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 handles this case 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

type ResourceServiceListOK

type ResourceServiceListOK struct {
	Payload *models.HashicorpCloudResourcemanagerResourceListResponse
}

ResourceServiceListOK handles this case 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

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.

	*/
	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.

	*/
	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 values initialized.

func NewResourceServiceListParamsWithContext

func NewResourceServiceListParamsWithContext(ctx context.Context) *ResourceServiceListParams

NewResourceServiceListParamsWithContext creates a new ResourceServiceListParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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