policies_with_namespace

package
v0.68.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 15 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 policies with namespace API

func (*Client) SetDefaultPolicy3 deprecated

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

SetDefaultPolicy3 set default policy Update a policy to be the default. Other detail info:

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

func (*Client) SetDefaultPolicy3Short

func (a *Client) SetDefaultPolicy3Short(params *SetDefaultPolicy3Params, authInfo runtime.ClientAuthInfoWriter) (*SetDefaultPolicy3OK, error)

SetDefaultPolicy3Short set default policy Update a policy to be the default. Other detail info:

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

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdatePolicy1 deprecated

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

UpdatePolicy1 update country-specific policy Update country-specific policy. Other detail info:

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

func (*Client) UpdatePolicy1Short

func (a *Client) UpdatePolicy1Short(params *UpdatePolicy1Params, authInfo runtime.ClientAuthInfoWriter) (*UpdatePolicy1OK, error)

UpdatePolicy1Short update country-specific policy Update country-specific policy. Other detail info:

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

type ClientService

type ClientService interface {
	UpdatePolicy1(params *UpdatePolicy1Params, authInfo runtime.ClientAuthInfoWriter) (*UpdatePolicy1OK, *UpdatePolicy1BadRequest, error)
	UpdatePolicy1Short(params *UpdatePolicy1Params, authInfo runtime.ClientAuthInfoWriter) (*UpdatePolicy1OK, error)
	SetDefaultPolicy3(params *SetDefaultPolicy3Params, authInfo runtime.ClientAuthInfoWriter) (*SetDefaultPolicy3OK, *SetDefaultPolicy3BadRequest, error)
	SetDefaultPolicy3Short(params *SetDefaultPolicy3Params, authInfo runtime.ClientAuthInfoWriter) (*SetDefaultPolicy3OK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new policies with namespace API client.

type SetDefaultPolicy3BadRequest

type SetDefaultPolicy3BadRequest struct {
	Payload *legalclientmodels.ErrorEntity
}

SetDefaultPolicy3BadRequest handles this case with default header values.

<table><tr><td>NumericErrorCode</td><td>ErrorCode</td></tr><tr><td>40033</td><td>errors.net.accelbyte.platform.legal.invalid_policy_id</td></tr></table>

func NewSetDefaultPolicy3BadRequest

func NewSetDefaultPolicy3BadRequest() *SetDefaultPolicy3BadRequest

NewSetDefaultPolicy3BadRequest creates a SetDefaultPolicy3BadRequest with default headers values

func (*SetDefaultPolicy3BadRequest) Error

func (*SetDefaultPolicy3BadRequest) GetPayload

func (*SetDefaultPolicy3BadRequest) ToJSONString

func (o *SetDefaultPolicy3BadRequest) ToJSONString() string

type SetDefaultPolicy3OK

type SetDefaultPolicy3OK struct {
}

SetDefaultPolicy3OK handles this case with default header values.

operation successful

func NewSetDefaultPolicy3OK

func NewSetDefaultPolicy3OK() *SetDefaultPolicy3OK

NewSetDefaultPolicy3OK creates a SetDefaultPolicy3OK with default headers values

func (*SetDefaultPolicy3OK) Error

func (o *SetDefaultPolicy3OK) Error() string

type SetDefaultPolicy3Params

type SetDefaultPolicy3Params struct {

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

	*/
	Namespace string
	/*PolicyID
	  Policy Id

	*/
	PolicyID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

SetDefaultPolicy3Params contains all the parameters to send to the API endpoint for the set default policy 3 operation typically these are written to a http.Request

func NewSetDefaultPolicy3Params

func NewSetDefaultPolicy3Params() *SetDefaultPolicy3Params

NewSetDefaultPolicy3Params creates a new SetDefaultPolicy3Params object with the default values initialized.

func NewSetDefaultPolicy3ParamsWithContext

func NewSetDefaultPolicy3ParamsWithContext(ctx context.Context) *SetDefaultPolicy3Params

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

func NewSetDefaultPolicy3ParamsWithHTTPClient

func NewSetDefaultPolicy3ParamsWithHTTPClient(client *http.Client) *SetDefaultPolicy3Params

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

func NewSetDefaultPolicy3ParamsWithTimeout

func NewSetDefaultPolicy3ParamsWithTimeout(timeout time.Duration) *SetDefaultPolicy3Params

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

func (*SetDefaultPolicy3Params) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the set default policy 3 params

func (*SetDefaultPolicy3Params) SetContext

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

SetContext adds the context to the set default policy 3 params

func (*SetDefaultPolicy3Params) SetFlightId added in v0.63.0

func (o *SetDefaultPolicy3Params) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*SetDefaultPolicy3Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set default policy 3 params

func (*SetDefaultPolicy3Params) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the set default policy 3 params

func (*SetDefaultPolicy3Params) SetNamespace

func (o *SetDefaultPolicy3Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the set default policy 3 params

func (*SetDefaultPolicy3Params) SetPolicyID

func (o *SetDefaultPolicy3Params) SetPolicyID(policyID string)

SetPolicyID adds the policyId to the set default policy 3 params

func (*SetDefaultPolicy3Params) SetTimeout

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

SetTimeout adds the timeout to the set default policy 3 params

func (*SetDefaultPolicy3Params) WithContext

WithContext adds the context to the set default policy 3 params

func (*SetDefaultPolicy3Params) WithHTTPClient

func (o *SetDefaultPolicy3Params) WithHTTPClient(client *http.Client) *SetDefaultPolicy3Params

WithHTTPClient adds the HTTPClient to the set default policy 3 params

func (*SetDefaultPolicy3Params) WithNamespace

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

WithNamespace adds the namespace to the set default policy 3 params

func (*SetDefaultPolicy3Params) WithPolicyID

func (o *SetDefaultPolicy3Params) WithPolicyID(policyID string) *SetDefaultPolicy3Params

WithPolicyID adds the policyID to the set default policy 3 params

func (*SetDefaultPolicy3Params) WithTimeout

WithTimeout adds the timeout to the set default policy 3 params

func (*SetDefaultPolicy3Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetDefaultPolicy3Reader

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

SetDefaultPolicy3Reader is a Reader for the SetDefaultPolicy3 structure.

func (*SetDefaultPolicy3Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdatePolicy1BadRequest

type UpdatePolicy1BadRequest struct {
	Payload *legalclientmodels.ErrorEntity
}

UpdatePolicy1BadRequest handles this case with default header values.

<table><tr><td>NumericErrorCode</td><td>ErrorCode</td></tr><tr><td>40033</td><td>errors.net.accelbyte.platform.legal.invalid_policy_id</td></tr></table>

func NewUpdatePolicy1BadRequest

func NewUpdatePolicy1BadRequest() *UpdatePolicy1BadRequest

NewUpdatePolicy1BadRequest creates a UpdatePolicy1BadRequest with default headers values

func (*UpdatePolicy1BadRequest) Error

func (o *UpdatePolicy1BadRequest) Error() string

func (*UpdatePolicy1BadRequest) GetPayload

func (*UpdatePolicy1BadRequest) ToJSONString

func (o *UpdatePolicy1BadRequest) ToJSONString() string

type UpdatePolicy1OK

type UpdatePolicy1OK struct {
}

UpdatePolicy1OK handles this case with default header values.

operation successful

func NewUpdatePolicy1OK

func NewUpdatePolicy1OK() *UpdatePolicy1OK

NewUpdatePolicy1OK creates a UpdatePolicy1OK with default headers values

func (*UpdatePolicy1OK) Error

func (o *UpdatePolicy1OK) Error() string

type UpdatePolicy1Params

type UpdatePolicy1Params struct {

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

	*/
	Namespace string
	/*PolicyID
	  Policy Id

	*/
	PolicyID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

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

func NewUpdatePolicy1Params

func NewUpdatePolicy1Params() *UpdatePolicy1Params

NewUpdatePolicy1Params creates a new UpdatePolicy1Params object with the default values initialized.

func NewUpdatePolicy1ParamsWithContext

func NewUpdatePolicy1ParamsWithContext(ctx context.Context) *UpdatePolicy1Params

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

func NewUpdatePolicy1ParamsWithHTTPClient

func NewUpdatePolicy1ParamsWithHTTPClient(client *http.Client) *UpdatePolicy1Params

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

func NewUpdatePolicy1ParamsWithTimeout

func NewUpdatePolicy1ParamsWithTimeout(timeout time.Duration) *UpdatePolicy1Params

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

func (*UpdatePolicy1Params) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the update policy 1 params

func (*UpdatePolicy1Params) SetBody

SetBody adds the body to the update policy 1 params

func (*UpdatePolicy1Params) SetContext

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

SetContext adds the context to the update policy 1 params

func (*UpdatePolicy1Params) SetFlightId added in v0.63.0

func (o *UpdatePolicy1Params) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*UpdatePolicy1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update policy 1 params

func (*UpdatePolicy1Params) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the update policy 1 params

func (*UpdatePolicy1Params) SetNamespace

func (o *UpdatePolicy1Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the update policy 1 params

func (*UpdatePolicy1Params) SetPolicyID

func (o *UpdatePolicy1Params) SetPolicyID(policyID string)

SetPolicyID adds the policyId to the update policy 1 params

func (*UpdatePolicy1Params) SetTimeout

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

SetTimeout adds the timeout to the update policy 1 params

func (*UpdatePolicy1Params) WithBody

WithBody adds the body to the update policy 1 params

func (*UpdatePolicy1Params) WithContext

WithContext adds the context to the update policy 1 params

func (*UpdatePolicy1Params) WithHTTPClient

func (o *UpdatePolicy1Params) WithHTTPClient(client *http.Client) *UpdatePolicy1Params

WithHTTPClient adds the HTTPClient to the update policy 1 params

func (*UpdatePolicy1Params) WithNamespace

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

WithNamespace adds the namespace to the update policy 1 params

func (*UpdatePolicy1Params) WithPolicyID

func (o *UpdatePolicy1Params) WithPolicyID(policyID string) *UpdatePolicy1Params

WithPolicyID adds the policyID to the update policy 1 params

func (*UpdatePolicy1Params) WithTimeout

func (o *UpdatePolicy1Params) WithTimeout(timeout time.Duration) *UpdatePolicy1Params

WithTimeout adds the timeout to the update policy 1 params

func (*UpdatePolicy1Params) WriteToRequest

func (o *UpdatePolicy1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdatePolicy1Reader

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

UpdatePolicy1Reader is a Reader for the UpdatePolicy1 structure.

func (*UpdatePolicy1Reader) ReadResponse

func (o *UpdatePolicy1Reader) 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