policies

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: Apache-2.0 Imports: 10 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 policies API

func (*Client) CreatePolicies

func (a *Client) CreatePolicies(params *CreatePoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePoliciesOK, error)

CreatePolicies creates policies

Create new policies.

func (*Client) CreatePolicy

func (a *Client) CreatePolicy(params *CreatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePolicyOK, error)

CreatePolicy creates policy

Create a new policy.

func (*Client) CreateSmartContractInterface added in v0.7.0

func (a *Client) CreateSmartContractInterface(params *CreateSmartContractInterfaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSmartContractInterfaceOK, error)

CreateSmartContractInterface creates smart contract interface

Create an ABI/IDL in JSON.

func (*Client) DeletePolicy

func (a *Client) DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePolicyOK, error)

DeletePolicy deletes policy

Delete an existing policy.

func (*Client) DeleteSmartContractInterface added in v0.7.0

func (a *Client) DeleteSmartContractInterface(params *DeleteSmartContractInterfaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSmartContractInterfaceOK, error)

DeleteSmartContractInterface deletes smart contract interface

Delete a smart contract interface.

func (*Client) GetPolicies

func (a *Client) GetPolicies(params *GetPoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPoliciesOK, error)

GetPolicies lists policies

List all policies within an organization.

func (*Client) GetPolicy

func (a *Client) GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPolicyOK, error)

GetPolicy gets policy

Get details about a policy.

func (*Client) GetSmartContractInterface added in v0.7.0

func (a *Client) GetSmartContractInterface(params *GetSmartContractInterfaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSmartContractInterfaceOK, error)

GetSmartContractInterface gets smart contract interface

Get details about a smart contract interface.

func (*Client) GetSmartContractInterfaces added in v0.7.0

func (a *Client) GetSmartContractInterfaces(params *GetSmartContractInterfacesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSmartContractInterfacesOK, error)

GetSmartContractInterfaces lists smart contract interfaces

List all smart contract interfaces within an organization.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdatePolicy

func (a *Client) UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePolicyOK, error)

UpdatePolicy updates policy

Update an existing policy.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreatePolicies(params *CreatePoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePoliciesOK, error)

	CreatePolicy(params *CreatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePolicyOK, error)

	CreateSmartContractInterface(params *CreateSmartContractInterfaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSmartContractInterfaceOK, error)

	DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePolicyOK, error)

	DeleteSmartContractInterface(params *DeleteSmartContractInterfaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSmartContractInterfaceOK, error)

	GetPolicies(params *GetPoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPoliciesOK, error)

	GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPolicyOK, error)

	GetSmartContractInterface(params *GetSmartContractInterfaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSmartContractInterfaceOK, error)

	GetSmartContractInterfaces(params *GetSmartContractInterfacesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSmartContractInterfacesOK, error)

	UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePolicyOK, 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 policies API client.

type CreatePoliciesOK

type CreatePoliciesOK struct {
	Payload *models.ActivityResponse
}

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

A successful response.

func NewCreatePoliciesOK

func NewCreatePoliciesOK() *CreatePoliciesOK

NewCreatePoliciesOK creates a CreatePoliciesOK with default headers values

func (*CreatePoliciesOK) Code

func (o *CreatePoliciesOK) Code() int

Code gets the status code for the create policies o k response

func (*CreatePoliciesOK) Error

func (o *CreatePoliciesOK) Error() string

func (*CreatePoliciesOK) GetPayload

func (o *CreatePoliciesOK) GetPayload() *models.ActivityResponse

func (*CreatePoliciesOK) IsClientError

func (o *CreatePoliciesOK) IsClientError() bool

IsClientError returns true when this create policies o k response has a 4xx status code

func (*CreatePoliciesOK) IsCode

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

IsCode returns true when this create policies o k response a status code equal to that given

func (*CreatePoliciesOK) IsRedirect

func (o *CreatePoliciesOK) IsRedirect() bool

IsRedirect returns true when this create policies o k response has a 3xx status code

func (*CreatePoliciesOK) IsServerError

func (o *CreatePoliciesOK) IsServerError() bool

IsServerError returns true when this create policies o k response has a 5xx status code

func (*CreatePoliciesOK) IsSuccess

func (o *CreatePoliciesOK) IsSuccess() bool

IsSuccess returns true when this create policies o k response has a 2xx status code

func (*CreatePoliciesOK) String

func (o *CreatePoliciesOK) String() string

type CreatePoliciesParams

