Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
30ce0cc
Replace all string visibility modifiers with Lifecycle.
willmtemple Feb 25, 2025
d2104eb
Format specs
willmtemple Feb 25, 2025
b2a0bac
fix communication messages
willmtemple Feb 25, 2025
50c8cc7
link local packages
willmtemple Feb 26, 2025
9147eda
Fix communication.messages
willmtemple Feb 26, 2025
444dbb3
Update Chaos.Management parameter visibility use
willmtemple Feb 26, 2025
ae94128
Replace @parameterVisibility with patch option in operation explicitl…
willmtemple Feb 26, 2025
a594035
Replace all @parameterVisibility on ARM Patch operations with implici…
willmtemple Feb 26, 2025
f61a4d3
ScVmm: use Lifecycle.Read instead of 'read' in augmentation
willmtemple Feb 26, 2025
1050e33
Keyvault: remove redundant @patch
willmtemple Feb 26, 2025
391ed75
connectedcache: Use Lifecycle instead of strings in augmentation
willmtemple Feb 26, 2025
503a557
Merge remote-tracking branch 'upstream/main' into witemple-msft/visib…
willmtemple Feb 27, 2025
193a168
app: change visibility of SessionResourceFile.name to be more restric…
willmtemple Feb 27, 2025
fd0fb9c
Use web deps
willmtemple Feb 28, 2025
edb529e
Merge remote-tracking branch 'upstream/main' into witemple-msft/visib…
willmtemple Feb 28, 2025
122a18e
Merge remote-tracking branch 'upstream/main' into witemple-msft/visib…
willmtemple Feb 28, 2025
2bd4152
Merge remote-tracking branch 'upstream/typespec-next' into witemple-m…
willmtemple Mar 3, 2025
f2d6701
Reset package.json to use next publications.
willmtemple Mar 3, 2025
4fd5bef
Merge remote-tracking branch 'upstream/typespec-next' into witemple-m…
willmtemple Mar 3, 2025
8843086
appcomplianceautomation: restore usings incorrectly removed
willmtemple Mar 3, 2025
ee4149c
batch: remove errant model expr augments
willmtemple Mar 3, 2025
dfaa0d1
standbypool: update visibility to Lifecycle
willmtemple Mar 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import "@azure-tools/typespec-azure-resource-manager";
using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.Core;
using Azure.ResourceManager;

