Documentation
¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- func IsNil(i interface{}) bool
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- type APIClient
- type APIKey
- type APIResponse
- type ApiCreateContentRequest
- type ApiGetConfigRequest
- type ApiGetContentOverrideNameRequest
- type ApiGetContentRequest
- type ApiGetContentThumbnailRequest
- func (r ApiGetContentThumbnailRequest) Animated(animated bool) ApiGetContentThumbnailRequest
- func (r ApiGetContentThumbnailRequest) Execute() (interface{}, *http.Response, error)
- func (r ApiGetContentThumbnailRequest) Height(height int32) ApiGetContentThumbnailRequest
- func (r ApiGetContentThumbnailRequest) Method(method string) ApiGetContentThumbnailRequest
- func (r ApiGetContentThumbnailRequest) TimeoutMs(timeoutMs int64) ApiGetContentThumbnailRequest
- func (r ApiGetContentThumbnailRequest) Width(width int32) ApiGetContentThumbnailRequest
- type ApiGetUrlPreviewRequest
- type ApiUploadContentRequest
- func (r ApiUploadContentRequest) Body(body interface{}) ApiUploadContentRequest
- func (r ApiUploadContentRequest) ContentType(contentType string) ApiUploadContentRequest
- func (r ApiUploadContentRequest) Execute() (*UploadContent200Response, *http.Response, error)
- func (r ApiUploadContentRequest) Filename(filename string) ApiUploadContentRequest
- type ApiUploadContentToMXCRequest
- func (r ApiUploadContentToMXCRequest) Body(body interface{}) ApiUploadContentToMXCRequest
- func (r ApiUploadContentToMXCRequest) ContentType(contentType string) ApiUploadContentToMXCRequest
- func (r ApiUploadContentToMXCRequest) Execute() (map[string]interface{}, *http.Response, error)
- func (r ApiUploadContentToMXCRequest) Filename(filename string) ApiUploadContentToMXCRequest
- type BasicAuth
- type Configuration
- type CreateContent200Response
- func (o *CreateContent200Response) GetContentUri() string
- func (o *CreateContent200Response) GetContentUriOk() (*string, bool)
- func (o *CreateContent200Response) GetUnusedExpiresAt() int64
- func (o *CreateContent200Response) GetUnusedExpiresAtOk() (*int64, bool)
- func (o *CreateContent200Response) HasUnusedExpiresAt() bool
- func (o CreateContent200Response) MarshalJSON() ([]byte, error)
- func (o *CreateContent200Response) SetContentUri(v string)
- func (o *CreateContent200Response) SetUnusedExpiresAt(v int64)
- func (o CreateContent200Response) ToMap() (map[string]interface{}, error)
- func (o *CreateContent200Response) UnmarshalJSON(data []byte) (err error)
- type Error
- func (o *Error) GetErrcode() string
- func (o *Error) GetErrcodeOk() (*string, bool)
- func (o *Error) GetError() string
- func (o *Error) GetErrorOk() (*string, bool)
- func (o *Error) HasError() bool
- func (o Error) MarshalJSON() ([]byte, error)
- func (o *Error) SetErrcode(v string)
- func (o *Error) SetError(v string)
- func (o Error) ToMap() (map[string]interface{}, error)
- func (o *Error) UnmarshalJSON(data []byte) (err error)
- type Error1
- func (o *Error1) GetErrcode() interface{}
- func (o *Error1) GetErrcodeOk() (*interface{}, bool)
- func (o *Error1) GetError() interface{}
- func (o *Error1) GetErrorOk() (*interface{}, bool)
- func (o *Error1) HasError() bool
- func (o Error1) MarshalJSON() ([]byte, error)
- func (o *Error1) SetErrcode(v interface{})
- func (o *Error1) SetError(v interface{})
- func (o Error1) ToMap() (map[string]interface{}, error)
- func (o *Error1) UnmarshalJSON(bytes []byte) (err error)
- type GenericOpenAPIError
- type GetConfig200Response
- func (o *GetConfig200Response) GetMUploadSize() int64
- func (o *GetConfig200Response) GetMUploadSizeOk() (*int64, bool)
- func (o *GetConfig200Response) HasMUploadSize() bool
- func (o GetConfig200Response) MarshalJSON() ([]byte, error)
- func (o *GetConfig200Response) SetMUploadSize(v int64)
- func (o GetConfig200Response) ToMap() (map[string]interface{}, error)
- type GetUrlPreview200Response
- func (o *GetUrlPreview200Response) GetMatrixImageSize() int64
- func (o *GetUrlPreview200Response) GetMatrixImageSizeOk() (*int64, bool)
- func (o *GetUrlPreview200Response) GetOgImage() string
- func (o *GetUrlPreview200Response) GetOgImageOk() (*string, bool)
- func (o *GetUrlPreview200Response) HasMatrixImageSize() bool
- func (o *GetUrlPreview200Response) HasOgImage() bool
- func (o GetUrlPreview200Response) MarshalJSON() ([]byte, error)
- func (o *GetUrlPreview200Response) SetMatrixImageSize(v int64)
- func (o *GetUrlPreview200Response) SetOgImage(v string)
- func (o GetUrlPreview200Response) ToMap() (map[string]interface{}, error)
- type InlineObject
- func (o *InlineObject) GetErrcode() string
- func (o *InlineObject) GetErrcodeOk() (*string, bool)
- func (o *InlineObject) GetError() string
- func (o *InlineObject) GetErrorOk() (*string, bool)
- func (o *InlineObject) GetRetryAfterMs() int32
- func (o *InlineObject) GetRetryAfterMsOk() (*int32, bool)
- func (o *InlineObject) HasError() bool
- func (o *InlineObject) HasRetryAfterMs() bool
- func (o InlineObject) MarshalJSON() ([]byte, error)
- func (o *InlineObject) SetErrcode(v string)
- func (o *InlineObject) SetError(v string)
- func (o *InlineObject) SetRetryAfterMs(v int32)
- func (o InlineObject) ToMap() (map[string]interface{}, error)
- func (o *InlineObject) UnmarshalJSON(data []byte) (err error)
- type MappedNullable
- type MediaAPIService
- func (a *MediaAPIService) CreateContent(ctx context.Context) ApiCreateContentRequest
- func (a *MediaAPIService) CreateContentExecute(r ApiCreateContentRequest) (*CreateContent200Response, *http.Response, error)
- func (a *MediaAPIService) GetConfig(ctx context.Context) ApiGetConfigRequest
- func (a *MediaAPIService) GetConfigExecute(r ApiGetConfigRequest) (*GetConfig200Response, *http.Response, error)
- func (a *MediaAPIService) GetContent(ctx context.Context, serverName string, mediaId string) ApiGetContentRequest
- func (a *MediaAPIService) GetContentExecute(r ApiGetContentRequest) (interface{}, *http.Response, error)
- func (a *MediaAPIService) GetContentOverrideName(ctx context.Context, serverName string, mediaId string, fileName string) ApiGetContentOverrideNameRequest
- func (a *MediaAPIService) GetContentOverrideNameExecute(r ApiGetContentOverrideNameRequest) (interface{}, *http.Response, error)
- func (a *MediaAPIService) GetContentThumbnail(ctx context.Context, serverName string, mediaId string) ApiGetContentThumbnailRequest
- func (a *MediaAPIService) GetContentThumbnailExecute(r ApiGetContentThumbnailRequest) (interface{}, *http.Response, error)
- func (a *MediaAPIService) GetUrlPreview(ctx context.Context) ApiGetUrlPreviewRequest
- func (a *MediaAPIService) GetUrlPreviewExecute(r ApiGetUrlPreviewRequest) (*GetUrlPreview200Response, *http.Response, error)
- func (a *MediaAPIService) UploadContent(ctx context.Context) ApiUploadContentRequest
- func (a *MediaAPIService) UploadContentExecute(r ApiUploadContentRequest) (*UploadContent200Response, *http.Response, error)
- func (a *MediaAPIService) UploadContentToMXC(ctx context.Context, serverName string, mediaId string) ApiUploadContentToMXCRequest
- func (a *MediaAPIService) UploadContentToMXCExecute(r ApiUploadContentToMXCRequest) (map[string]interface{}, *http.Response, error)
- type NullableBool
- type NullableCreateContent200Response
- func (v NullableCreateContent200Response) Get() *CreateContent200Response
- func (v NullableCreateContent200Response) IsSet() bool
- func (v NullableCreateContent200Response) MarshalJSON() ([]byte, error)
- func (v *NullableCreateContent200Response) Set(val *CreateContent200Response)
- func (v *NullableCreateContent200Response) UnmarshalJSON(src []byte) error
- func (v *NullableCreateContent200Response) Unset()
- type NullableError
- type NullableError1
- type NullableFloat32
- type NullableFloat64
- type NullableGetConfig200Response
- func (v NullableGetConfig200Response) Get() *GetConfig200Response
- func (v NullableGetConfig200Response) IsSet() bool
- func (v NullableGetConfig200Response) MarshalJSON() ([]byte, error)
- func (v *NullableGetConfig200Response) Set(val *GetConfig200Response)
- func (v *NullableGetConfig200Response) UnmarshalJSON(src []byte) error
- func (v *NullableGetConfig200Response) Unset()
- type NullableGetUrlPreview200Response
- func (v NullableGetUrlPreview200Response) Get() *GetUrlPreview200Response
- func (v NullableGetUrlPreview200Response) IsSet() bool
- func (v NullableGetUrlPreview200Response) MarshalJSON() ([]byte, error)
- func (v *NullableGetUrlPreview200Response) Set(val *GetUrlPreview200Response)
- func (v *NullableGetUrlPreview200Response) UnmarshalJSON(src []byte) error
- func (v *NullableGetUrlPreview200Response) Unset()
- type NullableInlineObject
- func (v NullableInlineObject) Get() *InlineObject
- func (v NullableInlineObject) IsSet() bool
- func (v NullableInlineObject) MarshalJSON() ([]byte, error)
- func (v *NullableInlineObject) Set(val *InlineObject)
- func (v *NullableInlineObject) UnmarshalJSON(src []byte) error
- func (v *NullableInlineObject) Unset()
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableString
- type NullableTime
- type NullableUploadContent200Response
- func (v NullableUploadContent200Response) Get() *UploadContent200Response
- func (v NullableUploadContent200Response) IsSet() bool
- func (v NullableUploadContent200Response) MarshalJSON() ([]byte, error)
- func (v *NullableUploadContent200Response) Set(val *UploadContent200Response)
- func (v *NullableUploadContent200Response) UnmarshalJSON(src []byte) error
- func (v *NullableUploadContent200Response) Unset()
- type ServerConfiguration
- type ServerConfigurations
- type ServerVariable
- type UploadContent200Response
- func (o *UploadContent200Response) GetContentUri() string
- func (o *UploadContent200Response) GetContentUriOk() (*string, bool)
- func (o UploadContent200Response) MarshalJSON() ([]byte, error)
- func (o *UploadContent200Response) SetContentUri(v string)
- func (o UploadContent200Response) ToMap() (map[string]interface{}, error)
- func (o *UploadContent200Response) UnmarshalJSON(data []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
var ( JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) )
var ( // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") // ContextServerIndex uses a server configuration from the index. ContextServerIndex = contextKey("serverIndex") // ContextOperationServerIndices uses a server configuration from the index mapping. ContextOperationServerIndices = contextKey("serverOperationIndices") // ContextServerVariables overrides a server configuration variables. ContextServerVariables = contextKey("serverVariables") // ContextOperationServerVariables overrides a server configuration variables using operation specific values. ContextOperationServerVariables = contextKey("serverOperationVariables") )
Functions ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float value.
Types ¶
type APIClient ¶
type APIClient struct { MediaAPI *MediaAPIService // contains filtered or unexported fields }
APIClient manages communication with the Ant Investor Files API v1.0.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) GetConfig ¶
func (c *APIClient) GetConfig() *Configuration
Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
type APIKey ¶
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the OpenAPI operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
APIResponse stores the API response returned by the server.
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
NewAPIResponse returns a new APIResponse object.
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
type ApiCreateContentRequest ¶
type ApiCreateContentRequest struct { ApiService *MediaAPIService // contains filtered or unexported fields }
func (ApiCreateContentRequest) Execute ¶
func (r ApiCreateContentRequest) Execute() (*CreateContent200Response, *http.Response, error)
type ApiGetConfigRequest ¶
type ApiGetConfigRequest struct { ApiService *MediaAPIService // contains filtered or unexported fields }
func (ApiGetConfigRequest) Execute ¶
func (r ApiGetConfigRequest) Execute() (*GetConfig200Response, *http.Response, error)
type ApiGetContentOverrideNameRequest ¶
type ApiGetContentOverrideNameRequest struct { ApiService *MediaAPIService // contains filtered or unexported fields }
func (ApiGetContentOverrideNameRequest) Execute ¶
func (r ApiGetContentOverrideNameRequest) Execute() (interface{}, *http.Response, error)
func (ApiGetContentOverrideNameRequest) TimeoutMs ¶
func (r ApiGetContentOverrideNameRequest) TimeoutMs(timeoutMs int64) ApiGetContentOverrideNameRequest
The maximum number of milliseconds that the client is willing to wait to start receiving data, in the case that the content has not yet been uploaded. The default value is 20000 (20 seconds). The content repository SHOULD impose a maximum value for this parameter. The content repository MAY respond before the timeout.
type ApiGetContentRequest ¶
type ApiGetContentRequest struct { ApiService *MediaAPIService // contains filtered or unexported fields }
func (ApiGetContentRequest) Execute ¶
func (r ApiGetContentRequest) Execute() (interface{}, *http.Response, error)
func (ApiGetContentRequest) TimeoutMs ¶
func (r ApiGetContentRequest) TimeoutMs(timeoutMs int64) ApiGetContentRequest
The maximum number of milliseconds that the client is willing to wait to start receiving data, in the case that the content has not yet been uploaded. The default value is 20000 (20 seconds). The content repository SHOULD impose a maximum value for this parameter. The content repository MAY respond before the timeout.
type ApiGetContentThumbnailRequest ¶
type ApiGetContentThumbnailRequest struct { ApiService *MediaAPIService // contains filtered or unexported fields }
func (ApiGetContentThumbnailRequest) Animated ¶
func (r ApiGetContentThumbnailRequest) Animated(animated bool) ApiGetContentThumbnailRequest
Indicates preference for an animated thumbnail from the server, if possible. Animated thumbnails typically use the content types `image/gif`, `image/png` (with APNG format), `image/apng`, and `image/webp` instead of the common static `image/png` or `image/jpeg` content types. When `true`, the server SHOULD return an animated thumbnail if possible and supported. When `false`, the server MUST NOT return an animated thumbnail. For example, returning a static `image/png` or `image/jpeg` thumbnail. When not provided, the server SHOULD NOT return an animated thumbnail. Servers SHOULD prefer to return `image/webp` thumbnails when supporting animation. When `true` and the media cannot be animated, such as in the case of a JPEG or PDF, the server SHOULD behave as though `animated` is `false`.
func (ApiGetContentThumbnailRequest) Execute ¶
func (r ApiGetContentThumbnailRequest) Execute() (interface{}, *http.Response, error)
func (ApiGetContentThumbnailRequest) Height ¶
func (r ApiGetContentThumbnailRequest) Height(height int32) ApiGetContentThumbnailRequest
The *desired* height of the thumbnail. The actual thumbnail may be larger than the size specified.
func (ApiGetContentThumbnailRequest) Method ¶
func (r ApiGetContentThumbnailRequest) Method(method string) ApiGetContentThumbnailRequest
The desired resizing method. See the [Thumbnails](/client-server-api/#thumbnails) section for more information.
func (ApiGetContentThumbnailRequest) TimeoutMs ¶
func (r ApiGetContentThumbnailRequest) TimeoutMs(timeoutMs int64) ApiGetContentThumbnailRequest
The maximum number of milliseconds that the client is willing to wait to start receiving data, in the case that the content has not yet been uploaded. The default value is 20000 (20 seconds). The content repository SHOULD impose a maximum value for this parameter. The content repository MAY respond before the timeout.
func (ApiGetContentThumbnailRequest) Width ¶
func (r ApiGetContentThumbnailRequest) Width(width int32) ApiGetContentThumbnailRequest
The *desired* width of the thumbnail. The actual thumbnail may be larger than the size specified.
type ApiGetUrlPreviewRequest ¶
type ApiGetUrlPreviewRequest struct { ApiService *MediaAPIService // contains filtered or unexported fields }
func (ApiGetUrlPreviewRequest) Execute ¶
func (r ApiGetUrlPreviewRequest) Execute() (*GetUrlPreview200Response, *http.Response, error)
func (ApiGetUrlPreviewRequest) Ts ¶
func (r ApiGetUrlPreviewRequest) Ts(ts int64) ApiGetUrlPreviewRequest
The preferred point in time to return a preview for. The server may return a newer version if it does not have the requested version available.
func (ApiGetUrlPreviewRequest) Url ¶
func (r ApiGetUrlPreviewRequest) Url(url string) ApiGetUrlPreviewRequest
The URL to get a preview of.
type ApiUploadContentRequest ¶
type ApiUploadContentRequest struct { ApiService *MediaAPIService // contains filtered or unexported fields }
func (ApiUploadContentRequest) Body ¶
func (r ApiUploadContentRequest) Body(body interface{}) ApiUploadContentRequest
func (ApiUploadContentRequest) ContentType ¶
func (r ApiUploadContentRequest) ContentType(contentType string) ApiUploadContentRequest
**Optional.** The content type of the file being uploaded. Clients SHOULD always supply this header. Defaults to `application/octet-stream` if it is not set. This header became explicitly optional with a default value.
func (ApiUploadContentRequest) Execute ¶
func (r ApiUploadContentRequest) Execute() (*UploadContent200Response, *http.Response, error)
func (ApiUploadContentRequest) Filename ¶
func (r ApiUploadContentRequest) Filename(filename string) ApiUploadContentRequest
The name of the file being uploaded
type ApiUploadContentToMXCRequest ¶
type ApiUploadContentToMXCRequest struct { ApiService *MediaAPIService // contains filtered or unexported fields }
func (ApiUploadContentToMXCRequest) Body ¶
func (r ApiUploadContentToMXCRequest) Body(body interface{}) ApiUploadContentToMXCRequest
func (ApiUploadContentToMXCRequest) ContentType ¶
func (r ApiUploadContentToMXCRequest) ContentType(contentType string) ApiUploadContentToMXCRequest
**Optional.** The content type of the file being uploaded. Clients SHOULD always supply this header. Defaults to `application/octet-stream` if it is not set. This header became explicitly optional with a default value.
func (ApiUploadContentToMXCRequest) Execute ¶
func (r ApiUploadContentToMXCRequest) Execute() (map[string]interface{}, *http.Response, error)
func (ApiUploadContentToMXCRequest) Filename ¶
func (r ApiUploadContentToMXCRequest) Filename(filename string) ApiUploadContentToMXCRequest
The name of the file being uploaded
type BasicAuth ¶
type BasicAuth struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` }
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type Configuration ¶
type Configuration struct { Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` Debug bool `json:"debug,omitempty"` Servers ServerConfigurations OperationServers map[string]ServerConfigurations HTTPClient *http.Client }
Configuration stores the configuration of the API client
func NewConfiguration ¶
func NewConfiguration() *Configuration
NewConfiguration returns a new Configuration object
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
AddDefaultHeader adds a new HTTP header to the default header in the request
func (*Configuration) ServerURLWithContext ¶
ServerURLWithContext returns a new server URL given an endpoint
type CreateContent200Response ¶
type CreateContent200Response struct { // The [`mxc://` URI](/client-server-api/#matrix-content-mxc-uris) at which the content will be available, once it is uploaded. ContentUri string `json:"content_uri" validate:"regexp=^mxc:\\/\\/"` // The timestamp (in milliseconds since the unix epoch) when the generated media id will expire, if media is not uploaded. UnusedExpiresAt *int64 `json:"unused_expires_at,omitempty"` }
CreateContent200Response struct for CreateContent200Response
func NewCreateContent200Response ¶
func NewCreateContent200Response(contentUri string) *CreateContent200Response
NewCreateContent200Response instantiates a new CreateContent200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewCreateContent200ResponseWithDefaults ¶
func NewCreateContent200ResponseWithDefaults() *CreateContent200Response
NewCreateContent200ResponseWithDefaults instantiates a new CreateContent200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*CreateContent200Response) GetContentUri ¶
func (o *CreateContent200Response) GetContentUri() string
GetContentUri returns the ContentUri field value
func (*CreateContent200Response) GetContentUriOk ¶
func (o *CreateContent200Response) GetContentUriOk() (*string, bool)
GetContentUriOk returns a tuple with the ContentUri field value and a boolean to check if the value has been set.
func (*CreateContent200Response) GetUnusedExpiresAt ¶
func (o *CreateContent200Response) GetUnusedExpiresAt() int64
GetUnusedExpiresAt returns the UnusedExpiresAt field value if set, zero value otherwise.
func (*CreateContent200Response) GetUnusedExpiresAtOk ¶
func (o *CreateContent200Response) GetUnusedExpiresAtOk() (*int64, bool)
GetUnusedExpiresAtOk returns a tuple with the UnusedExpiresAt field value if set, nil otherwise and a boolean to check if the value has been set.
func (*CreateContent200Response) HasUnusedExpiresAt ¶
func (o *CreateContent200Response) HasUnusedExpiresAt() bool
HasUnusedExpiresAt returns a boolean if a field has been set.
func (CreateContent200Response) MarshalJSON ¶
func (o CreateContent200Response) MarshalJSON() ([]byte, error)
func (*CreateContent200Response) SetContentUri ¶
func (o *CreateContent200Response) SetContentUri(v string)
SetContentUri sets field value
func (*CreateContent200Response) SetUnusedExpiresAt ¶
func (o *CreateContent200Response) SetUnusedExpiresAt(v int64)
SetUnusedExpiresAt gets a reference to the given int64 and assigns it to the UnusedExpiresAt field.
func (CreateContent200Response) ToMap ¶
func (o CreateContent200Response) ToMap() (map[string]interface{}, error)
func (*CreateContent200Response) UnmarshalJSON ¶
func (o *CreateContent200Response) UnmarshalJSON(data []byte) (err error)
type Error ¶
type Error struct { // An error code for the error. Errcode string `json:"errcode"` // A human-readable error message. Error *string `json:"error,omitempty"` }
Error A Service level Error
func NewError ¶
NewError instantiates a new Error object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewErrorWithDefaults ¶
func NewErrorWithDefaults() *Error
NewErrorWithDefaults instantiates a new Error object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Error) GetErrcode ¶
GetErrcode returns the Errcode field value
func (*Error) GetErrcodeOk ¶
GetErrcodeOk returns a tuple with the Errcode field value and a boolean to check if the value has been set.
func (*Error) GetErrorOk ¶
GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set.
func (Error) MarshalJSON ¶
func (*Error) SetError ¶
SetError gets a reference to the given string and assigns it to the Error field.
func (*Error) UnmarshalJSON ¶
type Error1 ¶
type Error1 struct { // An error code for the error. Errcode interface{} `json:"errcode"` // A human-readable error message. Error interface{} `json:"error,omitempty"` }
Error1 A Service level Error
func NewError1 ¶
func NewError1(errcode interface{}) *Error1
NewError1 instantiates a new Error1 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewError1WithDefaults ¶
func NewError1WithDefaults() *Error1
NewError1WithDefaults instantiates a new Error1 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Error1) GetErrcode ¶
func (o *Error1) GetErrcode() interface{}
GetErrcode returns the Errcode field value If the value is explicit nil, the zero value for interface{} will be returned
func (*Error1) GetErrcodeOk ¶
GetErrcodeOk returns a tuple with the Errcode field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (*Error1) GetError ¶
func (o *Error1) GetError() interface{}
GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null).
func (*Error1) GetErrorOk ¶
GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned
func (Error1) MarshalJSON ¶
func (*Error1) SetError ¶
func (o *Error1) SetError(v interface{})
SetError gets a reference to the given interface{} and assigns it to the Error field.
func (*Error1) UnmarshalJSON ¶
type GenericOpenAPIError ¶
type GenericOpenAPIError struct {
// contains filtered or unexported fields
}
GenericOpenAPIError Provides access to the body, error and model on returned errors.
func (GenericOpenAPIError) Body ¶
func (e GenericOpenAPIError) Body() []byte
Body returns the raw bytes of the response
func (GenericOpenAPIError) Error ¶
func (e GenericOpenAPIError) Error() string
Error returns non-empty string if there was an error.
func (GenericOpenAPIError) Model ¶
func (e GenericOpenAPIError) Model() interface{}
Model returns the unpacked model of the error
type GetConfig200Response ¶
type GetConfig200Response struct { // The maximum size an upload can be in bytes. Clients SHOULD use this as a guide when uploading content. If not listed or null, the size limit should be treated as unknown. MUploadSize *int64 `json:"m.upload.size,omitempty"` }
GetConfig200Response struct for GetConfig200Response
func NewGetConfig200Response ¶
func NewGetConfig200Response() *GetConfig200Response
NewGetConfig200Response instantiates a new GetConfig200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewGetConfig200ResponseWithDefaults ¶
func NewGetConfig200ResponseWithDefaults() *GetConfig200Response
NewGetConfig200ResponseWithDefaults instantiates a new GetConfig200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*GetConfig200Response) GetMUploadSize ¶
func (o *GetConfig200Response) GetMUploadSize() int64
GetMUploadSize returns the MUploadSize field value if set, zero value otherwise.
func (*GetConfig200Response) GetMUploadSizeOk ¶
func (o *GetConfig200Response) GetMUploadSizeOk() (*int64, bool)
GetMUploadSizeOk returns a tuple with the MUploadSize field value if set, nil otherwise and a boolean to check if the value has been set.
func (*GetConfig200Response) HasMUploadSize ¶
func (o *GetConfig200Response) HasMUploadSize() bool
HasMUploadSize returns a boolean if a field has been set.
func (GetConfig200Response) MarshalJSON ¶
func (o GetConfig200Response) MarshalJSON() ([]byte, error)
func (*GetConfig200Response) SetMUploadSize ¶
func (o *GetConfig200Response) SetMUploadSize(v int64)
SetMUploadSize gets a reference to the given int64 and assigns it to the MUploadSize field.
func (GetConfig200Response) ToMap ¶
func (o GetConfig200Response) ToMap() (map[string]interface{}, error)
type GetUrlPreview200Response ¶
type GetUrlPreview200Response struct { // The byte-size of the image. Omitted if there is no image attached. MatrixImageSize *int64 `json:"matrix:image:size,omitempty"` // An [`mxc://` URI](/client-server-api/#matrix-content-mxc-uris) to the image. Omitted if there is no image. OgImage *string `json:"og:image,omitempty"` }
GetUrlPreview200Response struct for GetUrlPreview200Response
func NewGetUrlPreview200Response ¶
func NewGetUrlPreview200Response() *GetUrlPreview200Response
NewGetUrlPreview200Response instantiates a new GetUrlPreview200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewGetUrlPreview200ResponseWithDefaults ¶
func NewGetUrlPreview200ResponseWithDefaults() *GetUrlPreview200Response
NewGetUrlPreview200ResponseWithDefaults instantiates a new GetUrlPreview200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*GetUrlPreview200Response) GetMatrixImageSize ¶ added in v1.35.0
func (o *GetUrlPreview200Response) GetMatrixImageSize() int64
GetMatrixImageSize returns the MatrixImageSize field value if set, zero value otherwise.
func (*GetUrlPreview200Response) GetMatrixImageSizeOk ¶ added in v1.35.0
func (o *GetUrlPreview200Response) GetMatrixImageSizeOk() (*int64, bool)
GetMatrixImageSizeOk returns a tuple with the MatrixImageSize field value if set, nil otherwise and a boolean to check if the value has been set.
func (*GetUrlPreview200Response) GetOgImage ¶ added in v1.35.0
func (o *GetUrlPreview200Response) GetOgImage() string
GetOgImage returns the OgImage field value if set, zero value otherwise.
func (*GetUrlPreview200Response) GetOgImageOk ¶ added in v1.35.0
func (o *GetUrlPreview200Response) GetOgImageOk() (*string, bool)
GetOgImageOk returns a tuple with the OgImage field value if set, nil otherwise and a boolean to check if the value has been set.
func (*GetUrlPreview200Response) HasMatrixImageSize ¶ added in v1.35.0
func (o *GetUrlPreview200Response) HasMatrixImageSize() bool
HasMatrixImageSize returns a boolean if a field has been set.
func (*GetUrlPreview200Response) HasOgImage ¶ added in v1.35.0
func (o *GetUrlPreview200Response) HasOgImage() bool
HasOgImage returns a boolean if a field has been set.
func (GetUrlPreview200Response) MarshalJSON ¶
func (o GetUrlPreview200Response) MarshalJSON() ([]byte, error)
func (*GetUrlPreview200Response) SetMatrixImageSize ¶ added in v1.35.0
func (o *GetUrlPreview200Response) SetMatrixImageSize(v int64)
SetMatrixImageSize gets a reference to the given int64 and assigns it to the MatrixImageSize field.
func (*GetUrlPreview200Response) SetOgImage ¶ added in v1.35.0
func (o *GetUrlPreview200Response) SetOgImage(v string)
SetOgImage gets a reference to the given string and assigns it to the OgImage field.
func (GetUrlPreview200Response) ToMap ¶
func (o GetUrlPreview200Response) ToMap() (map[string]interface{}, error)
type InlineObject ¶ added in v1.35.0
type InlineObject struct { // The M_LIMIT_EXCEEDED error code Errcode string `json:"errcode"` // A human-readable error message. Error *string `json:"error,omitempty"` // The amount of time in milliseconds the client should wait before trying the request again. RetryAfterMs *int32 `json:"retry_after_ms,omitempty"` }
InlineObject struct for InlineObject
func NewInlineObject ¶ added in v1.35.0
func NewInlineObject(errcode string) *InlineObject
NewInlineObject instantiates a new InlineObject object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewInlineObjectWithDefaults ¶ added in v1.35.0
func NewInlineObjectWithDefaults() *InlineObject
NewInlineObjectWithDefaults instantiates a new InlineObject object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*InlineObject) GetErrcode ¶ added in v1.35.0
func (o *InlineObject) GetErrcode() string
GetErrcode returns the Errcode field value
func (*InlineObject) GetErrcodeOk ¶ added in v1.35.0
func (o *InlineObject) GetErrcodeOk() (*string, bool)
GetErrcodeOk returns a tuple with the Errcode field value and a boolean to check if the value has been set.
func (*InlineObject) GetError ¶ added in v1.35.0
func (o *InlineObject) GetError() string
GetError returns the Error field value if set, zero value otherwise.
func (*InlineObject) GetErrorOk ¶ added in v1.35.0
func (o *InlineObject) GetErrorOk() (*string, bool)
GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set.
func (*InlineObject) GetRetryAfterMs ¶ added in v1.35.0
func (o *InlineObject) GetRetryAfterMs() int32
GetRetryAfterMs returns the RetryAfterMs field value if set, zero value otherwise.
func (*InlineObject) GetRetryAfterMsOk ¶ added in v1.35.0
func (o *InlineObject) GetRetryAfterMsOk() (*int32, bool)
GetRetryAfterMsOk returns a tuple with the RetryAfterMs field value if set, nil otherwise and a boolean to check if the value has been set.
func (*InlineObject) HasError ¶ added in v1.35.0
func (o *InlineObject) HasError() bool
HasError returns a boolean if a field has been set.
func (*InlineObject) HasRetryAfterMs ¶ added in v1.35.0
func (o *InlineObject) HasRetryAfterMs() bool
HasRetryAfterMs returns a boolean if a field has been set.
func (InlineObject) MarshalJSON ¶ added in v1.35.0
func (o InlineObject) MarshalJSON() ([]byte, error)
func (*InlineObject) SetErrcode ¶ added in v1.35.0
func (o *InlineObject) SetErrcode(v string)
SetErrcode sets field value
func (*InlineObject) SetError ¶ added in v1.35.0
func (o *InlineObject) SetError(v string)
SetError gets a reference to the given string and assigns it to the Error field.
func (*InlineObject) SetRetryAfterMs ¶ added in v1.35.0
func (o *InlineObject) SetRetryAfterMs(v int32)
SetRetryAfterMs gets a reference to the given int32 and assigns it to the RetryAfterMs field.
func (InlineObject) ToMap ¶ added in v1.35.0
func (o InlineObject) ToMap() (map[string]interface{}, error)
func (*InlineObject) UnmarshalJSON ¶ added in v1.35.0
func (o *InlineObject) UnmarshalJSON(data []byte) (err error)
type MappedNullable ¶
type MediaAPIService ¶
type MediaAPIService service
MediaAPIService MediaAPI service
func (*MediaAPIService) CreateContent ¶
func (a *MediaAPIService) CreateContent(ctx context.Context) ApiCreateContentRequest
CreateContent Create a new `mxc://` URI without uploading the content.
Creates a new `mxc://` URI, independently of the content being uploaded. The content must be provided later via [`PUT /_matrix/media/v3/upload/{serverName}/{mediaId}`](/client-server-api/#put_matrixmediav3uploadservernamemediaid).
The server may optionally enforce a maximum age for unused IDs, and delete media IDs when the client doesn't start the upload in time, or when the upload was interrupted and not resumed in time. The server should include the maximum POSIX millisecond timestamp to complete the upload in the `unused_expires_at` field in the response JSON. The recommended default expiration is 24 hours which should be enough time to accommodate users on poor connection who find a better connection to complete the upload.
As well as limiting the rate of requests to create `mxc://` URIs, the server should limit the number of concurrent *pending media uploads* a given user can have. A pending media upload is a created `mxc://` URI where (a) the media has not yet been uploaded, and (b) has not yet expired (the `unused_expires_at` timestamp has not yet passed). In both cases, the server should respond with an HTTP 429 error with an errcode of `M_LIMIT_EXCEEDED`.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCreateContentRequest
func (*MediaAPIService) CreateContentExecute ¶
func (a *MediaAPIService) CreateContentExecute(r ApiCreateContentRequest) (*CreateContent200Response, *http.Response, error)
Execute executes the request
@return CreateContent200Response
func (*MediaAPIService) GetConfig ¶
func (a *MediaAPIService) GetConfig(ctx context.Context) ApiGetConfigRequest
GetConfig Get the configuration for the content repository.
This endpoint allows clients to retrieve the configuration of the content repository, such as upload limitations. Clients SHOULD use this as a guide when using content repository endpoints. All values are intentionally left optional. Clients SHOULD follow the advice given in the field description when the field is not available.
{{% boxes/note %}} Both clients and server administrators should be aware that proxies between the client and the server may affect the apparent behaviour of content repository APIs, for example, proxies may enforce a lower upload size limit than is advertised by the server on this endpoint. {{% /boxes/note %}}
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiGetConfigRequest
func (*MediaAPIService) GetConfigExecute ¶
func (a *MediaAPIService) GetConfigExecute(r ApiGetConfigRequest) (*GetConfig200Response, *http.Response, error)
Execute executes the request
@return GetConfig200Response
func (*MediaAPIService) GetContent ¶
func (a *MediaAPIService) GetContent(ctx context.Context, serverName string, mediaId string) ApiGetContentRequest
GetContent Download content from the content repository.
{{% boxes/note %}} Clients SHOULD NOT generate or use URLs which supply the access token in the query string. These URLs may be copied by users verbatim and provided in a chat message to another user, disclosing the sender's access token. {{% /boxes/note %}}
Clients MAY be redirected using the 307/308 responses below to download the request object. This is typical when the homeserver uses a Content Delivery Network (CDN).
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param serverName The server name from the `mxc://` URI (the authority component). @param mediaId The media ID from the `mxc://` URI (the path component). @return ApiGetContentRequest
func (*MediaAPIService) GetContentExecute ¶
func (a *MediaAPIService) GetContentExecute(r ApiGetContentRequest) (interface{}, *http.Response, error)
Execute executes the request
@return interface{}
func (*MediaAPIService) GetContentOverrideName ¶
func (a *MediaAPIService) GetContentOverrideName(ctx context.Context, serverName string, mediaId string, fileName string) ApiGetContentOverrideNameRequest
GetContentOverrideName Download content from the content repository overriding the file name.
This will download content from the content repository (same as the previous endpoint) but replaces the target file name with the one provided by the caller.
{{% boxes/note %}} Clients SHOULD NOT generate or use URLs which supply the access token in the query string. These URLs may be copied by users verbatim and provided in a chat message to another user, disclosing the sender's access token. {{% /boxes/note %}}
Clients MAY be redirected using the 307/308 responses below to download the request object. This is typical when the homeserver uses a Content Delivery Network (CDN).
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param serverName The server name from the `mxc://` URI (the authority component). @param mediaId The media ID from the `mxc://` URI (the path component). @param fileName A filename to give in the `Content-Disposition` header. @return ApiGetContentOverrideNameRequest
func (*MediaAPIService) GetContentOverrideNameExecute ¶
func (a *MediaAPIService) GetContentOverrideNameExecute(r ApiGetContentOverrideNameRequest) (interface{}, *http.Response, error)
Execute executes the request
@return interface{}
func (*MediaAPIService) GetContentThumbnail ¶
func (a *MediaAPIService) GetContentThumbnail(ctx context.Context, serverName string, mediaId string) ApiGetContentThumbnailRequest
GetContentThumbnail Download a thumbnail of content from the content repository
Download a thumbnail of content from the content repository. See the [Thumbnails](/client-server-api/#thumbnails) section for more information.
{{% boxes/note %}} Clients SHOULD NOT generate or use URLs which supply the access token in the query string. These URLs may be copied by users verbatim and provided in a chat message to another user, disclosing the sender's access token. {{% /boxes/note %}}
Clients MAY be redirected using the 307/308 responses below to download the request object. This is typical when the homeserver uses a Content Delivery Network (CDN).
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param serverName The server name from the `mxc://` URI (the authority component). @param mediaId The media ID from the `mxc://` URI (the path component). @return ApiGetContentThumbnailRequest
func (*MediaAPIService) GetContentThumbnailExecute ¶
func (a *MediaAPIService) GetContentThumbnailExecute(r ApiGetContentThumbnailRequest) (interface{}, *http.Response, error)
Execute executes the request
@return interface{}
func (*MediaAPIService) GetUrlPreview ¶
func (a *MediaAPIService) GetUrlPreview(ctx context.Context) ApiGetUrlPreviewRequest
GetUrlPreview Get information about a URL for a client
Get information about a URL for the client. Typically this is called when a client sees a URL in a message and wants to render a preview for the user.
{{% boxes/note %}} Clients should consider avoiding this endpoint for URLs posted in encrypted rooms. Encrypted rooms often contain more sensitive information the users do not want to share with the homeserver, and this can mean that the URLs being shared should also not be shared with the homeserver. {{% /boxes/note %}}
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiGetUrlPreviewRequest
func (*MediaAPIService) GetUrlPreviewExecute ¶
func (a *MediaAPIService) GetUrlPreviewExecute(r ApiGetUrlPreviewRequest) (*GetUrlPreview200Response, *http.Response, error)
Execute executes the request
@return GetUrlPreview200Response
func (*MediaAPIService) UploadContent ¶
func (a *MediaAPIService) UploadContent(ctx context.Context) ApiUploadContentRequest
UploadContent Upload some content to the content repository.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiUploadContentRequest
func (*MediaAPIService) UploadContentExecute ¶
func (a *MediaAPIService) UploadContentExecute(r ApiUploadContentRequest) (*UploadContent200Response, *http.Response, error)
Execute executes the request
@return UploadContent200Response
func (*MediaAPIService) UploadContentToMXC ¶
func (a *MediaAPIService) UploadContentToMXC(ctx context.Context, serverName string, mediaId string) ApiUploadContentToMXCRequest
UploadContentToMXC Upload content to an `mxc://` URI that was created earlier.
This endpoint permits uploading content to an `mxc://` URI that was created earlier via [POST /_matrix/media/v1/create](/client-server-api/#post_matrixmediav1create).
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param serverName The server name from the `mxc://` URI (the authority component). @param mediaId The media ID from the `mxc://` URI (the path component). @return ApiUploadContentToMXCRequest
func (*MediaAPIService) UploadContentToMXCExecute ¶
func (a *MediaAPIService) UploadContentToMXCExecute(r ApiUploadContentToMXCRequest) (map[string]interface{}, *http.Response, error)
Execute executes the request
@return map[string]interface{}
type NullableBool ¶
type NullableBool struct {
// contains filtered or unexported fields
}
func NewNullableBool ¶
func NewNullableBool(val *bool) *NullableBool
func (NullableBool) Get ¶
func (v NullableBool) Get() *bool
func (NullableBool) IsSet ¶
func (v NullableBool) IsSet() bool
func (NullableBool) MarshalJSON ¶
func (v NullableBool) MarshalJSON() ([]byte, error)
func (*NullableBool) Set ¶
func (v *NullableBool) Set(val *bool)
func (*NullableBool) UnmarshalJSON ¶
func (v *NullableBool) UnmarshalJSON(src []byte) error
func (*NullableBool) Unset ¶
func (v *NullableBool) Unset()
type NullableCreateContent200Response ¶
type NullableCreateContent200Response struct {
// contains filtered or unexported fields
}
func NewNullableCreateContent200Response ¶
func NewNullableCreateContent200Response(val *CreateContent200Response) *NullableCreateContent200Response
func (NullableCreateContent200Response) Get ¶
func (v NullableCreateContent200Response) Get() *CreateContent200Response
func (NullableCreateContent200Response) IsSet ¶
func (v NullableCreateContent200Response) IsSet() bool
func (NullableCreateContent200Response) MarshalJSON ¶
func (v NullableCreateContent200Response) MarshalJSON() ([]byte, error)
func (*NullableCreateContent200Response) Set ¶
func (v *NullableCreateContent200Response) Set(val *CreateContent200Response)
func (*NullableCreateContent200Response) UnmarshalJSON ¶
func (v *NullableCreateContent200Response) UnmarshalJSON(src []byte) error
func (*NullableCreateContent200Response) Unset ¶
func (v *NullableCreateContent200Response) Unset()
type NullableError ¶
type NullableError struct {
// contains filtered or unexported fields
}
func NewNullableError ¶
func NewNullableError(val *Error) *NullableError
func (NullableError) Get ¶
func (v NullableError) Get() *Error
func (NullableError) IsSet ¶
func (v NullableError) IsSet() bool
func (NullableError) MarshalJSON ¶
func (v NullableError) MarshalJSON() ([]byte, error)
func (*NullableError) Set ¶
func (v *NullableError) Set(val *Error)
func (*NullableError) UnmarshalJSON ¶
func (v *NullableError) UnmarshalJSON(src []byte) error
func (*NullableError) Unset ¶
func (v *NullableError) Unset()
type NullableError1 ¶
type NullableError1 struct {
// contains filtered or unexported fields
}
func NewNullableError1 ¶
func NewNullableError1(val *Error1) *NullableError1
func (NullableError1) Get ¶
func (v NullableError1) Get() *Error1
func (NullableError1) IsSet ¶
func (v NullableError1) IsSet() bool
func (NullableError1) MarshalJSON ¶
func (v NullableError1) MarshalJSON() ([]byte, error)
func (*NullableError1) Set ¶
func (v *NullableError1) Set(val *Error1)
func (*NullableError1) UnmarshalJSON ¶
func (v *NullableError1) UnmarshalJSON(src []byte) error
func (*NullableError1) Unset ¶
func (v *NullableError1) Unset()
type NullableFloat32 ¶
type NullableFloat32 struct {
// contains filtered or unexported fields
}
func NewNullableFloat32 ¶
func NewNullableFloat32(val *float32) *NullableFloat32
func (NullableFloat32) Get ¶
func (v NullableFloat32) Get() *float32
func (NullableFloat32) IsSet ¶
func (v NullableFloat32) IsSet() bool
func (NullableFloat32) MarshalJSON ¶
func (v NullableFloat32) MarshalJSON() ([]byte, error)
func (*NullableFloat32) Set ¶
func (v *NullableFloat32) Set(val *float32)
func (*NullableFloat32) UnmarshalJSON ¶
func (v *NullableFloat32) UnmarshalJSON(src []byte) error
func (*NullableFloat32) Unset ¶
func (v *NullableFloat32) Unset()
type NullableFloat64 ¶
type NullableFloat64 struct {
// contains filtered or unexported fields
}
func NewNullableFloat64 ¶
func NewNullableFloat64(val *float64) *NullableFloat64
func (NullableFloat64) Get ¶
func (v NullableFloat64) Get() *float64
func (NullableFloat64) IsSet ¶
func (v NullableFloat64) IsSet() bool
func (NullableFloat64) MarshalJSON ¶
func (v NullableFloat64) MarshalJSON() ([]byte, error)
func (*NullableFloat64) Set ¶
func (v *NullableFloat64) Set(val *float64)
func (*NullableFloat64) UnmarshalJSON ¶
func (v *NullableFloat64) UnmarshalJSON(src []byte) error
func (*NullableFloat64) Unset ¶
func (v *NullableFloat64) Unset()
type NullableGetConfig200Response ¶
type NullableGetConfig200Response struct {
// contains filtered or unexported fields
}
func NewNullableGetConfig200Response ¶
func NewNullableGetConfig200Response(val *GetConfig200Response) *NullableGetConfig200Response
func (NullableGetConfig200Response) Get ¶
func (v NullableGetConfig200Response) Get() *GetConfig200Response
func (NullableGetConfig200Response) IsSet ¶
func (v NullableGetConfig200Response) IsSet() bool
func (NullableGetConfig200Response) MarshalJSON ¶
func (v NullableGetConfig200Response) MarshalJSON() ([]byte, error)
func (*NullableGetConfig200Response) Set ¶
func (v *NullableGetConfig200Response) Set(val *GetConfig200Response)
func (*NullableGetConfig200Response) UnmarshalJSON ¶
func (v *NullableGetConfig200Response) UnmarshalJSON(src []byte) error
func (*NullableGetConfig200Response) Unset ¶
func (v *NullableGetConfig200Response) Unset()
type NullableGetUrlPreview200Response ¶
type NullableGetUrlPreview200Response struct {
// contains filtered or unexported fields
}
func NewNullableGetUrlPreview200Response ¶
func NewNullableGetUrlPreview200Response(val *GetUrlPreview200Response) *NullableGetUrlPreview200Response
func (NullableGetUrlPreview200Response) Get ¶
func (v NullableGetUrlPreview200Response) Get() *GetUrlPreview200Response
func (NullableGetUrlPreview200Response) IsSet ¶
func (v NullableGetUrlPreview200Response) IsSet() bool
func (NullableGetUrlPreview200Response) MarshalJSON ¶
func (v NullableGetUrlPreview200Response) MarshalJSON() ([]byte, error)
func (*NullableGetUrlPreview200Response) Set ¶
func (v *NullableGetUrlPreview200Response) Set(val *GetUrlPreview200Response)
func (*NullableGetUrlPreview200Response) UnmarshalJSON ¶
func (v *NullableGetUrlPreview200Response) UnmarshalJSON(src []byte) error
func (*NullableGetUrlPreview200Response) Unset ¶
func (v *NullableGetUrlPreview200Response) Unset()
type NullableInlineObject ¶ added in v1.35.0
type NullableInlineObject struct {
// contains filtered or unexported fields
}
func NewNullableInlineObject ¶ added in v1.35.0
func NewNullableInlineObject(val *InlineObject) *NullableInlineObject
func (NullableInlineObject) Get ¶ added in v1.35.0
func (v NullableInlineObject) Get() *InlineObject
func (NullableInlineObject) IsSet ¶ added in v1.35.0
func (v NullableInlineObject) IsSet() bool
func (NullableInlineObject) MarshalJSON ¶ added in v1.35.0
func (v NullableInlineObject) MarshalJSON() ([]byte, error)
func (*NullableInlineObject) Set ¶ added in v1.35.0
func (v *NullableInlineObject) Set(val *InlineObject)
func (*NullableInlineObject) UnmarshalJSON ¶ added in v1.35.0
func (v *NullableInlineObject) UnmarshalJSON(src []byte) error
func (*NullableInlineObject) Unset ¶ added in v1.35.0
func (v *NullableInlineObject) Unset()
type NullableInt ¶
type NullableInt struct {
// contains filtered or unexported fields
}
func NewNullableInt ¶
func NewNullableInt(val *int) *NullableInt
func (NullableInt) Get ¶
func (v NullableInt) Get() *int
func (NullableInt) IsSet ¶
func (v NullableInt) IsSet() bool
func (NullableInt) MarshalJSON ¶
func (v NullableInt) MarshalJSON() ([]byte, error)
func (*NullableInt) Set ¶
func (v *NullableInt) Set(val *int)
func (*NullableInt) UnmarshalJSON ¶
func (v *NullableInt) UnmarshalJSON(src []byte) error
func (*NullableInt) Unset ¶
func (v *NullableInt) Unset()
type NullableInt32 ¶
type NullableInt32 struct {
// contains filtered or unexported fields
}
func NewNullableInt32 ¶
func NewNullableInt32(val *int32) *NullableInt32
func (NullableInt32) Get ¶
func (v NullableInt32) Get() *int32
func (NullableInt32) IsSet ¶
func (v NullableInt32) IsSet() bool
func (NullableInt32) MarshalJSON ¶
func (v NullableInt32) MarshalJSON() ([]byte, error)
func (*NullableInt32) Set ¶
func (v *NullableInt32) Set(val *int32)
func (*NullableInt32) UnmarshalJSON ¶
func (v *NullableInt32) UnmarshalJSON(src []byte) error
func (*NullableInt32) Unset ¶
func (v *NullableInt32) Unset()
type NullableInt64 ¶
type NullableInt64 struct {
// contains filtered or unexported fields
}
func NewNullableInt64 ¶
func NewNullableInt64(val *int64) *NullableInt64
func (NullableInt64) Get ¶
func (v NullableInt64) Get() *int64
func (NullableInt64) IsSet ¶
func (v NullableInt64) IsSet() bool
func (NullableInt64) MarshalJSON ¶
func (v NullableInt64) MarshalJSON() ([]byte, error)
func (*NullableInt64) Set ¶
func (v *NullableInt64) Set(val *int64)
func (*NullableInt64) UnmarshalJSON ¶
func (v *NullableInt64) UnmarshalJSON(src []byte) error
func (*NullableInt64) Unset ¶
func (v *NullableInt64) Unset()
type NullableString ¶
type NullableString struct {
// contains filtered or unexported fields
}
func NewNullableString ¶
func NewNullableString(val *string) *NullableString
func (NullableString) Get ¶
func (v NullableString) Get() *string
func (NullableString) IsSet ¶
func (v NullableString) IsSet() bool
func (NullableString) MarshalJSON ¶
func (v NullableString) MarshalJSON() ([]byte, error)
func (*NullableString) Set ¶
func (v *NullableString) Set(val *string)
func (*NullableString) UnmarshalJSON ¶
func (v *NullableString) UnmarshalJSON(src []byte) error
func (*NullableString) Unset ¶
func (v *NullableString) Unset()
type NullableTime ¶
type NullableTime struct {
// contains filtered or unexported fields
}
func NewNullableTime ¶
func NewNullableTime(val *time.Time) *NullableTime
func (NullableTime) Get ¶
func (v NullableTime) Get() *time.Time
func (NullableTime) IsSet ¶
func (v NullableTime) IsSet() bool
func (NullableTime) MarshalJSON ¶
func (v NullableTime) MarshalJSON() ([]byte, error)
func (*NullableTime) Set ¶
func (v *NullableTime) Set(val *time.Time)
func (*NullableTime) UnmarshalJSON ¶
func (v *NullableTime) UnmarshalJSON(src []byte) error
func (*NullableTime) Unset ¶
func (v *NullableTime) Unset()
type NullableUploadContent200Response ¶
type NullableUploadContent200Response struct {
// contains filtered or unexported fields
}
func NewNullableUploadContent200Response ¶
func NewNullableUploadContent200Response(val *UploadContent200Response) *NullableUploadContent200Response
func (NullableUploadContent200Response) Get ¶
func (v NullableUploadContent200Response) Get() *UploadContent200Response
func (NullableUploadContent200Response) IsSet ¶
func (v NullableUploadContent200Response) IsSet() bool
func (NullableUploadContent200Response) MarshalJSON ¶
func (v NullableUploadContent200Response) MarshalJSON() ([]byte, error)
func (*NullableUploadContent200Response) Set ¶
func (v *NullableUploadContent200Response) Set(val *UploadContent200Response)
func (*NullableUploadContent200Response) UnmarshalJSON ¶
func (v *NullableUploadContent200Response) UnmarshalJSON(src []byte) error
func (*NullableUploadContent200Response) Unset ¶
func (v *NullableUploadContent200Response) Unset()
type ServerConfiguration ¶
type ServerConfiguration struct { URL string Description string Variables map[string]ServerVariable }
ServerConfiguration stores the information about a server
type ServerConfigurations ¶
type ServerConfigurations []ServerConfiguration
ServerConfigurations stores multiple ServerConfiguration items
type ServerVariable ¶
ServerVariable stores the information about a server variable
type UploadContent200Response ¶
type UploadContent200Response struct { // The [`mxc://` URI](/client-server-api/#matrix-content-mxc-uris) to the uploaded content. ContentUri string `json:"content_uri" validate:"regexp=^mxc:\\/\\/"` }
UploadContent200Response struct for UploadContent200Response
func NewUploadContent200Response ¶
func NewUploadContent200Response(contentUri string) *UploadContent200Response
NewUploadContent200Response instantiates a new UploadContent200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewUploadContent200ResponseWithDefaults ¶
func NewUploadContent200ResponseWithDefaults() *UploadContent200Response
NewUploadContent200ResponseWithDefaults instantiates a new UploadContent200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*UploadContent200Response) GetContentUri ¶
func (o *UploadContent200Response) GetContentUri() string
GetContentUri returns the ContentUri field value
func (*UploadContent200Response) GetContentUriOk ¶
func (o *UploadContent200Response) GetContentUriOk() (*string, bool)
GetContentUriOk returns a tuple with the ContentUri field value and a boolean to check if the value has been set.
func (UploadContent200Response) MarshalJSON ¶
func (o UploadContent200Response) MarshalJSON() ([]byte, error)
func (*UploadContent200Response) SetContentUri ¶
func (o *UploadContent200Response) SetContentUri(v string)
SetContentUri sets field value
func (UploadContent200Response) ToMap ¶
func (o UploadContent200Response) ToMap() (map[string]interface{}, error)
func (*UploadContent200Response) UnmarshalJSON ¶
func (o *UploadContent200Response) UnmarshalJSON(data []byte) (err error)