Documentation ¶
Index ¶
- Constants
- type Client
- func (a *Client) RetrieveLatestPolicies(params *RetrieveLatestPoliciesParams) (*RetrieveLatestPoliciesOK, error)deprecated
- func (a *Client) RetrieveLatestPoliciesByNamespaceAndCountryPublic(params *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) (*RetrieveLatestPoliciesByNamespaceAndCountryPublicOK, error)deprecated
- func (a *Client) RetrieveLatestPoliciesByNamespaceAndCountryPublicShort(params *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) (*RetrieveLatestPoliciesByNamespaceAndCountryPublicOK, error)
- func (a *Client) RetrieveLatestPoliciesPublic(params *RetrieveLatestPoliciesPublicParams, ...) (*RetrieveLatestPoliciesPublicOK, *RetrieveLatestPoliciesPublicNotFound, error)deprecated
- func (a *Client) RetrieveLatestPoliciesPublicShort(params *RetrieveLatestPoliciesPublicParams, ...) (*RetrieveLatestPoliciesPublicOK, error)
- func (a *Client) RetrieveLatestPoliciesShort(params *RetrieveLatestPoliciesParams) (*RetrieveLatestPoliciesOK, error)
- func (a *Client) RetrievePolicies(params *RetrievePoliciesParams, authInfo runtime.ClientAuthInfoWriter) (*RetrievePoliciesOK, error)deprecated
- func (a *Client) RetrievePoliciesShort(params *RetrievePoliciesParams, authInfo runtime.ClientAuthInfoWriter) (*RetrievePoliciesOK, error)
- func (a *Client) SetDefaultPolicy1(params *SetDefaultPolicy1Params, authInfo runtime.ClientAuthInfoWriter) (*SetDefaultPolicy1OK, *SetDefaultPolicy1BadRequest, error)deprecated
- func (a *Client) SetDefaultPolicy1Short(params *SetDefaultPolicy1Params, authInfo runtime.ClientAuthInfoWriter) (*SetDefaultPolicy1OK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePolicyOK, *UpdatePolicyBadRequest, error)deprecated
- func (a *Client) UpdatePolicyShort(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePolicyOK, error)
- type ClientService
- type RetrieveLatestPoliciesByNamespaceAndCountryPublicOK
- type RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
- func NewRetrieveLatestPoliciesByNamespaceAndCountryPublicParams() *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
- func NewRetrieveLatestPoliciesByNamespaceAndCountryPublicParamsWithContext(ctx context.Context) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
- func NewRetrieveLatestPoliciesByNamespaceAndCountryPublicParamsWithHTTPClient(client *http.Client) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
- func NewRetrieveLatestPoliciesByNamespaceAndCountryPublicParamsWithTimeout(timeout time.Duration) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetAlwaysIncludeDefault(alwaysIncludeDefault *bool)
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetContext(ctx context.Context)
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetCountryCode(countryCode string)
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetDefaultOnEmpty(defaultOnEmpty *bool)
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetHTTPClient(client *http.Client)
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetNamespace(namespace string)
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetPolicyType(policyType *string)
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetTags(tags *string)
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetTimeout(timeout time.Duration)
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithAlwaysIncludeDefault(alwaysIncludeDefault *bool) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithContext(ctx context.Context) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithCountryCode(countryCode string) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithDefaultOnEmpty(defaultOnEmpty *bool) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithHTTPClient(client *http.Client) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithNamespace(namespace string) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithPolicyType(policyType *string) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithTags(tags *string) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithTimeout(timeout time.Duration) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
- func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RetrieveLatestPoliciesByNamespaceAndCountryPublicReader
- type RetrieveLatestPoliciesOK
- type RetrieveLatestPoliciesParams
- func NewRetrieveLatestPoliciesParams() *RetrieveLatestPoliciesParams
- func NewRetrieveLatestPoliciesParamsWithContext(ctx context.Context) *RetrieveLatestPoliciesParams
- func NewRetrieveLatestPoliciesParamsWithHTTPClient(client *http.Client) *RetrieveLatestPoliciesParams
- func NewRetrieveLatestPoliciesParamsWithTimeout(timeout time.Duration) *RetrieveLatestPoliciesParams
- func (o *RetrieveLatestPoliciesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *RetrieveLatestPoliciesParams) SetContext(ctx context.Context)
- func (o *RetrieveLatestPoliciesParams) SetCountryCode(countryCode string)
- func (o *RetrieveLatestPoliciesParams) SetDefaultOnEmpty(defaultOnEmpty *bool)
- func (o *RetrieveLatestPoliciesParams) SetHTTPClient(client *http.Client)
- func (o *RetrieveLatestPoliciesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *RetrieveLatestPoliciesParams) SetPolicyType(policyType *string)
- func (o *RetrieveLatestPoliciesParams) SetTags(tags *string)
- func (o *RetrieveLatestPoliciesParams) SetTimeout(timeout time.Duration)
- func (o *RetrieveLatestPoliciesParams) WithContext(ctx context.Context) *RetrieveLatestPoliciesParams
- func (o *RetrieveLatestPoliciesParams) WithCountryCode(countryCode string) *RetrieveLatestPoliciesParams
- func (o *RetrieveLatestPoliciesParams) WithDefaultOnEmpty(defaultOnEmpty *bool) *RetrieveLatestPoliciesParams
- func (o *RetrieveLatestPoliciesParams) WithHTTPClient(client *http.Client) *RetrieveLatestPoliciesParams
- func (o *RetrieveLatestPoliciesParams) WithPolicyType(policyType *string) *RetrieveLatestPoliciesParams
- func (o *RetrieveLatestPoliciesParams) WithTags(tags *string) *RetrieveLatestPoliciesParams
- func (o *RetrieveLatestPoliciesParams) WithTimeout(timeout time.Duration) *RetrieveLatestPoliciesParams
- func (o *RetrieveLatestPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RetrieveLatestPoliciesPublicNotFound
- type RetrieveLatestPoliciesPublicOK
- type RetrieveLatestPoliciesPublicParams
- func NewRetrieveLatestPoliciesPublicParams() *RetrieveLatestPoliciesPublicParams
- func NewRetrieveLatestPoliciesPublicParamsWithContext(ctx context.Context) *RetrieveLatestPoliciesPublicParams
- func NewRetrieveLatestPoliciesPublicParamsWithHTTPClient(client *http.Client) *RetrieveLatestPoliciesPublicParams
- func NewRetrieveLatestPoliciesPublicParamsWithTimeout(timeout time.Duration) *RetrieveLatestPoliciesPublicParams
- func (o *RetrieveLatestPoliciesPublicParams) SetAlwaysIncludeDefault(alwaysIncludeDefault *bool)
- func (o *RetrieveLatestPoliciesPublicParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *RetrieveLatestPoliciesPublicParams) SetContext(ctx context.Context)
- func (o *RetrieveLatestPoliciesPublicParams) SetDefaultOnEmpty(defaultOnEmpty *bool)
- func (o *RetrieveLatestPoliciesPublicParams) SetHTTPClient(client *http.Client)
- func (o *RetrieveLatestPoliciesPublicParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *RetrieveLatestPoliciesPublicParams) SetNamespace(namespace string)
- func (o *RetrieveLatestPoliciesPublicParams) SetPolicyType(policyType *string)
- func (o *RetrieveLatestPoliciesPublicParams) SetTags(tags *string)
- func (o *RetrieveLatestPoliciesPublicParams) SetTimeout(timeout time.Duration)
- func (o *RetrieveLatestPoliciesPublicParams) WithAlwaysIncludeDefault(alwaysIncludeDefault *bool) *RetrieveLatestPoliciesPublicParams
- func (o *RetrieveLatestPoliciesPublicParams) WithContext(ctx context.Context) *RetrieveLatestPoliciesPublicParams
- func (o *RetrieveLatestPoliciesPublicParams) WithDefaultOnEmpty(defaultOnEmpty *bool) *RetrieveLatestPoliciesPublicParams
- func (o *RetrieveLatestPoliciesPublicParams) WithHTTPClient(client *http.Client) *RetrieveLatestPoliciesPublicParams
- func (o *RetrieveLatestPoliciesPublicParams) WithNamespace(namespace string) *RetrieveLatestPoliciesPublicParams
- func (o *RetrieveLatestPoliciesPublicParams) WithPolicyType(policyType *string) *RetrieveLatestPoliciesPublicParams
- func (o *RetrieveLatestPoliciesPublicParams) WithTags(tags *string) *RetrieveLatestPoliciesPublicParams
- func (o *RetrieveLatestPoliciesPublicParams) WithTimeout(timeout time.Duration) *RetrieveLatestPoliciesPublicParams
- func (o *RetrieveLatestPoliciesPublicParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RetrieveLatestPoliciesPublicReader
- type RetrieveLatestPoliciesReader
- type RetrievePoliciesOK
- type RetrievePoliciesParams
- func NewRetrievePoliciesParams() *RetrievePoliciesParams
- func NewRetrievePoliciesParamsWithContext(ctx context.Context) *RetrievePoliciesParams
- func NewRetrievePoliciesParamsWithHTTPClient(client *http.Client) *RetrievePoliciesParams
- func NewRetrievePoliciesParamsWithTimeout(timeout time.Duration) *RetrievePoliciesParams
- func (o *RetrievePoliciesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *RetrievePoliciesParams) SetContext(ctx context.Context)
- func (o *RetrievePoliciesParams) SetCountryCode(countryCode string)
- func (o *RetrievePoliciesParams) SetHTTPClient(client *http.Client)
- func (o *RetrievePoliciesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *RetrievePoliciesParams) SetTimeout(timeout time.Duration)
- func (o *RetrievePoliciesParams) WithContext(ctx context.Context) *RetrievePoliciesParams
- func (o *RetrievePoliciesParams) WithCountryCode(countryCode string) *RetrievePoliciesParams
- func (o *RetrievePoliciesParams) WithHTTPClient(client *http.Client) *RetrievePoliciesParams
- func (o *RetrievePoliciesParams) WithTimeout(timeout time.Duration) *RetrievePoliciesParams
- func (o *RetrievePoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RetrievePoliciesReader
- type SetDefaultPolicy1BadRequest
- type SetDefaultPolicy1OK
- type SetDefaultPolicy1Params
- func NewSetDefaultPolicy1Params() *SetDefaultPolicy1Params
- func NewSetDefaultPolicy1ParamsWithContext(ctx context.Context) *SetDefaultPolicy1Params
- func NewSetDefaultPolicy1ParamsWithHTTPClient(client *http.Client) *SetDefaultPolicy1Params
- func NewSetDefaultPolicy1ParamsWithTimeout(timeout time.Duration) *SetDefaultPolicy1Params
- func (o *SetDefaultPolicy1Params) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *SetDefaultPolicy1Params) SetContext(ctx context.Context)
- func (o *SetDefaultPolicy1Params) SetHTTPClient(client *http.Client)
- func (o *SetDefaultPolicy1Params) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *SetDefaultPolicy1Params) SetPolicyID(policyID string)
- func (o *SetDefaultPolicy1Params) SetTimeout(timeout time.Duration)
- func (o *SetDefaultPolicy1Params) WithContext(ctx context.Context) *SetDefaultPolicy1Params
- func (o *SetDefaultPolicy1Params) WithHTTPClient(client *http.Client) *SetDefaultPolicy1Params
- func (o *SetDefaultPolicy1Params) WithPolicyID(policyID string) *SetDefaultPolicy1Params
- func (o *SetDefaultPolicy1Params) WithTimeout(timeout time.Duration) *SetDefaultPolicy1Params
- func (o *SetDefaultPolicy1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetDefaultPolicy1Reader
- type UpdatePolicyBadRequest
- type UpdatePolicyOK
- type UpdatePolicyParams
- func (o *UpdatePolicyParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *UpdatePolicyParams) SetBody(body *legalclientmodels.UpdatePolicyRequest)
- func (o *UpdatePolicyParams) SetContext(ctx context.Context)
- func (o *UpdatePolicyParams) SetHTTPClient(client *http.Client)
- func (o *UpdatePolicyParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *UpdatePolicyParams) SetPolicyID(policyID string)
- func (o *UpdatePolicyParams) SetTimeout(timeout time.Duration)
- func (o *UpdatePolicyParams) WithBody(body *legalclientmodels.UpdatePolicyRequest) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithContext(ctx context.Context) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithHTTPClient(client *http.Client) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithPolicyID(policyID string) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithTimeout(timeout time.Duration) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdatePolicyReader
Constants ¶
const ( RetrieveLatestPoliciesByNamespaceAndCountryPublicLEGALDOCUMENTTYPEConstant = "LEGAL_DOCUMENT_TYPE" RetrieveLatestPoliciesByNamespaceAndCountryPublicMARKETINGPREFERENCETYPEConstant = "MARKETING_PREFERENCE_TYPE" )
Get the enum in RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
const ( RetrieveLatestPoliciesLEGALDOCUMENTTYPEConstant = "LEGAL_DOCUMENT_TYPE" RetrieveLatestPoliciesMARKETINGPREFERENCETYPEConstant = "MARKETING_PREFERENCE_TYPE" )
Get the enum in RetrieveLatestPoliciesParams
const ( RetrieveLatestPoliciesPublicLEGALDOCUMENTTYPEConstant = "LEGAL_DOCUMENT_TYPE" RetrieveLatestPoliciesPublicMARKETINGPREFERENCETYPEConstant = "MARKETING_PREFERENCE_TYPE" )
Get the enum in RetrieveLatestPoliciesPublicParams
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) RetrieveLatestPolicies
deprecated
func (a *Client) RetrieveLatestPolicies(params *RetrieveLatestPoliciesParams) (*RetrieveLatestPoliciesOK, error)
Deprecated: Use RetrieveLatestPoliciesShort instead.
RetrieveLatestPolicies retrieves latest policies by country Retrieve all active latest policies based on a country.<br>Other detail info: <ul><li><i>Leave the policyType empty if you want to be responded with all policy type</i></li><li><i>Fill the tags if you want to filter the responded policy by tags</i></li><li><i>Fill the defaultOnEmpty with true if you want to be responded with default country-specific policy if your requested country is not exist</i></li></ul>
func (*Client) RetrieveLatestPoliciesByNamespaceAndCountryPublic
deprecated
func (a *Client) RetrieveLatestPoliciesByNamespaceAndCountryPublic(params *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) (*RetrieveLatestPoliciesByNamespaceAndCountryPublicOK, error)
Deprecated: Use RetrieveLatestPoliciesByNamespaceAndCountryPublicShort instead.
RetrieveLatestPoliciesByNamespaceAndCountryPublic retrieves latest policies by namespace and country Retrieve all active latest policies based on a namespace and country.<br>Other detail info: <ul><li><i>Leave the policyType empty if you want to be responded with all policy type</i></li><li><i>Fill the tags if you want to filter the responded policy by tags</i></li><li><i>Fill the defaultOnEmpty with true if you want to be responded with default country-specific policy if your requested country is not exist</i></li><li><i>Fill the alwaysIncludeDefault with true if you want to be responded with always include default policy. If there are duplicate policies (default policies and country specific policies with same base policy) it'll include policy with same country code, for example:<ul><li>Document 1 (default): Region US (default), UA</li><li>Document 2 (default): Region US (default)</li><li>Document 3 (default): Region US (default)</li><li>User: Region UA</li><li>Query: alwaysIncludeDefault: true</li><li>Response: Document 1 (UA), Document 2 (US), Document 3 (US)</li></ul>
func (*Client) RetrieveLatestPoliciesByNamespaceAndCountryPublicShort ¶ added in v0.8.0
func (a *Client) RetrieveLatestPoliciesByNamespaceAndCountryPublicShort(params *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) (*RetrieveLatestPoliciesByNamespaceAndCountryPublicOK, error)
RetrieveLatestPoliciesByNamespaceAndCountryPublicShort retrieves latest policies by namespace and country
Retrieve all active latest policies based on a namespace and country.<br>Other detail info: <ul><li><i>Leave the policyType empty if you want to be responded with all policy type</i></li><li><i>Fill the tags if you want to filter the responded policy by tags</i></li><li><i>Fill the defaultOnEmpty with true if you want to be responded with default country-specific policy if your requested country is not exist</i></li><li><i>Fill the alwaysIncludeDefault with true if you want to be responded with always include default policy. If there are duplicate policies (default policies and country specific policies with same base policy) it'll include policy with same country code, for example:<ul><li>Document 1 (default): Region US (default), UA</li><li>Document 2 (default): Region US (default)</li><li>Document 3 (default): Region US (default)</li><li>User: Region UA</li><li>Query: alwaysIncludeDefault: true</li><li>Response: Document 1 (UA), Document 2 (US), Document 3 (US)</li></ul>
func (*Client) RetrieveLatestPoliciesPublic
deprecated
func (a *Client) RetrieveLatestPoliciesPublic(params *RetrieveLatestPoliciesPublicParams, authInfo runtime.ClientAuthInfoWriter) (*RetrieveLatestPoliciesPublicOK, *RetrieveLatestPoliciesPublicNotFound, error)
Deprecated: Use RetrieveLatestPoliciesPublicShort instead.
RetrieveLatestPoliciesPublic retrieves latest policies by namespace and country Retrieve all active latest policies based on a namespace and country. The country will be read from user token.<br>Other detail info: <ul><li><i>Leave the policyType empty if you want to be responded with all policy type</i></li><li><i>Fill the tags if you want to filter the responded policy by tags</i></li><li><i>Fill the defaultOnEmpty with true if you want to be responded with default country-specific policy if your requested country is not exist</i></li><li><i>Fill the alwaysIncludeDefault with true if you want to be responded with always include default policy. If there are duplicate policies (default policies and country specific policies with same base policy) it'll include policy with same country code, for example:<ul><li>Document 1 (default): Region US (default), UA</li><li>Document 2 (default): Region US (default)</li><li>Document 3 (default): Region US (default)</li><li>User: Region UA</li><li>Query: alwaysIncludeDefault: true</li><li>Response: Document 1 (UA), Document 2 (US), Document 3 (US)</li></ul></i></li><li><i>Required permission: login user </i></li></ul>
func (*Client) RetrieveLatestPoliciesPublicShort ¶ added in v0.8.0
func (a *Client) RetrieveLatestPoliciesPublicShort(params *RetrieveLatestPoliciesPublicParams, authInfo runtime.ClientAuthInfoWriter) (*RetrieveLatestPoliciesPublicOK, error)
RetrieveLatestPoliciesPublicShort retrieves latest policies by namespace and country
Retrieve all active latest policies based on a namespace and country. The country will be read from user token.<br>Other detail info: <ul><li><i>Leave the policyType empty if you want to be responded with all policy type</i></li><li><i>Fill the tags if you want to filter the responded policy by tags</i></li><li><i>Fill the defaultOnEmpty with true if you want to be responded with default country-specific policy if your requested country is not exist</i></li><li><i>Fill the alwaysIncludeDefault with true if you want to be responded with always include default policy. If there are duplicate policies (default policies and country specific policies with same base policy) it'll include policy with same country code, for example:<ul><li>Document 1 (default): Region US (default), UA</li><li>Document 2 (default): Region US (default)</li><li>Document 3 (default): Region US (default)</li><li>User: Region UA</li><li>Query: alwaysIncludeDefault: true</li><li>Response: Document 1 (UA), Document 2 (US), Document 3 (US)</li></ul></i></li><li><i>Required permission: login user </i></li></ul>
func (*Client) RetrieveLatestPoliciesShort ¶ added in v0.8.0
func (a *Client) RetrieveLatestPoliciesShort(params *RetrieveLatestPoliciesParams) (*RetrieveLatestPoliciesOK, error)
RetrieveLatestPoliciesShort retrieves latest policies by country
Retrieve all active latest policies based on a country.<br>Other detail info: <ul><li><i>Leave the policyType empty if you want to be responded with all policy type</i></li><li><i>Fill the tags if you want to filter the responded policy by tags</i></li><li><i>Fill the defaultOnEmpty with true if you want to be responded with default country-specific policy if your requested country is not exist</i></li></ul>
func (*Client) RetrievePolicies
deprecated
func (a *Client) RetrievePolicies(params *RetrievePoliciesParams, authInfo runtime.ClientAuthInfoWriter) (*RetrievePoliciesOK, error)
Deprecated: Use RetrievePoliciesShort instead.
RetrievePolicies retrieves policies by country Retrieve all active policies based on a country.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:*:LEGAL", action=2 (READ)</li></ul>
func (*Client) RetrievePoliciesShort ¶ added in v0.8.0
func (a *Client) RetrievePoliciesShort(params *RetrievePoliciesParams, authInfo runtime.ClientAuthInfoWriter) (*RetrievePoliciesOK, error)
RetrievePoliciesShort retrieves policies by country
Retrieve all active policies based on a country.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:*:LEGAL", action=2 (READ)</li></ul>
func (*Client) SetDefaultPolicy1
deprecated
func (a *Client) SetDefaultPolicy1(params *SetDefaultPolicy1Params, authInfo runtime.ClientAuthInfoWriter) (*SetDefaultPolicy1OK, *SetDefaultPolicy1BadRequest, error)
Deprecated: Use SetDefaultPolicy1Short instead.
SetDefaultPolicy1 sets default policy Update a policy to be the default.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:*:LEGAL", action=4 (UPDATE)</li></ul>
func (*Client) SetDefaultPolicy1Short ¶ added in v0.8.0
func (a *Client) SetDefaultPolicy1Short(params *SetDefaultPolicy1Params, authInfo runtime.ClientAuthInfoWriter) (*SetDefaultPolicy1OK, error)
SetDefaultPolicy1Short sets default policy
Update a policy to be the default.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:*:LEGAL", action=4 (UPDATE)</li></ul>
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdatePolicy
deprecated
func (a *Client) UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePolicyOK, *UpdatePolicyBadRequest, error)
Deprecated: Use UpdatePolicyShort instead.
UpdatePolicy updates country specific policy Update country-specific policy.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:*:LEGAL", action=4 (UPDATE)</li></ul>
func (*Client) UpdatePolicyShort ¶ added in v0.8.0
func (a *Client) UpdatePolicyShort(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePolicyOK, error)
UpdatePolicyShort updates country specific policy
Update country-specific policy.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:*:LEGAL", action=4 (UPDATE)</li></ul>
type ClientService ¶
type ClientService interface { RetrieveLatestPolicies(params *RetrieveLatestPoliciesParams) (*RetrieveLatestPoliciesOK, error) RetrieveLatestPoliciesShort(params *RetrieveLatestPoliciesParams) (*RetrieveLatestPoliciesOK, error) RetrieveLatestPoliciesByNamespaceAndCountryPublic(params *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) (*RetrieveLatestPoliciesByNamespaceAndCountryPublicOK, error) RetrieveLatestPoliciesByNamespaceAndCountryPublicShort(params *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) (*RetrieveLatestPoliciesByNamespaceAndCountryPublicOK, error) RetrieveLatestPoliciesPublic(params *RetrieveLatestPoliciesPublicParams, authInfo runtime.ClientAuthInfoWriter) (*RetrieveLatestPoliciesPublicOK, *RetrieveLatestPoliciesPublicNotFound, error) RetrieveLatestPoliciesPublicShort(params *RetrieveLatestPoliciesPublicParams, authInfo runtime.ClientAuthInfoWriter) (*RetrieveLatestPoliciesPublicOK, error) RetrievePolicies(params *RetrievePoliciesParams, authInfo runtime.ClientAuthInfoWriter) (*RetrievePoliciesOK, error) RetrievePoliciesShort(params *RetrievePoliciesParams, authInfo runtime.ClientAuthInfoWriter) (*RetrievePoliciesOK, error) SetDefaultPolicy1(params *SetDefaultPolicy1Params, authInfo runtime.ClientAuthInfoWriter) (*SetDefaultPolicy1OK, *SetDefaultPolicy1BadRequest, error) SetDefaultPolicy1Short(params *SetDefaultPolicy1Params, authInfo runtime.ClientAuthInfoWriter) (*SetDefaultPolicy1OK, error) UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePolicyOK, *UpdatePolicyBadRequest, error) UpdatePolicyShort(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter) (*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 RetrieveLatestPoliciesByNamespaceAndCountryPublicOK ¶
type RetrieveLatestPoliciesByNamespaceAndCountryPublicOK struct {
Payload []*legalclientmodels.RetrievePolicyPublicResponse
}
RetrieveLatestPoliciesByNamespaceAndCountryPublicOK handles this case with default header values.
successful operation
func NewRetrieveLatestPoliciesByNamespaceAndCountryPublicOK ¶
func NewRetrieveLatestPoliciesByNamespaceAndCountryPublicOK() *RetrieveLatestPoliciesByNamespaceAndCountryPublicOK
NewRetrieveLatestPoliciesByNamespaceAndCountryPublicOK creates a RetrieveLatestPoliciesByNamespaceAndCountryPublicOK with default headers values
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicOK) Error ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicOK) Error() string
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicOK) GetPayload ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicOK) GetPayload() []*legalclientmodels.RetrievePolicyPublicResponse
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicOK) ToJSONString ¶ added in v0.25.0
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicOK) ToJSONString() string
type RetrieveLatestPoliciesByNamespaceAndCountryPublicParams ¶
type RetrieveLatestPoliciesByNamespaceAndCountryPublicParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*AlwaysIncludeDefault Always include default */ AlwaysIncludeDefault *bool /*CountryCode Country Code */ CountryCode string /*DefaultOnEmpty Default On Empty */ DefaultOnEmpty *bool /*Namespace Namespace */ Namespace string /*PolicyType Policy Type */ PolicyType *string /*Tags tags, separate multiple value by commas parameter */ Tags *string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RetrieveLatestPoliciesByNamespaceAndCountryPublicParams contains all the parameters to send to the API endpoint for the retrieve latest policies by namespace and country public operation typically these are written to a http.Request
func NewRetrieveLatestPoliciesByNamespaceAndCountryPublicParams ¶
func NewRetrieveLatestPoliciesByNamespaceAndCountryPublicParams() *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
NewRetrieveLatestPoliciesByNamespaceAndCountryPublicParams creates a new RetrieveLatestPoliciesByNamespaceAndCountryPublicParams object with the default values initialized.
func NewRetrieveLatestPoliciesByNamespaceAndCountryPublicParamsWithContext ¶
func NewRetrieveLatestPoliciesByNamespaceAndCountryPublicParamsWithContext(ctx context.Context) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
NewRetrieveLatestPoliciesByNamespaceAndCountryPublicParamsWithContext creates a new RetrieveLatestPoliciesByNamespaceAndCountryPublicParams object with the default values initialized, and the ability to set a context for a request
func NewRetrieveLatestPoliciesByNamespaceAndCountryPublicParamsWithHTTPClient ¶
func NewRetrieveLatestPoliciesByNamespaceAndCountryPublicParamsWithHTTPClient(client *http.Client) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
NewRetrieveLatestPoliciesByNamespaceAndCountryPublicParamsWithHTTPClient creates a new RetrieveLatestPoliciesByNamespaceAndCountryPublicParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRetrieveLatestPoliciesByNamespaceAndCountryPublicParamsWithTimeout ¶
func NewRetrieveLatestPoliciesByNamespaceAndCountryPublicParamsWithTimeout(timeout time.Duration) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
NewRetrieveLatestPoliciesByNamespaceAndCountryPublicParamsWithTimeout creates a new RetrieveLatestPoliciesByNamespaceAndCountryPublicParams object with the default values initialized, and the ability to set a timeout on a request
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetAlwaysIncludeDefault ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetAlwaysIncludeDefault(alwaysIncludeDefault *bool)
SetAlwaysIncludeDefault adds the alwaysIncludeDefault to the retrieve latest policies by namespace and country public params
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the retrieve latest policies by namespace and country public params
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetContext ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetContext(ctx context.Context)
SetContext adds the context to the retrieve latest policies by namespace and country public params
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetCountryCode ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetCountryCode(countryCode string)
SetCountryCode adds the countryCode to the retrieve latest policies by namespace and country public params
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetDefaultOnEmpty ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetDefaultOnEmpty(defaultOnEmpty *bool)
SetDefaultOnEmpty adds the defaultOnEmpty to the retrieve latest policies by namespace and country public params
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetHTTPClient ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the retrieve latest policies by namespace and country public params
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the retrieve latest policies by namespace and country public params
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetNamespace ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the retrieve latest policies by namespace and country public params
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetPolicyType ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetPolicyType(policyType *string)
SetPolicyType adds the policyType to the retrieve latest policies by namespace and country public params
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetTags ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetTags(tags *string)
SetTags adds the tags to the retrieve latest policies by namespace and country public params
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetTimeout ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the retrieve latest policies by namespace and country public params
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithAlwaysIncludeDefault ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithAlwaysIncludeDefault(alwaysIncludeDefault *bool) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
WithAlwaysIncludeDefault adds the alwaysIncludeDefault to the retrieve latest policies by namespace and country public params
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithContext ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithContext(ctx context.Context) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
WithContext adds the context to the retrieve latest policies by namespace and country public params
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithCountryCode ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithCountryCode(countryCode string) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
WithCountryCode adds the countryCode to the retrieve latest policies by namespace and country public params
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithDefaultOnEmpty ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithDefaultOnEmpty(defaultOnEmpty *bool) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
WithDefaultOnEmpty adds the defaultOnEmpty to the retrieve latest policies by namespace and country public params
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithHTTPClient ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithHTTPClient(client *http.Client) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
WithHTTPClient adds the HTTPClient to the retrieve latest policies by namespace and country public params
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithNamespace ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithNamespace(namespace string) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
WithNamespace adds the namespace to the retrieve latest policies by namespace and country public params
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithPolicyType ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithPolicyType(policyType *string) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
WithPolicyType adds the policyType to the retrieve latest policies by namespace and country public params
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithTags ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithTags(tags *string) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
WithTags adds the tags to the retrieve latest policies by namespace and country public params
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithTimeout ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WithTimeout(timeout time.Duration) *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams
WithTimeout adds the timeout to the retrieve latest policies by namespace and country public params
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WriteToRequest ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RetrieveLatestPoliciesByNamespaceAndCountryPublicReader ¶
type RetrieveLatestPoliciesByNamespaceAndCountryPublicReader struct {
// contains filtered or unexported fields
}
RetrieveLatestPoliciesByNamespaceAndCountryPublicReader is a Reader for the RetrieveLatestPoliciesByNamespaceAndCountryPublic structure.
func (*RetrieveLatestPoliciesByNamespaceAndCountryPublicReader) ReadResponse ¶
func (o *RetrieveLatestPoliciesByNamespaceAndCountryPublicReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RetrieveLatestPoliciesOK ¶
type RetrieveLatestPoliciesOK struct {
Payload []*legalclientmodels.RetrievePolicyPublicResponse
}
RetrieveLatestPoliciesOK handles this case with default header values.
successful operation
func NewRetrieveLatestPoliciesOK ¶
func NewRetrieveLatestPoliciesOK() *RetrieveLatestPoliciesOK
NewRetrieveLatestPoliciesOK creates a RetrieveLatestPoliciesOK with default headers values
func (*RetrieveLatestPoliciesOK) Error ¶
func (o *RetrieveLatestPoliciesOK) Error() string
func (*RetrieveLatestPoliciesOK) GetPayload ¶
func (o *RetrieveLatestPoliciesOK) GetPayload() []*legalclientmodels.RetrievePolicyPublicResponse
func (*RetrieveLatestPoliciesOK) ToJSONString ¶ added in v0.25.0
func (o *RetrieveLatestPoliciesOK) ToJSONString() string
type RetrieveLatestPoliciesParams ¶
type RetrieveLatestPoliciesParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*CountryCode Country Code */ CountryCode string /*DefaultOnEmpty Default On Empty */ DefaultOnEmpty *bool /*PolicyType Policy Type */ PolicyType *string /*Tags tags, separate multiple value by commas parameter */ Tags *string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RetrieveLatestPoliciesParams contains all the parameters to send to the API endpoint for the retrieve latest policies operation typically these are written to a http.Request
func NewRetrieveLatestPoliciesParams ¶
func NewRetrieveLatestPoliciesParams() *RetrieveLatestPoliciesParams
NewRetrieveLatestPoliciesParams creates a new RetrieveLatestPoliciesParams object with the default values initialized.
func NewRetrieveLatestPoliciesParamsWithContext ¶
func NewRetrieveLatestPoliciesParamsWithContext(ctx context.Context) *RetrieveLatestPoliciesParams
NewRetrieveLatestPoliciesParamsWithContext creates a new RetrieveLatestPoliciesParams object with the default values initialized, and the ability to set a context for a request
func NewRetrieveLatestPoliciesParamsWithHTTPClient ¶
func NewRetrieveLatestPoliciesParamsWithHTTPClient(client *http.Client) *RetrieveLatestPoliciesParams
NewRetrieveLatestPoliciesParamsWithHTTPClient creates a new RetrieveLatestPoliciesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRetrieveLatestPoliciesParamsWithTimeout ¶
func NewRetrieveLatestPoliciesParamsWithTimeout(timeout time.Duration) *RetrieveLatestPoliciesParams
NewRetrieveLatestPoliciesParamsWithTimeout creates a new RetrieveLatestPoliciesParams object with the default values initialized, and the ability to set a timeout on a request
func (*RetrieveLatestPoliciesParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *RetrieveLatestPoliciesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the retrieve latest policies params
func (*RetrieveLatestPoliciesParams) SetContext ¶
func (o *RetrieveLatestPoliciesParams) SetContext(ctx context.Context)
SetContext adds the context to the retrieve latest policies params
func (*RetrieveLatestPoliciesParams) SetCountryCode ¶
func (o *RetrieveLatestPoliciesParams) SetCountryCode(countryCode string)
SetCountryCode adds the countryCode to the retrieve latest policies params
func (*RetrieveLatestPoliciesParams) SetDefaultOnEmpty ¶
func (o *RetrieveLatestPoliciesParams) SetDefaultOnEmpty(defaultOnEmpty *bool)
SetDefaultOnEmpty adds the defaultOnEmpty to the retrieve latest policies params
func (*RetrieveLatestPoliciesParams) SetHTTPClient ¶
func (o *RetrieveLatestPoliciesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the retrieve latest policies params
func (*RetrieveLatestPoliciesParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *RetrieveLatestPoliciesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the retrieve latest policies params
func (*RetrieveLatestPoliciesParams) SetPolicyType ¶
func (o *RetrieveLatestPoliciesParams) SetPolicyType(policyType *string)
SetPolicyType adds the policyType to the retrieve latest policies params
func (*RetrieveLatestPoliciesParams) SetTags ¶
func (o *RetrieveLatestPoliciesParams) SetTags(tags *string)
SetTags adds the tags to the retrieve latest policies params
func (*RetrieveLatestPoliciesParams) SetTimeout ¶
func (o *RetrieveLatestPoliciesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the retrieve latest policies params
func (*RetrieveLatestPoliciesParams) WithContext ¶
func (o *RetrieveLatestPoliciesParams) WithContext(ctx context.Context) *RetrieveLatestPoliciesParams
WithContext adds the context to the retrieve latest policies params
func (*RetrieveLatestPoliciesParams) WithCountryCode ¶
func (o *RetrieveLatestPoliciesParams) WithCountryCode(countryCode string) *RetrieveLatestPoliciesParams
WithCountryCode adds the countryCode to the retrieve latest policies params
func (*RetrieveLatestPoliciesParams) WithDefaultOnEmpty ¶
func (o *RetrieveLatestPoliciesParams) WithDefaultOnEmpty(defaultOnEmpty *bool) *RetrieveLatestPoliciesParams
WithDefaultOnEmpty adds the defaultOnEmpty to the retrieve latest policies params
func (*RetrieveLatestPoliciesParams) WithHTTPClient ¶
func (o *RetrieveLatestPoliciesParams) WithHTTPClient(client *http.Client) *RetrieveLatestPoliciesParams
WithHTTPClient adds the HTTPClient to the retrieve latest policies params
func (*RetrieveLatestPoliciesParams) WithPolicyType ¶
func (o *RetrieveLatestPoliciesParams) WithPolicyType(policyType *string) *RetrieveLatestPoliciesParams
WithPolicyType adds the policyType to the retrieve latest policies params
func (*RetrieveLatestPoliciesParams) WithTags ¶
func (o *RetrieveLatestPoliciesParams) WithTags(tags *string) *RetrieveLatestPoliciesParams
WithTags adds the tags to the retrieve latest policies params
func (*RetrieveLatestPoliciesParams) WithTimeout ¶
func (o *RetrieveLatestPoliciesParams) WithTimeout(timeout time.Duration) *RetrieveLatestPoliciesParams
WithTimeout adds the timeout to the retrieve latest policies params
func (*RetrieveLatestPoliciesParams) WriteToRequest ¶
func (o *RetrieveLatestPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RetrieveLatestPoliciesPublicNotFound ¶
type RetrieveLatestPoliciesPublicNotFound struct {
Payload *legalclientmodels.ErrorEntity
}
RetrieveLatestPoliciesPublicNotFound handles this case with default header values.
<table><tr><td>NumericErrorCode</td><td>ErrorCode</td></tr><tr><td>40040</td><td>errors.net.accelbyte.platform.legal.user_has_no_country</td></tr></table>
func NewRetrieveLatestPoliciesPublicNotFound ¶
func NewRetrieveLatestPoliciesPublicNotFound() *RetrieveLatestPoliciesPublicNotFound
NewRetrieveLatestPoliciesPublicNotFound creates a RetrieveLatestPoliciesPublicNotFound with default headers values
func (*RetrieveLatestPoliciesPublicNotFound) Error ¶
func (o *RetrieveLatestPoliciesPublicNotFound) Error() string
func (*RetrieveLatestPoliciesPublicNotFound) GetPayload ¶
func (o *RetrieveLatestPoliciesPublicNotFound) GetPayload() *legalclientmodels.ErrorEntity
func (*RetrieveLatestPoliciesPublicNotFound) ToJSONString ¶ added in v0.25.0
func (o *RetrieveLatestPoliciesPublicNotFound) ToJSONString() string
type RetrieveLatestPoliciesPublicOK ¶
type RetrieveLatestPoliciesPublicOK struct {
Payload []*legalclientmodels.RetrievePolicyPublicResponse
}
RetrieveLatestPoliciesPublicOK handles this case with default header values.
successful operation
func NewRetrieveLatestPoliciesPublicOK ¶
func NewRetrieveLatestPoliciesPublicOK() *RetrieveLatestPoliciesPublicOK
NewRetrieveLatestPoliciesPublicOK creates a RetrieveLatestPoliciesPublicOK with default headers values
func (*RetrieveLatestPoliciesPublicOK) Error ¶
func (o *RetrieveLatestPoliciesPublicOK) Error() string
func (*RetrieveLatestPoliciesPublicOK) GetPayload ¶
func (o *RetrieveLatestPoliciesPublicOK) GetPayload() []*legalclientmodels.RetrievePolicyPublicResponse
func (*RetrieveLatestPoliciesPublicOK) ToJSONString ¶ added in v0.25.0
func (o *RetrieveLatestPoliciesPublicOK) ToJSONString() string
type RetrieveLatestPoliciesPublicParams ¶
type RetrieveLatestPoliciesPublicParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*AlwaysIncludeDefault Always include default */ AlwaysIncludeDefault *bool /*DefaultOnEmpty Default On Empty */ DefaultOnEmpty *bool /*Namespace Namespace */ Namespace string /*PolicyType Policy Type */ PolicyType *string /*Tags tags, separate multiple value by commas parameter */ Tags *string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RetrieveLatestPoliciesPublicParams contains all the parameters to send to the API endpoint for the retrieve latest policies public operation typically these are written to a http.Request
func NewRetrieveLatestPoliciesPublicParams ¶
func NewRetrieveLatestPoliciesPublicParams() *RetrieveLatestPoliciesPublicParams
NewRetrieveLatestPoliciesPublicParams creates a new RetrieveLatestPoliciesPublicParams object with the default values initialized.
func NewRetrieveLatestPoliciesPublicParamsWithContext ¶
func NewRetrieveLatestPoliciesPublicParamsWithContext(ctx context.Context) *RetrieveLatestPoliciesPublicParams
NewRetrieveLatestPoliciesPublicParamsWithContext creates a new RetrieveLatestPoliciesPublicParams object with the default values initialized, and the ability to set a context for a request
func NewRetrieveLatestPoliciesPublicParamsWithHTTPClient ¶
func NewRetrieveLatestPoliciesPublicParamsWithHTTPClient(client *http.Client) *RetrieveLatestPoliciesPublicParams
NewRetrieveLatestPoliciesPublicParamsWithHTTPClient creates a new RetrieveLatestPoliciesPublicParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRetrieveLatestPoliciesPublicParamsWithTimeout ¶
func NewRetrieveLatestPoliciesPublicParamsWithTimeout(timeout time.Duration) *RetrieveLatestPoliciesPublicParams
NewRetrieveLatestPoliciesPublicParamsWithTimeout creates a new RetrieveLatestPoliciesPublicParams object with the default values initialized, and the ability to set a timeout on a request
func (*RetrieveLatestPoliciesPublicParams) SetAlwaysIncludeDefault ¶
func (o *RetrieveLatestPoliciesPublicParams) SetAlwaysIncludeDefault(alwaysIncludeDefault *bool)
SetAlwaysIncludeDefault adds the alwaysIncludeDefault to the retrieve latest policies public params
func (*RetrieveLatestPoliciesPublicParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *RetrieveLatestPoliciesPublicParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the retrieve latest policies public params
func (*RetrieveLatestPoliciesPublicParams) SetContext ¶
func (o *RetrieveLatestPoliciesPublicParams) SetContext(ctx context.Context)
SetContext adds the context to the retrieve latest policies public params
func (*RetrieveLatestPoliciesPublicParams) SetDefaultOnEmpty ¶
func (o *RetrieveLatestPoliciesPublicParams) SetDefaultOnEmpty(defaultOnEmpty *bool)
SetDefaultOnEmpty adds the defaultOnEmpty to the retrieve latest policies public params
func (*RetrieveLatestPoliciesPublicParams) SetHTTPClient ¶
func (o *RetrieveLatestPoliciesPublicParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the retrieve latest policies public params
func (*RetrieveLatestPoliciesPublicParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *RetrieveLatestPoliciesPublicParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the retrieve latest policies public params
func (*RetrieveLatestPoliciesPublicParams) SetNamespace ¶
func (o *RetrieveLatestPoliciesPublicParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the retrieve latest policies public params
func (*RetrieveLatestPoliciesPublicParams) SetPolicyType ¶
func (o *RetrieveLatestPoliciesPublicParams) SetPolicyType(policyType *string)
SetPolicyType adds the policyType to the retrieve latest policies public params
func (*RetrieveLatestPoliciesPublicParams) SetTags ¶
func (o *RetrieveLatestPoliciesPublicParams) SetTags(tags *string)
SetTags adds the tags to the retrieve latest policies public params
func (*RetrieveLatestPoliciesPublicParams) SetTimeout ¶
func (o *RetrieveLatestPoliciesPublicParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the retrieve latest policies public params
func (*RetrieveLatestPoliciesPublicParams) WithAlwaysIncludeDefault ¶
func (o *RetrieveLatestPoliciesPublicParams) WithAlwaysIncludeDefault(alwaysIncludeDefault *bool) *RetrieveLatestPoliciesPublicParams
WithAlwaysIncludeDefault adds the alwaysIncludeDefault to the retrieve latest policies public params
func (*RetrieveLatestPoliciesPublicParams) WithContext ¶
func (o *RetrieveLatestPoliciesPublicParams) WithContext(ctx context.Context) *RetrieveLatestPoliciesPublicParams
WithContext adds the context to the retrieve latest policies public params
func (*RetrieveLatestPoliciesPublicParams) WithDefaultOnEmpty ¶
func (o *RetrieveLatestPoliciesPublicParams) WithDefaultOnEmpty(defaultOnEmpty *bool) *RetrieveLatestPoliciesPublicParams
WithDefaultOnEmpty adds the defaultOnEmpty to the retrieve latest policies public params
func (*RetrieveLatestPoliciesPublicParams) WithHTTPClient ¶
func (o *RetrieveLatestPoliciesPublicParams) WithHTTPClient(client *http.Client) *RetrieveLatestPoliciesPublicParams
WithHTTPClient adds the HTTPClient to the retrieve latest policies public params
func (*RetrieveLatestPoliciesPublicParams) WithNamespace ¶
func (o *RetrieveLatestPoliciesPublicParams) WithNamespace(namespace string) *RetrieveLatestPoliciesPublicParams
WithNamespace adds the namespace to the retrieve latest policies public params
func (*RetrieveLatestPoliciesPublicParams) WithPolicyType ¶
func (o *RetrieveLatestPoliciesPublicParams) WithPolicyType(policyType *string) *RetrieveLatestPoliciesPublicParams
WithPolicyType adds the policyType to the retrieve latest policies public params
func (*RetrieveLatestPoliciesPublicParams) WithTags ¶
func (o *RetrieveLatestPoliciesPublicParams) WithTags(tags *string) *RetrieveLatestPoliciesPublicParams
WithTags adds the tags to the retrieve latest policies public params
func (*RetrieveLatestPoliciesPublicParams) WithTimeout ¶
func (o *RetrieveLatestPoliciesPublicParams) WithTimeout(timeout time.Duration) *RetrieveLatestPoliciesPublicParams
WithTimeout adds the timeout to the retrieve latest policies public params
func (*RetrieveLatestPoliciesPublicParams) WriteToRequest ¶
func (o *RetrieveLatestPoliciesPublicParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RetrieveLatestPoliciesPublicReader ¶
type RetrieveLatestPoliciesPublicReader struct {
// contains filtered or unexported fields
}
RetrieveLatestPoliciesPublicReader is a Reader for the RetrieveLatestPoliciesPublic structure.
func (*RetrieveLatestPoliciesPublicReader) ReadResponse ¶
func (o *RetrieveLatestPoliciesPublicReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RetrieveLatestPoliciesReader ¶
type RetrieveLatestPoliciesReader struct {
// contains filtered or unexported fields
}
RetrieveLatestPoliciesReader is a Reader for the RetrieveLatestPolicies structure.
func (*RetrieveLatestPoliciesReader) ReadResponse ¶
func (o *RetrieveLatestPoliciesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RetrievePoliciesOK ¶
type RetrievePoliciesOK struct {
Payload []*legalclientmodels.RetrievePolicyResponse
}
RetrievePoliciesOK handles this case with default header values.
successful operation
func NewRetrievePoliciesOK ¶
func NewRetrievePoliciesOK() *RetrievePoliciesOK
NewRetrievePoliciesOK creates a RetrievePoliciesOK with default headers values
func (*RetrievePoliciesOK) Error ¶
func (o *RetrievePoliciesOK) Error() string
func (*RetrievePoliciesOK) GetPayload ¶
func (o *RetrievePoliciesOK) GetPayload() []*legalclientmodels.RetrievePolicyResponse
func (*RetrievePoliciesOK) ToJSONString ¶ added in v0.25.0
func (o *RetrievePoliciesOK) ToJSONString() string
type RetrievePoliciesParams ¶
type RetrievePoliciesParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*CountryCode Country Code */ CountryCode string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RetrievePoliciesParams contains all the parameters to send to the API endpoint for the retrieve policies operation typically these are written to a http.Request
func NewRetrievePoliciesParams ¶
func NewRetrievePoliciesParams() *RetrievePoliciesParams
NewRetrievePoliciesParams creates a new RetrievePoliciesParams object with the default values initialized.
func NewRetrievePoliciesParamsWithContext ¶
func NewRetrievePoliciesParamsWithContext(ctx context.Context) *RetrievePoliciesParams
NewRetrievePoliciesParamsWithContext creates a new RetrievePoliciesParams object with the default values initialized, and the ability to set a context for a request
func NewRetrievePoliciesParamsWithHTTPClient ¶
func NewRetrievePoliciesParamsWithHTTPClient(client *http.Client) *RetrievePoliciesParams
NewRetrievePoliciesParamsWithHTTPClient creates a new RetrievePoliciesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRetrievePoliciesParamsWithTimeout ¶
func NewRetrievePoliciesParamsWithTimeout(timeout time.Duration) *RetrievePoliciesParams
NewRetrievePoliciesParamsWithTimeout creates a new RetrievePoliciesParams object with the default values initialized, and the ability to set a timeout on a request
func (*RetrievePoliciesParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *RetrievePoliciesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the retrieve policies params
func (*RetrievePoliciesParams) SetContext ¶
func (o *RetrievePoliciesParams) SetContext(ctx context.Context)
SetContext adds the context to the retrieve policies params
func (*RetrievePoliciesParams) SetCountryCode ¶
func (o *RetrievePoliciesParams) SetCountryCode(countryCode string)
SetCountryCode adds the countryCode to the retrieve policies params
func (*RetrievePoliciesParams) SetHTTPClient ¶
func (o *RetrievePoliciesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the retrieve policies params
func (*RetrievePoliciesParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *RetrievePoliciesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the retrieve policies params
func (*RetrievePoliciesParams) SetTimeout ¶
func (o *RetrievePoliciesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the retrieve policies params
func (*RetrievePoliciesParams) WithContext ¶
func (o *RetrievePoliciesParams) WithContext(ctx context.Context) *RetrievePoliciesParams
WithContext adds the context to the retrieve policies params
func (*RetrievePoliciesParams) WithCountryCode ¶
func (o *RetrievePoliciesParams) WithCountryCode(countryCode string) *RetrievePoliciesParams
WithCountryCode adds the countryCode to the retrieve policies params
func (*RetrievePoliciesParams) WithHTTPClient ¶
func (o *RetrievePoliciesParams) WithHTTPClient(client *http.Client) *RetrievePoliciesParams
WithHTTPClient adds the HTTPClient to the retrieve policies params
func (*RetrievePoliciesParams) WithTimeout ¶
func (o *RetrievePoliciesParams) WithTimeout(timeout time.Duration) *RetrievePoliciesParams
WithTimeout adds the timeout to the retrieve policies params
func (*RetrievePoliciesParams) WriteToRequest ¶
func (o *RetrievePoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RetrievePoliciesReader ¶
type RetrievePoliciesReader struct {
// contains filtered or unexported fields
}
RetrievePoliciesReader is a Reader for the RetrievePolicies structure.
func (*RetrievePoliciesReader) ReadResponse ¶
func (o *RetrievePoliciesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SetDefaultPolicy1BadRequest ¶ added in v0.34.0
type SetDefaultPolicy1BadRequest struct {
Payload *legalclientmodels.ErrorEntity
}
SetDefaultPolicy1BadRequest handles this case with default header values.
<table><tr><td>NumericErrorCode</td><td>ErrorCode</td></tr><tr><td>40033</td><td>errors.net.accelbyte.platform.legal.invalid_policy_id</td></tr></table>
func NewSetDefaultPolicy1BadRequest ¶ added in v0.34.0
func NewSetDefaultPolicy1BadRequest() *SetDefaultPolicy1BadRequest
NewSetDefaultPolicy1BadRequest creates a SetDefaultPolicy1BadRequest with default headers values
func (*SetDefaultPolicy1BadRequest) Error ¶ added in v0.34.0
func (o *SetDefaultPolicy1BadRequest) Error() string
func (*SetDefaultPolicy1BadRequest) GetPayload ¶ added in v0.34.0
func (o *SetDefaultPolicy1BadRequest) GetPayload() *legalclientmodels.ErrorEntity
func (*SetDefaultPolicy1BadRequest) ToJSONString ¶ added in v0.34.0
func (o *SetDefaultPolicy1BadRequest) ToJSONString() string
type SetDefaultPolicy1OK ¶
type SetDefaultPolicy1OK struct { }
SetDefaultPolicy1OK handles this case with default header values.
operation successful
func NewSetDefaultPolicy1OK ¶
func NewSetDefaultPolicy1OK() *SetDefaultPolicy1OK
NewSetDefaultPolicy1OK creates a SetDefaultPolicy1OK with default headers values
func (*SetDefaultPolicy1OK) Error ¶
func (o *SetDefaultPolicy1OK) Error() string
type SetDefaultPolicy1Params ¶
type SetDefaultPolicy1Params struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*PolicyID Policy Id */ PolicyID string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SetDefaultPolicy1Params contains all the parameters to send to the API endpoint for the set default policy 1 operation typically these are written to a http.Request
func NewSetDefaultPolicy1Params ¶
func NewSetDefaultPolicy1Params() *SetDefaultPolicy1Params
NewSetDefaultPolicy1Params creates a new SetDefaultPolicy1Params object with the default values initialized.
func NewSetDefaultPolicy1ParamsWithContext ¶
func NewSetDefaultPolicy1ParamsWithContext(ctx context.Context) *SetDefaultPolicy1Params
NewSetDefaultPolicy1ParamsWithContext creates a new SetDefaultPolicy1Params object with the default values initialized, and the ability to set a context for a request
func NewSetDefaultPolicy1ParamsWithHTTPClient ¶
func NewSetDefaultPolicy1ParamsWithHTTPClient(client *http.Client) *SetDefaultPolicy1Params
NewSetDefaultPolicy1ParamsWithHTTPClient creates a new SetDefaultPolicy1Params object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewSetDefaultPolicy1ParamsWithTimeout ¶
func NewSetDefaultPolicy1ParamsWithTimeout(timeout time.Duration) *SetDefaultPolicy1Params
NewSetDefaultPolicy1ParamsWithTimeout creates a new SetDefaultPolicy1Params object with the default values initialized, and the ability to set a timeout on a request
func (*SetDefaultPolicy1Params) SetAuthInfoWriter ¶ added in v0.17.0
func (o *SetDefaultPolicy1Params) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the set default policy 1 params
func (*SetDefaultPolicy1Params) SetContext ¶
func (o *SetDefaultPolicy1Params) SetContext(ctx context.Context)
SetContext adds the context to the set default policy 1 params
func (*SetDefaultPolicy1Params) SetHTTPClient ¶
func (o *SetDefaultPolicy1Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the set default policy 1 params
func (*SetDefaultPolicy1Params) SetHTTPClientTransport ¶ added in v0.19.0
func (o *SetDefaultPolicy1Params) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the set default policy 1 params
func (*SetDefaultPolicy1Params) SetPolicyID ¶
func (o *SetDefaultPolicy1Params) SetPolicyID(policyID string)
SetPolicyID adds the policyId to the set default policy 1 params
func (*SetDefaultPolicy1Params) SetTimeout ¶
func (o *SetDefaultPolicy1Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the set default policy 1 params
func (*SetDefaultPolicy1Params) WithContext ¶
func (o *SetDefaultPolicy1Params) WithContext(ctx context.Context) *SetDefaultPolicy1Params
WithContext adds the context to the set default policy 1 params
func (*SetDefaultPolicy1Params) WithHTTPClient ¶
func (o *SetDefaultPolicy1Params) WithHTTPClient(client *http.Client) *SetDefaultPolicy1Params
WithHTTPClient adds the HTTPClient to the set default policy 1 params
func (*SetDefaultPolicy1Params) WithPolicyID ¶
func (o *SetDefaultPolicy1Params) WithPolicyID(policyID string) *SetDefaultPolicy1Params
WithPolicyID adds the policyID to the set default policy 1 params
func (*SetDefaultPolicy1Params) WithTimeout ¶
func (o *SetDefaultPolicy1Params) WithTimeout(timeout time.Duration) *SetDefaultPolicy1Params
WithTimeout adds the timeout to the set default policy 1 params
func (*SetDefaultPolicy1Params) WriteToRequest ¶
func (o *SetDefaultPolicy1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SetDefaultPolicy1Reader ¶
type SetDefaultPolicy1Reader struct {
// contains filtered or unexported fields
}
SetDefaultPolicy1Reader is a Reader for the SetDefaultPolicy1 structure.
func (*SetDefaultPolicy1Reader) ReadResponse ¶
func (o *SetDefaultPolicy1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdatePolicyBadRequest ¶ added in v0.34.0
type UpdatePolicyBadRequest struct {
Payload *legalclientmodels.ErrorEntity
}
UpdatePolicyBadRequest handles this case with default header values.
<table><tr><td>NumericErrorCode</td><td>ErrorCode</td></tr><tr><td>40033</td><td>errors.net.accelbyte.platform.legal.invalid_policy_id</td></tr></table>
func NewUpdatePolicyBadRequest ¶ added in v0.34.0
func NewUpdatePolicyBadRequest() *UpdatePolicyBadRequest
NewUpdatePolicyBadRequest creates a UpdatePolicyBadRequest with default headers values
func (*UpdatePolicyBadRequest) Error ¶ added in v0.34.0
func (o *UpdatePolicyBadRequest) Error() string
func (*UpdatePolicyBadRequest) GetPayload ¶ added in v0.34.0
func (o *UpdatePolicyBadRequest) GetPayload() *legalclientmodels.ErrorEntity
func (*UpdatePolicyBadRequest) ToJSONString ¶ added in v0.34.0
func (o *UpdatePolicyBadRequest) ToJSONString() string
type UpdatePolicyOK ¶
type UpdatePolicyOK struct { }
UpdatePolicyOK handles this case with default header values.
operation successful
func NewUpdatePolicyOK ¶
func NewUpdatePolicyOK() *UpdatePolicyOK
NewUpdatePolicyOK creates a UpdatePolicyOK with default headers values
func (*UpdatePolicyOK) Error ¶
func (o *UpdatePolicyOK) Error() string
type UpdatePolicyParams ¶
type UpdatePolicyParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Body*/ Body *legalclientmodels.UpdatePolicyRequest /*PolicyID Policy Id */ PolicyID string AuthInfoWriter runtime.ClientAuthInfoWriter 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 values initialized.
func NewUpdatePolicyParamsWithContext ¶
func NewUpdatePolicyParamsWithContext(ctx context.Context) *UpdatePolicyParams
NewUpdatePolicyParamsWithContext creates a new UpdatePolicyParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request
func (*UpdatePolicyParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *UpdatePolicyParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the update policy params
func (*UpdatePolicyParams) SetBody ¶
func (o *UpdatePolicyParams) SetBody(body *legalclientmodels.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) SetHTTPClient ¶
func (o *UpdatePolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update policy params
func (*UpdatePolicyParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *UpdatePolicyParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the update policy params
func (*UpdatePolicyParams) SetPolicyID ¶
func (o *UpdatePolicyParams) SetPolicyID(policyID string)
SetPolicyID adds the policyId 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 *legalclientmodels.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) WithHTTPClient ¶
func (o *UpdatePolicyParams) WithHTTPClient(client *http.Client) *UpdatePolicyParams
WithHTTPClient adds the HTTPClient to the update policy params
func (*UpdatePolicyParams) WithPolicyID ¶
func (o *UpdatePolicyParams) WithPolicyID(policyID string) *UpdatePolicyParams
WithPolicyID adds the policyID 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 ¶
- policies_client.go
- retrieve_latest_policies_by_namespace_and_country_public_parameters.go
- retrieve_latest_policies_by_namespace_and_country_public_responses.go
- retrieve_latest_policies_parameters.go
- retrieve_latest_policies_public_parameters.go
- retrieve_latest_policies_public_responses.go
- retrieve_latest_policies_responses.go
- retrieve_policies_parameters.go
- retrieve_policies_responses.go
- set_default_policy1_parameters.go
- set_default_policy1_responses.go
- update_policy_parameters.go
- update_policy_responses.go