Help us shape the future of Go! Take the 2026 Go Developer Survey

platform

package
v0.89.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 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 platform API

func (*Client) GetPsnEntitlementOwnership deprecated

func (a *Client) GetPsnEntitlementOwnership(params *GetPsnEntitlementOwnershipParams, authInfo runtime.ClientAuthInfoWriter) (*GetPsnEntitlementOwnershipOK, error)

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

GetPsnEntitlementOwnership get user psn entitlement ownership by entitlement label Get user psn entitlement ownership by entitlement label.

func (*Client) GetPsnEntitlementOwnershipShort

func (a *Client) GetPsnEntitlementOwnershipShort(params *GetPsnEntitlementOwnershipParams, authInfo runtime.ClientAuthInfoWriter) (*GetPsnEntitlementOwnershipOK, error)

GetPsnEntitlementOwnershipShort get user psn entitlement ownership by entitlement label Get user psn entitlement ownership by entitlement label.

func (*Client) GetXboxEntitlementOwnership deprecated

func (a *Client) GetXboxEntitlementOwnership(params *GetXboxEntitlementOwnershipParams, authInfo runtime.ClientAuthInfoWriter) (*GetXboxEntitlementOwnershipOK, error)

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

GetXboxEntitlementOwnership get xbox entitlement ownership by product sku. Get Xbox entitlement ownership by product sku.

func (*Client) GetXboxEntitlementOwnershipShort

func (a *Client) GetXboxEntitlementOwnershipShort(params *GetXboxEntitlementOwnershipParams, authInfo runtime.ClientAuthInfoWriter) (*GetXboxEntitlementOwnershipOK, error)

GetXboxEntitlementOwnershipShort get xbox entitlement ownership by product sku. Get Xbox entitlement ownership by product sku.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetPsnEntitlementOwnership(params *GetPsnEntitlementOwnershipParams, authInfo runtime.ClientAuthInfoWriter) (*GetPsnEntitlementOwnershipOK, error)
	GetPsnEntitlementOwnershipShort(params *GetPsnEntitlementOwnershipParams, authInfo runtime.ClientAuthInfoWriter) (*GetPsnEntitlementOwnershipOK, error)
	GetXboxEntitlementOwnership(params *GetXboxEntitlementOwnershipParams, authInfo runtime.ClientAuthInfoWriter) (*GetXboxEntitlementOwnershipOK, error)
	GetXboxEntitlementOwnershipShort(params *GetXboxEntitlementOwnershipParams, authInfo runtime.ClientAuthInfoWriter) (*GetXboxEntitlementOwnershipOK, 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 platform API client.

type GetPsnEntitlementOwnershipOK

type GetPsnEntitlementOwnershipOK struct {
	Payload *platformclientmodels.Ownership
}

GetPsnEntitlementOwnershipOK handles this case with default header values.

successful operation

func NewGetPsnEntitlementOwnershipOK

func NewGetPsnEntitlementOwnershipOK() *GetPsnEntitlementOwnershipOK

NewGetPsnEntitlementOwnershipOK creates a GetPsnEntitlementOwnershipOK with default headers values

func (*GetPsnEntitlementOwnershipOK) Error

func (*GetPsnEntitlementOwnershipOK) GetPayload

func (*GetPsnEntitlementOwnershipOK) ToJSONString

func (o *GetPsnEntitlementOwnershipOK) ToJSONString() string

type GetPsnEntitlementOwnershipParams

type GetPsnEntitlementOwnershipParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.PsnEntitlementOwnershipRequest
	/*EntitlementLabel*/
	EntitlementLabel string
	/*Namespace*/
	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
}

GetPsnEntitlementOwnershipParams contains all the parameters to send to the API endpoint for the get psn entitlement ownership operation typically these are written to a http.Request

func NewGetPsnEntitlementOwnershipParams

func NewGetPsnEntitlementOwnershipParams() *GetPsnEntitlementOwnershipParams

NewGetPsnEntitlementOwnershipParams creates a new GetPsnEntitlementOwnershipParams object with the default values initialized.

func NewGetPsnEntitlementOwnershipParamsWithContext

func NewGetPsnEntitlementOwnershipParamsWithContext(ctx context.Context) *GetPsnEntitlementOwnershipParams

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

func NewGetPsnEntitlementOwnershipParamsWithHTTPClient

func NewGetPsnEntitlementOwnershipParamsWithHTTPClient(client *http.Client) *GetPsnEntitlementOwnershipParams

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

func NewGetPsnEntitlementOwnershipParamsWithTimeout

func NewGetPsnEntitlementOwnershipParamsWithTimeout(timeout time.Duration) *GetPsnEntitlementOwnershipParams

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

func (*GetPsnEntitlementOwnershipParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the get psn entitlement ownership params

func (*GetPsnEntitlementOwnershipParams) SetBody

SetBody adds the body to the get psn entitlement ownership params

func (*GetPsnEntitlementOwnershipParams) SetContext

SetContext adds the context to the get psn entitlement ownership params

func (*GetPsnEntitlementOwnershipParams) SetEntitlementLabel

func (o *GetPsnEntitlementOwnershipParams) SetEntitlementLabel(entitlementLabel string)

SetEntitlementLabel adds the entitlementLabel to the get psn entitlement ownership params

func (*GetPsnEntitlementOwnershipParams) SetFlightId

func (o *GetPsnEntitlementOwnershipParams) SetFlightId(flightId string)

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

func (*GetPsnEntitlementOwnershipParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get psn entitlement ownership params

func (*GetPsnEntitlementOwnershipParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the get psn entitlement ownership params

func (*GetPsnEntitlementOwnershipParams) SetNamespace

func (o *GetPsnEntitlementOwnershipParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get psn entitlement ownership params

func (*GetPsnEntitlementOwnershipParams) SetTimeout

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

SetTimeout adds the timeout to the get psn entitlement ownership params

func (*GetPsnEntitlementOwnershipParams) WithBody

WithBody adds the body to the get psn entitlement ownership params

func (*GetPsnEntitlementOwnershipParams) WithContext

WithContext adds the context to the get psn entitlement ownership params

func (*GetPsnEntitlementOwnershipParams) WithEntitlementLabel

func (o *GetPsnEntitlementOwnershipParams) WithEntitlementLabel(entitlementLabel string) *GetPsnEntitlementOwnershipParams

WithEntitlementLabel adds the entitlementLabel to the get psn entitlement ownership params

func (*GetPsnEntitlementOwnershipParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get psn entitlement ownership params

func (*GetPsnEntitlementOwnershipParams) WithNamespace

WithNamespace adds the namespace to the get psn entitlement ownership params

func (*GetPsnEntitlementOwnershipParams) WithTimeout

WithTimeout adds the timeout to the get psn entitlement ownership params

func (*GetPsnEntitlementOwnershipParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPsnEntitlementOwnershipReader

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

GetPsnEntitlementOwnershipReader is a Reader for the GetPsnEntitlementOwnership structure.

func (*GetPsnEntitlementOwnershipReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetXboxEntitlementOwnershipOK

type GetXboxEntitlementOwnershipOK struct {
	Payload *platformclientmodels.PlatformOwnership
}

GetXboxEntitlementOwnershipOK handles this case with default header values.

successful operation

func NewGetXboxEntitlementOwnershipOK

func NewGetXboxEntitlementOwnershipOK() *GetXboxEntitlementOwnershipOK

NewGetXboxEntitlementOwnershipOK creates a GetXboxEntitlementOwnershipOK with default headers values

func (*GetXboxEntitlementOwnershipOK) Error

func (*GetXboxEntitlementOwnershipOK) GetPayload

func (*GetXboxEntitlementOwnershipOK) ToJSONString

func (o *GetXboxEntitlementOwnershipOK) ToJSONString() string

type GetXboxEntitlementOwnershipParams

type GetXboxEntitlementOwnershipParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.XblEntitlementOwnershipRequest
	/*Namespace*/
	Namespace string
	/*ProductSku*/
	ProductSku 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
}

GetXboxEntitlementOwnershipParams contains all the parameters to send to the API endpoint for the get xbox entitlement ownership operation typically these are written to a http.Request

func NewGetXboxEntitlementOwnershipParams

func NewGetXboxEntitlementOwnershipParams() *GetXboxEntitlementOwnershipParams

NewGetXboxEntitlementOwnershipParams creates a new GetXboxEntitlementOwnershipParams object with the default values initialized.

func NewGetXboxEntitlementOwnershipParamsWithContext

func NewGetXboxEntitlementOwnershipParamsWithContext(ctx context.Context) *GetXboxEntitlementOwnershipParams

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

func NewGetXboxEntitlementOwnershipParamsWithHTTPClient

func NewGetXboxEntitlementOwnershipParamsWithHTTPClient(client *http.Client) *GetXboxEntitlementOwnershipParams

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

func NewGetXboxEntitlementOwnershipParamsWithTimeout

func NewGetXboxEntitlementOwnershipParamsWithTimeout(timeout time.Duration) *GetXboxEntitlementOwnershipParams

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

func (*GetXboxEntitlementOwnershipParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the get xbox entitlement ownership params

func (*GetXboxEntitlementOwnershipParams) SetBody

SetBody adds the body to the get xbox entitlement ownership params

func (*GetXboxEntitlementOwnershipParams) SetContext

SetContext adds the context to the get xbox entitlement ownership params

func (*GetXboxEntitlementOwnershipParams) SetFlightId

func (o *GetXboxEntitlementOwnershipParams) SetFlightId(flightId string)

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

func (*GetXboxEntitlementOwnershipParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get xbox entitlement ownership params

func (*GetXboxEntitlementOwnershipParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the get xbox entitlement ownership params

func (*GetXboxEntitlementOwnershipParams) SetNamespace

func (o *GetXboxEntitlementOwnershipParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get xbox entitlement ownership params

func (*GetXboxEntitlementOwnershipParams) SetProductSku

func (o *GetXboxEntitlementOwnershipParams) SetProductSku(productSku string)

SetProductSku adds the productSku to the get xbox entitlement ownership params

func (*GetXboxEntitlementOwnershipParams) SetTimeout

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

SetTimeout adds the timeout to the get xbox entitlement ownership params

func (*GetXboxEntitlementOwnershipParams) WithBody

WithBody adds the body to the get xbox entitlement ownership params

func (*GetXboxEntitlementOwnershipParams) WithContext

WithContext adds the context to the get xbox entitlement ownership params

func (*GetXboxEntitlementOwnershipParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get xbox entitlement ownership params

func (*GetXboxEntitlementOwnershipParams) WithNamespace

WithNamespace adds the namespace to the get xbox entitlement ownership params

func (*GetXboxEntitlementOwnershipParams) WithProductSku

WithProductSku adds the productSku to the get xbox entitlement ownership params

func (*GetXboxEntitlementOwnershipParams) WithTimeout

WithTimeout adds the timeout to the get xbox entitlement ownership params

func (*GetXboxEntitlementOwnershipParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetXboxEntitlementOwnershipReader

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

GetXboxEntitlementOwnershipReader is a Reader for the GetXboxEntitlementOwnership structure.

func (*GetXboxEntitlementOwnershipReader) ReadResponse

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