project_service

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 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 project service API

func (*Client) ProjectServiceCreate

func (a *Client) ProjectServiceCreate(params *ProjectServiceCreateParams, authInfo runtime.ClientAuthInfoWriter) (*ProjectServiceCreateOK, error)

ProjectServiceCreate creates creates a new project

func (*Client) ProjectServiceGet

func (a *Client) ProjectServiceGet(params *ProjectServiceGetParams, authInfo runtime.ClientAuthInfoWriter) (*ProjectServiceGetOK, error)

ProjectServiceGet gets retrieves the requested project by ID

func (*Client) ProjectServiceList

func (a *Client) ProjectServiceList(params *ProjectServiceListParams, authInfo runtime.ClientAuthInfoWriter) (*ProjectServiceListOK, error)

ProjectServiceList lists list the projects 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 {
	ProjectServiceCreate(params *ProjectServiceCreateParams, authInfo runtime.ClientAuthInfoWriter) (*ProjectServiceCreateOK, error)

	ProjectServiceGet(params *ProjectServiceGetParams, authInfo runtime.ClientAuthInfoWriter) (*ProjectServiceGetOK, error)

	ProjectServiceList(params *ProjectServiceListParams, authInfo runtime.ClientAuthInfoWriter) (*ProjectServiceListOK, 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 project service API client.

type ProjectServiceCreateDefault

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

ProjectServiceCreateDefault handles this case with default header values.

An unexpected error response.

func NewProjectServiceCreateDefault

func NewProjectServiceCreateDefault(code int) *ProjectServiceCreateDefault

NewProjectServiceCreateDefault creates a ProjectServiceCreateDefault with default headers values

func (*ProjectServiceCreateDefault) Code

func (o *ProjectServiceCreateDefault) Code() int

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

func (*ProjectServiceCreateDefault) Error

func (*ProjectServiceCreateDefault) GetPayload

type ProjectServiceCreateOK

type ProjectServiceCreateOK struct {
	Payload *models.HashicorpCloudResourcemanagerProjectCreateResponse
}

ProjectServiceCreateOK handles this case with default header values.

A successful response.

func NewProjectServiceCreateOK

func NewProjectServiceCreateOK() *ProjectServiceCreateOK

NewProjectServiceCreateOK creates a ProjectServiceCreateOK with default headers values

func (*ProjectServiceCreateOK) Error

func (o *ProjectServiceCreateOK) Error() string

func (*ProjectServiceCreateOK) GetPayload

type ProjectServiceCreateParams

type ProjectServiceCreateParams struct {

	/*Body*/
	Body *models.HashicorpCloudResourcemanagerProjectCreateRequest

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

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

func NewProjectServiceCreateParams

func NewProjectServiceCreateParams() *ProjectServiceCreateParams

NewProjectServiceCreateParams creates a new ProjectServiceCreateParams object with the default values initialized.

func NewProjectServiceCreateParamsWithContext

func NewProjectServiceCreateParamsWithContext(ctx context.Context) *ProjectServiceCreateParams

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

func NewProjectServiceCreateParamsWithHTTPClient

func NewProjectServiceCreateParamsWithHTTPClient(client *http.Client) *ProjectServiceCreateParams

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

func NewProjectServiceCreateParamsWithTimeout

func NewProjectServiceCreateParamsWithTimeout(timeout time.Duration) *ProjectServiceCreateParams

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

func (*ProjectServiceCreateParams) SetBody

SetBody adds the body to the project service create params

func (*ProjectServiceCreateParams) SetContext

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

SetContext adds the context to the project service create params

func (*ProjectServiceCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the project service create params

func (*ProjectServiceCreateParams) SetTimeout

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

SetTimeout adds the timeout to the project service create params

func (*ProjectServiceCreateParams) WithBody

WithBody adds the body to the project service create params

func (*ProjectServiceCreateParams) WithContext

WithContext adds the context to the project service create params

func (*ProjectServiceCreateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the project service create params

func (*ProjectServiceCreateParams) WithTimeout

WithTimeout adds the timeout to the project service create params

func (*ProjectServiceCreateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProjectServiceCreateReader

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

ProjectServiceCreateReader is a Reader for the ProjectServiceCreate structure.

func (*ProjectServiceCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProjectServiceGetDefault

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

ProjectServiceGetDefault handles this case with default header values.

An unexpected error response.

func NewProjectServiceGetDefault

func NewProjectServiceGetDefault(code int) *ProjectServiceGetDefault

NewProjectServiceGetDefault creates a ProjectServiceGetDefault with default headers values

func (*ProjectServiceGetDefault) Code

func (o *ProjectServiceGetDefault) Code() int

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

func (*ProjectServiceGetDefault) Error

func (o *ProjectServiceGetDefault) Error() string

func (*ProjectServiceGetDefault) GetPayload

type ProjectServiceGetOK

type ProjectServiceGetOK struct {
	Payload *models.HashicorpCloudResourcemanagerProjectGetResponse
}

ProjectServiceGetOK handles this case with default header values.

A successful response.

func NewProjectServiceGetOK

func NewProjectServiceGetOK() *ProjectServiceGetOK

NewProjectServiceGetOK creates a ProjectServiceGetOK with default headers values

func (*ProjectServiceGetOK) Error

func (o *ProjectServiceGetOK) Error() string

func (*ProjectServiceGetOK) GetPayload

type ProjectServiceGetParams

type ProjectServiceGetParams struct {

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

	*/
	ID string

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

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

func NewProjectServiceGetParams

func NewProjectServiceGetParams() *ProjectServiceGetParams

NewProjectServiceGetParams creates a new ProjectServiceGetParams object with the default values initialized.

func NewProjectServiceGetParamsWithContext

func NewProjectServiceGetParamsWithContext(ctx context.Context) *ProjectServiceGetParams

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

func NewProjectServiceGetParamsWithHTTPClient

func NewProjectServiceGetParamsWithHTTPClient(client *http.Client) *ProjectServiceGetParams

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

func NewProjectServiceGetParamsWithTimeout

func NewProjectServiceGetParamsWithTimeout(timeout time.Duration) *ProjectServiceGetParams

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

func (*ProjectServiceGetParams) SetContext

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

SetContext adds the context to the project service get params

func (*ProjectServiceGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the project service get params

func (*ProjectServiceGetParams) SetID

func (o *ProjectServiceGetParams) SetID(id string)

SetID adds the id to the project service get params

func (*ProjectServiceGetParams) SetTimeout

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

SetTimeout adds the timeout to the project service get params

func (*ProjectServiceGetParams) WithContext

WithContext adds the context to the project service get params

func (*ProjectServiceGetParams) WithHTTPClient

func (o *ProjectServiceGetParams) WithHTTPClient(client *http.Client) *ProjectServiceGetParams

WithHTTPClient adds the HTTPClient to the project service get params

func (*ProjectServiceGetParams) WithID

WithID adds the id to the project service get params

func (*ProjectServiceGetParams) WithTimeout

WithTimeout adds the timeout to the project service get params

func (*ProjectServiceGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProjectServiceGetReader

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

ProjectServiceGetReader is a Reader for the ProjectServiceGet structure.

func (*ProjectServiceGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProjectServiceListDefault

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

ProjectServiceListDefault handles this case with default header values.

An unexpected error response.

func NewProjectServiceListDefault

func NewProjectServiceListDefault(code int) *ProjectServiceListDefault

NewProjectServiceListDefault creates a ProjectServiceListDefault with default headers values

func (*ProjectServiceListDefault) Code

func (o *ProjectServiceListDefault) Code() int

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

func (*ProjectServiceListDefault) Error

func (o *ProjectServiceListDefault) Error() string

func (*ProjectServiceListDefault) GetPayload

type ProjectServiceListOK

type ProjectServiceListOK struct {
	Payload *models.HashicorpCloudResourcemanagerProjectListResponse
}

ProjectServiceListOK handles this case with default header values.

A successful response.

func NewProjectServiceListOK

func NewProjectServiceListOK() *ProjectServiceListOK

NewProjectServiceListOK creates a ProjectServiceListOK with default headers values

func (*ProjectServiceListOK) Error

func (o *ProjectServiceListOK) Error() string

func (*ProjectServiceListOK) GetPayload

type ProjectServiceListParams

type ProjectServiceListParams 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
}

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

func NewProjectServiceListParams

func NewProjectServiceListParams() *ProjectServiceListParams

NewProjectServiceListParams creates a new ProjectServiceListParams object with the default values initialized.

func NewProjectServiceListParamsWithContext

func NewProjectServiceListParamsWithContext(ctx context.Context) *ProjectServiceListParams

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

func NewProjectServiceListParamsWithHTTPClient

func NewProjectServiceListParamsWithHTTPClient(client *http.Client) *ProjectServiceListParams

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

func NewProjectServiceListParamsWithTimeout

func NewProjectServiceListParamsWithTimeout(timeout time.Duration) *ProjectServiceListParams

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

func (*ProjectServiceListParams) SetContext

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

SetContext adds the context to the project service list params

func (*ProjectServiceListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the project service list params

func (*ProjectServiceListParams) SetPaginationNextPageToken

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

SetPaginationNextPageToken adds the paginationNextPageToken to the project service list params

func (*ProjectServiceListParams) SetPaginationPageSize

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

SetPaginationPageSize adds the paginationPageSize to the project service list params

func (*ProjectServiceListParams) SetPaginationPreviousPageToken

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

SetPaginationPreviousPageToken adds the paginationPreviousPageToken to the project service list params

func (*ProjectServiceListParams) SetScopeID

func (o *ProjectServiceListParams) SetScopeID(scopeID *string)

SetScopeID adds the scopeId to the project service list params

func (*ProjectServiceListParams) SetScopeType

func (o *ProjectServiceListParams) SetScopeType(scopeType *string)

SetScopeType adds the scopeType to the project service list params

func (*ProjectServiceListParams) SetTimeout

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

SetTimeout adds the timeout to the project service list params

func (*ProjectServiceListParams) WithContext

WithContext adds the context to the project service list params

func (*ProjectServiceListParams) WithHTTPClient

func (o *ProjectServiceListParams) WithHTTPClient(client *http.Client) *ProjectServiceListParams

WithHTTPClient adds the HTTPClient to the project service list params

func (*ProjectServiceListParams) WithPaginationNextPageToken

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

WithPaginationNextPageToken adds the paginationNextPageToken to the project service list params

func (*ProjectServiceListParams) WithPaginationPageSize

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

WithPaginationPageSize adds the paginationPageSize to the project service list params

func (*ProjectServiceListParams) WithPaginationPreviousPageToken

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

WithPaginationPreviousPageToken adds the paginationPreviousPageToken to the project service list params

func (*ProjectServiceListParams) WithScopeID

func (o *ProjectServiceListParams) WithScopeID(scopeID *string) *ProjectServiceListParams

WithScopeID adds the scopeID to the project service list params

func (*ProjectServiceListParams) WithScopeType

func (o *ProjectServiceListParams) WithScopeType(scopeType *string) *ProjectServiceListParams

WithScopeType adds the scopeType to the project service list params

func (*ProjectServiceListParams) WithTimeout

WithTimeout adds the timeout to the project service list params

func (*ProjectServiceListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProjectServiceListReader

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

ProjectServiceListReader is a Reader for the ProjectServiceList structure.

func (*ProjectServiceListReader) ReadResponse

func (o *ProjectServiceListReader) 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