Documentation
¶
Index ¶
- type Client
- func (a *Client) CreatePolicies(params *CreatePoliciesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreatePoliciesOK, error)
- func (a *Client) CreatePolicy(params *CreatePolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreatePolicyOK, error)
- func (a *Client) CreateSmartContractInterface(params *CreateSmartContractInterfaceParams, ...) (*CreateSmartContractInterfaceOK, error)
- func (a *Client) DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeletePolicyOK, error)
- func (a *Client) DeleteSmartContractInterface(params *DeleteSmartContractInterfaceParams, ...) (*DeleteSmartContractInterfaceOK, error)
- func (a *Client) GetPolicies(params *GetPoliciesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetPoliciesOK, error)
- func (a *Client) GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetPolicyOK, error)
- func (a *Client) GetSmartContractInterface(params *GetSmartContractInterfaceParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetSmartContractInterfaceOK, error)
- func (a *Client) GetSmartContractInterfaces(params *GetSmartContractInterfacesParams, ...) (*GetSmartContractInterfacesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdatePolicyOK, error)
- type ClientOption
- type ClientService
- type CreatePoliciesOK
- func (o *CreatePoliciesOK) Code() int
- func (o *CreatePoliciesOK) Error() string
- func (o *CreatePoliciesOK) GetPayload() *models.ActivityResponse
- func (o *CreatePoliciesOK) IsClientError() bool
- func (o *CreatePoliciesOK) IsCode(code int) bool
- func (o *CreatePoliciesOK) IsRedirect() bool
- func (o *CreatePoliciesOK) IsServerError() bool
- func (o *CreatePoliciesOK) IsSuccess() bool
- func (o *CreatePoliciesOK) String() string
- type CreatePoliciesParams
- func NewCreatePoliciesParams() *CreatePoliciesParams
- func NewCreatePoliciesParamsWithContext(ctx context.Context) *CreatePoliciesParams
- func NewCreatePoliciesParamsWithHTTPClient(client *http.Client) *CreatePoliciesParams
- func NewCreatePoliciesParamsWithTimeout(timeout time.Duration) *CreatePoliciesParams
- func (o *CreatePoliciesParams) SetBody(body *models.CreatePoliciesRequest)
- func (o *CreatePoliciesParams) SetContext(ctx context.Context)
- func (o *CreatePoliciesParams) SetDefaults()
- func (o *CreatePoliciesParams) SetHTTPClient(client *http.Client)
- func (o *CreatePoliciesParams) SetTimeout(timeout time.Duration)
- func (o *CreatePoliciesParams) WithBody(body *models.CreatePoliciesRequest) *CreatePoliciesParams
- func (o *CreatePoliciesParams) WithContext(ctx context.Context) *CreatePoliciesParams
- func (o *CreatePoliciesParams) WithDefaults() *CreatePoliciesParams
- func (o *CreatePoliciesParams) WithHTTPClient(client *http.Client) *CreatePoliciesParams
- func (o *CreatePoliciesParams) WithTimeout(timeout time.Duration) *CreatePoliciesParams
- func (o *CreatePoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePoliciesReader
- type CreatePolicyOK
- func (o *CreatePolicyOK) Code() int
- func (o *CreatePolicyOK) Error() string
- func (o *CreatePolicyOK) GetPayload() *models.ActivityResponse
- func (o *CreatePolicyOK) IsClientError() bool
- func (o *CreatePolicyOK) IsCode(code int) bool
- func (o *CreatePolicyOK) IsRedirect() bool
- func (o *CreatePolicyOK) IsServerError() bool
- func (o *CreatePolicyOK) IsSuccess() bool
- func (o *CreatePolicyOK) String() string
- type CreatePolicyParams
- func (o *CreatePolicyParams) SetBody(body *models.CreatePolicyRequest)
- func (o *CreatePolicyParams) SetContext(ctx context.Context)
- func (o *CreatePolicyParams) SetDefaults()
- func (o *CreatePolicyParams) SetHTTPClient(client *http.Client)
- func (o *CreatePolicyParams) SetTimeout(timeout time.Duration)
- func (o *CreatePolicyParams) WithBody(body *models.CreatePolicyRequest) *CreatePolicyParams
- func (o *CreatePolicyParams) WithContext(ctx context.Context) *CreatePolicyParams
- func (o *CreatePolicyParams) WithDefaults() *CreatePolicyParams
- func (o *CreatePolicyParams) WithHTTPClient(client *http.Client) *CreatePolicyParams
- func (o *CreatePolicyParams) WithTimeout(timeout time.Duration) *CreatePolicyParams
- func (o *CreatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePolicyReader
- type CreateSmartContractInterfaceOK
- func (o *CreateSmartContractInterfaceOK) Code() int
- func (o *CreateSmartContractInterfaceOK) Error() string
- func (o *CreateSmartContractInterfaceOK) GetPayload() *models.ActivityResponse
- func (o *CreateSmartContractInterfaceOK) IsClientError() bool
- func (o *CreateSmartContractInterfaceOK) IsCode(code int) bool
- func (o *CreateSmartContractInterfaceOK) IsRedirect() bool
- func (o *CreateSmartContractInterfaceOK) IsServerError() bool
- func (o *CreateSmartContractInterfaceOK) IsSuccess() bool
- func (o *CreateSmartContractInterfaceOK) String() string
- type CreateSmartContractInterfaceParams
- func NewCreateSmartContractInterfaceParams() *CreateSmartContractInterfaceParams
- func NewCreateSmartContractInterfaceParamsWithContext(ctx context.Context) *CreateSmartContractInterfaceParams
- func NewCreateSmartContractInterfaceParamsWithHTTPClient(client *http.Client) *CreateSmartContractInterfaceParams
- func NewCreateSmartContractInterfaceParamsWithTimeout(timeout time.Duration) *CreateSmartContractInterfaceParams
- func (o *CreateSmartContractInterfaceParams) SetBody(body *models.CreateSmartContractInterfaceRequest)
- func (o *CreateSmartContractInterfaceParams) SetContext(ctx context.Context)
- func (o *CreateSmartContractInterfaceParams) SetDefaults()
- func (o *CreateSmartContractInterfaceParams) SetHTTPClient(client *http.Client)
- func (o *CreateSmartContractInterfaceParams) SetTimeout(timeout time.Duration)
- func (o *CreateSmartContractInterfaceParams) WithBody(body *models.CreateSmartContractInterfaceRequest) *CreateSmartContractInterfaceParams
- func (o *CreateSmartContractInterfaceParams) WithContext(ctx context.Context) *CreateSmartContractInterfaceParams
- func (o *CreateSmartContractInterfaceParams) WithDefaults() *CreateSmartContractInterfaceParams
- func (o *CreateSmartContractInterfaceParams) WithHTTPClient(client *http.Client) *CreateSmartContractInterfaceParams
- func (o *CreateSmartContractInterfaceParams) WithTimeout(timeout time.Duration) *CreateSmartContractInterfaceParams
- func (o *CreateSmartContractInterfaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSmartContractInterfaceReader
- type DeletePolicyOK
- func (o *DeletePolicyOK) Code() int
- func (o *DeletePolicyOK) Error() string
- func (o *DeletePolicyOK) GetPayload() *models.ActivityResponse
- func (o *DeletePolicyOK) IsClientError() bool
- func (o *DeletePolicyOK) IsCode(code int) bool
- func (o *DeletePolicyOK) IsRedirect() bool
- func (o *DeletePolicyOK) IsServerError() bool
- func (o *DeletePolicyOK) IsSuccess() bool
- func (o *DeletePolicyOK) String() string
- type DeletePolicyParams
- func (o *DeletePolicyParams) SetBody(body *models.DeletePolicyRequest)
- func (o *DeletePolicyParams) SetContext(ctx context.Context)
- func (o *DeletePolicyParams) SetDefaults()
- func (o *DeletePolicyParams) SetHTTPClient(client *http.Client)
- func (o *DeletePolicyParams) SetTimeout(timeout time.Duration)
- func (o *DeletePolicyParams) WithBody(body *models.DeletePolicyRequest) *DeletePolicyParams
- func (o *DeletePolicyParams) WithContext(ctx context.Context) *DeletePolicyParams
- func (o *DeletePolicyParams) WithDefaults() *DeletePolicyParams
- func (o *DeletePolicyParams) WithHTTPClient(client *http.Client) *DeletePolicyParams
- func (o *DeletePolicyParams) WithTimeout(timeout time.Duration) *DeletePolicyParams
- func (o *DeletePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePolicyReader
- type DeleteSmartContractInterfaceOK
- func (o *DeleteSmartContractInterfaceOK) Code() int
- func (o *DeleteSmartContractInterfaceOK) Error() string
- func (o *DeleteSmartContractInterfaceOK) GetPayload() *models.ActivityResponse
- func (o *DeleteSmartContractInterfaceOK) IsClientError() bool
- func (o *DeleteSmartContractInterfaceOK) IsCode(code int) bool
- func (o *DeleteSmartContractInterfaceOK) IsRedirect() bool
- func (o *DeleteSmartContractInterfaceOK) IsServerError() bool
- func (o *DeleteSmartContractInterfaceOK) IsSuccess() bool
- func (o *DeleteSmartContractInterfaceOK) String() string
- type DeleteSmartContractInterfaceParams
- func NewDeleteSmartContractInterfaceParams() *DeleteSmartContractInterfaceParams
- func NewDeleteSmartContractInterfaceParamsWithContext(ctx context.Context) *DeleteSmartContractInterfaceParams
- func NewDeleteSmartContractInterfaceParamsWithHTTPClient(client *http.Client) *DeleteSmartContractInterfaceParams
- func NewDeleteSmartContractInterfaceParamsWithTimeout(timeout time.Duration) *DeleteSmartContractInterfaceParams
- func (o *DeleteSmartContractInterfaceParams) SetBody(body *models.DeleteSmartContractInterfaceRequest)
- func (o *DeleteSmartContractInterfaceParams) SetContext(ctx context.Context)
- func (o *DeleteSmartContractInterfaceParams) SetDefaults()
- func (o *DeleteSmartContractInterfaceParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSmartContractInterfaceParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSmartContractInterfaceParams) WithBody(body *models.DeleteSmartContractInterfaceRequest) *DeleteSmartContractInterfaceParams
- func (o *DeleteSmartContractInterfaceParams) WithContext(ctx context.Context) *DeleteSmartContractInterfaceParams
- func (o *DeleteSmartContractInterfaceParams) WithDefaults() *DeleteSmartContractInterfaceParams
- func (o *DeleteSmartContractInterfaceParams) WithHTTPClient(client *http.Client) *DeleteSmartContractInterfaceParams
- func (o *DeleteSmartContractInterfaceParams) WithTimeout(timeout time.Duration) *DeleteSmartContractInterfaceParams
- func (o *DeleteSmartContractInterfaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSmartContractInterfaceReader
- type GetPoliciesOK
- func (o *GetPoliciesOK) Code() int
- func (o *GetPoliciesOK) Error() string
- func (o *GetPoliciesOK) GetPayload() *models.GetPoliciesResponse
- func (o *GetPoliciesOK) IsClientError() bool
- func (o *GetPoliciesOK) IsCode(code int) bool
- func (o *GetPoliciesOK) IsRedirect() bool
- func (o *GetPoliciesOK) IsServerError() bool
- func (o *GetPoliciesOK) IsSuccess() bool
- func (o *GetPoliciesOK) String() string
- type GetPoliciesParams
- func (o *GetPoliciesParams) SetBody(body *models.GetPoliciesRequest)
- func (o *GetPoliciesParams) SetContext(ctx context.Context)
- func (o *GetPoliciesParams) SetDefaults()
- func (o *GetPoliciesParams) SetHTTPClient(client *http.Client)
- func (o *GetPoliciesParams) SetTimeout(timeout time.Duration)
- func (o *GetPoliciesParams) WithBody(body *models.GetPoliciesRequest) *GetPoliciesParams
- func (o *GetPoliciesParams) WithContext(ctx context.Context) *GetPoliciesParams
- func (o *GetPoliciesParams) WithDefaults() *GetPoliciesParams
- func (o *GetPoliciesParams) WithHTTPClient(client *http.Client) *GetPoliciesParams
- func (o *GetPoliciesParams) WithTimeout(timeout time.Duration) *GetPoliciesParams
- func (o *GetPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPoliciesReader
- type GetPolicyOK
- func (o *GetPolicyOK) Code() int
- func (o *GetPolicyOK) Error() string
- func (o *GetPolicyOK) GetPayload() *models.GetPolicyResponse
- func (o *GetPolicyOK) IsClientError() bool
- func (o *GetPolicyOK) IsCode(code int) bool
- func (o *GetPolicyOK) IsRedirect() bool
- func (o *GetPolicyOK) IsServerError() bool
- func (o *GetPolicyOK) IsSuccess() bool
- func (o *GetPolicyOK) String() string
- type GetPolicyParams
- func (o *GetPolicyParams) SetBody(body *models.GetPolicyRequest)
- func (o *GetPolicyParams) SetContext(ctx context.Context)
- func (o *GetPolicyParams) SetDefaults()
- func (o *GetPolicyParams) SetHTTPClient(client *http.Client)
- func (o *GetPolicyParams) SetTimeout(timeout time.Duration)
- func (o *GetPolicyParams) WithBody(body *models.GetPolicyRequest) *GetPolicyParams
- func (o *GetPolicyParams) WithContext(ctx context.Context) *GetPolicyParams
- func (o *GetPolicyParams) WithDefaults() *GetPolicyParams
- func (o *GetPolicyParams) WithHTTPClient(client *http.Client) *GetPolicyParams
- func (o *GetPolicyParams) WithTimeout(timeout time.Duration) *GetPolicyParams
- func (o *GetPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPolicyReader
- type GetSmartContractInterfaceOK
- func (o *GetSmartContractInterfaceOK) Code() int
- func (o *GetSmartContractInterfaceOK) Error() string
- func (o *GetSmartContractInterfaceOK) GetPayload() *models.GetSmartContractInterfaceResponse
- func (o *GetSmartContractInterfaceOK) IsClientError() bool
- func (o *GetSmartContractInterfaceOK) IsCode(code int) bool
- func (o *GetSmartContractInterfaceOK) IsRedirect() bool
- func (o *GetSmartContractInterfaceOK) IsServerError() bool
- func (o *GetSmartContractInterfaceOK) IsSuccess() bool
- func (o *GetSmartContractInterfaceOK) String() string
- type GetSmartContractInterfaceParams
- func NewGetSmartContractInterfaceParams() *GetSmartContractInterfaceParams
- func NewGetSmartContractInterfaceParamsWithContext(ctx context.Context) *GetSmartContractInterfaceParams
- func NewGetSmartContractInterfaceParamsWithHTTPClient(client *http.Client) *GetSmartContractInterfaceParams
- func NewGetSmartContractInterfaceParamsWithTimeout(timeout time.Duration) *GetSmartContractInterfaceParams
- func (o *GetSmartContractInterfaceParams) SetBody(body *models.GetSmartContractInterfaceRequest)
- func (o *GetSmartContractInterfaceParams) SetContext(ctx context.Context)
- func (o *GetSmartContractInterfaceParams) SetDefaults()
- func (o *GetSmartContractInterfaceParams) SetHTTPClient(client *http.Client)
- func (o *GetSmartContractInterfaceParams) SetTimeout(timeout time.Duration)
- func (o *GetSmartContractInterfaceParams) WithBody(body *models.GetSmartContractInterfaceRequest) *GetSmartContractInterfaceParams
- func (o *GetSmartContractInterfaceParams) WithContext(ctx context.Context) *GetSmartContractInterfaceParams
- func (o *GetSmartContractInterfaceParams) WithDefaults() *GetSmartContractInterfaceParams
- func (o *GetSmartContractInterfaceParams) WithHTTPClient(client *http.Client) *GetSmartContractInterfaceParams
- func (o *GetSmartContractInterfaceParams) WithTimeout(timeout time.Duration) *GetSmartContractInterfaceParams
- func (o *GetSmartContractInterfaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSmartContractInterfaceReader
- type GetSmartContractInterfacesOK
- func (o *GetSmartContractInterfacesOK) Code() int
- func (o *GetSmartContractInterfacesOK) Error() string
- func (o *GetSmartContractInterfacesOK) GetPayload() *models.GetSmartContractInterfacesResponse
- func (o *GetSmartContractInterfacesOK) IsClientError() bool
- func (o *GetSmartContractInterfacesOK) IsCode(code int) bool
- func (o *GetSmartContractInterfacesOK) IsRedirect() bool
- func (o *GetSmartContractInterfacesOK) IsServerError() bool
- func (o *GetSmartContractInterfacesOK) IsSuccess() bool
- func (o *GetSmartContractInterfacesOK) String() string
- type GetSmartContractInterfacesParams
- func NewGetSmartContractInterfacesParams() *GetSmartContractInterfacesParams
- func NewGetSmartContractInterfacesParamsWithContext(ctx context.Context) *GetSmartContractInterfacesParams
- func NewGetSmartContractInterfacesParamsWithHTTPClient(client *http.Client) *GetSmartContractInterfacesParams
- func NewGetSmartContractInterfacesParamsWithTimeout(timeout time.Duration) *GetSmartContractInterfacesParams
- func (o *GetSmartContractInterfacesParams) SetBody(body *models.GetSmartContractInterfacesRequest)
- func (o *GetSmartContractInterfacesParams) SetContext(ctx context.Context)
- func (o *GetSmartContractInterfacesParams) SetDefaults()
- func (o *GetSmartContractInterfacesParams) SetHTTPClient(client *http.Client)
- func (o *GetSmartContractInterfacesParams) SetTimeout(timeout time.Duration)
- func (o *GetSmartContractInterfacesParams) WithBody(body *models.GetSmartContractInterfacesRequest) *GetSmartContractInterfacesParams
- func (o *GetSmartContractInterfacesParams) WithContext(ctx context.Context) *GetSmartContractInterfacesParams
- func (o *GetSmartContractInterfacesParams) WithDefaults() *GetSmartContractInterfacesParams
- func (o *GetSmartContractInterfacesParams) WithHTTPClient(client *http.Client) *GetSmartContractInterfacesParams
- func (o *GetSmartContractInterfacesParams) WithTimeout(timeout time.Duration) *GetSmartContractInterfacesParams
- func (o *GetSmartContractInterfacesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSmartContractInterfacesReader
- type UpdatePolicyOK
- func (o *UpdatePolicyOK) Code() int
- func (o *UpdatePolicyOK) Error() string
- func (o *UpdatePolicyOK) GetPayload() *models.ActivityResponse
- func (o *UpdatePolicyOK) IsClientError() bool
- func (o *UpdatePolicyOK) IsCode(code int) bool
- func (o *UpdatePolicyOK) IsRedirect() bool
- func (o *UpdatePolicyOK) IsServerError() bool
- func (o *UpdatePolicyOK) IsSuccess() bool
- func (o *UpdatePolicyOK) String() string
- type UpdatePolicyParams
- func (o *UpdatePolicyParams) SetBody(body *models.UpdatePolicyRequest)
- func (o *UpdatePolicyParams) SetContext(ctx context.Context)
- func (o *UpdatePolicyParams) SetDefaults()
- func (o *UpdatePolicyParams) SetHTTPClient(client *http.Client)
- func (o *UpdatePolicyParams) SetTimeout(timeout time.Duration)
- func (o *UpdatePolicyParams) WithBody(body *models.UpdatePolicyRequest) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithContext(ctx context.Context) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithDefaults() *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithHTTPClient(client *http.Client) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithTimeout(timeout time.Duration) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdatePolicyReader
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 ¶
func (o *CreatePoliciesParams) SetBody(body *models.CreatePoliciesRequest)
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 ¶
func (o *CreatePoliciesParams) WithBody(body *models.CreatePoliciesRequest) *CreatePoliciesParams
WithBody adds the body to the create policies params
func (*CreatePoliciesParams) WithContext ¶
func (o *CreatePoliciesParams) WithContext(ctx context.Context) *CreatePoliciesParams
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 ¶
func (o *CreatePolicyParams) WithBody(body *models.CreatePolicyRequest) *CreatePolicyParams
WithBody adds the body to the create policy params
func (*CreatePolicyParams) WithContext ¶
func (o *CreatePolicyParams) WithContext(ctx context.Context) *CreatePolicyParams
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
func (o *CreateSmartContractInterfaceOK) Code() int
Code gets the status code for the create smart contract interface o k response
func (*CreateSmartContractInterfaceOK) Error ¶ added in v0.7.0
func (o *CreateSmartContractInterfaceOK) Error() string
func (*CreateSmartContractInterfaceOK) GetPayload ¶ added in v0.7.0
func (o *CreateSmartContractInterfaceOK) GetPayload() *models.ActivityResponse
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
func (o *CreateSmartContractInterfaceOK) String() string
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
func (o *CreateSmartContractInterfaceParams) SetBody(body *models.CreateSmartContractInterfaceRequest)
SetBody adds the body to the create smart contract interface params
func (*CreateSmartContractInterfaceParams) SetContext ¶ added in v0.7.0
func (o *CreateSmartContractInterfaceParams) SetContext(ctx context.Context)
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
func (o *CreateSmartContractInterfaceParams) WithBody(body *models.CreateSmartContractInterfaceRequest) *CreateSmartContractInterfaceParams
WithBody adds the body to the create smart contract interface params
func (*CreateSmartContractInterfaceParams) WithContext ¶ added in v0.7.0
func (o *CreateSmartContractInterfaceParams) WithContext(ctx context.Context) *CreateSmartContractInterfaceParams
WithContext adds the context to the create smart contract interface params
func (*CreateSmartContractInterfaceParams) WithDefaults ¶ added in v0.7.0
func (o *CreateSmartContractInterfaceParams) WithDefaults() *CreateSmartContractInterfaceParams
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
func (o *CreateSmartContractInterfaceParams) WithHTTPClient(client *http.Client) *CreateSmartContractInterfaceParams
WithHTTPClient adds the HTTPClient to the create smart contract interface params
func (*CreateSmartContractInterfaceParams) WithTimeout ¶ added in v0.7.0
func (o *CreateSmartContractInterfaceParams) WithTimeout(timeout time.Duration) *CreateSmartContractInterfaceParams
WithTimeout adds the timeout to the create smart contract interface params
func (*CreateSmartContractInterfaceParams) WriteToRequest ¶ added in v0.7.0
func (o *CreateSmartContractInterfaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DeletePolicyParams) WithBody(body *models.DeletePolicyRequest) *DeletePolicyParams
WithBody adds the body to the delete policy params
func (*DeletePolicyParams) WithContext ¶
func (o *DeletePolicyParams) WithContext(ctx context.Context) *DeletePolicyParams
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
func (o *DeleteSmartContractInterfaceOK) Code() int
Code gets the status code for the delete smart contract interface o k response
func (*DeleteSmartContractInterfaceOK) Error ¶ added in v0.7.0
func (o *DeleteSmartContractInterfaceOK) Error() string
func (*DeleteSmartContractInterfaceOK) GetPayload ¶ added in v0.7.0
func (o *DeleteSmartContractInterfaceOK) GetPayload() *models.ActivityResponse
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
func (o *DeleteSmartContractInterfaceOK) String() string
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
func (o *DeleteSmartContractInterfaceParams) SetBody(body *models.DeleteSmartContractInterfaceRequest)
SetBody adds the body to the delete smart contract interface params
func (*DeleteSmartContractInterfaceParams) SetContext ¶ added in v0.7.0
func (o *DeleteSmartContractInterfaceParams) SetContext(ctx context.Context)
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
func (o *DeleteSmartContractInterfaceParams) WithBody(body *models.DeleteSmartContractInterfaceRequest) *DeleteSmartContractInterfaceParams
WithBody adds the body to the delete smart contract interface params
func (*DeleteSmartContractInterfaceParams) WithContext ¶ added in v0.7.0
func (o *DeleteSmartContractInterfaceParams) WithContext(ctx context.Context) *DeleteSmartContractInterfaceParams
WithContext adds the context to the delete smart contract interface params
func (*DeleteSmartContractInterfaceParams) WithDefaults ¶ added in v0.7.0
func (o *DeleteSmartContractInterfaceParams) WithDefaults() *DeleteSmartContractInterfaceParams
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
func (o *DeleteSmartContractInterfaceParams) WithHTTPClient(client *http.Client) *DeleteSmartContractInterfaceParams
WithHTTPClient adds the HTTPClient to the delete smart contract interface params
func (*DeleteSmartContractInterfaceParams) WithTimeout ¶ added in v0.7.0
func (o *DeleteSmartContractInterfaceParams) WithTimeout(timeout time.Duration) *DeleteSmartContractInterfaceParams
WithTimeout adds the timeout to the delete smart contract interface params
func (*DeleteSmartContractInterfaceParams) WriteToRequest ¶ added in v0.7.0
func (o *DeleteSmartContractInterfaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetPoliciesParams) WithBody(body *models.GetPoliciesRequest) *GetPoliciesParams
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 ¶
func (o *GetPolicyParams) WithBody(body *models.GetPolicyRequest) *GetPolicyParams
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 (o *GetSmartContractInterfaceOK) Error() string
func (*GetSmartContractInterfaceOK) GetPayload ¶ added in v0.7.0
func (o *GetSmartContractInterfaceOK) GetPayload() *models.GetSmartContractInterfaceResponse
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
func (o *GetSmartContractInterfaceParams) SetBody(body *models.GetSmartContractInterfaceRequest)
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
func (o *GetSmartContractInterfaceParams) WithBody(body *models.GetSmartContractInterfaceRequest) *GetSmartContractInterfaceParams
WithBody adds the body to the get smart contract interface params
func (*GetSmartContractInterfaceParams) WithContext ¶ added in v0.7.0
func (o *GetSmartContractInterfaceParams) WithContext(ctx context.Context) *GetSmartContractInterfaceParams
WithContext adds the context to the get smart contract interface params
func (*GetSmartContractInterfaceParams) WithDefaults ¶ added in v0.7.0
func (o *GetSmartContractInterfaceParams) WithDefaults() *GetSmartContractInterfaceParams
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
func (o *GetSmartContractInterfaceParams) WithHTTPClient(client *http.Client) *GetSmartContractInterfaceParams
WithHTTPClient adds the HTTPClient to the get smart contract interface params
func (*GetSmartContractInterfaceParams) WithTimeout ¶ added in v0.7.0
func (o *GetSmartContractInterfaceParams) WithTimeout(timeout time.Duration) *GetSmartContractInterfaceParams
WithTimeout adds the timeout to the get smart contract interface params
func (*GetSmartContractInterfaceParams) WriteToRequest ¶ added in v0.7.0
func (o *GetSmartContractInterfaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
func (o *GetSmartContractInterfacesOK) Code() int
Code gets the status code for the get smart contract interfaces o k response
func (*GetSmartContractInterfacesOK) Error ¶ added in v0.7.0
func (o *GetSmartContractInterfacesOK) Error() string
func (*GetSmartContractInterfacesOK) GetPayload ¶ added in v0.7.0
func (o *GetSmartContractInterfacesOK) GetPayload() *models.GetSmartContractInterfacesResponse
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
func (o *GetSmartContractInterfacesOK) String() string
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
func (o *GetSmartContractInterfacesParams) SetBody(body *models.GetSmartContractInterfacesRequest)
SetBody adds the body to the get smart contract interfaces params
func (*GetSmartContractInterfacesParams) SetContext ¶ added in v0.7.0
func (o *GetSmartContractInterfacesParams) SetContext(ctx context.Context)
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
func (o *GetSmartContractInterfacesParams) WithBody(body *models.GetSmartContractInterfacesRequest) *GetSmartContractInterfacesParams
WithBody adds the body to the get smart contract interfaces params
func (*GetSmartContractInterfacesParams) WithContext ¶ added in v0.7.0
func (o *GetSmartContractInterfacesParams) WithContext(ctx context.Context) *GetSmartContractInterfacesParams
WithContext adds the context to the get smart contract interfaces params
func (*GetSmartContractInterfacesParams) WithDefaults ¶ added in v0.7.0
func (o *GetSmartContractInterfacesParams) WithDefaults() *GetSmartContractInterfacesParams
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
func (o *GetSmartContractInterfacesParams) WithHTTPClient(client *http.Client) *GetSmartContractInterfacesParams
WithHTTPClient adds the HTTPClient to the get smart contract interfaces params
func (*GetSmartContractInterfacesParams) WithTimeout ¶ added in v0.7.0
func (o *GetSmartContractInterfacesParams) WithTimeout(timeout time.Duration) *GetSmartContractInterfacesParams
WithTimeout adds the timeout to the get smart contract interfaces params
func (*GetSmartContractInterfacesParams) WriteToRequest ¶ added in v0.7.0
func (o *GetSmartContractInterfacesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *UpdatePolicyParams) WithBody(body *models.UpdatePolicyRequest) *UpdatePolicyParams
WithBody adds the body to the update policy params
func (*UpdatePolicyParams) WithContext ¶
func (o *UpdatePolicyParams) WithContext(ctx context.Context) *UpdatePolicyParams
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.
Source Files
¶
- create_policies_parameters.go
- create_policies_responses.go
- create_policy_parameters.go
- create_policy_responses.go
- create_smart_contract_interface_parameters.go
- create_smart_contract_interface_responses.go
- delete_policy_parameters.go
- delete_policy_responses.go
- delete_smart_contract_interface_parameters.go
- delete_smart_contract_interface_responses.go
- get_policies_parameters.go
- get_policies_responses.go
- get_policy_parameters.go
- get_policy_responses.go
- get_smart_contract_interface_parameters.go
- get_smart_contract_interface_responses.go
- get_smart_contract_interfaces_parameters.go
- get_smart_contract_interfaces_responses.go
- policies_client.go
- update_policy_parameters.go
- update_policy_responses.go