policy_versions_with_namespace

package
v0.60.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for policy versions with namespace API

func (*Client) CreatePolicyVersion1 deprecated

Deprecated: 2022-08-10 - Use CreatePolicyVersion1Short instead.

CreatePolicyVersion1 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) CreatePolicyVersion1Short

func (a *Client) CreatePolicyVersion1Short(params *CreatePolicyVersion1Params, authInfo runtime.ClientAuthInfoWriter) (*CreatePolicyVersion1Created, error)

CreatePolicyVersion1Short 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) PublishPolicyVersion1 deprecated

Deprecated: 2022-08-10 - Use PublishPolicyVersion1Short instead.

PublishPolicyVersion1 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) PublishPolicyVersion1Short

func (a *Client) PublishPolicyVersion1Short(params *PublishPolicyVersion1Params, authInfo runtime.ClientAuthInfoWriter) (*PublishPolicyVersion1OK, error)

PublishPolicyVersion1Short 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) RetrieveSinglePolicyVersion1 deprecated

Deprecated: 2022-08-10 - Use RetrieveSinglePolicyVersion1Short instead.

RetrieveSinglePolicyVersion1 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) RetrieveSinglePolicyVersion1Short

func (a *Client) RetrieveSinglePolicyVersion1Short(params *RetrieveSinglePolicyVersion1Params, authInfo runtime.ClientAuthInfoWriter) (*RetrieveSinglePolicyVersion1OK, error)

RetrieveSinglePolicyVersion1Short 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) UpdatePolicyVersion1 deprecated

Deprecated: 2022-08-10 - Use UpdatePolicyVersion1Short instead.

UpdatePolicyVersion1 update a version of policy Update a particular policy version. Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:*:LEGAL", action=4 (UPDATE)

func (*Client) UpdatePolicyVersion1Short

func (a *Client) UpdatePolicyVersion1Short(params *UpdatePolicyVersion1Params, authInfo runtime.ClientAuthInfoWriter) (*UpdatePolicyVersion1OK, error)

UpdatePolicyVersion1Short update a version of policy Update a particular policy version. Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:*:LEGAL", action=4 (UPDATE)

type ClientService

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new policy versions with namespace API client.

type CreatePolicyVersion1BadRequest

type CreatePolicyVersion1BadRequest struct {
	Payload *legalclientmodels.ErrorEntity
}

CreatePolicyVersion1BadRequest 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 NewCreatePolicyVersion1BadRequest

func NewCreatePolicyVersion1BadRequest() *CreatePolicyVersion1BadRequest

NewCreatePolicyVersion1BadRequest creates a CreatePolicyVersion1BadRequest with default headers values

func (*CreatePolicyVersion1BadRequest) Error

func (*CreatePolicyVersion1BadRequest) GetPayload

func (*CreatePolicyVersion1BadRequest) ToJSONString

func (o *CreatePolicyVersion1BadRequest) ToJSONString() string

type CreatePolicyVersion1Created

type CreatePolicyVersion1Created struct {
	Payload *legalclientmodels.CreatePolicyVersionResponse
}

CreatePolicyVersion1Created handles this case with default header values.

successful operation

func NewCreatePolicyVersion1Created

func NewCreatePolicyVersion1Created() *CreatePolicyVersion1Created

NewCreatePolicyVersion1Created creates a CreatePolicyVersion1Created with default headers values

func (*CreatePolicyVersion1Created) Error

func (*CreatePolicyVersion1Created) GetPayload

func (*CreatePolicyVersion1Created) ToJSONString

func (o *CreatePolicyVersion1Created) ToJSONString() string

type CreatePolicyVersion1Params

type CreatePolicyVersion1Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *legalclientmodels.CreatePolicyVersionRequest
	/*Namespace
	  Namespace

	*/
	Namespace string
	/*PolicyID
	  Policy Id

	*/
	PolicyID string

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

CreatePolicyVersion1Params contains all the parameters to send to the API endpoint for the create policy version 1 operation typically these are written to a http.Request

func NewCreatePolicyVersion1Params

func NewCreatePolicyVersion1Params() *CreatePolicyVersion1Params

NewCreatePolicyVersion1Params creates a new CreatePolicyVersion1Params object with the default values initialized.

