Documentation ¶
Index ¶
- type Client
- func (a *Client) GeneratedUploadURL(params *GeneratedUploadURLParams, authInfo runtime.ClientAuthInfoWriter) (*GeneratedUploadURLOK, *GeneratedUploadURLBadRequest, ...)
- func (a *Client) GeneratedUploadURLShort(params *GeneratedUploadURLParams, authInfo runtime.ClientAuthInfoWriter) (*GeneratedUploadURLOK, error)
- func (a *Client) GeneratedUserUploadContentURL(params *GeneratedUserUploadContentURLParams, ...) (*GeneratedUserUploadContentURLOK, *GeneratedUserUploadContentURLBadRequest, ...)
- func (a *Client) GeneratedUserUploadContentURLShort(params *GeneratedUserUploadContentURLParams, ...) (*GeneratedUserUploadContentURLOK, error)
- func (a *Client) PublicGeneratedUploadURL(params *PublicGeneratedUploadURLParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGeneratedUploadURLOK, *PublicGeneratedUploadURLBadRequest, ...)
- func (a *Client) PublicGeneratedUploadURLShort(params *PublicGeneratedUploadURLParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGeneratedUploadURLOK, error)
- func (a *Client) PublicGeneratedUserUploadContentURL(params *PublicGeneratedUserUploadContentURLParams, ...) (*PublicGeneratedUserUploadContentURLOK, ...)
- 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) 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) 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) 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) 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 ¶
func (a *Client) GeneratedUploadURL(params *GeneratedUploadURLParams, authInfo runtime.ClientAuthInfoWriter) (*GeneratedUploadURLOK, *GeneratedUploadURLBadRequest, *GeneratedUploadURLUnauthorized, *GeneratedUploadURLForbidden, *GeneratedUploadURLInternalServerError, error)
GeneratedUploadURL generates upload URL
Generate an upload URL. It's valid for 10 minutes.<br/>Other detail info: <ul><li><i>Required permission</i>: resource = <b>"ADMIN:NAMESPACE:{namespace}:FILEUPLOAD"</b>, action=1 <b>(CREATE)</b></li><li><i>Action code</i>: 11101</li><li><i>Returns</i>: URL data</li></ul>
func (*Client) GeneratedUploadURLShort ¶ added in v0.8.0
func (a *Client) GeneratedUploadURLShort(params *GeneratedUploadURLParams, authInfo runtime.ClientAuthInfoWriter) (*GeneratedUploadURLOK, error)
func (*Client) GeneratedUserUploadContentURL ¶
func (a *Client) GeneratedUserUploadContentURL(params *GeneratedUserUploadContentURLParams, authInfo runtime.ClientAuthInfoWriter) (*GeneratedUserUploadContentURLOK, *GeneratedUserUploadContentURLBadRequest, *GeneratedUserUploadContentURLUnauthorized, *GeneratedUserUploadContentURLForbidden, *GeneratedUserUploadContentURLConflict, *GeneratedUserUploadContentURLInternalServerError, error)
GeneratedUserUploadContentURL generates upload URL for user content
Generate an upload URL for user content. It's valid for 10 minutes.<br/>Other detail info: <ul><li><i>Required permission</i>: resource = <b>"ADMIN:NAMESPACE:{namespace}:USER:{userId}:FILEUPLOAD"</b>, action=1 <b>(CREATE)</b></li><li><i>Action code</i>: 11102</li><li><i>Default maximum file count per user</i>: 10 files</li><li><i>Default maximum file size per user</i>: 104857600 bytes</li><li><i>Returns</i>: URL data</li></ul>
func (*Client) GeneratedUserUploadContentURLShort ¶ added in v0.8.0
func (a *Client) GeneratedUserUploadContentURLShort(params *GeneratedUserUploadContentURLParams, authInfo runtime.ClientAuthInfoWriter) (*GeneratedUserUploadContentURLOK, error)
func (*Client) PublicGeneratedUploadURL ¶
func (a *Client) PublicGeneratedUploadURL(params *PublicGeneratedUploadURLParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGeneratedUploadURLOK, *PublicGeneratedUploadURLBadRequest, *PublicGeneratedUploadURLUnauthorized, *PublicGeneratedUploadURLForbidden, *PublicGeneratedUploadURLInternalServerError, error)
PublicGeneratedUploadURL generates upload URL
Generate an upload URL. It's valid for 10 minutes.<br/>Other detail info: <ul><li><i>Required permission</i>: resource = <b>"NAMESPACE:{namespace}:FILEUPLOAD"</b>, action=1 <b>(CREATE)</b></li><li><i>Action code</i>: 11101</li><li><i>Returns</i>: URL data</li></ul>
func (*Client) PublicGeneratedUploadURLShort ¶ added in v0.8.0
func (a *Client) PublicGeneratedUploadURLShort(params *PublicGeneratedUploadURLParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGeneratedUploadURLOK, error)
func (*Client) PublicGeneratedUserUploadContentURL ¶
func (a *Client) PublicGeneratedUserUploadContentURL(params *PublicGeneratedUserUploadContentURLParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGeneratedUserUploadContentURLOK, *PublicGeneratedUserUploadContentURLBadRequest, *PublicGeneratedUserUploadContentURLUnauthorized, *PublicGeneratedUserUploadContentURLForbidden, *PublicGeneratedUserUploadContentURLConflict, *PublicGeneratedUserUploadContentURLInternalServerError, error)
PublicGeneratedUserUploadContentURL generates upload URL for user content
Generate an upload URL for user content. It's valid for 10 minutes.<br/>There are 2 kinds of storage limitation per user : maximum file count and maximum file size.<br/>The threshold of those limitations is different between upload category that is used.<br/>Other detail info: <ul><li><i>Required permission</i>: resource = <b>"NAMESPACE:{namespace}:USER:{userId}:FILEUPLOAD"</b>, action=1 <b>(CREATE)</b></li><li><i>Action code</i>: 11102</li><li><i>Default maximum file count per user</i>: 10 files</li><li><i>Default maximum file size per user</i>: 104857600 bytes</li><li><i>Returns</i>: URL data</li></ul>
func (*Client) PublicGeneratedUserUploadContentURLShort ¶ added in v0.8.0
func (a *Client) PublicGeneratedUserUploadContentURLShort(params *PublicGeneratedUserUploadContentURLParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGeneratedUserUploadContentURLOK, error)
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
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
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
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
type GeneratedUploadURLParams ¶
type GeneratedUploadURLParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*FileType one of the these types: jpeg, jpg, png, bmp, gif, mp3, bin, webp */ FileType string /*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 AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // 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) 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
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
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
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
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
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
type GeneratedUserUploadContentURLParams ¶
type GeneratedUserUploadContentURLParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*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 /*Namespace namespace, only accept alphabet and numeric */ Namespace string /*UserID user's id, should follow UUID version 4 without hyphen */ UserID string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // 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) 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
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
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
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
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
type PublicGeneratedUploadURLParams ¶
type PublicGeneratedUploadURLParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*FileType one of the these types: jpeg, jpg, png, bmp, gif, mp3, bin, webp */ FileType string /*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 AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // 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) 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
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
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
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
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
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
type PublicGeneratedUserUploadContentURLParams ¶
type PublicGeneratedUserUploadContentURLParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*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 /*Namespace namespace, only accept alphabet and numeric */ Namespace string /*UserID user's id, should follow UUID version 4 without hyphen */ UserID string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // 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) 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
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