Skip to content

Commit

Permalink
Marking TranslationStatus and DocumentStatus models as internal (#29116)
Browse files Browse the repository at this point in the history
* Marking TranslationStatus and DocumentStatus models as internal

* Moving the model overrides to the botton of the file

* Making all models internal

* Leaving a blank line

* Formating client.tsp

* Removing DocumentTranslateContent

* Updating the python package version
  • Loading branch information
hamshavathimunibyraiah authored May 15, 2024
1 parent 0a8300f commit c70d880
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions specification/translation/Azure.AI.DocumentTranslation/client.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,40 @@ interface SingleDocumentTranslationClient {
#suppress "@azure-tools/typespec-azure-core/byos"
documentTranslate is DocumentTranslation.DocumentTranslationOperations.documentTranslate;
}

// model overrides
@@access(DocumentTranslation.DocumentTranslateResult,
Access.internal,
"python"
);
@@access(DocumentTranslation.FileFormatType, Access.internal, "python");
@@access(DocumentTranslation.StorageSource, Access.internal, "python");
@@access(DocumentTranslation.AdditionalOutputFileFormat,
Access.internal,
"python"
);
@@access(DocumentTranslation.StorageInputType, Access.internal, "python");
@@access(DocumentTranslation.TranslationErrorCode, Access.internal, "python");
@@access(DocumentTranslation.Status, Access.internal, "python");
@@access(DocumentTranslation.StartTranslationDetails,
Access.internal,
"python"
);
@@access(DocumentTranslation.BatchRequest, Access.internal, "python");
@@access(DocumentTranslation.SourceInput, Access.internal, "python");
@@access(DocumentTranslation.DocumentFilter, Access.internal, "python");
@@access(DocumentTranslation.TargetInput, Access.internal, "python");
@@access(DocumentTranslation.Glossary, Access.internal, "python");
@@access(DocumentTranslation.TranslationErrorResponse,
Access.internal,
"python"
);
@@access(DocumentTranslation.TranslationError, Access.internal, "python");
@@access(DocumentTranslation.InnerTranslationError, Access.internal, "python");
@@access(DocumentTranslation.TranslationsStatus, Access.internal, "python");
@@access(DocumentTranslation.TranslationStatus, Access.internal, "python");
@@access(DocumentTranslation.StatusSummary, Access.internal, "python");
@@access(DocumentTranslation.DocumentStatus, Access.internal, "python");
@@access(DocumentTranslation.DocumentsStatus, Access.internal, "python");
@@access(DocumentTranslation.SupportedFileFormats, Access.internal, "python");
@@access(DocumentTranslation.FileFormat, Access.internal, "python");
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ options:
package-dir: "azure-ai-translation-document"
package-name: "azure-ai-translation-document"
package-mode: dataplane
package-version: "1.1.0b1"
generate-sample-project: false
"@azure-tools/typespec-java":
package-dir: "azure-ai-translation-document"
Expand Down

0 comments on commit c70d880

Please sign in to comment.