policy_versions

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 13 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 API

func (*Client) CreatePolicyVersion

CreatePolicyVersion creates a version from country specific policy

Create a version of a particular country-specific policy.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:*:LEGAL", action=1 (CREATE)</li></ul>

func (*Client) CreatePolicyVersionShort added in v0.8.0

func (a *Client) CreatePolicyVersionShort(params *CreatePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePolicyVersionCreated, error)

func (*Client) PublishPolicyVersion

PublishPolicyVersion manuallies publish a version from country specific policy

Manually publish a version of a particular country-specific policy.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:*:LEGAL", action=4 (UPDATE)</li></ul>

func (*Client) PublishPolicyVersionShort added in v0.8.0

func (a *Client) PublishPolicyVersionShort(params *PublishPolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*PublishPolicyVersionOK, error)

func (*Client) RetrievePolicyVersions

RetrievePolicyVersions bulks retrieve version of base policy

[TODO] Retrieve one or more legal policies with its versions.<br>If the basePolicyId not supplied, then retrieve only all latest policies version with localeId matched.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:*:LEGAL", action=2 (READ)</li></ul>

func (*Client) RetrievePolicyVersionsShort added in v0.8.0

func (a *Client) RetrievePolicyVersionsShort(params *RetrievePolicyVersionsParams, authInfo runtime.ClientAuthInfoWriter) (*RetrievePolicyVersionsOK, error)

func (*Client) RetrieveSinglePolicyVersion

RetrieveSinglePolicyVersion retrieves 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.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:*:LEGAL", action=2 (READ)</li></ul>

func (*Client) RetrieveSinglePolicyVersionShort added in v0.8.0

func (a *Client) RetrieveSinglePolicyVersionShort(params *RetrieveSinglePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*RetrieveSinglePolicyVersionOK, error)

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdatePolicyVersion

UpdatePolicyVersion updates a version of policy

Update a particular policy version.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:*:LEGAL", action=4 (UPDATE)</li></ul>

func (*Client) UpdatePolicyVersionShort added in v0.8.0

func (a *Client) UpdatePolicyVersionShort(params *UpdatePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePolicyVersionOK, error)

type ClientService

