file_v1

package module
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

README

Go API client for file_v1

An openAPI 3.0 specification that defines how files are stored and accessed on ant investor products

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.14.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit https://antinvestor.com

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import file_v1 "github.com/antinvestor/apis/go/files"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value file_v1.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), file_v1.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value file_v1.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), file_v1.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using file_v1.ContextOperationServerIndices and file_v1.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), file_v1.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), file_v1.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://media.antinvestor.com/_matrix/client/v1

Class Method HTTP request Description
MediaAPI CreateContent Post /media/create Create a new `mxc://` URI without uploading the content.
MediaAPI GetConfig Get /media/config Get the configuration for the content repository.
MediaAPI GetContent Get /media/download/{serverName}/{mediaId} Download content from the content repository.
MediaAPI GetContentOverrideName Get /media/download/{serverName}/{mediaId}/{fileName} Download content from the content repository overriding the file name.
MediaAPI GetContentThumbnail Get /media/thumbnail/{serverName}/{mediaId} Download a thumbnail of content from the content repository
MediaAPI GetUrlPreview Get /media/preview_url Get information about a URL for a client
MediaAPI UploadContent Post /media/upload Upload some content to the content repository.
MediaAPI UploadContentToMXC Put /media/upload/{serverName}/{mediaId} Upload content to an `mxc://` URI that was created earlier.

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

accessTokenBearer
  • Type: HTTP Bearer token authentication

Example

auth := context.WithValue(context.Background(), file_v1.ContextAccessToken, "BEARER_TOKEN_STRING")
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

info@antinvestor.com

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
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

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time 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

type APIKey struct {
	Key    string
	Prefix string
}

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

type ApiGetConfigRequest

type ApiGetConfigRequest struct {
	ApiService *MediaAPIService
	// contains filtered or unexported fields
}

func (ApiGetConfigRequest) Execute

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

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

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

The *desired* height of the thumbnail. The actual thumbnail may be larger than the size specified.

func (ApiGetContentThumbnailRequest) Method

The desired resizing method. See the [Thumbnails](/client-server-api/#thumbnails) section for more information.

func (ApiGetContentThumbnailRequest) TimeoutMs

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

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 (ApiGetUrlPreviewRequest) Ts

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

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 (ApiUploadContentRequest) Filename

The name of the file being uploaded

type ApiUploadContentToMXCRequest

type ApiUploadContentToMXCRequest struct {
	ApiService *MediaAPIService
	// contains filtered or unexported fields
}

func (ApiUploadContentToMXCRequest) Body

func (ApiUploadContentToMXCRequest) ContentType

**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

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) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

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

func NewError(errcode string) *Error

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

func (o *Error) GetErrcode() string

GetErrcode returns the Errcode field value

func (*Error) GetErrcodeOk

func (o *Error) GetErrcodeOk() (*string, bool)

GetErrcodeOk returns a tuple with the Errcode field value and a boolean to check if the value has been set.

func (*Error) GetError

func (o *Error) GetError() string

GetError returns the Error field value if set, zero value otherwise.

func (*Error) GetErrorOk

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

func (o *Error) HasError() bool

HasError returns a boolean if a field has been set.

func (Error) MarshalJSON

func (o Error) MarshalJSON() ([]byte, error)

func (*Error) SetErrcode

func (o *Error) SetErrcode(v string)

SetErrcode sets field value

func (*Error) SetError

func (o *Error) SetError(v string)

SetError gets a reference to the given string and assigns it to the Error field.

func (Error) ToMap

func (o Error) ToMap() (map[string]interface{}, error)

func (*Error) UnmarshalJSON

func (o *Error) UnmarshalJSON(data []byte) (err error)

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

func (o *Error1) GetErrcodeOk() (*interface{}, bool)

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

func (o *Error1) GetErrorOk() (*interface{}, 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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Error1) HasError

func (o *Error1) HasError() bool

HasError returns a boolean if a field has been set.

func (Error1) MarshalJSON

func (o Error1) MarshalJSON() ([]byte, error)

func (*Error1) SetErrcode

func (o *Error1) SetErrcode(v interface{})

SetErrcode sets field value

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) ToMap

func (o Error1) ToMap() (map[string]interface{}, error)

func (*Error1) UnmarshalJSON

func (o *Error1) UnmarshalJSON(bytes []byte) (err error)

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 MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type MediaAPIService

type MediaAPIService service

MediaAPIService MediaAPI service

func (*MediaAPIService) CreateContent

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

Execute executes the request

@return CreateContent200Response

func (*MediaAPIService) GetConfig

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

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

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

Execute executes the request

@return GetUrlPreview200Response

func (*MediaAPIService) UploadContent

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

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 (NullableCreateContent200Response) Get

func (NullableCreateContent200Response) IsSet

func (NullableCreateContent200Response) MarshalJSON

func (v NullableCreateContent200Response) MarshalJSON() ([]byte, error)

func (*NullableCreateContent200Response) Set

func (*NullableCreateContent200Response) UnmarshalJSON

func (v *NullableCreateContent200Response) UnmarshalJSON(src []byte) error

func (*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 (NullableGetConfig200Response) IsSet

func (NullableGetConfig200Response) MarshalJSON

func (v NullableGetConfig200Response) MarshalJSON() ([]byte, error)

func (*NullableGetConfig200Response) Set

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 (NullableGetUrlPreview200Response) Get

func (NullableGetUrlPreview200Response) IsSet

func (NullableGetUrlPreview200Response) MarshalJSON

func (v NullableGetUrlPreview200Response) MarshalJSON() ([]byte, error)

func (*NullableGetUrlPreview200Response) Set

func (*NullableGetUrlPreview200Response) UnmarshalJSON

func (v *NullableGetUrlPreview200Response) UnmarshalJSON(src []byte) error

func (*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 (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 (NullableUploadContent200Response) Get

func (NullableUploadContent200Response) IsSet

func (NullableUploadContent200Response) MarshalJSON

func (v NullableUploadContent200Response) MarshalJSON() ([]byte, error)

func (*NullableUploadContent200Response) Set

func (*NullableUploadContent200Response) UnmarshalJSON

func (v *NullableUploadContent200Response) UnmarshalJSON(src []byte) error

func (*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

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL