rule_sets

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: 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 rule sets API

func (*Client) CreateRuleSet deprecated

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

CreateRuleSet create a match rule set Creates a new rules set.

A rule set has a name and contains arbitrary data which is meaningful to some particular match function(s) The name is used for a match pool to select the ruleset data that should be sent to the match function when matchmaking in that pool.

To use custom rules set please set enable_custom_match_function=true. Default (false).

When custom enable_custom_match_function=true, the ruleset will only validate if the rule is valid json.

func (*Client) CreateRuleSetShort

func (a *Client) CreateRuleSetShort(params *CreateRuleSetParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRuleSetCreated, error)

CreateRuleSetShort create a match rule set Creates a new rules set.

A rule set has a name and contains arbitrary data which is meaningful to some particular match function(s) The name is used for a match pool to select the ruleset data that should be sent to the match function when matchmaking in that pool.

To use custom rules set please set enable_custom_match_function=true. Default (false).

When custom enable_custom_match_function=true, the ruleset will only validate if the rule is valid json.

func (*Client) DeleteRuleSet deprecated

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

DeleteRuleSet delete a rule set Deletes an existing rule set.

func (*Client) DeleteRuleSetShort

func (a *Client) DeleteRuleSetShort(params *DeleteRuleSetParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRuleSetNoContent, error)

DeleteRuleSetShort delete a rule set Deletes an existing rule set.

func (*Client) RuleSetDetails deprecated

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

RuleSetDetails get details for a specific rule set Get details for a specific rule set

func (*Client) RuleSetDetailsShort

func (a *Client) RuleSetDetailsShort(params *RuleSetDetailsParams, authInfo runtime.ClientAuthInfoWriter) (*RuleSetDetailsOK, error)

RuleSetDetailsShort get details for a specific rule set Get details for a specific rule set

func (*Client) RuleSetList deprecated

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

RuleSetList list existing rule sets List rule sets.

func (*Client) RuleSetListShort

func (a *Client) RuleSetListShort(params *RuleSetListParams, authInfo runtime.ClientAuthInfoWriter) (*RuleSetListOK, error)

RuleSetListShort list existing rule sets List rule sets.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateRuleSet deprecated

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

UpdateRuleSet update a match rule set Updates an existing matchmaking rule set.

To use custom rules set please set enable_custom_match_function=true. Default (false).

When custom enable_custom_match_function=true, the ruleset will only validate if the rule is valid json.

func (*Client) UpdateRuleSetShort

func (a *Client) UpdateRuleSetShort(params *UpdateRuleSetParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRuleSetOK, error)

UpdateRuleSetShort update a match rule set Updates an existing matchmaking rule set.

To use custom rules set please set enable_custom_match_function=true. Default (false).

When custom enable_custom_match_function=true, the ruleset will only validate if the rule is valid json.

type ClientService