type ClientService interface {
	CreatePolicyVersion(params *CreatePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePolicyVersionCreated, *CreatePolicyVersionBadRequest, error)
	CreatePolicyVersionShort(params *CreatePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePolicyVersionCreated, error)
	PublishPolicyVersion(params *PublishPolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*PublishPolicyVersionOK, *PublishPolicyVersionBadRequest, error)
	PublishPolicyVersionShort(params *PublishPolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*PublishPolicyVersionOK, error)
	RetrievePolicyVersions(params *RetrievePolicyVersionsParams, authInfo runtime.ClientAuthInfoWriter) (*RetrievePolicyVersionsOK, *RetrievePolicyVersionsNotFound, error)
	RetrievePolicyVersionsShort(params *RetrievePolicyVersionsParams, authInfo runtime.ClientAuthInfoWriter) (*RetrievePolicyVersionsOK, error)
	RetrieveSinglePolicyVersion(params *RetrieveSinglePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*RetrieveSinglePolicyVersionOK, *RetrieveSinglePolicyVersionNotFound, error)
	RetrieveSinglePolicyVersionShort(params *RetrieveSinglePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*RetrieveSinglePolicyVersionOK, error)
	UpdatePolicyVersion(params *UpdatePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePolicyVersionOK, *UpdatePolicyVersionBadRequest, error)
	UpdatePolicyVersionShort(params *UpdatePolicyVersionParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePolicyVersionOK, 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 (*CreatePolicyVersionBadRequest) GetPayload

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 (*CreatePolicyVersionCreated) GetPayload

type CreatePolicyVersionParams

type CreatePolicyVersionParams struct {

	/*Body*/
	Body *legalclientmodels.CreatePolicyVersionRequest
	/*PolicyID
	  Policy Id

	*/
	PolicyID string

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

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

WithBody adds the body to the create policy version params

func (*CreatePolicyVersionParams) WithContext

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

WithTimeout adds the timeout to the create policy version params

func (*CreatePolicyVersionParams) WriteToRequest

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>40033</td><td>errors.net.accelbyte.platform.legal.invalid_policy_version</td></tr></table>

func NewPublishPolicyVersionBadRequest

func NewPublishPolicyVersionBadRequest() *PublishPolicyVersionBadRequest

NewPublishPolicyVersionBadRequest creates a PublishPolicyVersionBadRequest with default headers values

func (*PublishPolicyVersionBadRequest) Error

func (*PublishPolicyVersionBadRequest) GetPayload

type PublishPolicyVersionOK

type PublishPolicyVersionOK struct {
}

PublishPolicyVersionOK handles this case with default header values.

successful operation

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 {

	/*PolicyVersionID
	  Policy Version Id

	*/
	PolicyVersionID string
	/*ShouldNotify
	  Should Notify

	*/
	ShouldNotify *bool

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

WithContext adds the context to the publish policy version params

func (*PublishPolicyVersionParams) WithHTTPClient

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

WithTimeout adds the timeout to the publish policy version params

func (*PublishPolicyVersionParams) WriteToRequest

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 RetrievePolicyVersionsNotFound

type RetrievePolicyVersionsNotFound struct {
	Payload *legalclientmodels.ErrorEntity
}

RetrievePolicyVersionsNotFound handles this case with default header values.

<table><tr><td>NumericErrorCode</td><td>ErrorCode</td></tr><tr><td>2920</td><td>errors.net.accelbyte.platform.legal.policy_not_found</td></tr></table>

func NewRetrievePolicyVersionsNotFound

func NewRetrievePolicyVersionsNotFound() *RetrievePolicyVersionsNotFound

NewRetrievePolicyVersionsNotFound creates a RetrievePolicyVersionsNotFound with default headers values

func (*RetrievePolicyVersionsNotFound) Error

func (*RetrievePolicyVersionsNotFound) GetPayload

type RetrievePolicyVersionsOK

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

RetrievePolicyVersionsOK handles this case with default header values.

successful operation

func NewRetrievePolicyVersionsOK

func NewRetrievePolicyVersionsOK() *RetrievePolicyVersionsOK

NewRetrievePolicyVersionsOK creates a RetrievePolicyVersionsOK with default headers values

func (*RetrievePolicyVersionsOK) Error

func (o *RetrievePolicyVersionsOK) Error() string

func (*RetrievePolicyVersionsOK) GetPayload

type RetrievePolicyVersionsParams

type RetrievePolicyVersionsParams struct {

	/*BasePolicyID
	  BasePolicy Id

	*/
	BasePolicyID *string
	/*LocaleID
	  Locale Id

	*/
	LocaleID *string
	/*Namespace
	  Namespace

	*/
	Namespace *string

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

RetrievePolicyVersionsParams contains all the parameters to send to the API endpoint for the retrieve policy versions operation typically these are written to a http.Request

func NewRetrievePolicyVersionsParams

func NewRetrievePolicyVersionsParams() *RetrievePolicyVersionsParams

NewRetrievePolicyVersionsParams creates a new RetrievePolicyVersionsParams object with the default values initialized.

func NewRetrievePolicyVersionsParamsWithContext

func NewRetrievePolicyVersionsParamsWithContext(ctx context.Context) *RetrievePolicyVersionsParams

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

func NewRetrievePolicyVersionsParamsWithHTTPClient

func NewRetrievePolicyVersionsParamsWithHTTPClient(client *http.Client) *RetrievePolicyVersionsParams

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

func NewRetrievePolicyVersionsParamsWithTimeout

func NewRetrievePolicyVersionsParamsWithTimeout(timeout time.Duration) *RetrievePolicyVersionsParams

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

func (*RetrievePolicyVersionsParams) SetBasePolicyID

func (o *RetrievePolicyVersionsParams) SetBasePolicyID(basePolicyID *string)

SetBasePolicyID adds the basePolicyId to the retrieve policy versions params

func (*RetrievePolicyVersionsParams) SetContext

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

SetContext adds the context to the retrieve policy versions params

func (*RetrievePolicyVersionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the retrieve policy versions params

func (*RetrievePolicyVersionsParams) SetLocaleID

func (o *RetrievePolicyVersionsParams) SetLocaleID(localeID *string)

SetLocaleID adds the localeId to the retrieve policy versions params

func (*RetrievePolicyVersionsParams) SetNamespace

func (o *RetrievePolicyVersionsParams) SetNamespace(namespace *string)

SetNamespace adds the namespace to the retrieve policy versions params

func (*RetrievePolicyVersionsParams) SetTimeout

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

SetTimeout adds the timeout to the retrieve policy versions params

func (*RetrievePolicyVersionsParams) WithBasePolicyID

func (o *RetrievePolicyVersionsParams) WithBasePolicyID(basePolicyID *string) *RetrievePolicyVersionsParams

WithBasePolicyID adds the basePolicyID to the retrieve policy versions params

func (*RetrievePolicyVersionsParams) WithContext

WithContext adds the context to the retrieve policy versions params

func (*RetrievePolicyVersionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the retrieve policy versions params

func (*RetrievePolicyVersionsParams) WithLocaleID

WithLocaleID adds the localeID to the retrieve policy versions params

func (*RetrievePolicyVersionsParams) WithNamespace

WithNamespace adds the namespace to the retrieve policy versions params

func (*RetrievePolicyVersionsParams) WithTimeout

WithTimeout adds the timeout to the retrieve policy versions params

func (*RetrievePolicyVersionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RetrievePolicyVersionsReader

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

RetrievePolicyVersionsReader is a Reader for the RetrievePolicyVersions structure.

func (*RetrievePolicyVersionsReader) ReadResponse

func (o *RetrievePolicyVersionsReader) 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>40035</td><td>errors.net.accelbyte.platform.legal.policy_version_not_found</td></tr></table>

func NewRetrieveSinglePolicyVersionNotFound

func NewRetrieveSinglePolicyVersionNotFound() *RetrieveSinglePolicyVersionNotFound

NewRetrieveSinglePolicyVersionNotFound creates a RetrieveSinglePolicyVersionNotFound with default headers values

func (*RetrieveSinglePolicyVersionNotFound) Error

func (*RetrieveSinglePolicyVersionNotFound) GetPayload

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 (*RetrieveSinglePolicyVersionOK) GetPayload

type RetrieveSinglePolicyVersionParams

type RetrieveSinglePolicyVersionParams struct {

	/*PolicyID
	  Policy Id

	*/
	PolicyID string
	/*VersionID
	  Version Id

	*/
	VersionID *string

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

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

WithContext adds the context to the retrieve single policy version params

func (*RetrieveSinglePolicyVersionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the retrieve single policy version params

func (*RetrieveSinglePolicyVersionParams) WithPolicyID

WithPolicyID adds the policyID to the retrieve single policy version params

func (*RetrieveSinglePolicyVersionParams) WithTimeout

WithTimeout adds the timeout to the retrieve single policy version params

func (*RetrieveSinglePolicyVersionParams) WithVersionID

WithVersionID adds the versionID to the retrieve single policy version params

func (*RetrieveSinglePolicyVersionParams) WriteToRequest

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 (*UpdatePolicyVersionBadRequest) GetPayload

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

type UpdatePolicyVersionParams

type UpdatePolicyVersionParams struct {

	/*Body*/
	Body *legalclientmodels.UpdatePolicyVersionRequest
	/*PolicyVersionID
	  Policy Version Id

	*/
	PolicyVersionID string

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

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

WithBody adds the body to the update policy version params

func (*UpdatePolicyVersionParams) WithContext

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

WithTimeout adds the timeout to the update policy version params

func (*UpdatePolicyVersionParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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