Documentation
¶
Index ¶
- type Client
- func (a *Client) GeneratedUploadURL(params *GeneratedUploadURLParams, authInfo runtime.ClientAuthInfoWriter) (*GeneratedUploadURLOK, *GeneratedUploadURLBadRequest, ...)deprecated
- func (a *Client) GeneratedUploadURLShort(params *GeneratedUploadURLParams, authInfo runtime.ClientAuthInfoWriter) (*GeneratedUploadURLOK, error)
- func (a *Client) GeneratedUserUploadContentURL(params *GeneratedUserUploadContentURLParams, ...) (*GeneratedUserUploadContentURLOK, *GeneratedUserUploadContentURLBadRequest, ...)deprecated
- func (a *Client) GeneratedUserUploadContentURLShort(params *GeneratedUserUploadContentURLParams, ...) (*GeneratedUserUploadContentURLOK, error)
- func (a *Client) PublicGeneratedUploadURL(params *PublicGeneratedUploadURLParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGeneratedUploadURLOK, *PublicGeneratedUploadURLBadRequest, ...)deprecated
- func (a *Client) PublicGeneratedUploadURLShort(params *PublicGeneratedUploadURLParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGeneratedUploadURLOK, error)
- func (a *Client) PublicGeneratedUserUploadContentURL(params *PublicGeneratedUserUploadContentURLParams, ...) (*PublicGeneratedUserUploadContentURLOK, ...)deprecated
- func (a *Client) PublicGeneratedUserUploadContentURLShort(params *PublicGeneratedUserUploadContentURLParams, ...) (*PublicGeneratedUserUploadContentURLOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type GeneratedUploadURLBadRequest
- type GeneratedUploadURLForbidden
- type GeneratedUploadURLInternalServerError
- type GeneratedUploadURLOK
- type GeneratedUploadURLParams
- func NewGeneratedUploadURLParams() *GeneratedUploadURLParams
- func NewGeneratedUploadURLParamsWithContext(ctx context.Context) *GeneratedUploadURLParams
- func NewGeneratedUploadURLParamsWithHTTPClient(client *http.Client) *GeneratedUploadURLParams
- func NewGeneratedUploadURLParamsWithTimeout(timeout time.Duration) *GeneratedUploadURLParams
- func (o *GeneratedUploadURLParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GeneratedUploadURLParams) SetContext(ctx context.Context)
- func (o *GeneratedUploadURLParams) SetFileType(fileType string)
- func (o *GeneratedUploadURLParams) SetFlightId(flightId string)
- func (o *GeneratedUploadURLParams) SetFolder(folder string)
- func (o *GeneratedUploadURLParams) SetHTTPClient(client *http.Client)
- func (o *GeneratedUploadURLParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GeneratedUploadURLParams) SetNamespace(namespace string)
- func (o *GeneratedUploadURLParams) SetTimeout(timeout time.Duration)
- func (o *GeneratedUploadURLParams) WithContext(ctx context.Context) *GeneratedUploadURLParams
- func (o *GeneratedUploadURLParams) WithFileType(fileType string) *GeneratedUploadURLParams
- func (o *GeneratedUploadURLParams) WithFolder(folder string) *GeneratedUploadURLParams
- func (o *GeneratedUploadURLParams) WithHTTPClient(client *http.Client) *GeneratedUploadURLParams
- func (o *GeneratedUploadURLParams) WithNamespace(namespace string) *GeneratedUploadURLParams
- func (o *GeneratedUploadURLParams) WithTimeout(timeout time.Duration) *GeneratedUploadURLParams
- func (o *GeneratedUploadURLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GeneratedUploadURLReader
- type GeneratedUploadURLUnauthorized
- type GeneratedUserUploadContentURLBadRequest
- type GeneratedUserUploadContentURLConflict
- type GeneratedUserUploadContentURLForbidden
- type GeneratedUserUploadContentURLInternalServerError
- type GeneratedUserUploadContentURLOK
- type GeneratedUserUploadContentURLParams
- func NewGeneratedUserUploadContentURLParams() *GeneratedUserUploadContentURLParams
- func NewGeneratedUserUploadContentURLParamsWithContext(ctx context.Context) *GeneratedUserUploadContentURLParams
- func NewGeneratedUserUploadContentURLParamsWithHTTPClient(client *http.Client) *GeneratedUserUploadContentURLParams
- func NewGeneratedUserUploadContentURLParamsWithTimeout(timeout time.Duration) *GeneratedUserUploadContentURLParams
- func (o *GeneratedUserUploadContentURLParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GeneratedUserUploadContentURLParams) SetCategory(category *string)
- func (o *GeneratedUserUploadContentURLParams) SetContext(ctx context.Context)
- func (o *GeneratedUserUploadContentURLParams) SetFileType(fileType string)
- func (o *GeneratedUserUploadContentURLParams) SetFlightId(flightId string)
- func (o *GeneratedUserUploadContentURLParams) SetHTTPClient(client *http.Client)
- func (o *GeneratedUserUploadContentURLParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GeneratedUserUploadContentURLParams) SetNamespace(namespace string)
- func (o *GeneratedUserUploadContentURLParams) SetTimeout(timeout time.Duration)
- func (o *GeneratedUserUploadContentURLParams) SetUserID(userID string)
- func (o *GeneratedUserUploadContentURLParams) WithCategory(category *string) *GeneratedUserUploadContentURLParams
- func (o *GeneratedUserUploadContentURLParams) WithContext(ctx context.Context) *GeneratedUserUploadContentURLParams
- func (o *GeneratedUserUploadContentURLParams) WithFileType(fileType string) *GeneratedUserUploadContentURLParams
- func (o *GeneratedUserUploadContentURLParams) WithHTTPClient(client *http.Client) *GeneratedUserUploadContentURLParams
- func (o *GeneratedUserUploadContentURLParams) WithNamespace(namespace string) *GeneratedUserUploadContentURLParams
- func (o *GeneratedUserUploadContentURLParams) WithTimeout(timeout time.Duration) *GeneratedUserUploadContentURLParams
- func (o *GeneratedUserUploadContentURLParams) WithUserID(userID string) *GeneratedUserUploadContentURLParams
- func (o *GeneratedUserUploadContentURLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GeneratedUserUploadContentURLReader
- type GeneratedUserUploadContentURLUnauthorized
- type PublicGeneratedUploadURLBadRequest
- type PublicGeneratedUploadURLForbidden
- type PublicGeneratedUploadURLInternalServerError
- type PublicGeneratedUploadURLOK
- type PublicGeneratedUploadURLParams
- func NewPublicGeneratedUploadURLParams() *PublicGeneratedUploadURLParams
- func NewPublicGeneratedUploadURLParamsWithContext(ctx context.Context) *PublicGeneratedUploadURLParams
- func NewPublicGeneratedUploadURLParamsWithHTTPClient(client *http.Client) *PublicGeneratedUploadURLParams
- func NewPublicGeneratedUploadURLParamsWithTimeout(timeout time.Duration) *PublicGeneratedUploadURLParams
- func (o *PublicGeneratedUploadURLParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *PublicGeneratedUploadURLParams) SetContext(ctx context.Context)
- func (o *PublicGeneratedUploadURLParams) SetFileType(fileType string)
- func (o *PublicGeneratedUploadURLParams) SetFlightId(flightId string)
- func (o *PublicGeneratedUploadURLParams) SetFolder(folder string)
- func (o *PublicGeneratedUploadURLParams) SetHTTPClient(client *http.Client)
- func (o *PublicGeneratedUploadURLParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *PublicGeneratedUploadURLParams) SetNamespace(namespace string)
- func (o *PublicGeneratedUploadURLParams) SetTimeout(timeout time.Duration)
- func (o *PublicGeneratedUploadURLParams) WithContext(ctx context.Context) *PublicGeneratedUploadURLParams
- func (o *PublicGeneratedUploadURLParams) WithFileType(fileType string) *PublicGeneratedUploadURLParams
- func (o *PublicGeneratedUploadURLParams) WithFolder(folder string) *PublicGeneratedUploadURLParams
- func (o *PublicGeneratedUploadURLParams) WithHTTPClient(client *http.Client) *PublicGeneratedUploadURLParams
- func (o *PublicGeneratedUploadURLParams) WithNamespace(namespace string) *PublicGeneratedUploadURLParams
- func (o *PublicGeneratedUploadURLParams) WithTimeout(timeout time.Duration) *PublicGeneratedUploadURLParams
- func (o *PublicGeneratedUploadURLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PublicGeneratedUploadURLReader
- type PublicGeneratedUploadURLUnauthorized
- type PublicGeneratedUserUploadContentURLBadRequest
- type PublicGeneratedUserUploadContentURLConflict
- type PublicGeneratedUserUploadContentURLForbidden
- type PublicGeneratedUserUploadContentURLInternalServerError
- type PublicGeneratedUserUploadContentURLOK
- type PublicGeneratedUserUploadContentURLParams
- func NewPublicGeneratedUserUploadContentURLParams() *PublicGeneratedUserUploadContentURLParams
- func NewPublicGeneratedUserUploadContentURLParamsWithContext(ctx context.Context) *PublicGeneratedUserUploadContentURLParams
- func NewPublicGeneratedUserUploadContentURLParamsWithHTTPClient(client *http.Client) *PublicGeneratedUserUploadContentURLParams
- func NewPublicGeneratedUserUploadContentURLParamsWithTimeout(timeout time.Duration) *PublicGeneratedUserUploadContentURLParams
- func (o *PublicGeneratedUserUploadContentURLParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *PublicGeneratedUserUploadContentURLParams) SetCategory(category *string)
- func (o *PublicGeneratedUserUploadContentURLParams) SetContext(ctx context.Context)
- func (o *PublicGeneratedUserUploadContentURLParams) SetFileType(fileType string)
- func (o *PublicGeneratedUserUploadContentURLParams) SetFlightId(flightId string)
- func (o *PublicGeneratedUserUploadContentURLParams) SetHTTPClient(client *http.Client)
- func (o *PublicGeneratedUserUploadContentURLParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *PublicGeneratedUserUploadContentURLParams) SetNamespace(namespace string)
- func (o *PublicGeneratedUserUploadContentURLParams) SetTimeout(timeout time.Duration)
- func (o *PublicGeneratedUserUploadContentURLParams) SetUserID(userID string)
- func (o *PublicGeneratedUserUploadContentURLParams) WithCategory(category *string) *PublicGeneratedUserUploadContentURLParams
- func (o *PublicGeneratedUserUploadContentURLParams) WithContext(ctx context.Context) *PublicGeneratedUserUploadContentURLParams
- func (o *PublicGeneratedUserUploadContentURLParams) WithFileType(fileType string) *PublicGeneratedUserUploadContentURLParams
- func (o *PublicGeneratedUserUploadContentURLParams) WithHTTPClient(client *http.Client) *PublicGeneratedUserUploadContentURLParams
- func (o *PublicGeneratedUserUploadContentURLParams) WithNamespace(namespace string) *PublicGeneratedUserUploadContentURLParams
- func (o *PublicGeneratedUserUploadContentURLParams) WithTimeout(timeout time.Duration) *PublicGeneratedUserUploadContentURLParams
- func (o *PublicGeneratedUserUploadContentURLParams) WithUserID(userID string) *PublicGeneratedUserUploadContentURLParams
- func (o *PublicGeneratedUserUploadContentURLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PublicGeneratedUserUploadContentURLReader
- type PublicGeneratedUserUploadContentURLUnauthorized
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 file upload API
func (*Client) GeneratedUploadURL
deprecated
func (a *Client) GeneratedUploadURL(params *GeneratedUploadURLParams, authInfo runtime.ClientAuthInfoWriter) (*GeneratedUploadURLOK, *GeneratedUploadURLBadRequest, *GeneratedUploadURLUnauthorized, *GeneratedUploadURLForbidden, *GeneratedUploadURLInternalServerError, error)
Deprecated: 2022-08-10 - Use GeneratedUploadURLShort instead.
GeneratedUploadURL generate upload url Generate an upload URL. It's valid for 10 minutes. Other detail info:
- Action code : 11101
- Returns : URL data
func (*Client) GeneratedUploadURLShort ¶ added in v0.8.0
func (a *Client) GeneratedUploadURLShort(params *GeneratedUploadURLParams, authInfo runtime.ClientAuthInfoWriter) (*GeneratedUploadURLOK, error)
GeneratedUploadURLShort generate upload url Generate an upload URL. It's valid for 10 minutes. Other detail info:
- Action code : 11101
- Returns : URL data
func (*Client) GeneratedUserUploadContentURL
deprecated
func (a *Client) GeneratedUserUploadContentURL(params *GeneratedUserUploadContentURLParams, authInfo runtime.ClientAuthInfoWriter) (*GeneratedUserUploadContentURLOK, *GeneratedUserUploadContentURLBadRequest, *GeneratedUserUploadContentURLUnauthorized, *GeneratedUserUploadContentURLForbidden, *GeneratedUserUploadContentURLConflict, *GeneratedUserUploadContentURLInternalServerError, error)
Deprecated: 2022-08-10 - Use GeneratedUserUploadContentURLShort instead.
GeneratedUserUploadContentURL generate upload url for user content Generate an upload URL for user content. It's valid for 10 minutes. Other detail info:
- Action code : 11102
- Returns : URL data
func (*Client) GeneratedUserUploadContentURLShort ¶ added in v0.8.0
func (a *Client) GeneratedUserUploadContentURLShort(params *GeneratedUserUploadContentURLParams, authInfo runtime.ClientAuthInfoWriter) (*GeneratedUserUploadContentURLOK, error)
GeneratedUserUploadContentURLShort generate upload url for user content Generate an upload URL for user content. It's valid for 10 minutes. Other detail info:
- Action code : 11102
- Returns : URL data
func (*Client) PublicGeneratedUploadURL
deprecated
func (a *Client) PublicGeneratedUploadURL(params *PublicGeneratedUploadURLParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGeneratedUploadURLOK, *PublicGeneratedUploadURLBadRequest, *PublicGeneratedUploadURLUnauthorized, *PublicGeneratedUploadURLForbidden, *PublicGeneratedUploadURLInternalServerError, error)
Deprecated: 2022-08-10 - Use PublicGeneratedUploadURLShort instead.
PublicGeneratedUploadURL generate upload url Generate an upload URL. It's valid for 10 minutes. Other detail info:
- Action code : 11101
- Returns : URL data
func (*Client) PublicGeneratedUploadURLShort ¶ added in v0.8.0
func (a *Client) PublicGeneratedUploadURLShort(params *PublicGeneratedUploadURLParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGeneratedUploadURLOK, error)
PublicGeneratedUploadURLShort generate upload url Generate an upload URL. It's valid for 10 minutes. Other detail info:
- Action code : 11101
- Returns : URL data
func (*Client) PublicGeneratedUserUploadContentURL
deprecated
func (a *Client) PublicGeneratedUserUploadContentURL(params *PublicGeneratedUserUploadContentURLParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGeneratedUserUploadContentURLOK, *PublicGeneratedUserUploadContentURLBadRequest, *PublicGeneratedUserUploadContentURLUnauthorized, *PublicGeneratedUserUploadContentURLForbidden, *PublicGeneratedUserUploadContentURLConflict, *PublicGeneratedUserUploadContentURLInternalServerError, error)
Deprecated: 2022-08-10 - Use PublicGeneratedUserUploadContentURLShort instead.
PublicGeneratedUserUploadContentURL generate upload url for user content Generate an upload URL for user content. It's valid for 10 minutes. There are two types of storage limits per user: maximum file count and maximum total file size. These limits vary depending on the upload category used.
- Default category:
- Maximum file count per user: 10 files - Maximum total file size per user: 100MB
- Reporting category:
- Maximum file count per user: 3 files every 1 hour - Maximum total file size per user: 30MB every 1 hour
Other detail info:
- Action code : 11102
- Returns : URL data
func (*Client) PublicGeneratedUserUploadContentURLShort ¶ added in v0.8.0
func (a *Client) PublicGeneratedUserUploadContentURLShort(params *PublicGeneratedUserUploadContentURLParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGeneratedUserUploadContentURLOK, error)
PublicGeneratedUserUploadContentURLShort generate upload url for user content Generate an upload URL for user content. It's valid for 10 minutes. There are two types of storage limits per user: maximum file count and maximum total file size. These limits vary depending on the upload category used.
- Default category:
- Maximum file count per user: 10 files - Maximum total file size per user: 100MB
- Reporting category:
- Maximum file count per user: 3 files every 1 hour - Maximum total file size per user: 30MB every 1 hour
Other detail info:
- Action code : 11102
- Returns : URL data
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { GeneratedUploadURL(params *GeneratedUploadURLParams, authInfo runtime.ClientAuthInfoWriter) (*GeneratedUploadURLOK, *GeneratedUploadURLBadRequest, *GeneratedUploadURLUnauthorized, *GeneratedUploadURLForbidden, *GeneratedUploadURLInternalServerError, error) GeneratedUploadURLShort(params *GeneratedUploadURLParams, authInfo runtime.ClientAuthInfoWriter) (*GeneratedUploadURLOK, error) GeneratedUserUploadContentURL(params *GeneratedUserUploadContentURLParams, authInfo runtime.ClientAuthInfoWriter) (*GeneratedUserUploadContentURLOK, *GeneratedUserUploadContentURLBadRequest, *GeneratedUserUploadContentURLUnauthorized, *GeneratedUserUploadContentURLForbidden, *GeneratedUserUploadContentURLConflict, *GeneratedUserUploadContentURLInternalServerError, error) GeneratedUserUploadContentURLShort(params *GeneratedUserUploadContentURLParams, authInfo runtime.ClientAuthInfoWriter) (*GeneratedUserUploadContentURLOK, error) PublicGeneratedUploadURL(params *PublicGeneratedUploadURLParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGeneratedUploadURLOK, *PublicGeneratedUploadURLBadRequest, *PublicGeneratedUploadURLUnauthorized, *PublicGeneratedUploadURLForbidden, *PublicGeneratedUploadURLInternalServerError, error) PublicGeneratedUploadURLShort(params *PublicGeneratedUploadURLParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGeneratedUploadURLOK, error) PublicGeneratedUserUploadContentURL(params *PublicGeneratedUserUploadContentURLParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGeneratedUserUploadContentURLOK, *PublicGeneratedUserUploadContentURLBadRequest, *PublicGeneratedUserUploadContentURLUnauthorized, *PublicGeneratedUserUploadContentURLForbidden, *PublicGeneratedUserUploadContentURLConflict, *PublicGeneratedUserUploadContentURLInternalServerError, error) PublicGeneratedUserUploadContentURLShort(params *PublicGeneratedUserUploadContentURLParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGeneratedUserUploadContentURLOK, 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 file upload API client.
type GeneratedUploadURLBadRequest ¶
type GeneratedUploadURLBadRequest struct {
Payload *basicclientmodels.ValidationErrorEntity
}
GeneratedUploadURLBadRequest handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr><tr><td>11131</td><td>Unable to {action}: File type is not supported</td></tr></table>
func NewGeneratedUploadURLBadRequest ¶
func NewGeneratedUploadURLBadRequest() *GeneratedUploadURLBadRequest
NewGeneratedUploadURLBadRequest creates a GeneratedUploadURLBadRequest with default headers values
func (*GeneratedUploadURLBadRequest) Error ¶
func (o *GeneratedUploadURLBadRequest) Error() string
func (*GeneratedUploadURLBadRequest) GetPayload ¶
func (o *GeneratedUploadURLBadRequest) GetPayload() *basicclientmodels.ValidationErrorEntity
func (*GeneratedUploadURLBadRequest) ToJSONString ¶ added in v0.25.0
func (o *GeneratedUploadURLBadRequest) ToJSONString() string
type GeneratedUploadURLForbidden ¶
type GeneratedUploadURLForbidden struct {
Payload *basicclientmodels.ErrorEntity
}
GeneratedUploadURLForbidden handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>
func NewGeneratedUploadURLForbidden ¶
func NewGeneratedUploadURLForbidden() *GeneratedUploadURLForbidden
NewGeneratedUploadURLForbidden creates a GeneratedUploadURLForbidden with default headers values
func (*GeneratedUploadURLForbidden) Error ¶
func (o *GeneratedUploadURLForbidden) Error() string
func (*GeneratedUploadURLForbidden) GetPayload ¶
func (o *GeneratedUploadURLForbidden) GetPayload() *basicclientmodels.ErrorEntity
func (*GeneratedUploadURLForbidden) ToJSONString ¶ added in v0.25.0
func (o *GeneratedUploadURLForbidden) ToJSONString() string
type GeneratedUploadURLInternalServerError ¶
type GeneratedUploadURLInternalServerError struct {
Payload *basicclientmodels.ErrorEntity
}
GeneratedUploadURLInternalServerError handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error</td></tr></table>
func NewGeneratedUploadURLInternalServerError ¶
func NewGeneratedUploadURLInternalServerError() *GeneratedUploadURLInternalServerError
NewGeneratedUploadURLInternalServerError creates a GeneratedUploadURLInternalServerError with default headers values
func (*GeneratedUploadURLInternalServerError) Error ¶
func (o *GeneratedUploadURLInternalServerError) Error() string
func (*GeneratedUploadURLInternalServerError) GetPayload ¶
func (o *GeneratedUploadURLInternalServerError) GetPayload() *basicclientmodels.ErrorEntity
func (*GeneratedUploadURLInternalServerError) ToJSONString ¶ added in v0.25.0
func (o *GeneratedUploadURLInternalServerError) ToJSONString() string
type GeneratedUploadURLOK ¶
type GeneratedUploadURLOK struct {
Payload *basicclientmodels.FileUploadURLInfo
}
GeneratedUploadURLOK handles this case with default header values.
Successful operation
func NewGeneratedUploadURLOK ¶
func NewGeneratedUploadURLOK() *GeneratedUploadURLOK
NewGeneratedUploadURLOK creates a GeneratedUploadURLOK with default headers values
func (*GeneratedUploadURLOK) Error ¶
func (o *GeneratedUploadURLOK) Error() string
func (*GeneratedUploadURLOK) GetPayload ¶
func (o *GeneratedUploadURLOK) GetPayload() *basicclientmodels.FileUploadURLInfo
func (*GeneratedUploadURLOK) ToJSONString ¶ added in v0.25.0
func (o *GeneratedUploadURLOK) ToJSONString() string
type GeneratedUploadURLParams ¶
type GeneratedUploadURLParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Folder the name of folder where the file will be uploaded, must be between 1-256 characters, all characters allowed no whitespace */ Folder string /*Namespace namespace, only accept alphabet and numeric */ Namespace string /*FileType one of the these types: jpeg, jpg, png, bmp, gif, mp3, bin, webp, mp4, webm */ FileType 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 }
GeneratedUploadURLParams contains all the parameters to send to the API endpoint for the generated upload url operation typically these are written to a http.Request
func NewGeneratedUploadURLParams ¶
func NewGeneratedUploadURLParams() *GeneratedUploadURLParams
NewGeneratedUploadURLParams creates a new GeneratedUploadURLParams object with the default values initialized.
func NewGeneratedUploadURLParamsWithContext ¶
func NewGeneratedUploadURLParamsWithContext(ctx context.Context) *GeneratedUploadURLParams
NewGeneratedUploadURLParamsWithContext creates a new GeneratedUploadURLParams object with the default values initialized, and the ability to set a context for a request
func NewGeneratedUploadURLParamsWithHTTPClient ¶
func NewGeneratedUploadURLParamsWithHTTPClient(client *http.Client) *GeneratedUploadURLParams
NewGeneratedUploadURLParamsWithHTTPClient creates a new GeneratedUploadURLParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGeneratedUploadURLParamsWithTimeout ¶
func NewGeneratedUploadURLParamsWithTimeout(timeout time.Duration) *GeneratedUploadURLParams
NewGeneratedUploadURLParamsWithTimeout creates a new GeneratedUploadURLParams object with the default values initialized, and the ability to set a timeout on a request
func (*GeneratedUploadURLParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *GeneratedUploadURLParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the generated upload url params
func (*GeneratedUploadURLParams) SetContext ¶
func (o *GeneratedUploadURLParams) SetContext(ctx context.Context)
SetContext adds the context to the generated upload url params
func (*GeneratedUploadURLParams) SetFileType ¶
func (o *GeneratedUploadURLParams) SetFileType(fileType string)
SetFileType adds the fileType to the generated upload url params
func (*GeneratedUploadURLParams) SetFlightId ¶ added in v0.63.0
func (o *GeneratedUploadURLParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
func (*GeneratedUploadURLParams) SetFolder ¶
func (o *GeneratedUploadURLParams) SetFolder(folder string)
SetFolder adds the folder to the generated upload url params
func (*GeneratedUploadURLParams) SetHTTPClient ¶
func (o *GeneratedUploadURLParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the generated upload url params
func (*GeneratedUploadURLParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *GeneratedUploadURLParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the generated upload url params
func (*GeneratedUploadURLParams) SetNamespace ¶
func (o *GeneratedUploadURLParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the generated upload url params
func (*GeneratedUploadURLParams) SetTimeout ¶
func (o *GeneratedUploadURLParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the generated upload url params
func (*GeneratedUploadURLParams) WithContext ¶
func (o *GeneratedUploadURLParams) WithContext(ctx context.Context) *GeneratedUploadURLParams
WithContext adds the context to the generated upload url params
func (*GeneratedUploadURLParams) WithFileType ¶
func (o *GeneratedUploadURLParams) WithFileType(fileType string) *GeneratedUploadURLParams
WithFileType adds the fileType to the generated upload url params
func (*GeneratedUploadURLParams) WithFolder ¶
func (o *GeneratedUploadURLParams) WithFolder(folder string) *GeneratedUploadURLParams
WithFolder adds the folder to the generated upload url params
func (*GeneratedUploadURLParams) WithHTTPClient ¶
func (o *GeneratedUploadURLParams) WithHTTPClient(client *http.Client) *GeneratedUploadURLParams
WithHTTPClient adds the HTTPClient to the generated upload url params
func (*GeneratedUploadURLParams) WithNamespace ¶
func (o *GeneratedUploadURLParams) WithNamespace(namespace string) *GeneratedUploadURLParams
WithNamespace adds the namespace to the generated upload url params
func (*GeneratedUploadURLParams) WithTimeout ¶
func (o *GeneratedUploadURLParams) WithTimeout(timeout time.Duration) *GeneratedUploadURLParams
WithTimeout adds the timeout to the generated upload url params
func (*GeneratedUploadURLParams) WriteToRequest ¶
func (o *GeneratedUploadURLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GeneratedUploadURLReader ¶
type GeneratedUploadURLReader struct {
// contains filtered or unexported fields
}
GeneratedUploadURLReader is a Reader for the GeneratedUploadURL structure.
func (*GeneratedUploadURLReader) ReadResponse ¶
func (o *GeneratedUploadURLReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GeneratedUploadURLUnauthorized ¶
type GeneratedUploadURLUnauthorized struct {
}GeneratedUploadURLUnauthorized handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized</td></tr></table>
func NewGeneratedUploadURLUnauthorized ¶
func NewGeneratedUploadURLUnauthorized() *GeneratedUploadURLUnauthorized
NewGeneratedUploadURLUnauthorized creates a GeneratedUploadURLUnauthorized with default headers values
func (*GeneratedUploadURLUnauthorized) Error ¶
func (o *GeneratedUploadURLUnauthorized) Error() string
func (*GeneratedUploadURLUnauthorized) GetPayload ¶
func (o *GeneratedUploadURLUnauthorized) GetPayload() *basicclientmodels.ErrorEntity
func (*GeneratedUploadURLUnauthorized) ToJSONString ¶ added in v0.25.0
func (o *GeneratedUploadURLUnauthorized) ToJSONString() string
type GeneratedUserUploadContentURLBadRequest ¶
type GeneratedUserUploadContentURLBadRequest struct {
Payload *basicclientmodels.ValidationErrorEntity
}
GeneratedUserUploadContentURLBadRequest handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr><tr><td>11121</td><td>Unable to {action}: category {category} is not valid</td></tr><tr><td>11131</td><td>Unable to {action}: File type is not supported</td></tr></table>
func NewGeneratedUserUploadContentURLBadRequest ¶
func NewGeneratedUserUploadContentURLBadRequest() *GeneratedUserUploadContentURLBadRequest
NewGeneratedUserUploadContentURLBadRequest creates a GeneratedUserUploadContentURLBadRequest with default headers values
func (*GeneratedUserUploadContentURLBadRequest) Error ¶
func (o *GeneratedUserUploadContentURLBadRequest) Error() string
func (*GeneratedUserUploadContentURLBadRequest) GetPayload ¶
func (o *GeneratedUserUploadContentURLBadRequest) GetPayload() *basicclientmodels.ValidationErrorEntity
func (*GeneratedUserUploadContentURLBadRequest) ToJSONString ¶ added in v0.25.0
func (o *GeneratedUserUploadContentURLBadRequest) ToJSONString() string
type GeneratedUserUploadContentURLConflict ¶
type GeneratedUserUploadContentURLConflict struct {
Payload *basicclientmodels.ErrorEntity
}
GeneratedUserUploadContentURLConflict handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>11132</td><td>Unable to {action}: file storage exceed limitation, user ID: {userId}, namespace: {namespace}</td></tr></table>
func NewGeneratedUserUploadContentURLConflict ¶
func NewGeneratedUserUploadContentURLConflict() *GeneratedUserUploadContentURLConflict
NewGeneratedUserUploadContentURLConflict creates a GeneratedUserUploadContentURLConflict with default headers values
func (*GeneratedUserUploadContentURLConflict) Error ¶
func (o *GeneratedUserUploadContentURLConflict) Error() string
func (*GeneratedUserUploadContentURLConflict) GetPayload ¶
func (o *GeneratedUserUploadContentURLConflict) GetPayload() *basicclientmodels.ErrorEntity
func (*GeneratedUserUploadContentURLConflict) ToJSONString ¶ added in v0.25.0
func (o *GeneratedUserUploadContentURLConflict) ToJSONString() string
type GeneratedUserUploadContentURLForbidden ¶
type GeneratedUserUploadContentURLForbidden struct {
Payload *basicclientmodels.ErrorEntity
}
GeneratedUserUploadContentURLForbidden handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>
func NewGeneratedUserUploadContentURLForbidden ¶
func NewGeneratedUserUploadContentURLForbidden() *GeneratedUserUploadContentURLForbidden
NewGeneratedUserUploadContentURLForbidden creates a GeneratedUserUploadContentURLForbidden with default headers values
func (*GeneratedUserUploadContentURLForbidden) Error ¶
func (o *GeneratedUserUploadContentURLForbidden) Error() string
func (*GeneratedUserUploadContentURLForbidden) GetPayload ¶
func (o *GeneratedUserUploadContentURLForbidden) GetPayload() *basicclientmodels.ErrorEntity
func (*GeneratedUserUploadContentURLForbidden) ToJSONString ¶ added in v0.25.0
func (o *GeneratedUserUploadContentURLForbidden) ToJSONString() string
type GeneratedUserUploadContentURLInternalServerError ¶
type GeneratedUserUploadContentURLInternalServerError struct {
Payload *basicclientmodels.ErrorEntity
}
GeneratedUserUploadContentURLInternalServerError handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error</td></tr></table>
func NewGeneratedUserUploadContentURLInternalServerError ¶
func NewGeneratedUserUploadContentURLInternalServerError() *GeneratedUserUploadContentURLInternalServerError
NewGeneratedUserUploadContentURLInternalServerError creates a GeneratedUserUploadContentURLInternalServerError with default headers values
func (*GeneratedUserUploadContentURLInternalServerError) Error ¶
func (o *GeneratedUserUploadContentURLInternalServerError) Error() string
func (*GeneratedUserUploadContentURLInternalServerError) GetPayload ¶
func (o *GeneratedUserUploadContentURLInternalServerError) GetPayload() *basicclientmodels.ErrorEntity
func (*GeneratedUserUploadContentURLInternalServerError) ToJSONString ¶ added in v0.25.0
func (o *GeneratedUserUploadContentURLInternalServerError) ToJSONString() string
type GeneratedUserUploadContentURLOK ¶
type GeneratedUserUploadContentURLOK struct {
Payload *basicclientmodels.FileUploadURLInfo
}
GeneratedUserUploadContentURLOK handles this case with default header values.
Successful operation
func NewGeneratedUserUploadContentURLOK ¶
func NewGeneratedUserUploadContentURLOK() *GeneratedUserUploadContentURLOK
NewGeneratedUserUploadContentURLOK creates a GeneratedUserUploadContentURLOK with default headers values
func (*GeneratedUserUploadContentURLOK) Error ¶
func (o *GeneratedUserUploadContentURLOK) Error() string
func (*GeneratedUserUploadContentURLOK) GetPayload ¶
func (o *GeneratedUserUploadContentURLOK) GetPayload() *basicclientmodels.FileUploadURLInfo
func (*GeneratedUserUploadContentURLOK) ToJSONString ¶ added in v0.25.0
func (o *GeneratedUserUploadContentURLOK) ToJSONString() string
type GeneratedUserUploadContentURLParams ¶
type GeneratedUserUploadContentURLParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Namespace namespace, only accept alphabet and numeric */ Namespace string /*UserID user's id, should follow UUID version 4 without hyphen */ UserID string /*Category Upload category. Supported categories: default, reporting */ Category *string /*FileType one of the these types: jpeg, jpg, png, bmp, gif, mp3, bin, webp, mp4, webm */ FileType 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 }
GeneratedUserUploadContentURLParams contains all the parameters to send to the API endpoint for the generated user upload content url operation typically these are written to a http.Request
func NewGeneratedUserUploadContentURLParams ¶
func NewGeneratedUserUploadContentURLParams() *GeneratedUserUploadContentURLParams
NewGeneratedUserUploadContentURLParams creates a new GeneratedUserUploadContentURLParams object with the default values initialized.
func NewGeneratedUserUploadContentURLParamsWithContext ¶
func NewGeneratedUserUploadContentURLParamsWithContext(ctx context.Context) *GeneratedUserUploadContentURLParams
NewGeneratedUserUploadContentURLParamsWithContext creates a new GeneratedUserUploadContentURLParams object with the default values initialized, and the ability to set a context for a request
func NewGeneratedUserUploadContentURLParamsWithHTTPClient ¶
func NewGeneratedUserUploadContentURLParamsWithHTTPClient(client *http.Client) *GeneratedUserUploadContentURLParams
NewGeneratedUserUploadContentURLParamsWithHTTPClient creates a new GeneratedUserUploadContentURLParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGeneratedUserUploadContentURLParamsWithTimeout ¶
func NewGeneratedUserUploadContentURLParamsWithTimeout(timeout time.Duration) *GeneratedUserUploadContentURLParams
NewGeneratedUserUploadContentURLParamsWithTimeout creates a new GeneratedUserUploadContentURLParams object with the default values initialized, and the ability to set a timeout on a request
func (*GeneratedUserUploadContentURLParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *GeneratedUserUploadContentURLParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the generated user upload content url params
func (*GeneratedUserUploadContentURLParams) SetCategory ¶ added in v0.23.0
func (o *GeneratedUserUploadContentURLParams) SetCategory(category *string)
SetCategory adds the category to the generated user upload content url params
func (*GeneratedUserUploadContentURLParams) SetContext ¶
func (o *GeneratedUserUploadContentURLParams) SetContext(ctx context.Context)
SetContext adds the context to the generated user upload content url params
func (*GeneratedUserUploadContentURLParams) SetFileType ¶
func (o *GeneratedUserUploadContentURLParams) SetFileType(fileType string)
SetFileType adds the fileType to the generated user upload content url params
func (*GeneratedUserUploadContentURLParams) SetFlightId ¶ added in v0.63.0
func (o *GeneratedUserUploadContentURLParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
func (*GeneratedUserUploadContentURLParams) SetHTTPClient ¶
func (o *GeneratedUserUploadContentURLParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the generated user upload content url params
func (*GeneratedUserUploadContentURLParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *GeneratedUserUploadContentURLParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the generated user upload content url params
func (*GeneratedUserUploadContentURLParams) SetNamespace ¶
func (o *GeneratedUserUploadContentURLParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the generated user upload content url params
func (*GeneratedUserUploadContentURLParams) SetTimeout ¶
func (o *GeneratedUserUploadContentURLParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the generated user upload content url params
func (*GeneratedUserUploadContentURLParams) SetUserID ¶
func (o *GeneratedUserUploadContentURLParams) SetUserID(userID string)
SetUserID adds the userId to the generated user upload content url params
func (*GeneratedUserUploadContentURLParams) WithCategory ¶ added in v0.23.0
func (o *GeneratedUserUploadContentURLParams) WithCategory(category *string) *GeneratedUserUploadContentURLParams
WithCategory adds the category to the generated user upload content url params
func (*GeneratedUserUploadContentURLParams) WithContext ¶
func (o *GeneratedUserUploadContentURLParams) WithContext(ctx context.Context) *GeneratedUserUploadContentURLParams
WithContext adds the context to the generated user upload content url params
func (*GeneratedUserUploadContentURLParams) WithFileType ¶
func (o *GeneratedUserUploadContentURLParams) WithFileType(fileType string) *GeneratedUserUploadContentURLParams
WithFileType adds the fileType to the generated user upload content url params
func (*GeneratedUserUploadContentURLParams) WithHTTPClient ¶
func (o *GeneratedUserUploadContentURLParams) WithHTTPClient(client *http.Client) *GeneratedUserUploadContentURLParams
WithHTTPClient adds the HTTPClient to the generated user upload content url params
func (*GeneratedUserUploadContentURLParams) WithNamespace ¶
func (o *GeneratedUserUploadContentURLParams) WithNamespace(namespace string) *GeneratedUserUploadContentURLParams
WithNamespace adds the namespace to the generated user upload content url params
func (*GeneratedUserUploadContentURLParams) WithTimeout ¶
func (o *GeneratedUserUploadContentURLParams) WithTimeout(timeout time.Duration) *GeneratedUserUploadContentURLParams
WithTimeout adds the timeout to the generated user upload content url params
func (*GeneratedUserUploadContentURLParams) WithUserID ¶
func (o *GeneratedUserUploadContentURLParams) WithUserID(userID string) *GeneratedUserUploadContentURLParams
WithUserID adds the userID to the generated user upload content url params
func (*GeneratedUserUploadContentURLParams) WriteToRequest ¶
func (o *GeneratedUserUploadContentURLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GeneratedUserUploadContentURLReader ¶
type GeneratedUserUploadContentURLReader struct {
// contains filtered or unexported fields
}
GeneratedUserUploadContentURLReader is a Reader for the GeneratedUserUploadContentURL structure.
func (*GeneratedUserUploadContentURLReader) ReadResponse ¶
func (o *GeneratedUserUploadContentURLReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GeneratedUserUploadContentURLUnauthorized ¶
type GeneratedUserUploadContentURLUnauthorized struct {
}GeneratedUserUploadContentURLUnauthorized handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized</td></tr></table>
func NewGeneratedUserUploadContentURLUnauthorized ¶
func NewGeneratedUserUploadContentURLUnauthorized() *GeneratedUserUploadContentURLUnauthorized
NewGeneratedUserUploadContentURLUnauthorized creates a GeneratedUserUploadContentURLUnauthorized with default headers values
func (*GeneratedUserUploadContentURLUnauthorized) Error ¶
func (o *GeneratedUserUploadContentURLUnauthorized) Error() string
func (*GeneratedUserUploadContentURLUnauthorized) GetPayload ¶
func (o *GeneratedUserUploadContentURLUnauthorized) GetPayload() *basicclientmodels.ErrorEntity
func (*GeneratedUserUploadContentURLUnauthorized) ToJSONString ¶ added in v0.25.0
func (o *GeneratedUserUploadContentURLUnauthorized) ToJSONString() string
type PublicGeneratedUploadURLBadRequest ¶
type PublicGeneratedUploadURLBadRequest struct {
Payload *basicclientmodels.ValidationErrorEntity
}
PublicGeneratedUploadURLBadRequest handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr><tr><td>11131</td><td>Unable to {action}: File type is not supported</td></tr></table>
func NewPublicGeneratedUploadURLBadRequest ¶
func NewPublicGeneratedUploadURLBadRequest() *PublicGeneratedUploadURLBadRequest
NewPublicGeneratedUploadURLBadRequest creates a PublicGeneratedUploadURLBadRequest with default headers values
func (*PublicGeneratedUploadURLBadRequest) Error ¶
func (o *PublicGeneratedUploadURLBadRequest) Error() string
func (*PublicGeneratedUploadURLBadRequest) GetPayload ¶
func (o *PublicGeneratedUploadURLBadRequest) GetPayload() *basicclientmodels.ValidationErrorEntity
func (*PublicGeneratedUploadURLBadRequest) ToJSONString ¶ added in v0.25.0
func (o *PublicGeneratedUploadURLBadRequest) ToJSONString() string
type PublicGeneratedUploadURLForbidden ¶
type PublicGeneratedUploadURLForbidden struct {
Payload *basicclientmodels.ErrorEntity
}
PublicGeneratedUploadURLForbidden handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>
func NewPublicGeneratedUploadURLForbidden ¶
func NewPublicGeneratedUploadURLForbidden() *PublicGeneratedUploadURLForbidden
NewPublicGeneratedUploadURLForbidden creates a PublicGeneratedUploadURLForbidden with default headers values
func (*PublicGeneratedUploadURLForbidden) Error ¶
func (o *PublicGeneratedUploadURLForbidden) Error() string
func (*PublicGeneratedUploadURLForbidden) GetPayload ¶
func (o *PublicGeneratedUploadURLForbidden) GetPayload() *basicclientmodels.ErrorEntity
func (*PublicGeneratedUploadURLForbidden) ToJSONString ¶ added in v0.25.0
func (o *PublicGeneratedUploadURLForbidden) ToJSONString() string
type PublicGeneratedUploadURLInternalServerError ¶
type PublicGeneratedUploadURLInternalServerError struct {
Payload *basicclientmodels.ErrorEntity
}
PublicGeneratedUploadURLInternalServerError handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error</td></tr></table>
func NewPublicGeneratedUploadURLInternalServerError ¶
func NewPublicGeneratedUploadURLInternalServerError() *PublicGeneratedUploadURLInternalServerError
NewPublicGeneratedUploadURLInternalServerError creates a PublicGeneratedUploadURLInternalServerError with default headers values
func (*PublicGeneratedUploadURLInternalServerError) Error ¶
func (o *PublicGeneratedUploadURLInternalServerError) Error() string
func (*PublicGeneratedUploadURLInternalServerError) GetPayload ¶
func (o *PublicGeneratedUploadURLInternalServerError) GetPayload() *basicclientmodels.ErrorEntity
func (*PublicGeneratedUploadURLInternalServerError) ToJSONString ¶ added in v0.25.0
func (o *PublicGeneratedUploadURLInternalServerError) ToJSONString() string
type PublicGeneratedUploadURLOK ¶
type PublicGeneratedUploadURLOK struct {
Payload *basicclientmodels.FileUploadURLInfo
}
PublicGeneratedUploadURLOK handles this case with default header values.
Successful operation
func NewPublicGeneratedUploadURLOK ¶
func NewPublicGeneratedUploadURLOK() *PublicGeneratedUploadURLOK
NewPublicGeneratedUploadURLOK creates a PublicGeneratedUploadURLOK with default headers values
func (*PublicGeneratedUploadURLOK) Error ¶
func (o *PublicGeneratedUploadURLOK) Error() string
func (*PublicGeneratedUploadURLOK) GetPayload ¶
func (o *PublicGeneratedUploadURLOK) GetPayload() *basicclientmodels.FileUploadURLInfo
func (*PublicGeneratedUploadURLOK) ToJSONString ¶ added in v0.25.0
func (o *PublicGeneratedUploadURLOK) ToJSONString() string
type PublicGeneratedUploadURLParams ¶
type PublicGeneratedUploadURLParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Folder the name of folder where the file will be uploaded, must be between 1-256 characters, all characters allowed no whitespace */ Folder string /*Namespace namespace, only accept alphabet and numeric */ Namespace string /*FileType one of the these types: jpeg, jpg, png, bmp, gif, mp3, bin, webp */ FileType 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 }
PublicGeneratedUploadURLParams contains all the parameters to send to the API endpoint for the public generated upload url operation typically these are written to a http.Request
func NewPublicGeneratedUploadURLParams ¶
func NewPublicGeneratedUploadURLParams() *PublicGeneratedUploadURLParams
NewPublicGeneratedUploadURLParams creates a new PublicGeneratedUploadURLParams object with the default values initialized.
func NewPublicGeneratedUploadURLParamsWithContext ¶
func NewPublicGeneratedUploadURLParamsWithContext(ctx context.Context) *PublicGeneratedUploadURLParams
NewPublicGeneratedUploadURLParamsWithContext creates a new PublicGeneratedUploadURLParams object with the default values initialized, and the ability to set a context for a request
func NewPublicGeneratedUploadURLParamsWithHTTPClient ¶
func NewPublicGeneratedUploadURLParamsWithHTTPClient(client *http.Client) *PublicGeneratedUploadURLParams
NewPublicGeneratedUploadURLParamsWithHTTPClient creates a new PublicGeneratedUploadURLParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPublicGeneratedUploadURLParamsWithTimeout ¶
func NewPublicGeneratedUploadURLParamsWithTimeout(timeout time.Duration) *PublicGeneratedUploadURLParams
NewPublicGeneratedUploadURLParamsWithTimeout creates a new PublicGeneratedUploadURLParams object with the default values initialized, and the ability to set a timeout on a request
func (*PublicGeneratedUploadURLParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *PublicGeneratedUploadURLParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the public generated upload url params
func (*PublicGeneratedUploadURLParams) SetContext ¶
func (o *PublicGeneratedUploadURLParams) SetContext(ctx context.Context)
SetContext adds the context to the public generated upload url params
func (*PublicGeneratedUploadURLParams) SetFileType ¶
func (o *PublicGeneratedUploadURLParams) SetFileType(fileType string)
SetFileType adds the fileType to the public generated upload url params
func (*PublicGeneratedUploadURLParams) SetFlightId ¶ added in v0.63.0
func (o *PublicGeneratedUploadURLParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
func (*PublicGeneratedUploadURLParams) SetFolder ¶
func (o *PublicGeneratedUploadURLParams) SetFolder(folder string)
SetFolder adds the folder to the public generated upload url params
func (*PublicGeneratedUploadURLParams) SetHTTPClient ¶
func (o *PublicGeneratedUploadURLParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the public generated upload url params
func (*PublicGeneratedUploadURLParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *PublicGeneratedUploadURLParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the public generated upload url params
func (*PublicGeneratedUploadURLParams) SetNamespace ¶
func (o *PublicGeneratedUploadURLParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the public generated upload url params
func (*PublicGeneratedUploadURLParams) SetTimeout ¶
func (o *PublicGeneratedUploadURLParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the public generated upload url params
func (*PublicGeneratedUploadURLParams) WithContext ¶
func (o *PublicGeneratedUploadURLParams) WithContext(ctx context.Context) *PublicGeneratedUploadURLParams
WithContext adds the context to the public generated upload url params
func (*PublicGeneratedUploadURLParams) WithFileType ¶
func (o *PublicGeneratedUploadURLParams) WithFileType(fileType string) *PublicGeneratedUploadURLParams
WithFileType adds the fileType to the public generated upload url params
func (*PublicGeneratedUploadURLParams) WithFolder ¶
func (o *PublicGeneratedUploadURLParams) WithFolder(folder string) *PublicGeneratedUploadURLParams
WithFolder adds the folder to the public generated upload url params
func (*PublicGeneratedUploadURLParams) WithHTTPClient ¶
func (o *PublicGeneratedUploadURLParams) WithHTTPClient(client *http.Client) *PublicGeneratedUploadURLParams
WithHTTPClient adds the HTTPClient to the public generated upload url params
func (*PublicGeneratedUploadURLParams) WithNamespace ¶
func (o *PublicGeneratedUploadURLParams) WithNamespace(namespace string) *PublicGeneratedUploadURLParams
WithNamespace adds the namespace to the public generated upload url params
func (*PublicGeneratedUploadURLParams) WithTimeout ¶
func (o *PublicGeneratedUploadURLParams) WithTimeout(timeout time.Duration) *PublicGeneratedUploadURLParams
WithTimeout adds the timeout to the public generated upload url params
func (*PublicGeneratedUploadURLParams) WriteToRequest ¶
func (o *PublicGeneratedUploadURLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PublicGeneratedUploadURLReader ¶
type PublicGeneratedUploadURLReader struct {
// contains filtered or unexported fields
}
PublicGeneratedUploadURLReader is a Reader for the PublicGeneratedUploadURL structure.
func (*PublicGeneratedUploadURLReader) ReadResponse ¶
func (o *PublicGeneratedUploadURLReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PublicGeneratedUploadURLUnauthorized ¶
type PublicGeneratedUploadURLUnauthorized struct {
}PublicGeneratedUploadURLUnauthorized handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized</td></tr></table>
func NewPublicGeneratedUploadURLUnauthorized ¶
func NewPublicGeneratedUploadURLUnauthorized() *PublicGeneratedUploadURLUnauthorized
NewPublicGeneratedUploadURLUnauthorized creates a PublicGeneratedUploadURLUnauthorized with default headers values
func (*PublicGeneratedUploadURLUnauthorized) Error ¶
func (o *PublicGeneratedUploadURLUnauthorized) Error() string
func (*PublicGeneratedUploadURLUnauthorized) GetPayload ¶
func (o *PublicGeneratedUploadURLUnauthorized) GetPayload() *basicclientmodels.ErrorEntity
func (*PublicGeneratedUploadURLUnauthorized) ToJSONString ¶ added in v0.25.0
func (o *PublicGeneratedUploadURLUnauthorized) ToJSONString() string
type PublicGeneratedUserUploadContentURLBadRequest ¶
type PublicGeneratedUserUploadContentURLBadRequest struct {
Payload *basicclientmodels.ValidationErrorEntity
}
PublicGeneratedUserUploadContentURLBadRequest handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr><tr><td>11121</td><td>Unable to {action}: category {category} is not valid</td></tr><tr><td>11131</td><td>Unable to {action}: File type is not supported</td></tr></table>
func NewPublicGeneratedUserUploadContentURLBadRequest ¶
func NewPublicGeneratedUserUploadContentURLBadRequest() *PublicGeneratedUserUploadContentURLBadRequest
NewPublicGeneratedUserUploadContentURLBadRequest creates a PublicGeneratedUserUploadContentURLBadRequest with default headers values
func (*PublicGeneratedUserUploadContentURLBadRequest) Error ¶
func (o *PublicGeneratedUserUploadContentURLBadRequest) Error() string
func (*PublicGeneratedUserUploadContentURLBadRequest) GetPayload ¶
func (o *PublicGeneratedUserUploadContentURLBadRequest) GetPayload() *basicclientmodels.ValidationErrorEntity
func (*PublicGeneratedUserUploadContentURLBadRequest) ToJSONString ¶ added in v0.25.0
func (o *PublicGeneratedUserUploadContentURLBadRequest) ToJSONString() string
type PublicGeneratedUserUploadContentURLConflict ¶
type PublicGeneratedUserUploadContentURLConflict struct {
Payload *basicclientmodels.ErrorEntity
}
PublicGeneratedUserUploadContentURLConflict handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>11132</td><td>Unable to {action}: file storage exceed limitation, user ID: {userId}, namespace: {namespace}</td></tr></table>
func NewPublicGeneratedUserUploadContentURLConflict ¶
func NewPublicGeneratedUserUploadContentURLConflict() *PublicGeneratedUserUploadContentURLConflict
NewPublicGeneratedUserUploadContentURLConflict creates a PublicGeneratedUserUploadContentURLConflict with default headers values
func (*PublicGeneratedUserUploadContentURLConflict) Error ¶
func (o *PublicGeneratedUserUploadContentURLConflict) Error() string
func (*PublicGeneratedUserUploadContentURLConflict) GetPayload ¶
func (o *PublicGeneratedUserUploadContentURLConflict) GetPayload() *basicclientmodels.ErrorEntity
func (*PublicGeneratedUserUploadContentURLConflict) ToJSONString ¶ added in v0.25.0
func (o *PublicGeneratedUserUploadContentURLConflict) ToJSONString() string
type PublicGeneratedUserUploadContentURLForbidden ¶
type PublicGeneratedUserUploadContentURLForbidden struct {
Payload *basicclientmodels.ErrorEntity
}
PublicGeneratedUserUploadContentURLForbidden handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>
func NewPublicGeneratedUserUploadContentURLForbidden ¶
func NewPublicGeneratedUserUploadContentURLForbidden() *PublicGeneratedUserUploadContentURLForbidden
NewPublicGeneratedUserUploadContentURLForbidden creates a PublicGeneratedUserUploadContentURLForbidden with default headers values
func (*PublicGeneratedUserUploadContentURLForbidden) Error ¶
func (o *PublicGeneratedUserUploadContentURLForbidden) Error() string
func (*PublicGeneratedUserUploadContentURLForbidden) GetPayload ¶
func (o *PublicGeneratedUserUploadContentURLForbidden) GetPayload() *basicclientmodels.ErrorEntity
func (*PublicGeneratedUserUploadContentURLForbidden) ToJSONString ¶ added in v0.25.0
func (o *PublicGeneratedUserUploadContentURLForbidden) ToJSONString() string
type PublicGeneratedUserUploadContentURLInternalServerError ¶
type PublicGeneratedUserUploadContentURLInternalServerError struct {
Payload *basicclientmodels.ErrorEntity
}
PublicGeneratedUserUploadContentURLInternalServerError handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error</td></tr></table>
func NewPublicGeneratedUserUploadContentURLInternalServerError ¶
func NewPublicGeneratedUserUploadContentURLInternalServerError() *PublicGeneratedUserUploadContentURLInternalServerError
NewPublicGeneratedUserUploadContentURLInternalServerError creates a PublicGeneratedUserUploadContentURLInternalServerError with default headers values
func (*PublicGeneratedUserUploadContentURLInternalServerError) Error ¶
func (o *PublicGeneratedUserUploadContentURLInternalServerError) Error() string
func (*PublicGeneratedUserUploadContentURLInternalServerError) GetPayload ¶
func (o *PublicGeneratedUserUploadContentURLInternalServerError) GetPayload() *basicclientmodels.ErrorEntity
func (*PublicGeneratedUserUploadContentURLInternalServerError) ToJSONString ¶ added in v0.25.0
func (o *PublicGeneratedUserUploadContentURLInternalServerError) ToJSONString() string
type PublicGeneratedUserUploadContentURLOK ¶
type PublicGeneratedUserUploadContentURLOK struct {
Payload *basicclientmodels.FileUploadURLInfo
}
PublicGeneratedUserUploadContentURLOK handles this case with default header values.
Successful operation
func NewPublicGeneratedUserUploadContentURLOK ¶
func NewPublicGeneratedUserUploadContentURLOK() *PublicGeneratedUserUploadContentURLOK
NewPublicGeneratedUserUploadContentURLOK creates a PublicGeneratedUserUploadContentURLOK with default headers values
func (*PublicGeneratedUserUploadContentURLOK) Error ¶
func (o *PublicGeneratedUserUploadContentURLOK) Error() string
func (*PublicGeneratedUserUploadContentURLOK) GetPayload ¶
func (o *PublicGeneratedUserUploadContentURLOK) GetPayload() *basicclientmodels.FileUploadURLInfo
func (*PublicGeneratedUserUploadContentURLOK) ToJSONString ¶ added in v0.25.0
func (o *PublicGeneratedUserUploadContentURLOK) ToJSONString() string
type PublicGeneratedUserUploadContentURLParams ¶
type PublicGeneratedUserUploadContentURLParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Namespace namespace, only accept alphabet and numeric */ Namespace string /*UserID user's id, should follow UUID version 4 without hyphen */ UserID string /*Category Upload category. Supported categories: default, reporting */ Category *string /*FileType one of the these types: jpeg, jpg, png, bmp, gif, mp3, bin, webp */ FileType 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 }
PublicGeneratedUserUploadContentURLParams contains all the parameters to send to the API endpoint for the public generated user upload content url operation typically these are written to a http.Request
func NewPublicGeneratedUserUploadContentURLParams ¶
func NewPublicGeneratedUserUploadContentURLParams() *PublicGeneratedUserUploadContentURLParams
NewPublicGeneratedUserUploadContentURLParams creates a new PublicGeneratedUserUploadContentURLParams object with the default values initialized.
func NewPublicGeneratedUserUploadContentURLParamsWithContext ¶
func NewPublicGeneratedUserUploadContentURLParamsWithContext(ctx context.Context) *PublicGeneratedUserUploadContentURLParams
NewPublicGeneratedUserUploadContentURLParamsWithContext creates a new PublicGeneratedUserUploadContentURLParams object with the default values initialized, and the ability to set a context for a request
func NewPublicGeneratedUserUploadContentURLParamsWithHTTPClient ¶
func NewPublicGeneratedUserUploadContentURLParamsWithHTTPClient(client *http.Client) *PublicGeneratedUserUploadContentURLParams
NewPublicGeneratedUserUploadContentURLParamsWithHTTPClient creates a new PublicGeneratedUserUploadContentURLParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPublicGeneratedUserUploadContentURLParamsWithTimeout ¶
func NewPublicGeneratedUserUploadContentURLParamsWithTimeout(timeout time.Duration) *PublicGeneratedUserUploadContentURLParams
NewPublicGeneratedUserUploadContentURLParamsWithTimeout creates a new PublicGeneratedUserUploadContentURLParams object with the default values initialized, and the ability to set a timeout on a request
func (*PublicGeneratedUserUploadContentURLParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *PublicGeneratedUserUploadContentURLParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the public generated user upload content url params
func (*PublicGeneratedUserUploadContentURLParams) SetCategory ¶ added in v0.23.0
func (o *PublicGeneratedUserUploadContentURLParams) SetCategory(category *string)
SetCategory adds the category to the public generated user upload content url params
func (*PublicGeneratedUserUploadContentURLParams) SetContext ¶
func (o *PublicGeneratedUserUploadContentURLParams) SetContext(ctx context.Context)
SetContext adds the context to the public generated user upload content url params
func (*PublicGeneratedUserUploadContentURLParams) SetFileType ¶
func (o *PublicGeneratedUserUploadContentURLParams) SetFileType(fileType string)
SetFileType adds the fileType to the public generated user upload content url params
func (*PublicGeneratedUserUploadContentURLParams) SetFlightId ¶ added in v0.63.0
func (o *PublicGeneratedUserUploadContentURLParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
func (*PublicGeneratedUserUploadContentURLParams) SetHTTPClient ¶
func (o *PublicGeneratedUserUploadContentURLParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the public generated user upload content url params
func (*PublicGeneratedUserUploadContentURLParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *PublicGeneratedUserUploadContentURLParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the public generated user upload content url params
func (*PublicGeneratedUserUploadContentURLParams) SetNamespace ¶
func (o *PublicGeneratedUserUploadContentURLParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the public generated user upload content url params
func (*PublicGeneratedUserUploadContentURLParams) SetTimeout ¶
func (o *PublicGeneratedUserUploadContentURLParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the public generated user upload content url params
func (*PublicGeneratedUserUploadContentURLParams) SetUserID ¶
func (o *PublicGeneratedUserUploadContentURLParams) SetUserID(userID string)
SetUserID adds the userId to the public generated user upload content url params
func (*PublicGeneratedUserUploadContentURLParams) WithCategory ¶ added in v0.23.0
func (o *PublicGeneratedUserUploadContentURLParams) WithCategory(category *string) *PublicGeneratedUserUploadContentURLParams
WithCategory adds the category to the public generated user upload content url params
func (*PublicGeneratedUserUploadContentURLParams) WithContext ¶
func (o *PublicGeneratedUserUploadContentURLParams) WithContext(ctx context.Context) *PublicGeneratedUserUploadContentURLParams
WithContext adds the context to the public generated user upload content url params
func (*PublicGeneratedUserUploadContentURLParams) WithFileType ¶
func (o *PublicGeneratedUserUploadContentURLParams) WithFileType(fileType string) *PublicGeneratedUserUploadContentURLParams
WithFileType adds the fileType to the public generated user upload content url params
func (*PublicGeneratedUserUploadContentURLParams) WithHTTPClient ¶
func (o *PublicGeneratedUserUploadContentURLParams) WithHTTPClient(client *http.Client) *PublicGeneratedUserUploadContentURLParams
WithHTTPClient adds the HTTPClient to the public generated user upload content url params
func (*PublicGeneratedUserUploadContentURLParams) WithNamespace ¶
func (o *PublicGeneratedUserUploadContentURLParams) WithNamespace(namespace string) *PublicGeneratedUserUploadContentURLParams
WithNamespace adds the namespace to the public generated user upload content url params
func (*PublicGeneratedUserUploadContentURLParams) WithTimeout ¶
func (o *PublicGeneratedUserUploadContentURLParams) WithTimeout(timeout time.Duration) *PublicGeneratedUserUploadContentURLParams
WithTimeout adds the timeout to the public generated user upload content url params
func (*PublicGeneratedUserUploadContentURLParams) WithUserID ¶
func (o *PublicGeneratedUserUploadContentURLParams) WithUserID(userID string) *PublicGeneratedUserUploadContentURLParams
WithUserID adds the userID to the public generated user upload content url params
func (*PublicGeneratedUserUploadContentURLParams) WriteToRequest ¶
func (o *PublicGeneratedUserUploadContentURLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PublicGeneratedUserUploadContentURLReader ¶
type PublicGeneratedUserUploadContentURLReader struct {
// contains filtered or unexported fields
}
PublicGeneratedUserUploadContentURLReader is a Reader for the PublicGeneratedUserUploadContentURL structure.
func (*PublicGeneratedUserUploadContentURLReader) ReadResponse ¶
func (o *PublicGeneratedUserUploadContentURLReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PublicGeneratedUserUploadContentURLUnauthorized ¶
type PublicGeneratedUserUploadContentURLUnauthorized struct {
}PublicGeneratedUserUploadContentURLUnauthorized handles this case with default header values.
<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized</td></tr></table>
func NewPublicGeneratedUserUploadContentURLUnauthorized ¶
func NewPublicGeneratedUserUploadContentURLUnauthorized() *PublicGeneratedUserUploadContentURLUnauthorized
NewPublicGeneratedUserUploadContentURLUnauthorized creates a PublicGeneratedUserUploadContentURLUnauthorized with default headers values
func (*PublicGeneratedUserUploadContentURLUnauthorized) Error ¶
func (o *PublicGeneratedUserUploadContentURLUnauthorized) Error() string
func (*PublicGeneratedUserUploadContentURLUnauthorized) GetPayload ¶
func (o *PublicGeneratedUserUploadContentURLUnauthorized) GetPayload() *basicclientmodels.ErrorEntity
func (*PublicGeneratedUserUploadContentURLUnauthorized) ToJSONString ¶ added in v0.25.0
func (o *PublicGeneratedUserUploadContentURLUnauthorized) ToJSONString() string
Source Files
¶
- file_upload_client.go
- generated_upload_url_parameters.go
- generated_upload_url_responses.go
- generated_user_upload_content_url_parameters.go
- generated_user_upload_content_url_responses.go
- public_generated_upload_url_parameters.go
- public_generated_upload_url_responses.go
- public_generated_user_upload_content_url_parameters.go
- public_generated_user_upload_content_url_responses.go