download_server_artifact

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 CheckServerArtifactInternalServerError

type CheckServerArtifactInternalServerError struct {
	Payload *dsartifactclientmodels.ResponseError
}

CheckServerArtifactInternalServerError handles this case with default header values.

Internal Server Error

func NewCheckServerArtifactInternalServerError

func NewCheckServerArtifactInternalServerError() *CheckServerArtifactInternalServerError

NewCheckServerArtifactInternalServerError creates a CheckServerArtifactInternalServerError with default headers values

func (*CheckServerArtifactInternalServerError) Error

func (*CheckServerArtifactInternalServerError) GetPayload

func (*CheckServerArtifactInternalServerError) ToJSONString

type CheckServerArtifactNotFound

type CheckServerArtifactNotFound struct {
	Payload *dsartifactclientmodels.ResponseError
}

CheckServerArtifactNotFound handles this case with default header values.

Not Found

func NewCheckServerArtifactNotFound

func NewCheckServerArtifactNotFound() *CheckServerArtifactNotFound

NewCheckServerArtifactNotFound creates a CheckServerArtifactNotFound with default headers values

func (*CheckServerArtifactNotFound) Error

func (*CheckServerArtifactNotFound) GetPayload

func (*CheckServerArtifactNotFound) ToJSONString

func (o *CheckServerArtifactNotFound) ToJSONString() string

type CheckServerArtifactOK

type CheckServerArtifactOK struct {
	Payload *dsartifactclientmodels.ModelsArtifactFileStatus
}

CheckServerArtifactOK handles this case with default header values.

artifact exists.

func NewCheckServerArtifactOK

func NewCheckServerArtifactOK() *CheckServerArtifactOK

NewCheckServerArtifactOK creates a CheckServerArtifactOK with default headers values

func (*CheckServerArtifactOK) Error

func (o *CheckServerArtifactOK) Error() string

func (*CheckServerArtifactOK) GetPayload

func (*CheckServerArtifactOK) ToJSONString

func (o *CheckServerArtifactOK) ToJSONString() string

type CheckServerArtifactParams

