Documentation ¶
Index ¶
- type Client
- func (a *Client) CreatePolicyVersion(params *CreatePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePolicyVersionCreated, *CreatePolicyVersionBadRequest, error)deprecated
- func (a *Client) CreatePolicyVersionShort(params *CreatePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePolicyVersionCreated, error)
- func (a *Client) PublishPolicyVersion(params *PublishPolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*PublishPolicyVersionOK, *PublishPolicyVersionBadRequest, ...)deprecated
- func (a *Client) PublishPolicyVersionShort(params *PublishPolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*PublishPolicyVersionOK, error)
- func (a *Client) RetrieveSinglePolicyVersion(params *RetrieveSinglePolicyVersionParams, ...) (*RetrieveSinglePolicyVersionOK, *RetrieveSinglePolicyVersionNotFound, error)deprecated
- func (a *Client) RetrieveSinglePolicyVersionShort(params *RetrieveSinglePolicyVersionParams, ...) (*RetrieveSinglePolicyVersionOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdatePolicyVersion(params *UpdatePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePolicyVersionOK, *UpdatePolicyVersionBadRequest, ...)deprecated
- func (a *Client) UpdatePolicyVersionShort(params *UpdatePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePolicyVersionOK, error)
- type ClientService
- type CreatePolicyVersionBadRequest
- type CreatePolicyVersionCreated
- type CreatePolicyVersionParams
- func NewCreatePolicyVersionParams() *CreatePolicyVersionParams
- func NewCreatePolicyVersionParamsWithContext(ctx context.Context) *CreatePolicyVersionParams
- func NewCreatePolicyVersionParamsWithHTTPClient(client *http.Client) *CreatePolicyVersionParams
- func NewCreatePolicyVersionParamsWithTimeout(timeout time.Duration) *CreatePolicyVersionParams
- func (o *CreatePolicyVersionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *CreatePolicyVersionParams) SetBody(body *legalclientmodels.CreatePolicyVersionRequest)
- func (o *CreatePolicyVersionParams) SetContext(ctx context.Context)
- func (o *CreatePolicyVersionParams) SetHTTPClient(client *http.Client)
- func (o *CreatePolicyVersionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *CreatePolicyVersionParams) SetPolicyID(policyID string)
- func (o *CreatePolicyVersionParams) SetTimeout(timeout time.Duration)
- func (o *CreatePolicyVersionParams) WithBody(body *legalclientmodels.CreatePolicyVersionRequest) *CreatePolicyVersionParams
- func (o *CreatePolicyVersionParams) WithContext(ctx context.Context) *CreatePolicyVersionParams
- func (o *CreatePolicyVersionParams) WithHTTPClient(client *http.Client) *CreatePolicyVersionParams
- func (o *CreatePolicyVersionParams) WithPolicyID(policyID string) *CreatePolicyVersionParams
- func (o *CreatePolicyVersionParams) WithTimeout(timeout time.Duration) *CreatePolicyVersionParams
- func (o *CreatePolicyVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePolicyVersionReader
- type PublishPolicyVersionBadRequest
- type PublishPolicyVersionConflict
- type PublishPolicyVersionOK
- type PublishPolicyVersionParams
- func NewPublishPolicyVersionParams() *PublishPolicyVersionParams
- func NewPublishPolicyVersionParamsWithContext(ctx context.Context) *PublishPolicyVersionParams
- func NewPublishPolicyVersionParamsWithHTTPClient(client *http.Client) *PublishPolicyVersionParams
- func NewPublishPolicyVersionParamsWithTimeout(timeout time.Duration) *PublishPolicyVersionParams
- func (o *PublishPolicyVersionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *PublishPolicyVersionParams) SetContext(ctx context.Context)
- func (o *PublishPolicyVersionParams) SetHTTPClient(client *http.Client)
- func (o *PublishPolicyVersionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *PublishPolicyVersionParams) SetPolicyVersionID(policyVersionID string)
- func (o *PublishPolicyVersionParams) SetShouldNotify(shouldNotify *bool)
- func (o *PublishPolicyVersionParams) SetTimeout(timeout time.Duration)
- func (o *PublishPolicyVersionParams) WithContext(ctx context.Context) *PublishPolicyVersionParams
- func (o *PublishPolicyVersionParams) WithHTTPClient(client *http.Client) *PublishPolicyVersionParams
- func (o *PublishPolicyVersionParams) WithPolicyVersionID(policyVersionID string) *PublishPolicyVersionParams
- func (o *PublishPolicyVersionParams) WithShouldNotify(shouldNotify *bool) *PublishPolicyVersionParams
- func (o *PublishPolicyVersionParams) WithTimeout(timeout time.Duration) *PublishPolicyVersionParams
- func (o *PublishPolicyVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PublishPolicyVersionReader
- type RetrieveSinglePolicyVersionNotFound
- type RetrieveSinglePolicyVersionOK
- type RetrieveSinglePolicyVersionParams
- func NewRetrieveSinglePolicyVersionParams() *RetrieveSinglePolicyVersionParams
- func NewRetrieveSinglePolicyVersionParamsWithContext(ctx context.Context) *RetrieveSinglePolicyVersionParams
- func NewRetrieveSinglePolicyVersionParamsWithHTTPClient(client *http.Client) *RetrieveSinglePolicyVersionParams
- func NewRetrieveSinglePolicyVersionParamsWithTimeout(timeout time.Duration) *RetrieveSinglePolicyVersionParams
- func (o *RetrieveSinglePolicyVersionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *RetrieveSinglePolicyVersionParams) SetContext(ctx context.Context)
- func (o *RetrieveSinglePolicyVersionParams) SetHTTPClient(client *http.Client)
- func (o *RetrieveSinglePolicyVersionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *RetrieveSinglePolicyVersionParams) SetPolicyID(policyID string)
- func (o *RetrieveSinglePolicyVersionParams) SetTimeout(timeout time.Duration)
- func (o *RetrieveSinglePolicyVersionParams) SetVersionID(versionID *string)
- func (o *RetrieveSinglePolicyVersionParams) WithContext(ctx context.Context) *RetrieveSinglePolicyVersionParams
- func (o *RetrieveSinglePolicyVersionParams) WithHTTPClient(client *http.Client) *RetrieveSinglePolicyVersionParams
- func (o *RetrieveSinglePolicyVersionParams) WithPolicyID(policyID string) *RetrieveSinglePolicyVersionParams
- func (o *RetrieveSinglePolicyVersionParams) WithTimeout(timeout time.Duration) *RetrieveSinglePolicyVersionParams
- func (o *RetrieveSinglePolicyVersionParams) WithVersionID(versionID *string) *RetrieveSinglePolicyVersionParams
- func (o *RetrieveSinglePolicyVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RetrieveSinglePolicyVersionReader
- type UpdatePolicyVersionBadRequest
- type UpdatePolicyVersionConflict
- type UpdatePolicyVersionOK
- type UpdatePolicyVersionParams
- func NewUpdatePolicyVersionParams() *UpdatePolicyVersionParams
- func NewUpdatePolicyVersionParamsWithContext(ctx context.Context) *UpdatePolicyVersionParams
- func NewUpdatePolicyVersionParamsWithHTTPClient(client *http.Client) *UpdatePolicyVersionParams
- func NewUpdatePolicyVersionParamsWithTimeout(timeout time.Duration) *UpdatePolicyVersionParams
- func (o *UpdatePolicyVersionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *UpdatePolicyVersionParams) SetBody(body *legalclientmodels.UpdatePolicyVersionRequest)
- func (o *UpdatePolicyVersionParams) SetContext(ctx context.Context)
- func (o *UpdatePolicyVersionParams) SetHTTPClient(client *http.Client)
- func (o *UpdatePolicyVersionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *UpdatePolicyVersionParams) SetPolicyVersionID(policyVersionID string)
- func (o *UpdatePolicyVersionParams) SetTimeout(timeout time.Duration)
- func (o *UpdatePolicyVersionParams) WithBody(body *legalclientmodels.UpdatePolicyVersionRequest) *UpdatePolicyVersionParams
- func (o *UpdatePolicyVersionParams) WithContext(ctx context.Context) *UpdatePolicyVersionParams
- func (o *UpdatePolicyVersionParams) WithHTTPClient(client *http.Client) *UpdatePolicyVersionParams
- func (o *UpdatePolicyVersionParams) WithPolicyVersionID(policyVersionID string) *UpdatePolicyVersionParams
- func (o *UpdatePolicyVersionParams) WithTimeout(timeout time.Duration) *UpdatePolicyVersionParams
- func (o *UpdatePolicyVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdatePolicyVersionReader
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 policy versions API
func (*Client) CreatePolicyVersion
deprecated
func (a *Client) CreatePolicyVersion(params *CreatePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePolicyVersionCreated, *CreatePolicyVersionBadRequest, error)
Deprecated: 2022-08-10 - Use CreatePolicyVersionShort instead.
CreatePolicyVersion create a version from country-specific policy Create a version of a particular country-specific policy. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:*:LEGAL", action=1 (CREATE)
func (*Client) CreatePolicyVersionShort ¶ added in v0.8.0
func (a *Client) CreatePolicyVersionShort(params *CreatePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePolicyVersionCreated, error)
CreatePolicyVersionShort create a version from country-specific policy Create a version of a particular country-specific policy. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:*:LEGAL", action=1 (CREATE)
func (*Client) PublishPolicyVersion
deprecated
func (a *Client) PublishPolicyVersion(params *PublishPolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*PublishPolicyVersionOK, *PublishPolicyVersionBadRequest, *PublishPolicyVersionConflict, error)
Deprecated: 2022-08-10 - Use PublishPolicyVersionShort instead.
PublishPolicyVersion manually publish a version from country-specific policy Manually publish a version of a particular country-specific policy. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:*:LEGAL", action=4 (UPDATE)
func (*Client) PublishPolicyVersionShort ¶ added in v0.8.0
func (a *Client) PublishPolicyVersionShort(params *PublishPolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*PublishPolicyVersionOK, error)
PublishPolicyVersionShort manually publish a version from country-specific policy Manually publish a version of a particular country-specific policy. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:*:LEGAL", action=4 (UPDATE)
func (*Client) RetrieveSinglePolicyVersion
deprecated
func (a *Client) RetrieveSinglePolicyVersion(params *RetrieveSinglePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*RetrieveSinglePolicyVersionOK, *RetrieveSinglePolicyVersionNotFound, error)
Deprecated: 2022-08-10 - Use RetrieveSinglePolicyVersionShort instead.
RetrieveSinglePolicyVersion retrieve a version from country-specific policy Retrieve a version of a particular country specific policy. If version is not provided, the Legal Service will assume caller requesting all versions from country-specific policy. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:*:LEGAL", action=2 (READ)
func (*Client) RetrieveSinglePolicyVersionShort ¶ added in v0.8.0
func (a *Client) RetrieveSinglePolicyVersionShort(params *RetrieveSinglePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*RetrieveSinglePolicyVersionOK, error)
RetrieveSinglePolicyVersionShort retrieve a version from country-specific policy Retrieve a version of a particular country specific policy. If version is not provided, the Legal Service will assume caller requesting all versions from country-specific policy. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:*:LEGAL", action=2 (READ)
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdatePolicyVersion
deprecated
func (a *Client) UpdatePolicyVersion(params *UpdatePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePolicyVersionOK, *UpdatePolicyVersionBadRequest, *UpdatePolicyVersionConflict, error)
Deprecated: 2022-08-10 - Use UpdatePolicyVersionShort instead.
UpdatePolicyVersion update a version of policy Update a particular policy version. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:*:LEGAL", action=4 (UPDATE)
func (*Client) UpdatePolicyVersionShort ¶ added in v0.8.0
func (a *Client) UpdatePolicyVersionShort(params *UpdatePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePolicyVersionOK, error)
UpdatePolicyVersionShort update a version of policy Update a particular policy version. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:*:LEGAL", action=4 (UPDATE)
type ClientService ¶
type ClientService interface { UpdatePolicyVersion(params *UpdatePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePolicyVersionOK, *UpdatePolicyVersionBadRequest, *UpdatePolicyVersionConflict, error) UpdatePolicyVersionShort(params *UpdatePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePolicyVersionOK, error) PublishPolicyVersion(params *PublishPolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*PublishPolicyVersionOK, *PublishPolicyVersionBadRequest, *PublishPolicyVersionConflict, error) PublishPolicyVersionShort(params *PublishPolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*PublishPolicyVersionOK, error) RetrieveSinglePolicyVersion(params *RetrieveSinglePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*RetrieveSinglePolicyVersionOK, *RetrieveSinglePolicyVersionNotFound, error) RetrieveSinglePolicyVersionShort(params *RetrieveSinglePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*RetrieveSinglePolicyVersionOK, error) CreatePolicyVersion(params *CreatePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePolicyVersionCreated, *CreatePolicyVersionBadRequest, error) CreatePolicyVersionShort(params *CreatePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePolicyVersionCreated, 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 policy versions API client.
type CreatePolicyVersionBadRequest ¶
type CreatePolicyVersionBadRequest struct {
Payload *legalclientmodels.ErrorEntity
}
CreatePolicyVersionBadRequest 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</td></tr></table>
func NewCreatePolicyVersionBadRequest ¶
func NewCreatePolicyVersionBadRequest() *CreatePolicyVersionBadRequest
NewCreatePolicyVersionBadRequest creates a CreatePolicyVersionBadRequest with default headers values
func (*CreatePolicyVersionBadRequest) Error ¶
func (o *CreatePolicyVersionBadRequest) Error() string
func (*CreatePolicyVersionBadRequest) GetPayload ¶
func (o *CreatePolicyVersionBadRequest) GetPayload() *legalclientmodels.ErrorEntity
func (*CreatePolicyVersionBadRequest) ToJSONString ¶ added in v0.25.0
func (o *CreatePolicyVersionBadRequest) ToJSONString() string
type CreatePolicyVersionCreated ¶
type CreatePolicyVersionCreated struct {
Payload *legalclientmodels.CreatePolicyVersionResponse
}
CreatePolicyVersionCreated handles this case with default header values.
successful operation
func NewCreatePolicyVersionCreated ¶
func NewCreatePolicyVersionCreated() *CreatePolicyVersionCreated
NewCreatePolicyVersionCreated creates a CreatePolicyVersionCreated with default headers values
func (*CreatePolicyVersionCreated) Error ¶
func (o *CreatePolicyVersionCreated) Error() string
func (*CreatePolicyVersionCreated) GetPayload ¶
func (o *CreatePolicyVersionCreated) GetPayload() *legalclientmodels.CreatePolicyVersionResponse
func (*CreatePolicyVersionCreated) ToJSONString ¶ added in v0.25.0
func (o *CreatePolicyVersionCreated) ToJSONString() string
type CreatePolicyVersionParams ¶
type CreatePolicyVersionParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Body*/ Body *legalclientmodels.CreatePolicyVersionRequest /*PolicyID Policy Id */ PolicyID string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreatePolicyVersionParams contains all the parameters to send to the API endpoint for the create policy version operation typically these are written to a http.Request
func NewCreatePolicyVersionParams ¶
func NewCreatePolicyVersionParams() *CreatePolicyVersionParams
NewCreatePolicyVersionParams creates a new CreatePolicyVersionParams object with the default values initialized.
func NewCreatePolicyVersionParamsWithContext ¶
func NewCreatePolicyVersionParamsWithContext(ctx context.Context) *CreatePolicyVersionParams
NewCreatePolicyVersionParamsWithContext creates a new CreatePolicyVersionParams object with the default values initialized, and the ability to set a context for a request
func NewCreatePolicyVersionParamsWithHTTPClient ¶
func NewCreatePolicyVersionParamsWithHTTPClient(client *http.Client) *CreatePolicyVersionParams
NewCreatePolicyVersionParamsWithHTTPClient creates a new CreatePolicyVersionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreatePolicyVersionParamsWithTimeout ¶
func NewCreatePolicyVersionParamsWithTimeout(timeout time.Duration) *CreatePolicyVersionParams
NewCreatePolicyVersionParamsWithTimeout creates a new CreatePolicyVersionParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreatePolicyVersionParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *CreatePolicyVersionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the create policy version params
func (*CreatePolicyVersionParams) SetBody ¶
func (o *CreatePolicyVersionParams) SetBody(body *legalclientmodels.CreatePolicyVersionRequest)
SetBody adds the body to the create policy version params
func (*CreatePolicyVersionParams) SetContext ¶
func (o *CreatePolicyVersionParams) SetContext(ctx context.Context)
SetContext adds the context to the create policy version params
func (*CreatePolicyVersionParams) SetHTTPClient ¶
func (o *CreatePolicyVersionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create policy version params
func (*CreatePolicyVersionParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *CreatePolicyVersionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the create policy version params
func (*CreatePolicyVersionParams) SetPolicyID ¶
func (o *CreatePolicyVersionParams) SetPolicyID(policyID string)
SetPolicyID adds the policyId to the create policy version params
func (*CreatePolicyVersionParams) SetTimeout ¶
func (o *CreatePolicyVersionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create policy version params
func (*CreatePolicyVersionParams) WithBody ¶
func (o *CreatePolicyVersionParams) WithBody(body *legalclientmodels.CreatePolicyVersionRequest) *CreatePolicyVersionParams
WithBody adds the body to the create policy version params
func (*CreatePolicyVersionParams) WithContext ¶
func (o *CreatePolicyVersionParams) WithContext(ctx context.Context) *CreatePolicyVersionParams
WithContext adds the context to the create policy version params
func (*CreatePolicyVersionParams) WithHTTPClient ¶
func (o *CreatePolicyVersionParams) WithHTTPClient(client *http.Client) *CreatePolicyVersionParams
WithHTTPClient adds the HTTPClient to the create policy version params
func (*CreatePolicyVersionParams) WithPolicyID ¶
func (o *CreatePolicyVersionParams) WithPolicyID(policyID string) *CreatePolicyVersionParams
WithPolicyID adds the policyID to the create policy version params
func (*CreatePolicyVersionParams) WithTimeout ¶
func (o *CreatePolicyVersionParams) WithTimeout(timeout time.Duration) *CreatePolicyVersionParams
WithTimeout adds the timeout to the create policy version params
func (*CreatePolicyVersionParams) WriteToRequest ¶
func (o *CreatePolicyVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreatePolicyVersionReader ¶
type CreatePolicyVersionReader struct {
// contains filtered or unexported fields
}
CreatePolicyVersionReader is a Reader for the CreatePolicyVersion structure.
func (*CreatePolicyVersionReader) ReadResponse ¶
func (o *CreatePolicyVersionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PublishPolicyVersionBadRequest ¶
type PublishPolicyVersionBadRequest struct {
Payload *legalclientmodels.ErrorEntity
}
PublishPolicyVersionBadRequest handles this case with default header values.
<table><tr><td>NumericErrorCode</td><td>ErrorCode</td></tr><tr><td>40035</td><td>errors.net.accelbyte.platform.legal.invalid_policy_version</td></tr><tr><td>40046</td><td>errors.net.accelbyte.platform.legal.default_selection_not_provided</td></tr><tr><td>40030</td><td>errors.net.accelbyte.platform.legal.localized_policy_version_not_provided</td></tr></table>
func NewPublishPolicyVersionBadRequest ¶
func NewPublishPolicyVersionBadRequest() *PublishPolicyVersionBadRequest
NewPublishPolicyVersionBadRequest creates a PublishPolicyVersionBadRequest with default headers values
func (*PublishPolicyVersionBadRequest) Error ¶
func (o *PublishPolicyVersionBadRequest) Error() string
func (*PublishPolicyVersionBadRequest) GetPayload ¶
func (o *PublishPolicyVersionBadRequest) GetPayload() *legalclientmodels.ErrorEntity
func (*PublishPolicyVersionBadRequest) ToJSONString ¶ added in v0.25.0
func (o *PublishPolicyVersionBadRequest) ToJSONString() string
type PublishPolicyVersionConflict ¶ added in v0.34.0
type PublishPolicyVersionConflict struct {
Payload *legalclientmodels.ErrorEntity
}
PublishPolicyVersionConflict handles this case with default header values.
<table><tr><td>NumericErrorCode</td><td>ErrorCode</td></tr><tr><td>40039</td><td>errors.net.accelbyte.platform.legal.localized_policy_version_already_latest</td></tr><tr><td>40043</td><td>errors.net.accelbyte.platform.legal.localized_policy_version_already_publish</td></tr></table>
func NewPublishPolicyVersionConflict ¶ added in v0.34.0
func NewPublishPolicyVersionConflict() *PublishPolicyVersionConflict
NewPublishPolicyVersionConflict creates a PublishPolicyVersionConflict with default headers values
func (*PublishPolicyVersionConflict) Error ¶ added in v0.34.0
func (o *PublishPolicyVersionConflict) Error() string
func (*PublishPolicyVersionConflict) GetPayload ¶ added in v0.34.0
func (o *PublishPolicyVersionConflict) GetPayload() *legalclientmodels.ErrorEntity
func (*PublishPolicyVersionConflict) ToJSONString ¶ added in v0.34.0
func (o *PublishPolicyVersionConflict) ToJSONString() string
type PublishPolicyVersionOK ¶
type PublishPolicyVersionOK struct { }
PublishPolicyVersionOK handles this case with default header values.
operation successful
func NewPublishPolicyVersionOK ¶
func NewPublishPolicyVersionOK() *PublishPolicyVersionOK
NewPublishPolicyVersionOK creates a PublishPolicyVersionOK with default headers values
func (*PublishPolicyVersionOK) Error ¶
func (o *PublishPolicyVersionOK) Error() string
type PublishPolicyVersionParams ¶
type PublishPolicyVersionParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*PolicyVersionID Policy Version Id */ PolicyVersionID string /*ShouldNotify Should Notify */ ShouldNotify *bool AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PublishPolicyVersionParams contains all the parameters to send to the API endpoint for the publish policy version operation typically these are written to a http.Request
func NewPublishPolicyVersionParams ¶
func NewPublishPolicyVersionParams() *PublishPolicyVersionParams
NewPublishPolicyVersionParams creates a new PublishPolicyVersionParams object with the default values initialized.
func NewPublishPolicyVersionParamsWithContext ¶
func NewPublishPolicyVersionParamsWithContext(ctx context.Context) *PublishPolicyVersionParams
NewPublishPolicyVersionParamsWithContext creates a new PublishPolicyVersionParams object with the default values initialized, and the ability to set a context for a request
func NewPublishPolicyVersionParamsWithHTTPClient ¶
func NewPublishPolicyVersionParamsWithHTTPClient(client *http.Client) *PublishPolicyVersionParams
NewPublishPolicyVersionParamsWithHTTPClient creates a new PublishPolicyVersionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPublishPolicyVersionParamsWithTimeout ¶
func NewPublishPolicyVersionParamsWithTimeout(timeout time.Duration) *PublishPolicyVersionParams
NewPublishPolicyVersionParamsWithTimeout creates a new PublishPolicyVersionParams object with the default values initialized, and the ability to set a timeout on a request
func (*PublishPolicyVersionParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *PublishPolicyVersionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the publish policy version params
func (*PublishPolicyVersionParams) SetContext ¶
func (o *PublishPolicyVersionParams) SetContext(ctx context.Context)
SetContext adds the context to the publish policy version params
func (*PublishPolicyVersionParams) SetHTTPClient ¶
func (o *PublishPolicyVersionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the publish policy version params
func (*PublishPolicyVersionParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *PublishPolicyVersionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the publish policy version params
func (*PublishPolicyVersionParams) SetPolicyVersionID ¶
func (o *PublishPolicyVersionParams) SetPolicyVersionID(policyVersionID string)
SetPolicyVersionID adds the policyVersionId to the publish policy version params
func (*PublishPolicyVersionParams) SetShouldNotify ¶
func (o *PublishPolicyVersionParams) SetShouldNotify(shouldNotify *bool)
SetShouldNotify adds the shouldNotify to the publish policy version params
func (*PublishPolicyVersionParams) SetTimeout ¶
func (o *PublishPolicyVersionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the publish policy version params
func (*PublishPolicyVersionParams) WithContext ¶
func (o *PublishPolicyVersionParams) WithContext(ctx context.Context) *PublishPolicyVersionParams
WithContext adds the context to the publish policy version params
func (*PublishPolicyVersionParams) WithHTTPClient ¶
func (o *PublishPolicyVersionParams) WithHTTPClient(client *http.Client) *PublishPolicyVersionParams
WithHTTPClient adds the HTTPClient to the publish policy version params
func (*PublishPolicyVersionParams) WithPolicyVersionID ¶
func (o *PublishPolicyVersionParams) WithPolicyVersionID(policyVersionID string) *PublishPolicyVersionParams
WithPolicyVersionID adds the policyVersionID to the publish policy version params
func (*PublishPolicyVersionParams) WithShouldNotify ¶
func (o *PublishPolicyVersionParams) WithShouldNotify(shouldNotify *bool) *PublishPolicyVersionParams
WithShouldNotify adds the shouldNotify to the publish policy version params
func (*PublishPolicyVersionParams) WithTimeout ¶
func (o *PublishPolicyVersionParams) WithTimeout(timeout time.Duration) *PublishPolicyVersionParams
WithTimeout adds the timeout to the publish policy version params
func (*PublishPolicyVersionParams) WriteToRequest ¶
func (o *PublishPolicyVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PublishPolicyVersionReader ¶
type PublishPolicyVersionReader struct {
// contains filtered or unexported fields
}
PublishPolicyVersionReader is a Reader for the PublishPolicyVersion structure.
func (*PublishPolicyVersionReader) ReadResponse ¶
func (o *PublishPolicyVersionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RetrieveSinglePolicyVersionNotFound ¶
type RetrieveSinglePolicyVersionNotFound struct {
Payload *legalclientmodels.ErrorEntity
}
RetrieveSinglePolicyVersionNotFound handles this case with default header values.
<table><tr><td>NumericErrorCode</td><td>ErrorCode</td></tr><tr><td>40036</td><td>errors.net.accelbyte.platform.legal.policy_version_id_not_found</td></tr></table>
func NewRetrieveSinglePolicyVersionNotFound ¶
func NewRetrieveSinglePolicyVersionNotFound() *RetrieveSinglePolicyVersionNotFound
NewRetrieveSinglePolicyVersionNotFound creates a RetrieveSinglePolicyVersionNotFound with default headers values
func (*RetrieveSinglePolicyVersionNotFound) Error ¶
func (o *RetrieveSinglePolicyVersionNotFound) Error() string
func (*RetrieveSinglePolicyVersionNotFound) GetPayload ¶
func (o *RetrieveSinglePolicyVersionNotFound) GetPayload() *legalclientmodels.ErrorEntity
func (*RetrieveSinglePolicyVersionNotFound) ToJSONString ¶ added in v0.25.0
func (o *RetrieveSinglePolicyVersionNotFound) ToJSONString() string
type RetrieveSinglePolicyVersionOK ¶
type RetrieveSinglePolicyVersionOK struct {
Payload []*legalclientmodels.RetrievePolicyVersionResponse
}
RetrieveSinglePolicyVersionOK handles this case with default header values.
successful operation
func NewRetrieveSinglePolicyVersionOK ¶
func NewRetrieveSinglePolicyVersionOK() *RetrieveSinglePolicyVersionOK
NewRetrieveSinglePolicyVersionOK creates a RetrieveSinglePolicyVersionOK with default headers values
func (*RetrieveSinglePolicyVersionOK) Error ¶
func (o *RetrieveSinglePolicyVersionOK) Error() string
func (*RetrieveSinglePolicyVersionOK) GetPayload ¶
func (o *RetrieveSinglePolicyVersionOK) GetPayload() []*legalclientmodels.RetrievePolicyVersionResponse
func (*RetrieveSinglePolicyVersionOK) ToJSONString ¶ added in v0.25.0
func (o *RetrieveSinglePolicyVersionOK) ToJSONString() string
type RetrieveSinglePolicyVersionParams ¶
type RetrieveSinglePolicyVersionParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*PolicyID Policy Id */ PolicyID string /*VersionID Version Id */ VersionID *string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RetrieveSinglePolicyVersionParams contains all the parameters to send to the API endpoint for the retrieve single policy version operation typically these are written to a http.Request
func NewRetrieveSinglePolicyVersionParams ¶
func NewRetrieveSinglePolicyVersionParams() *RetrieveSinglePolicyVersionParams
NewRetrieveSinglePolicyVersionParams creates a new RetrieveSinglePolicyVersionParams object with the default values initialized.
func NewRetrieveSinglePolicyVersionParamsWithContext ¶
func NewRetrieveSinglePolicyVersionParamsWithContext(ctx context.Context) *RetrieveSinglePolicyVersionParams
NewRetrieveSinglePolicyVersionParamsWithContext creates a new RetrieveSinglePolicyVersionParams object with the default values initialized, and the ability to set a context for a request
func NewRetrieveSinglePolicyVersionParamsWithHTTPClient ¶
func NewRetrieveSinglePolicyVersionParamsWithHTTPClient(client *http.Client) *RetrieveSinglePolicyVersionParams
NewRetrieveSinglePolicyVersionParamsWithHTTPClient creates a new RetrieveSinglePolicyVersionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRetrieveSinglePolicyVersionParamsWithTimeout ¶
func NewRetrieveSinglePolicyVersionParamsWithTimeout(timeout time.Duration) *RetrieveSinglePolicyVersionParams
NewRetrieveSinglePolicyVersionParamsWithTimeout creates a new RetrieveSinglePolicyVersionParams object with the default values initialized, and the ability to set a timeout on a request
func (*RetrieveSinglePolicyVersionParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *RetrieveSinglePolicyVersionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the retrieve single policy version params
func (*RetrieveSinglePolicyVersionParams) SetContext ¶
func (o *RetrieveSinglePolicyVersionParams) SetContext(ctx context.Context)
SetContext adds the context to the retrieve single policy version params
func (*RetrieveSinglePolicyVersionParams) SetHTTPClient ¶
func (o *RetrieveSinglePolicyVersionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the retrieve single policy version params
func (*RetrieveSinglePolicyVersionParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *RetrieveSinglePolicyVersionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the retrieve single policy version params
func (*RetrieveSinglePolicyVersionParams) SetPolicyID ¶
func (o *RetrieveSinglePolicyVersionParams) SetPolicyID(policyID string)
SetPolicyID adds the policyId to the retrieve single policy version params
func (*RetrieveSinglePolicyVersionParams) SetTimeout ¶
func (o *RetrieveSinglePolicyVersionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the retrieve single policy version params
func (*RetrieveSinglePolicyVersionParams) SetVersionID ¶
func (o *RetrieveSinglePolicyVersionParams) SetVersionID(versionID *string)
SetVersionID adds the versionId to the retrieve single policy version params
func (*RetrieveSinglePolicyVersionParams) WithContext ¶
func (o *RetrieveSinglePolicyVersionParams) WithContext(ctx context.Context) *RetrieveSinglePolicyVersionParams
WithContext adds the context to the retrieve single policy version params
func (*RetrieveSinglePolicyVersionParams) WithHTTPClient ¶
func (o *RetrieveSinglePolicyVersionParams) WithHTTPClient(client *http.Client) *RetrieveSinglePolicyVersionParams
WithHTTPClient adds the HTTPClient to the retrieve single policy version params
func (*RetrieveSinglePolicyVersionParams) WithPolicyID ¶
func (o *RetrieveSinglePolicyVersionParams) WithPolicyID(policyID string) *RetrieveSinglePolicyVersionParams
WithPolicyID adds the policyID to the retrieve single policy version params
func (*RetrieveSinglePolicyVersionParams) WithTimeout ¶
func (o *RetrieveSinglePolicyVersionParams) WithTimeout(timeout time.Duration) *RetrieveSinglePolicyVersionParams
WithTimeout adds the timeout to the retrieve single policy version params
func (*RetrieveSinglePolicyVersionParams) WithVersionID ¶
func (o *RetrieveSinglePolicyVersionParams) WithVersionID(versionID *string) *RetrieveSinglePolicyVersionParams
WithVersionID adds the versionID to the retrieve single policy version params
func (*RetrieveSinglePolicyVersionParams) WriteToRequest ¶
func (o *RetrieveSinglePolicyVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RetrieveSinglePolicyVersionReader ¶
type RetrieveSinglePolicyVersionReader struct {
// contains filtered or unexported fields
}
RetrieveSinglePolicyVersionReader is a Reader for the RetrieveSinglePolicyVersion structure.
func (*RetrieveSinglePolicyVersionReader) ReadResponse ¶
func (o *RetrieveSinglePolicyVersionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdatePolicyVersionBadRequest ¶
type UpdatePolicyVersionBadRequest struct {
Payload *legalclientmodels.ErrorEntity
}
UpdatePolicyVersionBadRequest handles this case with default header values.
<table><tr><td>NumericErrorCode</td><td>ErrorCode</td></tr><tr><td>40035</td><td>errors.net.accelbyte.platform.legal.invalid_policy_version</td></tr><tr><td>40042</td><td>errors.net.accelbyte.platform.legal.policy_version_freezed</td></tr></table>
func NewUpdatePolicyVersionBadRequest ¶
func NewUpdatePolicyVersionBadRequest() *UpdatePolicyVersionBadRequest
NewUpdatePolicyVersionBadRequest creates a UpdatePolicyVersionBadRequest with default headers values
func (*UpdatePolicyVersionBadRequest) Error ¶
func (o *UpdatePolicyVersionBadRequest) Error() string
func (*UpdatePolicyVersionBadRequest) GetPayload ¶
func (o *UpdatePolicyVersionBadRequest) GetPayload() *legalclientmodels.ErrorEntity
func (*UpdatePolicyVersionBadRequest) ToJSONString ¶ added in v0.25.0
func (o *UpdatePolicyVersionBadRequest) ToJSONString() string
type UpdatePolicyVersionConflict ¶ added in v0.34.0
type UpdatePolicyVersionConflict struct {
Payload *legalclientmodels.ErrorEntity
}
UpdatePolicyVersionConflict handles this case with default header values.
<table><tr><td>NumericErrorCode</td><td>ErrorCode</td></tr><tr><td>40043</td><td>errors.net.accelbyte.platform.legal.localized_policy_version_already_exist</td></tr></table>
func NewUpdatePolicyVersionConflict ¶ added in v0.34.0
func NewUpdatePolicyVersionConflict() *UpdatePolicyVersionConflict
NewUpdatePolicyVersionConflict creates a UpdatePolicyVersionConflict with default headers values
func (*UpdatePolicyVersionConflict) Error ¶ added in v0.34.0
func (o *UpdatePolicyVersionConflict) Error() string
func (*UpdatePolicyVersionConflict) GetPayload ¶ added in v0.34.0
func (o *UpdatePolicyVersionConflict) GetPayload() *legalclientmodels.ErrorEntity
func (*UpdatePolicyVersionConflict) ToJSONString ¶ added in v0.34.0
func (o *UpdatePolicyVersionConflict) ToJSONString() string
type UpdatePolicyVersionOK ¶
type UpdatePolicyVersionOK struct {
Payload *legalclientmodels.UpdatePolicyVersionResponse
}
UpdatePolicyVersionOK handles this case with default header values.
successful operation
func NewUpdatePolicyVersionOK ¶
func NewUpdatePolicyVersionOK() *UpdatePolicyVersionOK
NewUpdatePolicyVersionOK creates a UpdatePolicyVersionOK with default headers values
func (*UpdatePolicyVersionOK) Error ¶
func (o *UpdatePolicyVersionOK) Error() string
func (*UpdatePolicyVersionOK) GetPayload ¶
func (o *UpdatePolicyVersionOK) GetPayload() *legalclientmodels.UpdatePolicyVersionResponse
func (*UpdatePolicyVersionOK) ToJSONString ¶ added in v0.25.0
func (o *UpdatePolicyVersionOK) ToJSONString() string
type UpdatePolicyVersionParams ¶
type UpdatePolicyVersionParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Body*/ Body *legalclientmodels.UpdatePolicyVersionRequest /*PolicyVersionID Policy Version Id */ PolicyVersionID string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdatePolicyVersionParams contains all the parameters to send to the API endpoint for the update policy version operation typically these are written to a http.Request
func NewUpdatePolicyVersionParams ¶
func NewUpdatePolicyVersionParams() *UpdatePolicyVersionParams
NewUpdatePolicyVersionParams creates a new UpdatePolicyVersionParams object with the default values initialized.
func NewUpdatePolicyVersionParamsWithContext ¶
func NewUpdatePolicyVersionParamsWithContext(ctx context.Context) *UpdatePolicyVersionParams
NewUpdatePolicyVersionParamsWithContext creates a new UpdatePolicyVersionParams object with the default values initialized, and the ability to set a context for a request
func NewUpdatePolicyVersionParamsWithHTTPClient ¶
func NewUpdatePolicyVersionParamsWithHTTPClient(client *http.Client) *UpdatePolicyVersionParams
NewUpdatePolicyVersionParamsWithHTTPClient creates a new UpdatePolicyVersionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdatePolicyVersionParamsWithTimeout ¶
func NewUpdatePolicyVersionParamsWithTimeout(timeout time.Duration) *UpdatePolicyVersionParams
NewUpdatePolicyVersionParamsWithTimeout creates a new UpdatePolicyVersionParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdatePolicyVersionParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *UpdatePolicyVersionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the update policy version params
func (*UpdatePolicyVersionParams) SetBody ¶
func (o *UpdatePolicyVersionParams) SetBody(body *legalclientmodels.UpdatePolicyVersionRequest)
SetBody adds the body to the update policy version params
func (*UpdatePolicyVersionParams) SetContext ¶
func (o *UpdatePolicyVersionParams) SetContext(ctx context.Context)
SetContext adds the context to the update policy version params
func (*UpdatePolicyVersionParams) SetHTTPClient ¶
func (o *UpdatePolicyVersionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update policy version params
func (*UpdatePolicyVersionParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *UpdatePolicyVersionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the update policy version params
func (*UpdatePolicyVersionParams) SetPolicyVersionID ¶
func (o *UpdatePolicyVersionParams) SetPolicyVersionID(policyVersionID string)
SetPolicyVersionID adds the policyVersionId to the update policy version params
func (*UpdatePolicyVersionParams) SetTimeout ¶
func (o *UpdatePolicyVersionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update policy version params
func (*UpdatePolicyVersionParams) WithBody ¶
func (o *UpdatePolicyVersionParams) WithBody(body *legalclientmodels.UpdatePolicyVersionRequest) *UpdatePolicyVersionParams
WithBody adds the body to the update policy version params
func (*UpdatePolicyVersionParams) WithContext ¶
func (o *UpdatePolicyVersionParams) WithContext(ctx context.Context) *UpdatePolicyVersionParams
WithContext adds the context to the update policy version params
func (*UpdatePolicyVersionParams) WithHTTPClient ¶
func (o *UpdatePolicyVersionParams) WithHTTPClient(client *http.Client) *UpdatePolicyVersionParams
WithHTTPClient adds the HTTPClient to the update policy version params
func (*UpdatePolicyVersionParams) WithPolicyVersionID ¶
func (o *UpdatePolicyVersionParams) WithPolicyVersionID(policyVersionID string) *UpdatePolicyVersionParams
WithPolicyVersionID adds the policyVersionID to the update policy version params
func (*UpdatePolicyVersionParams) WithTimeout ¶
func (o *UpdatePolicyVersionParams) WithTimeout(timeout time.Duration) *UpdatePolicyVersionParams
WithTimeout adds the timeout to the update policy version params
func (*UpdatePolicyVersionParams) WriteToRequest ¶
func (o *UpdatePolicyVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdatePolicyVersionReader ¶
type UpdatePolicyVersionReader struct {
// contains filtered or unexported fields
}
UpdatePolicyVersionReader is a Reader for the UpdatePolicyVersion structure.
func (*UpdatePolicyVersionReader) ReadResponse ¶
func (o *UpdatePolicyVersionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- create_policy_version_parameters.go
- create_policy_version_responses.go
- policy_versions_client.go
- publish_policy_version_parameters.go
- publish_policy_version_responses.go
- retrieve_single_policy_version_parameters.go
- retrieve_single_policy_version_responses.go
- update_policy_version_parameters.go
- update_policy_version_responses.go