func NewCreatePolicyVersion1ParamsWithContext

func NewCreatePolicyVersion1ParamsWithContext(ctx context.Context) *CreatePolicyVersion1Params

NewCreatePolicyVersion1ParamsWithContext creates a new CreatePolicyVersion1Params object with the default values initialized, and the ability to set a context for a request

func NewCreatePolicyVersion1ParamsWithHTTPClient

func NewCreatePolicyVersion1ParamsWithHTTPClient(client *http.Client) *CreatePolicyVersion1Params

NewCreatePolicyVersion1ParamsWithHTTPClient creates a new CreatePolicyVersion1Params object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreatePolicyVersion1ParamsWithTimeout

func NewCreatePolicyVersion1ParamsWithTimeout(timeout time.Duration) *CreatePolicyVersion1Params

NewCreatePolicyVersion1ParamsWithTimeout creates a new CreatePolicyVersion1Params object with the default values initialized, and the ability to set a timeout on a request

func (*CreatePolicyVersion1Params) SetAuthInfoWriter

func (o *CreatePolicyVersion1Params) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the create policy version 1 params

func (*CreatePolicyVersion1Params) SetBody

SetBody adds the body to the create policy version 1 params

func (*CreatePolicyVersion1Params) SetContext

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

SetContext adds the context to the create policy version 1 params

