Versions in this module Expand all Collapse all v20 v20.5.1 Jul 3, 2020 v20.5.0 May 27, 2020 v20.4.0 May 27, 2020 Changes in this version + var ContextAPIKey = contextKey("apikey") + var ContextAccessToken = contextKey("accesstoken") + var ContextBasicAuth = contextKey("basic") + var ContextOAuth2 = contextKey("token") + func CacheExpires(r *http.Response) time.Time + func Version() + type APIClient struct + ThreeDCloudApi *ThreeDCloudApiService + func NewAPIClient(cfg *Configuration) *APIClient + func (a *APIClient) RequestOauthToken() error + func (c *APIClient) ChangeBasePath(path string) + type APIKey struct + Key string + Prefix string + type APIResponse struct + Message string + Method string + Operation string + Payload []byte + RequestURL string + func NewAPIResponse(r *http.Response) *APIResponse + func NewAPIResponseWithError(errorMessage string) *APIResponse + type AccessTokenResponse struct + AccessToken string + ClientId string + ClientRefreshTokenLifeTimeInMinutes string + Expires string + ExpiresIn int64 + Issued string + RefreshToken string + TokenType string + type AmfSaveOption struct + EnableCompression bool + FileFormat string + FileName string + LookupPaths []string + SaveFormat SaveFormat + type BasicAuth struct + Password string + UserName string + type Box struct + Height float64 + HeightSegments int32 + Length float64 + LengthSegments int32 + Name string + Width float64 + WidthSegments int32 + type ColladaSaveOption struct + FileFormat string + FileName string + Indented bool + LookupPaths []string + SaveFormat SaveFormat + TransformStyle *ColladaTransformStyle + type ColladaTransformStyle int32 + const ColladaTransformStyle_Components + const ColladaTransformStyle_Matrix + type Configuration struct + AccessToken string + AppKey string + AppSid string + BasePath string + DefaultHeader map[string]string + HTTPClient *http.Client + Host string + Scheme string + UserAgent string + func NewConfiguration(appSid string, appKey string, basePath string) *Configuration + func (c *Configuration) AddDefaultHeader(key string, value string) + type CopyFileOpts struct + DestStorageName optional.String + SrcStorageName optional.String + VersionId optional.String + type CopyFolderOpts struct + DestStorageName optional.String + SrcStorageName optional.String + type CreateFolderOpts struct + StorageName optional.String + type Cylinder struct + Height float64 + HeightSegments int32 + Name string + OpenEnded bool + RadialSegments int32 + RadiusBottom float64 + RadiusTop float64 + ThetaLength float64 + ThetaStart float64 + type DeleteFileOpts struct + StorageName optional.String + VersionId optional.String + type DeleteFolderOpts struct + Recursive optional.Bool + StorageName optional.String + type DeleteNodesOpts struct + Folder optional.String + Storage optional.String + type DiscUsage struct + TotalSize int64 + UsedSize int64 + type Discreet3DsSaveOption struct + DuplicatedNameCounterBase int32 + DuplicatedNameCounterFormat string + DuplicatedNameSeparator string + ExportCamera bool + ExportLight bool + FileFormat string + FileName string + FlipCoordinateSystem bool + GammaCorrectedColor bool + HighPreciseColor bool + LookupPaths []string + MasterScale float64 + SaveFormat SaveFormat + type DownloadFileOpts struct + StorageName optional.String + VersionId optional.String + type DracoCompressionLevel int32 + const DracoCompressionLevel_Fast + const DracoCompressionLevel_NoCompression + const DracoCompressionLevel_Optimal + const DracoCompressionLevel_Standard + type DracoSaveOption struct + ColorBits int32 + CompressionLevel *DracoCompressionLevel + FileFormat string + FileName string + LookupPaths []string + NormalBits int32 + PositionBits int32 + SaveFormat SaveFormat + TextureCoordinateBits int32 + type Entity struct + Box *Box + Cylinder *Cylinder + Plane *Plane + Sphere *Sphere + Torus *Torus + Type_ string + type Error struct + Code string + Description string + InnerError *ErrorDetails + Message string + type ErrorDetails struct + Date time.Time + RequestId string + type FbxSaveOption struct + EnableCompression bool + ExportLegacyMaterialProperties bool + FileFormat string + FileName string + FoldRepeatedCurveData bool + GenerateVertexElementMaterial bool + LookupPaths []string + SaveFormat SaveFormat + VideoForTexture bool + type FileContentType int32 + const FileContentType_ASCII + const FileContentType_Binary + type FileVersion struct + IsFolder bool + IsLatest bool + ModifiedDate time.Time + Name string + Path string + Size int64 + VersionId string + type FileVersions struct + Value []FileVersion + type FilesList struct + Value []StorageFile + type FilesUploadResult struct + Errors []ModelError + Uploaded []string + type GenericSwaggerError struct + func (e GenericSwaggerError) Body() []byte + func (e GenericSwaggerError) Error() string + func (e GenericSwaggerError) Model() interface{} + type GetDiscUsageOpts struct + StorageName optional.String + type GetFileVersionsOpts struct + StorageName optional.String + type GetFilesListOpts struct + StorageName optional.String + type GltfSaveOption struct + BufferFile bool + DracoCompression bool + EmbedAssets bool + FileContentType *FileContentType + FileFormat string + FileName string + FlipTexCoordV bool + LookupPaths []string + PrettyPrint bool + SaveExtras bool + SaveFormat SaveFormat + UseCommonMaterials bool + type HtmlSaveOption struct + CameraPosition *Vector3 + FarPlane float64 + FieldOfView float64 + FileFormat string + FileName string + LookAt *Vector3 + LookupPaths []string + NearPlane float64 + OrientationBox bool + SaveFormat SaveFormat + ShowGrid bool + ShowRulers bool + ShowUI bool + UpVector string + type ModelData struct + Entity *Entity + Transform *Transform + Type_ string + type ModelError struct + Code string + Description string + InnerError *ErrorDetails + Message string + type MoveFileOpts struct + DestStorageName optional.String + SrcStorageName optional.String + VersionId optional.String + type MoveFolderOpts struct + DestStorageName optional.String + SrcStorageName optional.String + type ObjSaveOption struct + EnableMaterials bool + FileFormat string + FileName string + FlipCoordinateSystem bool + LookupPaths []string + SaveFormat SaveFormat + SerializeW bool + Verbose bool + type ObjectExist struct + Exists bool + IsFolder bool + type ObjectExistsOpts struct + StorageName optional.String + VersionId optional.String + type PdfLightingScheme int32 + const PdfLightingScheme_Artwork + const PdfLightingScheme_Blue + const PdfLightingScheme_CAD + const PdfLightingScheme_Cube + const PdfLightingScheme_Day + const PdfLightingScheme_Hard + const PdfLightingScheme_Headlamp + const PdfLightingScheme_Night + const PdfLightingScheme_None + const PdfLightingScheme_Primary + const PdfLightingScheme_Red + const PdfLightingScheme_White + type PdfRenderMode int32 + const PdfRenderMode_BoundingBox + const PdfRenderMode_HiddenWireframe + const PdfRenderMode_Illustration + const PdfRenderMode_ShadedIllustration + const PdfRenderMode_ShadedVertices + const PdfRenderMode_ShadedWireframe + const PdfRenderMode_Solid + const PdfRenderMode_SolidOutline + const PdfRenderMode_SolidWireframe + const PdfRenderMode_Transparent + const PdfRenderMode_TransparentBoundingBox + const PdfRenderMode_TransparentBoundingBoxOutline + const PdfRenderMode_TransparentWireframe + const PdfRenderMode_Vertices + const PdfRenderMode_Wireframe + type PdfSaveOption struct + FileFormat string + FileName string + FlipCoordinateSystem bool + LightingScheme *PdfLightingScheme + LookupPaths []string + RenderMode *PdfRenderMode + SaveFormat SaveFormat + type Plane struct + Length float64 + LengthSegments int32 + Name string + Width float64 + WidthSegments int32 + type PlySaveOption struct + FaceElement string + FaceProperty string + FileContentType *FileContentType + FileFormat string + FileName string + FlipCoordinate bool + LookupPaths []string + PositionComponents []string + SaveFormat SaveFormat + VertexElement string + type PostConvertByFormatOpts struct + Folder optional.String + IsOverwrite optional.Bool + Storage optional.String + type PostConvertByOptOpts struct + Folder optional.String + IsOverwrite optional.Bool + Storage optional.String + type PostModelOpts struct + Folder optional.String + Newformat optional.String + Storage optional.String + type PostPdfRawDataOpts struct + Folder optional.String + Password optional.String + Storage optional.String + type PostSaveAsPartOpts struct + Folder optional.String + IsOverwrite optional.Bool + Storage optional.String + type PostSceneToFileOpts struct + Folder optional.String + Newformat optional.String + Password optional.String + Storage optional.String + type PostTriangulateNewOpts struct + Folder optional.String + Storage optional.String + type PostTriangulateOriginalOpts struct + Folder optional.String + Storage optional.String + type PostTriangulatePartOpts struct + Folder optional.String + Storage optional.String + type RvmSaveOption struct + Author string + CreationTime string + FileContentType *FileContentType + FileFormat string + FileName string + FileNote string + LookupPaths []string + SaveFormat SaveFormat + type SaveFormat int32 + const SaveFormat_AMF + const SaveFormat_ASE + const SaveFormat_Aspose3DWeb + const SaveFormat_Collada + const SaveFormat_DXF + const SaveFormat_Discreet3DS + const SaveFormat_Draco + const SaveFormat_FBX + const SaveFormat_GLTF + const SaveFormat_HTML + const SaveFormat_JT + const SaveFormat_Microsoft3MF + const SaveFormat_Obj + const SaveFormat_PDF + const SaveFormat_PLY + const SaveFormat_Rvm + const SaveFormat_STL + const SaveFormat_U3D + const SaveFormat_VRML + const SaveFormat_X + type SaveOptions struct + FileFormat string + FileName string + LookupPaths []string + SaveFormat SaveFormat + type Sphere struct + HeightSegments int32 + Name string + PhiLength float64 + PhiStart float64 + Radius float64 + ThetaLength float64 + ThetaStart float64 + WidthSegments int32 + type StlSaveOption struct + FileContentType *FileContentType + FileFormat string + FileName string + FlipCoordinateSystem bool + LookupPaths []string + SaveFormat SaveFormat + type StorageExist struct + Exists bool + type StorageFile struct + IsFolder bool + ModifiedDate time.Time + Name string + Path string + Size int64 + type ThreeDCloudApiService service + func NewThreeDCloudApiService(appSid string, appKey string, basePath string) *ThreeDCloudApiService + func (a *ThreeDCloudApiService) CopyFile(ctx context.Context, srcPath string, destPath string, ...) (*http.Response, error) + func (a *ThreeDCloudApiService) CopyFolder(ctx context.Context, srcPath string, destPath string, ...) (*http.Response, error) + func (a *ThreeDCloudApiService) CreateFolder(ctx context.Context, path string, localVarOptionals *CreateFolderOpts) (*http.Response, error) + func (a *ThreeDCloudApiService) DeleteFile(ctx context.Context, path string, localVarOptionals *DeleteFileOpts) (*http.Response, error) + func (a *ThreeDCloudApiService) DeleteFolder(ctx context.Context, path string, localVarOptionals *DeleteFolderOpts) (*http.Response, error) + func (a *ThreeDCloudApiService) DeleteNodes(ctx context.Context, name string, objectaddressingpath string, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) DownloadFile(ctx context.Context, path string, localVarOptionals *DownloadFileOpts) ([]byte, *os.File, *http.Response, error) + func (a *ThreeDCloudApiService) GetDiscUsage(ctx context.Context, localVarOptionals *GetDiscUsageOpts) (DiscUsage, *http.Response, error) + func (a *ThreeDCloudApiService) GetFileVersions(ctx context.Context, path string, localVarOptionals *GetFileVersionsOpts) (FileVersions, *http.Response, error) + func (a *ThreeDCloudApiService) GetFilesList(ctx context.Context, path string, localVarOptionals *GetFilesListOpts) (FilesList, *http.Response, error) + func (a *ThreeDCloudApiService) MoveFile(ctx context.Context, srcPath string, destPath string, ...) (*http.Response, error) + func (a *ThreeDCloudApiService) MoveFolder(ctx context.Context, srcPath string, destPath string, ...) (*http.Response, error) + func (a *ThreeDCloudApiService) OAuthPost(ctx context.Context, grantType string, clientId string, clientSecret string) (AccessTokenResponse, *http.Response, error) + func (a *ThreeDCloudApiService) ObjectExists(ctx context.Context, path string, localVarOptionals *ObjectExistsOpts) (ObjectExist, *http.Response, error) + func (a *ThreeDCloudApiService) PostConvertByAmfSaveOption(ctx context.Context, name string, saveOptions *AmfSaveOption, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) PostConvertByColladaSaveOption(ctx context.Context, name string, saveOptions *ColladaSaveOption, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) PostConvertByDiscreet3DsSaveOption(ctx context.Context, name string, saveOptions *Discreet3DsSaveOption, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) PostConvertByDracoSaveOption(ctx context.Context, name string, saveOptions *DracoSaveOption, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) PostConvertByFbxSaveOption(ctx context.Context, name string, saveOptions *FbxSaveOption, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) PostConvertByFormat(ctx context.Context, name string, newformat string, newfilename string, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) PostConvertByGltfSaveOption(ctx context.Context, name string, saveOptions *GltfSaveOption, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) PostConvertByObjSaveOption(ctx context.Context, name string, saveOptions *ObjSaveOption, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) PostConvertByPdfSaveOption(ctx context.Context, name string, saveOptions *PdfSaveOption, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) PostConvertByPlySaveOption(ctx context.Context, name string, saveOptions *PlySaveOption, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) PostConvertByRvmSaveOption(ctx context.Context, name string, saveOptions *RvmSaveOption, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) PostConvertByStlSaveOption(ctx context.Context, name string, saveOptions *StlSaveOption, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) PostConvertByU3DSaveOption(ctx context.Context, name string, saveOptions *U3DSaveOption, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) PostCreate(ctx context.Context, format string) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) PostModel(ctx context.Context, name string, modeldata ModelData, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) PostPdfRawData(ctx context.Context, name string, multifileprefix string, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) PostSaveAsPart(ctx context.Context, name string, objectaddressingpath string, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) PostSceneToFile(ctx context.Context, name string, multifileprefix string, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) PostTriangulateNew(ctx context.Context, name string, newfilename string, newformat string, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) PostTriangulateOriginal(ctx context.Context, name string, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) PostTriangulatePart(ctx context.Context, name string, objectaddressingpath string, ...) (*os.File, *http.Response, error) + func (a *ThreeDCloudApiService) StorageExists(ctx context.Context, storageName string) (StorageExist, *http.Response, error) + func (a *ThreeDCloudApiService) UploadFile(ctx context.Context, path string, file *os.File, ...) (FilesUploadResult, *http.Response, error) + type TokenResp struct + AccessToken string + ExpiresIn int64 + TokenType string + type Torus struct + Arc float64 + Name string + RadialSegments int32 + Radius float64 + Tube float64 + TubularSegments int32 + type Transform struct + EulerAngles *Vector3 + PostRotation *Vector3 + PreRotation *Vector3 + Scale *Vector3 + Translation *Vector3 + type U3DSaveOption struct + ExportNormals bool + ExportTextureCoordinates bool + ExportVertexDiffuse bool + ExportVertexSpecular bool + FileFormat string + FileName string + FlipCoordinateSystem bool + LookupPaths []string + MeshCompression bool + SaveFormat SaveFormat + type UploadFileOpts struct + StorageName optional.String + type Vector3 struct + Length float64 + Length2 float64 + X float64 + Y float64 + Z float64