@armProviderNamespace("Microsoft.AgriculturePlatform")
Expand All @@ -33,7 +32,7 @@ model AgriServiceResource is TrackedResource<AgriServiceResourceProperties> {
@pattern("^[a-zA-Z0-9-]{3,24}$")
@key("agriServiceResourceName")
@segment("agriServices")
@visibility("read")
@visibility(Lifecycle.Read)
@path
name: string;

Expand Down Expand Up @@ -70,26 +69,26 @@ union ProvisioningState {

@doc("Details of the Agriculture AgriDataManager.")
model AgriServiceResourceProperties {
@visibility("read")
@visibility(Lifecycle.Read)
@doc("The status of the last operation.")
provisioningState?: ProvisioningState;

@doc("Config of the AgriService instance.")
@visibility("read", "create", "update")
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
config?: AgriServiceConfig;

@visibility("read")
@visibility(Lifecycle.Read)
@doc("Managed On Behalf Of Configuration.")
managedOnBehalfOfConfiguration?: ManagedOnBehalfOfConfiguration;

@doc("Data connector credentials of AgriService instance.")
@OpenAPI.extension("x-ms-identifiers", #["key"])
@visibility("read", "create", "update")
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
dataConnectorCredentials?: DataConnectorCredentialMap[];

@doc("AgriService installed solutions.")
@OpenAPI.extension("x-ms-identifiers", #["key"])
@visibility("read", "create", "update")
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
installedSolutions?: InstalledSolutionMap[];
}

Expand All @@ -114,66 +113,66 @@ model InstalledSolutionMap {
@doc("Config of the AgriService resource instance.")
model AgriServiceConfig {
@doc("Instance URI of the AgriService instance.")
@visibility("read")
@visibility(Lifecycle.Read)
@minLength(2)
@maxLength(256)
instanceUri?: string;

@doc("Version of AgriService instance.")
@visibility("read")
@visibility(Lifecycle.Read)
@minLength(2)
@maxLength(256)
version?: string;

@doc("App service resource Id.")
@visibility("read")
@visibility(Lifecycle.Read)
@minLength(2)
appServiceResourceId?: string;

@doc("Cosmos Db resource Id.")
@visibility("read")
@visibility(Lifecycle.Read)
@minLength(2)
cosmosDbResourceId?: string;

@doc("Storage account resource Id.")
@visibility("read")
@visibility(Lifecycle.Read)
@minLength(2)
storageAccountResourceId?: string;

@doc("Key vault resource Id.")
@visibility("read")
@visibility(Lifecycle.Read)
@minLength(2)
keyVaultResourceId?: string;

@doc("Redis cache resource Id.")
@visibility("read")
@visibility(Lifecycle.Read)
@minLength(2)
redisCacheResourceId?: string;
}

@doc("The properties related to an AgriService data connector.")
model DataConnectorCredentials {
@doc("Type of credential.")
@visibility("read", "create", "update")
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
kind?: AuthCredentialsKind;

@doc("Client Id associated with the provider, if type of credentials is OAuthClientCredentials.")
@visibility("read", "create", "update")
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
@minLength(2)
clientId?: string;

@doc("Uri of the key vault")
@visibility("read", "create", "update")
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
@minLength(2)
keyVaultUri?: string;

@doc("Name of the key vault key.")
@visibility("read", "create", "update")
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
@minLength(2)
keyName?: string;

@doc("Version of the key vault key.")
@visibility("read", "create", "update")
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
@minLength(2)
keyVersion?: string;
}
Expand All @@ -192,39 +191,39 @@ union AuthCredentialsKind {
@doc("Installed data manager for Agriculture solution detail.")
model Solution {
@doc("Application name of the solution.")
@visibility("read", "create", "update")
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
@minLength(2)
applicationName?: string;

@doc("Partner Id.")
@visibility("read", "create", "update")
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
@minLength(2)
partnerId?: string;

@doc("Marketplace publisher Id.")
@visibility("read", "create", "update")
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
@minLength(2)
marketPlacePublisherId?: string;

@doc("Saas subscription Id.")
@visibility("read", "create", "update")
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
@minLength(2)
saasSubscriptionId?: string;

@doc("Saas subscription name.")
@visibility("read", "create", "update")
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
@minLength(2)
saasSubscriptionName?: string;

@doc("Plan Id.")
@visibility("read", "create", "update")
@visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update)
@minLength(2)
planId?: string;
}

@doc("Configuration of the managed on behalf of resource.")
model ManagedOnBehalfOfConfiguration {
@visibility("read")
@visibility(Lifecycle.Read)
@doc("Associated MoboBrokerResources.")
moboBrokerResources: MoboBrokerResource[];
}
Expand All @@ -235,7 +234,7 @@ model MoboBrokerResource {
* The fully qualified resource ID of the MoboBroker resource.
* Example: `/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}`
*/
@visibility("read")
@visibility(Lifecycle.Read)
id: string;
}

Expand Down
28 changes: 14 additions & 14 deletions specification/ai/DocumentIntelligence/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ model ClassifierCopyAuthorization {
model DocumentIntelligenceOperationDetails {
@doc("Operation ID")
@key
@visibility("read", "create")
@visibility(Lifecycle.Read, Lifecycle.Create)
operationId: string;

@doc("Operation status. notStarted, running, completed, or failed")
Expand Down Expand Up @@ -1358,7 +1358,7 @@ model DocumentIntelligenceOperationDetails {
@doc("Document model info.")
model DocumentModelDetails {
@key
@visibility("read", "create")
@visibility(Lifecycle.Read, Lifecycle.Create)
@doc("Unique document model name.")
@pattern("^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$")
modelId: string;
Expand All @@ -1368,40 +1368,40 @@ model DocumentModelDetails {
description?: string;

@doc("Date and time (UTC) when the document model was created.")
@visibility("read")
@visibility(Lifecycle.Read)
createdDateTime: utcDateTime;

@doc("Date and time (UTC) when the document model will expire.")
@visibility("read")
@visibility(Lifecycle.Read)
expirationDateTime?: utcDateTime;

@doc("Date and time (UTC) when the document model was last modified.")
@visibility("read")
@visibility(Lifecycle.Read)
modifiedDateTime?: utcDateTime;

@doc("API version used to create this document model.")
@visibility("read")
@visibility(Lifecycle.Read)
apiVersion?: string;

@doc("List of key-value tag attributes associated with the document model.")
tags?: Record<string>;

@doc("Custom document model build mode.")
@visibility("read")
@visibility(Lifecycle.Read)
buildMode?: DocumentBuildMode;

@doc("""
Azure Blob Storage location containing the training data. Either
azureBlobSource or azureBlobFileListSource must be specified.
""")
@visibility("read")
@visibility(Lifecycle.Read)
azureBlobSource?: AzureBlobContentSource;

@doc("""
Azure Blob Storage file list specifying the training data. Either
azureBlobSource or azureBlobFileListSource must be specified.
""")
@visibility("read")
@visibility(Lifecycle.Read)
azureBlobFileListSource?: AzureBlobFileListContentSource;

@doc("For composed models, the custom classifier to split and classify the input file.")
Expand All @@ -1411,15 +1411,15 @@ model DocumentModelDetails {
split?: SplitMode = SplitMode.none;

@doc("Supported document types.")
@visibility("read")
@visibility(Lifecycle.Read)
docTypes?: Record<DocumentTypeDetails>;

@doc("List of warnings encountered while building the model.")
@visibility("read")
@visibility(Lifecycle.Read)
warnings?: DocumentIntelligenceWarning[];

@doc("Number of V100-equivalent GPU hours consumed for model training.")
@visibility("read")
@visibility(Lifecycle.Read)
trainingHours?: float32;
}

Expand Down Expand Up @@ -1520,7 +1520,7 @@ model ClassifierDocumentTypeDetails {
@resource("documentClassifiers")
model DocumentClassifierDetails {
@key
@visibility("read", "create")
@visibility(Lifecycle.Read, Lifecycle.Create)
@doc("Unique document classifier name.")
@pattern("^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$")
@maxLength(64)
Expand All @@ -1537,7 +1537,7 @@ model DocumentClassifierDetails {
expirationDateTime?: utcDateTime;

@doc("Date and time (UTC) when the document model was last modified.")
@visibility("read")
@visibility(Lifecycle.Read)
modifiedDateTime?: utcDateTime;

@doc("API version used to create this document classifier.")
Expand Down
2 changes: 1 addition & 1 deletion specification/ai/Face/models.common.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ model FaceUserData {
@resource("persistedfaces")
model BaseFace {
@key
@visibility("read")
@visibility(Lifecycle.Read)
@doc("Face ID of the face.")
persistedFaceId: uuid;

Expand Down
4 changes: 2 additions & 2 deletions specification/ai/Face/models.facelist.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Face;
@resource("facelists")
model FaceList is BaseCollection {
@key
@visibility("read")
@visibility(Lifecycle.Read)
@doc("Valid character is letter in lower case or digit or '-' or '_', maximum length is 64.")
faceListId: collectionId;

Expand All @@ -35,7 +35,7 @@ model FaceListFace is BaseFace;
@resource("largefacelists")
model LargeFaceList is BaseCollection {
@key
@visibility("read")
@visibility(Lifecycle.Read)
@doc("Valid character is letter in lower case or digit or '-' or '_', maximum length is 64.")
largeFaceListId: collectionId;
}
Expand Down
8 changes: 4 additions & 4 deletions specification/ai/Face/models.persondirectory.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Face;
@doc("Person resource for person directory")
model PersonDirectoryPerson {
@key
@visibility("read")
@visibility(Lifecycle.Read)
@doc("Person ID of the person.")
personId: uuid;

Expand All @@ -24,7 +24,7 @@ model PersonDirectoryPerson {
@doc("Long running operation resource for person directory.")
model OperationResult {
@key
@visibility("read")
@visibility(Lifecycle.Read)
@doc("Operation ID of the operation.")
operationId: uuid;

Expand All @@ -50,7 +50,7 @@ model OperationResult {
model PersonDirectoryRecognitionModel {
@key
@doc("The 'recognitionModel' associated with faces.")
@visibility("create", "read")
@visibility(Lifecycle.Create, Lifecycle.Read)
recognitionModel: RecognitionModel;
}

Expand All @@ -63,7 +63,7 @@ model PersonDirectoryFace is BaseFace;
@resource("dynamicpersongroups")
model DynamicPersonGroup {
@key
@visibility("read")
@visibility(Lifecycle.Read)
@doc("ID of the dynamic person group.")
dynamicPersonGroupId: collectionId;

Expand Down
6 changes: 3 additions & 3 deletions specification/ai/Face/models.persongroup.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Face;
@doc("Base model for person.")
model BasePersonGroupPerson {
@key
@visibility("read")
@visibility(Lifecycle.Read)
@doc("ID of the person.")
personId: uuid;

Expand All @@ -27,7 +27,7 @@ model BasePersonGroupPerson {
@doc("The container of the uploaded person data, including face recognition feature, and up to 10,000 persons. To handle larger scale face identification problem, please consider using Large Person Group.")
model PersonGroup is BaseCollection {
@key
@visibility("read")
@visibility(Lifecycle.Read)
@doc("ID of the container.")
personGroupId: collectionId;
}
Expand All @@ -44,7 +44,7 @@ model PersonGroupPersonFace is BaseFace;
@resource("largepersongroups")
model LargePersonGroup is BaseCollection {
@key
@visibility("read")
@visibility(Lifecycle.Read)
@doc("ID of the container.")
largePersonGroupId: collectionId;
}
Expand Down
4 changes: 2 additions & 2 deletions specification/ai/Face/models.session.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ model LivenessSessionData {
model LivenessSessionItem {
@doc("The unique ID to reference this session.")
@key("sessionId")
@visibility("read")
@visibility(Lifecycle.Read)
id: string;

@doc("DateTime when this session was created.")
Expand Down Expand Up @@ -351,7 +351,7 @@ model SessionImageStream {
model LivenessSessionCommonData {
@doc("The unique ID to reference this session.")
@key
@visibility("read")
@visibility(Lifecycle.Read)
sessionId: string;

@doc("Bearer token to provide authentication for the Vision SDK running on a client application. This Bearer token has limited permissions to perform only the required action and expires after the TTL time. It is also auditable.")
Expand Down
Loading
Loading