contract_service

package
v0.114.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MPL-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 contract service API

func (*Client) ContractServiceGetContract

func (a *Client) ContractServiceGetContract(params *ContractServiceGetContractParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ContractServiceGetContractOK, error)

ContractServiceGetContract gets contract returns a contract by its public ID

func (*Client) ContractServiceListContracts

func (a *Client) ContractServiceListContracts(params *ContractServiceListContractsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ContractServiceListContractsOK, error)

ContractServiceListContracts lists contracts returns a list of a billing account s contracts optionally filtered

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 is the option for Client methods

type ClientService

type ClientService interface {
	ContractServiceGetContract(params *ContractServiceGetContractParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ContractServiceGetContractOK, error)

	ContractServiceListContracts(params *ContractServiceListContractsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ContractServiceListContractsOK, 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 contract service API client.

type ContractServiceGetContractDefault

type ContractServiceGetContractDefault struct {
	Payload *models.GooglerpcStatus
	// contains filtered or unexported fields
}

ContractServiceGetContractDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewContractServiceGetContractDefault

func NewContractServiceGetContractDefault(code int) *ContractServiceGetContractDefault

NewContractServiceGetContractDefault creates a ContractServiceGetContractDefault with default headers values

func (*ContractServiceGetContractDefault) Code

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

func (*ContractServiceGetContractDefault) Error

func (*ContractServiceGetContractDefault) GetPayload

func (*ContractServiceGetContractDefault) IsClientError

func (o *ContractServiceGetContractDefault) IsClientError() bool

IsClientError returns true when this contract service get contract default response has a 4xx status code

func (*ContractServiceGetContractDefault) IsCode

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

IsCode returns true when this contract service get contract default response a status code equal to that given

func (*ContractServiceGetContractDefault) IsRedirect

func (o *ContractServiceGetContractDefault) IsRedirect() bool

IsRedirect returns true when this contract service get contract default response has a 3xx status code

func (*ContractServiceGetContractDefault) IsServerError

func (o *ContractServiceGetContractDefault) IsServerError() bool

IsServerError returns true when this contract service get contract default response has a 5xx status code

func (*ContractServiceGetContractDefault) IsSuccess

func (o *ContractServiceGetContractDefault) IsSuccess() bool

IsSuccess returns true when this contract service get contract default response has a 2xx status code

func (*ContractServiceGetContractDefault) String

type ContractServiceGetContractOK

type ContractServiceGetContractOK struct {
	Payload *models.Billing20201105GetContractResponse
}

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

A successful response.

func NewContractServiceGetContractOK

func NewContractServiceGetContractOK() *ContractServiceGetContractOK

NewContractServiceGetContractOK creates a ContractServiceGetContractOK with default headers values

func (*ContractServiceGetContractOK) Code

Code gets the status code for the contract service get contract o k response

func (*ContractServiceGetContractOK) Error

func (*ContractServiceGetContractOK) GetPayload

func (*ContractServiceGetContractOK) IsClientError

func (o *ContractServiceGetContractOK) IsClientError() bool

IsClientError returns true when this contract service get contract o k response has a 4xx status code

func (*ContractServiceGetContractOK) IsCode

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

IsCode returns true when this contract service get contract o k response a status code equal to that given

func (*ContractServiceGetContractOK) IsRedirect

func (o *ContractServiceGetContractOK) IsRedirect() bool

IsRedirect returns true when this contract service get contract o k response has a 3xx status code

func (*ContractServiceGetContractOK) IsServerError

func (o *ContractServiceGetContractOK) IsServerError() bool

IsServerError returns true when this contract service get contract o k response has a 5xx status code

func (*ContractServiceGetContractOK) IsSuccess

func (o *ContractServiceGetContractOK) IsSuccess() bool

IsSuccess returns true when this contract service get contract o k response has a 2xx status code

func (*ContractServiceGetContractOK) String

type ContractServiceGetContractParams

type ContractServiceGetContractParams struct {

	/* BillingAccountID.

	   blling_account_id is the identifier of the contract's billing account.
	*/
	BillingAccountID string

	/* ContractID.

	   contract_id is the public identifier for the requested contract.
	*/
	ContractID string

	/* OrganizationID.

	   organization_id is the organization where the contract's billing account belongs.
	*/
	OrganizationID string

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

ContractServiceGetContractParams contains all the parameters to send to the API endpoint

for the contract service get contract operation.

Typically these are written to a http.Request.

func NewContractServiceGetContractParams

func NewContractServiceGetContractParams() *ContractServiceGetContractParams

NewContractServiceGetContractParams creates a new ContractServiceGetContractParams 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 NewContractServiceGetContractParamsWithContext

func NewContractServiceGetContractParamsWithContext(ctx context.Context) *ContractServiceGetContractParams

NewContractServiceGetContractParamsWithContext creates a new ContractServiceGetContractParams object with the ability to set a context for a request.

func NewContractServiceGetContractParamsWithHTTPClient

func NewContractServiceGetContractParamsWithHTTPClient(client *http.Client) *ContractServiceGetContractParams

NewContractServiceGetContractParamsWithHTTPClient creates a new ContractServiceGetContractParams object with the ability to set a custom HTTPClient for a request.

func NewContractServiceGetContractParamsWithTimeout

func NewContractServiceGetContractParamsWithTimeout(timeout time.Duration) *ContractServiceGetContractParams

NewContractServiceGetContractParamsWithTimeout creates a new ContractServiceGetContractParams object with the ability to set a timeout on a request.

func (*ContractServiceGetContractParams) SetBillingAccountID

func (o *ContractServiceGetContractParams) SetBillingAccountID(billingAccountID string)

SetBillingAccountID adds the billingAccountId to the contract service get contract params

func (*ContractServiceGetContractParams) SetContext

SetContext adds the context to the contract service get contract params

func (*ContractServiceGetContractParams) SetContractID

func (o *ContractServiceGetContractParams) SetContractID(contractID string)

SetContractID adds the contractId to the contract service get contract params

func (*ContractServiceGetContractParams) SetDefaults

func (o *ContractServiceGetContractParams) SetDefaults()

SetDefaults hydrates default values in the contract service get contract params (not the query body).

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

func (*ContractServiceGetContractParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the contract service get contract params

func (*ContractServiceGetContractParams) SetOrganizationID

func (o *ContractServiceGetContractParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the contract service get contract params

func (*ContractServiceGetContractParams) SetTimeout

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

SetTimeout adds the timeout to the contract service get contract params

func (*ContractServiceGetContractParams) WithBillingAccountID

func (o *ContractServiceGetContractParams) WithBillingAccountID(billingAccountID string) *ContractServiceGetContractParams

WithBillingAccountID adds the billingAccountID to the contract service get contract params

func (*ContractServiceGetContractParams) WithContext

WithContext adds the context to the contract service get contract params

func (*ContractServiceGetContractParams) WithContractID

WithContractID adds the contractID to the contract service get contract params

func (*ContractServiceGetContractParams) WithDefaults

WithDefaults hydrates default values in the contract service get contract params (not the query body).

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

func (*ContractServiceGetContractParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the contract service get contract params

func (*ContractServiceGetContractParams) WithOrganizationID

func (o *ContractServiceGetContractParams) WithOrganizationID(organizationID string) *ContractServiceGetContractParams

WithOrganizationID adds the organizationID to the contract service get contract params

func (*ContractServiceGetContractParams) WithTimeout

WithTimeout adds the timeout to the contract service get contract params

func (*ContractServiceGetContractParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ContractServiceGetContractReader

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

ContractServiceGetContractReader is a Reader for the ContractServiceGetContract structure.

func (*ContractServiceGetContractReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ContractServiceListContractsDefault

type ContractServiceListContractsDefault struct {
	Payload *models.GooglerpcStatus
	// contains filtered or unexported fields
}

ContractServiceListContractsDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewContractServiceListContractsDefault

func NewContractServiceListContractsDefault(code int) *ContractServiceListContractsDefault

NewContractServiceListContractsDefault creates a ContractServiceListContractsDefault with default headers values

func (*ContractServiceListContractsDefault) Code

Code gets the status code for the contract service list contracts default response

func (*ContractServiceListContractsDefault) Error

func (*ContractServiceListContractsDefault) GetPayload

func (*ContractServiceListContractsDefault) IsClientError

func (o *ContractServiceListContractsDefault) IsClientError() bool

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

func (*ContractServiceListContractsDefault) IsCode

IsCode returns true when this contract service list contracts default response a status code equal to that given

func (*ContractServiceListContractsDefault) IsRedirect

func (o *ContractServiceListContractsDefault) IsRedirect() bool

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

func (*ContractServiceListContractsDefault) IsServerError

func (o *ContractServiceListContractsDefault) IsServerError() bool

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

func (*ContractServiceListContractsDefault) IsSuccess

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

func (*ContractServiceListContractsDefault) String

type ContractServiceListContractsOK

type ContractServiceListContractsOK struct {
	Payload *models.Billing20201105ListContractsResponse
}

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

A successful response.

func NewContractServiceListContractsOK

func NewContractServiceListContractsOK() *ContractServiceListContractsOK

NewContractServiceListContractsOK creates a ContractServiceListContractsOK with default headers values

func (*ContractServiceListContractsOK) Code

Code gets the status code for the contract service list contracts o k response

func (*ContractServiceListContractsOK) Error

func (*ContractServiceListContractsOK) GetPayload

func (*ContractServiceListContractsOK) IsClientError

func (o *ContractServiceListContractsOK) IsClientError() bool

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

func (*ContractServiceListContractsOK) IsCode

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

IsCode returns true when this contract service list contracts o k response a status code equal to that given

func (*ContractServiceListContractsOK) IsRedirect

func (o *ContractServiceListContractsOK) IsRedirect() bool

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

func (*ContractServiceListContractsOK) IsServerError

func (o *ContractServiceListContractsOK) IsServerError() bool

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

func (*ContractServiceListContractsOK) IsSuccess

func (o *ContractServiceListContractsOK) IsSuccess() bool

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

func (*ContractServiceListContractsOK) String

type ContractServiceListContractsParams

type ContractServiceListContractsParams struct {

	/* BillingAccountID.

	   blling_account_id is the identifier of the list of contracts' billing account.
	*/
	BillingAccountID string

	/* ByActiveFrom.

	   Query param filter: `by_active_from` filters by the date the contract starts.

	   Format: date-time
	*/
	ByActiveFrom *strfmt.DateTime

	/* ByActiveUntil.

	   Query param filter: `by_active_until` filters by the date the contract ends.

	   Format: date-time
	*/
	ByActiveUntil *strfmt.DateTime

	/* ByStatus.

	   Query param filter: `by_status` filters by contract status/
	*/
	ByStatus []string

	/* OrganizationID.

	   organization_id is the organization where list of contracts' billing account belongs.
	*/
	OrganizationID string

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

ContractServiceListContractsParams contains all the parameters to send to the API endpoint

for the contract service list contracts operation.

Typically these are written to a http.Request.

func NewContractServiceListContractsParams

func NewContractServiceListContractsParams() *ContractServiceListContractsParams

NewContractServiceListContractsParams creates a new ContractServiceListContractsParams 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 NewContractServiceListContractsParamsWithContext

func NewContractServiceListContractsParamsWithContext(ctx context.Context) *ContractServiceListContractsParams

NewContractServiceListContractsParamsWithContext creates a new ContractServiceListContractsParams object with the ability to set a context for a request.

func NewContractServiceListContractsParamsWithHTTPClient

func NewContractServiceListContractsParamsWithHTTPClient(client *http.Client) *ContractServiceListContractsParams

NewContractServiceListContractsParamsWithHTTPClient creates a new ContractServiceListContractsParams object with the ability to set a custom HTTPClient for a request.

func NewContractServiceListContractsParamsWithTimeout

func NewContractServiceListContractsParamsWithTimeout(timeout time.Duration) *ContractServiceListContractsParams

NewContractServiceListContractsParamsWithTimeout creates a new ContractServiceListContractsParams object with the ability to set a timeout on a request.

func (*ContractServiceListContractsParams) SetBillingAccountID

func (o *ContractServiceListContractsParams) SetBillingAccountID(billingAccountID string)

SetBillingAccountID adds the billingAccountId to the contract service list contracts params

func (*ContractServiceListContractsParams) SetByActiveFrom

func (o *ContractServiceListContractsParams) SetByActiveFrom(byActiveFrom *strfmt.DateTime)

SetByActiveFrom adds the byActiveFrom to the contract service list contracts params

func (*ContractServiceListContractsParams) SetByActiveUntil

func (o *ContractServiceListContractsParams) SetByActiveUntil(byActiveUntil *strfmt.DateTime)

SetByActiveUntil adds the byActiveUntil to the contract service list contracts params

func (*ContractServiceListContractsParams) SetByStatus

func (o *ContractServiceListContractsParams) SetByStatus(byStatus []string)

SetByStatus adds the byStatus to the contract service list contracts params

func (*ContractServiceListContractsParams) SetContext

SetContext adds the context to the contract service list contracts params

func (*ContractServiceListContractsParams) SetDefaults

func (o *ContractServiceListContractsParams) SetDefaults()

SetDefaults hydrates default values in the contract service list contracts params (not the query body).

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

func (*ContractServiceListContractsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the contract service list contracts params

func (*ContractServiceListContractsParams) SetOrganizationID

func (o *ContractServiceListContractsParams) SetOrganizationID(organizationID string)

SetOrganizationID adds the organizationId to the contract service list contracts params

func (*ContractServiceListContractsParams) SetTimeout

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

SetTimeout adds the timeout to the contract service list contracts params

func (*ContractServiceListContractsParams) WithBillingAccountID

func (o *ContractServiceListContractsParams) WithBillingAccountID(billingAccountID string) *ContractServiceListContractsParams

WithBillingAccountID adds the billingAccountID to the contract service list contracts params

func (*ContractServiceListContractsParams) WithByActiveFrom

WithByActiveFrom adds the byActiveFrom to the contract service list contracts params

func (*ContractServiceListContractsParams) WithByActiveUntil

WithByActiveUntil adds the byActiveUntil to the contract service list contracts params

func (*ContractServiceListContractsParams) WithByStatus

WithByStatus adds the byStatus to the contract service list contracts params

func (*ContractServiceListContractsParams) WithContext

WithContext adds the context to the contract service list contracts params

func (*ContractServiceListContractsParams) WithDefaults

WithDefaults hydrates default values in the contract service list contracts params (not the query body).

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

func (*ContractServiceListContractsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the contract service list contracts params

func (*ContractServiceListContractsParams) WithOrganizationID

func (o *ContractServiceListContractsParams) WithOrganizationID(organizationID string) *ContractServiceListContractsParams

WithOrganizationID adds the organizationID to the contract service list contracts params

func (*ContractServiceListContractsParams) WithTimeout

WithTimeout adds the timeout to the contract service list contracts params

func (*ContractServiceListContractsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ContractServiceListContractsReader

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

ContractServiceListContractsReader is a Reader for the ContractServiceListContracts structure.

func (*ContractServiceListContractsReader) ReadResponse

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