type CreatePoliciesParams struct {

	// Body.
	Body *models.CreatePoliciesRequest

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

CreatePoliciesParams contains all the parameters to send to the API endpoint

for the create policies operation.

Typically these are written to a http.Request.

func NewCreatePoliciesParams

func NewCreatePoliciesParams() *CreatePoliciesParams

NewCreatePoliciesParams creates a new CreatePoliciesParams 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 NewCreatePoliciesParamsWithContext

func NewCreatePoliciesParamsWithContext(ctx context.Context) *CreatePoliciesParams

NewCreatePoliciesParamsWithContext creates a new CreatePoliciesParams object with the ability to set a context for a request.

func NewCreatePoliciesParamsWithHTTPClient

func NewCreatePoliciesParamsWithHTTPClient(client *http.Client) *CreatePoliciesParams

NewCreatePoliciesParamsWithHTTPClient creates a new CreatePoliciesParams object with the ability to set a custom HTTPClient for a request.

func NewCreatePoliciesParamsWithTimeout

func NewCreatePoliciesParamsWithTimeout(timeout time.Duration) *CreatePoliciesParams

NewCreatePoliciesParamsWithTimeout creates a new CreatePoliciesParams object with the ability to set a timeout on a request.

func (*CreatePoliciesParams) SetBody

SetBody adds the body to the create policies params

func (*CreatePoliciesParams) SetContext

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

SetContext adds the context to the create policies params

func (*CreatePoliciesParams) SetDefaults

func (o *CreatePoliciesParams) SetDefaults()

SetDefaults hydrates default values in the create policies params (not the query body).

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

func (*CreatePoliciesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create policies params

func (*CreatePoliciesParams) SetTimeout

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

SetTimeout adds the timeout to the create policies params

func (*CreatePoliciesParams) WithBody

WithBody adds the body to the create policies params

func (*CreatePoliciesParams) WithContext

WithContext adds the context to the create policies params

func (*CreatePoliciesParams) WithDefaults

func (o *CreatePoliciesParams) WithDefaults() *CreatePoliciesParams

WithDefaults hydrates default values in the create policies params (not the query body).

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

func (*CreatePoliciesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create policies params

func (*CreatePoliciesParams) WithTimeout

func (o *CreatePoliciesParams) WithTimeout(timeout time.Duration) *CreatePoliciesParams

WithTimeout adds the timeout to the create policies params

func (*CreatePoliciesParams) WriteToRequest

func (o *CreatePoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreatePoliciesReader

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

CreatePoliciesReader is a Reader for the CreatePolicies structure.

func (*CreatePoliciesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreatePolicyOK

type CreatePolicyOK struct {
	Payload *models.ActivityResponse
}

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

A successful response.

func NewCreatePolicyOK

func NewCreatePolicyOK() *CreatePolicyOK

NewCreatePolicyOK creates a CreatePolicyOK with default headers values

func (*CreatePolicyOK) Code

func (o *CreatePolicyOK) Code() int

Code gets the status code for the create policy o k response

func (*CreatePolicyOK) Error

func (o *CreatePolicyOK) Error() string

func (*CreatePolicyOK) GetPayload

func (o *CreatePolicyOK) GetPayload() *models.ActivityResponse

func (*CreatePolicyOK) IsClientError

func (o *CreatePolicyOK) IsClientError() bool

IsClientError returns true when this create policy o k response has a 4xx status code

func (*CreatePolicyOK) IsCode

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

IsCode returns true when this create policy o k response a status code equal to that given

func (*CreatePolicyOK) IsRedirect

func (o *CreatePolicyOK) IsRedirect() bool

IsRedirect returns true when this create policy o k response has a 3xx status code

func (*CreatePolicyOK) IsServerError

func (o *CreatePolicyOK) IsServerError() bool

IsServerError returns true when this create policy o k response has a 5xx status code

func (*CreatePolicyOK) IsSuccess

func (o *CreatePolicyOK) IsSuccess() bool

IsSuccess returns true when this create policy o k response has a 2xx status code

func (*CreatePolicyOK) String

func (o *CreatePolicyOK) String() string

type CreatePolicyParams

type CreatePolicyParams struct {

	// Body.
	Body *models.CreatePolicyRequest

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

CreatePolicyParams contains all the parameters to send to the API endpoint

for the create policy operation.

Typically these are written to a http.Request.

func NewCreatePolicyParams

func NewCreatePolicyParams() *CreatePolicyParams

NewCreatePolicyParams creates a new CreatePolicyParams 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 NewCreatePolicyParamsWithContext

func NewCreatePolicyParamsWithContext(ctx context.Context) *CreatePolicyParams

NewCreatePolicyParamsWithContext creates a new CreatePolicyParams object with the ability to set a context for a request.

func NewCreatePolicyParamsWithHTTPClient

func NewCreatePolicyParamsWithHTTPClient(client *http.Client) *CreatePolicyParams

NewCreatePolicyParamsWithHTTPClient creates a new CreatePolicyParams object with the ability to set a custom HTTPClient for a request.

func NewCreatePolicyParamsWithTimeout

func NewCreatePolicyParamsWithTimeout(timeout time.Duration) *CreatePolicyParams

NewCreatePolicyParamsWithTimeout creates a new CreatePolicyParams object with the ability to set a timeout on a request.

func (*CreatePolicyParams) SetBody

func (o *CreatePolicyParams) SetBody(body *models.CreatePolicyRequest)

SetBody adds the body to the create policy params

func (*CreatePolicyParams) SetContext

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

SetContext adds the context to the create policy params

func (*CreatePolicyParams) SetDefaults

func (o *CreatePolicyParams) SetDefaults()

SetDefaults hydrates default values in the create policy params (not the query body).

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

func (*CreatePolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create policy params

func (*CreatePolicyParams) SetTimeout

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

SetTimeout adds the timeout to the create policy params

func (*CreatePolicyParams) WithBody

WithBody adds the body to the create policy params

func (*CreatePolicyParams) WithContext

WithContext adds the context to the create policy params

func (*CreatePolicyParams) WithDefaults

func (o *CreatePolicyParams) WithDefaults() *CreatePolicyParams

WithDefaults hydrates default values in the create policy params (not the query body).

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

func (*CreatePolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create policy params

func (*CreatePolicyParams) WithTimeout

func (o *CreatePolicyParams) WithTimeout(timeout time.Duration) *CreatePolicyParams

WithTimeout adds the timeout to the create policy params

func (*CreatePolicyParams) WriteToRequest

func (o *CreatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreatePolicyReader

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

CreatePolicyReader is a Reader for the CreatePolicy structure.

func (*CreatePolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateSmartContractInterfaceOK added in v0.7.0

type CreateSmartContractInterfaceOK struct {
	Payload *models.ActivityResponse
}

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

A successful response.

func NewCreateSmartContractInterfaceOK added in v0.7.0

func NewCreateSmartContractInterfaceOK() *CreateSmartContractInterfaceOK

NewCreateSmartContractInterfaceOK creates a CreateSmartContractInterfaceOK with default headers values

func (*CreateSmartContractInterfaceOK) Code added in v0.7.0

Code gets the status code for the create smart contract interface o k response

func (*CreateSmartContractInterfaceOK) Error added in v0.7.0

func (*CreateSmartContractInterfaceOK) GetPayload added in v0.7.0

func (*CreateSmartContractInterfaceOK) IsClientError added in v0.7.0

func (o *CreateSmartContractInterfaceOK) IsClientError() bool

IsClientError returns true when this create smart contract interface o k response has a 4xx status code

func (*CreateSmartContractInterfaceOK) IsCode added in v0.7.0

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

IsCode returns true when this create smart contract interface o k response a status code equal to that given

func (*CreateSmartContractInterfaceOK) IsRedirect added in v0.7.0

func (o *CreateSmartContractInterfaceOK) IsRedirect() bool

IsRedirect returns true when this create smart contract interface o k response has a 3xx status code

func (*CreateSmartContractInterfaceOK) IsServerError added in v0.7.0

func (o *CreateSmartContractInterfaceOK) IsServerError() bool

IsServerError returns true when this create smart contract interface o k response has a 5xx status code

func (*CreateSmartContractInterfaceOK) IsSuccess added in v0.7.0

func (o *CreateSmartContractInterfaceOK) IsSuccess() bool

IsSuccess returns true when this create smart contract interface o k response has a 2xx status code

func (*CreateSmartContractInterfaceOK) String added in v0.7.0

type CreateSmartContractInterfaceParams added in v0.7.0

type CreateSmartContractInterfaceParams struct {

	// Body.
	Body *models.CreateSmartContractInterfaceRequest

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

CreateSmartContractInterfaceParams contains all the parameters to send to the API endpoint

for the create smart contract interface operation.

Typically these are written to a http.Request.

func NewCreateSmartContractInterfaceParams added in v0.7.0

func NewCreateSmartContractInterfaceParams() *CreateSmartContractInterfaceParams

NewCreateSmartContractInterfaceParams creates a new CreateSmartContractInterfaceParams 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 NewCreateSmartContractInterfaceParamsWithContext added in v0.7.0

func NewCreateSmartContractInterfaceParamsWithContext(ctx context.Context) *CreateSmartContractInterfaceParams

NewCreateSmartContractInterfaceParamsWithContext creates a new CreateSmartContractInterfaceParams object with the ability to set a context for a request.

func NewCreateSmartContractInterfaceParamsWithHTTPClient added in v0.7.0

func NewCreateSmartContractInterfaceParamsWithHTTPClient(client *http.Client) *CreateSmartContractInterfaceParams

NewCreateSmartContractInterfaceParamsWithHTTPClient creates a new CreateSmartContractInterfaceParams object with the ability to set a custom HTTPClient for a request.

func NewCreateSmartContractInterfaceParamsWithTimeout added in v0.7.0

func NewCreateSmartContractInterfaceParamsWithTimeout(timeout time.Duration) *CreateSmartContractInterfaceParams

NewCreateSmartContractInterfaceParamsWithTimeout creates a new CreateSmartContractInterfaceParams object with the ability to set a timeout on a request.

func (*CreateSmartContractInterfaceParams) SetBody added in v0.7.0

SetBody adds the body to the create smart contract interface params

func (*CreateSmartContractInterfaceParams) SetContext added in v0.7.0

SetContext adds the context to the create smart contract interface params

func (*CreateSmartContractInterfaceParams) SetDefaults added in v0.7.0

func (o *CreateSmartContractInterfaceParams) SetDefaults()

SetDefaults hydrates default values in the create smart contract interface params (not the query body).

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

func (*CreateSmartContractInterfaceParams) SetHTTPClient added in v0.7.0

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

SetHTTPClient adds the HTTPClient to the create smart contract interface params

func (*CreateSmartContractInterfaceParams) SetTimeout added in v0.7.0

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

SetTimeout adds the timeout to the create smart contract interface params

func (*CreateSmartContractInterfaceParams) WithBody added in v0.7.0

WithBody adds the body to the create smart contract interface params

func (*CreateSmartContractInterfaceParams) WithContext added in v0.7.0

WithContext adds the context to the create smart contract interface params

func (*CreateSmartContractInterfaceParams) WithDefaults added in v0.7.0

WithDefaults hydrates default values in the create smart contract interface params (not the query body).

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

func (*CreateSmartContractInterfaceParams) WithHTTPClient added in v0.7.0

WithHTTPClient adds the HTTPClient to the create smart contract interface params

func (*CreateSmartContractInterfaceParams) WithTimeout added in v0.7.0

WithTimeout adds the timeout to the create smart contract interface params

func (*CreateSmartContractInterfaceParams) WriteToRequest added in v0.7.0

WriteToRequest writes these params to a swagger request

type CreateSmartContractInterfaceReader added in v0.7.0

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

CreateSmartContractInterfaceReader is a Reader for the CreateSmartContractInterface structure.

func (*CreateSmartContractInterfaceReader) ReadResponse added in v0.7.0

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

ReadResponse reads a server response into the received o.

type DeletePolicyOK

type DeletePolicyOK struct {
	Payload *models.ActivityResponse
}

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

A successful response.

func NewDeletePolicyOK

func NewDeletePolicyOK() *DeletePolicyOK

NewDeletePolicyOK creates a DeletePolicyOK with default headers values

func (*DeletePolicyOK) Code

func (o *DeletePolicyOK) Code() int

Code gets the status code for the delete policy o k response

func (*DeletePolicyOK) Error

func (o *DeletePolicyOK) Error() string

func (*DeletePolicyOK) GetPayload

func (o *DeletePolicyOK) GetPayload() *models.ActivityResponse

func (*DeletePolicyOK) IsClientError

func (o *DeletePolicyOK) IsClientError() bool

IsClientError returns true when this delete policy o k response has a 4xx status code

func (*DeletePolicyOK) IsCode

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

IsCode returns true when this delete policy o k response a status code equal to that given

func (*DeletePolicyOK) IsRedirect

func (o *DeletePolicyOK) IsRedirect() bool

IsRedirect returns true when this delete policy o k response has a 3xx status code

func (*DeletePolicyOK) IsServerError

func (o *DeletePolicyOK) IsServerError() bool

IsServerError returns true when this delete policy o k response has a 5xx status code

func (*DeletePolicyOK) IsSuccess

func (o *DeletePolicyOK) IsSuccess() bool

IsSuccess returns true when this delete policy o k response has a 2xx status code

func (*DeletePolicyOK) String

func (o *DeletePolicyOK) String() string

type DeletePolicyParams

type DeletePolicyParams struct {

	// Body.
	Body *models.DeletePolicyRequest

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

DeletePolicyParams contains all the parameters to send to the API endpoint

for the delete policy operation.

Typically these are written to a http.Request.

func NewDeletePolicyParams

func NewDeletePolicyParams() *DeletePolicyParams

NewDeletePolicyParams creates a new DeletePolicyParams 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 NewDeletePolicyParamsWithContext

func NewDeletePolicyParamsWithContext(ctx context.Context) *DeletePolicyParams

NewDeletePolicyParamsWithContext creates a new DeletePolicyParams object with the ability to set a context for a request.

func NewDeletePolicyParamsWithHTTPClient

func NewDeletePolicyParamsWithHTTPClient(client *http.Client) *DeletePolicyParams

NewDeletePolicyParamsWithHTTPClient creates a new DeletePolicyParams object with the ability to set a custom HTTPClient for a request.

func NewDeletePolicyParamsWithTimeout

func NewDeletePolicyParamsWithTimeout(timeout time.Duration) *DeletePolicyParams

NewDeletePolicyParamsWithTimeout creates a new DeletePolicyParams object with the ability to set a timeout on a request.

func (*DeletePolicyParams) SetBody

func (o *DeletePolicyParams) SetBody(body *models.DeletePolicyRequest)

SetBody adds the body to the delete policy params

func (*DeletePolicyParams) SetContext

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

SetContext adds the context to the delete policy params

func (*DeletePolicyParams) SetDefaults

func (o *DeletePolicyParams) SetDefaults()

SetDefaults hydrates default values in the delete policy params (not the query body).

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

func (*DeletePolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete policy params

func (*DeletePolicyParams) SetTimeout

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

SetTimeout adds the timeout to the delete policy params

func (*DeletePolicyParams) WithBody

WithBody adds the body to the delete policy params

func (*DeletePolicyParams) WithContext

WithContext adds the context to the delete policy params

func (*DeletePolicyParams) WithDefaults

func (o *DeletePolicyParams) WithDefaults() *DeletePolicyParams

WithDefaults hydrates default values in the delete policy params (not the query body).

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

func (*DeletePolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete policy params

func (*DeletePolicyParams) WithTimeout

func (o *DeletePolicyParams) WithTimeout(timeout time.Duration) *DeletePolicyParams

WithTimeout adds the timeout to the delete policy params

func (*DeletePolicyParams) WriteToRequest

func (o *DeletePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeletePolicyReader

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

DeletePolicyReader is a Reader for the DeletePolicy structure.

func (*DeletePolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteSmartContractInterfaceOK added in v0.7.0

type DeleteSmartContractInterfaceOK struct {
	Payload *models.ActivityResponse
}

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

A successful response.

func NewDeleteSmartContractInterfaceOK added in v0.7.0

func NewDeleteSmartContractInterfaceOK() *DeleteSmartContractInterfaceOK

NewDeleteSmartContractInterfaceOK creates a DeleteSmartContractInterfaceOK with default headers values

func (*DeleteSmartContractInterfaceOK) Code added in v0.7.0

Code gets the status code for the delete smart contract interface o k response

func (*DeleteSmartContractInterfaceOK) Error added in v0.7.0

func (*DeleteSmartContractInterfaceOK) GetPayload added in v0.7.0

func (*DeleteSmartContractInterfaceOK) IsClientError added in v0.7.0

func (o *DeleteSmartContractInterfaceOK) IsClientError() bool

IsClientError returns true when this delete smart contract interface o k response has a 4xx status code

func (*DeleteSmartContractInterfaceOK) IsCode added in v0.7.0

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

IsCode returns true when this delete smart contract interface o k response a status code equal to that given

func (*DeleteSmartContractInterfaceOK) IsRedirect added in v0.7.0

func (o *DeleteSmartContractInterfaceOK) IsRedirect() bool

IsRedirect returns true when this delete smart contract interface o k response has a 3xx status code

func (*DeleteSmartContractInterfaceOK) IsServerError added in v0.7.0

func (o *DeleteSmartContractInterfaceOK) IsServerError() bool

IsServerError returns true when this delete smart contract interface o k response has a 5xx status code

func (*DeleteSmartContractInterfaceOK) IsSuccess added in v0.7.0

func (o *DeleteSmartContractInterfaceOK) IsSuccess() bool

IsSuccess returns true when this delete smart contract interface o k response has a 2xx status code

func (*DeleteSmartContractInterfaceOK) String added in v0.7.0

type DeleteSmartContractInterfaceParams added in v0.7.0

type DeleteSmartContractInterfaceParams struct {

	// Body.
	Body *models.DeleteSmartContractInterfaceRequest

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

DeleteSmartContractInterfaceParams contains all the parameters to send to the API endpoint

for the delete smart contract interface operation.

Typically these are written to a http.Request.

func NewDeleteSmartContractInterfaceParams added in v0.7.0

func NewDeleteSmartContractInterfaceParams() *DeleteSmartContractInterfaceParams

NewDeleteSmartContractInterfaceParams creates a new DeleteSmartContractInterfaceParams 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 NewDeleteSmartContractInterfaceParamsWithContext added in v0.7.0

func NewDeleteSmartContractInterfaceParamsWithContext(ctx context.Context) *DeleteSmartContractInterfaceParams

NewDeleteSmartContractInterfaceParamsWithContext creates a new DeleteSmartContractInterfaceParams object with the ability to set a context for a request.

func NewDeleteSmartContractInterfaceParamsWithHTTPClient added in v0.7.0

func NewDeleteSmartContractInterfaceParamsWithHTTPClient(client *http.Client) *DeleteSmartContractInterfaceParams

NewDeleteSmartContractInterfaceParamsWithHTTPClient creates a new DeleteSmartContractInterfaceParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteSmartContractInterfaceParamsWithTimeout added in v0.7.0

func NewDeleteSmartContractInterfaceParamsWithTimeout(timeout time.Duration) *DeleteSmartContractInterfaceParams

NewDeleteSmartContractInterfaceParamsWithTimeout creates a new DeleteSmartContractInterfaceParams object with the ability to set a timeout on a request.

func (*DeleteSmartContractInterfaceParams) SetBody added in v0.7.0

SetBody adds the body to the delete smart contract interface params

func (*DeleteSmartContractInterfaceParams) SetContext added in v0.7.0

SetContext adds the context to the delete smart contract interface params

func (*DeleteSmartContractInterfaceParams) SetDefaults added in v0.7.0

func (o *DeleteSmartContractInterfaceParams) SetDefaults()

SetDefaults hydrates default values in the delete smart contract interface params (not the query body).

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

func (*DeleteSmartContractInterfaceParams) SetHTTPClient added in v0.7.0

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

SetHTTPClient adds the HTTPClient to the delete smart contract interface params

func (*DeleteSmartContractInterfaceParams) SetTimeout added in v0.7.0

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

SetTimeout adds the timeout to the delete smart contract interface params

func (*DeleteSmartContractInterfaceParams) WithBody added in v0.7.0

WithBody adds the body to the delete smart contract interface params

func (*DeleteSmartContractInterfaceParams) WithContext added in v0.7.0

WithContext adds the context to the delete smart contract interface params

func (*DeleteSmartContractInterfaceParams) WithDefaults added in v0.7.0

WithDefaults hydrates default values in the delete smart contract interface params (not the query body).

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

func (*DeleteSmartContractInterfaceParams) WithHTTPClient added in v0.7.0

WithHTTPClient adds the HTTPClient to the delete smart contract interface params

func (*DeleteSmartContractInterfaceParams) WithTimeout added in v0.7.0

WithTimeout adds the timeout to the delete smart contract interface params

func (*DeleteSmartContractInterfaceParams) WriteToRequest added in v0.7.0

WriteToRequest writes these params to a swagger request

type DeleteSmartContractInterfaceReader added in v0.7.0

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

DeleteSmartContractInterfaceReader is a Reader for the DeleteSmartContractInterface structure.

func (*DeleteSmartContractInterfaceReader) ReadResponse added in v0.7.0

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

ReadResponse reads a server response into the received o.

type GetPoliciesOK

type GetPoliciesOK struct {
	Payload *models.GetPoliciesResponse
}

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

A successful response.

func NewGetPoliciesOK

func NewGetPoliciesOK() *GetPoliciesOK

NewGetPoliciesOK creates a GetPoliciesOK with default headers values

func (*GetPoliciesOK) Code

func (o *GetPoliciesOK) Code() int

Code gets the status code for the get policies o k response

func (*GetPoliciesOK) Error

func (o *GetPoliciesOK) Error() string

func (*GetPoliciesOK) GetPayload

func (o *GetPoliciesOK) GetPayload() *models.GetPoliciesResponse

func (*GetPoliciesOK) IsClientError

func (o *GetPoliciesOK) IsClientError() bool

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

func (*GetPoliciesOK) IsCode

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

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

func (*GetPoliciesOK) IsRedirect

func (o *GetPoliciesOK) IsRedirect() bool

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

func (*GetPoliciesOK) IsServerError

func (o *GetPoliciesOK) IsServerError() bool

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

func (*GetPoliciesOK) IsSuccess

func (o *GetPoliciesOK) IsSuccess() bool

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

func (*GetPoliciesOK) String

func (o *GetPoliciesOK) String() string

type GetPoliciesParams

type GetPoliciesParams struct {

	// Body.
	Body *models.GetPoliciesRequest

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

GetPoliciesParams contains all the parameters to send to the API endpoint

for the get policies operation.

Typically these are written to a http.Request.

func NewGetPoliciesParams

func NewGetPoliciesParams() *GetPoliciesParams

NewGetPoliciesParams creates a new GetPoliciesParams 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 NewGetPoliciesParamsWithContext

func NewGetPoliciesParamsWithContext(ctx context.Context) *GetPoliciesParams

NewGetPoliciesParamsWithContext creates a new GetPoliciesParams object with the ability to set a context for a request.

func NewGetPoliciesParamsWithHTTPClient

func NewGetPoliciesParamsWithHTTPClient(client *http.Client) *GetPoliciesParams

NewGetPoliciesParamsWithHTTPClient creates a new GetPoliciesParams object with the ability to set a custom HTTPClient for a request.

func NewGetPoliciesParamsWithTimeout

func NewGetPoliciesParamsWithTimeout(timeout time.Duration) *GetPoliciesParams

NewGetPoliciesParamsWithTimeout creates a new GetPoliciesParams object with the ability to set a timeout on a request.

func (*GetPoliciesParams) SetBody

func (o *GetPoliciesParams) SetBody(body *models.GetPoliciesRequest)

SetBody adds the body to the get policies params

func (*GetPoliciesParams) SetContext

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

SetContext adds the context to the get policies params

func (*GetPoliciesParams) SetDefaults

func (o *GetPoliciesParams) SetDefaults()

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

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

func (*GetPoliciesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get policies params

func (*GetPoliciesParams) SetTimeout

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

SetTimeout adds the timeout to the get policies params

func (*GetPoliciesParams) WithBody

WithBody adds the body to the get policies params

func (*GetPoliciesParams) WithContext

func (o *GetPoliciesParams) WithContext(ctx context.Context) *GetPoliciesParams

WithContext adds the context to the get policies params

func (*GetPoliciesParams) WithDefaults

func (o *GetPoliciesParams) WithDefaults() *GetPoliciesParams

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

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

func (*GetPoliciesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get policies params

func (*GetPoliciesParams) WithTimeout

func (o *GetPoliciesParams) WithTimeout(timeout time.Duration) *GetPoliciesParams

WithTimeout adds the timeout to the get policies params

func (*GetPoliciesParams) WriteToRequest

func (o *GetPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetPoliciesReader

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

GetPoliciesReader is a Reader for the GetPolicies structure.

func (*GetPoliciesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPolicyOK

type GetPolicyOK struct {
	Payload *models.GetPolicyResponse
}

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

A successful response.

func NewGetPolicyOK

func NewGetPolicyOK() *GetPolicyOK

NewGetPolicyOK creates a GetPolicyOK with default headers values

func (*GetPolicyOK) Code

func (o *GetPolicyOK) Code() int

Code gets the status code for the get policy o k response

func (*GetPolicyOK) Error

func (o *GetPolicyOK) Error() string

func (*GetPolicyOK) GetPayload

func (o *GetPolicyOK) GetPayload() *models.GetPolicyResponse

func (*GetPolicyOK) IsClientError

func (o *GetPolicyOK) IsClientError() bool

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

func (*GetPolicyOK) IsCode

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

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

func (*GetPolicyOK) IsRedirect

func (o *GetPolicyOK) IsRedirect() bool

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

func (*GetPolicyOK) IsServerError

func (o *GetPolicyOK) IsServerError() bool

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

func (*GetPolicyOK) IsSuccess

func (o *GetPolicyOK) IsSuccess() bool

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

func (*GetPolicyOK) String

func (o *GetPolicyOK) String() string

type GetPolicyParams

type GetPolicyParams struct {

	// Body.
	Body *models.GetPolicyRequest

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

GetPolicyParams contains all the parameters to send to the API endpoint

for the get policy operation.

Typically these are written to a http.Request.

func NewGetPolicyParams

func NewGetPolicyParams() *GetPolicyParams

NewGetPolicyParams creates a new GetPolicyParams 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 NewGetPolicyParamsWithContext

func NewGetPolicyParamsWithContext(ctx context.Context) *GetPolicyParams

NewGetPolicyParamsWithContext creates a new GetPolicyParams object with the ability to set a context for a request.

func NewGetPolicyParamsWithHTTPClient

func NewGetPolicyParamsWithHTTPClient(client *http.Client) *GetPolicyParams

NewGetPolicyParamsWithHTTPClient creates a new GetPolicyParams object with the ability to set a custom HTTPClient for a request.

func NewGetPolicyParamsWithTimeout

func NewGetPolicyParamsWithTimeout(timeout time.Duration) *GetPolicyParams

NewGetPolicyParamsWithTimeout creates a new GetPolicyParams object with the ability to set a timeout on a request.

func (*GetPolicyParams) SetBody

func (o *GetPolicyParams) SetBody(body *models.GetPolicyRequest)

SetBody adds the body to the get policy params

func (*GetPolicyParams) SetContext

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

SetContext adds the context to the get policy params

func (*GetPolicyParams) SetDefaults

func (o *GetPolicyParams) SetDefaults()

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

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

func (*GetPolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get policy params

func (*GetPolicyParams) SetTimeout

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

SetTimeout adds the timeout to the get policy params

func (*GetPolicyParams) WithBody

WithBody adds the body to the get policy params

func (*GetPolicyParams) WithContext

func (o *GetPolicyParams) WithContext(ctx context.Context) *GetPolicyParams

WithContext adds the context to the get policy params

func (*GetPolicyParams) WithDefaults

func (o *GetPolicyParams) WithDefaults() *GetPolicyParams

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

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

func (*GetPolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get policy params

func (*GetPolicyParams) WithTimeout

func (o *GetPolicyParams) WithTimeout(timeout time.Duration) *GetPolicyParams

WithTimeout adds the timeout to the get policy params

func (*GetPolicyParams) WriteToRequest

func (o *GetPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetPolicyReader

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

GetPolicyReader is a Reader for the GetPolicy structure.

func (*GetPolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSmartContractInterfaceOK added in v0.7.0

type GetSmartContractInterfaceOK struct {
	Payload *models.GetSmartContractInterfaceResponse
}

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

A successful response.

func NewGetSmartContractInterfaceOK added in v0.7.0

func NewGetSmartContractInterfaceOK() *GetSmartContractInterfaceOK

NewGetSmartContractInterfaceOK creates a GetSmartContractInterfaceOK with default headers values

func (*GetSmartContractInterfaceOK) Code added in v0.7.0

func (o *GetSmartContractInterfaceOK) Code() int

Code gets the status code for the get smart contract interface o k response

func (*GetSmartContractInterfaceOK) Error added in v0.7.0

func (*GetSmartContractInterfaceOK) GetPayload added in v0.7.0

func (*GetSmartContractInterfaceOK) IsClientError added in v0.7.0

func (o *GetSmartContractInterfaceOK) IsClientError() bool

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

func (*GetSmartContractInterfaceOK) IsCode added in v0.7.0

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

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

func (*GetSmartContractInterfaceOK) IsRedirect added in v0.7.0

func (o *GetSmartContractInterfaceOK) IsRedirect() bool

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

func (*GetSmartContractInterfaceOK) IsServerError added in v0.7.0

func (o *GetSmartContractInterfaceOK) IsServerError() bool

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

func (*GetSmartContractInterfaceOK) IsSuccess added in v0.7.0

func (o *GetSmartContractInterfaceOK) IsSuccess() bool

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

func (*GetSmartContractInterfaceOK) String added in v0.7.0

func (o *GetSmartContractInterfaceOK) String() string

type GetSmartContractInterfaceParams added in v0.7.0

type GetSmartContractInterfaceParams struct {

	// Body.
	Body *models.GetSmartContractInterfaceRequest

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

GetSmartContractInterfaceParams contains all the parameters to send to the API endpoint

for the get smart contract interface operation.

Typically these are written to a http.Request.

func NewGetSmartContractInterfaceParams added in v0.7.0

func NewGetSmartContractInterfaceParams() *GetSmartContractInterfaceParams

NewGetSmartContractInterfaceParams creates a new GetSmartContractInterfaceParams 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 NewGetSmartContractInterfaceParamsWithContext added in v0.7.0

func NewGetSmartContractInterfaceParamsWithContext(ctx context.Context) *GetSmartContractInterfaceParams

NewGetSmartContractInterfaceParamsWithContext creates a new GetSmartContractInterfaceParams object with the ability to set a context for a request.

func NewGetSmartContractInterfaceParamsWithHTTPClient added in v0.7.0

func NewGetSmartContractInterfaceParamsWithHTTPClient(client *http.Client) *GetSmartContractInterfaceParams

NewGetSmartContractInterfaceParamsWithHTTPClient creates a new GetSmartContractInterfaceParams object with the ability to set a custom HTTPClient for a request.

func NewGetSmartContractInterfaceParamsWithTimeout added in v0.7.0

func NewGetSmartContractInterfaceParamsWithTimeout(timeout time.Duration) *GetSmartContractInterfaceParams

NewGetSmartContractInterfaceParamsWithTimeout creates a new GetSmartContractInterfaceParams object with the ability to set a timeout on a request.

func (*GetSmartContractInterfaceParams) SetBody added in v0.7.0

SetBody adds the body to the get smart contract interface params

func (*GetSmartContractInterfaceParams) SetContext added in v0.7.0

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

SetContext adds the context to the get smart contract interface params

func (*GetSmartContractInterfaceParams) SetDefaults added in v0.7.0

func (o *GetSmartContractInterfaceParams) SetDefaults()

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

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

func (*GetSmartContractInterfaceParams) SetHTTPClient added in v0.7.0

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

SetHTTPClient adds the HTTPClient to the get smart contract interface params

func (*GetSmartContractInterfaceParams) SetTimeout added in v0.7.0

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

SetTimeout adds the timeout to the get smart contract interface params

func (*GetSmartContractInterfaceParams) WithBody added in v0.7.0

WithBody adds the body to the get smart contract interface params

func (*GetSmartContractInterfaceParams) WithContext added in v0.7.0

WithContext adds the context to the get smart contract interface params

func (*GetSmartContractInterfaceParams) WithDefaults added in v0.7.0

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

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

func (*GetSmartContractInterfaceParams) WithHTTPClient added in v0.7.0

WithHTTPClient adds the HTTPClient to the get smart contract interface params

func (*GetSmartContractInterfaceParams) WithTimeout added in v0.7.0

WithTimeout adds the timeout to the get smart contract interface params

func (*GetSmartContractInterfaceParams) WriteToRequest added in v0.7.0

WriteToRequest writes these params to a swagger request

type GetSmartContractInterfaceReader added in v0.7.0

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

GetSmartContractInterfaceReader is a Reader for the GetSmartContractInterface structure.

func (*GetSmartContractInterfaceReader) ReadResponse added in v0.7.0

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

ReadResponse reads a server response into the received o.

type GetSmartContractInterfacesOK added in v0.7.0

type GetSmartContractInterfacesOK struct {
	Payload *models.GetSmartContractInterfacesResponse
}

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

A successful response.

func NewGetSmartContractInterfacesOK added in v0.7.0

func NewGetSmartContractInterfacesOK() *GetSmartContractInterfacesOK

NewGetSmartContractInterfacesOK creates a GetSmartContractInterfacesOK with default headers values

func (*GetSmartContractInterfacesOK) Code added in v0.7.0

Code gets the status code for the get smart contract interfaces o k response

func (*GetSmartContractInterfacesOK) Error added in v0.7.0

func (*GetSmartContractInterfacesOK) GetPayload added in v0.7.0

func (*GetSmartContractInterfacesOK) IsClientError added in v0.7.0

func (o *GetSmartContractInterfacesOK) IsClientError() bool

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

func (*GetSmartContractInterfacesOK) IsCode added in v0.7.0

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

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

func (*GetSmartContractInterfacesOK) IsRedirect added in v0.7.0

func (o *GetSmartContractInterfacesOK) IsRedirect() bool

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

func (*GetSmartContractInterfacesOK) IsServerError added in v0.7.0

func (o *GetSmartContractInterfacesOK) IsServerError() bool

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

func (*GetSmartContractInterfacesOK) IsSuccess added in v0.7.0

func (o *GetSmartContractInterfacesOK) IsSuccess() bool

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

func (*GetSmartContractInterfacesOK) String added in v0.7.0

type GetSmartContractInterfacesParams added in v0.7.0

type GetSmartContractInterfacesParams struct {

	// Body.
	Body *models.GetSmartContractInterfacesRequest

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

GetSmartContractInterfacesParams contains all the parameters to send to the API endpoint

for the get smart contract interfaces operation.

Typically these are written to a http.Request.

func NewGetSmartContractInterfacesParams added in v0.7.0

func NewGetSmartContractInterfacesParams() *GetSmartContractInterfacesParams

NewGetSmartContractInterfacesParams creates a new GetSmartContractInterfacesParams 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 NewGetSmartContractInterfacesParamsWithContext added in v0.7.0

func NewGetSmartContractInterfacesParamsWithContext(ctx context.Context) *GetSmartContractInterfacesParams

NewGetSmartContractInterfacesParamsWithContext creates a new GetSmartContractInterfacesParams object with the ability to set a context for a request.

func NewGetSmartContractInterfacesParamsWithHTTPClient added in v0.7.0

func NewGetSmartContractInterfacesParamsWithHTTPClient(client *http.Client) *GetSmartContractInterfacesParams

NewGetSmartContractInterfacesParamsWithHTTPClient creates a new GetSmartContractInterfacesParams object with the ability to set a custom HTTPClient for a request.

func NewGetSmartContractInterfacesParamsWithTimeout added in v0.7.0

func NewGetSmartContractInterfacesParamsWithTimeout(timeout time.Duration) *GetSmartContractInterfacesParams

NewGetSmartContractInterfacesParamsWithTimeout creates a new GetSmartContractInterfacesParams object with the ability to set a timeout on a request.

func (*GetSmartContractInterfacesParams) SetBody added in v0.7.0

SetBody adds the body to the get smart contract interfaces params

func (*GetSmartContractInterfacesParams) SetContext added in v0.7.0

SetContext adds the context to the get smart contract interfaces params

func (*GetSmartContractInterfacesParams) SetDefaults added in v0.7.0

func (o *GetSmartContractInterfacesParams) SetDefaults()

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

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

func (*GetSmartContractInterfacesParams) SetHTTPClient added in v0.7.0

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

SetHTTPClient adds the HTTPClient to the get smart contract interfaces params

func (*GetSmartContractInterfacesParams) SetTimeout added in v0.7.0

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

SetTimeout adds the timeout to the get smart contract interfaces params

func (*GetSmartContractInterfacesParams) WithBody added in v0.7.0

WithBody adds the body to the get smart contract interfaces params

func (*GetSmartContractInterfacesParams) WithContext added in v0.7.0

WithContext adds the context to the get smart contract interfaces params

func (*GetSmartContractInterfacesParams) WithDefaults added in v0.7.0

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

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

func (*GetSmartContractInterfacesParams) WithHTTPClient added in v0.7.0

WithHTTPClient adds the HTTPClient to the get smart contract interfaces params

func (*GetSmartContractInterfacesParams) WithTimeout added in v0.7.0

WithTimeout adds the timeout to the get smart contract interfaces params

func (*GetSmartContractInterfacesParams) WriteToRequest added in v0.7.0

WriteToRequest writes these params to a swagger request

type GetSmartContractInterfacesReader added in v0.7.0

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

GetSmartContractInterfacesReader is a Reader for the GetSmartContractInterfaces structure.

func (*GetSmartContractInterfacesReader) ReadResponse added in v0.7.0

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

ReadResponse reads a server response into the received o.

type UpdatePolicyOK

type UpdatePolicyOK struct {
	Payload *models.ActivityResponse
}

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

A successful response.

func NewUpdatePolicyOK

func NewUpdatePolicyOK() *UpdatePolicyOK

NewUpdatePolicyOK creates a UpdatePolicyOK with default headers values

func (*UpdatePolicyOK) Code

func (o *UpdatePolicyOK) Code() int

Code gets the status code for the update policy o k response

func (*UpdatePolicyOK) Error

func (o *UpdatePolicyOK) Error() string

func (*UpdatePolicyOK) GetPayload

func (o *UpdatePolicyOK) GetPayload() *models.ActivityResponse

func (*UpdatePolicyOK) IsClientError

func (o *UpdatePolicyOK) IsClientError() bool

IsClientError returns true when this update policy o k response has a 4xx status code

func (*UpdatePolicyOK) IsCode

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

IsCode returns true when this update policy o k response a status code equal to that given

func (*UpdatePolicyOK) IsRedirect

func (o *UpdatePolicyOK) IsRedirect() bool

IsRedirect returns true when this update policy o k response has a 3xx status code

func (*UpdatePolicyOK) IsServerError

func (o *UpdatePolicyOK) IsServerError() bool

IsServerError returns true when this update policy o k response has a 5xx status code

func (*UpdatePolicyOK) IsSuccess

func (o *UpdatePolicyOK) IsSuccess() bool

IsSuccess returns true when this update policy o k response has a 2xx status code

func (*UpdatePolicyOK) String

func (o *UpdatePolicyOK) String() string

type UpdatePolicyParams

type UpdatePolicyParams struct {

	// Body.
	Body *models.UpdatePolicyRequest

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

UpdatePolicyParams contains all the parameters to send to the API endpoint

for the update policy operation.

Typically these are written to a http.Request.

func NewUpdatePolicyParams

func NewUpdatePolicyParams() *UpdatePolicyParams

NewUpdatePolicyParams creates a new UpdatePolicyParams 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 NewUpdatePolicyParamsWithContext

func NewUpdatePolicyParamsWithContext(ctx context.Context) *UpdatePolicyParams

NewUpdatePolicyParamsWithContext creates a new UpdatePolicyParams object with the ability to set a context for a request.

func NewUpdatePolicyParamsWithHTTPClient

func NewUpdatePolicyParamsWithHTTPClient(client *http.Client) *UpdatePolicyParams

NewUpdatePolicyParamsWithHTTPClient creates a new UpdatePolicyParams object with the ability to set a custom HTTPClient for a request.

func NewUpdatePolicyParamsWithTimeout

func NewUpdatePolicyParamsWithTimeout(timeout time.Duration) *UpdatePolicyParams

NewUpdatePolicyParamsWithTimeout creates a new UpdatePolicyParams object with the ability to set a timeout on a request.

func (*UpdatePolicyParams) SetBody

func (o *UpdatePolicyParams) SetBody(body *models.UpdatePolicyRequest)

SetBody adds the body to the update policy params

func (*UpdatePolicyParams) SetContext

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

SetContext adds the context to the update policy params

func (*UpdatePolicyParams) SetDefaults

func (o *UpdatePolicyParams) SetDefaults()

SetDefaults hydrates default values in the update policy params (not the query body).

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

func (*UpdatePolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update policy params

func (*UpdatePolicyParams) SetTimeout

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

SetTimeout adds the timeout to the update policy params

func (*UpdatePolicyParams) WithBody

WithBody adds the body to the update policy params

func (*UpdatePolicyParams) WithContext

WithContext adds the context to the update policy params

func (*UpdatePolicyParams) WithDefaults

func (o *UpdatePolicyParams) WithDefaults() *UpdatePolicyParams

WithDefaults hydrates default values in the update policy params (not the query body).

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

func (*UpdatePolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update policy params

func (*UpdatePolicyParams) WithTimeout

func (o *UpdatePolicyParams) WithTimeout(timeout time.Duration) *UpdatePolicyParams

WithTimeout adds the timeout to the update policy params

func (*UpdatePolicyParams) WriteToRequest

func (o *UpdatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdatePolicyReader

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

UpdatePolicyReader is a Reader for the UpdatePolicy structure.

func (*UpdatePolicyReader) ReadResponse

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