func (*CreatePolicyVersion1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create policy version 1 params

func (*CreatePolicyVersion1Params) SetHTTPClientTransport

func (o *CreatePolicyVersion1Params) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the create policy version 1 params

func (*CreatePolicyVersion1Params) SetNamespace

func (o *CreatePolicyVersion1Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the create policy version 1 params

func (*CreatePolicyVersion1Params) SetPolicyID

func (o *CreatePolicyVersion1Params) SetPolicyID(policyID string)

SetPolicyID adds the policyId to the create policy version 1 params

func (*CreatePolicyVersion1Params) SetTimeout

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

SetTimeout adds the timeout to the create policy version 1 params

func (*CreatePolicyVersion1Params) WithBody

WithBody adds the body to the create policy version 1 params

func (*CreatePolicyVersion1Params) WithContext

WithContext adds the context to the create policy version 1 params

func (*CreatePolicyVersion1Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create policy version 1 params

func (*CreatePolicyVersion1Params) WithNamespace

func (o *CreatePolicyVersion1Params) WithNamespace(namespace string) *CreatePolicyVersion1Params

WithNamespace adds the namespace to the create policy version 1 params

func (*CreatePolicyVersion1Params) WithPolicyID

WithPolicyID adds the policyID to the create policy version 1 params

func (*CreatePolicyVersion1Params) WithTimeout

WithTimeout adds the timeout to the create policy version 1 params

func (*CreatePolicyVersion1Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreatePolicyVersion1Reader

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

CreatePolicyVersion1Reader is a Reader for the CreatePolicyVersion1 structure.

func (*CreatePolicyVersion1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublishPolicyVersion1BadRequest

type PublishPolicyVersion1BadRequest struct {
	Payload *legalclientmodels.ErrorEntity
}

PublishPolicyVersion1BadRequest 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 NewPublishPolicyVersion1BadRequest

func NewPublishPolicyVersion1BadRequest() *PublishPolicyVersion1BadRequest

NewPublishPolicyVersion1BadRequest creates a PublishPolicyVersion1BadRequest with default headers values

func (*PublishPolicyVersion1BadRequest) Error

func (*PublishPolicyVersion1BadRequest) GetPayload

func (*PublishPolicyVersion1BadRequest) ToJSONString

func (o *PublishPolicyVersion1BadRequest) ToJSONString() string

type PublishPolicyVersion1Conflict

type PublishPolicyVersion1Conflict struct {
	Payload *legalclientmodels.ErrorEntity
}

PublishPolicyVersion1Conflict 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 NewPublishPolicyVersion1Conflict

func NewPublishPolicyVersion1Conflict() *PublishPolicyVersion1Conflict

NewPublishPolicyVersion1Conflict creates a PublishPolicyVersion1Conflict with default headers values

func (*PublishPolicyVersion1Conflict) Error

func (*PublishPolicyVersion1Conflict) GetPayload

func (*PublishPolicyVersion1Conflict) ToJSONString

func (o *PublishPolicyVersion1Conflict) ToJSONString() string

type PublishPolicyVersion1OK

type PublishPolicyVersion1OK struct {
}

PublishPolicyVersion1OK handles this case with default header values.

operation successful

func NewPublishPolicyVersion1OK

func NewPublishPolicyVersion1OK() *PublishPolicyVersion1OK

NewPublishPolicyVersion1OK creates a PublishPolicyVersion1OK with default headers values

func (*PublishPolicyVersion1OK) Error

func (o *PublishPolicyVersion1OK) Error() string

type PublishPolicyVersion1Params

type PublishPolicyVersion1Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  Namespace

	*/
	Namespace string
	/*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
}

PublishPolicyVersion1Params contains all the parameters to send to the API endpoint for the publish policy version 1 operation typically these are written to a http.Request

func NewPublishPolicyVersion1Params

func NewPublishPolicyVersion1Params() *PublishPolicyVersion1Params

NewPublishPolicyVersion1Params creates a new PublishPolicyVersion1Params object with the default values initialized.

func NewPublishPolicyVersion1ParamsWithContext

func NewPublishPolicyVersion1ParamsWithContext(ctx context.Context) *PublishPolicyVersion1Params

NewPublishPolicyVersion1ParamsWithContext creates a new PublishPolicyVersion1Params object with the default values initialized, and the ability to set a context for a request

func NewPublishPolicyVersion1ParamsWithHTTPClient

func NewPublishPolicyVersion1ParamsWithHTTPClient(client *http.Client) *PublishPolicyVersion1Params

NewPublishPolicyVersion1ParamsWithHTTPClient creates a new PublishPolicyVersion1Params object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPublishPolicyVersion1ParamsWithTimeout

func NewPublishPolicyVersion1ParamsWithTimeout(timeout time.Duration) *PublishPolicyVersion1Params

NewPublishPolicyVersion1ParamsWithTimeout creates a new PublishPolicyVersion1Params object with the default values initialized, and the ability to set a timeout on a request

func (*PublishPolicyVersion1Params) SetAuthInfoWriter

func (o *PublishPolicyVersion1Params) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the publish policy version 1 params

func (*PublishPolicyVersion1Params) SetContext

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

SetContext adds the context to the publish policy version 1 params

func (*PublishPolicyVersion1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the publish policy version 1 params

func (*PublishPolicyVersion1Params) SetHTTPClientTransport

func (o *PublishPolicyVersion1Params) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the publish policy version 1 params

func (*PublishPolicyVersion1Params) SetNamespace

func (o *PublishPolicyVersion1Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the publish policy version 1 params

func (*PublishPolicyVersion1Params) SetPolicyVersionID

func (o *PublishPolicyVersion1Params) SetPolicyVersionID(policyVersionID string)

SetPolicyVersionID adds the policyVersionId to the publish policy version 1 params

func (*PublishPolicyVersion1Params) SetShouldNotify

func (o *PublishPolicyVersion1Params) SetShouldNotify(shouldNotify *bool)

SetShouldNotify adds the shouldNotify to the publish policy version 1 params

func (*PublishPolicyVersion1Params) SetTimeout

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

SetTimeout adds the timeout to the publish policy version 1 params

func (*PublishPolicyVersion1Params) WithContext

WithContext adds the context to the publish policy version 1 params

func (*PublishPolicyVersion1Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the publish policy version 1 params

func (*PublishPolicyVersion1Params) WithNamespace

func (o *PublishPolicyVersion1Params) WithNamespace(namespace string) *PublishPolicyVersion1Params

WithNamespace adds the namespace to the publish policy version 1 params

func (*PublishPolicyVersion1Params) WithPolicyVersionID

func (o *PublishPolicyVersion1Params) WithPolicyVersionID(policyVersionID string) *PublishPolicyVersion1Params

WithPolicyVersionID adds the policyVersionID to the publish policy version 1 params

func (*PublishPolicyVersion1Params) WithShouldNotify

func (o *PublishPolicyVersion1Params) WithShouldNotify(shouldNotify *bool) *PublishPolicyVersion1Params

WithShouldNotify adds the shouldNotify to the publish policy version 1 params

func (*PublishPolicyVersion1Params) WithTimeout

WithTimeout adds the timeout to the publish policy version 1 params

func (*PublishPolicyVersion1Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublishPolicyVersion1Reader

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

PublishPolicyVersion1Reader is a Reader for the PublishPolicyVersion1 structure.

func (*PublishPolicyVersion1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RetrieveSinglePolicyVersion1NotFound

type RetrieveSinglePolicyVersion1NotFound struct {
	Payload *legalclientmodels.ErrorEntity
}

RetrieveSinglePolicyVersion1NotFound 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 NewRetrieveSinglePolicyVersion1NotFound

func NewRetrieveSinglePolicyVersion1NotFound() *RetrieveSinglePolicyVersion1NotFound

NewRetrieveSinglePolicyVersion1NotFound creates a RetrieveSinglePolicyVersion1NotFound with default headers values

func (*RetrieveSinglePolicyVersion1NotFound) Error

func (*RetrieveSinglePolicyVersion1NotFound) GetPayload

func (*RetrieveSinglePolicyVersion1NotFound) ToJSONString

func (o *RetrieveSinglePolicyVersion1NotFound) ToJSONString() string

type RetrieveSinglePolicyVersion1OK

type RetrieveSinglePolicyVersion1OK struct {
	Payload []*legalclientmodels.RetrievePolicyVersionResponse
}

RetrieveSinglePolicyVersion1OK handles this case with default header values.

successful operation

func NewRetrieveSinglePolicyVersion1OK

func NewRetrieveSinglePolicyVersion1OK() *RetrieveSinglePolicyVersion1OK

NewRetrieveSinglePolicyVersion1OK creates a RetrieveSinglePolicyVersion1OK with default headers values

func (*RetrieveSinglePolicyVersion1OK) Error

func (*RetrieveSinglePolicyVersion1OK) GetPayload

func (*RetrieveSinglePolicyVersion1OK) ToJSONString

func (o *RetrieveSinglePolicyVersion1OK) ToJSONString() string

type RetrieveSinglePolicyVersion1Params

type RetrieveSinglePolicyVersion1Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  Namespace

	*/
	Namespace string
	/*PolicyID
	  Policy Id

	*/
	PolicyID string
	/*VersionID
	  Version Id

	*/
	VersionID *string

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

RetrieveSinglePolicyVersion1Params contains all the parameters to send to the API endpoint for the retrieve single policy version 1 operation typically these are written to a http.Request

func NewRetrieveSinglePolicyVersion1Params

func NewRetrieveSinglePolicyVersion1Params() *RetrieveSinglePolicyVersion1Params

NewRetrieveSinglePolicyVersion1Params creates a new RetrieveSinglePolicyVersion1Params object with the default values initialized.

func NewRetrieveSinglePolicyVersion1ParamsWithContext

func NewRetrieveSinglePolicyVersion1ParamsWithContext(ctx context.Context) *RetrieveSinglePolicyVersion1Params

NewRetrieveSinglePolicyVersion1ParamsWithContext creates a new RetrieveSinglePolicyVersion1Params object with the default values initialized, and the ability to set a context for a request

func NewRetrieveSinglePolicyVersion1ParamsWithHTTPClient

func NewRetrieveSinglePolicyVersion1ParamsWithHTTPClient(client *http.Client) *RetrieveSinglePolicyVersion1Params

NewRetrieveSinglePolicyVersion1ParamsWithHTTPClient creates a new RetrieveSinglePolicyVersion1Params object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewRetrieveSinglePolicyVersion1ParamsWithTimeout

func NewRetrieveSinglePolicyVersion1ParamsWithTimeout(timeout time.Duration) *RetrieveSinglePolicyVersion1Params

NewRetrieveSinglePolicyVersion1ParamsWithTimeout creates a new RetrieveSinglePolicyVersion1Params object with the default values initialized, and the ability to set a timeout on a request

func (*RetrieveSinglePolicyVersion1Params) SetAuthInfoWriter

func (o *RetrieveSinglePolicyVersion1Params) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the retrieve single policy version 1 params

func (*RetrieveSinglePolicyVersion1Params) SetContext

SetContext adds the context to the retrieve single policy version 1 params

func (*RetrieveSinglePolicyVersion1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the retrieve single policy version 1 params

func (*RetrieveSinglePolicyVersion1Params) SetHTTPClientTransport

func (o *RetrieveSinglePolicyVersion1Params) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the retrieve single policy version 1 params

func (*RetrieveSinglePolicyVersion1Params) SetNamespace

func (o *RetrieveSinglePolicyVersion1Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the retrieve single policy version 1 params

func (*RetrieveSinglePolicyVersion1Params) SetPolicyID

func (o *RetrieveSinglePolicyVersion1Params) SetPolicyID(policyID string)

SetPolicyID adds the policyId to the retrieve single policy version 1 params

func (*RetrieveSinglePolicyVersion1Params) SetTimeout

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

SetTimeout adds the timeout to the retrieve single policy version 1 params

func (*RetrieveSinglePolicyVersion1Params) SetVersionID

func (o *RetrieveSinglePolicyVersion1Params) SetVersionID(versionID *string)

SetVersionID adds the versionId to the retrieve single policy version 1 params

func (*RetrieveSinglePolicyVersion1Params) WithContext

WithContext adds the context to the retrieve single policy version 1 params

func (*RetrieveSinglePolicyVersion1Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the retrieve single policy version 1 params

func (*RetrieveSinglePolicyVersion1Params) WithNamespace

WithNamespace adds the namespace to the retrieve single policy version 1 params

func (*RetrieveSinglePolicyVersion1Params) WithPolicyID

WithPolicyID adds the policyID to the retrieve single policy version 1 params

func (*RetrieveSinglePolicyVersion1Params) WithTimeout

WithTimeout adds the timeout to the retrieve single policy version 1 params

func (*RetrieveSinglePolicyVersion1Params) WithVersionID

WithVersionID adds the versionID to the retrieve single policy version 1 params

func (*RetrieveSinglePolicyVersion1Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type RetrieveSinglePolicyVersion1Reader

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

RetrieveSinglePolicyVersion1Reader is a Reader for the RetrieveSinglePolicyVersion1 structure.

func (*RetrieveSinglePolicyVersion1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdatePolicyVersion1BadRequest

type UpdatePolicyVersion1BadRequest struct {
	Payload *legalclientmodels.ErrorEntity
}

UpdatePolicyVersion1BadRequest 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 NewUpdatePolicyVersion1BadRequest

func NewUpdatePolicyVersion1BadRequest() *UpdatePolicyVersion1BadRequest

NewUpdatePolicyVersion1BadRequest creates a UpdatePolicyVersion1BadRequest with default headers values

func (*UpdatePolicyVersion1BadRequest) Error

func (*UpdatePolicyVersion1BadRequest) GetPayload

func (*UpdatePolicyVersion1BadRequest) ToJSONString

func (o *UpdatePolicyVersion1BadRequest) ToJSONString() string

type UpdatePolicyVersion1Conflict

type UpdatePolicyVersion1Conflict struct {
	Payload *legalclientmodels.ErrorEntity
}

UpdatePolicyVersion1Conflict 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 NewUpdatePolicyVersion1Conflict

func NewUpdatePolicyVersion1Conflict() *UpdatePolicyVersion1Conflict

NewUpdatePolicyVersion1Conflict creates a UpdatePolicyVersion1Conflict with default headers values

func (*UpdatePolicyVersion1Conflict) Error

func (*UpdatePolicyVersion1Conflict) GetPayload

func (*UpdatePolicyVersion1Conflict) ToJSONString

func (o *UpdatePolicyVersion1Conflict) ToJSONString() string

type UpdatePolicyVersion1OK

type UpdatePolicyVersion1OK struct {
	Payload *legalclientmodels.UpdatePolicyVersionResponse
}

UpdatePolicyVersion1OK handles this case with default header values.

successful operation

func NewUpdatePolicyVersion1OK

func NewUpdatePolicyVersion1OK() *UpdatePolicyVersion1OK

NewUpdatePolicyVersion1OK creates a UpdatePolicyVersion1OK with default headers values

func (*UpdatePolicyVersion1OK) Error

func (o *UpdatePolicyVersion1OK) Error() string

func (*UpdatePolicyVersion1OK) GetPayload

func (*UpdatePolicyVersion1OK) ToJSONString

func (o *UpdatePolicyVersion1OK) ToJSONString() string

type UpdatePolicyVersion1Params

type UpdatePolicyVersion1Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *legalclientmodels.UpdatePolicyVersionRequest
	/*Namespace
	  Namespace

	*/
	Namespace string
	/*PolicyVersionID
	  Policy Version Id

	*/
	PolicyVersionID string

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

UpdatePolicyVersion1Params contains all the parameters to send to the API endpoint for the update policy version 1 operation typically these are written to a http.Request

func NewUpdatePolicyVersion1Params

func NewUpdatePolicyVersion1Params() *UpdatePolicyVersion1Params

NewUpdatePolicyVersion1Params creates a new UpdatePolicyVersion1Params object with the default values initialized.

func NewUpdatePolicyVersion1ParamsWithContext

func NewUpdatePolicyVersion1ParamsWithContext(ctx context.Context) *UpdatePolicyVersion1Params

NewUpdatePolicyVersion1ParamsWithContext creates a new UpdatePolicyVersion1Params object with the default values initialized, and the ability to set a context for a request

func NewUpdatePolicyVersion1ParamsWithHTTPClient

func NewUpdatePolicyVersion1ParamsWithHTTPClient(client *http.Client) *UpdatePolicyVersion1Params

NewUpdatePolicyVersion1ParamsWithHTTPClient creates a new UpdatePolicyVersion1Params object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdatePolicyVersion1ParamsWithTimeout

func NewUpdatePolicyVersion1ParamsWithTimeout(timeout time.Duration) *UpdatePolicyVersion1Params

NewUpdatePolicyVersion1ParamsWithTimeout creates a new UpdatePolicyVersion1Params object with the default values initialized, and the ability to set a timeout on a request

func (*UpdatePolicyVersion1Params) SetAuthInfoWriter

func (o *UpdatePolicyVersion1Params) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the update policy version 1 params

func (*UpdatePolicyVersion1Params) SetBody

SetBody adds the body to the update policy version 1 params

func (*UpdatePolicyVersion1Params) SetContext

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

SetContext adds the context to the update policy version 1 params

func (*UpdatePolicyVersion1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update policy version 1 params

func (*UpdatePolicyVersion1Params) SetHTTPClientTransport

func (o *UpdatePolicyVersion1Params) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the update policy version 1 params

func (*UpdatePolicyVersion1Params) SetNamespace

func (o *UpdatePolicyVersion1Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the update policy version 1 params

func (*UpdatePolicyVersion1Params) SetPolicyVersionID

func (o *UpdatePolicyVersion1Params) SetPolicyVersionID(policyVersionID string)

SetPolicyVersionID adds the policyVersionId to the update policy version 1 params

func (*UpdatePolicyVersion1Params) SetTimeout

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

SetTimeout adds the timeout to the update policy version 1 params

func (*UpdatePolicyVersion1Params) WithBody

WithBody adds the body to the update policy version 1 params

func (*UpdatePolicyVersion1Params) WithContext

WithContext adds the context to the update policy version 1 params

func (*UpdatePolicyVersion1Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update policy version 1 params

func (*UpdatePolicyVersion1Params) WithNamespace

func (o *UpdatePolicyVersion1Params) WithNamespace(namespace string) *UpdatePolicyVersion1Params

WithNamespace adds the namespace to the update policy version 1 params

func (*UpdatePolicyVersion1Params) WithPolicyVersionID

func (o *UpdatePolicyVersion1Params) WithPolicyVersionID(policyVersionID string) *UpdatePolicyVersion1Params

WithPolicyVersionID adds the policyVersionID to the update policy version 1 params

func (*UpdatePolicyVersion1Params) WithTimeout

WithTimeout adds the timeout to the update policy version 1 params

func (*UpdatePolicyVersion1Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdatePolicyVersion1Reader

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

UpdatePolicyVersion1Reader is a Reader for the UpdatePolicyVersion1 structure.

func (*UpdatePolicyVersion1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL