internal_transit_gateway

package
v1.9.0-beta10 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 11 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 internal transit gateway API

func (*Client) InternalV1TransitgatewayGet

func (a *Client) InternalV1TransitgatewayGet(params *InternalV1TransitgatewayGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InternalV1TransitgatewayGetOK, error)

InternalV1TransitgatewayGet gets the cloud instance transit gateway information

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 {
	InternalV1TransitgatewayGet(params *InternalV1TransitgatewayGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InternalV1TransitgatewayGetOK, 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 internal transit gateway API client.

func NewClientWithBasicAuth added in v1.7.0

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new internal transit gateway 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 v1.7.0

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new internal transit gateway 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.

type InternalV1TransitgatewayGetForbidden

type InternalV1TransitgatewayGetForbidden struct {
	Payload *models.Error
}

InternalV1TransitgatewayGetForbidden describes a response with status code 403, with default header values.

Forbidden

func NewInternalV1TransitgatewayGetForbidden

func NewInternalV1TransitgatewayGetForbidden() *InternalV1TransitgatewayGetForbidden

NewInternalV1TransitgatewayGetForbidden creates a InternalV1TransitgatewayGetForbidden with default headers values

func (*InternalV1TransitgatewayGetForbidden) Code added in v1.2.4

Code gets the status code for the internal v1 transitgateway get forbidden response

func (*InternalV1TransitgatewayGetForbidden) Error

func (*InternalV1TransitgatewayGetForbidden) GetPayload

func (*InternalV1TransitgatewayGetForbidden) IsClientError added in v1.2.2

func (o *InternalV1TransitgatewayGetForbidden) IsClientError() bool

IsClientError returns true when this internal v1 transitgateway get forbidden response has a 4xx status code

func (*InternalV1TransitgatewayGetForbidden) IsCode added in v1.2.2

IsCode returns true when this internal v1 transitgateway get forbidden response a status code equal to that given

func (*InternalV1TransitgatewayGetForbidden) IsRedirect added in v1.2.2

IsRedirect returns true when this internal v1 transitgateway get forbidden response has a 3xx status code

func (*InternalV1TransitgatewayGetForbidden) IsServerError added in v1.2.2

func (o *InternalV1TransitgatewayGetForbidden) IsServerError() bool

IsServerError returns true when this internal v1 transitgateway get forbidden response has a 5xx status code

func (*InternalV1TransitgatewayGetForbidden) IsSuccess added in v1.2.2

IsSuccess returns true when this internal v1 transitgateway get forbidden response has a 2xx status code

func (*InternalV1TransitgatewayGetForbidden) String added in v1.2.2

type InternalV1TransitgatewayGetOK

type InternalV1TransitgatewayGetOK struct {
	Payload *models.TransitGatewayInstance
}

InternalV1TransitgatewayGetOK describes a response with status code 200, with default header values.

OK

func NewInternalV1TransitgatewayGetOK

func NewInternalV1TransitgatewayGetOK() *InternalV1TransitgatewayGetOK

NewInternalV1TransitgatewayGetOK creates a InternalV1TransitgatewayGetOK with default headers values

func (*InternalV1TransitgatewayGetOK) Code added in v1.2.4

Code gets the status code for the internal v1 transitgateway get o k response

func (*InternalV1TransitgatewayGetOK) Error

func (*InternalV1TransitgatewayGetOK) GetPayload

func (*InternalV1TransitgatewayGetOK) IsClientError added in v1.2.2

func (o *InternalV1TransitgatewayGetOK) IsClientError() bool

IsClientError returns true when this internal v1 transitgateway get o k response has a 4xx status code

func (*InternalV1TransitgatewayGetOK) IsCode added in v1.2.2

func (o *InternalV1TransitgatewayGetOK) IsCode(code int) bool

IsCode returns true when this internal v1 transitgateway get o k response a status code equal to that given

func (*InternalV1TransitgatewayGetOK) IsRedirect added in v1.2.2

func (o *InternalV1TransitgatewayGetOK) IsRedirect() bool

IsRedirect returns true when this internal v1 transitgateway get o k response has a 3xx status code

func (*InternalV1TransitgatewayGetOK) IsServerError added in v1.2.2

func (o *InternalV1TransitgatewayGetOK) IsServerError() bool

IsServerError returns true when this internal v1 transitgateway get o k response has a 5xx status code

func (*InternalV1TransitgatewayGetOK) IsSuccess added in v1.2.2

func (o *InternalV1TransitgatewayGetOK) IsSuccess() bool

IsSuccess returns true when this internal v1 transitgateway get o k response has a 2xx status code

func (*InternalV1TransitgatewayGetOK) String added in v1.2.2

type InternalV1TransitgatewayGetParams

type InternalV1TransitgatewayGetParams struct {

	/* IBMUserAuthorization.

	   Authentication of the user that initiated the request from the TGW Platform
	*/
	IBMUserAuthorization string

	/* PowervsServiceCrn.

	   The PowerVS Service Instance CRN (Targeting)
	*/
	PowervsServiceCrn string

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

InternalV1TransitgatewayGetParams contains all the parameters to send to the API endpoint

for the internal v1 transitgateway get operation.

Typically these are written to a http.Request.

func NewInternalV1TransitgatewayGetParams

func NewInternalV1TransitgatewayGetParams() *InternalV1TransitgatewayGetParams

NewInternalV1TransitgatewayGetParams creates a new InternalV1TransitgatewayGetParams 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 NewInternalV1TransitgatewayGetParamsWithContext

func NewInternalV1TransitgatewayGetParamsWithContext(ctx context.Context) *InternalV1TransitgatewayGetParams

NewInternalV1TransitgatewayGetParamsWithContext creates a new InternalV1TransitgatewayGetParams object with the ability to set a context for a request.

func NewInternalV1TransitgatewayGetParamsWithHTTPClient

func NewInternalV1TransitgatewayGetParamsWithHTTPClient(client *http.Client) *InternalV1TransitgatewayGetParams

NewInternalV1TransitgatewayGetParamsWithHTTPClient creates a new InternalV1TransitgatewayGetParams object with the ability to set a custom HTTPClient for a request.

func NewInternalV1TransitgatewayGetParamsWithTimeout

func NewInternalV1TransitgatewayGetParamsWithTimeout(timeout time.Duration) *InternalV1TransitgatewayGetParams

NewInternalV1TransitgatewayGetParamsWithTimeout creates a new InternalV1TransitgatewayGetParams object with the ability to set a timeout on a request.

func (*InternalV1TransitgatewayGetParams) SetContext

SetContext adds the context to the internal v1 transitgateway get params

func (*InternalV1TransitgatewayGetParams) SetDefaults

func (o *InternalV1TransitgatewayGetParams) SetDefaults()

SetDefaults hydrates default values in the internal v1 transitgateway get params (not the query body).

All values with no default are reset to their zero value.

func (*InternalV1TransitgatewayGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the internal v1 transitgateway get params

func (*InternalV1TransitgatewayGetParams) SetIBMUserAuthorization

func (o *InternalV1TransitgatewayGetParams) SetIBMUserAuthorization(iBMUserAuthorization string)

SetIBMUserAuthorization adds the iBMUserAuthorization to the internal v1 transitgateway get params

func (*InternalV1TransitgatewayGetParams) SetPowervsServiceCrn

func (o *InternalV1TransitgatewayGetParams) SetPowervsServiceCrn(powervsServiceCrn string)

SetPowervsServiceCrn adds the powervsServiceCrn to the internal v1 transitgateway get params

func (*InternalV1TransitgatewayGetParams) SetTimeout

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

SetTimeout adds the timeout to the internal v1 transitgateway get params

func (*InternalV1TransitgatewayGetParams) WithContext

WithContext adds the context to the internal v1 transitgateway get params

func (*InternalV1TransitgatewayGetParams) WithDefaults

WithDefaults hydrates default values in the internal v1 transitgateway get params (not the query body).

All values with no default are reset to their zero value.

func (*InternalV1TransitgatewayGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the internal v1 transitgateway get params

func (*InternalV1TransitgatewayGetParams) WithIBMUserAuthorization

func (o *InternalV1TransitgatewayGetParams) WithIBMUserAuthorization(iBMUserAuthorization string) *InternalV1TransitgatewayGetParams

WithIBMUserAuthorization adds the iBMUserAuthorization to the internal v1 transitgateway get params

func (*InternalV1TransitgatewayGetParams) WithPowervsServiceCrn

func (o *InternalV1TransitgatewayGetParams) WithPowervsServiceCrn(powervsServiceCrn string) *InternalV1TransitgatewayGetParams

WithPowervsServiceCrn adds the powervsServiceCrn to the internal v1 transitgateway get params

func (*InternalV1TransitgatewayGetParams) WithTimeout

WithTimeout adds the timeout to the internal v1 transitgateway get params

func (*InternalV1TransitgatewayGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type InternalV1TransitgatewayGetReader

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

InternalV1TransitgatewayGetReader is a Reader for the InternalV1TransitgatewayGet structure.

func (*InternalV1TransitgatewayGetReader) ReadResponse

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