type ClientService interface {
	RuleSetList(params *RuleSetListParams, authInfo runtime.ClientAuthInfoWriter) (*RuleSetListOK, *RuleSetListUnauthorized, *RuleSetListForbidden, *RuleSetListInternalServerError, error)
	RuleSetListShort(params *RuleSetListParams, authInfo runtime.ClientAuthInfoWriter) (*RuleSetListOK, error)
	CreateRuleSet(params *CreateRuleSetParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRuleSetCreated, *CreateRuleSetBadRequest, *CreateRuleSetUnauthorized, *CreateRuleSetForbidden, *CreateRuleSetConflict, *CreateRuleSetInternalServerError, error)
	CreateRuleSetShort(params *CreateRuleSetParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRuleSetCreated, error)
	RuleSetDetails(params *RuleSetDetailsParams, authInfo runtime.ClientAuthInfoWriter) (*RuleSetDetailsOK, *RuleSetDetailsUnauthorized, *RuleSetDetailsForbidden, *RuleSetDetailsInternalServerError, error)
	RuleSetDetailsShort(params *RuleSetDetailsParams, authInfo runtime.ClientAuthInfoWriter) (*RuleSetDetailsOK, error)
	UpdateRuleSet(params *UpdateRuleSetParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRuleSetOK, *UpdateRuleSetBadRequest, *UpdateRuleSetUnauthorized, *UpdateRuleSetForbidden, *UpdateRuleSetNotFound, *UpdateRuleSetInternalServerError, error)
	UpdateRuleSetShort(params *UpdateRuleSetParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRuleSetOK, error)
	DeleteRuleSet(params *DeleteRuleSetParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRuleSetNoContent, *DeleteRuleSetUnauthorized, *DeleteRuleSetForbidden, *DeleteRuleSetNotFound, *DeleteRuleSetInternalServerError, error)
	DeleteRuleSetShort(params *DeleteRuleSetParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRuleSetNoContent, 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 rule sets API client.

type CreateRuleSetBadRequest

type CreateRuleSetBadRequest struct {
	Payload *match2clientmodels.ResponseError
}

CreateRuleSetBadRequest handles this case with default header values.

Bad Request

func NewCreateRuleSetBadRequest

func NewCreateRuleSetBadRequest() *CreateRuleSetBadRequest

NewCreateRuleSetBadRequest creates a CreateRuleSetBadRequest with default headers values

func (*CreateRuleSetBadRequest) Error

func (o *CreateRuleSetBadRequest) Error() string

func (*CreateRuleSetBadRequest) GetPayload

func (*CreateRuleSetBadRequest) ToJSONString

func (o *CreateRuleSetBadRequest) ToJSONString() string

type CreateRuleSetConflict

type CreateRuleSetConflict struct {
	Payload *match2clientmodels.ResponseError
}

CreateRuleSetConflict handles this case with default header values.

Conflict

func NewCreateRuleSetConflict

func NewCreateRuleSetConflict() *CreateRuleSetConflict

NewCreateRuleSetConflict creates a CreateRuleSetConflict with default headers values

func (*CreateRuleSetConflict) Error

func (o *CreateRuleSetConflict) Error() string

func (*CreateRuleSetConflict) GetPayload

func (*CreateRuleSetConflict) ToJSONString

func (o *CreateRuleSetConflict) ToJSONString() string

type CreateRuleSetCreated

type CreateRuleSetCreated struct {
}

CreateRuleSetCreated handles this case with default header values.

Created

func NewCreateRuleSetCreated

func NewCreateRuleSetCreated() *CreateRuleSetCreated

NewCreateRuleSetCreated creates a CreateRuleSetCreated with default headers values

func (*CreateRuleSetCreated) Error

func (o *CreateRuleSetCreated) Error() string

type CreateRuleSetForbidden

type CreateRuleSetForbidden struct {
	Payload *match2clientmodels.ResponseError
}

CreateRuleSetForbidden handles this case with default header values.

Forbidden

func NewCreateRuleSetForbidden

func NewCreateRuleSetForbidden() *CreateRuleSetForbidden

NewCreateRuleSetForbidden creates a CreateRuleSetForbidden with default headers values

func (*CreateRuleSetForbidden) Error

func (o *CreateRuleSetForbidden) Error() string

func (*CreateRuleSetForbidden) GetPayload

func (*CreateRuleSetForbidden) ToJSONString

func (o *CreateRuleSetForbidden) ToJSONString() string

type CreateRuleSetInternalServerError

type CreateRuleSetInternalServerError struct {
	Payload *match2clientmodels.ResponseError
}

CreateRuleSetInternalServerError handles this case with default header values.

Internal Server Error

func NewCreateRuleSetInternalServerError

func NewCreateRuleSetInternalServerError() *CreateRuleSetInternalServerError

NewCreateRuleSetInternalServerError creates a CreateRuleSetInternalServerError with default headers values

func (*CreateRuleSetInternalServerError) Error

func (*CreateRuleSetInternalServerError) GetPayload

func (*CreateRuleSetInternalServerError) ToJSONString

func (o *CreateRuleSetInternalServerError) ToJSONString() string

type CreateRuleSetParams

type CreateRuleSetParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *match2clientmodels.APIRuleSetPayload
	/*Namespace
	  namespace of the game

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

CreateRuleSetParams contains all the parameters to send to the API endpoint for the create rule set operation typically these are written to a http.Request

func NewCreateRuleSetParams

func NewCreateRuleSetParams() *CreateRuleSetParams

NewCreateRuleSetParams creates a new CreateRuleSetParams object with the default values initialized.

func NewCreateRuleSetParamsWithContext

func NewCreateRuleSetParamsWithContext(ctx context.Context) *CreateRuleSetParams

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

func NewCreateRuleSetParamsWithHTTPClient

func NewCreateRuleSetParamsWithHTTPClient(client *http.Client) *CreateRuleSetParams

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

func NewCreateRuleSetParamsWithTimeout

func NewCreateRuleSetParamsWithTimeout(timeout time.Duration) *CreateRuleSetParams

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

func (*CreateRuleSetParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the create rule set params

func (*CreateRuleSetParams) SetBody

SetBody adds the body to the create rule set params

func (*CreateRuleSetParams) SetContext

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

SetContext adds the context to the create rule set params

func (*CreateRuleSetParams) SetFlightId added in v0.63.0

func (o *CreateRuleSetParams) SetFlightId(flightId string)

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

func (*CreateRuleSetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create rule set params

func (*CreateRuleSetParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the create rule set params

func (*CreateRuleSetParams) SetNamespace

func (o *CreateRuleSetParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the create rule set params

func (*CreateRuleSetParams) SetTimeout

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

SetTimeout adds the timeout to the create rule set params

func (*CreateRuleSetParams) WithBody

WithBody adds the body to the create rule set params

func (*CreateRuleSetParams) WithContext

WithContext adds the context to the create rule set params

func (*CreateRuleSetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create rule set params

func (*CreateRuleSetParams) WithNamespace

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

WithNamespace adds the namespace to the create rule set params

func (*CreateRuleSetParams) WithTimeout

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

WithTimeout adds the timeout to the create rule set params

func (*CreateRuleSetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateRuleSetReader

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

CreateRuleSetReader is a Reader for the CreateRuleSet structure.

func (*CreateRuleSetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateRuleSetUnauthorized

type CreateRuleSetUnauthorized struct {
	Payload *match2clientmodels.ResponseError
}

CreateRuleSetUnauthorized handles this case with default header values.

Unauthorized

func NewCreateRuleSetUnauthorized

func NewCreateRuleSetUnauthorized() *CreateRuleSetUnauthorized

NewCreateRuleSetUnauthorized creates a CreateRuleSetUnauthorized with default headers values

func (*CreateRuleSetUnauthorized) Error

func (o *CreateRuleSetUnauthorized) Error() string

func (*CreateRuleSetUnauthorized) GetPayload

func (*CreateRuleSetUnauthorized) ToJSONString

func (o *CreateRuleSetUnauthorized) ToJSONString() string

type DeleteRuleSetForbidden

type DeleteRuleSetForbidden struct {
	Payload *match2clientmodels.ResponseError
}

DeleteRuleSetForbidden handles this case with default header values.

Forbidden

func NewDeleteRuleSetForbidden

func NewDeleteRuleSetForbidden() *DeleteRuleSetForbidden

NewDeleteRuleSetForbidden creates a DeleteRuleSetForbidden with default headers values

func (*DeleteRuleSetForbidden) Error

func (o *DeleteRuleSetForbidden) Error() string

func (*DeleteRuleSetForbidden) GetPayload

func (*DeleteRuleSetForbidden) ToJSONString

func (o *DeleteRuleSetForbidden) ToJSONString() string

type DeleteRuleSetInternalServerError

type DeleteRuleSetInternalServerError struct {
	Payload *match2clientmodels.ResponseError
}

DeleteRuleSetInternalServerError handles this case with default header values.

Internal Server Error

func NewDeleteRuleSetInternalServerError

func NewDeleteRuleSetInternalServerError() *DeleteRuleSetInternalServerError

NewDeleteRuleSetInternalServerError creates a DeleteRuleSetInternalServerError with default headers values

func (*DeleteRuleSetInternalServerError) Error

func (*DeleteRuleSetInternalServerError) GetPayload

func (*DeleteRuleSetInternalServerError) ToJSONString

func (o *DeleteRuleSetInternalServerError) ToJSONString() string

type DeleteRuleSetNoContent

type DeleteRuleSetNoContent struct {
}

DeleteRuleSetNoContent handles this case with default header values.

No Content

func NewDeleteRuleSetNoContent

func NewDeleteRuleSetNoContent() *DeleteRuleSetNoContent

NewDeleteRuleSetNoContent creates a DeleteRuleSetNoContent with default headers values

func (*DeleteRuleSetNoContent) Error

func (o *DeleteRuleSetNoContent) Error() string

type DeleteRuleSetNotFound

type DeleteRuleSetNotFound struct {
	Payload *match2clientmodels.ResponseError
}

DeleteRuleSetNotFound handles this case with default header values.

Not Found

func NewDeleteRuleSetNotFound

func NewDeleteRuleSetNotFound() *DeleteRuleSetNotFound

NewDeleteRuleSetNotFound creates a DeleteRuleSetNotFound with default headers values

func (*DeleteRuleSetNotFound) Error

func (o *DeleteRuleSetNotFound) Error() string

func (*DeleteRuleSetNotFound) GetPayload

func (*DeleteRuleSetNotFound) ToJSONString

func (o *DeleteRuleSetNotFound) ToJSONString() string

type DeleteRuleSetParams

type DeleteRuleSetParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*Ruleset
	  Name of the rule set

	*/
	Ruleset 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
}

DeleteRuleSetParams contains all the parameters to send to the API endpoint for the delete rule set operation typically these are written to a http.Request

func NewDeleteRuleSetParams

func NewDeleteRuleSetParams() *DeleteRuleSetParams

NewDeleteRuleSetParams creates a new DeleteRuleSetParams object with the default values initialized.

func NewDeleteRuleSetParamsWithContext

func NewDeleteRuleSetParamsWithContext(ctx context.Context) *DeleteRuleSetParams

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

func NewDeleteRuleSetParamsWithHTTPClient

func NewDeleteRuleSetParamsWithHTTPClient(client *http.Client) *DeleteRuleSetParams

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

func NewDeleteRuleSetParamsWithTimeout

func NewDeleteRuleSetParamsWithTimeout(timeout time.Duration) *DeleteRuleSetParams

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

func (*DeleteRuleSetParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the delete rule set params

func (*DeleteRuleSetParams) SetContext

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

SetContext adds the context to the delete rule set params

func (*DeleteRuleSetParams) SetFlightId added in v0.63.0

func (o *DeleteRuleSetParams) SetFlightId(flightId string)

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

func (*DeleteRuleSetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete rule set params

func (*DeleteRuleSetParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the delete rule set params

func (*DeleteRuleSetParams) SetNamespace

func (o *DeleteRuleSetParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete rule set params

func (*DeleteRuleSetParams) SetRuleset

func (o *DeleteRuleSetParams) SetRuleset(ruleset string)

SetRuleset adds the ruleset to the delete rule set params

func (*DeleteRuleSetParams) SetTimeout

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

SetTimeout adds the timeout to the delete rule set params

func (*DeleteRuleSetParams) WithContext

WithContext adds the context to the delete rule set params

func (*DeleteRuleSetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete rule set params

func (*DeleteRuleSetParams) WithNamespace

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

WithNamespace adds the namespace to the delete rule set params

func (*DeleteRuleSetParams) WithRuleset

func (o *DeleteRuleSetParams) WithRuleset(ruleset string) *DeleteRuleSetParams

WithRuleset adds the ruleset to the delete rule set params

func (*DeleteRuleSetParams) WithTimeout

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

WithTimeout adds the timeout to the delete rule set params

func (*DeleteRuleSetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteRuleSetReader

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

DeleteRuleSetReader is a Reader for the DeleteRuleSet structure.

func (*DeleteRuleSetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteRuleSetUnauthorized

type DeleteRuleSetUnauthorized struct {
	Payload *match2clientmodels.ResponseError
}

DeleteRuleSetUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteRuleSetUnauthorized

func NewDeleteRuleSetUnauthorized() *DeleteRuleSetUnauthorized

NewDeleteRuleSetUnauthorized creates a DeleteRuleSetUnauthorized with default headers values

func (*DeleteRuleSetUnauthorized) Error

func (o *DeleteRuleSetUnauthorized) Error() string

func (*DeleteRuleSetUnauthorized) GetPayload

func (*DeleteRuleSetUnauthorized) ToJSONString

func (o *DeleteRuleSetUnauthorized) ToJSONString() string

type RuleSetDetailsForbidden

type RuleSetDetailsForbidden struct {
	Payload *match2clientmodels.ResponseError
}

RuleSetDetailsForbidden handles this case with default header values.

Forbidden

func NewRuleSetDetailsForbidden

func NewRuleSetDetailsForbidden() *RuleSetDetailsForbidden

NewRuleSetDetailsForbidden creates a RuleSetDetailsForbidden with default headers values

func (*RuleSetDetailsForbidden) Error

func (o *RuleSetDetailsForbidden) Error() string

func (*RuleSetDetailsForbidden) GetPayload

func (*RuleSetDetailsForbidden) ToJSONString

func (o *RuleSetDetailsForbidden) ToJSONString() string

type RuleSetDetailsInternalServerError

type RuleSetDetailsInternalServerError struct {
	Payload *match2clientmodels.ResponseError
}

RuleSetDetailsInternalServerError handles this case with default header values.

Internal Server Error

func NewRuleSetDetailsInternalServerError

func NewRuleSetDetailsInternalServerError() *RuleSetDetailsInternalServerError

NewRuleSetDetailsInternalServerError creates a RuleSetDetailsInternalServerError with default headers values

func (*RuleSetDetailsInternalServerError) Error

func (*RuleSetDetailsInternalServerError) GetPayload

func (*RuleSetDetailsInternalServerError) ToJSONString

func (o *RuleSetDetailsInternalServerError) ToJSONString() string

type RuleSetDetailsOK

type RuleSetDetailsOK struct {
	Payload *match2clientmodels.APIRuleSetPayload
}

RuleSetDetailsOK handles this case with default header values.

Created

func NewRuleSetDetailsOK

func NewRuleSetDetailsOK() *RuleSetDetailsOK

NewRuleSetDetailsOK creates a RuleSetDetailsOK with default headers values

func (*RuleSetDetailsOK) Error

func (o *RuleSetDetailsOK) Error() string

func (*RuleSetDetailsOK) GetPayload

func (*RuleSetDetailsOK) ToJSONString

func (o *RuleSetDetailsOK) ToJSONString() string

type RuleSetDetailsParams

type RuleSetDetailsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*Ruleset
	  Name of the rule set

	*/
	Ruleset 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
}

RuleSetDetailsParams contains all the parameters to send to the API endpoint for the rule set details operation typically these are written to a http.Request

func NewRuleSetDetailsParams

func NewRuleSetDetailsParams() *RuleSetDetailsParams

NewRuleSetDetailsParams creates a new RuleSetDetailsParams object with the default values initialized.

func NewRuleSetDetailsParamsWithContext

func NewRuleSetDetailsParamsWithContext(ctx context.Context) *RuleSetDetailsParams

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

func NewRuleSetDetailsParamsWithHTTPClient

func NewRuleSetDetailsParamsWithHTTPClient(client *http.Client) *RuleSetDetailsParams

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

func NewRuleSetDetailsParamsWithTimeout

func NewRuleSetDetailsParamsWithTimeout(timeout time.Duration) *RuleSetDetailsParams

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

func (*RuleSetDetailsParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the rule set details params

func (*RuleSetDetailsParams) SetContext

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

SetContext adds the context to the rule set details params

func (*RuleSetDetailsParams) SetFlightId added in v0.63.0

func (o *RuleSetDetailsParams) SetFlightId(flightId string)

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

func (*RuleSetDetailsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the rule set details params

func (*RuleSetDetailsParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the rule set details params

func (*RuleSetDetailsParams) SetNamespace

func (o *RuleSetDetailsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the rule set details params

func (*RuleSetDetailsParams) SetRuleset

func (o *RuleSetDetailsParams) SetRuleset(ruleset string)

SetRuleset adds the ruleset to the rule set details params

func (*RuleSetDetailsParams) SetTimeout

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

SetTimeout adds the timeout to the rule set details params

func (*RuleSetDetailsParams) WithContext

WithContext adds the context to the rule set details params

func (*RuleSetDetailsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the rule set details params

func (*RuleSetDetailsParams) WithNamespace

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

WithNamespace adds the namespace to the rule set details params

func (*RuleSetDetailsParams) WithRuleset

func (o *RuleSetDetailsParams) WithRuleset(ruleset string) *RuleSetDetailsParams

WithRuleset adds the ruleset to the rule set details params

func (*RuleSetDetailsParams) WithTimeout

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

WithTimeout adds the timeout to the rule set details params

func (*RuleSetDetailsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RuleSetDetailsReader

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

RuleSetDetailsReader is a Reader for the RuleSetDetails structure.

func (*RuleSetDetailsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RuleSetDetailsUnauthorized

type RuleSetDetailsUnauthorized struct {
	Payload *match2clientmodels.ResponseError
}

RuleSetDetailsUnauthorized handles this case with default header values.

Unauthorized

func NewRuleSetDetailsUnauthorized

func NewRuleSetDetailsUnauthorized() *RuleSetDetailsUnauthorized

NewRuleSetDetailsUnauthorized creates a RuleSetDetailsUnauthorized with default headers values

func (*RuleSetDetailsUnauthorized) Error

func (*RuleSetDetailsUnauthorized) GetPayload

func (*RuleSetDetailsUnauthorized) ToJSONString

func (o *RuleSetDetailsUnauthorized) ToJSONString() string

type RuleSetListForbidden

type RuleSetListForbidden struct {
	Payload *match2clientmodels.ResponseError
}

RuleSetListForbidden handles this case with default header values.

Forbidden

func NewRuleSetListForbidden

func NewRuleSetListForbidden() *RuleSetListForbidden

NewRuleSetListForbidden creates a RuleSetListForbidden with default headers values

func (*RuleSetListForbidden) Error

func (o *RuleSetListForbidden) Error() string

func (*RuleSetListForbidden) GetPayload

func (*RuleSetListForbidden) ToJSONString

func (o *RuleSetListForbidden) ToJSONString() string

type RuleSetListInternalServerError

type RuleSetListInternalServerError struct {
	Payload *match2clientmodels.ResponseError
}

RuleSetListInternalServerError handles this case with default header values.

Internal Server Error

func NewRuleSetListInternalServerError

func NewRuleSetListInternalServerError() *RuleSetListInternalServerError

NewRuleSetListInternalServerError creates a RuleSetListInternalServerError with default headers values

func (*RuleSetListInternalServerError) Error

func (*RuleSetListInternalServerError) GetPayload

func (*RuleSetListInternalServerError) ToJSONString

func (o *RuleSetListInternalServerError) ToJSONString() string

type RuleSetListOK

type RuleSetListOK struct {
	Payload *match2clientmodels.APIListRuleSetsResponse
}

RuleSetListOK handles this case with default header values.

Created

func NewRuleSetListOK

func NewRuleSetListOK() *RuleSetListOK

NewRuleSetListOK creates a RuleSetListOK with default headers values

func (*RuleSetListOK) Error

func (o *RuleSetListOK) Error() string

func (*RuleSetListOK) GetPayload

func (*RuleSetListOK) ToJSONString

func (o *RuleSetListOK) ToJSONString() string

type RuleSetListParams

type RuleSetListParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*Limit
	  Pagination limit

	*/
	Limit *int64
	/*Name
	  Rule Set name

	*/
	Name *string
	/*Offset
	  Pagination offset

	*/
	Offset *int64

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

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

RuleSetListParams contains all the parameters to send to the API endpoint for the rule set list operation typically these are written to a http.Request

func NewRuleSetListParams

func NewRuleSetListParams() *RuleSetListParams

NewRuleSetListParams creates a new RuleSetListParams object with the default values initialized.

func NewRuleSetListParamsWithContext

func NewRuleSetListParamsWithContext(ctx context.Context) *RuleSetListParams

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

func NewRuleSetListParamsWithHTTPClient

func NewRuleSetListParamsWithHTTPClient(client *http.Client) *RuleSetListParams

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

func NewRuleSetListParamsWithTimeout

func NewRuleSetListParamsWithTimeout(timeout time.Duration) *RuleSetListParams

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

func (*RuleSetListParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the rule set list params

func (*RuleSetListParams) SetContext

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

SetContext adds the context to the rule set list params

func (*RuleSetListParams) SetFlightId added in v0.63.0

func (o *RuleSetListParams) SetFlightId(flightId string)

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

func (*RuleSetListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the rule set list params

func (*RuleSetListParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the rule set list params

func (*RuleSetListParams) SetLimit

func (o *RuleSetListParams) SetLimit(limit *int64)

SetLimit adds the limit to the rule set list params

func (*RuleSetListParams) SetName added in v0.49.0

func (o *RuleSetListParams) SetName(name *string)

SetName adds the name to the rule set list params

func (*RuleSetListParams) SetNamespace

func (o *RuleSetListParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the rule set list params

func (*RuleSetListParams) SetOffset

func (o *RuleSetListParams) SetOffset(offset *int64)

SetOffset adds the offset to the rule set list params

func (*RuleSetListParams) SetTimeout

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

SetTimeout adds the timeout to the rule set list params

func (*RuleSetListParams) WithContext

func (o *RuleSetListParams) WithContext(ctx context.Context) *RuleSetListParams

WithContext adds the context to the rule set list params

func (*RuleSetListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the rule set list params

func (*RuleSetListParams) WithLimit

func (o *RuleSetListParams) WithLimit(limit *int64) *RuleSetListParams

WithLimit adds the limit to the rule set list params

func (*RuleSetListParams) WithName added in v0.49.0

func (o *RuleSetListParams) WithName(name *string) *RuleSetListParams

WithName adds the name to the rule set list params

func (*RuleSetListParams) WithNamespace

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

WithNamespace adds the namespace to the rule set list params

func (*RuleSetListParams) WithOffset

func (o *RuleSetListParams) WithOffset(offset *int64) *RuleSetListParams

WithOffset adds the offset to the rule set list params

func (*RuleSetListParams) WithTimeout

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

WithTimeout adds the timeout to the rule set list params

func (*RuleSetListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RuleSetListReader

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

RuleSetListReader is a Reader for the RuleSetList structure.

func (*RuleSetListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RuleSetListUnauthorized

type RuleSetListUnauthorized struct {
	Payload *match2clientmodels.ResponseError
}

RuleSetListUnauthorized handles this case with default header values.

Unauthorized

func NewRuleSetListUnauthorized

func NewRuleSetListUnauthorized() *RuleSetListUnauthorized

NewRuleSetListUnauthorized creates a RuleSetListUnauthorized with default headers values

func (*RuleSetListUnauthorized) Error

func (o *RuleSetListUnauthorized) Error() string

func (*RuleSetListUnauthorized) GetPayload

func (*RuleSetListUnauthorized) ToJSONString

func (o *RuleSetListUnauthorized) ToJSONString() string

type UpdateRuleSetBadRequest

type UpdateRuleSetBadRequest struct {
	Payload *match2clientmodels.ResponseError
}

UpdateRuleSetBadRequest handles this case with default header values.

Bad Request

func NewUpdateRuleSetBadRequest

func NewUpdateRuleSetBadRequest() *UpdateRuleSetBadRequest

NewUpdateRuleSetBadRequest creates a UpdateRuleSetBadRequest with default headers values

func (*UpdateRuleSetBadRequest) Error

func (o *UpdateRuleSetBadRequest) Error() string

func (*UpdateRuleSetBadRequest) GetPayload

func (*UpdateRuleSetBadRequest) ToJSONString

func (o *UpdateRuleSetBadRequest) ToJSONString() string

type UpdateRuleSetForbidden

type UpdateRuleSetForbidden struct {
	Payload *match2clientmodels.ResponseError
}

UpdateRuleSetForbidden handles this case with default header values.

Forbidden

func NewUpdateRuleSetForbidden

func NewUpdateRuleSetForbidden() *UpdateRuleSetForbidden

NewUpdateRuleSetForbidden creates a UpdateRuleSetForbidden with default headers values

func (*UpdateRuleSetForbidden) Error

func (o *UpdateRuleSetForbidden) Error() string

func (*UpdateRuleSetForbidden) GetPayload

func (*UpdateRuleSetForbidden) ToJSONString

func (o *UpdateRuleSetForbidden) ToJSONString() string

type UpdateRuleSetInternalServerError

type UpdateRuleSetInternalServerError struct {
	Payload *match2clientmodels.ResponseError
}

UpdateRuleSetInternalServerError handles this case with default header values.

Internal Server Error

func NewUpdateRuleSetInternalServerError

func NewUpdateRuleSetInternalServerError() *UpdateRuleSetInternalServerError

NewUpdateRuleSetInternalServerError creates a UpdateRuleSetInternalServerError with default headers values

func (*UpdateRuleSetInternalServerError) Error

func (*UpdateRuleSetInternalServerError) GetPayload

func (*UpdateRuleSetInternalServerError) ToJSONString

func (o *UpdateRuleSetInternalServerError) ToJSONString() string

type UpdateRuleSetNotFound

type UpdateRuleSetNotFound struct {
	Payload *match2clientmodels.ResponseError
}

UpdateRuleSetNotFound handles this case with default header values.

Forbidden

func NewUpdateRuleSetNotFound

func NewUpdateRuleSetNotFound() *UpdateRuleSetNotFound

NewUpdateRuleSetNotFound creates a UpdateRuleSetNotFound with default headers values

func (*UpdateRuleSetNotFound) Error

func (o *UpdateRuleSetNotFound) Error() string

func (*UpdateRuleSetNotFound) GetPayload

func (*UpdateRuleSetNotFound) ToJSONString

func (o *UpdateRuleSetNotFound) ToJSONString() string

type UpdateRuleSetOK

type UpdateRuleSetOK struct {
	Payload *match2clientmodels.APIRuleSetPayload
}

UpdateRuleSetOK handles this case with default header values.

OK

func NewUpdateRuleSetOK

func NewUpdateRuleSetOK() *UpdateRuleSetOK

NewUpdateRuleSetOK creates a UpdateRuleSetOK with default headers values

func (*UpdateRuleSetOK) Error

func (o *UpdateRuleSetOK) Error() string

func (*UpdateRuleSetOK) GetPayload

func (*UpdateRuleSetOK) ToJSONString

func (o *UpdateRuleSetOK) ToJSONString() string

type UpdateRuleSetParams

type UpdateRuleSetParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *match2clientmodels.APIRuleSetPayload
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*Ruleset
	  Name of the match rule set

	*/
	Ruleset 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
}

UpdateRuleSetParams contains all the parameters to send to the API endpoint for the update rule set operation typically these are written to a http.Request

func NewUpdateRuleSetParams

func NewUpdateRuleSetParams() *UpdateRuleSetParams

NewUpdateRuleSetParams creates a new UpdateRuleSetParams object with the default values initialized.

func NewUpdateRuleSetParamsWithContext

func NewUpdateRuleSetParamsWithContext(ctx context.Context) *UpdateRuleSetParams

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

func NewUpdateRuleSetParamsWithHTTPClient

func NewUpdateRuleSetParamsWithHTTPClient(client *http.Client) *UpdateRuleSetParams

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

func NewUpdateRuleSetParamsWithTimeout

func NewUpdateRuleSetParamsWithTimeout(timeout time.Duration) *UpdateRuleSetParams

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

func (*UpdateRuleSetParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the update rule set params

func (*UpdateRuleSetParams) SetBody

SetBody adds the body to the update rule set params

func (*UpdateRuleSetParams) SetContext

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

SetContext adds the context to the update rule set params

func (*UpdateRuleSetParams) SetFlightId added in v0.63.0

func (o *UpdateRuleSetParams) SetFlightId(flightId string)

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

func (*UpdateRuleSetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update rule set params

func (*UpdateRuleSetParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the update rule set params

func (*UpdateRuleSetParams) SetNamespace

func (o *UpdateRuleSetParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update rule set params

func (*UpdateRuleSetParams) SetRuleset

func (o *UpdateRuleSetParams) SetRuleset(ruleset string)

SetRuleset adds the ruleset to the update rule set params

func (*UpdateRuleSetParams) SetTimeout

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

SetTimeout adds the timeout to the update rule set params

func (*UpdateRuleSetParams) WithBody

WithBody adds the body to the update rule set params

func (*UpdateRuleSetParams) WithContext

WithContext adds the context to the update rule set params

func (*UpdateRuleSetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update rule set params

func (*UpdateRuleSetParams) WithNamespace

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

WithNamespace adds the namespace to the update rule set params

func (*UpdateRuleSetParams) WithRuleset

func (o *UpdateRuleSetParams) WithRuleset(ruleset string) *UpdateRuleSetParams

WithRuleset adds the ruleset to the update rule set params

func (*UpdateRuleSetParams) WithTimeout

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

WithTimeout adds the timeout to the update rule set params

func (*UpdateRuleSetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateRuleSetReader

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

UpdateRuleSetReader is a Reader for the UpdateRuleSet structure.

func (*UpdateRuleSetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateRuleSetUnauthorized

type UpdateRuleSetUnauthorized struct {
	Payload *match2clientmodels.ResponseError
}

UpdateRuleSetUnauthorized handles this case with default header values.

Unauthorized

func NewUpdateRuleSetUnauthorized

func NewUpdateRuleSetUnauthorized() *UpdateRuleSetUnauthorized

NewUpdateRuleSetUnauthorized creates a UpdateRuleSetUnauthorized with default headers values

func (*UpdateRuleSetUnauthorized) Error

func (o *UpdateRuleSetUnauthorized) Error() string

func (*UpdateRuleSetUnauthorized) GetPayload

func (*UpdateRuleSetUnauthorized) ToJSONString

func (o *UpdateRuleSetUnauthorized) ToJSONString() string

Jump to

Keyboard shortcuts

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