policies

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 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

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) DeletePolicies

func (a *Client) DeletePolicies(params *DeletePoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePoliciesOK, error)

DeletePolicies deletes policies

Delete existing policies.

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

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

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

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)

	DeletePolicies(params *DeletePoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePoliciesOK, 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

type CreateSmartContractInterfaceOK struct {
	Payload *models.ActivityResponse
}

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

A successful response.

func NewCreateSmartContractInterfaceOK

func NewCreateSmartContractInterfaceOK() *CreateSmartContractInterfaceOK

NewCreateSmartContractInterfaceOK creates a CreateSmartContractInterfaceOK with default headers values

func (*CreateSmartContractInterfaceOK) Code

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

func (*CreateSmartContractInterfaceOK) Error

func (*CreateSmartContractInterfaceOK) GetPayload

func (*CreateSmartContractInterfaceOK) IsClientError

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

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

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

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

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

type CreateSmartContractInterfaceParams

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

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

func NewCreateSmartContractInterfaceParamsWithContext(ctx context.Context) *CreateSmartContractInterfaceParams

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

func NewCreateSmartContractInterfaceParamsWithHTTPClient

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

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

SetBody adds the body to the create smart contract interface params

func (*CreateSmartContractInterfaceParams) SetContext

SetContext adds the context to the create smart contract interface params

func (*CreateSmartContractInterfaceParams) SetDefaults

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

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

SetHTTPClient adds the HTTPClient to the create smart contract interface params

func (*CreateSmartContractInterfaceParams) SetTimeout

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

SetTimeout adds the timeout to the create smart contract interface params

func (*CreateSmartContractInterfaceParams) WithBody

WithBody adds the body to the create smart contract interface params

func (*CreateSmartContractInterfaceParams) WithContext

WithContext adds the context to the create smart contract interface params

func (*CreateSmartContractInterfaceParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the create smart contract interface params

func (*CreateSmartContractInterfaceParams) WithTimeout

WithTimeout adds the timeout to the create smart contract interface params

func (*CreateSmartContractInterfaceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateSmartContractInterfaceReader

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

CreateSmartContractInterfaceReader is a Reader for the CreateSmartContractInterface structure.

func (*CreateSmartContractInterfaceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeletePoliciesOK

type DeletePoliciesOK struct {
	Payload *models.ActivityResponse
}

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

A successful response.

func NewDeletePoliciesOK

func NewDeletePoliciesOK() *DeletePoliciesOK

NewDeletePoliciesOK creates a DeletePoliciesOK with default headers values

func (*DeletePoliciesOK) Code

func (o *DeletePoliciesOK) Code() int

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

func (*DeletePoliciesOK) Error

func (o *DeletePoliciesOK) Error() string

func (*DeletePoliciesOK) GetPayload

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

func (*DeletePoliciesOK) IsClientError

func (o *DeletePoliciesOK) IsClientError() bool

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

func (*DeletePoliciesOK) IsCode

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

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

func (*DeletePoliciesOK) IsRedirect

func (o *DeletePoliciesOK) IsRedirect() bool

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

func (*DeletePoliciesOK) IsServerError

func (o *DeletePoliciesOK) IsServerError() bool

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

func (*DeletePoliciesOK) IsSuccess

func (o *DeletePoliciesOK) IsSuccess() bool

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

func (*DeletePoliciesOK) String

func (o *DeletePoliciesOK) String() string

type DeletePoliciesParams

type DeletePoliciesParams struct {

	// Body.
	Body *models.DeletePoliciesRequest

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

DeletePoliciesParams contains all the parameters to send to the API endpoint

for the delete policies operation.

Typically these are written to a http.Request.

func NewDeletePoliciesParams

func NewDeletePoliciesParams() *DeletePoliciesParams

NewDeletePoliciesParams creates a new DeletePoliciesParams 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 NewDeletePoliciesParamsWithContext

func NewDeletePoliciesParamsWithContext(ctx context.Context) *DeletePoliciesParams

NewDeletePoliciesParamsWithContext creates a new DeletePoliciesParams object with the ability to set a context for a request.

func NewDeletePoliciesParamsWithHTTPClient

func NewDeletePoliciesParamsWithHTTPClient(client *http.Client) *DeletePoliciesParams

NewDeletePoliciesParamsWithHTTPClient creates a new DeletePoliciesParams object with the ability to set a custom HTTPClient for a request.

func NewDeletePoliciesParamsWithTimeout

func NewDeletePoliciesParamsWithTimeout(timeout time.Duration) *DeletePoliciesParams

NewDeletePoliciesParamsWithTimeout creates a new DeletePoliciesParams object with the ability to set a timeout on a request.

func (*DeletePoliciesParams) SetBody

SetBody adds the body to the delete policies params

func (*DeletePoliciesParams) SetContext

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

SetContext adds the context to the delete policies params

func (*DeletePoliciesParams) SetDefaults

func (o *DeletePoliciesParams) SetDefaults()

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

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

func (*DeletePoliciesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete policies params

func (*DeletePoliciesParams) SetTimeout

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

SetTimeout adds the timeout to the delete policies params

func (*DeletePoliciesParams) WithBody

WithBody adds the body to the delete policies params

func (*DeletePoliciesParams) WithContext

WithContext adds the context to the delete policies params

func (*DeletePoliciesParams) WithDefaults

func (o *DeletePoliciesParams) WithDefaults() *DeletePoliciesParams

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

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

func (*DeletePoliciesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete policies params

func (*DeletePoliciesParams) WithTimeout

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

WithTimeout adds the timeout to the delete policies params

func (*DeletePoliciesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeletePoliciesReader

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

DeletePoliciesReader is a Reader for the DeletePolicies structure.

func (*DeletePoliciesReader) ReadResponse

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

type DeleteSmartContractInterfaceOK struct {
	Payload *models.ActivityResponse
}

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

A successful response.

func NewDeleteSmartContractInterfaceOK

func NewDeleteSmartContractInterfaceOK() *DeleteSmartContractInterfaceOK

NewDeleteSmartContractInterfaceOK creates a DeleteSmartContractInterfaceOK with default headers values

func (*DeleteSmartContractInterfaceOK) Code

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

func (*DeleteSmartContractInterfaceOK) Error

func (*DeleteSmartContractInterfaceOK) GetPayload

func (*DeleteSmartContractInterfaceOK) IsClientError

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

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

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

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

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

type DeleteSmartContractInterfaceParams

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

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

func NewDeleteSmartContractInterfaceParamsWithContext(ctx context.Context) *DeleteSmartContractInterfaceParams

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

func NewDeleteSmartContractInterfaceParamsWithHTTPClient

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

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

SetBody adds the body to the delete smart contract interface params

func (*DeleteSmartContractInterfaceParams) SetContext

SetContext adds the context to the delete smart contract interface params

func (*DeleteSmartContractInterfaceParams) SetDefaults

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

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

SetHTTPClient adds the HTTPClient to the delete smart contract interface params

func (*DeleteSmartContractInterfaceParams) SetTimeout

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

SetTimeout adds the timeout to the delete smart contract interface params

func (*DeleteSmartContractInterfaceParams) WithBody

WithBody adds the body to the delete smart contract interface params

func (*DeleteSmartContractInterfaceParams) WithContext

WithContext adds the context to the delete smart contract interface params

func (*DeleteSmartContractInterfaceParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the delete smart contract interface params

func (*DeleteSmartContractInterfaceParams) WithTimeout

WithTimeout adds the timeout to the delete smart contract interface params

func (*DeleteSmartContractInterfaceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteSmartContractInterfaceReader

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

DeleteSmartContractInterfaceReader is a Reader for the DeleteSmartContractInterface structure.

func (*DeleteSmartContractInterfaceReader) ReadResponse

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

type GetSmartContractInterfaceOK struct {
	Payload *models.GetSmartContractInterfaceResponse
}

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

A successful response.

func NewGetSmartContractInterfaceOK

func NewGetSmartContractInterfaceOK() *GetSmartContractInterfaceOK

NewGetSmartContractInterfaceOK creates a GetSmartContractInterfaceOK with default headers values

func (*GetSmartContractInterfaceOK) Code

func (o *GetSmartContractInterfaceOK) Code() int

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

func (*GetSmartContractInterfaceOK) Error

func (*GetSmartContractInterfaceOK) GetPayload

func (*GetSmartContractInterfaceOK) IsClientError

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

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

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

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

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

func (o *GetSmartContractInterfaceOK) String() string

type GetSmartContractInterfaceParams

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

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

func NewGetSmartContractInterfaceParamsWithContext(ctx context.Context) *GetSmartContractInterfaceParams

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

func NewGetSmartContractInterfaceParamsWithHTTPClient

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

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

SetBody adds the body to the get smart contract interface params

func (*GetSmartContractInterfaceParams) SetContext

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

SetContext adds the context to the get smart contract interface params

func (*GetSmartContractInterfaceParams) SetDefaults

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

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

SetHTTPClient adds the HTTPClient to the get smart contract interface params

func (*GetSmartContractInterfaceParams) SetTimeout

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

SetTimeout adds the timeout to the get smart contract interface params

func (*GetSmartContractInterfaceParams) WithBody

WithBody adds the body to the get smart contract interface params

func (*GetSmartContractInterfaceParams) WithContext

WithContext adds the context to the get smart contract interface params

func (*GetSmartContractInterfaceParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get smart contract interface params

func (*GetSmartContractInterfaceParams) WithTimeout

WithTimeout adds the timeout to the get smart contract interface params

func (*GetSmartContractInterfaceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSmartContractInterfaceReader

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

GetSmartContractInterfaceReader is a Reader for the GetSmartContractInterface structure.

func (*GetSmartContractInterfaceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSmartContractInterfacesOK

type GetSmartContractInterfacesOK struct {
	Payload *models.GetSmartContractInterfacesResponse
}

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

A successful response.

func NewGetSmartContractInterfacesOK

func NewGetSmartContractInterfacesOK() *GetSmartContractInterfacesOK

NewGetSmartContractInterfacesOK creates a GetSmartContractInterfacesOK with default headers values

func (*GetSmartContractInterfacesOK) Code

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

func (*GetSmartContractInterfacesOK) Error

func (*GetSmartContractInterfacesOK) GetPayload

func (*GetSmartContractInterfacesOK) IsClientError

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

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

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

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

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

type GetSmartContractInterfacesParams

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

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

func NewGetSmartContractInterfacesParamsWithContext(ctx context.Context) *GetSmartContractInterfacesParams

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

func NewGetSmartContractInterfacesParamsWithHTTPClient

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

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

SetBody adds the body to the get smart contract interfaces params

func (*GetSmartContractInterfacesParams) SetContext

SetContext adds the context to the get smart contract interfaces params

func (*GetSmartContractInterfacesParams) SetDefaults

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

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

SetHTTPClient adds the HTTPClient to the get smart contract interfaces params

func (*GetSmartContractInterfacesParams) SetTimeout

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

SetTimeout adds the timeout to the get smart contract interfaces params

func (*GetSmartContractInterfacesParams) WithBody

WithBody adds the body to the get smart contract interfaces params

func (*GetSmartContractInterfacesParams) WithContext

WithContext adds the context to the get smart contract interfaces params

func (*GetSmartContractInterfacesParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get smart contract interfaces params

func (*GetSmartContractInterfacesParams) WithTimeout

WithTimeout adds the timeout to the get smart contract interfaces params

func (*GetSmartContractInterfacesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSmartContractInterfacesReader

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

GetSmartContractInterfacesReader is a Reader for the GetSmartContractInterfaces structure.

func (*GetSmartContractInterfacesReader) ReadResponse

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
⌂ 换网址