type CheckServerArtifactParams struct {

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

	*/
	Namespace string
	/*PodName
	  name of the DS pod

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

CheckServerArtifactParams contains all the parameters to send to the API endpoint for the check server artifact operation typically these are written to a http.Request

func NewCheckServerArtifactParams

func NewCheckServerArtifactParams() *CheckServerArtifactParams

NewCheckServerArtifactParams creates a new CheckServerArtifactParams object with the default values initialized.

func NewCheckServerArtifactParamsWithContext

func NewCheckServerArtifactParamsWithContext(ctx context.Context) *CheckServerArtifactParams

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

func NewCheckServerArtifactParamsWithHTTPClient

func NewCheckServerArtifactParamsWithHTTPClient(client *http.Client) *CheckServerArtifactParams

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

func NewCheckServerArtifactParamsWithTimeout

func NewCheckServerArtifactParamsWithTimeout(timeout time.Duration) *CheckServerArtifactParams

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

func (*CheckServerArtifactParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the check server artifact params

func (*CheckServerArtifactParams) SetContext

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

SetContext adds the context to the check server artifact params

func (*CheckServerArtifactParams) SetFlightId

func (o *CheckServerArtifactParams) SetFlightId(flightId string)

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

func (*CheckServerArtifactParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the check server artifact params

func (*CheckServerArtifactParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the check server artifact params

func (*CheckServerArtifactParams) SetNamespace

func (o *CheckServerArtifactParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the check server artifact params

func (*CheckServerArtifactParams) SetPodName

func (o *CheckServerArtifactParams) SetPodName(podName string)

SetPodName adds the podName to the check server artifact params

func (*CheckServerArtifactParams) SetTimeout

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

SetTimeout adds the timeout to the check server artifact params

func (*CheckServerArtifactParams) WithContext

WithContext adds the context to the check server artifact params

func (*CheckServerArtifactParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the check server artifact params

func (*CheckServerArtifactParams) WithNamespace

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

WithNamespace adds the namespace to the check server artifact params

func (*CheckServerArtifactParams) WithPodName

WithPodName adds the podName to the check server artifact params

func (*CheckServerArtifactParams) WithTimeout

WithTimeout adds the timeout to the check server artifact params

func (*CheckServerArtifactParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CheckServerArtifactReader

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

CheckServerArtifactReader is a Reader for the CheckServerArtifact structure.

func (*CheckServerArtifactReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for download server artifact API

func (*Client) CheckServerArtifact deprecated

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

CheckServerArtifact check dedicated server artifacts files existence Required permission: ADMIN:NAMESPACE:{namespace}:DSAM:ARTIFACT [READ]

Required scope: social

This endpoint will check artifact file existence before download file.

This endpoint will return the artifact status.

The possible status is : 'Empty', 'In Queue', 'Uploading', 'Ready', 'Failed'

func (*Client) CheckServerArtifactShort

func (a *Client) CheckServerArtifactShort(params *CheckServerArtifactParams, authInfo runtime.ClientAuthInfoWriter) (*CheckServerArtifactOK, error)

CheckServerArtifactShort check dedicated server artifacts files existence Required permission: ADMIN:NAMESPACE:{namespace}:DSAM:ARTIFACT [READ]

Required scope: social

This endpoint will check artifact file existence before download file.

This endpoint will return the artifact status.

The possible status is : 'Empty', 'In Queue', 'Uploading', 'Ready', 'Failed'

func (*Client) DownloadServerArtifacts deprecated

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

DownloadServerArtifacts download dedicated server artifact files Required permission: ADMIN:NAMESPACE:{namespace}:DSAM:ARTIFACT [READ]

Required scope: social

This endpoint will download dedicated server's Artifact file (.zip).

func (*Client) DownloadServerArtifactsShort

func (a *Client) DownloadServerArtifactsShort(params *DownloadServerArtifactsParams, authInfo runtime.ClientAuthInfoWriter) (*DownloadServerArtifactsOK, error)

DownloadServerArtifactsShort download dedicated server artifact files Required permission: ADMIN:NAMESPACE:{namespace}:DSAM:ARTIFACT [READ]

Required scope: social

This endpoint will download dedicated server's Artifact file (.zip).

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

ClientService is the interface for Client methods

func New

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

New creates a new download server artifact API client.

type DownloadServerArtifactsInternalServerError

type DownloadServerArtifactsInternalServerError struct {
	Payload *dsartifactclientmodels.ResponseError
}

DownloadServerArtifactsInternalServerError handles this case with default header values.

Internal Server Error

func NewDownloadServerArtifactsInternalServerError

func NewDownloadServerArtifactsInternalServerError() *DownloadServerArtifactsInternalServerError

NewDownloadServerArtifactsInternalServerError creates a DownloadServerArtifactsInternalServerError with default headers values

func (*DownloadServerArtifactsInternalServerError) Error

func (*DownloadServerArtifactsInternalServerError) GetPayload

func (*DownloadServerArtifactsInternalServerError) ToJSONString

type DownloadServerArtifactsNotFound

type DownloadServerArtifactsNotFound struct {
	Payload *dsartifactclientmodels.ResponseError
}

DownloadServerArtifactsNotFound handles this case with default header values.

Not Found

func NewDownloadServerArtifactsNotFound

func NewDownloadServerArtifactsNotFound() *DownloadServerArtifactsNotFound

NewDownloadServerArtifactsNotFound creates a DownloadServerArtifactsNotFound with default headers values

func (*DownloadServerArtifactsNotFound) Error

func (*DownloadServerArtifactsNotFound) GetPayload

func (*DownloadServerArtifactsNotFound) ToJSONString

func (o *DownloadServerArtifactsNotFound) ToJSONString() string

type DownloadServerArtifactsOK

type DownloadServerArtifactsOK struct {
}

DownloadServerArtifactsOK handles this case with default header values.

server artifact downloaded.

func NewDownloadServerArtifactsOK

func NewDownloadServerArtifactsOK() *DownloadServerArtifactsOK

NewDownloadServerArtifactsOK creates a DownloadServerArtifactsOK with default headers values

func (*DownloadServerArtifactsOK) Error

func (o *DownloadServerArtifactsOK) Error() string

type DownloadServerArtifactsParams

type DownloadServerArtifactsParams struct {

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

	*/
	Namespace string
	/*PodName
	  name of the DS pod

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

DownloadServerArtifactsParams contains all the parameters to send to the API endpoint for the download server artifacts operation typically these are written to a http.Request

func NewDownloadServerArtifactsParams

func NewDownloadServerArtifactsParams() *DownloadServerArtifactsParams

NewDownloadServerArtifactsParams creates a new DownloadServerArtifactsParams object with the default values initialized.

func NewDownloadServerArtifactsParamsWithContext

func NewDownloadServerArtifactsParamsWithContext(ctx context.Context) *DownloadServerArtifactsParams

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

func NewDownloadServerArtifactsParamsWithHTTPClient

func NewDownloadServerArtifactsParamsWithHTTPClient(client *http.Client) *DownloadServerArtifactsParams

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

func NewDownloadServerArtifactsParamsWithTimeout

func NewDownloadServerArtifactsParamsWithTimeout(timeout time.Duration) *DownloadServerArtifactsParams

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

func (*DownloadServerArtifactsParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the download server artifacts params

func (*DownloadServerArtifactsParams) SetContext

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

SetContext adds the context to the download server artifacts params

func (*DownloadServerArtifactsParams) SetFlightId

func (o *DownloadServerArtifactsParams) SetFlightId(flightId string)

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

func (*DownloadServerArtifactsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the download server artifacts params

func (*DownloadServerArtifactsParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the download server artifacts params

func (*DownloadServerArtifactsParams) SetNamespace

func (o *DownloadServerArtifactsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the download server artifacts params

func (*DownloadServerArtifactsParams) SetPodName

func (o *DownloadServerArtifactsParams) SetPodName(podName string)

SetPodName adds the podName to the download server artifacts params

func (*DownloadServerArtifactsParams) SetTimeout

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

SetTimeout adds the timeout to the download server artifacts params

func (*DownloadServerArtifactsParams) WithContext

WithContext adds the context to the download server artifacts params

func (*DownloadServerArtifactsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the download server artifacts params

func (*DownloadServerArtifactsParams) WithNamespace

WithNamespace adds the namespace to the download server artifacts params

func (*DownloadServerArtifactsParams) WithPodName

WithPodName adds the podName to the download server artifacts params

func (*DownloadServerArtifactsParams) WithTimeout

WithTimeout adds the timeout to the download server artifacts params

func (*DownloadServerArtifactsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DownloadServerArtifactsReader

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

DownloadServerArtifactsReader is a Reader for the DownloadServerArtifacts structure.

func (*DownloadServerArtifactsReader) ReadResponse

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