From 30ce0ccf5adc006eaf17f0296881a26a96cc654c Mon Sep 17 00:00:00 2001 From: Will Temple Date: Tue, 25 Feb 2025 13:35:35 -0500 Subject: [PATCH 01/17] Replace all string visibility modifiers with Lifecycle. --- .../AgriculturePlatform.Management/main.tsp | 52 +- .../ai/DocumentIntelligence/models.tsp | 28 +- specification/ai/Face/models.common.tsp | 2 +- specification/ai/Face/models.facelist.tsp | 4 +- .../ai/Face/models.persondirectory.tsp | 8 +- specification/ai/Face/models.persongroup.tsp | 6 +- specification/ai/Face/models.session.tsp | 4 +- .../model.common.shared.tsp | 12 +- .../model.radiologyinsights.tsp | 4 +- .../model.trialmatcher.tsp | 4 +- specification/ai/ImageAnalysis/models.tsp | 4 +- .../ApiCenter.DataApi/models/api.tsp | 4 +- .../models/exportSpecification.tsp | 2 +- .../apicenter/ApiCenter.Management/main.tsp | 4 +- .../apicenter/ApiCenter.Management/models.tsp | 8 +- .../models/code-execution-file.tsp | 2 +- .../models/code-execution.tsp | 2 +- .../models/models.tsp | 218 +++---- .../resources/EvidenceResource.tsp | 2 +- .../resources/ReportResource.tsp | 2 +- .../ScopingConfigurationResource.tsp | 2 +- .../resources/SnapshotResource.tsp | 2 +- .../resources/WebhookResource.tsp | 2 +- .../AppConfiguration/models.tsp | 18 +- specification/awsconnector/shared/main.tsp | 2 +- .../DependencyMap.Management/main.tsp | 12 +- .../baseVirtualMachineProfile.tsp | 18 +- .../AzureFleet.Management/fleet.tsp | 6 +- .../virtualMachineScaleSet.tsp | 12 +- .../AzureLargeInstance.Management/models.tsp | 24 +- .../AttestationStatus.tsp | 2 +- .../GalleryImages.tsp | 2 +- .../GuestAgent.tsp | 2 +- .../HybridIdentityMetadata.tsp | 2 +- .../LogicalNetworks.tsp | 2 +- .../MarketplaceGalleryImages.tsp | 2 +- .../NetworkInterfaces.tsp | 2 +- .../NetworkSecurityGroups.tsp | 2 +- .../SecurityRules.tsp | 2 +- .../StorageContainers.tsp | 2 +- .../VirtualHardDisks.tsp | 2 +- .../VirtualMachineInstance.tsp | 2 +- .../models.tsp | 110 ++-- specification/batch/Azure.Batch/models.tsp | 188 +++--- .../Chaos.Management/capability.models.tsp | 12 +- .../capabilityType.models.tsp | 24 +- .../chaos/Chaos.Management/common.models.tsp | 4 +- .../Chaos.Management/experiment.models.tsp | 2 +- .../experimentExecution.models.tsp | 74 +-- .../Chaos.Management/privateAccess.models.tsp | 4 +- .../privateEndpointConnection.models.tsp | 12 +- .../Chaos.Management/targetType.models.tsp | 8 +- .../CodeSigning.Management/models.tsp | 34 +- .../AnomalyDetector/multivariate/models.tsp | 6 +- .../AnomalyDetector/univariate/models.tsp | 2 +- .../ContentSafety/models.tsp | 4 +- .../models/project.tsp | 34 +- .../models/common.models.tsp | 2 +- .../Language.AnalyzeText-authoring/models.tsp | 22 +- .../models/common.models.tsp | 2 +- .../Language.Conversations/models/common.tsp | 6 +- .../OpenAI.Inference/routes/common.tsp | 2 +- .../Speech.VideoTranslation/main.tsp | 26 +- .../Communication.JobRouter/models.tsp | 44 +- .../Communication.Messages/models.tsp | 8 +- .../Community.Management/main.tsp | 34 +- .../ComputeSchedule.Management/models.tsp | 6 +- .../Microsoft.ManagedCcf/acks.tsp | 2 +- .../Microsoft.ManagedCcf/proposals.tsp | 2 +- .../Microsoft.ManagedCcf/recovery.tsp | 4 +- .../Microsoft.ManagedCcf/service_state.tsp | 10 +- .../Microsoft.ManagedCcf/transactions.tsp | 4 +- .../ConnectedCache.Management/models.tsp | 176 +++--- .../Fleet.Management/fleet.tsp | 32 +- .../Fleet.Management/fleetmember.tsp | 6 +- .../update/autoupgradeprofile.tsp | 8 +- .../Fleet.Management/update/run.tsp | 56 +- .../Fleet.Management/update/strategy.tsp | 6 +- .../assignment.tsp | 4 +- .../ContainerStorage.Management/pool.tsp | 14 +- .../ContainerStorage.Management/snapshot.tsp | 6 +- .../ContainerStorage.Management/volume.tsp | 8 +- .../Contoso.Management/employee.tsp | 2 +- .../Contoso.WidgetManager/main.tsp | 2 +- .../models.tsp | 128 ++--- .../alertRuleResources.tsp | 2 +- .../DatabaseWatcher.Management/baseTarget.tsp | 2 +- .../healthValidation.tsp | 24 +- .../sharedPrivateLinkResource.tsp | 4 +- .../DatabaseWatcher.Management/watcher.tsp | 4 +- .../devcenter/DevCenter/DevBox/models.tsp | 102 ++-- .../DevCenter/Environments/models.tsp | 32 +- .../devcenter/DevCenter/shared/models.tsp | 8 +- .../assetEndpointProfiles.tsp | 16 +- .../DeviceRegistry.Management/assets.tsp | 44 +- .../DeviceRegistry.Management/billings.tsp | 4 +- .../discoveredAssetEndpointProfiles.tsp | 4 +- .../discoveredAssets.tsp | 6 +- .../schemaRegistries.tsp | 24 +- .../main.tsp | 11 +- .../DurableTask.Management/main.tsp | 10 +- .../Microsoft.Edge.Sites.Management/Site.tsp | 2 +- .../models.tsp | 2 +- .../edgezones/EdgeZones.Management/main.tsp | 22 +- .../Azure.Messaging.EventGrid/main.tsp | 4 +- .../azurekeyvaultsecretproviderclass.tsp | 2 +- .../secretsync.tsp | 20 +- .../Microsoft.Fabric.Management/capacity.tsp | 2 +- .../Microsoft.Fabric.Management/models.tsp | 6 +- .../NetworkSettingsResource.tsp | 2 +- .../GitHub.Network.Management/models.tsp | 6 +- .../models_document_flow.tsp | 16 +- .../HealthDataAIServices.Management/main.tsp | 6 +- .../PublicCloud.tsp | 22 +- .../HybridConnectivity.Management/models.tsp | 14 +- .../Impact.Management/ImpactCategories.tsp | 2 +- .../impact/Impact.Management/connectors.tsp | 6 +- .../impact/Impact.Management/insights.tsp | 4 +- .../impact/Impact.Management/main.tsp | 2 +- .../Impact.Management/workloadImpacts.tsp | 6 +- .../main.tsp | 4 +- .../models/broker/authentications.tsp | 4 +- .../models/broker/authorizations.tsp | 4 +- .../models/broker/brokers.tsp | 14 +- .../models/broker/listeners.tsp | 4 +- .../models/dataflows/dataflowEndpoints.tsp | 4 +- .../models/dataflows/dataflowProfiles.tsp | 4 +- .../models/dataflows/dataflows.tsp | 4 +- .../models/instance.tsp | 6 +- .../dataset.tsp | 4 +- .../instance.tsp | 4 +- .../pipeline.tsp | 4 +- .../models/base.tsp | 2 +- .../models/datalakeconnector.tsp | 4 +- .../models/diagnosticservice.tsp | 2 +- .../models/kafkaconnector.tsp | 4 +- .../IoTOperationsMQ.Management/models/mq.tsp | 2 +- .../models/mqttbridgeconnector.tsp | 4 +- .../models/mqttbroker.tsp | 8 +- .../instance.tsp | 4 +- .../solution.tsp | 4 +- .../target.tsp | 4 +- .../Security.KeyVault.Certificates/models.tsp | 52 +- .../Security.KeyVault.Common/common.tsp | 8 +- .../Security.KeyVault.Keys/models.tsp | 52 +- .../Security.KeyVault.RBAC/models.tsp | 12 +- .../Security.KeyVault.Secrets/models.tsp | 32 +- .../Security.KeyVault.Settings/models.tsp | 2 +- .../KubernetesRuntime.Management/bgppeer.tsp | 2 +- .../loadbalancer.tsp | 2 +- .../KubernetesRuntime.Management/service.tsp | 4 +- .../storageclass.tsp | 8 +- .../LiftrBase/main.tsp | 8 +- .../LiftrBase/main.tsp | 4 +- .../LiftrBase.Storage/main.tsp | 4 +- .../LiftrBase/main.tsp | 2 +- .../LoadTestService.Management/models.tsp | 32 +- .../models.notificationrule.tsp | 2 +- .../LoadTestService/models.testprofile.tsp | 30 +- .../LoadTestService/models.trigger.tsp | 6 +- .../LoadTestService/models.tsp | 132 ++--- .../AzureAI.Assets/common.tsp | 8 +- .../AzureAI.Assets/model.tsp | 4 +- .../FirewallRule.tsp | 4 +- .../MongoCluster.tsp | 46 +- .../Replica.tsp | 2 +- .../typespec/azureMonitorWorkspace.tsp | 20 +- .../typespec/pipelineGroup.tsp | 4 +- .../typespec/pipelineGroup.tsp | 2 +- .../autonomousdatabase/autonomousDatabase.tsp | 192 +++---- .../autonomousDatabaseBackup.tsp | 32 +- .../oracle/models/exadata/dbNodes.tsp | 2 +- .../oracle/models/exadata/dbServers.tsp | 48 +- .../oracle/models/exadata/dnsPrivateViews.tsp | 2 +- .../oracle/models/exadata/dnsPrivateZones.tsp | 2 +- .../oracle/models/exadata/exadatainfra.tsp | 70 +-- .../models/exadata/virtualNetworkAddress.tsp | 18 +- .../oracle/models/exadata/vmcluster.tsp | 78 +-- .../oraclesubscription/oracleSubscription.tsp | 52 +- .../PlaywrightTesting.AuthManager/main.tsp | 12 +- .../PlaywrightTesting.Management/main.tsp | 26 +- .../PlaywrightTesting.Shared/main.tsp | 24 +- .../portal/Dashboard.Management/models.tsp | 14 +- .../TenantConfiguration.Management/models.tsp | 8 +- .../CopilotSettings.tsp | 2 +- .../CopilotSettings.Management/models.tsp | 2 +- .../ExtensionTenantCompileFile.tsp | 2 +- .../Extension.Management/models.tsp | 46 +- .../apis/location.tsp | 2 +- .../apis/network.tsp | 2 +- .../apis/number.tsp | 2 +- .../apis/simswap.tsp | 2 +- .../Gateway.tsp | 8 +- .../OperatorApiConnection.tsp | 24 +- .../OperatorApiPlan.tsp | 4 +- .../models.tsp | 2 +- .../Microsoft.Quantum.Management/models.tsp | 30 +- .../common/common-params.tsp | 8 +- .../Quantum.Workspace/common/json-patch.tsp | 8 +- .../Quantum.Workspace/operations/items.tsp | 20 +- .../Quantum.Workspace/operations/jobs.tsp | 32 +- .../operations/providers.tsp | 14 +- .../Quantum.Workspace/operations/quotas.tsp | 16 +- .../Quantum.Workspace/operations/sessions.tsp | 8 +- .../Quantum.Workspace/operations/storage.tsp | 6 +- .../DataReplication.Management/models.tsp | 542 +++++++++--------- specification/riskiq/Easm/models.tsp | 36 +- .../schemaregistry/SchemaRegistry/main.tsp | 4 +- .../scvmm/ScVmm.Management/GuestAgent.tsp | 2 +- .../VirtualMachineInstance.tsp | 4 +- .../VmInstanceHybridIdentityMetadata.tsp | 2 +- .../scvmm/ScVmm.Management/models.tsp | 164 +++--- .../ServiceNetworking.Management/main.tsp | 26 +- .../landingZoneAccountResourceProperties.tsp | 2 +- ...ingZoneConfigurationResourceProperties.tsp | 4 +- ...dingZoneRegistrationResourceProperties.tsp | 2 +- .../sovereign/Sovereign.Management/main.tsp | 4 +- .../sphere/Sphere.Management/catalog.tsp | 2 +- .../sphere/Sphere.Management/certificate.tsp | 2 +- .../sphere/Sphere.Management/deployment.tsp | 2 +- .../sphere/Sphere.Management/device.tsp | 2 +- .../sphere/Sphere.Management/deviceGroup.tsp | 2 +- .../sphere/Sphere.Management/image.tsp | 2 +- .../sphere/Sphere.Management/models.tsp | 76 +-- .../sphere/Sphere.Management/product.tsp | 2 +- .../main.tsp | 6 +- .../standbyContainerGroupPool.tsp | 4 +- .../standbyContainerGroupPoolRuntimeView.tsp | 6 +- .../StandbyPool.Management/standbyVM.tsp | 4 +- .../StandbyPool.Management/standbyVMPool.tsp | 4 +- .../standbyVirtualMachinePoolRuntimeView.tsp | 6 +- .../Azure.AI.DocumentTranslation/models.tsp | 4 +- .../trustedsigning/TrustedSigning/main.tsp | 6 +- .../Microsoft.VerifiedId.Management/main.tsp | 2 +- .../Microsoft.AVS.Management/addons.tsp | 2 +- .../authorizations.tsp | 6 +- .../Microsoft.AVS.Management/cloudLinks.tsp | 4 +- .../Microsoft.AVS.Management/clusters.tsp | 8 +- .../Microsoft.AVS.Management/datastores.tsp | 6 +- .../globalReachConnections.tsp | 6 +- .../hcxEnterpriseSites.tsp | 6 +- .../Microsoft.AVS.Management/iscsiPaths.tsp | 4 +- .../Microsoft.AVS.Management/locations.tsp | 10 +- .../placementPolicies.tsp | 2 +- .../privateClouds.tsp | 58 +- .../scriptCmdlets.tsp | 18 +- .../scriptExecutions.tsp | 14 +- .../scriptPackages.tsp | 10 +- .../virtualMachines.tsp | 10 +- .../workloadNetworks-dhcpConfigurations.tsp | 4 +- .../workloadNetworks-dnsServices.tsp | 4 +- .../workloadNetworks-dnsZones.tsp | 2 +- .../workloadNetworks-gateways.tsp | 4 +- ...workloadNetworks-portMirroringProfiles.tsp | 4 +- .../workloadNetworks-publicIPs.tsp | 4 +- .../workloadNetworks-segments.tsp | 6 +- .../workloadNetworks-virtualMachines.tsp | 4 +- .../workloadNetworks-vmGroups.tsp | 4 +- .../workloadNetworks.tsp | 2 +- .../VoiceServices.Provisioning/main.tsp | 208 +++---- .../SAPDiscoverySite.tsp | 2 +- .../SAPInstance.tsp | 2 +- .../ServerInstance.tsp | 2 +- .../models.tsp | 70 +-- .../Workloads.SAPMonitor.Management/Alert.tsp | 2 +- .../AlertTemplate.tsp | 2 +- .../Monitor.tsp | 2 +- .../ProviderInstance.tsp | 2 +- .../SapLandscapeMonitor.tsp | 2 +- .../models.tsp | 32 +- .../SAPVirtualInstanceMetadata.tsp | 2 +- .../models.tsp | 162 +++--- 272 files changed, 2547 insertions(+), 2548 deletions(-) diff --git a/specification/agricultureplatform/AgriculturePlatform.Management/main.tsp b/specification/agricultureplatform/AgriculturePlatform.Management/main.tsp index f225f675cb32..089e8f186b22 100644 --- a/specification/agricultureplatform/AgriculturePlatform.Management/main.tsp +++ b/specification/agricultureplatform/AgriculturePlatform.Management/main.tsp @@ -35,7 +35,7 @@ model AgriServiceResource is TrackedResource { @pattern("^[a-zA-Z0-9-]{3,24}$") @key("agriServiceResourceName") @segment("agriServices") - @visibility("read") + @visibility(Lifecycle.Read) @path name: string; @@ -72,26 +72,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[]; } @@ -116,39 +116,39 @@ 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; } @@ -156,26 +156,26 @@ model AgriServiceConfig { @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; } @@ -194,39 +194,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[]; } @@ -237,7 +237,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; } diff --git a/specification/ai/DocumentIntelligence/models.tsp b/specification/ai/DocumentIntelligence/models.tsp index 127bc6b5afed..958113df0c13 100644 --- a/specification/ai/DocumentIntelligence/models.tsp +++ b/specification/ai/DocumentIntelligence/models.tsp @@ -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") @@ -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; @@ -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; @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.") @@ -1411,15 +1411,15 @@ model DocumentModelDetails { split?: SplitMode = SplitMode.none; @doc("Supported document types.") - @visibility("read") + @visibility(Lifecycle.Read) docTypes?: Record; @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; } @@ -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) @@ -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.") diff --git a/specification/ai/Face/models.common.tsp b/specification/ai/Face/models.common.tsp index c9746b6a544a..f537295710b1 100644 --- a/specification/ai/Face/models.common.tsp +++ b/specification/ai/Face/models.common.tsp @@ -117,7 +117,7 @@ model FaceUserData { @resource("persistedfaces") model BaseFace { @key - @visibility("read") + @visibility(Lifecycle.Read) @doc("Face ID of the face.") persistedFaceId: uuid; diff --git a/specification/ai/Face/models.facelist.tsp b/specification/ai/Face/models.facelist.tsp index f6ffdfb437d0..7b988cdfdb4a 100644 --- a/specification/ai/Face/models.facelist.tsp +++ b/specification/ai/Face/models.facelist.tsp @@ -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; @@ -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; } diff --git a/specification/ai/Face/models.persondirectory.tsp b/specification/ai/Face/models.persondirectory.tsp index c67f66ad3d02..9a7a225378c2 100644 --- a/specification/ai/Face/models.persondirectory.tsp +++ b/specification/ai/Face/models.persondirectory.tsp @@ -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; @@ -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; @@ -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; } @@ -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; diff --git a/specification/ai/Face/models.persongroup.tsp b/specification/ai/Face/models.persongroup.tsp index 606329053a57..dbf5213b3f65 100644 --- a/specification/ai/Face/models.persongroup.tsp +++ b/specification/ai/Face/models.persongroup.tsp @@ -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; @@ -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; } @@ -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; } diff --git a/specification/ai/Face/models.session.tsp b/specification/ai/Face/models.session.tsp index 61f19b01983b..370b4d861d06 100644 --- a/specification/ai/Face/models.session.tsp +++ b/specification/ai/Face/models.session.tsp @@ -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.") @@ -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.") diff --git a/specification/ai/HealthInsights/HealthInsights.Common/model.common.shared.tsp b/specification/ai/HealthInsights/HealthInsights.Common/model.common.shared.tsp index 319b626d457c..dbfec5af0ece 100644 --- a/specification/ai/HealthInsights/HealthInsights.Common/model.common.shared.tsp +++ b/specification/ai/HealthInsights/HealthInsights.Common/model.common.shared.tsp @@ -8,31 +8,31 @@ namespace AzureHealthInsights; model HealthInsightsJobBase { @key("id") @doc("The unique ID of the job.") - @visibility("read") + @visibility(Lifecycle.Read) @maxLength(36) @minLength(3) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_]+[a-zA-Z0-9]$") id: string; @doc("The status of the job.") - @visibility("read") + @visibility(Lifecycle.Read) @lroStatus status: JobStatus; @doc("The date and time when the processing job was created.") - @visibility("read") + @visibility(Lifecycle.Read) createdAt?: utcDateTime; @doc("The date and time when the processing job is set to expire.") - @visibility("read") + @visibility(Lifecycle.Read) expiresAt?: utcDateTime; @doc("The date and time when the processing job was last updated.") - @visibility("read") + @visibility(Lifecycle.Read) updatedAt?: utcDateTime; @doc("Error object that describes the error when status is \"Failed\".") - @visibility("read") + @visibility(Lifecycle.Read) error?: Foundations.Error; } diff --git a/specification/ai/HealthInsights/HealthInsights.RadiologyInsights/model.radiologyinsights.tsp b/specification/ai/HealthInsights/HealthInsights.RadiologyInsights/model.radiologyinsights.tsp index 73b450da44b1..228e06bb679c 100644 --- a/specification/ai/HealthInsights/HealthInsights.RadiologyInsights/model.radiologyinsights.tsp +++ b/specification/ai/HealthInsights/HealthInsights.RadiologyInsights/model.radiologyinsights.tsp @@ -87,11 +87,11 @@ model QualityMeasureOptions { @resource("radiology-insights/jobs") model RadiologyInsightsJob { @doc("The request data for the operation.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) jobData?: RadiologyInsightsData; @doc("The result of the operation.") - @visibility("read") + @visibility(Lifecycle.Read) result?: RadiologyInsightsInferenceResult; ...HealthInsightsJobBase; diff --git a/specification/ai/HealthInsights/HealthInsights.TrialMatcher/model.trialmatcher.tsp b/specification/ai/HealthInsights/HealthInsights.TrialMatcher/model.trialmatcher.tsp index 439947c432b6..abf5178c1fec 100644 --- a/specification/ai/HealthInsights/HealthInsights.TrialMatcher/model.trialmatcher.tsp +++ b/specification/ai/HealthInsights/HealthInsights.TrialMatcher/model.trialmatcher.tsp @@ -35,11 +35,11 @@ model TrialMatcherModelConfiguration { @resource("trial-matcher/jobs") model TrialMatcherJob { @doc("The request data for the operation.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) jobData?: TrialMatcherData; @doc("The result of the operation.") - @visibility("read") + @visibility(Lifecycle.Read) result?: TrialMatcherInferenceResult; ...HealthInsightsJobBase; diff --git a/specification/ai/ImageAnalysis/models.tsp b/specification/ai/ImageAnalysis/models.tsp index 61b804dff603..86933b439fcd 100644 --- a/specification/ai/ImageAnalysis/models.tsp +++ b/specification/ai/ImageAnalysis/models.tsp @@ -101,14 +101,14 @@ model DetectedObject { @doc("Represents a person detected in an image.") model DetectedPerson { @doc("A rectangular boundary where the person was detected.") - @visibility("read") + @visibility(Lifecycle.Read) boundingBox: ImageBoundingBox; @doc(""" A score, in the range of 0 to 1 (inclusive), representing the confidence that this detection was accurate. Higher values indicating higher confidence. """) - @visibility("read") + @visibility(Lifecycle.Read) @minValue(0.0) @maxValue(1.0) confidence: float32; diff --git a/specification/apicenter/ApiCenter.DataApi/models/api.tsp b/specification/apicenter/ApiCenter.DataApi/models/api.tsp index dd0a78fd4084..b66c484f1261 100644 --- a/specification/apicenter/ApiCenter.DataApi/models/api.tsp +++ b/specification/apicenter/ApiCenter.DataApi/models/api.tsp @@ -35,7 +35,7 @@ model Api { kind: ApiKind; @doc("Current lifecycle stage of the API.") - @visibility("read") + @visibility(Lifecycle.Read) lifecycleStage?: LifecycleStage; @doc("Terms of service for the API.") @@ -54,7 +54,7 @@ model Api { customProperties?: {}; @doc("Last updated date and time.") - @visibility("read") + @visibility(Lifecycle.Read) lastUpdated?: utcDateTime; } diff --git a/specification/apicenter/ApiCenter.DataApi/models/exportSpecification.tsp b/specification/apicenter/ApiCenter.DataApi/models/exportSpecification.tsp index ee92572363c9..158d98ef8b11 100644 --- a/specification/apicenter/ApiCenter.DataApi/models/exportSpecification.tsp +++ b/specification/apicenter/ApiCenter.DataApi/models/exportSpecification.tsp @@ -8,7 +8,7 @@ using TypeSpec.Rest; model ApiSpecExportResult { @doc("API definition identifier.") @key("definitionName") - @visibility("query") + @visibility(Lifecycle.Query) definitionName: string; @doc("The result of the specification export.") diff --git a/specification/apicenter/ApiCenter.Management/main.tsp b/specification/apicenter/ApiCenter.Management/main.tsp index 7940241fd371..6b37c14ae8b1 100644 --- a/specification/apicenter/ApiCenter.Management/main.tsp +++ b/specification/apicenter/ApiCenter.Management/main.tsp @@ -126,8 +126,8 @@ enum Versions { @@clientName(Services.exportMetadataSchema::parameters.body, "payload"); -@@visibility(Azure.Core.Page.nextLink, "read"); -@@visibility(Azure.Core.Page.value, "read"); +@@visibility(Azure.Core.Page.nextLink, Lifecycle.Read); +@@visibility(Azure.Core.Page.value, Lifecycle.Read); /** * A resource list operation, at the scope of the resource's parent * @template TResource the resource being patched diff --git a/specification/apicenter/ApiCenter.Management/models.tsp b/specification/apicenter/ApiCenter.Management/models.tsp index 7ee15b1e4d77..9dc20e0cf1c8 100644 --- a/specification/apicenter/ApiCenter.Management/models.tsp +++ b/specification/apicenter/ApiCenter.Management/models.tsp @@ -233,7 +233,7 @@ union EnvironmentServerType { @doc("The properties of the service.") model ServiceProperties { @doc("Provisioning state of the service.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @added(Versions.v2024_03_15_preview) @@ -311,7 +311,7 @@ model ApiProperties { summary?: string; @doc("Current lifecycle stage of the API.") - @visibility("read") + @visibility(Lifecycle.Read) lifecycleStage?: LifecycleStage; @doc("Terms of service for the API.") @@ -416,7 +416,7 @@ model ApiDefinitionProperties { description?: string; @doc("API specification details.") - @visibility("read") + @visibility(Lifecycle.Read) specification?: ApiDefinitionPropertiesSpecification; } @@ -582,7 +582,7 @@ model ApiSourceProperties { /** * The state of the API source link */ - @visibility("read") + @visibility(Lifecycle.Read) linkState?: LinkState; } diff --git a/specification/app/Microsoft.App.DynamicSessions/models/code-execution-file.tsp b/specification/app/Microsoft.App.DynamicSessions/models/code-execution-file.tsp index d17d1b5ad31c..e5307d225bb3 100644 --- a/specification/app/Microsoft.App.DynamicSessions/models/code-execution-file.tsp +++ b/specification/app/Microsoft.App.DynamicSessions/models/code-execution-file.tsp @@ -16,7 +16,7 @@ model SessionResourceFile { @key("name") @segment("files") @doc("The name of the file.") - @visibility("read", "query", "create", "update", "delete") + @visibility(Lifecycle.Read, Lifecycle.Query, Lifecycle.Create, Lifecycle.Update, Lifecycle.Delete) name: string; @doc("The type of the session resource file.") diff --git a/specification/app/Microsoft.App.DynamicSessions/models/code-execution.tsp b/specification/app/Microsoft.App.DynamicSessions/models/code-execution.tsp index e8ba600901b2..bab92a69e736 100644 --- a/specification/app/Microsoft.App.DynamicSessions/models/code-execution.tsp +++ b/specification/app/Microsoft.App.DynamicSessions/models/code-execution.tsp @@ -39,7 +39,7 @@ model SessionCodeExecutionResult { @doc("The session code execution resource.") @resource("executions") model SessionCodeExecutionResource { - @visibility("read") + @visibility(Lifecycle.Read) @doc("Session code execution id.") @key("executionId") id: string; diff --git a/specification/appcomplianceautomation/AppComplianceAutomation.Management/models/models.tsp b/specification/appcomplianceautomation/AppComplianceAutomation.Management/models/models.tsp index b04607c54826..c34ba4254d80 100644 --- a/specification/appcomplianceautomation/AppComplianceAutomation.Management/models/models.tsp +++ b/specification/appcomplianceautomation/AppComplianceAutomation.Management/models/models.tsp @@ -612,14 +612,14 @@ model TriggerEvaluationProperty { /** * The time when the evaluation is triggered. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. triggerTime?: utcDateTime; /** * The time when the evaluation is end. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. evaluationEndTime?: utcDateTime; @@ -643,44 +643,44 @@ model QuickAssessment { /** * Resource id. */ - @visibility("read") + @visibility(Lifecycle.Read) resourceId?: string; /** * Responsibility id. */ - @visibility("read") + @visibility(Lifecycle.Read) responsibilityId?: string; /** * The timestamp of resource creation (UTC). */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. timestamp?: utcDateTime; /** * Quick assessment status. */ - @visibility("read") + @visibility(Lifecycle.Read) resourceStatus?: ResourceStatus; /** * Quick assessment display name. */ - @visibility("read") + @visibility(Lifecycle.Read) displayName?: string; /** * Quick assessment display name. */ - @visibility("read") + @visibility(Lifecycle.Read) description?: string; /** * Link to remediation steps for this quick assessment. */ - @visibility("read") + @visibility(Lifecycle.Read) remediationLink?: string; } @@ -739,19 +739,19 @@ alias ReportBaseProperties = { /** * Report status. */ - @visibility("read") + @visibility(Lifecycle.Read) status?: ReportStatus; /** * List of report error codes. */ - @visibility("read") + @visibility(Lifecycle.Read) errors?: string[]; /** * Report's tenant id. */ - @visibility("read") + @visibility(Lifecycle.Read) tenantId?: string; /** @@ -762,27 +762,27 @@ alias ReportBaseProperties = { /** * Report next collection trigger time. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. nextTriggerTime?: utcDateTime; /** * Report last collection trigger time. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastTriggerTime?: utcDateTime; /** * List of subscription Ids. */ - @visibility("read") + @visibility(Lifecycle.Read) subscriptions?: string[]; /** * Report compliance status. */ - @visibility("read") + @visibility(Lifecycle.Read) complianceStatus?: ReportComplianceStatus; /** @@ -793,14 +793,14 @@ alias ReportBaseProperties = { /** * List of synchronized certification records. */ - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["offerGuid"]) certRecords?: CertSyncRecord[]; /** * Azure lifecycle management */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; }; @@ -891,7 +891,7 @@ model ReportComplianceStatus { /** * The Microsoft 365 certification name. */ - @visibility("read") + @visibility(Lifecycle.Read) m365?: OverviewStatus; } @@ -902,31 +902,31 @@ model OverviewStatus { /** * The count of all passed control. */ - @visibility("read") + @visibility(Lifecycle.Read) passedCount?: int32; /** * The count of all failed control. */ - @visibility("read") + @visibility(Lifecycle.Read) failedCount?: int32; /** * The count of all manual control. */ - @visibility("read") + @visibility(Lifecycle.Read) manualCount?: int32; /** * The count of all not applicable control. */ - @visibility("read") + @visibility(Lifecycle.Read) notApplicableCount?: int32; /** * The count of all pending for approval control. */ - @visibility("read") + @visibility(Lifecycle.Read) pendingCount?: int32; } @@ -1009,7 +1009,7 @@ model WebhookProperties { /** * Webhook id in database. */ - @visibility("read") + @visibility(Lifecycle.Read) webhookId?: string; /** @@ -1020,7 +1020,7 @@ model WebhookProperties { /** * Tenant id. */ - @visibility("read") + @visibility(Lifecycle.Read) tenantId?: string; /** @@ -1058,7 +1058,7 @@ model WebhookProperties { /** * whether webhookKey is enabled. */ - @visibility("read") + @visibility(Lifecycle.Read) webhookKeyEnabled?: WebhookKeyEnabled; /** @@ -1069,13 +1069,13 @@ model WebhookProperties { /** * webhook deliveryStatus */ - @visibility("read") + @visibility(Lifecycle.Read) deliveryStatus?: DeliveryStatus; /** * Azure Resource Provisioning State */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -1096,38 +1096,38 @@ model SnapshotProperties { /** * Snapshot name. */ - @visibility("read") + @visibility(Lifecycle.Read) snapshotName?: string; /** * The timestamp of resource creation (UTC). */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. createdAt?: utcDateTime; /** * Azure lifecycle management */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * The report essential info. */ - @visibility("read") + @visibility(Lifecycle.Read) reportProperties?: ReportProperties; /** * Metadata pertaining to creation and last modification of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) reportSystemData?: SystemData; /** * List of compliance results. */ - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["complianceName"]) complianceResults?: ComplianceResult[]; } @@ -1139,13 +1139,13 @@ model ComplianceResult { /** * The name of the compliance. e.g. "M365" */ - @visibility("read") + @visibility(Lifecycle.Read) complianceName?: string; /** * List of categories. */ - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["categoryName"]) categories?: Category[]; } @@ -1157,19 +1157,19 @@ model Category { /** * The name of the compliance category. e.g. "Operational Security" */ - @visibility("read") + @visibility(Lifecycle.Read) categoryName?: string; /** * Category status. */ - @visibility("read") + @visibility(Lifecycle.Read) categoryStatus?: CategoryStatus; /** * List of control families. */ - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["controlFamilyName"]) controlFamilies?: ControlFamily[]; } @@ -1181,19 +1181,19 @@ model ControlFamily { /** * The name of the control family. e.g. "Malware Protection - Anti-Virus" */ - @visibility("read") + @visibility(Lifecycle.Read) controlFamilyName?: string; /** * The control family status */ - @visibility("read") + @visibility(Lifecycle.Read) controlFamilyStatus?: ControlFamilyStatus; /** * List of controls. */ - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["controlId"]) controls?: Control[]; } @@ -1205,43 +1205,43 @@ model Control { /** * The Id of the control. e.g. "Operational_Security_10" */ - @visibility("read") + @visibility(Lifecycle.Read) controlId?: string; /** * The name of the control. e.g. "Unsupported OS and Software." */ - @visibility("read") + @visibility(Lifecycle.Read) controlName?: string; /** * The full name of the control. e.g. "Validate that unsupported operating systems and software components are not in use." */ - @visibility("read") + @visibility(Lifecycle.Read) controlFullName?: string; /** * The control's description */ - @visibility("read") + @visibility(Lifecycle.Read) controlDescription?: string; /** * The hyper link to the control's description'. */ - @visibility("read") + @visibility(Lifecycle.Read) controlDescriptionHyperLink?: string; /** * Control status. */ - @visibility("read") + @visibility(Lifecycle.Read) controlStatus?: ControlStatus; /** * List of customer responsibility. */ - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["responsibilityId"]) responsibilities?: Responsibility[]; } @@ -1253,43 +1253,43 @@ model Responsibility { /** * The id of the customer responsibility. */ - @visibility("read") + @visibility(Lifecycle.Read) responsibilityId?: string; /** * The title of the customer responsibility. */ - @visibility("read") + @visibility(Lifecycle.Read) responsibilityTitle?: string; /** * The description of the customer responsibility. */ - @visibility("read") + @visibility(Lifecycle.Read) responsibilityDescription?: string; /** * The type of customer responsibility. */ - @visibility("read") + @visibility(Lifecycle.Read) responsibilityType?: ResponsibilityType; /** * The severity level of this customer responsibility. */ - @visibility("read") + @visibility(Lifecycle.Read) responsibilitySeverity?: ResponsibilitySeverity; /** * The status of this customer responsibility. */ - @visibility("read") + @visibility(Lifecycle.Read) responsibilityStatus?: ResponsibilityStatus; /** * The supported cloud environment of this customer responsibility. */ - @visibility("read") + @visibility(Lifecycle.Read) responsibilityEnvironment?: ResponsibilityEnvironment; /** @@ -1305,27 +1305,27 @@ model Responsibility { /** * List of resource. */ - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["resourceId"]) resourceList?: ResponsibilityResource[]; /** * List of recommendation. */ - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["recommendationId"]) recommendationList?: Recommendation[]; /** * The evidence upload guidance description. */ - @visibility("read") + @visibility(Lifecycle.Read) guidance?: string; /** * The justification given by the user to clarify the reason. */ - @visibility("read") + @visibility(Lifecycle.Read) justification?: string; /** @@ -1341,37 +1341,37 @@ model ResponsibilityResource { /** * The Id of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) resourceId?: string; /** * Account Id. For example - AWS account Id. */ - @visibility("read") + @visibility(Lifecycle.Read) accountId?: string; /** * The type of the resource. e.g. "Microsoft.SignalRService/SignalR" */ - @visibility("read") + @visibility(Lifecycle.Read) resourceType?: string; /** * Resource origin. */ - @visibility("read") + @visibility(Lifecycle.Read) resourceOrigin?: ResourceOrigin; /** * Resource status. */ - @visibility("read") + @visibility(Lifecycle.Read) resourceStatus?: ResourceStatus; /** * The status change date for the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. resourceStatusChangeDate?: utcDateTime; @@ -1388,19 +1388,19 @@ model Recommendation { /** * The Id of the recommendation. */ - @visibility("read") + @visibility(Lifecycle.Read) recommendationId?: string; /** * The short name of the recommendation. e.g. "Invalid TLS config" */ - @visibility("read") + @visibility(Lifecycle.Read) recommendationShortName?: string; /** * List of recommendation solutions. */ - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["recommendationSolutionIndex"]) recommendationSolutions?: RecommendationSolution[]; } @@ -1412,19 +1412,19 @@ model RecommendationSolution { /** * The index of the recommendation solution. */ - @visibility("read") + @visibility(Lifecycle.Read) recommendationSolutionIndex?: string; /** * The detail steps of the recommendation solution. */ - @visibility("read") + @visibility(Lifecycle.Read) recommendationSolutionContent?: string; /** * Indicates whether this solution is the recommended. */ - @visibility("read") + @visibility(Lifecycle.Read) isRecommendSolution?: IsRecommendSolution; } @@ -1456,27 +1456,27 @@ model DownloadResponse { /** * Resource list of the report */ - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["resourceId"]) resourceList?: ResourceItem[]; /** * List of the compliance result */ - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["controlId"]) complianceReport?: ComplianceReportItem[]; /** * Compliance pdf report */ - @visibility("read") + @visibility(Lifecycle.Read) compliancePdfReport?: DownloadResponseCompliancePdfReport; /** * The detailed compliance pdf report */ - @visibility("read") + @visibility(Lifecycle.Read) complianceDetailedPdfReport?: DownloadResponseComplianceDetailedPdfReport; } @@ -1487,25 +1487,25 @@ model ResourceItem { /** * The subscription Id of this resource. */ - @visibility("read") + @visibility(Lifecycle.Read) subscriptionId?: string; /** * The resource group name of this resource. */ - @visibility("read") + @visibility(Lifecycle.Read) resourceGroup?: string; /** * The resource type of this resource. e.g. "Microsoft.SignalRService/SignalR" */ - @visibility("read") + @visibility(Lifecycle.Read) resourceType?: string; /** * The resource Id - e.g. "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1". */ - @visibility("read") + @visibility(Lifecycle.Read) resourceId?: string; } @@ -1516,73 +1516,73 @@ model ComplianceReportItem { /** * The category name. */ - @visibility("read") + @visibility(Lifecycle.Read) categoryName?: string; /** * The control family name. */ - @visibility("read") + @visibility(Lifecycle.Read) controlFamilyName?: string; /** * The control Id - e.g. "1". */ - @visibility("read") + @visibility(Lifecycle.Read) controlId?: string; /** * The control name. */ - @visibility("read") + @visibility(Lifecycle.Read) controlName?: string; /** * Control status. */ - @visibility("read") + @visibility(Lifecycle.Read) controlStatus?: ControlStatus; /** * The title of the customer responsibility. */ - @visibility("read") + @visibility(Lifecycle.Read) responsibilityTitle?: string; /** * The description of the customer responsibility. */ - @visibility("read") + @visibility(Lifecycle.Read) responsibilityDescription?: string; /** * The Id of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) resourceId?: string; /** * The type of the resource. e.g. "Microsoft.SignalRService/SignalR" */ - @visibility("read") + @visibility(Lifecycle.Read) resourceType?: string; /** * Resource origin. */ - @visibility("read") + @visibility(Lifecycle.Read) resourceOrigin?: ResourceOrigin; /** * Resource status. */ - @visibility("read") + @visibility(Lifecycle.Read) resourceStatus?: ResourceStatus; /** * The status change date for the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. resourceStatusChangeDate?: utcDateTime; } @@ -1594,7 +1594,7 @@ model DownloadResponseCompliancePdfReport { /** * The uri of compliance pdf report */ - @visibility("read") + @visibility(Lifecycle.Read) sasUri?: string; } @@ -1605,7 +1605,7 @@ model DownloadResponseComplianceDetailedPdfReport { /** * The uri of detailed compliance pdf report */ - @visibility("read") + @visibility(Lifecycle.Read) sasUri?: string; } @@ -1622,7 +1622,7 @@ model ScopingConfigurationProperties { /** * Azure lifecycle management */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -1644,37 +1644,37 @@ model ScopingQuestion { /** * Question id. */ - @visibility("read") + @visibility(Lifecycle.Read) questionId: string; /** * Superior question id. */ - @visibility("read") + @visibility(Lifecycle.Read) superiorQuestionId?: string; /** * Input type of the question answer. */ - @visibility("read") + @visibility(Lifecycle.Read) inputType: InputType; /** * Option id list. */ - @visibility("read") + @visibility(Lifecycle.Read) optionIds: string[]; /** * The rule of the question. */ - @visibility("read") + @visibility(Lifecycle.Read) rules: Rule[]; /** * The answer value to show the sub questions. */ - @visibility("read") + @visibility(Lifecycle.Read) showSubQuestionsValue?: string; } @@ -1726,7 +1726,7 @@ model EvidenceProperties { /** * Azure lifecycle management */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -1753,7 +1753,7 @@ model EvidenceFileDownloadResponse { /** * The uri of evidence file */ - @visibility("read") + @visibility(Lifecycle.Read) evidenceFile?: EvidenceFileDownloadResponseEvidenceFile; } @@ -1764,7 +1764,7 @@ model EvidenceFileDownloadResponseEvidenceFile { /** * The url of evidence file */ - @visibility("read") + @visibility(Lifecycle.Read) url?: string; } @@ -1775,13 +1775,13 @@ model ReportFixResult { /** * Indicates whether the fix action is Succeeded or Failed. */ - @visibility("read") + @visibility(Lifecycle.Read) result?: Result; /** * If the report fix action failed, to indicate the detailed failed reason. */ - @visibility("read") + @visibility(Lifecycle.Read) reason?: string; } @@ -1792,13 +1792,13 @@ model ReportVerificationResult { /** * Indicates whether the report verification action is Succeeded or Failed. */ - @visibility("read") + @visibility(Lifecycle.Read) result?: Result; /** * If the report verification action failed, to indicate the detailed failed reason. */ - @visibility("read") + @visibility(Lifecycle.Read) reason?: string; } diff --git a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/EvidenceResource.tsp b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/EvidenceResource.tsp index ffeae25ebb95..037ffbe8db3d 100644 --- a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/EvidenceResource.tsp +++ b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/EvidenceResource.tsp @@ -28,7 +28,7 @@ model EvidenceResource extends Azure.ResourceManager.Foundations.ProxyResource { */ @key("evidenceName") @segment("evidences") - @visibility("read") + @visibility(Lifecycle.Read) @pattern("^[a-zA-Z0-9-_.]+$") @path name: string; diff --git a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ReportResource.tsp b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ReportResource.tsp index 2135d8d86b3a..32564df7bed2 100644 --- a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ReportResource.tsp +++ b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ReportResource.tsp @@ -29,7 +29,7 @@ model ReportResource extends Azure.ResourceManager.Foundations.ProxyResource { @pattern("^[-a-zA-Z0-9_]{1,50}$") @key("reportName") @segment("reports") - @visibility("read") + @visibility(Lifecycle.Read) @path name: string; diff --git a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ScopingConfigurationResource.tsp b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ScopingConfigurationResource.tsp index 2442c2d51262..1adefc04fef4 100644 --- a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ScopingConfigurationResource.tsp +++ b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ScopingConfigurationResource.tsp @@ -32,7 +32,7 @@ model ScopingConfigurationResource extends Azure.ResourceManager.Foundations.ProxyResource { @key("scopingConfigurationName") @segment("scopingConfigurations") - @visibility("read") + @visibility(Lifecycle.Read) @doc("The scoping configuration of the specific report.") @pattern("^[a-zA-Z0-9_]*$") @path diff --git a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/SnapshotResource.tsp b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/SnapshotResource.tsp index 4208639624f8..98ac764a0367 100644 --- a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/SnapshotResource.tsp +++ b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/SnapshotResource.tsp @@ -27,7 +27,7 @@ model SnapshotResource extends Azure.ResourceManager.Foundations.ProxyResource { @path @key("snapshotName") @segment("snapshots") - @visibility("read") + @visibility(Lifecycle.Read) @pattern("^[a-zA-Z0-9-_]{1,64}$") name: string; diff --git a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/WebhookResource.tsp b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/WebhookResource.tsp index 48c17b466b70..9304730392e8 100644 --- a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/WebhookResource.tsp +++ b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/WebhookResource.tsp @@ -33,7 +33,7 @@ model WebhookResource extends Azure.ResourceManager.Foundations.ProxyResource { @pattern("^[-a-zA-Z0-9_]{1,50}$") @key("webhookName") @segment("webhooks") - @visibility("read") + @visibility(Lifecycle.Read) @path name: string; diff --git a/specification/appconfiguration/AppConfiguration/models.tsp b/specification/appconfiguration/AppConfiguration/models.tsp index e464f19c78bf..a561e8e28ec9 100644 --- a/specification/appconfiguration/AppConfiguration/models.tsp +++ b/specification/appconfiguration/AppConfiguration/models.tsp @@ -128,7 +128,7 @@ model KeyListResult { model Key { @doc("The name of the key.") @key - @visibility("read") + @visibility(Lifecycle.Read) name: string; } @@ -170,7 +170,7 @@ model KeyValueListResult { @resource("kv") model KeyValue { @key - @visibility("read") + @visibility(Lifecycle.Read) @doc("The key of the key-value.") key: string; @@ -216,11 +216,11 @@ model SnapshotListResult { model Snapshot { @key @doc("The name of the snapshot.") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("The current status of the snapshot.") - @visibility("read") + @visibility(Lifecycle.Read) status?: SnapshotStatus; @doc("A list of filters used to filter the key-values included in the snapshot.") @@ -239,12 +239,12 @@ model Snapshot { #suppress "@azure-tools/typespec-azure-core/no-offsetdatetime" "Pre-existing API contract." @doc("The time that the snapshot was created.") - @visibility("read") + @visibility(Lifecycle.Read) created?: offsetDateTime; #suppress "@azure-tools/typespec-azure-core/no-offsetdatetime" "Pre-existing API contract." @doc("The time that the snapshot will expire.") - @visibility("read") + @visibility(Lifecycle.Read) expires?: offsetDateTime; @doc(""" @@ -259,11 +259,11 @@ model Snapshot { retentionPeriod?: int64; @doc("The size in bytes of the snapshot.") - @visibility("read") + @visibility(Lifecycle.Read) size?: int64; @doc("The amount of key-values in the snapshot.") - @visibility("read") + @visibility(Lifecycle.Read) @encodedName("application/json", "items_count") itemsCount?: int64; @@ -271,7 +271,7 @@ model Snapshot { tags?: Record; @doc("A value representing the current state of the snapshot.") - @visibility("read") + @visibility(Lifecycle.Read) etag?: string; } diff --git a/specification/awsconnector/shared/main.tsp b/specification/awsconnector/shared/main.tsp index e9a895637c67..584ee9c46b61 100644 --- a/specification/awsconnector/shared/main.tsp +++ b/specification/awsconnector/shared/main.tsp @@ -26,7 +26,7 @@ alias AwsCommonProperties = { @doc("AWS Tags") awsTags?: Record; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; }; diff --git a/specification/azuredependencymap/DependencyMap.Management/main.tsp b/specification/azuredependencymap/DependencyMap.Management/main.tsp index 951a71b49c8a..1569c60b50b3 100644 --- a/specification/azuredependencymap/DependencyMap.Management/main.tsp +++ b/specification/azuredependencymap/DependencyMap.Management/main.tsp @@ -36,7 +36,7 @@ model MapsResource is TrackedResource { @key("mapName") @segment("maps") @doc("Maps resource name") - @visibility("read") + @visibility(Lifecycle.Read) @path name: string; } @@ -44,7 +44,7 @@ model MapsResource is TrackedResource { @doc("The properties of Maps resource") model MapsResourceProperties { @doc("Provisioning state of Maps resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -199,7 +199,7 @@ model DiscoverySourceResource @key("sourceName") @segment("discoverySources") @doc("discovery source resource") - @visibility("read") + @visibility(Lifecycle.Read) @path name: string; } @@ -208,15 +208,15 @@ model DiscoverySourceResource @discriminator("sourceType") model DiscoverySourceResourceProperties { @doc("Provisioning state of Discovery Source resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @doc("Source type of Discovery Source resource.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) sourceType: SourceType; @doc("Source ArmId of Discovery Source resource") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) sourceId: string; } diff --git a/specification/azurefleet/AzureFleet.Management/baseVirtualMachineProfile.tsp b/specification/azurefleet/AzureFleet.Management/baseVirtualMachineProfile.tsp index 4e6ae8137a81..c768b80eeb28 100644 --- a/specification/azurefleet/AzureFleet.Management/baseVirtualMachineProfile.tsp +++ b/specification/azurefleet/AzureFleet.Management/baseVirtualMachineProfile.tsp @@ -108,7 +108,7 @@ model BaseVirtualMachineProfile { * will be added to VMSS Flex VM tags when creating/updating the VMSS VM Profile * with minimum api-version 2023-09-01. Examples: "2024-07-01T00:00:01.1234567+00:00" */ - @visibility("read") + @visibility(Lifecycle.Read) timeCreated?: utcDateTime; } @@ -151,7 +151,7 @@ model VirtualMachineScaleSetOSProfile { repair disks on Azure Linux VMs using the VMAccess Extension](https://learn.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection) """) - @visibility("create", "update") + @visibility(Lifecycle.Create, Lifecycle.Update) @secret adminPassword?: string; @@ -162,7 +162,7 @@ model VirtualMachineScaleSetOSProfile { * your VM, see [Using cloud-init to customize a Linux VM during * creation](https://learn.microsoft.com/azure/virtual-machines/linux/using-cloud-init) */ - @visibility("create", "update") + @visibility(Lifecycle.Create, Lifecycle.Update) @secret customData?: string; @@ -287,7 +287,7 @@ model AdditionalUnattendContent { * the specified path and component. The XML must be less than 4KB and must * include the root element for the setting or feature that is being inserted. */ - @visibility("create", "update") + @visibility(Lifecycle.Create, Lifecycle.Update) @secret content?: string; } @@ -650,7 +650,7 @@ model ImageReference is SubResource { * image used to create the virtual machine. This readonly field differs from 'version', * only if the value specified in 'version' field is 'latest'. */ - @visibility("read") + @visibility(Lifecycle.Read) exactVersion?: string; /** @@ -1383,7 +1383,7 @@ model VirtualMachineScaleSetExtension is SubResourceReadOnly { /** * Resource type */ - @visibility("read") + @visibility(Lifecycle.Read) type?: string; /** @@ -1443,14 +1443,14 @@ model VirtualMachineScaleSetExtensionProperties { */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Converted legacy object to typespec https://github.com/Azure/azure-rest-api-specs/blob/d715112415eb08572ee96cc4bd77217aa44dedf1/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-03-01/virtualMachineScaleSet.json#L5002C1-L5009C11" #suppress "@azure-tools/typespec-azure-core/no-openapi" "Legacy" - @visibility("create", "update") + @visibility(Lifecycle.Create, Lifecycle.Update) @OpenAPI.extension("x-ms-secret", true) protectedSettings?: Record; /** * The provisioning state, which only appears in the response. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: string; /** @@ -1495,7 +1495,7 @@ model SubResourceReadOnly { /** * Resource Id */ - @visibility("read") + @visibility(Lifecycle.Read) id?: armResourceIdentifier; } diff --git a/specification/azurefleet/AzureFleet.Management/fleet.tsp b/specification/azurefleet/AzureFleet.Management/fleet.tsp index 6a6a21c975c4..45bb4215dc39 100644 --- a/specification/azurefleet/AzureFleet.Management/fleet.tsp +++ b/specification/azurefleet/AzureFleet.Management/fleet.tsp @@ -71,7 +71,7 @@ union ProvisioningState { @doc("Details of the Compute Fleet.") model FleetProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; @@ -97,11 +97,11 @@ model FleetProperties { computeProfile: ComputeProfile; @doc("Specifies the time at which the Compute Fleet is created.") - @visibility("read") + @visibility(Lifecycle.Read) timeCreated?: utcDateTime; @doc("Specifies the ID which uniquely identifies a Compute Fleet.") - @visibility("read") + @visibility(Lifecycle.Read) uniqueId?: string; } diff --git a/specification/azurefleet/AzureFleet.Management/virtualMachineScaleSet.tsp b/specification/azurefleet/AzureFleet.Management/virtualMachineScaleSet.tsp index 788134b8c0fc..b9b2a0b31cf3 100644 --- a/specification/azurefleet/AzureFleet.Management/virtualMachineScaleSet.tsp +++ b/specification/azurefleet/AzureFleet.Management/virtualMachineScaleSet.tsp @@ -18,7 +18,7 @@ model VirtualMachineScaleSet { @doc("The name of the virtualMachineScaleSet") @key("virtualMachineScaleSetName") @segment("virtualMachineScaleSets") - @visibility("read") + @visibility(Lifecycle.Read) @path name: string; @@ -26,26 +26,26 @@ model VirtualMachineScaleSet { The compute RP resource id of the virtualMachineScaleSet "subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}" """) - @visibility("read") + @visibility(Lifecycle.Read) id: armResourceIdentifier; @doc("Type of the virtualMachineScaleSet") - @visibility("read") + @visibility(Lifecycle.Read) type?: string; @removed(Versions.v2024_05_01_preview) @doc("This represents the Provisioning State of the VMSS in response to the last operation that was performed on it by Azure Fleet resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState: ProvisioningState; @added(Versions.v2024_05_01_preview) @doc("This represents the operationStatus of the VMSS in response to the last operation that was performed on it by Azure Fleet resource.") - @visibility("read") + @visibility(Lifecycle.Read) operationStatus: ProvisioningState; @added(Versions.v2024_05_01_preview) @doc("Error Information when `operationStatus` is `Failed`") - @visibility("read") + @visibility(Lifecycle.Read) error?: ApiError; } diff --git a/specification/azurelargeinstance/AzureLargeInstance.Management/models.tsp b/specification/azurelargeinstance/AzureLargeInstance.Management/models.tsp index 0df5344c89c0..84b27224da75 100644 --- a/specification/azurelargeinstance/AzureLargeInstance.Management/models.tsp +++ b/specification/azurelargeinstance/AzureLargeInstance.Management/models.tsp @@ -295,7 +295,7 @@ model AzureLargeInstanceProperties { @removed(Versions.v2024_08_01_preview) @renamedFrom(Versions.v2024_08_01_preview, "azureLargeInstanceId") @doc("Specifies the Azure Large Instance unique ID.") - @visibility("read") + @visibility(Lifecycle.Read) azureLargeInstanceIdOld?: string; @added(Versions.v2024_08_01_preview) @@ -305,7 +305,7 @@ model AzureLargeInstanceProperties { @removed(Versions.v2024_08_01_preview) @renamedFrom(Versions.v2024_08_01_preview, "powerState") @doc("Resource power state") - @visibility("read") + @visibility(Lifecycle.Read) powerStateOld?: AzureLargeInstancePowerStateEnum; @added(Versions.v2024_08_01_preview) @@ -315,7 +315,7 @@ model AzureLargeInstanceProperties { @removed(Versions.v2024_08_01_preview) @renamedFrom(Versions.v2024_08_01_preview, "proximityPlacementGroup") @doc("Resource proximity placement group") - @visibility("read") + @visibility(Lifecycle.Read) proximityPlacementGroupOld?: string; @added(Versions.v2024_08_01_preview) @@ -325,7 +325,7 @@ model AzureLargeInstanceProperties { @removed(Versions.v2024_08_01_preview) @renamedFrom(Versions.v2024_08_01_preview, "hwRevision") @doc("Hardware revision of an Azure Large Instance") - @visibility("read") + @visibility(Lifecycle.Read) hwRevisionOld?: string; @added(Versions.v2024_08_01_preview) @@ -340,7 +340,7 @@ model AzureLargeInstanceProperties { partnerNodeId?: string; @doc("State of provisioning of the AzureLargeInstance") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: AzureLargeInstanceProvisioningStatesEnum; } @@ -349,7 +349,7 @@ model HardwareProfile { @removed(Versions.v2024_08_01_preview) @renamedFrom(Versions.v2024_08_01_preview, "hardwareType") @doc("Name of the hardware type (vendor and/or their product name)") - @visibility("read") + @visibility(Lifecycle.Read) hardwareTypeOld?: AzureLargeInstanceHardwareTypeNamesEnum; @added(Versions.v2024_08_01_preview) @@ -359,7 +359,7 @@ model HardwareProfile { @removed(Versions.v2024_08_01_preview) @renamedFrom(Versions.v2024_08_01_preview, "azureLargeInstanceSize") @doc("Specifies the Azure Large Instance SKU.") - @visibility("read") + @visibility(Lifecycle.Read) azureLargeInstanceSizeOld?: AzureLargeInstanceSizeNamesEnum; @added(Versions.v2024_08_01_preview) @@ -372,7 +372,7 @@ model StorageProfile { @removed(Versions.v2024_08_01_preview) @renamedFrom(Versions.v2024_08_01_preview, "nfsIpAddress") @doc("IP Address to connect to storage.") - @visibility("read") + @visibility(Lifecycle.Read) nfsIpAddressOld?: string; @added(Versions.v2024_08_01_preview) @@ -401,7 +401,7 @@ model Disk { identify data disks within the VM and therefore must be unique for each data disk attached to a VM. """) - @visibility("read") + @visibility(Lifecycle.Read) lun?: int32; } @@ -413,7 +413,7 @@ model OsProfile { @removed(Versions.v2024_08_01_preview) @renamedFrom(Versions.v2024_08_01_preview, "osType") @doc("This property allows you to specify the type of the OS.") - @visibility("read") + @visibility(Lifecycle.Read) osTypeOld?: string; @added(Versions.v2024_08_01_preview) @@ -423,7 +423,7 @@ model OsProfile { @removed(Versions.v2024_08_01_preview) @renamedFrom(Versions.v2024_08_01_preview, "version") @doc("Specifies version of operating system.") - @visibility("read") + @visibility(Lifecycle.Read) versionOld?: string; @added(Versions.v2024_08_01_preview) @@ -443,7 +443,7 @@ model NetworkProfile { @removed(Versions.v2024_08_01_preview) @doc("Specifies the circuit id for connecting to express route.") @renamedFrom(Versions.v2024_08_01_preview, "circuitId") - @visibility("read") + @visibility(Lifecycle.Read) circuitIdOld?: string; @added(Versions.v2024_08_01_preview) diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/AttestationStatus.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/AttestationStatus.tsp index 611943235f68..81c8a2243e47 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/AttestationStatus.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/AttestationStatus.tsp @@ -21,7 +21,7 @@ model AttestationStatus is ProxyResource { @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") @key("attestationStatus") @segment("attestationStatus") - @visibility("read") + @visibility(Lifecycle.Read) @path name: string; } diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GalleryImages.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GalleryImages.tsp index 993036234bbc..4d3e664bf84e 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GalleryImages.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GalleryImages.tsp @@ -21,7 +21,7 @@ model GalleryImage is TrackedResource { @path @key("galleryImageName") @segment("galleryImages") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("The extendedLocation of the resource.") diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GuestAgent.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GuestAgent.tsp index 7d09e4b71034..5c5f5de75936 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GuestAgent.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GuestAgent.tsp @@ -20,7 +20,7 @@ model GuestAgent is ProxyResource { @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") @key("guestAgent") @segment("guestAgents") - @visibility("read") + @visibility(Lifecycle.Read) @path name: string; } diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/HybridIdentityMetadata.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/HybridIdentityMetadata.tsp index ed7981b49563..132a2c76c355 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/HybridIdentityMetadata.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/HybridIdentityMetadata.tsp @@ -25,7 +25,7 @@ model HybridIdentityMetadata @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") @key("hybridIdentityMetadatum") @segment("hybridIdentityMetadata") - @visibility("read") + @visibility(Lifecycle.Read) @path name: string; } diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/LogicalNetworks.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/LogicalNetworks.tsp index 41cd2770fb1a..0801390b3a5e 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/LogicalNetworks.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/LogicalNetworks.tsp @@ -21,7 +21,7 @@ model LogicalNetwork is TrackedResource { @path @key("logicalNetworkName") @segment("logicalNetworks") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("The extendedLocation of the resource.") diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/MarketplaceGalleryImages.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/MarketplaceGalleryImages.tsp index a925b023a0c0..cb77243bd947 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/MarketplaceGalleryImages.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/MarketplaceGalleryImages.tsp @@ -22,7 +22,7 @@ model MarketplaceGalleryImage @path @key("marketplaceGalleryImageName") @segment("marketplaceGalleryImages") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("The extendedLocation of the resource.") diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkInterfaces.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkInterfaces.tsp index 53049a1902cf..500ce1230eac 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkInterfaces.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkInterfaces.tsp @@ -23,7 +23,7 @@ model NetworkInterface is TrackedResource { @path @key("networkInterfaceName") @segment("networkInterfaces") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("The extendedLocation of the resource.") diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkSecurityGroups.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkSecurityGroups.tsp index 8c8b2e70eac7..6ac2ec2d9a38 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkSecurityGroups.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkSecurityGroups.tsp @@ -17,7 +17,7 @@ model NetworkSecurityGroup is TrackedResource { @path @key("networkSecurityGroupName") @segment("networkSecurityGroups") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("The extendedLocation of the resource.") diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/SecurityRules.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/SecurityRules.tsp index 140e5b58dc69..cf0d38d715ee 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/SecurityRules.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/SecurityRules.tsp @@ -18,7 +18,7 @@ model SecurityRule is ProxyResource { @path @key("securityRuleName") @segment("securityRules") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("The extendedLocation of the resource.") diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/StorageContainers.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/StorageContainers.tsp index f2c596107f20..af1c4473ae7d 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/StorageContainers.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/StorageContainers.tsp @@ -20,7 +20,7 @@ model StorageContainer is TrackedResource { @path @key("storageContainerName") @segment("storageContainers") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("The extendedLocation of the resource.") diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualHardDisks.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualHardDisks.tsp index 466b56043ca1..976caeff7566 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualHardDisks.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualHardDisks.tsp @@ -22,7 +22,7 @@ model VirtualHardDisk is TrackedResource { @path @key("virtualHardDiskName") @segment("virtualHardDisks") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("The extendedLocation of the resource.") diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualMachineInstance.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualMachineInstance.tsp index d2afc88903bd..8c8872fcc86f 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualMachineInstance.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualMachineInstance.tsp @@ -21,7 +21,7 @@ model VirtualMachineInstance @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") @key("virtualMachineInstance") @segment("virtualMachineInstances") - @visibility("read") + @visibility(Lifecycle.Read) @path name: string; diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/models.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/models.tsp index 52d43dbdda3a..f8b651943ae2 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/models.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/models.tsp @@ -502,7 +502,7 @@ model StorageContainerArmReference { @doc("The ARM ID for a Gallery Image.") model ImageArmReference { @doc("The ARM ID for an image resource used by the virtual machine instance.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) id?: armResourceIdentifier<[ { type: "Microsoft.AzureStackHCI/galleryImages"; @@ -557,11 +557,11 @@ model GalleryImageProperties { version?: GalleryImageVersion; @doc("Provisioning state of the gallery image.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; @doc("The observed state of gallery images") - @visibility("read") + @visibility(Lifecycle.Read) status?: GalleryImageStatus; @added(Versions.v2024_05_01_preview) @@ -623,7 +623,7 @@ model GalleryImageVersionStorageProfile { model GalleryDiskImage { #suppress "@azure-tools/typespec-azure-core/casing-style" "MB is a short form." @doc("This property indicates the size of the VHD to be created.") - @visibility("read") + @visibility(Lifecycle.Read) sizeInMB?: int64; } @@ -694,14 +694,14 @@ model LogicalNetworkProperties { subnets?: Subnet[]; @doc("Provisioning state of the logical network.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; @doc("name of the network switch to be used for VMs") vmSwitchName?: string; @doc("The observed state of logical networks") - @visibility("read") + @visibility(Lifecycle.Read) status?: LogicalNetworkStatus; } @@ -755,15 +755,15 @@ model SubnetProperties { @doc("Route table resource.") model RouteTable { @doc("A unique read-only string that changes whenever the resource is updated.") - @visibility("read") + @visibility(Lifecycle.Read) etag?: string; @doc("Resource name.") - @visibility("read") + @visibility(Lifecycle.Read) name?: string; @doc("Resource type.") - @visibility("read") + @visibility(Lifecycle.Read) type?: string; #suppress "deprecated" "LEGACY flattening" @@ -825,31 +825,31 @@ model IPPool { @doc("IP Pool info") model IPPoolInfo { @doc("Number of IP addresses allocated from the IP Pool") - @visibility("read") + @visibility(Lifecycle.Read) used?: string; @doc("Number of IP addresses available in the IP Pool") - @visibility("read") + @visibility(Lifecycle.Read) available?: string; } @doc("Network Security Group resource.") model NetworkSecurityGroupProperties { @doc("A collection of references to network interfaces that are currently using this NSG.") - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", []) networkInterfaces?: NetworkInterfaceArmReference[]; @doc("A collection of references to logical networks that are currently using this NSG") - @visibility("read") + @visibility(Lifecycle.Read) subnets?: LogicalNetworkArmReference[]; @doc("The provisioning state of the network security group resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; @doc("The observed state of Network Security Group") - @visibility("read") + @visibility(Lifecycle.Read) @added(Versions.v2025_02_01_preview) status?: NetworkSecurityGroupStatus; } @@ -907,7 +907,7 @@ model SecurityRuleProperties { direction: SecurityRuleDirection; @doc("Provisioning state of the SR") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; } @@ -928,11 +928,11 @@ model NetworkInterfaceProperties { createFromLocal?: boolean = false; @doc("Provisioning state of the network interface.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; @doc("The observed state of network interfaces") - @visibility("read") + @visibility(Lifecycle.Read) status?: NetworkInterfaceStatus; @doc("NetworkSecurityGroup - Network Security Group attached to the network interface.") @@ -943,7 +943,7 @@ model NetworkInterfaceProperties { @doc("InterfaceIPConfiguration IPConfiguration in a network interface.") model IPConfiguration { @doc("Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$") name?: string; @@ -956,12 +956,12 @@ model IPConfiguration { @doc("InterfaceIPConfigurationPropertiesFormat properties of IP configuration.") model IPConfigurationProperties { @doc("Gateway for network interface") - @visibility("read") + @visibility(Lifecycle.Read) gateway?: string; #suppress "@azure-tools/typespec-azure-core/casing-style" "IP is a short form. The casing is correct." @doc("prefixLength for network interface") - @visibility("read") + @visibility(Lifecycle.Read) prefixLength?: string; #suppress "@azure-tools/typespec-azure-core/casing-style" "IP is a short form. The casing is correct." @@ -1055,11 +1055,11 @@ model MarketplaceGalleryImageProperties { version?: GalleryImageVersion; @doc("Provisioning state of the marketplace gallery image.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; @doc("The observed state of marketplace gallery images") - @visibility("read") + @visibility(Lifecycle.Read) status?: MarketplaceGalleryImageStatus; } @@ -1138,11 +1138,11 @@ model StorageContainerProperties { path: string; @doc("Provisioning state of the storage container.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; @doc("The observed state of storage containers") - @visibility("read") + @visibility(Lifecycle.Read) status?: StorageContainerStatus; } @@ -1217,7 +1217,7 @@ model VirtualHardDiskProperties { createFromLocal?: boolean = false; @doc("Provisioning state of the virtual hard disk.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; @doc("Storage ContainerID of the storage container to be used for VHD") @@ -1228,7 +1228,7 @@ model VirtualHardDiskProperties { ]>; @doc("The observed state of virtual hard disks") - @visibility("read") + @visibility(Lifecycle.Read) status?: VirtualHardDiskStatus; } @@ -1370,22 +1370,22 @@ model VirtualMachineInstanceProperties { createFromLocal?: boolean = false; @doc("Provisioning state of the virtual machine instance.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; @doc("The virtual machine instance view.") - @visibility("read") + @visibility(Lifecycle.Read) instanceView?: VirtualMachineInstanceView; @doc("The observed state of virtual machine instances") - @visibility("read") + @visibility(Lifecycle.Read) status?: VirtualMachineInstanceStatus; @doc("Guest agent install status.") guestAgentInstallStatus?: GuestAgentInstallStatus; @doc("Unique identifier for the vm resource.") - @visibility("read") + @visibility(Lifecycle.Read) vmId?: string; @doc("Unique identifier defined by ARC to identify the guest of the VM.") @@ -1453,7 +1453,7 @@ model VirtualMachineInstancePropertiesNetworkProfile { @doc("OsProfile - describes the configuration of the operating system and sets login data") model VirtualMachineInstancePropertiesOsProfile { @doc("AdminPassword - admin password") - @visibility("create") + @visibility(Lifecycle.Create) @secret adminPassword?: string; @@ -1548,7 +1548,7 @@ model VirtualMachineInstancePropertiesStorageProfile { dataDisks?: VirtualHardDiskArmReference[]; @doc("Which Image to use for the virtual machine instance") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) imageReference?: ImageArmReference; @doc("VHD to attach as OS disk") @@ -1667,35 +1667,35 @@ model VirtualMachineInstanceStatusProvisioningStatus { @doc("Defines the status of a guest agent installation.") model GuestAgentInstallStatus { @doc("Specifies the VM's unique SMBIOS ID.") - @visibility("read") + @visibility(Lifecycle.Read) vmUuid?: string; @doc("The installation status of the hybrid machine agent installation.") - @visibility("read") + @visibility(Lifecycle.Read) status?: StatusTypes; @doc("The time of the last status change.") - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastStatusChange?: utcDateTime; @doc("The hybrid machine agent full version.") - @visibility("read") + @visibility(Lifecycle.Read) agentVersion?: string; @doc("Details about the error state.") - @visibility("read") + @visibility(Lifecycle.Read) errorDetails?: Azure.ResourceManager.Foundations.ErrorDetail[]; } @doc("Identity for the resource.") model Identity { @doc("The principal ID of resource identity. The value must be an UUID.") - @visibility("read") + @visibility(Lifecycle.Read) principalId?: string; @doc("The tenant ID of resource. The value must be an UUID.") - @visibility("read") + @visibility(Lifecycle.Read) tenantId?: string; @doc("The identity type.") @@ -1801,56 +1801,56 @@ model HybridIdentityMetadataProperties { publicKey?: string; @doc("Identity for the resource.") - @visibility("read") + @visibility(Lifecycle.Read) identity?: Identity; @doc("Provisioning state of the virtual machine instance.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; } @doc("Defines the attestation status properties") model AttestationStatusProperties { @doc("The status of whether secure boot is enabled.") - @visibility("read") + @visibility(Lifecycle.Read) attestSecureBootEnabled?: AttestSecureBootPropertyEnum = AttestSecureBootPropertyEnum.Unknown; @doc("The status of whether attestation certificate is validated.") - @visibility("read") + @visibility(Lifecycle.Read) attestationCertValidated?: AttestCertPropertyEnum = AttestCertPropertyEnum.Unknown; @doc("The status of whether the list of boot integrity properties is validated.") - @visibility("read") + @visibility(Lifecycle.Read) bootIntegrityValidated?: AttestBootIntegrityPropertyEnum = AttestBootIntegrityPropertyEnum.Unknown; @doc("kernel version string for Linux VM.") - @visibility("read") + @visibility(Lifecycle.Read) linuxKernelVersion?: string; @doc("The health status of attestation validation and parsing") - @visibility("read") + @visibility(Lifecycle.Read) healthStatus?: AttestHealthStatusEnum = AttestHealthStatusEnum.Unknown; @doc("The time stamp of the last time attestation token is validated by relying party service.") - @visibility("read") + @visibility(Lifecycle.Read) timestamp?: string; @doc("The error message of attestation validation and parsing") - @visibility("read") + @visibility(Lifecycle.Read) errorMessage?: string; @doc("Provisioning state of the virtual machine instance.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; @doc("The hardware platform information from attestation token. This only applies to Confidential VM.") - @visibility("read") + @visibility(Lifecycle.Read) @added(Versions.v2024_08_01_preview) attestHardwarePlatform?: AttestHWPlatformEnum; @added(Versions.v2024_08_01_preview) @doc("The managed disk security encryption type from attestation token. This only applies to Confidential VM.") - @visibility("read") + @visibility(Lifecycle.Read) attestDiskSecurityEncryptionType?: AttestDiskSecurityEncryptionTypeEnum; } @@ -1863,11 +1863,11 @@ model GuestAgentProperties { provisioningAction?: ProvisioningAction; @doc("The guest agent status.") - @visibility("read") + @visibility(Lifecycle.Read) status?: string; @doc("Provisioning state of the virtual machine instance.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; } @@ -1877,7 +1877,7 @@ model GuestCredential { username?: string; @doc("The password to connect with the guest.") - @visibility("create", "update") + @visibility(Lifecycle.Create, Lifecycle.Update) @secret password?: string; } diff --git a/specification/batch/Azure.Batch/models.tsp b/specification/batch/Azure.Batch/models.tsp index e70ef5d6d6d0..abe1dd9071a9 100644 --- a/specification/batch/Azure.Batch/models.tsp +++ b/specification/batch/Azure.Batch/models.tsp @@ -861,7 +861,7 @@ model ImageReference { virtualMachineImageId?: string; @doc("The specific version of the platform image or marketplace image used to create the node. This read-only field differs from 'version' only if the value specified for 'version' when the pool was created was 'latest'.") - @visibility("read") + @visibility(Lifecycle.Read) exactVersion?: string; @doc("The shared gallery image unique identifier. This property is mutually exclusive with other properties and can be fetched from shared gallery image GET call.") @@ -1146,43 +1146,43 @@ model FileProperties { """) model BatchJobSchedule { @doc("A string that uniquely identifies the schedule within the Account.") - @visibility("read") + @visibility(Lifecycle.Read) id?: string; @doc("The display name for the schedule.") - @visibility("read") + @visibility(Lifecycle.Read) displayName?: string; @doc("The URL of the Job Schedule.") - @visibility("read") + @visibility(Lifecycle.Read) url?: string; @doc("The ETag of the Job Schedule. This is an opaque string. You can use it to detect whether the Job Schedule has changed between requests. In particular, you can be pass the ETag with an Update Job Schedule request to specify that your changes should take effect only if nobody else has modified the schedule in the meantime.") - @visibility("read") + @visibility(Lifecycle.Read) eTag?: string; @doc("The last modified time of the Job Schedule. This is the last time at which the schedule level data, such as the Job specification or recurrence information, changed. It does not factor in job-level changes such as new Jobs being created or Jobs changing state.") - @visibility("read") + @visibility(Lifecycle.Read) lastModified?: utcDateTime; @doc("The creation time of the Job Schedule.") - @visibility("read") + @visibility(Lifecycle.Read) creationTime?: utcDateTime; @doc("The current state of the Job Schedule.") - @visibility("read") + @visibility(Lifecycle.Read) state?: BatchJobScheduleState; @doc("The time at which the Job Schedule entered the current state.") - @visibility("read") + @visibility(Lifecycle.Read) stateTransitionTime?: utcDateTime; @doc("The previous state of the Job Schedule. This property is not present if the Job Schedule is in its initial active state.") - @visibility("read") + @visibility(Lifecycle.Read) previousState?: BatchJobScheduleState; @doc("The time at which the Job Schedule entered its previous state. This property is not present if the Job Schedule is in its initial active state.") - @visibility("read") + @visibility(Lifecycle.Read) previousStateTransitionTime?: utcDateTime; @doc("The schedule according to which Jobs will be created. All times are fixed respective to UTC and are not impacted by daylight saving time.") @@ -1192,14 +1192,14 @@ model BatchJobSchedule { jobSpecification: BatchJobSpecification; @doc("Information about Jobs that have been and will be run under this schedule.") - @visibility("read") + @visibility(Lifecycle.Read) executionInfo?: BatchJobScheduleExecutionInfo; @doc("A list of name-value pairs associated with the schedule as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code.") metadata?: MetadataItem[]; @doc("The lifetime resource usage statistics for the Job Schedule. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.") - @visibility("read") + @visibility(Lifecycle.Read) stats?: BatchJobScheduleStatistics; } @@ -2358,47 +2358,47 @@ model BatchJobScheduleListResult { @doc("An Azure Batch Job.") model BatchJob { @doc("A string that uniquely identifies the Job within the Account. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within an Account that differ only by case).") - @visibility("read") + @visibility(Lifecycle.Read) id?: string; @doc("The display name for the Job.") - @visibility("read") + @visibility(Lifecycle.Read) displayName?: string; @doc("Whether Tasks in the Job can define dependencies on each other. The default is false.") - @visibility("read") + @visibility(Lifecycle.Read) usesTaskDependencies?: boolean; @doc("The URL of the Job.") - @visibility("read") + @visibility(Lifecycle.Read) url?: string; @doc("The ETag of the Job. This is an opaque string. You can use it to detect whether the Job has changed between requests. In particular, you can be pass the ETag when updating a Job to specify that your changes should take effect only if nobody else has modified the Job in the meantime.") - @visibility("read") + @visibility(Lifecycle.Read) eTag?: string; @doc("The last modified time of the Job. This is the last time at which the Job level data, such as the Job state or priority, changed. It does not factor in task-level changes such as adding new Tasks or Tasks changing state.") - @visibility("read") + @visibility(Lifecycle.Read) lastModified?: utcDateTime; @doc("The creation time of the Job.") - @visibility("read") + @visibility(Lifecycle.Read) creationTime?: utcDateTime; @doc("The current state of the Job.") - @visibility("read") + @visibility(Lifecycle.Read) state?: BatchJobState; @doc("The time at which the Job entered its current state.") - @visibility("read") + @visibility(Lifecycle.Read) stateTransitionTime?: utcDateTime; @doc("The previous state of the Job. This property is not set if the Job is in its initial Active state.") - @visibility("read") + @visibility(Lifecycle.Read) previousState?: BatchJobState; @doc("The time at which the Job entered its previous state. This property is not set if the Job is in its initial Active state.") - @visibility("read") + @visibility(Lifecycle.Read) previousStateTransitionTime?: utcDateTime; @doc("The priority of the Job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0.") @@ -2414,19 +2414,19 @@ model BatchJob { constraints?: BatchJobConstraints; @doc("Details of a Job Manager Task to be launched when the Job is started.") - @visibility("read") + @visibility(Lifecycle.Read) jobManagerTask?: BatchJobManagerTask; @doc("The Job Preparation Task. The Job Preparation Task is a special Task run on each Compute Node before any other Task of the Job.") - @visibility("read") + @visibility(Lifecycle.Read) jobPreparationTask?: BatchJobPreparationTask; @doc("The Job Release Task. The Job Release Task is a special Task run at the end of the Job on each Compute Node that has run any other Task of the Job.") - @visibility("read") + @visibility(Lifecycle.Read) jobReleaseTask?: BatchJobReleaseTask; @doc("The list of common environment variable settings. These environment variables are set for all Tasks in the Job (including the Job Manager, Job Preparation and Job Release Tasks). Individual Tasks can override an environment setting specified here by specifying the same setting name with a different value.") - @visibility("read") + @visibility(Lifecycle.Read) commonEnvironmentSettings?: EnvironmentSetting[]; @doc("The Pool settings associated with the Job.") @@ -2436,22 +2436,22 @@ model BatchJob { onAllTasksComplete?: OnAllBatchTasksComplete; @doc("The action the Batch service should take when any Task in the Job fails. A Task is considered to have failed if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the Task, for example due to a resource file download error. The default is noaction.") - @visibility("read") + @visibility(Lifecycle.Read) onTaskFailure?: OnBatchTaskFailure; @doc("The network configuration for the Job.") - @visibility("read") + @visibility(Lifecycle.Read) networkConfiguration?: BatchJobNetworkConfiguration; @doc("A list of name-value pairs associated with the Job as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code.") metadata?: MetadataItem[]; @doc("The execution information for the Job.") - @visibility("read") + @visibility(Lifecycle.Read) executionInfo?: BatchJobExecutionInfo; @doc("Resource usage statistics for the entire lifetime of the Job. This property is populated only if the BatchJob was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.") - @visibility("read") + @visibility(Lifecycle.Read) stats?: BatchJobStatistics; } @@ -2774,145 +2774,145 @@ model BatchTaskSlotCounts { @doc("A Pool in the Azure Batch service.") model BatchPool { @doc("A string that uniquely identifies the Pool within the Account. The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within an Account that differ only by case).") - @visibility("read") + @visibility(Lifecycle.Read) id?: string; @doc("The display name for the Pool. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.") - @visibility("read") + @visibility(Lifecycle.Read) displayName?: string; @doc("The URL of the Pool.") - @visibility("read") + @visibility(Lifecycle.Read) url?: string; @doc("The ETag of the Pool. This is an opaque string. You can use it to detect whether the Pool has changed between requests. In particular, you can be pass the ETag when updating a Pool to specify that your changes should take effect only if nobody else has modified the Pool in the meantime.") - @visibility("read") + @visibility(Lifecycle.Read) eTag?: string; @doc("The last modified time of the Pool. This is the last time at which the Pool level data, such as the targetDedicatedNodes or enableAutoscale settings, changed. It does not factor in node-level changes such as a Compute Node changing state.") - @visibility("read") + @visibility(Lifecycle.Read) lastModified?: utcDateTime; @doc("The creation time of the Pool.") - @visibility("read") + @visibility(Lifecycle.Read) creationTime?: utcDateTime; @doc("The current state of the Pool.") - @visibility("read") + @visibility(Lifecycle.Read) state?: BatchPoolState; @doc("The time at which the Pool entered its current state.") - @visibility("read") + @visibility(Lifecycle.Read) stateTransitionTime?: utcDateTime; @doc("Whether the Pool is resizing.") - @visibility("read") + @visibility(Lifecycle.Read) allocationState?: AllocationState; @doc("The time at which the Pool entered its current allocation state.") - @visibility("read") + @visibility(Lifecycle.Read) allocationStateTransitionTime?: utcDateTime; @doc("The size of virtual machines in the Pool. All virtual machines in a Pool are the same size. For information about available VM sizes, see Sizes for Virtual Machines in Azure (https://learn.microsoft.com/azure/virtual-machines/sizes/overview). Batch supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series).") - @visibility("read") + @visibility(Lifecycle.Read) vmSize?: string; @doc("The virtual machine configuration for the Pool. This property must be specified.") - @visibility("read") + @visibility(Lifecycle.Read) virtualMachineConfiguration?: VirtualMachineConfiguration; @doc("The timeout for allocation of Compute Nodes to the Pool. This is the timeout for the most recent resize operation. (The initial sizing when the Pool is created counts as a resize.) The default value is 15 minutes.") - @visibility("read") + @visibility(Lifecycle.Read) resizeTimeout?: duration; @doc("A list of errors encountered while performing the last resize on the Pool. This property is set only if one or more errors occurred during the last Pool resize, and only when the Pool allocationState is Steady.") - @visibility("read") + @visibility(Lifecycle.Read) resizeErrors?: ResizeError[]; @doc("The user-specified tags associated with the pool. The user-defined tags to be associated with the Azure Batch Pool. When specified, these tags are propagated to the backing Azure resources associated with the pool. This property can only be specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'.") - @visibility("read") + @visibility(Lifecycle.Read) resourceTags?: Record; @doc("The number of dedicated Compute Nodes currently in the Pool.") - @visibility("read") + @visibility(Lifecycle.Read) currentDedicatedNodes?: int32; @doc("The number of Spot/Low-priority Compute Nodes currently in the Pool. Spot/Low-priority Compute Nodes which have been preempted are included in this count.") - @visibility("read") + @visibility(Lifecycle.Read) currentLowPriorityNodes?: int32; @doc("The desired number of dedicated Compute Nodes in the Pool.") - @visibility("read") + @visibility(Lifecycle.Read) targetDedicatedNodes?: int32; @doc("The desired number of Spot/Low-priority Compute Nodes in the Pool.") - @visibility("read") + @visibility(Lifecycle.Read) targetLowPriorityNodes?: int32; @doc("Whether the Pool size should automatically adjust over time. If false, at least one of targetDedicatedNodes and targetLowPriorityNodes must be specified. If true, the autoScaleFormula property is required and the Pool automatically resizes according to the formula. The default value is false.") - @visibility("read") + @visibility(Lifecycle.Read) enableAutoScale?: boolean; @doc("A formula for the desired number of Compute Nodes in the Pool. This property is set only if the Pool automatically scales, i.e. enableAutoScale is true.") - @visibility("read") + @visibility(Lifecycle.Read) autoScaleFormula?: string; @doc("The time interval at which to automatically adjust the Pool size according to the autoscale formula. This property is set only if the Pool automatically scales, i.e. enableAutoScale is true.") - @visibility("read") + @visibility(Lifecycle.Read) autoScaleEvaluationInterval?: duration; @doc("The results and errors from the last execution of the autoscale formula. This property is set only if the Pool automatically scales, i.e. enableAutoScale is true.") - @visibility("read") + @visibility(Lifecycle.Read) autoScaleRun?: AutoScaleRun; @doc("Whether the Pool permits direct communication between Compute Nodes. This imposes restrictions on which Compute Nodes can be assigned to the Pool. Specifying this value can reduce the chance of the requested number of Compute Nodes to be allocated in the Pool.") - @visibility("read") + @visibility(Lifecycle.Read) enableInterNodeCommunication?: boolean; @doc("The network configuration for the Pool.") - @visibility("read") + @visibility(Lifecycle.Read) networkConfiguration?: NetworkConfiguration; @doc("A Task specified to run on each Compute Node as it joins the Pool.") startTask?: BatchStartTask; @doc("The list of Packages to be installed on each Compute Node in the Pool. Changes to Package references affect all new Nodes joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. There is a maximum of 10 Package references on any given Pool.") - @visibility("read") + @visibility(Lifecycle.Read) applicationPackageReferences?: BatchApplicationPackageReference[]; @doc("The number of task slots that can be used to run concurrent tasks on a single compute node in the pool. The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256.") - @visibility("read") + @visibility(Lifecycle.Read) taskSlotsPerNode?: int32; @doc("How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread.") - @visibility("read") + @visibility(Lifecycle.Read) taskSchedulingPolicy?: BatchTaskSchedulingPolicy; @doc("The list of user Accounts to be created on each Compute Node in the Pool.") - @visibility("read") + @visibility(Lifecycle.Read) userAccounts?: UserAccount[]; @doc("A list of name-value pairs associated with the Pool as metadata.") - @visibility("read") + @visibility(Lifecycle.Read) metadata?: MetadataItem[]; @doc("Utilization and resource usage statistics for the entire lifetime of the Pool. This property is populated only if the BatchPool was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.") - @visibility("read") + @visibility(Lifecycle.Read) stats?: BatchPoolStatistics; @doc("A list of file systems to mount on each node in the pool. This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.") - @visibility("read") + @visibility(Lifecycle.Read) mountConfiguration?: MountConfiguration[]; @doc("The identity of the Batch pool, if configured. The list of user identities associated with the Batch pool. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.") - @visibility("read") + @visibility(Lifecycle.Read) identity?: BatchPoolIdentity; @doc("The desired node communication mode for the pool. If omitted, the default value is Default.") targetNodeCommunicationMode?: BatchNodeCommunicationMode; @doc("The current state of the pool communication mode.") - @visibility("read") + @visibility(Lifecycle.Read) currentNodeCommunicationMode?: BatchNodeCommunicationMode; @doc("The upgrade policy for the Pool. Describes an upgrade policy - automatic, manual, or rolling.") @@ -3102,11 +3102,11 @@ model UserAssignedIdentity { resourceId: string; @doc("The client id of the user assigned identity.") - @visibility("read") + @visibility(Lifecycle.Read) clientId?: string; @doc("The principal id of the user assigned identity.") - @visibility("read") + @visibility(Lifecycle.Read) principalId?: string; } @@ -3184,110 +3184,110 @@ model BatchNodeDeallocateContent { """) model BatchTask { @doc("A string that uniquely identifies the Task within the Job. The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters.") - @visibility("read") + @visibility(Lifecycle.Read) id?: string; @doc("A display name for the Task. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.") - @visibility("read") + @visibility(Lifecycle.Read) displayName?: string; @doc("The URL of the Task.") - @visibility("read") + @visibility(Lifecycle.Read) url?: string; @doc("The ETag of the Task. This is an opaque string. You can use it to detect whether the Task has changed between requests. In particular, you can be pass the ETag when updating a Task to specify that your changes should take effect only if nobody else has modified the Task in the meantime.") - @visibility("read") + @visibility(Lifecycle.Read) eTag?: string; @doc("The last modified time of the Task.") - @visibility("read") + @visibility(Lifecycle.Read) lastModified?: utcDateTime; @doc("The creation time of the Task.") - @visibility("read") + @visibility(Lifecycle.Read) creationTime?: utcDateTime; @doc("How the Batch service should respond when the Task completes.") - @visibility("read") + @visibility(Lifecycle.Read) exitConditions?: ExitConditions; @doc("The current state of the Task.") - @visibility("read") + @visibility(Lifecycle.Read) state?: BatchTaskState; @doc("The time at which the Task entered its current state.") - @visibility("read") + @visibility(Lifecycle.Read) stateTransitionTime?: utcDateTime; @doc("The previous state of the Task. This property is not set if the Task is in its initial Active state.") - @visibility("read") + @visibility(Lifecycle.Read) previousState?: BatchTaskState; @doc("The time at which the Task entered its previous state. This property is not set if the Task is in its initial Active state.") - @visibility("read") + @visibility(Lifecycle.Read) previousStateTransitionTime?: utcDateTime; @doc("The command line of the Task. For multi-instance Tasks, the command line is executed as the primary Task, after the primary Task and all subtasks have finished executing the coordination command line. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://learn.microsoft.com/azure/batch/batch-compute-node-environment-variables).") - @visibility("read") + @visibility(Lifecycle.Read) commandLine?: string; @doc("The settings for the container under which the Task runs. If the Pool that will run this Task has containerConfiguration set, this must be set as well. If the Pool that will run this Task doesn't have containerConfiguration set, this must not be set. When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all Task environment variables are mapped into the container, and the Task command line is executed in the container. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files.") - @visibility("read") + @visibility(Lifecycle.Read) containerSettings?: BatchTaskContainerSettings; @doc("A list of files that the Batch service will download to the Compute Node before running the command line. For multi-instance Tasks, the resource files will only be downloaded to the Compute Node on which the primary Task is executed. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers.") - @visibility("read") + @visibility(Lifecycle.Read) resourceFiles?: ResourceFile[]; @doc("A list of files that the Batch service will upload from the Compute Node after running the command line. For multi-instance Tasks, the files will only be uploaded from the Compute Node on which the primary Task is executed.") - @visibility("read") + @visibility(Lifecycle.Read) outputFiles?: OutputFile[]; @doc("A list of environment variable settings for the Task.") - @visibility("read") + @visibility(Lifecycle.Read) environmentSettings?: EnvironmentSetting[]; @doc("A locality hint that can be used by the Batch service to select a Compute Node on which to start the new Task.") - @visibility("read") + @visibility(Lifecycle.Read) affinityInfo?: AffinityInfo; @doc("The execution constraints that apply to this Task.") constraints?: BatchTaskConstraints; @doc("The number of scheduling slots that the Task requires to run. The default is 1. A Task can only be scheduled to run on a compute node if the node has enough free scheduling slots available. For multi-instance Tasks, this must be 1.") - @visibility("read") + @visibility(Lifecycle.Read) requiredSlots?: int32; @doc("The user identity under which the Task runs. If omitted, the Task runs as a non-administrative user unique to the Task.") - @visibility("read") + @visibility(Lifecycle.Read) userIdentity?: UserIdentity; @doc("Information about the execution of the Task.") - @visibility("read") + @visibility(Lifecycle.Read) executionInfo?: BatchTaskExecutionInfo; @doc("Information about the Compute Node on which the Task ran.") - @visibility("read") + @visibility(Lifecycle.Read) nodeInfo?: BatchNodeInfo; @doc("An object that indicates that the Task is a multi-instance Task, and contains information about how to run the multi-instance Task.") - @visibility("read") + @visibility(Lifecycle.Read) multiInstanceSettings?: MultiInstanceSettings; @doc("Resource usage statistics for the Task.") - @visibility("read") + @visibility(Lifecycle.Read) stats?: BatchTaskStatistics; @doc("The Tasks that this Task depends on. This Task will not be scheduled until all Tasks that it depends on have completed successfully. If any of those Tasks fail and exhaust their retry counts, this Task will never be scheduled.") - @visibility("read") + @visibility(Lifecycle.Read) dependsOn?: BatchTaskDependencies; @doc("A list of Packages that the Batch service will deploy to the Compute Node before running the command line. Application packages are downloaded and deployed to a shared directory, not the Task working directory. Therefore, if a referenced package is already on the Node, and is up to date, then it is not re-downloaded; the existing copy on the Compute Node is used. If a referenced Package cannot be installed, for example because the package has been deleted or because download failed, the Task fails.") - @visibility("read") + @visibility(Lifecycle.Read) applicationPackageReferences?: BatchApplicationPackageReference[]; @doc("The settings for an authentication token that the Task can use to perform Batch service operations. If this property is set, the Batch service provides the Task with an authentication token which can be used to authenticate Batch service operations without requiring an Account access key. The token is provided via the AZ_BATCH_AUTHENTICATION_TOKEN environment variable. The operations that the Task can carry out using the token depend on the settings. For example, a Task can request Job permissions in order to add other Tasks to the Job, or check the status of the Job or of other Tasks under the Job.") - @visibility("read") + @visibility(Lifecycle.Read) authenticationTokenSettings?: AuthenticationTokenSettings; } diff --git a/specification/chaos/Chaos.Management/capability.models.tsp b/specification/chaos/Chaos.Management/capability.models.tsp index a00659845026..9c91d4c76257 100644 --- a/specification/chaos/Chaos.Management/capability.models.tsp +++ b/specification/chaos/Chaos.Management/capability.models.tsp @@ -37,32 +37,32 @@ model CapabilityProperties { /** * String of the Publisher that this Capability extends. */ - @visibility("read") + @visibility(Lifecycle.Read) publisher?: string; /** * String of the Target Type that this Capability extends. */ - @visibility("read") + @visibility(Lifecycle.Read) targetType?: string; /** * Localized string of the description. */ - @visibility("read") + @visibility(Lifecycle.Read) description?: string; /** * URL to retrieve JSON schema of the Capability parameters. */ - @visibility("read") + @visibility(Lifecycle.Read) @maxLength(2048) parametersSchema?: string; /** * String of the URN for this Capability Type. */ - @visibility("read") + @visibility(Lifecycle.Read) @maxLength(2048) urn?: string; @@ -70,7 +70,7 @@ model CapabilityProperties { * Resource provisioning state. Not currently in use because resource is created synchronously. */ @removed(Microsoft.Chaos.Versions.v2025_01_01) - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/chaos/Chaos.Management/capabilityType.models.tsp b/specification/chaos/Chaos.Management/capabilityType.models.tsp index c5f0018d0747..d2f30b3ee97c 100644 --- a/specification/chaos/Chaos.Management/capabilityType.models.tsp +++ b/specification/chaos/Chaos.Management/capabilityType.models.tsp @@ -34,70 +34,70 @@ model CapabilityTypeProperties { /** * String of the Publisher that this Capability Type extends. */ - @visibility("read") + @visibility(Lifecycle.Read) publisher?: string; /** * String of the Target Type that this Capability Type extends. */ - @visibility("read") + @visibility(Lifecycle.Read) targetType?: string; /** * Localized string of the display name. */ - @visibility("read") + @visibility(Lifecycle.Read) displayName?: string; /** * Localized string of the description. */ - @visibility("read") + @visibility(Lifecycle.Read) description?: string; /** * URL to retrieve JSON schema of the Capability Type parameters. */ - @visibility("read") + @visibility(Lifecycle.Read) @maxLength(2048) parametersSchema?: string; /** * String of the URN for this Capability Type. */ - @visibility("read") + @visibility(Lifecycle.Read) @maxLength(2048) urn?: string; /** * String of the kind of this Capability Type. */ - @visibility("read") + @visibility(Lifecycle.Read) kind?: string; /** * Control plane actions necessary to execute capability type. */ - @visibility("read") + @visibility(Lifecycle.Read) azureRbacActions?: string[]; /** * Data plane actions necessary to execute capability type. */ - @visibility("read") + @visibility(Lifecycle.Read) azureRbacDataActions?: string[]; /** * Required Azure Role Definition Ids to execute capability type. */ - @visibility("read") + @visibility(Lifecycle.Read) @added(Microsoft.Chaos.Versions.v2025_01_01) requiredAzureRoleDefinitionIds?: string[]; /** * Runtime properties of this Capability Type. */ - @visibility("read") + @visibility(Lifecycle.Read) runtimeProperties?: CapabilityTypePropertiesRuntimeProperties; } @@ -108,7 +108,7 @@ model CapabilityTypePropertiesRuntimeProperties { /** * String of the kind of the resource's action type (continuous or discrete). */ - @visibility("read") + @visibility(Lifecycle.Read) kind?: string; } diff --git a/specification/chaos/Chaos.Management/common.models.tsp b/specification/chaos/Chaos.Management/common.models.tsp index 169bee71fe22..ccc7a08dd924 100644 --- a/specification/chaos/Chaos.Management/common.models.tsp +++ b/specification/chaos/Chaos.Management/common.models.tsp @@ -84,13 +84,13 @@ model OperationStatus extends ErrorResponse { /** * The start time of the operation. */ - @visibility("read") + @visibility(Lifecycle.Read) startTime?: utcDateTime; /** * The end time of the operation. */ - @visibility("read") + @visibility(Lifecycle.Read) endTime?: utcDateTime; /** diff --git a/specification/chaos/Chaos.Management/experiment.models.tsp b/specification/chaos/Chaos.Management/experiment.models.tsp index 80d45e73ea82..37f73a9689d4 100644 --- a/specification/chaos/Chaos.Management/experiment.models.tsp +++ b/specification/chaos/Chaos.Management/experiment.models.tsp @@ -98,7 +98,7 @@ model ExperimentProperties { /** * Most recent provisioning state for the given experiment resource. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** diff --git a/specification/chaos/Chaos.Management/experimentExecution.models.tsp b/specification/chaos/Chaos.Management/experimentExecution.models.tsp index bc3831b0575f..9ee3ecbccbd6 100644 --- a/specification/chaos/Chaos.Management/experimentExecution.models.tsp +++ b/specification/chaos/Chaos.Management/experimentExecution.models.tsp @@ -35,26 +35,26 @@ model ExperimentExecutionProperties { /** * The status of the execution. */ - @visibility("read") + @visibility(Lifecycle.Read) status?: string; /** * String that represents the start date time. */ - @visibility("read") + @visibility(Lifecycle.Read) startedAt?: utcDateTime; /** * String that represents the stop date time. */ - @visibility("read") + @visibility(Lifecycle.Read) stoppedAt?: utcDateTime; /** * Resource provisioning state. Not currently in use for executions. */ @removed(Microsoft.Chaos.Versions.v2025_01_01) - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -65,25 +65,25 @@ model ExperimentExecutionDetails { /** * String of the resource type. */ - @visibility("read") + @visibility(Lifecycle.Read) type?: string; /** * String of the fully qualified resource ID. */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; /** * String of the resource name. */ - @visibility("read") + @visibility(Lifecycle.Read) name?: string; /** * The properties of the experiment execution details. */ - @visibility("read") + @visibility(Lifecycle.Read) properties?: ExperimentExecutionDetailsProperties; } @@ -95,44 +95,44 @@ model ExperimentExecutionDetailsProperties { /** * The status of the execution. */ - @visibility("read") + @visibility(Lifecycle.Read) status?: string; /** * String that represents the start date time. */ - @visibility("read") + @visibility(Lifecycle.Read) startedAt?: utcDateTime; /** * String that represents the stop date time. */ - @visibility("read") + @visibility(Lifecycle.Read) stoppedAt?: utcDateTime; /** * Resource provisioning state. Not currently in use for executions. */ @removed(Microsoft.Chaos.Versions.v2025_01_01) - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * The reason why the execution failed. */ - @visibility("read") + @visibility(Lifecycle.Read) failureReason?: string; /** * String that represents the last action date time. */ - @visibility("read") + @visibility(Lifecycle.Read) lastActionAt?: utcDateTime; /** * The information of the experiment run. */ - @visibility("read") + @visibility(Lifecycle.Read) runInformation?: ExperimentExecutionDetailsPropertiesRunInformation; } @@ -143,7 +143,7 @@ model ExperimentExecutionDetailsPropertiesRunInformation { /** * The steps of the experiment run. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", ["stepName"]) steps?: StepStatus[]; } @@ -155,25 +155,25 @@ model StepStatus { /** * The name of the step. */ - @visibility("read") + @visibility(Lifecycle.Read) stepName?: string; /** * The id of the step. */ - @visibility("read") + @visibility(Lifecycle.Read) stepId?: string; /** * The value of the status of the step. */ - @visibility("read") + @visibility(Lifecycle.Read) status?: string; /** * The array of branches. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", ["branchName"]) branches?: BranchStatus[]; } @@ -185,25 +185,25 @@ model BranchStatus { /** * The name of the branch status. */ - @visibility("read") + @visibility(Lifecycle.Read) branchName?: string; /** * The id of the branch status. */ - @visibility("read") + @visibility(Lifecycle.Read) branchId?: string; /** * The status of the branch. */ - @visibility("read") + @visibility(Lifecycle.Read) status?: string; /** * The array of actions. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", ["actionId"]) actions?: ActionStatus[]; } @@ -215,37 +215,37 @@ model ActionStatus { /** * The name of the action status. */ - @visibility("read") + @visibility(Lifecycle.Read) actionName?: string; /** * The id of the action status. */ - @visibility("read") + @visibility(Lifecycle.Read) actionId?: string; /** * The status of the action. */ - @visibility("read") + @visibility(Lifecycle.Read) status?: string; /** * String that represents the start time of the action. */ - @visibility("read") + @visibility(Lifecycle.Read) startTime?: utcDateTime; /** * String that represents the end time of the action. */ - @visibility("read") + @visibility(Lifecycle.Read) endTime?: utcDateTime; /** * The array of targets. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) targets?: ExperimentExecutionActionTargetDetailsProperties[]; } @@ -257,31 +257,31 @@ model ExperimentExecutionActionTargetDetailsProperties { /** * The status of the execution. */ - @visibility("read") + @visibility(Lifecycle.Read) status?: string; /** * The target for the action. */ - @visibility("read") + @visibility(Lifecycle.Read) target?: string; /** * String that represents the failed date time. */ - @visibility("read") + @visibility(Lifecycle.Read) targetFailedTime?: utcDateTime; /** * String that represents the completed date time. */ - @visibility("read") + @visibility(Lifecycle.Read) targetCompletedTime?: utcDateTime; /** * The error of the action. */ - @visibility("read") + @visibility(Lifecycle.Read) error?: ExperimentExecutionActionTargetDetailsError; } @@ -292,13 +292,13 @@ model ExperimentExecutionActionTargetDetailsError { /** * The error code. */ - @visibility("read") + @visibility(Lifecycle.Read) code?: string; /** * The error message */ - @visibility("read") + @visibility(Lifecycle.Read) message?: string; } diff --git a/specification/chaos/Chaos.Management/privateAccess.models.tsp b/specification/chaos/Chaos.Management/privateAccess.models.tsp index 369ff94232a0..df1da27240a0 100644 --- a/specification/chaos/Chaos.Management/privateAccess.models.tsp +++ b/specification/chaos/Chaos.Management/privateAccess.models.tsp @@ -41,13 +41,13 @@ model PrivateAccessProperties { /** * Most recent provisioning state for the given privateAccess resource. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * A readonly collection of private endpoint connection. Currently only one endpoint connection is supported. */ - @visibility("read") + @visibility(Lifecycle.Read) privateEndpointConnections?: PrivateEndpointConnection[]; /** diff --git a/specification/chaos/Chaos.Management/privateEndpointConnection.models.tsp b/specification/chaos/Chaos.Management/privateEndpointConnection.models.tsp index 304a66dd3a92..5b5da38a7925 100644 --- a/specification/chaos/Chaos.Management/privateEndpointConnection.models.tsp +++ b/specification/chaos/Chaos.Management/privateEndpointConnection.models.tsp @@ -33,7 +33,7 @@ model PrivateEndpointConnectionProperties { /** * The group ids for the private endpoint resource. */ - @visibility("read") + @visibility(Lifecycle.Read) groupIds?: string[]; /** @@ -49,7 +49,7 @@ model PrivateEndpointConnectionProperties { /** * The provisioning state of the private endpoint connection resource. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -60,7 +60,7 @@ model PrivateEndpoint { /** * The ARM identifier for private endpoint. */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; } @@ -135,13 +135,13 @@ model PrivateLinkResourceProperties { /** * The private link resource group id. */ - @visibility("read") + @visibility(Lifecycle.Read) groupId?: string; /** * The private link resource required member names. */ - @visibility("read") + @visibility(Lifecycle.Read) requiredMembers?: string[]; /** @@ -152,7 +152,7 @@ model PrivateLinkResourceProperties { /** * Resource provisioning state. Not currently in use. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/chaos/Chaos.Management/targetType.models.tsp b/specification/chaos/Chaos.Management/targetType.models.tsp index 5e20fcc0d42a..558528770d7a 100644 --- a/specification/chaos/Chaos.Management/targetType.models.tsp +++ b/specification/chaos/Chaos.Management/targetType.models.tsp @@ -35,26 +35,26 @@ model TargetTypeProperties { /** * Localized string of the display name. */ - @visibility("read") + @visibility(Lifecycle.Read) displayName?: string; /** * Localized string of the description. */ - @visibility("read") + @visibility(Lifecycle.Read) description?: string; /** * URL to retrieve JSON schema of the Target Type properties. */ - @visibility("read") + @visibility(Lifecycle.Read) @maxLength(2048) propertiesSchema?: string; /** * List of resource types this Target Type can extend. */ - @visibility("read") + @visibility(Lifecycle.Read) resourceTypes?: string[]; } diff --git a/specification/codesigning/CodeSigning.Management/models.tsp b/specification/codesigning/CodeSigning.Management/models.tsp index 9e0a56c48d02..e5ca0117b948 100644 --- a/specification/codesigning/CodeSigning.Management/models.tsp +++ b/specification/codesigning/CodeSigning.Management/models.tsp @@ -128,14 +128,14 @@ union NameUnavailabilityReason { @doc("Properties of the trusted signing account.") model CodeSigningAccountProperties { @doc("The URI of the trusted signing account which is used during signing files.") - @visibility("read") + @visibility(Lifecycle.Read) accountUri?: string; @doc("SKU of the trusted signing account.") sku?: AccountSku; @doc("Status of the current operation on trusted signing account.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -178,22 +178,22 @@ model CertificateProfileProperties { @removed(Versions.v2024_09_30_preview) @doc("Used as CN in the certificate subject name.") - @visibility("read") + @visibility(Lifecycle.Read) commonName?: string; @removed(Versions.v2024_09_30_preview) @doc("Used as O in the certificate subject name.") - @visibility("read") + @visibility(Lifecycle.Read) organization?: string; @removed(Versions.v2024_09_30_preview) @doc("Used as OU in the private trust certificate subject name.") - @visibility("read") + @visibility(Lifecycle.Read) organizationUnit?: string; @removed(Versions.v2024_09_30_preview) @doc("Used as STREET in the certificate subject name.") - @visibility("read") + @visibility(Lifecycle.Read) streetAddress?: string; @doc("Whether to include STREET in the certificate subject name.") @@ -201,7 +201,7 @@ model CertificateProfileProperties { @removed(Versions.v2024_09_30_preview) @doc("Used as L in the certificate subject name.") - @visibility("read") + @visibility(Lifecycle.Read) city?: string; @doc("Whether to include L in the certificate subject name. Applicable only for private trust, private trust ci profile types") @@ -209,7 +209,7 @@ model CertificateProfileProperties { @removed(Versions.v2024_09_30_preview) @doc("Used as S in the certificate subject name.") - @visibility("read") + @visibility(Lifecycle.Read) state?: string; @doc("Whether to include S in the certificate subject name. Applicable only for private trust, private trust ci profile types") @@ -217,7 +217,7 @@ model CertificateProfileProperties { @removed(Versions.v2024_09_30_preview) @doc("Used as C in the certificate subject name.") - @visibility("read") + @visibility(Lifecycle.Read) country?: string; @doc("Whether to include C in the certificate subject name. Applicable only for private trust, private trust ci profile types") @@ -225,7 +225,7 @@ model CertificateProfileProperties { @removed(Versions.v2024_09_30_preview) @doc("Used as PC in the certificate subject name.") - @visibility("read") + @visibility(Lifecycle.Read) postalCode?: string; @doc("Whether to include PC in the certificate subject name.") @@ -233,7 +233,7 @@ model CertificateProfileProperties { @removed(Versions.v2024_09_30_preview) @doc("Enhanced key usage of the certificate.") - @visibility("read") + @visibility(Lifecycle.Read) enhancedKeyUsage?: string; @doc("Identity validation id used for the certificate subject name.") @@ -241,16 +241,16 @@ model CertificateProfileProperties { identityValidationId: string; @doc("Status of the current operation on certificate profile.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @doc("Status of the certificate profile.") - @visibility("read") + @visibility(Lifecycle.Read) status?: CertificateProfileStatus; #suppress "deprecated" "Legacy flatten" @doc("List of renewed certificates.") - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", []) @Azure.ClientGenerator.Core.flattenProperty certificates?: Certificate[]; @@ -335,14 +335,14 @@ model CheckNameAvailability { @doc("The CheckNameAvailability operation response.") model CheckNameAvailabilityResult { @doc("A boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used.") - @visibility("read") + @visibility(Lifecycle.Read) nameAvailable?: boolean; @doc("The reason that a trusted signing account name could not be used. The Reason element is only returned if nameAvailable is false.") - @visibility("read") + @visibility(Lifecycle.Read) reason?: NameUnavailabilityReason; @doc("An error message explaining the Reason value in more detail.") - @visibility("read") + @visibility(Lifecycle.Read) message?: string; } diff --git a/specification/cognitiveservices/AnomalyDetector/multivariate/models.tsp b/specification/cognitiveservices/AnomalyDetector/multivariate/models.tsp index e7e03d667745..135335748cc6 100644 --- a/specification/cognitiveservices/AnomalyDetector/multivariate/models.tsp +++ b/specification/cognitiveservices/AnomalyDetector/multivariate/models.tsp @@ -264,15 +264,15 @@ model ModelInfo { alignPolicy?: AlignPolicy; @doc("Model status.") - @visibility("read") + @visibility(Lifecycle.Read) status?: ModelStatus; @doc("Error messages after failure to create a model.") - @visibility("read") + @visibility(Lifecycle.Read) errors?: ErrorResponse[]; @doc("Diagnostics information to help inspect the states of a model or variable.") - @visibility("read") + @visibility(Lifecycle.Read) diagnosticsInfo?: DiagnosticsInfo; } diff --git a/specification/cognitiveservices/AnomalyDetector/univariate/models.tsp b/specification/cognitiveservices/AnomalyDetector/univariate/models.tsp index 0415bf4a4538..16e206204e03 100644 --- a/specification/cognitiveservices/AnomalyDetector/univariate/models.tsp +++ b/specification/cognitiveservices/AnomalyDetector/univariate/models.tsp @@ -288,7 +288,7 @@ model UnivariateChangePointDetectionResult { Frequency extracted from the series. Zero means no recurrent pattern has been found. """) - @visibility("read") + @visibility(Lifecycle.Read) period?: int32; @doc(""" diff --git a/specification/cognitiveservices/ContentSafety/models.tsp b/specification/cognitiveservices/ContentSafety/models.tsp index 4bd62cdc9cab..87877cd8e08a 100644 --- a/specification/cognitiveservices/ContentSafety/models.tsp +++ b/specification/cognitiveservices/ContentSafety/models.tsp @@ -159,7 +159,7 @@ model TextBlocklist { @doc("Text blocklist name.") @pattern("^[0-9A-Za-z._~-]+$") @key("blocklistName") - @visibility("read", "create", "query") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Query) @maxLength(64) @clientName("Name", "csharp") @clientName("name", "java") @@ -176,7 +176,7 @@ model TextBlocklist { model TextBlocklistItem { @doc("The service will generate a BlocklistItemId, which will be a UUID.") @key("blocklistItemId") - @visibility("read") + @visibility(Lifecycle.Read) @maxLength(64) blocklistItemId: string; diff --git a/specification/cognitiveservices/Language.AnalyzeConversations-authoring/models/project.tsp b/specification/cognitiveservices/Language.AnalyzeConversations-authoring/models/project.tsp index 6e9230cb6b7a..1bb72bd9812d 100644 --- a/specification/cognitiveservices/Language.AnalyzeConversations-authoring/models/project.tsp +++ b/specification/cognitiveservices/Language.AnalyzeConversations-authoring/models/project.tsp @@ -64,19 +64,19 @@ model AnalyzeConversationAuthoringProjectMetadata { /** * Represents the project kind. */ - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) projectKind: ProjectKind; /** * The project settings. */ - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) settings?: AnalyzeConversationAuthoringProjectSettings; /** * The storage container name in case of conversation summarization. */ - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) @added(Versions.v2023_04_15_preview) storageInputContainerName?: string; @@ -84,26 +84,26 @@ model AnalyzeConversationAuthoringProjectMetadata { * The new project name. */ @key("projectName") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) @maxLength(100) projectName: string; /** * Whether the project would be used for multiple languages or not. */ - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) multilingual?: boolean; /** * The project description. */ - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) description?: string; /** * The project language. This is BCP-47 representation of a language. For example, use "en" for English, "en-gb" for English (UK), "es" for Spanish etc. */ - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) language: string; } @@ -355,7 +355,7 @@ model AnalyzeConversationAuthoringJobState { * The job ID. */ @key("jobId") - @visibility("read") + @visibility(Lifecycle.Read) jobId: string; /** @@ -419,7 +419,7 @@ model AnalyzeConversationAuthoringProjectDeployment { * Represents deployment name. */ @key("deploymentName") - @visibility("read") + @visibility(Lifecycle.Read) deploymentName: string; /** @@ -600,7 +600,7 @@ model AnalyzeConversationAuthoringProjectTrainedModel { * The trained model label. */ @key("trainedModelLabel") - @visibility("read") + @visibility(Lifecycle.Read) label: string; /** @@ -737,7 +737,7 @@ model AnalyzeConversationAuthoringUtteranceEvaluationResult { * Represents the utterance text. */ @key - @visibility("read") + @visibility(Lifecycle.Read) text: string; /** @@ -1064,7 +1064,7 @@ model AnalyzeConversationAuthoringAssignedDeploymentResource { * The resource ID. */ @key - @visibility("read") + @visibility(Lifecycle.Read) @clientName("resourceId", "csharp") azureResourceId: string; @@ -1263,7 +1263,7 @@ model AnalyzeConversationAuthoringAssignedProjectDeploymentsMetadata { * Represents the project name. */ @key - @visibility("read") + @visibility(Lifecycle.Read) projectName: string; /** @@ -1321,7 +1321,7 @@ model AnalyzeConversationAuthoringSupportedLanguage { * The language name. */ @key - @visibility("read") + @visibility(Lifecycle.Read) languageName: string; /** @@ -1356,7 +1356,7 @@ model AnalyzeConversationAuthoringPrebuiltEntity { * The prebuilt entity category. */ @key - @visibility("read") + @visibility(Lifecycle.Read) category: string; /** @@ -1396,7 +1396,7 @@ model AnalyzeConversationAuthoringTrainingConfigVersion { * Represents the version of the config. */ @key - @visibility("read") + @visibility(Lifecycle.Read) trainingConfigVersion: string; /** @@ -1851,7 +1851,7 @@ model AnalyzeConversationAuthoringExportedTrainedModel { * The exported model name. */ @key("exportedModelName") - @visibility("read") + @visibility(Lifecycle.Read) exportedModelName: string; /** diff --git a/specification/cognitiveservices/Language.AnalyzeDocuments/models/common.models.tsp b/specification/cognitiveservices/Language.AnalyzeDocuments/models/common.models.tsp index 60fa7ed7dd0c..49d3e8617dc4 100644 --- a/specification/cognitiveservices/Language.AnalyzeDocuments/models/common.models.tsp +++ b/specification/cognitiveservices/Language.AnalyzeDocuments/models/common.models.tsp @@ -625,7 +625,7 @@ model JobState { /** job ID */ @key - @visibility("read") + @visibility(Lifecycle.Read) jobId: uuid; /** last updated date and time */ diff --git a/specification/cognitiveservices/Language.AnalyzeText-authoring/models.tsp b/specification/cognitiveservices/Language.AnalyzeText-authoring/models.tsp index b24898ebf805..2461e58d8e7f 100644 --- a/specification/cognitiveservices/Language.AnalyzeText-authoring/models.tsp +++ b/specification/cognitiveservices/Language.AnalyzeText-authoring/models.tsp @@ -231,7 +231,7 @@ model TextAnalysisAuthoringProjectMetadata { * The new project name. */ @key("projectName") - @visibility("read") + @visibility(Lifecycle.Read) projectName: string; /** @@ -599,7 +599,7 @@ model TextAnalysisAuthoringJobState { * The job ID. */ @key("jobId") - @visibility("read") + @visibility(Lifecycle.Read) jobId: string; /** @@ -676,7 +676,7 @@ model TextAnalysisAuthoringProjectDeployment { * Represents deployment name. */ @key("deploymentName") - @visibility("read") + @visibility(Lifecycle.Read) deploymentName: string; /** @@ -844,7 +844,7 @@ model TextAnalysisAuthoringExportedTrainedModel { * The exported model name. */ @key("exportedModelName") - @visibility("read") + @visibility(Lifecycle.Read) exportedModelName: string; /** @@ -960,7 +960,7 @@ model TextAnalysisAuthoringProjectTrainedModel { * The trained model label. */ @key("trainedModelLabel") - @visibility("read") + @visibility(Lifecycle.Read) label: string; /** @@ -1061,7 +1061,7 @@ model TextAnalysisAuthoringDocumentEvaluationResult { * Represents the project kind. */ @key - @visibility("read") + @visibility(Lifecycle.Read) projectKind: ProjectKind; /** @@ -1172,7 +1172,7 @@ model TextAnalysisAuthoringAssignedDeploymentResource { * The resource ID. */ @key - @visibility("read") + @visibility(Lifecycle.Read) azureResourceId: string; /** @@ -1372,7 +1372,7 @@ model TextAnalysisAuthoringAssignedProjectDeploymentsMetadata { * Represents the project name. */ @key - @visibility("read") + @visibility(Lifecycle.Read) projectName: string; /** @@ -1428,7 +1428,7 @@ model TextAnalysisAuthoringSupportedLanguage { * The language name. */ @key - @visibility("read") + @visibility(Lifecycle.Read) languageName: string; /** @@ -1465,7 +1465,7 @@ model TextAnalysisAuthoringPrebuiltEntity { * The prebuilt entity category. */ @key - @visibility("read") + @visibility(Lifecycle.Read) category: string; /** @@ -1505,7 +1505,7 @@ model TextAnalysisAuthoringTrainingConfigVersion { * Represents the version of the config. */ @key - @visibility("read") + @visibility(Lifecycle.Read) trainingConfigVersion: string; /** diff --git a/specification/cognitiveservices/Language.AnalyzeText/models/common.models.tsp b/specification/cognitiveservices/Language.AnalyzeText/models/common.models.tsp index d9e8df004525..a682a14e95c3 100644 --- a/specification/cognitiveservices/Language.AnalyzeText/models/common.models.tsp +++ b/specification/cognitiveservices/Language.AnalyzeText/models/common.models.tsp @@ -501,7 +501,7 @@ model JobState { /** job ID */ @key - @visibility("read") + @visibility(Lifecycle.Read) jobId: uuid; /** last updated date and time */ diff --git a/specification/cognitiveservices/Language.Conversations/models/common.tsp b/specification/cognitiveservices/Language.Conversations/models/common.tsp index 792241b2f989..29634aee69e0 100644 --- a/specification/cognitiveservices/Language.Conversations/models/common.tsp +++ b/specification/cognitiveservices/Language.Conversations/models/common.tsp @@ -105,7 +105,7 @@ model JobState { /** job ID */ @key - @visibility("read") + @visibility(Lifecycle.Read) jobId: uuid; /** last updated date and time */ @@ -388,7 +388,7 @@ model CustomResult { model AnalyzeConversationTask { /** The base class of a conversation input task. */ @key - @visibility("read", "create", "query") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Query) kind: AnalyzeConversationTaskKind; } @@ -835,7 +835,7 @@ model AnalyzeConversationJobsInput { /** Analysis Input */ @key - @visibility("read", "create", "query") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Query) analysisInput: MultiLanguageConversationAnalysisInput; /** Set of tasks to execute on the input conversation. */ diff --git a/specification/cognitiveservices/OpenAI.Inference/routes/common.tsp b/specification/cognitiveservices/OpenAI.Inference/routes/common.tsp index 060eb1146b82..88a79a4dbd03 100644 --- a/specification/cognitiveservices/OpenAI.Inference/routes/common.tsp +++ b/specification/cognitiveservices/OpenAI.Inference/routes/common.tsp @@ -9,7 +9,7 @@ using Azure.ClientGenerator.Core; @doc("A specific deployment") @TypeSpec.Rest.resource("deployments") model Deployment { - @visibility("read") + @visibility(Lifecycle.Read) @doc("Specifies either the model deployment name (when using Azure OpenAI) or model name (when using non-Azure OpenAI) to use for this request.") @clientName("deploymentOrModelName", "java") @key diff --git a/specification/cognitiveservices/Speech.VideoTranslation/main.tsp b/specification/cognitiveservices/Speech.VideoTranslation/main.tsp index 71b15335f615..1fa9f745774d 100644 --- a/specification/cognitiveservices/Speech.VideoTranslation/main.tsp +++ b/specification/cognitiveservices/Speech.VideoTranslation/main.tsp @@ -188,7 +188,7 @@ model IterationInput { model OperationIdHeader { @doc("Operation ID.") @header("Operation-Id") - @visibility("create") + @visibility(Lifecycle.Create) operationId: resourceId; } @@ -197,7 +197,7 @@ model OperationIdHeader { model Translation { @doc("Translation resource ID.") @key("translationId") - @visibility("read") + @visibility(Lifecycle.Read) id: resourceId; @doc("Translation input.") @@ -210,19 +210,19 @@ model Translation { description?: string; @doc("The timestamp when the object was created. The timestamp is encoded as ISO 8601 date and time format (\"YYYY-MM-DDThh:mm:ssZ\", see https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations).") - @visibility("read") + @visibility(Lifecycle.Read) createdDateTime?: utcDateTime; @doc("Latest iteration of the translation.") - @visibility("read") + @visibility(Lifecycle.Read) latestIteration?: Iteration; @doc("Latest completed iteration of the translation.") - @visibility("read") + @visibility(Lifecycle.Read) latestSucceededIteration?: Iteration; @doc("Translation failure reason") - @visibility("read") + @visibility(Lifecycle.Read) failureReason?: string; } @@ -232,7 +232,7 @@ model Translation { model Iteration { @doc("Iteration ID") @key("iterationId") - @visibility("read") + @visibility(Lifecycle.Read) id: resourceId; @doc("Iteration input.") @@ -242,23 +242,23 @@ model Iteration { description?: string; @doc("Iteration status") - @visibility("read") + @visibility(Lifecycle.Read) status?: Status; @doc("Iteration failure reason") - @visibility("read") + @visibility(Lifecycle.Read) failureReason?: string; @doc("The timestamp when the object was created. The timestamp is encoded as ISO 8601 date and time format (\"YYYY-MM-DDThh:mm:ssZ\", see https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations).") - @visibility("read") + @visibility(Lifecycle.Read) createdDateTime?: utcDateTime; @doc("The timestamp when the current status was entered. The timestamp is encoded as ISO 8601 date and time format (\"YYYY-MM-DDThh:mm:ssZ\", see https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations).") - @visibility("read") + @visibility(Lifecycle.Read) lastActionDateTime?: utcDateTime; @doc("Iteration result.") - @visibility("read") + @visibility(Lifecycle.Read) result?: IterationResult; } @@ -267,7 +267,7 @@ model Iteration { model Operation { @doc("Operation ID") @key("operationId") - @visibility("read") + @visibility(Lifecycle.Read) id: resourceId; @doc("Operation status") diff --git a/specification/communication/Communication.JobRouter/models.tsp b/specification/communication/Communication.JobRouter/models.tsp index c09a1ec53fde..1d89755c15e0 100644 --- a/specification/communication/Communication.JobRouter/models.tsp +++ b/specification/communication/Communication.JobRouter/models.tsp @@ -19,7 +19,7 @@ namespace AzureCommunicationRoutingService; @doc("Provides the 'Last-Modified' header to enable conditional (cached) requests") model LastModifiedResponseEnvelope { @header("Last-Modified") - @visibility("read") + @visibility(Lifecycle.Read) @doc("The last modified timestamp.") @encode("rfc7231") lastModifiedTimestamp?: utcDateTime; @@ -29,12 +29,12 @@ model LastModifiedResponseEnvelope { @doc("Provides the 'If-*' headers to enable conditional (cached) responses for JobRouter.") model RouterConditionalRequestHeaders { - @visibility("read", "query", "create", "update", "delete") + @visibility(Lifecycle.Read, Lifecycle.Query, Lifecycle.Create, Lifecycle.Update, Lifecycle.Delete) @header("If-Match") @doc("The request should only proceed if an entity matches this string.") ifMatch?: string; - @visibility("read", "query", "create", "update", "delete") + @visibility(Lifecycle.Read, Lifecycle.Query, Lifecycle.Create, Lifecycle.Update, Lifecycle.Delete) @header("If-Unmodified-Since") @doc("The request should only proceed if the entity was not modified after this time.") @encode("rfc7231") @@ -360,7 +360,7 @@ model ClassificationPolicy { @key("classificationPolicyId") @doc("Id of a classification policy.") - @visibility("read") + @visibility(Lifecycle.Read) id: string; @doc("Friendly name of this policy.") @@ -400,7 +400,7 @@ model DistributionPolicy { @key("distributionPolicyId") @doc("Id of a distribution policy.") - @visibility("read") + @visibility(Lifecycle.Read) id: string; @doc("Friendly name of this policy.") @@ -436,7 +436,7 @@ model ExceptionPolicy { @key("exceptionPolicyId") @doc("Id of an exception policy.") - @visibility("read") + @visibility(Lifecycle.Read) id: string; @doc("Friendly name of this policy.") @@ -481,18 +481,18 @@ model RouterJob { @key("jobId") @doc("Id of a job.") - @visibility("read") + @visibility(Lifecycle.Read) id: string; @doc("Reference to an external parent context, eg. call ID.") channelReference?: string; @doc("The status of the job.") - @visibility("read") + @visibility(Lifecycle.Read) status?: RouterJobStatus; @doc("Timestamp a job was queued in UTC.") - @visibility("read") + @visibility(Lifecycle.Read) enqueuedAt?: utcDateTime; @doc("The channel identifier. eg. voice, chat, etc.") @@ -514,7 +514,7 @@ model RouterJob { requestedWorkerSelectors?: RouterWorkerSelector[]; @doc("A collection of worker selectors attached by a classification policy, which a worker must satisfy in order to process this job.") - @visibility("read") + @visibility(Lifecycle.Read) attachedWorkerSelectors?: RouterWorkerSelector[]; #suppress "@azure-tools/typespec-azure-core/bad-record-type" "Unions are currently not allowed in spec." @@ -522,7 +522,7 @@ model RouterJob { labels?: Record; @doc("A collection of the assignments of the job. Key is AssignmentId.") - @visibility("read") + @visibility(Lifecycle.Read) assignments?: Record; #suppress "@azure-tools/typespec-azure-core/bad-record-type" "Unions are currently not allowed in spec." @@ -533,7 +533,7 @@ model RouterJob { notes?: RouterJobNote[]; @doc("If set, job will be scheduled to be enqueued at a given time.") - @visibility("read") + @visibility(Lifecycle.Read) scheduledAt?: utcDateTime; @doc("If provided, will determine how job matching will be carried out. Default mode: QueueAndMatchMode.") @@ -559,11 +559,11 @@ model RouterWorkerSelector { expedite?: boolean; @doc("Status of the worker selector.") - @visibility("read") + @visibility(Lifecycle.Read) status?: RouterWorkerSelectorStatus; @doc("The time at which this worker selector expires in UTC.") - @visibility("read") + @visibility(Lifecycle.Read) expiresAt?: utcDateTime; } @@ -573,7 +573,7 @@ model RouterWorkerSelector { model RouterJobAssignment { @key @doc("Id of a job assignment.") - @visibility("read") + @visibility(Lifecycle.Read) assignmentId: string; @doc("Id of the Worker assigned to the job.") @@ -715,7 +715,7 @@ model RouterQueue { @key("queueId") @doc("Id of a queue.") - @visibility("read") + @visibility(Lifecycle.Read) id: string; @doc("Friendly name of this queue.") @@ -754,11 +754,11 @@ model RouterWorker { @key("workerId") @doc("Id of a worker.") - @visibility("read") + @visibility(Lifecycle.Read) id: string; @doc("Current state of a worker.") - @visibility("read") + @visibility(Lifecycle.Read) state?: RouterWorkerState; @doc("Collection of queue(s) that this worker can receive work from.") @@ -779,15 +779,15 @@ model RouterWorker { channels?: RouterChannel[]; @doc("A list of active offers issued to this worker.") - @visibility("read") + @visibility(Lifecycle.Read) offers?: RouterJobOffer[]; @doc("A list of assigned jobs attached to this worker.") - @visibility("read") + @visibility(Lifecycle.Read) assignedJobs?: RouterWorkerAssignment[]; @doc("A value indicating the workers capacity. A value of '1' means all capacity is consumed. A value of '0' means no capacity is currently consumed.") - @visibility("read") + @visibility(Lifecycle.Read) loadRatio?: float64; @doc("A flag indicating this worker is open to receive offers or not.") @@ -816,7 +816,7 @@ model RouterChannel { model RouterJobOffer { @key @doc("Id of an offer.") - @visibility("read") + @visibility(Lifecycle.Read) offerId: string; @doc("Id of the job.") diff --git a/specification/communication/Communication.Messages/models.tsp b/specification/communication/Communication.Messages/models.tsp index b73c291a270b..7734b3c02f0a 100644 --- a/specification/communication/Communication.Messages/models.tsp +++ b/specification/communication/Communication.Messages/models.tsp @@ -646,7 +646,7 @@ model WhatsAppMessageTemplateItem extends MessageTemplateItem { @doc("A notification.") model Notifications { @key - @visibility("read") + @visibility(Lifecycle.Read) @doc("The notification ID.") id: string; } @@ -655,7 +655,7 @@ model Notifications { @doc("A communication channel.") model CommunicationChannel { @key - @visibility("read") + @visibility(Lifecycle.Read) @doc("The registration ID of the channel.") channelId: uuid; } @@ -664,7 +664,7 @@ model CommunicationChannel { @doc("A data stream.") model MessageDataStream { @key - @visibility("none") // this model is only used as a parameter + @invisible(Lifecycle) // this model is only used as a parameter @doc("The stream ID.") @clientName("mediaId", "java") id: string; @@ -684,7 +684,7 @@ model MessageDataStream { @doc("The message template as returned from the service.") model MessageTemplateItem { @key - @visibility("read") + @visibility(Lifecycle.Read) @doc("The template's name.") name: string; diff --git a/specification/communitytraining/Community.Management/main.tsp b/specification/communitytraining/Community.Management/main.tsp index cef54df93a7c..dc632d21b068 100644 --- a/specification/communitytraining/Community.Management/main.tsp +++ b/specification/communitytraining/Community.Management/main.tsp @@ -60,75 +60,75 @@ union ProvisioningState { @doc("Details of the Community CommunityTraining Identity Configuration") model IdentityConfigurationProperties { - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @doc("The identity type of the Community Training Resource") identityType: string; - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @doc("To indicate whether the Community Training Resource has Teams enabled") teamsEnabled?: boolean = false; - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @doc("The tenantId of the selected identity provider for the Community Training Resource") tenantId: string; - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @doc("The domain name of the selected identity provider for the Community Training Resource") domainName: string; - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @doc("The clientId of the application registered in the selected identity provider for the Community Training Resource") clientId: string; - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @doc("The client secret of the application registered in the selected identity provider for the Community Training Resource") @secret clientSecret: string; - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @doc("The name of the authentication policy registered in ADB2C for the Community Training Resource") b2cAuthenticationPolicy?: string; - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @doc("The name of the password reset policy registered in ADB2C for the Community Training Resource") b2cPasswordResetPolicy?: string; - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @doc("The custom login parameters for the Community Training Resource") customLoginParameters?: string; } @doc("Details of the Community CommunityTraining.") model CommunityTrainingProperties { - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("The portal name (website name) of the Community Training instance") portalName: string; - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("The email address of the portal admin") portalAdminEmailAddress: string; - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("The organization name of the portal owner") portalOwnerOrganizationName: string; - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("The email address of the portal owner. Will be used as the primary contact") portalOwnerEmailAddress: string; - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @doc("The identity configuration of the Community Training resource") identityConfiguration: IdentityConfigurationProperties; - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("To indicate whether the Community Training instance has Zone Redundancy enabled") zoneRedundancyEnabled: boolean; - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("To indicate whether the Community Training instance has Disaster Recovery enabled") disasterRecoveryEnabled: boolean; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/computeschedule/ComputeSchedule.Management/models.tsp b/specification/computeschedule/ComputeSchedule.Management/models.tsp index 6e95fef41de2..891533803be1 100644 --- a/specification/computeschedule/ComputeSchedule.Management/models.tsp +++ b/specification/computeschedule/ComputeSchedule.Management/models.tsp @@ -296,7 +296,7 @@ model DeallocateResourceOperationResponse { type: string; @doc("The location of the deallocate request eg westus") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) location: azureLocation; @extension("x-ms-identifiers", ["resourceId"]) @@ -329,7 +329,7 @@ model StartResourceOperationResponse { type: string; @doc("The location of the start request eg westus") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) location: azureLocation; @extension("x-ms-identifiers", ["resourceId"]) @@ -362,7 +362,7 @@ model HibernateResourceOperationResponse { type: string; @doc("The location of the Hibernate request eg westus") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) location: azureLocation; @extension("x-ms-identifiers", ["resourceId"]) diff --git a/specification/confidentialledger/Microsoft.ManagedCcf/acks.tsp b/specification/confidentialledger/Microsoft.ManagedCcf/acks.tsp index 1e95fb0537dc..60d88b6f79d3 100644 --- a/specification/confidentialledger/Microsoft.ManagedCcf/acks.tsp +++ b/specification/confidentialledger/Microsoft.ManagedCcf/acks.tsp @@ -12,7 +12,7 @@ namespace Microsoft.ManagedCcf.Acks; @TypeSpec.Rest.resource("state-digests") model StateDigest { @doc("Identifier for member this stateDigest applies to.") - @visibility("query") + @visibility(Lifecycle.Query) @key memberId: memberId; diff --git a/specification/confidentialledger/Microsoft.ManagedCcf/proposals.tsp b/specification/confidentialledger/Microsoft.ManagedCcf/proposals.tsp index 555708d3db72..a02d2247ed80 100644 --- a/specification/confidentialledger/Microsoft.ManagedCcf/proposals.tsp +++ b/specification/confidentialledger/Microsoft.ManagedCcf/proposals.tsp @@ -97,7 +97,7 @@ model ProposalActions { @TypeSpec.Rest.parentResource(Proposal) model Ballot { @doc("ID of CCF member who signed and submitted this ballot.") - @visibility("query") + @visibility(Lifecycle.Query) @key memberId: memberId; diff --git a/specification/confidentialledger/Microsoft.ManagedCcf/recovery.tsp b/specification/confidentialledger/Microsoft.ManagedCcf/recovery.tsp index 713cd4497ff5..cf6a2279d39a 100644 --- a/specification/confidentialledger/Microsoft.ManagedCcf/recovery.tsp +++ b/specification/confidentialledger/Microsoft.ManagedCcf/recovery.tsp @@ -12,7 +12,7 @@ namespace Microsoft.ManagedCcf.Recovery; @TypeSpec.Rest.resource("encrypted-shares") model EncryptedRecoveryShare { @doc("ID of CCF member who this recovery share belongs to.") - @visibility("query") + @visibility(Lifecycle.Query) @key memberId: memberId; @@ -42,7 +42,7 @@ model RecoveryResponse { @TypeSpec.Rest.resource("members") model Member { @doc("Identifier for member this recovery state applies to.") - @visibility("query") + @visibility(Lifecycle.Query) @key memberId: memberId; } diff --git a/specification/confidentialledger/Microsoft.ManagedCcf/service_state.tsp b/specification/confidentialledger/Microsoft.ManagedCcf/service_state.tsp index 0d84f59a9b4a..6b468f850ba0 100644 --- a/specification/confidentialledger/Microsoft.ManagedCcf/service_state.tsp +++ b/specification/confidentialledger/Microsoft.ManagedCcf/service_state.tsp @@ -129,7 +129,7 @@ model Node { @doc("Constitution used to make governance decisions on the service. All governance changes are presented as proposals which must be validated, approved, and applied by the code in this constitution.") model ConstitutionResponse { @doc("Singleton key for accessing constitution") - @visibility("query") + @visibility(Lifecycle.Query) @key id: "constitution"; @@ -195,7 +195,7 @@ model JsOperations extends Record {} @doc("Describes the currently installed JavaScript application.") model JsApp { @doc("Singleton key for accessing javascript-app.") - @visibility("query") + @visibility(Lifecycle.Query) @key id: "javascript-app"; @@ -233,7 +233,7 @@ model SnpJoinPolicy { @doc("Collection of all policies which determine currently acceptable nodes, across multiple platforms.") model JoinPolicies { @doc("Singleton key for accessing join-policy") - @visibility("query") + @visibility(Lifecycle.Query) @key id: "join-policy"; @@ -278,7 +278,7 @@ scalar caCertBundle extends string; @doc("Describes what Javascript Web Tokens (JWTs) are accepted by the service, and how they will be validated.") model JwkInfo { @doc("Singleton key for accessing jwk") - @visibility("query") + @visibility(Lifecycle.Query) @key id: "jwk"; @@ -311,7 +311,7 @@ union ServiceStatus { @TypeSpec.Rest.resource("service") model ServiceInfo { @doc("Singleton key for accessing info.") - @visibility("query") + @visibility(Lifecycle.Query) @key id: "info"; diff --git a/specification/confidentialledger/Microsoft.ManagedCcf/transactions.tsp b/specification/confidentialledger/Microsoft.ManagedCcf/transactions.tsp index ba526669d83a..8cb34178880a 100644 --- a/specification/confidentialledger/Microsoft.ManagedCcf/transactions.tsp +++ b/specification/confidentialledger/Microsoft.ManagedCcf/transactions.tsp @@ -35,7 +35,7 @@ model Transaction { @TypeSpec.Rest.resource("transactions") model NamedTransaction { @doc("Identifier of the requested transaction.") - @visibility("query") + @visibility(Lifecycle.Query) @key transactionId: transactionId; @@ -46,7 +46,7 @@ model NamedTransaction { @TypeSpec.Rest.resource("transactions") model CommittedTransaction { @doc("Singleton key for accessing commit.") - @visibility("query") + @visibility(Lifecycle.Query) @key id: "commit"; diff --git a/specification/connectedcache/ConnectedCache.Management/models.tsp b/specification/connectedcache/ConnectedCache.Management/models.tsp index 99b41ada5a1e..0f4f85fa55c0 100644 --- a/specification/connectedcache/ConnectedCache.Management/models.tsp +++ b/specification/connectedcache/ConnectedCache.Management/models.tsp @@ -124,7 +124,7 @@ union CycleType { @doc("Model representing Cache Node for ConnectedCache resource") model CacheNodeOldResponse { @doc("The provisioned state of the resource") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @doc("statusCode used to get code details of Mcc response object") @@ -137,7 +137,7 @@ model CacheNodeOldResponse { statusDetails?: string; @doc("status of the HTTP error code") - @visibility("read") + @visibility(Lifecycle.Read) status?: string; @doc("The error details") @@ -148,14 +148,14 @@ model CacheNodeOldResponse { model ConnectedCachePatchResource { #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Existing api" @doc("Resource tags.") - @visibility("read", "update") + @visibility(Lifecycle.Read, Lifecycle.Update) tags?: Record; } @doc("Model representing customer for connectedCache resource") model CustomerProperty { @doc("The provisioned state of the resource") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @doc("Mcc customer resource (customer entity).") @@ -165,23 +165,23 @@ model CustomerProperty { additionalCustomerProperties?: AdditionalCustomerProperties; @doc("Mcc response status code.") - @visibility("read") + @visibility(Lifecycle.Read) statusCode?: string; @doc("Mcc response status text as string for retrieving status details.") - @visibility("read") + @visibility(Lifecycle.Read) statusText?: string; @doc("Mcc response status details for retrieving response inner details.") - @visibility("read") + @visibility(Lifecycle.Read) statusDetails?: string; @doc("HTTP error status code.") - @visibility("read") + @visibility(Lifecycle.Read) status?: string; @doc("Mcc response error details.") - @visibility("read") + @visibility(Lifecycle.Read) error?: Azure.ResourceManager.Foundations.ErrorDetail; } @@ -191,7 +191,7 @@ model CustomerEntity { fullyQualifiedResourceId?: string; @doc("Customer resource Guid Id.") - @visibility("read") + @visibility(Lifecycle.Read) customerId?: string; @doc("Customer resource name.") @@ -213,22 +213,22 @@ model CustomerEntity { releaseVersion?: int32; @doc("Customer resource create async operation Id.") - @visibility("read") + @visibility(Lifecycle.Read) createAsyncOperationId?: string; @doc("Customer resource deletion async operation Id.") - @visibility("read") + @visibility(Lifecycle.Read) deleteAsyncOperationId?: string; @doc("Customer resource client tenant Id of subscription.") clientTenantId?: string; @doc("Customer resource sync attempts.") - @visibility("read") + @visibility(Lifecycle.Read) synchWithAzureAttemptsCount?: int32; @doc("Customer resource last Azure sync timestamp.") - @visibility("read") + @visibility(Lifecycle.Read) lastSyncWithAzureTimestamp?: utcDateTime; @doc("Customer resource flag for enterprise management as boolean.") @@ -244,7 +244,7 @@ model CustomerEntity { verifySignupCode?: boolean; @doc("Customer resource phrase for verifying signup.") - @visibility("create", "update") + @visibility(Lifecycle.Create, Lifecycle.Update) @secret verifySignupPhrase?: string; } @@ -252,71 +252,71 @@ model CustomerEntity { @doc("Model representing customer for connected cache resource") model AdditionalCustomerProperties { @doc("Customer resource last PeeringDB update timestamp.") - @visibility("read") + @visibility(Lifecycle.Read) peeringDbLastUpdateTime?: utcDateTime; @doc("Customer resource cache efficiency.") - @visibility("read") + @visibility(Lifecycle.Read) customerPropertiesOverviewCacheEfficiency?: float32; @doc("Customer resource average egress in Mbps.") - @visibility("read") + @visibility(Lifecycle.Read) customerPropertiesOverviewAverageEgressMbps?: float32; @doc("Customer resource average cache miss throughput in Mbps.") - @visibility("read") + @visibility(Lifecycle.Read) customerPropertiesOverviewAverageMissMbps?: float32; @doc("Customer resource maximum egress in Mbps.") - @visibility("read") + @visibility(Lifecycle.Read) customerPropertiesOverviewEgressMbpsMax?: float32; @doc("Customer resource peak egress timestamp.") - @visibility("read") + @visibility(Lifecycle.Read) customerPropertiesOverviewEgressMbpsMaxDateTime?: utcDateTime; @doc("Customer resource maximum cache miss throughput in Mbps.") - @visibility("read") + @visibility(Lifecycle.Read) customerPropertiesOverviewMissMbpsMax?: float32; @doc("Customer resource peak cache miss throughput timestamp.") - @visibility("read") + @visibility(Lifecycle.Read) customerPropertiesOverviewMissMbpsMaxDateTime?: utcDateTime; @doc("Customer resource total healthy cache nodes.") - @visibility("read") + @visibility(Lifecycle.Read) customerPropertiesOverviewCacheNodesHealthyCount?: int32; @doc("Customer resource total unhealthy cache nodes.") - @visibility("read") + @visibility(Lifecycle.Read) customerPropertiesOverviewCacheNodesUnhealthyCount?: int32; @doc("Customer resource signup status as boolean.") - @visibility("read") + @visibility(Lifecycle.Read) signupStatus?: boolean; @doc("Customer resource signup status as integer code.") - @visibility("read") + @visibility(Lifecycle.Read) signupStatusCode?: int32; @doc("Customer resource signup status as string text.") - @visibility("read") + @visibility(Lifecycle.Read) signupStatusText?: string; @doc("Customer resource signup phase status code as integer.") - @visibility("read") + @visibility(Lifecycle.Read) signupPhaseStatusCode?: int32; @doc("Customer resource signup phase status as string text.") - @visibility("read") + @visibility(Lifecycle.Read) signupPhaseStatusText?: string; @doc("Customer resource last PeeringDB update timestamp.") - @visibility("read") + @visibility(Lifecycle.Read) peeringDbLastUpdateDate?: utcDateTime; @doc("Customer resource owner organization name.") - @visibility("read") + @visibility(Lifecycle.Read) customerOrgName?: string; @doc("Customer resource contact email.") @@ -332,7 +332,7 @@ model AdditionalCustomerProperties { customerAsn?: string; @doc("Customer resource estimated Asn peering peak in Gbps.") - @visibility("read") + @visibility(Lifecycle.Read) customerAsnEstimatedEgressPeekGbps?: float32; @doc("Customer resource entitlement Sku Id.") @@ -366,7 +366,7 @@ model AdditionalCustomerProperties { @doc("Model representing an Mcc cache node connectedCache resource") model CacheNodeProperty { @doc("The provisioned state of the resource") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @doc("Mcc cache node resource (cache node entity).") @@ -385,7 +385,7 @@ model CacheNodeProperty { statusDetails?: string; @doc("HTTP error status code.") - @visibility("read") + @visibility(Lifecycle.Read) status?: string; @doc("Mcc response error details.") @@ -398,7 +398,7 @@ model CacheNodeEntity { fullyQualifiedResourceId?: string; @doc("Cache node resource customer resource GUID Id.") - @visibility("read") + @visibility(Lifecycle.Read) customerId?: string; @doc("Cache node resource customer resource name.") @@ -426,147 +426,147 @@ model CacheNodeEntity { maxAllowableEgressInMbps?: int32; @doc("Cache node resource maximum allowed probability of egress.") - @visibility("read") + @visibility(Lifecycle.Read) maxAllowableProbability?: float32; @doc("Cache node resource Azure XCid.") - @visibility("read") + @visibility(Lifecycle.Read) xCid?: string; @doc("Cache node resource flag for determining if managed by enterprise as boolean.") isEnterpriseManaged?: boolean; @doc("Cache node resource create async operation Id.") - @visibility("read") + @visibility(Lifecycle.Read) createAsyncOperationId?: string; @doc("Cache node resource deletion async operation Id.") - @visibility("read") + @visibility(Lifecycle.Read) deleteAsyncOperationId?: string; @doc("Cache node resource customer resource client tenant Id of subscription.") - @visibility("read") + @visibility(Lifecycle.Read) clientTenantId?: string; @doc("Cache node resource category.") - @visibility("read") + @visibility(Lifecycle.Read) category?: string; @doc("Cache node resource release version.") - @visibility("read") + @visibility(Lifecycle.Read) releaseVersion?: int32; @doc("Cache node resource last sync timestamp.") - @visibility("read") + @visibility(Lifecycle.Read) lastSyncWithAzureTimestamp?: utcDateTime; @doc("Cache node resource last backend updated timestamp.") - @visibility("read") + @visibility(Lifecycle.Read) lastUpdatedTimestamp?: utcDateTime; @doc("Cache node resource attempts to sync with Azure.") - @visibility("read") + @visibility(Lifecycle.Read) synchWithAzureAttemptsCount?: int32; @doc("Cache node resource container configuration details.") - @visibility("read") + @visibility(Lifecycle.Read) containerConfigurations?: string; @doc("Cache node resource comma separated values of Cidrs.") cidrCsv?: string[]; @doc("Cache node resource last Cidr Csv update timestamp") - @visibility("read") + @visibility(Lifecycle.Read) cidrCsvLastUpdateTime?: utcDateTime; @doc("Cache node resource last Bgp Cidr Csv update timestamp") - @visibility("read") + @visibility(Lifecycle.Read) bgpCidrCsvLastUpdateTime?: utcDateTime; @doc("Cache node resource last Bgp report timestamp.") - @visibility("read") + @visibility(Lifecycle.Read) bgpLastReportedTime?: utcDateTime; @doc("Cache node resource Bgp review state string text in detail.") - @visibility("read") + @visibility(Lifecycle.Read) bgpReviewStateText?: string; @doc("Cache node resource Bgp review state string text.") - @visibility("read") + @visibility(Lifecycle.Read) bgpReviewState?: BgpReviewStateEnum; @doc("Cache node resource Bgp review feedback text.") - @visibility("read") + @visibility(Lifecycle.Read) bgpReviewFeedback?: string; @doc("Cache node resource Bgp update count.") - @visibility("read") + @visibility(Lifecycle.Read) bgpNumberOfTimesUpdated?: int32; @doc("Cache node resource Bgp record count.") - @visibility("read") + @visibility(Lifecycle.Read) bgpNumberOfRecords?: int32; @doc("Cache node resource Bgp block count.") - @visibility("read") + @visibility(Lifecycle.Read) bgpCidrBlocksCount?: int32; @doc("Cache node resource total addressable space defined by Bgp and Cidr Csv blocks.") - @visibility("read") + @visibility(Lifecycle.Read) bgpAddressSpace?: int32; @doc("Cache node resource flag for determining if customer will be migrated.") shouldMigrate?: boolean; @doc("Cache node resource bytes truncated from Bgp output file.") - @visibility("read") + @visibility(Lifecycle.Read) bgpFileBytesTruncated?: int32; @doc("Cache node resource current Cidr range precedence selection type.") cidrSelectionType?: int32; @doc("Cache node resource flag for indicating the cache node resource is frozen (not selectable, not editable in UI).") - @visibility("read") + @visibility(Lifecycle.Read) isFrozen?: boolean; @doc("Cache node resource review process state as integer") - @visibility("read") + @visibility(Lifecycle.Read) reviewState?: int32; @doc("Cache node resource review state text.") - @visibility("read") + @visibility(Lifecycle.Read) reviewStateText?: string; @doc("Cache node resource review feedback text.") - @visibility("read") + @visibility(Lifecycle.Read) reviewFeedback?: string; @doc("Cache node resource configuration state.") - @visibility("read") + @visibility(Lifecycle.Read) configurationState?: ConfigurationState; @doc("Cache node resource configuration state text.") - @visibility("read") + @visibility(Lifecycle.Read) configurationStateText?: string; @doc("Cache node resource total addressable space defined by the Cidr Csv block.") - @visibility("read") + @visibility(Lifecycle.Read) addressSpace?: int32; @doc("Cache node resource Mcc container deployment worker connection count.") - @visibility("read") + @visibility(Lifecycle.Read) workerConnections?: int32; @doc("Cache node resource last updated Mcc container deployment worker connection count timestamp.") - @visibility("read") + @visibility(Lifecycle.Read) workerConnectionsLastUpdatedDateTime?: utcDateTime; @doc("Cache node resource Mcc container configuration details re-sync trigger.") - @visibility("read") + @visibility(Lifecycle.Read) containerResyncTrigger?: int32; @doc("Cache node resource Mcc Container Id Uri.") - @visibility("read") + @visibility(Lifecycle.Read) imageUri?: string; @doc("FQDN(fully qualified domain name) value of the mcc cache node") @@ -596,35 +596,35 @@ model AdditionalCacheNodeProperties { cacheNodePropertiesDetailsIssuesList?: string[]; @doc("Cache node resource aggregated status details.") - @visibility("read") + @visibility(Lifecycle.Read) aggregatedStatusDetails?: string; @doc("Cache node resource aggregated status text.") - @visibility("read") + @visibility(Lifecycle.Read) aggregatedStatusText?: string; @doc("Cache node resource aggregated status code.") - @visibility("read") + @visibility(Lifecycle.Read) aggregatedStatusCode?: int32; @doc("Cache node resource Mcc product version.") - @visibility("read") + @visibility(Lifecycle.Read) productVersion?: string; @doc("Cache node resource flag indicating if cache node has been physically installed or provisioned on their physical lab.") - @visibility("read") + @visibility(Lifecycle.Read) isProvisioned?: boolean; @doc("Cache node resource detailed state text.") - @visibility("read") + @visibility(Lifecycle.Read) cacheNodeStateDetailedText?: string; @doc("Cache node resource short state text.") - @visibility("read") + @visibility(Lifecycle.Read) cacheNodeStateShortText?: string; @doc("Cache node resource state as integer.") - @visibility("read") + @visibility(Lifecycle.Read) cacheNodeState?: int32; #suppress "@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers" "" @@ -659,31 +659,31 @@ model AdditionalCacheNodeProperties { updateRequestedDateTime?: utcDateTime; @doc("Auto update version that is the Next available version to update on mcc cache node") - @visibility("read") + @visibility(Lifecycle.Read) autoUpdateNextAvailableVersion?: string; @doc("Auto update last applied date time of mcc install") - @visibility("read") + @visibility(Lifecycle.Read) autoUpdateNextAvailableDateTime?: utcDateTime; @doc("Auto update version that is the applied to update on mcc cache node") - @visibility("read") + @visibility(Lifecycle.Read) autoUpdateAppliedVersion?: string; @doc("Auto Update status details from the backend after applying the new version details") - @visibility("read") + @visibility(Lifecycle.Read) autoUpdateLastAppliedDetails?: string; @doc("Last applied auto update state for mcc install of auto update cycle") - @visibility("read") + @visibility(Lifecycle.Read) autoUpdateLastAppliedState?: string; @doc("Auto update last applied date time of mcc install") - @visibility("read") + @visibility(Lifecycle.Read) autoUpdateLastAppliedDateTime?: utcDateTime; @doc("Auto update last triggered date time of mcc install") - @visibility("read") + @visibility(Lifecycle.Read) autoUpdateLastTriggeredDateTime?: utcDateTime; @doc("Optional property #1 of Mcc response object") @@ -742,7 +742,7 @@ model MccCacheNodeBgpCidrDetails @doc("Mcc cache node Bgp Cidr details.") model BgpCidrsConfiguration { @doc("Mcc cache node Bgp Cidr details.") - @visibility("read") + @visibility(Lifecycle.Read) bgpCidrs?: string[]; } @@ -763,17 +763,17 @@ model CacheNodeInstallProperties { cacheNodeId?: string; @doc("Mcc primary account key. Internal to Mcc.") - @visibility("read") + @visibility(Lifecycle.Read) @secret primaryAccountKey?: string; @doc("Mcc secondary account key. Internal to Mcc.") - @visibility("read") + @visibility(Lifecycle.Read) @secret secondaryAccountKey?: string; @doc("Mcc Iot Central temporary device registration key, used once.") - @visibility("read") + @visibility(Lifecycle.Read) @secret registrationKey?: string; } diff --git a/specification/containerservice/Fleet.Management/fleet.tsp b/specification/containerservice/Fleet.Management/fleet.tsp index ab7435f608ab..bc95cd98e9c0 100644 --- a/specification/containerservice/Fleet.Management/fleet.tsp +++ b/specification/containerservice/Fleet.Management/fleet.tsp @@ -25,7 +25,7 @@ model Fleet is TrackedResource { @key("fleetName") @path @segment("fleets") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) name: string; ...EntityTagProperty; @@ -42,7 +42,7 @@ model FleetProperties { // omitting it for now as response headers do not impact SDK generation. // ...EtagResponseEnvelope; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: FleetProvisioningState; @@ -61,7 +61,7 @@ model FleetProperties { @doc("The FleetHubProfile configures the fleet hub.") model FleetHubProfile { @doc("DNS prefix used to create the FQDN for the Fleet hub.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][a-zA-Z0-9-]{0,52}[a-zA-Z0-9]$") @minLength(1) @maxLength(54) @@ -69,24 +69,24 @@ model FleetHubProfile { @added(Versions.v2023_06_15_preview) @doc("The access profile for the Fleet hub API server.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) apiServerAccessProfile?: APIServerAccessProfile; @added(Versions.v2023_06_15_preview) @doc("The agent profile for the Fleet hub.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) agentProfile?: AgentProfile; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The FQDN of the Fleet hub.") fqdn?: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The Kubernetes version of the Fleet hub.") kubernetesVersion?: string; @added(Versions.v2023_08_15_preview) - @visibility("read") + @visibility(Lifecycle.Read) @doc("The Azure Portal FQDN of the Fleet hub.") portalFqdn?: string; } @@ -101,18 +101,18 @@ scalar SubnetResourceId #suppress "@azure-tools/typespec-azure-core/casing-style" "match existing AKS APIServerAccessProfile" @doc("Access profile for the Fleet hub API server.") model APIServerAccessProfile { - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("Whether to create the Fleet hub as a private cluster or not.") enablePrivateCluster?: boolean; - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @added(Versions.v2023_06_15_preview) @removed(Versions.v2024_04_01) @added(Versions.v2024_05_02_preview) @doc("Whether to enable apiserver vnet integration for the Fleet hub or not.") enableVnetIntegration?: boolean; - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @added(Versions.v2023_06_15_preview) @removed(Versions.v2024_04_01) @added(Versions.v2024_05_02_preview) @@ -122,13 +122,13 @@ model APIServerAccessProfile { @doc("Agent profile for the Fleet hub.") model AgentProfile { - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("The ID of the subnet which the Fleet hub node will join on startup. If this is not specified, a vnet and subnet will be generated and used.") subnetId?: SubnetResourceId; @added(Versions.v2023_08_15_preview) @doc("The virtual machine size of the Fleet hub.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) vmSize?: string; } @@ -163,18 +163,18 @@ model FleetPatch { @doc("One credential result item.") model FleetCredentialResult { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The name of the credential.") name?: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("Base64-encoded Kubernetes configuration file.") value?: bytes; } @doc("The Credential results response.") model FleetCredentialResults { - @visibility("read") + @visibility(Lifecycle.Read) @doc("Array of base64-encoded Kubernetes configuration files.") @extension("x-ms-identifiers", ["name"]) kubeconfigs?: FleetCredentialResult[]; diff --git a/specification/containerservice/Fleet.Management/fleetmember.tsp b/specification/containerservice/Fleet.Management/fleetmember.tsp index 6da428ce9561..773411ddf84a 100644 --- a/specification/containerservice/Fleet.Management/fleetmember.tsp +++ b/specification/containerservice/Fleet.Management/fleetmember.tsp @@ -21,7 +21,7 @@ model FleetMember is ProxyResource { @key("fleetMemberName") @path @segment("members") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) name: string; ...EntityTagProperty; @@ -40,7 +40,7 @@ model FleetMemberProperties { // omitting it for now as response headers do not impact SDK generation. // ...EtagResponseEnvelope; - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) @doc("The ARM resource id of the cluster that joins the Fleet. Must be a valid Azure resource id. e.g.: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{clusterName}'.") clusterResourceId: ClusterResourceId; @@ -51,7 +51,7 @@ model FleetMemberProperties { @added(Versions.v2023_03_15_preview) group?: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: FleetMemberProvisioningState; } diff --git a/specification/containerservice/Fleet.Management/update/autoupgradeprofile.tsp b/specification/containerservice/Fleet.Management/update/autoupgradeprofile.tsp index f2840d188c41..0e99abc36d33 100644 --- a/specification/containerservice/Fleet.Management/update/autoupgradeprofile.tsp +++ b/specification/containerservice/Fleet.Management/update/autoupgradeprofile.tsp @@ -30,7 +30,7 @@ model AutoUpgradeProfile @minLength(1) @maxLength(50) @path - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) name: string; ...EntityTagProperty; @@ -45,11 +45,11 @@ union AutoUpgradeProfileProvisioningState { @doc("The properties of the AutoUpgradeProfile.") @added(Versions.v2024_05_02_preview) model AutoUpgradeProfileProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The provisioning state of the AutoUpgradeProfile resource.") provisioningState?: AutoUpgradeProfileProvisioningState; - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) @doc("The resource id of the UpdateStrategy resource to reference. If not specified, the auto upgrade will run on all clusters which are members of the fleet.") updateStrategyId?: FleetUpdateStrategyResourceId; @@ -88,7 +88,7 @@ union UpgradeChannel { @doc("The node image upgrade to be applied to the target clusters in auto upgrade.") @added(Versions.v2024_05_02_preview) model AutoUpgradeNodeImageSelection { - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) @doc("The node image upgrade type.") type: AutoUpgradeNodeImageSelectionType; } diff --git a/specification/containerservice/Fleet.Management/update/run.tsp b/specification/containerservice/Fleet.Management/update/run.tsp index c4545b678ddb..3a3cb290822b 100644 --- a/specification/containerservice/Fleet.Management/update/run.tsp +++ b/specification/containerservice/Fleet.Management/update/run.tsp @@ -24,7 +24,7 @@ model UpdateRun is ProxyResource { @minLength(1) @maxLength(50) @path - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) name: string; ...EntityTagProperty; @@ -45,7 +45,7 @@ scalar FleetUpdateStrategyResourceId @doc("The properties of the UpdateRun.") model UpdateRunProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The provisioning state of the UpdateRun resource.") provisioningState?: UpdateRunProvisioningState; @@ -76,7 +76,7 @@ model UpdateRunProperties { @doc("The update to be applied to all clusters in the UpdateRun. The managedClusterUpdate can be modified until the run is started.") managedClusterUpdate: ManagedClusterUpdate; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the UpdateRun.") status?: UpdateRunStatus; } @@ -86,7 +86,7 @@ model ManagedClusterUpdate { @doc("The upgrade to apply to the ManagedClusters.") upgrade: ManagedClusterUpgradeSpec; - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) @doc("The node image upgrade to be applied to the target nodes in update run.") @added(Versions.v2023_06_15_preview) nodeImageSelection?: NodeImageSelection; @@ -95,7 +95,7 @@ model ManagedClusterUpdate { @doc("The node image upgrade to be applied to the target nodes in update run.") @added(Versions.v2023_06_15_preview) model NodeImageSelection { - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) @doc("The node image upgrade type.") type: NodeImageSelectionType; @@ -176,35 +176,35 @@ union UpdateState { @doc("The status for an operation or group of operations.") model UpdateStatus { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The time the operation or group was started.") startTime?: utcDateTime; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The time the operation or group was completed.") completedTime?: utcDateTime; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The State of the operation or group.") state?: UpdateState; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The error details when a failure is encountered.") error?: Azure.ResourceManager.Foundations.ErrorDetail; // https://github.com/Azure/azure-rest-api-specs/blob/1de0b5315d62e1b40052bad2c9a2f2c89d84ff0f/specification/common-types/resource-management/v5/types.json#L260 } @doc("The status of a UpdateRun.") model UpdateRunStatus { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the UpdateRun.") status?: UpdateStatus; - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["name"]) @doc("The stages composing an update run. Stages are run sequentially withing an UpdateRun.") stages?: UpdateStageStatus[]; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The node image upgrade specs for the update run. It is only set in update run when `NodeImageSelection.type` is `Consistent`.") @added(Versions.v2023_06_15_preview) nodeImageSelection?: NodeImageSelectionStatus; @@ -214,7 +214,7 @@ model UpdateRunStatus { @added(Versions.v2023_06_15_preview) model NodeImageSelectionStatus { @extension("x-ms-identifiers", ["version"]) - @visibility("read") + @visibility(Lifecycle.Read) @doc("The image versions to upgrade the nodes to.") selectedNodeImageVersions?: NodeImageVersion[]; } @@ -222,42 +222,42 @@ model NodeImageSelectionStatus { @doc("The node upgrade image version.") @added(Versions.v2023_06_15_preview) model NodeImageVersion { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The image version to upgrade the nodes to (e.g., 'AKSUbuntu-1804gen2containerd-2022.12.13').") version?: string; } @doc("The status of a UpdateStage.") model UpdateStageStatus { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the UpdateStage.") status?: UpdateStatus; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The name of the UpdateStage.") name?: string; - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["name"]) @doc("The list of groups to be updated as part of this UpdateStage.") groups?: UpdateGroupStatus[]; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the wait period configured on the UpdateStage.") afterStageWaitStatus?: WaitStatus; } @doc("The status of a UpdateGroup.") model UpdateGroupStatus { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the UpdateGroup.") status?: UpdateStatus; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The name of the UpdateGroup.") name?: string; - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["name"]) @doc("The list of member this UpdateGroup updates.") members?: MemberUpdateStatus[]; @@ -265,34 +265,34 @@ model UpdateGroupStatus { @doc("The status of the wait duration.") model WaitStatus { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the wait duration.") status?: UpdateStatus; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The wait duration configured in seconds.") waitDurationInSeconds?: int32; } @doc("The status of a member update operation.") model MemberUpdateStatus { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the MemberUpdate operation.") status?: UpdateStatus; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The name of the FleetMember.") name?: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The Azure resource id of the target Kubernetes cluster.") clusterResourceId?: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The operation resource id of the latest attempt to perform the operation.") operationId?: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status message after processing the member update operation.") @added(Versions.v2023_06_15_preview) message?: string; diff --git a/specification/containerservice/Fleet.Management/update/strategy.tsp b/specification/containerservice/Fleet.Management/update/strategy.tsp index 38c5e48fed09..611d7f493a47 100644 --- a/specification/containerservice/Fleet.Management/update/strategy.tsp +++ b/specification/containerservice/Fleet.Management/update/strategy.tsp @@ -27,7 +27,7 @@ model FleetUpdateStrategy is ProxyResource { @minLength(1) @maxLength(50) @path - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) name: string; ...EntityTagProperty; @@ -41,11 +41,11 @@ union FleetUpdateStrategyProvisioningState { @doc("The properties of the UpdateStrategy.") model FleetUpdateStrategyProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The provisioning state of the UpdateStrategy resource.") provisioningState?: FleetUpdateStrategyProvisioningState; - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) @doc("Defines the update sequence of the clusters.") strategy: UpdateRunStrategy; } diff --git a/specification/containerstorage/ContainerStorage.Management/assignment.tsp b/specification/containerstorage/ContainerStorage.Management/assignment.tsp index 7db50eb86839..fe6cd24d2269 100644 --- a/specification/containerstorage/ContainerStorage.Management/assignment.tsp +++ b/specification/containerstorage/ContainerStorage.Management/assignment.tsp @@ -37,11 +37,11 @@ scalar AssignmentId @doc("Assignment Properties") model Assignment { - @visibility("read") + @visibility(Lifecycle.Read) @doc("Indicates if the assignment is in a usable state") status?: AssignmentStatus; - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("Resource id for the assigned resource") id: AssignmentId; } diff --git a/specification/containerstorage/ContainerStorage.Management/pool.tsp b/specification/containerstorage/ContainerStorage.Management/pool.tsp index 058c739b4908..10a18f019487 100644 --- a/specification/containerstorage/ContainerStorage.Management/pool.tsp +++ b/specification/containerstorage/ContainerStorage.Management/pool.tsp @@ -49,14 +49,14 @@ model Pool is TrackedResource { @doc("Pool Properties") model PoolProperties { @doc("The status of the last operation.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @doc("The operational status of the resource") - @visibility("read") + @visibility(Lifecycle.Read) status?: ResourceOperationalStatus; - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @maxItems(3) @doc("List of availability zones that resources can be created in.") zones?: Zone[]; @@ -68,7 +68,7 @@ model PoolProperties { poolType: PoolType; @doc("ReclaimPolicy defines what happens to the backend storage when StoragePool is deleted") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) reclaimPolicy?: ReclaimPolicy; @doc("List of resources that should have access to the pool. Typically ARM references to AKS clusters or ACI Container Groups. For local and standard this must be a single reference. For ElasticSAN there can be many.") @@ -137,16 +137,16 @@ model Disk { @doc("Properties shared between azureDisk and elasticSan") model ProvisionedPoolProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("Managed resource group for the pool.") resourceGroup?: string; - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("Sku name") skuName?: SkuType; @doc("Encryption specifies the encryption configuration for the Azure Disk pool") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) encryption?: Encryption; } diff --git a/specification/containerstorage/ContainerStorage.Management/snapshot.tsp b/specification/containerstorage/ContainerStorage.Management/snapshot.tsp index 985c25b21a13..520655fe2278 100644 --- a/specification/containerstorage/ContainerStorage.Management/snapshot.tsp +++ b/specification/containerstorage/ContainerStorage.Management/snapshot.tsp @@ -43,18 +43,18 @@ model Snapshot is ProxyResource { @doc("Volume Snapshot Properties") model SnapshotProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; @doc("The status of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) status?: ResourceOperationalStatus; @doc("Reference to the source volume") @minLength(3) @maxLength(253) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) source: string; } diff --git a/specification/containerstorage/ContainerStorage.Management/volume.tsp b/specification/containerstorage/ContainerStorage.Management/volume.tsp index c730fd1676cc..807f05b3e392 100644 --- a/specification/containerstorage/ContainerStorage.Management/volume.tsp +++ b/specification/containerstorage/ContainerStorage.Management/volume.tsp @@ -50,12 +50,12 @@ model Volume is ProxyResource { @doc("Volume Properties") model VolumeProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; @doc("The status of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) status?: ResourceOperationalStatus; #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "existing API" @@ -67,14 +67,14 @@ model VolumeProperties { @minValue(1) capacityGiB: int64; - @visibility("read") + @visibility(Lifecycle.Read) @doc("Properties of the volume") volumeType?: VolumeType; } @doc("Properties of the volume") model VolumeType { - @visibility("read") + @visibility(Lifecycle.Read) @doc("Properties of the ElasticSAN iSCSI target") elasticSan?: ElasticSanVolumeProperties; } diff --git a/specification/contosowidgetmanager/Contoso.Management/employee.tsp b/specification/contosowidgetmanager/Contoso.Management/employee.tsp index b796033881f6..89df5a216649 100644 --- a/specification/contosowidgetmanager/Contoso.Management/employee.tsp +++ b/specification/contosowidgetmanager/Contoso.Management/employee.tsp @@ -28,7 +28,7 @@ model EmployeeProperties { profile?: bytes; /** The status of the last operation. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/contosowidgetmanager/Contoso.WidgetManager/main.tsp b/specification/contosowidgetmanager/Contoso.WidgetManager/main.tsp index 7e5e683af7f9..8d7d0cccf046 100644 --- a/specification/contosowidgetmanager/Contoso.WidgetManager/main.tsp +++ b/specification/contosowidgetmanager/Contoso.WidgetManager/main.tsp @@ -28,7 +28,7 @@ enum Versions { model WidgetSuite { @key("widgetName") @doc("The widget name.") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("The ID of the widget's manufacturer.") diff --git a/specification/databasefleetmanager/DatabaseFleetManager.Management/models.tsp b/specification/databasefleetmanager/DatabaseFleetManager.Management/models.tsp index b8317ee17f3f..52a09bba7c0c 100644 --- a/specification/databasefleetmanager/DatabaseFleetManager.Management/models.tsp +++ b/specification/databasefleetmanager/DatabaseFleetManager.Management/models.tsp @@ -103,7 +103,7 @@ model DatabaseChangeTierDefinition { /** * A target tier name. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) targetTierName?: string; } @@ -114,101 +114,101 @@ model FleetDatabaseProperties { /** * Resource identifier for the underlying database resource. */ - @visibility("read") + @visibility(Lifecycle.Read) originalDatabaseId?: string; /** * Database state. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: AzureProvisioningState; /** * Create mode. Available options: Default - Create a database. Copy - Copy the source database (source database name must be specified) PointInTimeRestore - Create a database by restoring source database from a point in time (source database name and restore from time must be specified) */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) createMode?: DatabaseCreateMode; /** * Name of the tier this database belongs to. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) tierName?: string; /** * Connection string to connect to the database with. */ - @visibility("read") + @visibility(Lifecycle.Read) connectionString?: string; /** * If true, database is recoverable. */ - @visibility("read") + @visibility(Lifecycle.Read) recoverable?: boolean; /** * Restore from time when CreateMode is PointInTimeRestore. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. restoreFromTime?: utcDateTime; /** * Earliest restore time. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. earliestRestoreTime?: utcDateTime; /** * Latest restore time. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. latestRestoreTime?: utcDateTime; /** * Backup retention in days. */ - @visibility("read") + @visibility(Lifecycle.Read) backupRetentionDays?: int32; /** * Maximum database size in Gb. */ - @visibility("read") + @visibility(Lifecycle.Read) databaseSizeGbMax?: int32; /** * Source database name used when CreateMode is Copy or PointInTimeRestore. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) sourceDatabaseName?: string; /** * Additional database properties to be applied as the underlying database resource tags. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Model properties or operation parameters should not be of type Record. ARM requires Resource provider teams to define types explicitly." - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) resourceTags?: Record; /** * Identity property. */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) identity?: Identity; /** * Transparent Data Encryption properties */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) transparentDataEncryption?: TransparentDataEncryption; /** * Database collation. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) collation?: string; } @@ -219,20 +219,20 @@ model Identity { /** * Identity type of the main principal. */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) identityType?: IdentityType; /** * User identity ids */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @OpenAPI.extension("x-ms-identifiers", []) userAssignedIdentities?: DatabaseIdentity[]; /** * The federated client id for the SQL Database. It is used for cross tenant CMK scenario. */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) federatedClientId?: uuid; } @@ -243,7 +243,7 @@ model DatabaseIdentity { /** * Resource Id of the database identity. */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) resourceId?: Azure.Core.armResourceIdentifier<[ { type: "Microsoft.ManagedIdentity/userAssignedIdentities"; @@ -253,13 +253,13 @@ model DatabaseIdentity { /** * Principal Id of the database identity. */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) principalId?: uuid; /** * Client Id of the database identity. */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) clientId?: uuid; } @@ -270,19 +270,19 @@ model TransparentDataEncryption { /** * Customer Managed Key (CMK) Uri. */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) keyUri?: url; /** * Additional Keys */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) keys?: string[]; /** * Enable key auto rotation */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) enableAutoRotation?: boolean; } @@ -293,7 +293,7 @@ model DatabaseRenameDefinition { /** * New database name. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) newName?: string; } @@ -304,19 +304,19 @@ model FirewallRuleProperties { /** * Start IP address. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) startIpAddress?: string; /** * End IP address. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) endIpAddress?: string; /** * Provisioning state. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: AzureProvisioningState; } @@ -328,13 +328,13 @@ model FleetUpdate { * Resource tags. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "existing API" - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) tags?: Record; /** * The Database Fleet properties. */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) properties?: FleetProperties; } @@ -345,13 +345,13 @@ model FleetProperties { /** * Fleet description. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) description?: string; /** * Provisioning state. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: AzureProvisioningState; } @@ -362,19 +362,19 @@ model DestinationTierOverride { /** * Resource type. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) resourceType: ResourceType; /** * Destination tier name. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) tierName: string; /** * Resource name. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) resourceName: string; } @@ -385,31 +385,31 @@ model MainPrincipal { /** * Login name of the main principal. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) login?: string; /** * Application Id of the main principal. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) applicationId?: uuid; /** * Object Id of the main principal. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) objectId?: uuid; /** * Tenant Id of the main principal. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) tenantId?: uuid; /** * Principal type of the main principal. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) principalType?: PrincipalType; } @@ -420,19 +420,19 @@ model FleetspaceProperties { /** * Fleetspace state. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: AzureProvisioningState; /** * Maximum number of vCores database fleet manager is allowed to provision in the fleetspace. */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) capacityMax?: int32; /** * Main Microsoft Entra ID principal that has admin access to all databases in the fleetspace. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) mainPrincipal?: MainPrincipal; } @@ -443,31 +443,31 @@ model RegisterServerDefinition { /** * Destination tier name. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) tierName?: string; /** * Source subscription id. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) sourceSubscriptionId?: string; /** * Source resource group name. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) sourceResourceGroupName?: string; /** * Source SQL Server name. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) sourceServerName?: string; /** * Destination tier overrides. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @OpenAPI.extension("x-ms-identifiers", []) destinationTierOverrides?: DestinationTierOverride[]; } @@ -479,79 +479,79 @@ model FleetTierProperties { /** * If true, tier is disabled. */ - @visibility("read") + @visibility(Lifecycle.Read) disabled?: boolean; /** * If true, serverless resources are provisioned in the tier. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) serverless?: boolean; /** * If true, databases are pooled. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) pooled?: boolean; /** * Service tier of provisioned resources. Supported values: GeneralPurpose, Hyperscale. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) serviceTier?: string; /** * Family of provisioned resources, for example Gen5. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) family?: string; /** * Capacity of provisioned resources in the tier, in units matching the specified service tier, for example vCore for GeneralPurpose. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) capacity?: int32; /** * Maximum number of databases per pool. */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) poolNumOfDatabasesMax?: int32; /** * Number of high availability replicas for databases in this tier. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) highAvailabilityReplicaCount?: int32; /** * Enable zone redundancy for all databases in this tier. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) zoneRedundancy?: ZoneRedundancy; /** * Minimum allocated capacity per database, in units matching the specified service tier. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) databaseCapacityMin?: float64; /** * Maximum allocated capacity per database, in units matching the specified service tier. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) databaseCapacityMax?: float64; /** * Maximum database size in Gb. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) databaseSizeGbMax?: int32; /** * Provisioning state. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: AzureProvisioningState; } @@ -562,6 +562,6 @@ model FleetDatabaseFilterParameters { /** * Filter on database tier name. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) tierName?: string; } diff --git a/specification/databasewatcher/DatabaseWatcher.Management/alertRuleResources.tsp b/specification/databasewatcher/DatabaseWatcher.Management/alertRuleResources.tsp index fedb1f03b13a..3b88ec25ae0e 100644 --- a/specification/databasewatcher/DatabaseWatcher.Management/alertRuleResources.tsp +++ b/specification/databasewatcher/DatabaseWatcher.Management/alertRuleResources.tsp @@ -45,7 +45,7 @@ model AlertRuleResourceProperties { @doc("The creation time of the alert rule resource.") creationTime: utcDateTime; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The provisioning state of the alert rule resource.") provisioningState?: ResourceProvisioningState; diff --git a/specification/databasewatcher/DatabaseWatcher.Management/baseTarget.tsp b/specification/databasewatcher/DatabaseWatcher.Management/baseTarget.tsp index 2ec06866bdb6..eaeb07df482a 100644 --- a/specification/databasewatcher/DatabaseWatcher.Management/baseTarget.tsp +++ b/specification/databasewatcher/DatabaseWatcher.Management/baseTarget.tsp @@ -42,7 +42,7 @@ model TargetProperties { @maxLength(200) connectionServerName: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The provisioning state of the resource.") provisioningState?: ResourceProvisioningState; } diff --git a/specification/databasewatcher/DatabaseWatcher.Management/healthValidation.tsp b/specification/databasewatcher/DatabaseWatcher.Management/healthValidation.tsp index c3fded3d3ce3..fed4016a9a12 100644 --- a/specification/databasewatcher/DatabaseWatcher.Management/healthValidation.tsp +++ b/specification/databasewatcher/DatabaseWatcher.Management/healthValidation.tsp @@ -36,24 +36,24 @@ model HealthValidation is ProxyResource { @doc("The generic properties of the health validation resource.") @added(Versions.v2024_10_01_preview) model HealthValidationProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The start time of health validation, in UTC.") startTime: utcDateTime; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The end time of health validation, in UTC.") endTime: utcDateTime; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The current health validation status.") status: validationStatus; - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) @doc("The list of issues found by health validation.") issues: ValidationIssue[]; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The provisioning state of the health validation resource.") provisioningState?: ResourceProvisioningState; } @@ -85,31 +85,31 @@ union validationStatus { @doc("The model of a health validation issue.") @added(Versions.v2024_10_01_preview) model ValidationIssue { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The error code of the issue.") errorCode: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The error message of the issue.") errorMessage: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The additional details for the issue.") additionalDetails?: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The recommendation for resolving the issue.") recommendationMessage: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The URL related to resolving the issue.") recommendationUrl?: url; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The resource ID of the Azure resource related to the issue.") relatedResourceId?: Azure.Core.armResourceIdentifier<[]>; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The type of the Azure resource related to the issue.") relatedResourceType?: string; } diff --git a/specification/databasewatcher/DatabaseWatcher.Management/sharedPrivateLinkResource.tsp b/specification/databasewatcher/DatabaseWatcher.Management/sharedPrivateLinkResource.tsp index 8a15cad9787f..4ba6638e2d63 100644 --- a/specification/databasewatcher/DatabaseWatcher.Management/sharedPrivateLinkResource.tsp +++ b/specification/databasewatcher/DatabaseWatcher.Management/sharedPrivateLinkResource.tsp @@ -47,11 +47,11 @@ model SharedPrivateLinkResourceProperties { @doc("The DNS zone segment to be included in the DNS name of the shared private link. Value is required for Azure Data Explorer clusters and SQL managed instances, and must be omitted for SQL logical servers and key vaults. The value is the second segment of the host FQDN name of the resource that the shared private link resource is for. For example: if the host name is 'adx-cluster-21187695.eastus.kusto.windows.net', then the value is 'eastus'; if the host name is 'sql-mi-23961134.767d5869f605.database.windows.net', then the value is '767d5869f605'.") dnsZone?: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected.") status?: SharedPrivateLinkResourceStatus; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The provisioning state of the resource.") provisioningState?: ResourceProvisioningState; } diff --git a/specification/databasewatcher/DatabaseWatcher.Management/watcher.tsp b/specification/databasewatcher/DatabaseWatcher.Management/watcher.tsp index 16e1b4e24bd4..a74b572b864a 100644 --- a/specification/databasewatcher/DatabaseWatcher.Management/watcher.tsp +++ b/specification/databasewatcher/DatabaseWatcher.Management/watcher.tsp @@ -69,10 +69,10 @@ model WatcherProperties { datastore?: Datastore; @doc("The monitoring collection status of the watcher.") - @visibility("read") + @visibility(Lifecycle.Read) status?: WatcherStatus; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The provisioning state of the resource watcher.") provisioningState?: DatabaseWatcherProvisioningState; diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp index 4d06fa4ab090..806da12d0f37 100644 --- a/specification/devcenter/DevCenter/DevBox/models.tsp +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -417,7 +417,7 @@ model Pool { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility("read") + @visibility(Lifecycle.Read) @doc("Pool name.") name: string; @@ -466,17 +466,17 @@ model Pool { @doc("Hardware specifications for the Dev Box.") model HardwareProfile { @doc("The name of the SKU.") - @visibility("read") + @visibility(Lifecycle.Read) skuName?: SkuName; #suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" @doc("The number of vCPUs available for the Dev Box.") - @visibility("read") + @visibility(Lifecycle.Read) vCPUs?: int32; #suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" @doc("The amount of memory available for the Dev Box.") - @visibility("read") + @visibility(Lifecycle.Read) memoryGB?: int32; } @@ -490,30 +490,30 @@ model StorageProfile { model OsDisk { #suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" @doc("The size of the OS Disk in gigabytes.") - @visibility("read") + @visibility(Lifecycle.Read) diskSizeGB?: int32; } @doc("Specifies information about the image used.") model ImageReference { @doc("The name of the image used.") - @visibility("read") + @visibility(Lifecycle.Read) name?: string; @doc("The version of the image.") - @visibility("read") + @visibility(Lifecycle.Read) version?: string; @doc("The operating system of the image.") - @visibility("read") + @visibility(Lifecycle.Read) operatingSystem?: string; @doc("The operating system build number of the image.") - @visibility("read") + @visibility(Lifecycle.Read) osBuildNumber?: string; @doc("The datetime that the backing image version was published, in RFC3339 format.") - @visibility("read") + @visibility(Lifecycle.Read) publishedDate?: utcDateTime; } @@ -558,7 +558,7 @@ model Schedule { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility("read") + @visibility(Lifecycle.Read) @doc("Display name for the Schedule.") name: string; @@ -591,7 +591,7 @@ alias DevBoxListResult = Azure.Core.Page; @parentResource(User) model DevBox { @doc("The unique URI of the dev box.") - @visibility("read") + @visibility(Lifecycle.Read) @added(APIVersions.v2024_02_01) uri: url; @@ -600,88 +600,88 @@ model DevBox { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("Name of the project this Dev Box belongs to.") - @visibility("read") + @visibility(Lifecycle.Read) projectName?: string; @doc("The name of the Dev Box pool this machine belongs to.") @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) poolName: string; @doc("Indicates whether hibernate is enabled/disabled or unknown.") - @visibility("read") + @visibility(Lifecycle.Read) hibernateSupport?: HibernateSupport; @doc("The current provisioning state of the Dev Box.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: DevBoxProvisioningState; @doc(""" The current action state of the Dev Box. This is state is based on previous action performed by user. """) - @visibility("read") + @visibility(Lifecycle.Read) actionState?: string; @doc("The current power state of the Dev Box.") - @visibility("read") + @visibility(Lifecycle.Read) powerState?: PowerState; @doc(""" A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). """) - @visibility("read") + @visibility(Lifecycle.Read) uniqueId?: Azure.Core.uuid; @doc("Provisioning or action error details. Populated only for error states.") - @visibility("read") + @visibility(Lifecycle.Read) error?: Azure.Core.Foundations.Error; @doc(""" Azure region where this Dev Box is located. This will be the same region as the Virtual Network it is attached to. """) - @visibility("read") + @visibility(Lifecycle.Read) location?: Azure.Core.azureLocation; @doc("The operating system type of this Dev Box.") - @visibility("read") + @visibility(Lifecycle.Read) osType?: OsType; @doc("The AAD object id of the user this Dev Box is assigned to.") - @visibility("read") + @visibility(Lifecycle.Read) user?: Azure.Core.uuid; @doc("Information about the Dev Box's hardware resources.") - @visibility("read") + @visibility(Lifecycle.Read) hardwareProfile?: HardwareProfile; @doc("Storage settings for this Dev Box.") - @visibility("read") + @visibility(Lifecycle.Read) storageProfile?: StorageProfile; @doc("Information about the image used for this Dev Box.") - @visibility("read") + @visibility(Lifecycle.Read) imageReference?: ImageReference; @doc("Creation time of this Dev Box, in RFC3339 format.") - @visibility("read") + @visibility(Lifecycle.Read) createdTime?: utcDateTime; @doc("Last time a user connected to this Dev Box, in RFC3339 format.") - @visibility("read") + @visibility(Lifecycle.Read) @added(APIVersions.v2024_10_01_preview) lastConnectedTime?: utcDateTime; @doc("Indicates whether the owner of the Dev Box is a local administrator.") - @visibility("read") + @visibility(Lifecycle.Read) localAdministrator?: LocalAdminStatus; } @@ -711,7 +711,7 @@ model DevBoxAction { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("The action that will be taken.") @@ -775,7 +775,7 @@ model DevBoxOperation { @minLength(36) @maxLength(36) @pattern("^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$") - @visibility("read") + @visibility(Lifecycle.Read) @key("operationId") operationId: Azure.Core.uuid; @@ -870,15 +870,15 @@ model PagedCustomizationTaskDefinition model CustomizationTaskDefinition { @doc("Full name of the task: {catalogName}/{taskName}.") @key("taskName") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("Name of the catalog that the task belongs to.") - @visibility("read") + @visibility(Lifecycle.Read) catalogName: string; @doc("The unique URI of the customization task.") - @visibility("read") + @visibility(Lifecycle.Read) uri?: url; @doc("Description of the task.") @@ -898,7 +898,7 @@ model CustomizationTaskDefinitionParameter { type: CustomizationTaskDefinitionParameterType; @doc("Whether or not the parameter is required.") - @visibility("read") + @visibility(Lifecycle.Read) required?: boolean; @doc("Default value for the parameter.") @@ -922,7 +922,7 @@ model CustomizationTaskList { model CustomizationTask { @doc("Name of the task.") @key("taskName") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) name: string; @doc("Parameters for the task.") @@ -938,23 +938,23 @@ model CustomizationTask { runAs?: CustomizationTaskExecutionAccount; @doc("ID of the task instance.") - @visibility("read") + @visibility(Lifecycle.Read) id?: string; @doc("The unique URI for retrieving the task logs.") - @visibility("read") + @visibility(Lifecycle.Read) logUri?: string; @doc("Status of the task.") - @visibility("read") + @visibility(Lifecycle.Read) status?: CustomizationTaskStatus; @doc("Start time of the task, in RFC3339 format.") - @visibility("read") + @visibility(Lifecycle.Read) startTime?: utcDateTime; @doc("End time of the task, in RFC3339 format.") - @visibility("read") + @visibility(Lifecycle.Read) endTime?: utcDateTime; } @@ -1000,7 +1000,7 @@ model CustomizationGroup { tasks?: CustomizationTask[]; @doc("The unique URI of the customization group.") - @visibility("read") + @visibility(Lifecycle.Read) uri?: string; @doc("Name of the customization group.") @@ -1008,19 +1008,19 @@ model CustomizationGroup { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("Status of the customization group.") - @visibility("read") + @visibility(Lifecycle.Read) status?: CustomizationGroupStatus; @doc("Start time of the customization group, in RFC3339 format.") - @visibility("read") + @visibility(Lifecycle.Read) startTime?: utcDateTime; @doc("End time of the customization group, in RFC3339 format.") - @visibility("read") + @visibility(Lifecycle.Read) endTime?: utcDateTime; } @@ -1031,20 +1031,20 @@ model CustomizationGroup { model DevBoxSnapshot { @key("snapshotId") @doc("The id of the snapshot. Should be treated as opaque string.") - @visibility("read") + @visibility(Lifecycle.Read) snapshotId: string; @doc("The datetime that the snapshot was created, in RFC3339 format.") - @visibility("read") + @visibility(Lifecycle.Read) createdTime: utcDateTime; @doc("The datetime when the snapshot expires, will only be shown for a manual snapshot, in RFC3339 format.") - @visibility("read") + @visibility(Lifecycle.Read) @added(APIVersions.v2024_10_01_preview) expirationTime?: utcDateTime; @doc("The type of the snapshot indicates whether it is manual or automatic.") - @visibility("read") + @visibility(Lifecycle.Read) @added(APIVersions.v2024_10_01_preview) snapshotType: SnapshotType; } diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index 19c522594bdf..15849a787054 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -174,7 +174,7 @@ model Environment { ...EnvironmentUpdateProperties; @doc("The unique URI of the environment.") - @visibility("read") + @visibility(Lifecycle.Read) @added(APIVersions.v2024_02_01) uri: url; @@ -183,35 +183,35 @@ model Environment { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("Environment type.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) environmentType: string; @doc("The AAD object id of the owner of this Environment.") - @visibility("read") + @visibility(Lifecycle.Read) user?: Azure.Core.uuid; @doc("The provisioning state of the environment.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: EnvironmentProvisioningState; @doc("The identifier of the resource group containing the environment's resources.") - @visibility("read") + @visibility(Lifecycle.Read) resourceGroupId?: string; @doc("Name of the catalog.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) catalogName: string; @doc("Name of the environment definition.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) environmentDefinitionName: string; @doc("Provisioning error details. Populated only for error states.") - @visibility("read") + @visibility(Lifecycle.Read) error?: Azure.Core.Foundations.Error; } @@ -268,7 +268,7 @@ model EnvironmentOperation { @minLength(36) @maxLength(36) @pattern("^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$") - @visibility("read") + @visibility(Lifecycle.Read) @key("operationId") operationId: Azure.Core.uuid; @@ -304,12 +304,12 @@ model EnvironmentAction { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility("read") + @visibility(Lifecycle.Read) @key("actionName") name: string; @doc("Uri of the action resource.") - @visibility("read") + @visibility(Lifecycle.Read) uri: url; @doc("The action that will be taken.") @@ -319,7 +319,7 @@ model EnvironmentAction { next?: EnvironmentNextAction; @doc("Object Id of the user who last modified the action.") - @visibility("read") + @visibility(Lifecycle.Read) lastModifiedBy?: Azure.Core.uuid; @doc("Time the object was last modified, in RFC3339 format.") @@ -346,7 +346,7 @@ model Catalog { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility("read") + @visibility(Lifecycle.Read) name: string; } @@ -368,7 +368,7 @@ model EnvironmentDefinition { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("Name of the catalog.") @@ -437,7 +437,7 @@ model EnvironmentType { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc(""" diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index fb0e0c1d2b4e..c6133eff434f 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -15,7 +15,7 @@ namespace DevCenterService; @parentResource(Project) model OperationStatus { @doc("Fully qualified ID for the operation status.") - @visibility("read") + @visibility(Lifecycle.Read) id: string; @doc("The operation id name.") @@ -23,7 +23,7 @@ model OperationStatus { @minLength(36) @pattern("^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$") @key("operationId") - @visibility("read") + @visibility(Lifecycle.Read) name: Azure.Core.uuid; @doc("Provisioning state of the resource.") @@ -63,7 +63,7 @@ model Project { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("Description of the project.") @@ -90,7 +90,7 @@ model User { @minLength(2) @maxLength(36) @pattern("^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$") - @visibility("read") + @visibility(Lifecycle.Read) userId: string; } diff --git a/specification/deviceregistry/DeviceRegistry.Management/assetEndpointProfiles.tsp b/specification/deviceregistry/DeviceRegistry.Management/assetEndpointProfiles.tsp index 1c932f32c9b9..8d996478a50a 100644 --- a/specification/deviceregistry/DeviceRegistry.Management/assetEndpointProfiles.tsp +++ b/specification/deviceregistry/DeviceRegistry.Management/assetEndpointProfiles.tsp @@ -29,14 +29,14 @@ model AssetEndpointProfile is TrackedResource { // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("The extended location.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @doc("Defines the Asset Endpoint Profile properties.") model AssetEndpointProfileProperties { @doc("Globally unique, immutable, non-reusable id.") - @visibility("read") + @visibility(Lifecycle.Read) uuid?: string; @doc("The local valid URI specifying the network address/DNS name of a southbound device. The scheme part of the targetAddress URI specifies the type of the device. The additionalConfiguration field holds further connector type specific configuration.") @@ -62,17 +62,17 @@ model AssetEndpointProfileProperties { additionalConfiguration?: string; @doc("Reference to a discovered asset endpoint profile. Populated only if the asset endpoint profile has been created from discovery flow. Discovered asset endpoint profile name must be provided.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @added(Versions.v2024_09_01_preview) discoveredAssetEndpointProfileRef?: string; @doc("Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.") - @visibility("read") + @visibility(Lifecycle.Read) @added(Versions.v2024_09_01_preview) status?: AssetEndpointProfileStatus; @doc("Provisioning state of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -147,7 +147,7 @@ model OwnCertificate { @added(Versions.v2024_09_01_preview) model AssetEndpointProfileStatus { @doc("Array object to transfer and persist errors that originate from the Edge.") - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", []) errors?: AssetEndpointProfileStatusError[]; } @@ -156,11 +156,11 @@ model AssetEndpointProfileStatus { @added(Versions.v2024_09_01_preview) model AssetEndpointProfileStatusError { @doc("Error code for classification of errors (ex: 400, 404, 500, etc.).") - @visibility("read") + @visibility(Lifecycle.Read) code?: int32; @doc("Human readable helpful error message to provide additional context for error (ex: “targetAddress 'foo' is not a valid url”).") - @visibility("read") + @visibility(Lifecycle.Read) message?: string; } diff --git a/specification/deviceregistry/DeviceRegistry.Management/assets.tsp b/specification/deviceregistry/DeviceRegistry.Management/assets.tsp index ffd77ae3ecd5..c37193f20629 100644 --- a/specification/deviceregistry/DeviceRegistry.Management/assets.tsp +++ b/specification/deviceregistry/DeviceRegistry.Management/assets.tsp @@ -29,14 +29,14 @@ model Asset is TrackedResource { // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("The extended location.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @doc("Defines the asset properties.") model AssetProperties { @doc("Globally unique, immutable, non-reusable id.") - @visibility("read") + @visibility(Lifecycle.Read) uuid?: string; @doc("Resource path to asset type (model) definition.") @@ -47,7 +47,7 @@ model AssetProperties { enabled?: boolean; @doc("Asset id provided by the customer.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) externalAssetId?: string; @doc("Human-readable display name.") @@ -57,17 +57,17 @@ model AssetProperties { description?: string; @doc("A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset. Must have the format /.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @removed(Versions.v2024_09_01_preview) assetEndpointProfileUri: string; @doc("A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset. Must provide asset endpoint profile name.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @added(Versions.v2024_09_01_preview) assetEndpointProfileRef: string; @doc("An integer that is incremented each time the resource is modified.") - @visibility("read") + @visibility(Lifecycle.Read) @typeChangedFrom(Versions.v2024_09_01_preview, int32) version?: int64; @@ -100,7 +100,7 @@ model AssetProperties { attributes?: Record; @doc("Reference to a list of discovered assets. Populated only if the asset has been created from discovery flow. Discovered asset names must be provided.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @added(Versions.v2024_09_01_preview) discoveredAssetRefs?: string[]; @@ -134,11 +134,11 @@ model AssetProperties { events?: Event[]; @doc("Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.") - @visibility("read") + @visibility(Lifecycle.Read) status?: AssetStatus; @doc("Provisioning state of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -296,23 +296,23 @@ union EventObservabilityMode { @doc("Defines the asset status properties.") model AssetStatus { @doc("Array object to transfer and persist errors that originate from the Edge.") - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", []) errors?: AssetStatusError[]; @doc("A read only incremental counter indicating the number of times the configuration has been modified from the perspective of the current actual (Edge) state of the Asset. Edge would be the only writer of this value and would sync back up to the cloud. In steady state, this should equal version.") @typeChangedFrom(Versions.v2024_09_01_preview, int32) - @visibility("read") + @visibility(Lifecycle.Read) version?: int64; @doc("Array of dataset statuses that describe the status of each dataset.") - @visibility("read") + @visibility(Lifecycle.Read) @added(Versions.v2024_09_01_preview) @extension("x-ms-identifiers", []) datasets?: AssetStatusDataset[]; @doc("Array of event statuses that describe the status of each event.") - @visibility("read") + @visibility(Lifecycle.Read) @added(Versions.v2024_09_01_preview) @extension("x-ms-identifiers", []) events?: AssetStatusEvent[]; @@ -321,11 +321,11 @@ model AssetStatus { @doc("Defines the asset status error properties.") model AssetStatusError { @doc("Error code for classification of errors (ex: 400, 404, 500, etc.).") - @visibility("read") + @visibility(Lifecycle.Read) code?: int32; @doc("Human readable helpful error message to provide additional context for error (ex: “capability Id 'foo' does not exist”).") - @visibility("read") + @visibility(Lifecycle.Read) message?: string; } @@ -333,11 +333,11 @@ model AssetStatusError { @added(Versions.v2024_09_01_preview) model AssetStatusDataset { @doc("The name of the dataset. Must be unique within the status.datasets array. This name is used to correlate between the spec and status dataset information.") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("The message schema reference object.") - @visibility("read") + @visibility(Lifecycle.Read) messageSchemaReference?: MessageSchemaReference; } @@ -345,11 +345,11 @@ model AssetStatusDataset { @added(Versions.v2024_09_01_preview) model AssetStatusEvent { @doc("The name of the event. Must be unique within the status.events array. This name is used to correlate between the spec and status event information.") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("The message schema reference object.") - @visibility("read") + @visibility(Lifecycle.Read) messageSchemaReference?: MessageSchemaReference; } @@ -357,15 +357,15 @@ model AssetStatusEvent { @added(Versions.v2024_09_01_preview) model MessageSchemaReference { @doc("The message schema registry namespace.") - @visibility("read") + @visibility(Lifecycle.Read) schemaRegistryNamespace: string; @doc("The message schema name.") - @visibility("read") + @visibility(Lifecycle.Read) schemaName: string; @doc("The message schema version.") - @visibility("read") + @visibility(Lifecycle.Read) schemaVersion: string; } diff --git a/specification/deviceregistry/DeviceRegistry.Management/billings.tsp b/specification/deviceregistry/DeviceRegistry.Management/billings.tsp index 94d03f4b5f16..012dea0b4b6c 100644 --- a/specification/deviceregistry/DeviceRegistry.Management/billings.tsp +++ b/specification/deviceregistry/DeviceRegistry.Management/billings.tsp @@ -30,7 +30,7 @@ model BillingContainer is ProxyResource { // Suppress linter false positive for etag properties not allowed at top level of ProxyResource #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Resource ETag") - @visibility("read") + @visibility(Lifecycle.Read) etag?: string; } @@ -38,7 +38,7 @@ model BillingContainer is ProxyResource { @doc("Defines the billingContainer properties.") model BillingContainerProperties { @doc("Provisioning state of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/deviceregistry/DeviceRegistry.Management/discoveredAssetEndpointProfiles.tsp b/specification/deviceregistry/DeviceRegistry.Management/discoveredAssetEndpointProfiles.tsp index db54c1ea9248..2bfc4a3e9a0e 100644 --- a/specification/deviceregistry/DeviceRegistry.Management/discoveredAssetEndpointProfiles.tsp +++ b/specification/deviceregistry/DeviceRegistry.Management/discoveredAssetEndpointProfiles.tsp @@ -32,7 +32,7 @@ model DiscoveredAssetEndpointProfile // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("The extended location.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -60,7 +60,7 @@ model DiscoveredAssetEndpointProfileProperties { version: int64; @doc("Provisioning state of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/deviceregistry/DeviceRegistry.Management/discoveredAssets.tsp b/specification/deviceregistry/DeviceRegistry.Management/discoveredAssets.tsp index c2e5f972ca26..010c98459139 100644 --- a/specification/deviceregistry/DeviceRegistry.Management/discoveredAssets.tsp +++ b/specification/deviceregistry/DeviceRegistry.Management/discoveredAssets.tsp @@ -31,7 +31,7 @@ model DiscoveredAsset is TrackedResource { // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("The extended location.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -40,7 +40,7 @@ model DiscoveredAsset is TrackedResource { @removed(Versions.v2024_11_01) model DiscoveredAssetProperties { @doc("A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset. Must provide asset endpoint profile name.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) assetEndpointProfileRef: string; @doc("Identifier used to detect changes in the asset.") @@ -91,7 +91,7 @@ model DiscoveredAssetProperties { events?: DiscoveredEvent[]; @doc("Provisioning state of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/deviceregistry/DeviceRegistry.Management/schemaRegistries.tsp b/specification/deviceregistry/DeviceRegistry.Management/schemaRegistries.tsp index c2829fe04fc9..416586f1f18d 100644 --- a/specification/deviceregistry/DeviceRegistry.Management/schemaRegistries.tsp +++ b/specification/deviceregistry/DeviceRegistry.Management/schemaRegistries.tsp @@ -34,11 +34,11 @@ model SchemaRegistry is TrackedResource { @doc("Defines the schema registry properties.") model SchemaRegistryProperties { @doc("Globally unique, immutable, non-reusable id.") - @visibility("read") + @visibility(Lifecycle.Read) uuid?: string; @doc("Schema registry namespace. Uniquely identifies a schema registry within a tenant.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @pattern("^[a-z0-9][a-z0-9-]*[a-z0-9]$") @maxLength(32) `namespace`: string; @@ -50,11 +50,11 @@ model SchemaRegistryProperties { description?: string; @doc("The Storage Account's Container URL where schemas will be stored.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) storageAccountContainerUrl: string; @doc("Provisioning state of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -78,7 +78,7 @@ model Schema is ProxyResource { @doc("Defines the schema properties.") model SchemaProperties { @doc("Globally unique, immutable, non-reusable id.") - @visibility("read") + @visibility(Lifecycle.Read) uuid?: string; @doc("Human-readable display name.") @@ -88,15 +88,15 @@ model SchemaProperties { description?: string; @doc("Format of the schema.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) format: Format; @doc("Type of the schema.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) schemaType: SchemaType; @doc("Provisioning state of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "" @@ -148,22 +148,22 @@ model SchemaVersion is ProxyResource { @doc("Defines the schema version properties.") model SchemaVersionProperties { @doc("Globally unique, immutable, non-reusable id.") - @visibility("read") + @visibility(Lifecycle.Read) uuid?: string; @doc("Human-readable description of the schema.") description?: string; @doc("Schema content.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) schemaContent: string; @doc("Hash of the schema content.") - @visibility("read") + @visibility(Lifecycle.Read) hash?: string; @doc("Provisioning state of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/main.tsp b/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/main.tsp index dcae61cf5117..58da61ab20d3 100644 --- a/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/main.tsp +++ b/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/main.tsp @@ -471,7 +471,7 @@ model ResourceDetailsObject is ProxyResource { @doc("The name of the resource.") @key("resourceName") @segment("resources") - @visibility("read") + @visibility(Lifecycle.Read) @path name: string; } @@ -646,7 +646,7 @@ model ResourceSku is ProxyResource { @doc("The name of the SKU.") @key("skuName") @segment("skus") - @visibility("read") + @visibility(Lifecycle.Read) @path name: string; } @@ -691,7 +691,6 @@ model Location is ProxyResource { @path @segment("locations") @doc("Name of the location.") - @visibility("public") name: string; } @@ -725,7 +724,7 @@ interface SubscriptionUsages { @parentResource(Location) model Quota { @doc("The name of the quota.") - @visibility("read") + @visibility(Lifecycle.Read) name?: QuotaName; @doc("Fully qualified ARM resource id") @@ -759,7 +758,7 @@ model Image is ProxyResource { @path @segment("images") @doc("Name of the image.") - @visibility("read") + @visibility(Lifecycle.Read) name: string; } @@ -792,7 +791,7 @@ model ImageVersion is ProxyResource { @doc("The name of the image version.") @key("imageVersionName") @segment("versions") - @visibility("read") + @visibility(Lifecycle.Read) @path name: string; } diff --git a/specification/durabletask/DurableTask.Management/main.tsp b/specification/durabletask/DurableTask.Management/main.tsp index 7e953c4cd78e..db994b9f43af 100644 --- a/specification/durabletask/DurableTask.Management/main.tsp +++ b/specification/durabletask/DurableTask.Management/main.tsp @@ -41,12 +41,12 @@ model Scheduler is Azure.ResourceManager.TrackedResource { @doc("Details of the Scheduler") @added(Versions.v2024_10_01_Preview) model SchedulerProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation") provisioningState?: ProvisioningState; @doc("URL of the durable task scheduler") - @visibility("read") + @visibility(Lifecycle.Read) endpoint?: string; @doc("IP allow list for durable task scheduler. Values can be IPv4, IPv6 or CIDR") @@ -66,7 +66,7 @@ model SchedulerSku { capacity?: int32; @doc("Indicates whether the current SKU configuration is zone redundant") - @visibility("read") + @visibility(Lifecycle.Read) redundancyState?: RedundancyState; } @@ -95,12 +95,12 @@ union RedundancyState { @doc("The properties of Task Hub") model TaskHubProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation") provisioningState?: ProvisioningState; @doc("URL of the durable task scheduler dashboard") - @visibility("read") + @visibility(Lifecycle.Read) dashboardUrl?: url; } diff --git a/specification/edge/Microsoft.Edge.Sites.Management/Site.tsp b/specification/edge/Microsoft.Edge.Sites.Management/Site.tsp index 5b37d514dfe5..dd49e7e7a1aa 100644 --- a/specification/edge/Microsoft.Edge.Sites.Management/Site.tsp +++ b/specification/edge/Microsoft.Edge.Sites.Management/Site.tsp @@ -18,7 +18,7 @@ model Site is ProxyResource { @path @key("siteName") @segment("sites") - @visibility("read") + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/edge/Microsoft.Edge.Sites.Management/models.tsp b/specification/edge/Microsoft.Edge.Sites.Management/models.tsp index ca28cc582f38..5910557a4892 100644 --- a/specification/edge/Microsoft.Edge.Sites.Management/models.tsp +++ b/specification/edge/Microsoft.Edge.Sites.Management/models.tsp @@ -27,7 +27,7 @@ model SiteProperties { ]>; @doc("Provisioning state of last operation") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } diff --git a/specification/edgezones/EdgeZones.Management/main.tsp b/specification/edgezones/EdgeZones.Management/main.tsp index c5511b1efade..e1cf3b8ee14d 100644 --- a/specification/edgezones/EdgeZones.Management/main.tsp +++ b/specification/edgezones/EdgeZones.Management/main.tsp @@ -64,47 +64,47 @@ union RegistrationState { @doc("The properties of an Extended Zone resource.") model ExtendedZoneProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("Status of the last operation performed by the subscription on the Edge Zone resource") provisioningState?: ProvisioningState; - @visibility("read") + @visibility(Lifecycle.Read) @doc("Indicates the Azure Extended Zone registration’s approval status.") registrationState?: RegistrationState; - @visibility("read") + @visibility(Lifecycle.Read) @doc("Display name of the Azure Extended Zone.") displayName: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("Regional display name of the Azure Extended Zone.") regionalDisplayName: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("Type of region for the Azure Extended Zone.") regionType: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("Category of region for the Azure Extended Zone.") regionCategory: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("Geography of the Azure Extended Zone.") geography: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The Geography Group of the Azure Extended Zone.") geographyGroup: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The Longitude of the Azure Extended Zone.") longitude: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The Latitude of the Azure Extended Zone.") latitude: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The Home Location of the Azure Extended Zone.") homeLocation: string; } diff --git a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp index 752a178456e8..24f9b15e74aa 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp @@ -208,7 +208,7 @@ namespace Microsoft.EventGrid { model Topic { @key @doc("Topic Name.") - @visibility("read") + @visibility(Lifecycle.Read) topicName: string; } @@ -218,7 +218,7 @@ namespace Microsoft.EventGrid { model EventSubscription { @key @doc("Event Subscription Name.") - @visibility("read") + @visibility(Lifecycle.Read) eventSubscriptionName: string; } diff --git a/specification/ews/SecretSyncController.Management/azurekeyvaultsecretproviderclass.tsp b/specification/ews/SecretSyncController.Management/azurekeyvaultsecretproviderclass.tsp index c51f77453ab4..0662fbed82d4 100644 --- a/specification/ews/SecretSyncController.Management/azurekeyvaultsecretproviderclass.tsp +++ b/specification/ews/SecretSyncController.Management/azurekeyvaultsecretproviderclass.tsp @@ -43,7 +43,7 @@ model AzureKeyVaultSecretProviderClassProperties { objects?: string; @doc("Provisioning state of the AzureKeyVaultSecretProviderClass instance.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/ews/SecretSyncController.Management/secretsync.tsp b/specification/ews/SecretSyncController.Management/secretsync.tsp index daf2ba4d8c17..63f996fee270 100644 --- a/specification/ews/SecretSyncController.Management/secretsync.tsp +++ b/specification/ews/SecretSyncController.Management/secretsync.tsp @@ -49,12 +49,12 @@ model SecretSyncProperties { @OpenAPI.extension("x-ms-identifiers", []) objectSecretMapping: KubernetesSecretObjectMapping[]; - @visibility("read") + @visibility(Lifecycle.Read) @doc("SecretSyncStatus defines the observed state of the secret synchronization process.") status?: SecretSyncStatus; @doc("Provisioning state of the SecretSync instance.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -106,12 +106,12 @@ union StatusConditionType { @doc("SecretSyncStatus defines the observed state of the secret synchronization process.") model SecretSyncStatus { @doc("LastSuccessfulSyncTime represents the last time the secret was retrieved from the Provider and updated.") - @visibility("read") + @visibility(Lifecycle.Read) lastSuccessfulSyncTime?: utcDateTime; @OpenAPI.extension("x-ms-identifiers", []) @doc("Conditions represent the status of the secret create and update processes. The status can be True, False, or Unknown with various reasons and messages explaining the state. Examples of reasons include CreateSucceeded, ProviderError, InvalidClusterSecretLabelError, InvalidClusterSecretAnnotationError, UnknownError, ValidatingAdmissionPolicyCheckFailed, UserInputValidationFailed, ControllerSpcError, ControllerInternalError, NoValueChange, and ValueChangeOrForceUpdateDetected.") - @visibility("read") + @visibility(Lifecycle.Read) conditions?: SecretSyncCondition[]; // Not including syncHash at the moment for security concerns TODO #28507544 https://msazure.visualstudio.com/One/_workitems/edit/28507544 @@ -120,30 +120,30 @@ model SecretSyncStatus { @doc("A condition represents the status of the secret create and update processes.") model SecretSyncCondition { @doc("LastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.") - @visibility("read") + @visibility(Lifecycle.Read) lastTransitionTime?: utcDateTime; @doc("Message is a human readable message indicating details about the transition. This may be an empty string.") - @visibility("read") + @visibility(Lifecycle.Read) message: string; @doc("ObservedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.") - @visibility("read") + @visibility(Lifecycle.Read) observedGeneration?: int64; @doc("Reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.") - @visibility("read") + @visibility(Lifecycle.Read) @minLength(1) @maxLength(1024) @pattern("^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$") reason: string; @doc("Status of the condition, one of True, False, Unknown.") - @visibility("read") + @visibility(Lifecycle.Read) status: StatusConditionType; @doc("Type of condition in CamelCase or in foo.example.com/CamelCase. Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to de-conflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)") - @visibility("read") + @visibility(Lifecycle.Read) @maxLength(316) @pattern("^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$") type: string; diff --git a/specification/fabric/Microsoft.Fabric.Management/capacity.tsp b/specification/fabric/Microsoft.Fabric.Management/capacity.tsp index 5aea05b0c457..23ba8323fc1b 100644 --- a/specification/fabric/Microsoft.Fabric.Management/capacity.tsp +++ b/specification/fabric/Microsoft.Fabric.Management/capacity.tsp @@ -20,7 +20,7 @@ model FabricCapacity is TrackedResource { @key("capacityName") @path @segment("capacities") - @visibility("read") + @visibility(Lifecycle.Read) name: string; #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "The standard ResourceSkuProperty does not fit our case" diff --git a/specification/fabric/Microsoft.Fabric.Management/models.tsp b/specification/fabric/Microsoft.Fabric.Management/models.tsp index 09a3cf078350..1fb0a8e7dc7e 100644 --- a/specification/fabric/Microsoft.Fabric.Management/models.tsp +++ b/specification/fabric/Microsoft.Fabric.Management/models.tsp @@ -15,11 +15,11 @@ interface Operations extends Azure.ResourceManager.Operations {} @doc("The Microsoft Fabric capacity properties.") model FabricCapacityProperties { @doc("The current deployment state of Microsoft Fabric resource. The provisioningState is to indicate states for resource provisioning.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @doc("The current state of Microsoft Fabric resource. The state is to indicate more states outside of resource provisioning.") - @visibility("read") + @visibility(Lifecycle.Read) state?: ResourceState; @doc("The capacity administration") @@ -172,7 +172,7 @@ model CapacityNameParameter { @doc("Describes Resource Quota") model Quota { @doc("The name of the quota.") - @visibility("read") + @visibility(Lifecycle.Read) name?: QuotaName; @doc("The unit of usage measurement.") diff --git a/specification/github-network/GitHub.Network.Management/NetworkSettingsResource.tsp b/specification/github-network/GitHub.Network.Management/NetworkSettingsResource.tsp index 1e5be8121450..0a9cfb4e7d51 100644 --- a/specification/github-network/GitHub.Network.Management/NetworkSettingsResource.tsp +++ b/specification/github-network/GitHub.Network.Management/NetworkSettingsResource.tsp @@ -22,7 +22,7 @@ model NetworkSettingsResource @path @key("networkSettingsName") @segment("networkSettings") - @visibility("read") + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/github-network/GitHub.Network.Management/models.tsp b/specification/github-network/GitHub.Network.Management/models.tsp index 3381b16c76d6..870cfda0c0ae 100644 --- a/specification/github-network/GitHub.Network.Management/models.tsp +++ b/specification/github-network/GitHub.Network.Management/models.tsp @@ -37,15 +37,15 @@ union ProvisioningState { @doc("NetworkSettings resource-specific properties.") model NetworkSettingsResourceProperties { @doc("Specifies a subnet ID for vnet-injection.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) subnetId?: string; @doc("Specifies the GitHub business (enterprise/organization) ID associated to the Azure subscription.") @added(Versions.`2024-04-01-preview`) - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) businessId?: string; @doc("The managed application provisioning state.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/healthdataaiservices/HealthDataAIServices.DeidServices/models_document_flow.tsp b/specification/healthdataaiservices/HealthDataAIServices.DeidServices/models_document_flow.tsp index 903d4e8250f7..afa429358ea8 100644 --- a/specification/healthdataaiservices/HealthDataAIServices.DeidServices/models_document_flow.tsp +++ b/specification/healthdataaiservices/HealthDataAIServices.DeidServices/models_document_flow.tsp @@ -15,7 +15,7 @@ namespace HealthDataAIServices.DeidServices; model DeidentificationJob { @key @doc("The name of a job.") - @visibility("read") + @visibility(Lifecycle.Read) @maxLength(36) @minLength(3) // Must be 3 to match regex @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_]+[a-zA-Z0-9]$") @@ -36,12 +36,12 @@ model DeidentificationJob { // Readonly Properties @doc("Current status of a job.") - @visibility("read") + @visibility(Lifecycle.Read) @pollingOperationParameter status: Azure.Core.Foundations.OperationState; @doc("Error when job fails in it's entirety.") - @visibility("read") + @visibility(Lifecycle.Read) error?: Azure.Core.Foundations.Error; @doc(""" @@ -51,19 +51,19 @@ model DeidentificationJob { If the job failed, this is the time when the job failed. """) - @visibility("read") + @visibility(Lifecycle.Read) lastUpdatedAt: utcDateTime; @doc("Date and time when the job was created.") - @visibility("read") + @visibility(Lifecycle.Read) createdAt: utcDateTime; @doc("Date and time when the job was started.") - @visibility("read") + @visibility(Lifecycle.Read) startedAt?: utcDateTime; @doc("Summary of a job. Exists only when the job is completed.") - @visibility("read") + @visibility(Lifecycle.Read) summary?: DeidentificationJobSummary; } @@ -96,7 +96,7 @@ model DeidentificationJobSummary { model DeidentificationDocumentDetails { @key @doc("Id of the document details.") - @visibility("read") + @visibility(Lifecycle.Read) id: string; @doc("Location for the input.") diff --git a/specification/healthdataaiservices/HealthDataAIServices.Management/main.tsp b/specification/healthdataaiservices/HealthDataAIServices.Management/main.tsp index c7faddb17e9b..22280236fbb2 100644 --- a/specification/healthdataaiservices/HealthDataAIServices.Management/main.tsp +++ b/specification/healthdataaiservices/HealthDataAIServices.Management/main.tsp @@ -101,16 +101,16 @@ enum PublicNetworkAccess { @doc("Details of the HealthDataAIServices DeidService.") model DeidServiceProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; - @visibility("read") + @visibility(Lifecycle.Read) @doc("Deid service url.") serviceUrl?: string; @doc("List of private endpoint connections.") - @visibility("read") + @visibility(Lifecycle.Read) privateEndpointConnections?: PrivateEndpointConnection[]; @doc("Gets or sets allow or disallow public network access to resource") diff --git a/specification/hybridconnectivity/HybridConnectivity.Management/PublicCloud.tsp b/specification/hybridconnectivity/HybridConnectivity.Management/PublicCloud.tsp index b7cfea0a3090..08685b7c4cd2 100644 --- a/specification/hybridconnectivity/HybridConnectivity.Management/PublicCloud.tsp +++ b/specification/hybridconnectivity/HybridConnectivity.Management/PublicCloud.tsp @@ -101,15 +101,15 @@ model PublicCloudConnectorProperties { awsCloudProfile: AwsCloudProfile; @doc("Host cloud the public cloud connector.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) hostType: HostType; @doc("The resource provisioning state.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; @doc("Connector primary identifier.") - @visibility("read") + @visibility(Lifecycle.Read) connectorPrimaryIdentifier?: string; } @@ -124,14 +124,14 @@ union HostType { @doc("cloud profile for AWS.") model AwsCloudProfile { @doc("Account id for the AWS account.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) accountId: string; @doc("List of AWS accounts which need to be excluded.") excludedAccounts?: string[]; @doc("Boolean value that indicates whether the account is organizational or not. True represents organization account, whereas false represents a single account.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) isOrganizationalAccount?: boolean = false; } @@ -152,7 +152,7 @@ model SolutionConfiguration @doc("Solution configuration resource.") model SolutionConfigurationProperties { @doc("The resource provisioning state.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; @doc("The type of the solution") @@ -162,15 +162,15 @@ model SolutionConfigurationProperties { solutionSettings?: SolutionSettings; @doc("The status of solution configurations") - @visibility("read") + @visibility(Lifecycle.Read) status?: SolutionConfigurationStatus; @doc("The detailed message of status details") - @visibility("read") + @visibility(Lifecycle.Read) statusDetails?: string; @doc("The last time resources were inventoried") - @visibility("read") + @visibility(Lifecycle.Read) lastSyncTime?: utcDateTime; } @@ -248,7 +248,7 @@ model InventoryResource is ProxyResource { @doc("Inventory resource") @segment("inventory") @key("inventoryId") - @visibility("read") + @visibility(Lifecycle.Read) @path name: string; } @@ -271,7 +271,7 @@ model InventoryProperties { statusDetails?: string; @doc("The resource provisioning state.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } diff --git a/specification/hybridconnectivity/HybridConnectivity.Management/models.tsp b/specification/hybridconnectivity/HybridConnectivity.Management/models.tsp index af0ba559bb43..a15e267422a8 100644 --- a/specification/hybridconnectivity/HybridConnectivity.Management/models.tsp +++ b/specification/hybridconnectivity/HybridConnectivity.Management/models.tsp @@ -74,7 +74,7 @@ model EndpointProperties { * The resource provisioning state. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: string; } @@ -85,25 +85,25 @@ model Resource { /** * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; /** * The name of the resource */ - @visibility("read") + @visibility(Lifecycle.Read) name?: string; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ - @visibility("read") + @visibility(Lifecycle.Read) type?: string; /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @visibility("read") + @visibility(Lifecycle.Read) systemData?: SystemData; } @@ -134,7 +134,7 @@ model ServiceConfigurationProperties { /** * The resource provisioning state. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -208,7 +208,7 @@ model RelayNamespaceAccessProperties { /** * Access key for hybrid connection. */ - @visibility("read") + @visibility(Lifecycle.Read) accessKey?: string; /** diff --git a/specification/impact/Impact.Management/ImpactCategories.tsp b/specification/impact/Impact.Management/ImpactCategories.tsp index 17f111bac027..ab10deaddd43 100644 --- a/specification/impact/Impact.Management/ImpactCategories.tsp +++ b/specification/impact/Impact.Management/ImpactCategories.tsp @@ -21,7 +21,7 @@ model ImpactCategory @key("impactCategoryName") @segment("impactCategories") @doc("Name of the impact category") - @visibility("Read") + @visibility(Lifecycle.Read) @path name: string; } diff --git a/specification/impact/Impact.Management/connectors.tsp b/specification/impact/Impact.Management/connectors.tsp index 82c6ae93d49f..8e681ed19a81 100644 --- a/specification/impact/Impact.Management/connectors.tsp +++ b/specification/impact/Impact.Management/connectors.tsp @@ -24,18 +24,18 @@ model Connector is ProxyResource { @doc("Details of the Connector.") model ConnectorProperties is ResourceProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("unique id of the connector.") connectorId: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("tenant id of this connector") tenantId: string; @doc("connector type") connectorType: Platform; - @visibility("read") + @visibility(Lifecycle.Read) @doc("last run time stamp of this connector in UTC time zone") lastRunTimeStamp: utcDateTime; } diff --git a/specification/impact/Impact.Management/insights.tsp b/specification/impact/Impact.Management/insights.tsp index d135f430e683..250fede272be 100644 --- a/specification/impact/Impact.Management/insights.tsp +++ b/specification/impact/Impact.Management/insights.tsp @@ -18,7 +18,7 @@ model Insight is ProxyResource { @key("insightName") @segment("insights") @doc("Name of the insight") - @visibility("Read") + @visibility(Lifecycle.Read) @path name: string; } @@ -30,7 +30,7 @@ model InsightUnderSubscription is ProxyResource { @key("insightName") @segment("insights") @doc("Name of the insight") - @visibility("Read") + @visibility(Lifecycle.Read) @path name: string; } diff --git a/specification/impact/Impact.Management/main.tsp b/specification/impact/Impact.Management/main.tsp index 22adb27d4bcd..25ef4400fcc3 100644 --- a/specification/impact/Impact.Management/main.tsp +++ b/specification/impact/Impact.Management/main.tsp @@ -30,6 +30,6 @@ union ProvisioningState { @doc("General resource properties.") model ResourceProperties { @doc("Resource provisioning state.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/impact/Impact.Management/workloadImpacts.tsp b/specification/impact/Impact.Management/workloadImpacts.tsp index 8f0deae30327..459dcd38e62b 100644 --- a/specification/impact/Impact.Management/workloadImpacts.tsp +++ b/specification/impact/Impact.Management/workloadImpacts.tsp @@ -18,7 +18,7 @@ model WorkloadImpact is ProxyResource { @key("workloadImpactName") @segment("workloadImpacts") @doc("workloadImpact resource ") - @visibility("Read") + @visibility(Lifecycle.Read) @path name: string; } @@ -35,12 +35,12 @@ model WorkloadImpactProperties is ResourceProperties { impactedResourceId: string; @doc("Unique ID of the impact (UUID)") - @visibility("read") + @visibility(Lifecycle.Read) @pattern("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}") impactUniqueId?: string; @doc("Time at which impact is reported") - @visibility("read") + @visibility(Lifecycle.Read) reportedTimeUtc?: utcDateTime; @doc("Category of the impact, details can found from /impactCategories API") diff --git a/specification/informatica/Informatica.DataManagement.Management/main.tsp b/specification/informatica/Informatica.DataManagement.Management/main.tsp index 1f248963d92d..4f5e6834edca 100644 --- a/specification/informatica/Informatica.DataManagement.Management/main.tsp +++ b/specification/informatica/Informatica.DataManagement.Management/main.tsp @@ -259,7 +259,7 @@ model InformaticaServerlessRuntimeResource @doc("Properties specific to the Informatica DataManagement Organization resource.") model OrganizationProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("Provisioning State of the resource.") provisioningState?: ProvisioningState; @@ -392,7 +392,7 @@ model ServerlessMetadataResponse { @doc("Serverless Runtime properties.") model InformaticaServerlessRuntimeProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("Provisioning State of the resource.") provisioningState?: ProvisioningState; diff --git a/specification/iotoperations/IoTOperations.Management/models/broker/authentications.tsp b/specification/iotoperations/IoTOperations.Management/models/broker/authentications.tsp index 7ece81f4d3d5..1e56c70e2783 100644 --- a/specification/iotoperations/IoTOperations.Management/models/broker/authentications.tsp +++ b/specification/iotoperations/IoTOperations.Management/models/broker/authentications.tsp @@ -28,7 +28,7 @@ model BrokerAuthenticationResource // Extended location is not included in ProxyResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -38,7 +38,7 @@ model BrokerAuthenticationProperties { @OpenAPI.extension("x-ms-identifiers", []) authenticationMethods: BrokerAuthenticatorMethods[]; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperations/IoTOperations.Management/models/broker/authorizations.tsp b/specification/iotoperations/IoTOperations.Management/models/broker/authorizations.tsp index 1328d4f938ba..b916750ab281 100644 --- a/specification/iotoperations/IoTOperations.Management/models/broker/authorizations.tsp +++ b/specification/iotoperations/IoTOperations.Management/models/broker/authorizations.tsp @@ -28,7 +28,7 @@ model BrokerAuthorizationResource // Extended location is not included in ProxyResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -37,7 +37,7 @@ model BrokerAuthorizationProperties { @doc("The list of authorization policies supported by the Authorization Resource.") authorizationPolicies: AuthorizationConfig; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperations/IoTOperations.Management/models/broker/brokers.tsp b/specification/iotoperations/IoTOperations.Management/models/broker/brokers.tsp index 7f2cd7e7265f..1ae39ed03254 100644 --- a/specification/iotoperations/IoTOperations.Management/models/broker/brokers.tsp +++ b/specification/iotoperations/IoTOperations.Management/models/broker/brokers.tsp @@ -27,36 +27,36 @@ model BrokerResource is ProxyResource { // Extended location is not included in ProxyResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @doc("Broker Resource properties") model BrokerProperties { - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("Advanced settings of Broker.") advanced?: AdvancedSettings; - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("The cardinality details of the broker.") cardinality?: Cardinality; @doc("Spec defines the desired identities of Broker diagnostics settings.") diagnostics?: BrokerDiagnostics; - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("Settings of Disk Backed Message Buffer.") diskBackedMessageBuffer?: DiskBackedMessageBuffer; - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("This setting controls whether Kubernetes CPU resource limits are requested. Increasing the number of replicas or workers proportionally increases the amount of CPU resources requested. If this setting is enabled and there are insufficient CPU resources, an error will be emitted.") generateResourceLimits?: GenerateResourceLimits; - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("Memory profile of Broker.") memoryProfile?: BrokerMemoryProfile = BrokerMemoryProfile.Medium; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperations/IoTOperations.Management/models/broker/listeners.tsp b/specification/iotoperations/IoTOperations.Management/models/broker/listeners.tsp index e53eb67b5ef8..9e8f39ed75fa 100644 --- a/specification/iotoperations/IoTOperations.Management/models/broker/listeners.tsp +++ b/specification/iotoperations/IoTOperations.Management/models/broker/listeners.tsp @@ -26,7 +26,7 @@ model BrokerListenerResource is ProxyResource { // Extended location is not included in ProxyResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -42,7 +42,7 @@ model BrokerListenerProperties { @doc("Kubernetes Service type of this listener.") serviceType?: ServiceType = ServiceType.ClusterIp; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflowEndpoints.tsp b/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflowEndpoints.tsp index 0e14725b6ddd..1c9551f90fc6 100644 --- a/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflowEndpoints.tsp +++ b/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflowEndpoints.tsp @@ -28,7 +28,7 @@ model DataflowEndpointResource is ProxyResource { // Extended location is not included in ProxyResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -55,7 +55,7 @@ model DataflowEndpointProperties { @doc("Broker endpoint.") mqttSettings?: DataflowEndpointMqtt; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflowProfiles.tsp b/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflowProfiles.tsp index 0ef472e489f9..25523d13a764 100644 --- a/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflowProfiles.tsp +++ b/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflowProfiles.tsp @@ -28,7 +28,7 @@ model DataflowProfileResource is ProxyResource { // Extended location is not included in ProxyResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -42,7 +42,7 @@ model DataflowProfileProperties { @maxValue(20) instanceCount?: int32 = 1; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflows.tsp b/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflows.tsp index 4d84a7f82da8..9f47821cb427 100644 --- a/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflows.tsp +++ b/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflows.tsp @@ -28,7 +28,7 @@ model DataflowResource is ProxyResource { // Extended location is not included in ProxyResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -41,7 +41,7 @@ model DataflowProperties { @OpenAPI.extension("x-ms-identifiers", []) operations: DataflowOperation[]; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperations/IoTOperations.Management/models/instance.tsp b/specification/iotoperations/IoTOperations.Management/models/instance.tsp index 1626412c71f6..972ca68de699 100644 --- a/specification/iotoperations/IoTOperations.Management/models/instance.tsp +++ b/specification/iotoperations/IoTOperations.Management/models/instance.tsp @@ -26,7 +26,7 @@ model InstanceResource is TrackedResource { // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; ...ManagedServiceIdentityProperty; @@ -44,11 +44,11 @@ model InstanceProperties { description?: string; @doc("The status of the last operation.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @doc("The Azure IoT Operations version.") - @visibility("read") + @visibility(Lifecycle.Read) version?: string; @doc("The reference to the Schema Registry for this AIO Instance.") diff --git a/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/dataset.tsp b/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/dataset.tsp index aaa1467a4af4..8ed121f18881 100644 --- a/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/dataset.tsp +++ b/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/dataset.tsp @@ -27,7 +27,7 @@ model Dataset is TrackedResource { // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -50,7 +50,7 @@ model DatasetProperties { keys?: Record; @doc("The status of the last operation.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/instance.tsp b/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/instance.tsp index 7d1ea14a8b4f..a8466511c2f1 100644 --- a/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/instance.tsp +++ b/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/instance.tsp @@ -25,7 +25,7 @@ model Instance is TrackedResource { // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -35,7 +35,7 @@ model InstanceProperties { description?: string; @doc("The status of the last operation.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/pipeline.tsp b/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/pipeline.tsp index 7217eb1e207e..3720d0d9ff64 100644 --- a/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/pipeline.tsp +++ b/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/pipeline.tsp @@ -27,7 +27,7 @@ model Pipeline is TrackedResource { // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -47,7 +47,7 @@ model PipelineProperties { stages: Record; @doc("The status of the last operation.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/base.tsp b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/base.tsp index e08683a47957..1466d7a4b4f0 100644 --- a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/base.tsp +++ b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/base.tsp @@ -8,7 +8,7 @@ namespace Microsoft.IoTOperationsMQ; #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Extended location is a valid property" alias ExtendedLocation = { @doc("Extended Location") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocationProperty; }; diff --git a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/datalakeconnector.tsp b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/datalakeconnector.tsp index 2db61da54310..e150b660a5db 100644 --- a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/datalakeconnector.tsp +++ b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/datalakeconnector.tsp @@ -62,7 +62,7 @@ model DataLakeConnectorProperties { @doc("The protocol to use for connecting with Brokers. NOTE - Enum only storage is supported at at time.") target: DataLakeTargetStorage; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } @@ -203,7 +203,7 @@ model DataLakeConnectorTopicMapProperties { @doc("TopicMap for DataLake connector.") mapping: DataLakeConnectorMap; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/diagnosticservice.tsp b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/diagnosticservice.tsp index e2d4017fdcd7..461bdb50e56c 100644 --- a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/diagnosticservice.tsp +++ b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/diagnosticservice.tsp @@ -61,7 +61,7 @@ model DiagnosticServiceProperties { @doc("The destination to collect traces. Diagnostic service will push traces to this endpoint") openTelemetryTracesCollectorAddr?: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; diff --git a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/kafkaconnector.tsp b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/kafkaconnector.tsp index 358d4b90bf51..8ad856745a1a 100644 --- a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/kafkaconnector.tsp +++ b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/kafkaconnector.tsp @@ -57,7 +57,7 @@ model KafkaConnectorProperties { @doc("The Node Tolerations for the Bridge Connector pods.") nodeTolerations?: NodeTolerations; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } @@ -209,7 +209,7 @@ model KafkaTopicMapProperties { @OpenAPI.extension("x-ms-identifiers", []) routes: KafkaRoutes[]; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mq.tsp b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mq.tsp index d404733d630e..26ee7b37acef 100644 --- a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mq.tsp +++ b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mq.tsp @@ -31,7 +31,7 @@ model MqResource is TrackedResource { @doc("MQ Resource properties") model MqProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mqttbridgeconnector.tsp b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mqttbridgeconnector.tsp index 05f4ffd6cc24..ecb83cb4e11c 100644 --- a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mqttbridgeconnector.tsp +++ b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mqttbridgeconnector.tsp @@ -58,7 +58,7 @@ model MqttBridgeConnectorProperties { @doc("The protocol to use for connecting with Brokers.") protocol: MqttProtocol; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; @@ -151,7 +151,7 @@ model MqttBridgeTopicMapProperties { @OpenAPI.extension("x-ms-identifiers", []) routes?: MqttBridgeRoutes[]; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mqttbroker.tsp b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mqttbroker.tsp index 3b60a89c2511..15c9e513ce1f 100644 --- a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mqttbroker.tsp +++ b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mqttbroker.tsp @@ -70,7 +70,7 @@ model BrokerProperties { @doc("The Running Mode of the Broker Deployment.") mode: RunMode; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } @@ -419,7 +419,7 @@ model BrokerListenerProperties { @doc("Defines configuration of a TLS server certificate. NOTE Enum - Only one TLS Cert method is supported") tls?: TlsCertMethod; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } @@ -515,7 +515,7 @@ model BrokerAuthenticationProperties { @doc("The array of listener Resources it supports.") listenerRef: string[]; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } @@ -649,7 +649,7 @@ model BrokerAuthorizationProperties { @doc("The array of listener Resources it supports.") listenerRef: string[]; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/instance.tsp b/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/instance.tsp index b7150ac379e9..f9b533ca87ff 100644 --- a/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/instance.tsp +++ b/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/instance.tsp @@ -25,7 +25,7 @@ model Instance is TrackedResource { // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -47,7 +47,7 @@ model InstanceProperties { version?: string; @doc("The status of the last operation.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/solution.tsp b/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/solution.tsp index 32d72ed4b026..8a9ad0c0ae7c 100644 --- a/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/solution.tsp +++ b/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/solution.tsp @@ -25,7 +25,7 @@ model Solution is TrackedResource { // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -39,7 +39,7 @@ model SolutionProperties { version?: string; @doc("The status of the last operation.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } diff --git a/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/target.tsp b/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/target.tsp index d736a18ed658..de4cabb423c1 100644 --- a/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/target.tsp +++ b/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/target.tsp @@ -25,7 +25,7 @@ model Target is TrackedResource { // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -49,7 +49,7 @@ model TargetProperties { version?: string; @doc("The status of the last operation.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/keyvault/Security.KeyVault.Certificates/models.tsp b/specification/keyvault/Security.KeyVault.Certificates/models.tsp index 7b40c435995e..a4f5ff990fbc 100644 --- a/specification/keyvault/Security.KeyVault.Certificates/models.tsp +++ b/specification/keyvault/Security.KeyVault.Certificates/models.tsp @@ -155,7 +155,7 @@ model CertificateListResult { * The URL to get the next set of certificates. */ @TypeSpec.nextLink - @visibility("read") + @visibility(Lifecycle.Read) nextLink?: string; } @@ -196,13 +196,13 @@ model CertificateAttributes { /** * softDelete data retention days. Value should be >=7 and <=90 when softDelete enabled, otherwise 0. */ - @visibility("read") + @visibility(Lifecycle.Read) recoverableDays?: int32; /** * Reflects the deletion recovery level currently in effect for certificates in the current vault. If it contains 'Purgeable', the certificate can be permanently deleted by a privileged user; otherwise, only the system can purge the certificate, at the end of the retention interval. */ - @visibility("read") + @visibility(Lifecycle.Read) recoveryLevel?: DeletionRecoveryLevel; } @@ -234,14 +234,14 @@ model Attributes { /** * Creation time in UTC. */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) created?: utcDateTime; /** * Last updated time in UTC. */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) updated?: utcDateTime; } @@ -260,14 +260,14 @@ model DeletedCertificateBundle { /** * The time when the certificate is scheduled to be purged, in UTC */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) scheduledPurgeDate?: utcDateTime; /** * The time when the certificate was deleted, in UTC */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) deletedDate?: utcDateTime; } @@ -279,26 +279,26 @@ model CertificateBundle { /** * The certificate id. */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; /** * The key id. */ - @visibility("read") + @visibility(Lifecycle.Read) kid?: string; /** * The secret id. */ - @visibility("read") + @visibility(Lifecycle.Read) sid?: string; /** * Thumbprint of the certificate. */ #suppress "@azure-tools/typespec-azure-core/casing-style" "Preserving original casing" - @visibility("read") + @visibility(Lifecycle.Read) @encodedName("application/json", "x5t") @encode("base64url") X509Thumbprint?: bytes; @@ -306,7 +306,7 @@ model CertificateBundle { /** * The management policy. */ - @visibility("read") + @visibility(Lifecycle.Read) policy?: CertificatePolicy; /** @@ -343,7 +343,7 @@ model CertificatePolicy { /** * The certificate id. */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; /** @@ -560,7 +560,7 @@ model Contacts { /** * Identifier for the contacts collection. */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; /** @@ -602,14 +602,14 @@ model CertificateIssuerListResult { * A response message containing a list of certificate issuers in the key vault along with a link to the next page of certificate issuers. */ @items - @visibility("read") + @visibility(Lifecycle.Read) value?: CertificateIssuerItem[]; /** * The URL to get the next set of certificate issuers. */ @TypeSpec.nextLink - @visibility("read") + @visibility(Lifecycle.Read) nextLink?: string; } @@ -729,14 +729,14 @@ model IssuerAttributes { /** * Creation time in UTC. */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) created?: utcDateTime; /** * Last updated time in UTC. */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) updated?: utcDateTime; } @@ -748,7 +748,7 @@ model IssuerBundle { /** * Identifier for the issuer object. */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; /** @@ -834,7 +834,7 @@ model CertificateOperation { /** * The certificate id. */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; /** @@ -991,7 +991,7 @@ model BackupCertificateResult { /** * The backup blob containing the backed up certificate. */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("base64url") value?: bytes; } @@ -1017,14 +1017,14 @@ model DeletedCertificateListResult { * A response message containing a list of deleted certificates in the vault along with a link to the next page of deleted certificates. */ @items - @visibility("read") + @visibility(Lifecycle.Read) value?: DeletedCertificateItem[]; /** * The URL to get the next set of deleted certificates. */ @TypeSpec.nextLink - @visibility("read") + @visibility(Lifecycle.Read) nextLink?: string; } @@ -1042,14 +1042,14 @@ model DeletedCertificateItem { /** * The time when the certificate is scheduled to be purged, in UTC */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) scheduledPurgeDate?: utcDateTime; /** * The time when the certificate was deleted, in UTC */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) deletedDate?: utcDateTime; } @@ -1061,6 +1061,6 @@ model PendingCertificateSigningRequestResult { /** * The pending certificate signing request as Base64 encoded string. */ - @visibility("read") + @visibility(Lifecycle.Read) value?: string; } diff --git a/specification/keyvault/Security.KeyVault.Common/common.tsp b/specification/keyvault/Security.KeyVault.Common/common.tsp index e2c7b37901a6..c33dcb442c30 100644 --- a/specification/keyvault/Security.KeyVault.Common/common.tsp +++ b/specification/keyvault/Security.KeyVault.Common/common.tsp @@ -21,19 +21,19 @@ union Error { /** * The error code. */ - @visibility("read") + @visibility(Lifecycle.Read) code?: string, /** * The error message. */ - @visibility("read") + @visibility(Lifecycle.Read) message?: string, /** * The key vault server error. */ - @visibility("read") + @visibility(Lifecycle.Read) @encodedName("application/json", "innererror") innerError?: Error, }, @@ -48,6 +48,6 @@ model KeyVaultError { * The key vault server error. */ #suppress "@azure-tools/typespec-azure-core/no-nullable" "Intentionally nullable model" - @visibility("read") + @visibility(Lifecycle.Read) error?: Error; } diff --git a/specification/keyvault/Security.KeyVault.Keys/models.tsp b/specification/keyvault/Security.KeyVault.Keys/models.tsp index 4f13f0ff19c2..91688f724529 100644 --- a/specification/keyvault/Security.KeyVault.Keys/models.tsp +++ b/specification/keyvault/Security.KeyVault.Keys/models.tsp @@ -375,13 +375,13 @@ model KeyAttributes { /** * softDelete data retention days. Value should be >=7 and <=90 when softDelete enabled, otherwise 0. */ - @visibility("read") + @visibility(Lifecycle.Read) recoverableDays?: int32; /** * Reflects the deletion recovery level currently in effect for keys in the current vault. If it contains 'Purgeable' the key can be permanently deleted by a privileged user; otherwise, only the system can purge the key, at the end of the retention interval. */ - @visibility("read") + @visibility(Lifecycle.Read) recoveryLevel?: DeletionRecoveryLevel; /** @@ -392,7 +392,7 @@ model KeyAttributes { /** * The underlying HSM Platform. */ - @visibility("read") + @visibility(Lifecycle.Read) hsmPlatform?: string; /** @@ -457,14 +457,14 @@ model Attributes { /** * Creation time in UTC. */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) created?: utcDateTime; /** * Last updated time in UTC. */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) updated?: utcDateTime; } @@ -513,7 +513,7 @@ model KeyBundle { /** * True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. */ - @visibility("read") + @visibility(Lifecycle.Read) managed?: boolean; /** @@ -669,14 +669,14 @@ model DeletedKeyBundle { /** * The time when the key is scheduled to be purged, in UTC */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) scheduledPurgeDate?: utcDateTime; /** * The time when the key was deleted, in UTC */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) deletedDate?: utcDateTime; } @@ -718,14 +718,14 @@ model KeyListResult { * A response message containing a list of keys in the key vault along with a link to the next page of keys. */ @items - @visibility("read") + @visibility(Lifecycle.Read) value?: KeyItem[]; /** * The URL to get the next set of keys. */ @nextLink - @visibility("read") + @visibility(Lifecycle.Read) nextLink?: string; } @@ -751,7 +751,7 @@ model KeyItem { /** * True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. */ - @visibility("read") + @visibility(Lifecycle.Read) managed?: boolean; } @@ -762,7 +762,7 @@ model BackupKeyResult { /** * The backup blob containing the backed up key. */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("base64url") value?: bytes; } @@ -821,13 +821,13 @@ model KeyOperationResult { /** * Key identifier */ - @visibility("read") + @visibility(Lifecycle.Read) kid?: string; /** * The result of the operation. */ - @visibility("read") + @visibility(Lifecycle.Read) @encodedName("application/json", "value") @encode("base64url") result?: bytes; @@ -835,14 +835,14 @@ model KeyOperationResult { /** * Cryptographically random, non-repeating initialization vector for symmetric algorithms. */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("base64url") iv?: bytes; /** * The tag to authenticate when performing decryption with an authenticated algorithm. */ - @visibility("read") + @visibility(Lifecycle.Read) @encodedName("application/json", "tag") @encode("base64url") authenticationTag?: bytes; @@ -850,7 +850,7 @@ model KeyOperationResult { /** * Additional data to authenticate but not encrypt/decrypt when using authenticated crypto algorithms. */ - @visibility("read") + @visibility(Lifecycle.Read) @encodedName("application/json", "aad") @encode("base64url") additionalAuthenticatedData?: bytes; @@ -904,7 +904,7 @@ model KeyVerifyResult { /** * True if the signature is verified, otherwise false. */ - @visibility("read") + @visibility(Lifecycle.Read) value?: boolean; } @@ -937,7 +937,7 @@ model KeyReleaseResult { /** * A signed object containing the released key. */ - @visibility("read") + @visibility(Lifecycle.Read) value?: string; } @@ -950,14 +950,14 @@ model DeletedKeyListResult { * A response message containing a list of deleted keys in the key vault along with a link to the next page of deleted keys. */ @items - @visibility("read") + @visibility(Lifecycle.Read) value?: DeletedKeyItem[]; /** * The URL to get the next set of deleted keys. */ @nextLink - @visibility("read") + @visibility(Lifecycle.Read) nextLink?: string; } @@ -975,14 +975,14 @@ model DeletedKeyItem { /** * The time when the key is scheduled to be purged, in UTC */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) scheduledPurgeDate?: utcDateTime; /** * The time when the key was deleted, in UTC */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) deletedDate?: utcDateTime; } @@ -994,7 +994,7 @@ model KeyRotationPolicy { /** * The key policy id. */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; /** @@ -1060,14 +1060,14 @@ model KeyRotationPolicyAttributes { /** * The key rotation policy created time in UTC. */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) created?: utcDateTime; /** * The key rotation policy's last updated time in UTC. */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) updated?: utcDateTime; } diff --git a/specification/keyvault/Security.KeyVault.RBAC/models.tsp b/specification/keyvault/Security.KeyVault.RBAC/models.tsp index 2a3cddedf5cc..ca5c7400a101 100644 --- a/specification/keyvault/Security.KeyVault.RBAC/models.tsp +++ b/specification/keyvault/Security.KeyVault.RBAC/models.tsp @@ -243,19 +243,19 @@ model RoleDefinition { /** * The role definition ID. */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; /** * The role definition name. */ - @visibility("read") + @visibility(Lifecycle.Read) name?: string; /** * The role definition type. */ - @visibility("read") + @visibility(Lifecycle.Read) type?: RoleDefinitionType; /** @@ -357,19 +357,19 @@ model RoleAssignment { /** * The role assignment ID. */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; /** * The role assignment name. */ - @visibility("read") + @visibility(Lifecycle.Read) name?: string; /** * The role assignment type. */ - @visibility("read") + @visibility(Lifecycle.Read) type?: string; /** diff --git a/specification/keyvault/Security.KeyVault.Secrets/models.tsp b/specification/keyvault/Security.KeyVault.Secrets/models.tsp index 462100f70847..251b299b58bf 100644 --- a/specification/keyvault/Security.KeyVault.Secrets/models.tsp +++ b/specification/keyvault/Security.KeyVault.Secrets/models.tsp @@ -85,13 +85,13 @@ model SecretAttributes { /** * softDelete data retention days. Value should be >=7 and <=90 when softDelete enabled, otherwise 0. */ - @visibility("read") + @visibility(Lifecycle.Read) recoverableDays?: int32; /** * Reflects the deletion recovery level currently in effect for secrets in the current vault. If it contains 'Purgeable', the secret can be permanently deleted by a privileged user; otherwise, only the system can purge the secret, at the end of the retention interval. */ - @visibility("read") + @visibility(Lifecycle.Read) recoveryLevel?: DeletionRecoveryLevel; } @@ -123,14 +123,14 @@ model Attributes { /** * Creation time in UTC. */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) created?: utcDateTime; /** * Last updated time in UTC. */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) updated?: utcDateTime; } @@ -167,13 +167,13 @@ model SecretBundle { /** * If this is a secret backing a KV certificate, then this field specifies the corresponding key backing the KV certificate. */ - @visibility("read") + @visibility(Lifecycle.Read) kid?: string; /** * True if the secret's lifetime is managed by key vault. If this is a secret backing a certificate, then managed will be true. */ - @visibility("read") + @visibility(Lifecycle.Read) managed?: boolean; } @@ -191,14 +191,14 @@ model DeletedSecretBundle { /** * The time when the secret is scheduled to be purged, in UTC */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) scheduledPurgeDate?: utcDateTime; /** * The time when the secret was deleted, in UTC */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) deletedDate?: utcDateTime; } @@ -233,14 +233,14 @@ model SecretListResult { * A response message containing a list of secrets in the key vault along with a link to the next page of secrets. */ @items - @visibility("read") + @visibility(Lifecycle.Read) value?: SecretItem[]; /** * The URL to get the next set of secrets. */ @nextLink - @visibility("read") + @visibility(Lifecycle.Read) nextLink?: string; } @@ -271,7 +271,7 @@ model SecretItem { /** * True if the secret's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. */ - @visibility("read") + @visibility(Lifecycle.Read) managed?: boolean; } @@ -284,14 +284,14 @@ model DeletedSecretListResult { * A response message containing a list of deleted secrets in the key vault along with a link to the next page of deleted secrets. */ @items - @visibility("read") + @visibility(Lifecycle.Read) value?: DeletedSecretItem[]; /** * The URL to get the next set of deleted secrets. */ @nextLink - @visibility("read") + @visibility(Lifecycle.Read) nextLink?: string; } @@ -309,14 +309,14 @@ model DeletedSecretItem { /** * The time when the secret is scheduled to be purged, in UTC */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) scheduledPurgeDate?: utcDateTime; /** * The time when the secret was deleted, in UTC */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) deletedDate?: utcDateTime; } @@ -328,7 +328,7 @@ model BackupSecretResult { /** * The backup blob containing the backed up secret. */ - @visibility("read") + @visibility(Lifecycle.Read) @encode("base64url") value?: bytes; } diff --git a/specification/keyvault/Security.KeyVault.Settings/models.tsp b/specification/keyvault/Security.KeyVault.Settings/models.tsp index 75919ca03934..e18582394bfb 100644 --- a/specification/keyvault/Security.KeyVault.Settings/models.tsp +++ b/specification/keyvault/Security.KeyVault.Settings/models.tsp @@ -74,6 +74,6 @@ model SettingsListResult { /** * A response message containing a list of account settings with their associated value. */ - @visibility("read") + @visibility(Lifecycle.Read) settings?: Setting[]; } diff --git a/specification/kubernetesruntime/KubernetesRuntime.Management/bgppeer.tsp b/specification/kubernetesruntime/KubernetesRuntime.Management/bgppeer.tsp index b712c105ebbb..9ad37f89eb4d 100644 --- a/specification/kubernetesruntime/KubernetesRuntime.Management/bgppeer.tsp +++ b/specification/kubernetesruntime/KubernetesRuntime.Management/bgppeer.tsp @@ -28,7 +28,7 @@ model BgpPeerProperties { @doc("Peer Address") peerAddress: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("Resource provision state") provisioningState?: ProvisioningState; } diff --git a/specification/kubernetesruntime/KubernetesRuntime.Management/loadbalancer.tsp b/specification/kubernetesruntime/KubernetesRuntime.Management/loadbalancer.tsp index 3e66d03532e1..ac8a4a4bd93a 100644 --- a/specification/kubernetesruntime/KubernetesRuntime.Management/loadbalancer.tsp +++ b/specification/kubernetesruntime/KubernetesRuntime.Management/loadbalancer.tsp @@ -47,7 +47,7 @@ model LoadBalancerProperties { @added(Microsoft.KubernetesRuntime.Versions.v2024_03_01) bgpPeers?: string[]; - @visibility("read") + @visibility(Lifecycle.Read) @doc("Resource provision state") provisioningState?: ProvisioningState; } diff --git a/specification/kubernetesruntime/KubernetesRuntime.Management/service.tsp b/specification/kubernetesruntime/KubernetesRuntime.Management/service.tsp index 16bf30a3c455..6c8c760eac77 100644 --- a/specification/kubernetesruntime/KubernetesRuntime.Management/service.tsp +++ b/specification/kubernetesruntime/KubernetesRuntime.Management/service.tsp @@ -11,11 +11,11 @@ namespace Microsoft.KubernetesRuntime; @doc("Properties for the service resource") model ServiceProperties { @doc("The object id of the service principal of the RP provisioned in the tenant") - @visibility("read") + @visibility(Lifecycle.Read) rpObjectId?: uuid; @doc("Resource provision state") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/kubernetesruntime/KubernetesRuntime.Management/storageclass.tsp b/specification/kubernetesruntime/KubernetesRuntime.Management/storageclass.tsp index f45b061e8d77..481b0c2abfa9 100644 --- a/specification/kubernetesruntime/KubernetesRuntime.Management/storageclass.tsp +++ b/specification/kubernetesruntime/KubernetesRuntime.Management/storageclass.tsp @@ -117,11 +117,11 @@ model StorageClassProperties { mountOptions?: string[]; @doc("Provisioner name") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) provisioner?: string; @doc("Binding mode of volumes: Immediate, WaitForFirstConsumer") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) volumeBindingMode?: VolumeBindingMode; @doc("The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce]") @@ -144,11 +144,11 @@ model StorageClassProperties { @doc("Properties of the StorageClass") // prevent generation of buggy StorageClassPropertiesUpdate model - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) typeProperties: StorageClassTypeProperties; @doc("Resource provision state") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/liftrastronomer/Astronomer.Astro.Management/LiftrBase/main.tsp b/specification/liftrastronomer/Astronomer.Astro.Management/LiftrBase/main.tsp index 34f517b11aba..c3d219e3fc9b 100644 --- a/specification/liftrastronomer/Astronomer.Astro.Management/LiftrBase/main.tsp +++ b/specification/liftrastronomer/Astronomer.Astro.Management/LiftrBase/main.tsp @@ -95,7 +95,7 @@ model OfferDetails { @added(Versions.v2024_08_27_preview) @added(Versions.v2024_08_27) @doc("Current subscription end date and time") - @visibility("read") + @visibility(Lifecycle.Read) endDate?: utcDateTime; } @@ -124,14 +124,14 @@ model UserDetails { @doc("Base resource properties that can be extended for arm resources.") model BaseResourceProperties { @doc("Marketplace details of the resource.") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) marketplace: MarketplaceDetails; @doc("Details of the user.") user: UserDetails; @doc("Provisioning state of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } @@ -149,7 +149,7 @@ model SingleSignOnProperties { @doc("List of AAD domains fetched from Microsoft Graph for user.") aadDomains?: string[]; - @visibility("read") + @visibility(Lifecycle.Read) @doc("Provisioning State of the resource") provisioningState?: ResourceProvisioningState; } diff --git a/specification/liftrneon/Neon.Postgres.Management/LiftrBase/main.tsp b/specification/liftrneon/Neon.Postgres.Management/LiftrBase/main.tsp index afbeebb94191..61de9654b004 100644 --- a/specification/liftrneon/Neon.Postgres.Management/LiftrBase/main.tsp +++ b/specification/liftrneon/Neon.Postgres.Management/LiftrBase/main.tsp @@ -113,7 +113,7 @@ model CompanyDetails { @doc("Base resource properties that can be extended for arm resources.") model BaseResourceProperties { @doc("Marketplace details of the resource.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) marketplaceDetails: MarketplaceDetails; @doc("Details of the user.") @@ -123,7 +123,7 @@ model BaseResourceProperties { companyDetails: CompanyDetails; @doc("Provisioning state of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } diff --git a/specification/liftrqumulo/Qumulo.Storage.Management/LiftrBase.Storage/main.tsp b/specification/liftrqumulo/Qumulo.Storage.Management/LiftrBase.Storage/main.tsp index f693c72d9208..10cb7b9d1fb3 100644 --- a/specification/liftrqumulo/Qumulo.Storage.Management/LiftrBase.Storage/main.tsp +++ b/specification/liftrqumulo/Qumulo.Storage.Management/LiftrBase.Storage/main.tsp @@ -39,7 +39,7 @@ model FileSystemResourceProperties { /** * Provisioning State of the resource */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** @@ -130,7 +130,7 @@ model FileSystemResource @path @key("fileSystemName") @segment("fileSystems") - @visibility("read") + @visibility(Lifecycle.Read) @pattern("^[a-zA-Z0-9_-]*$") name: string; diff --git a/specification/liftrqumulo/Qumulo.Storage.Management/LiftrBase/main.tsp b/specification/liftrqumulo/Qumulo.Storage.Management/LiftrBase/main.tsp index 066f7f1ef702..7e2d033e2cb9 100644 --- a/specification/liftrqumulo/Qumulo.Storage.Management/LiftrBase/main.tsp +++ b/specification/liftrqumulo/Qumulo.Storage.Management/LiftrBase/main.tsp @@ -78,7 +78,7 @@ model MarketplaceDetails { /** * Marketplace subscription status */ - @visibility("read") + @visibility(Lifecycle.Read) marketplaceSubscriptionStatus?: MarketplaceSubscriptionStatus; } diff --git a/specification/loadtestservice/LoadTestService.Management/models.tsp b/specification/loadtestservice/LoadTestService.Management/models.tsp index e294dc6cb1d7..efd554e3c2dc 100644 --- a/specification/loadtestservice/LoadTestService.Management/models.tsp +++ b/specification/loadtestservice/LoadTestService.Management/models.tsp @@ -112,7 +112,7 @@ union type { @doc("Details about the connection between the Batch service and the endpoint.") model EndpointDetail { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The port an endpoint is connected to.") port?: int32; } @@ -120,16 +120,16 @@ model EndpointDetail { @doc("A domain name and connection details used to access a dependency.") model EndpointDependency { @doc("The domain name of the dependency. Domain names may be fully qualified or may contain a * wildcard.") - @visibility("read") + @visibility(Lifecycle.Read) @key domainName: string; @doc("Human-readable supplemental information about the dependency and when it is applicable.") - @visibility("read") + @visibility(Lifecycle.Read) description?: string; @doc("The list of connection details for this endpoint.") - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["port"]) endpointDetails?: EndpointDetail[]; } @@ -137,11 +137,11 @@ model EndpointDependency { @doc("A collection of related endpoints from the same service for which the Batch service requires outbound access.") model OutboundEnvironmentEndpoint { @doc("The type of service that Azure Load Testing connects to.") - @visibility("read") + @visibility(Lifecycle.Read) category?: string; @doc("The endpoints for this service to which the Batch service makes outbound calls.") - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["domainName"]) endpoints?: EndpointDependency[]; } @@ -176,7 +176,7 @@ model QuotaResourceProperties { usage?: int32; @doc("Resource provisioning state.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ResourceState; } @@ -196,16 +196,16 @@ model QuotaResource is ProxyResource { model MaxMonthlyVirtualUserHoursResourceProperties { @doc("Current limit value, with -1 indicating that there is no limit.") @minValue(-1) - @visibility("read") + @visibility(Lifecycle.Read) limit?: int32; @doc("Current usage value.") @minValue(0) - @visibility("read") + @visibility(Lifecycle.Read) usage?: int32; @doc("Resource provisioning state.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ResourceState; } @@ -238,12 +238,12 @@ model LoadTestProperties { @doc("Description of the resource.") description?: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("Resource provisioning state.") provisioningState?: ResourceState; #suppress "@azure-tools/typespec-azure-core/casing-style" "URI is an abbervation and should be upper case" - @visibility("read") + @visibility(Lifecycle.Read) @maxLength(2083) @doc("Resource data plane URI.") dataPlaneURI?: string; @@ -255,19 +255,19 @@ model LoadTestProperties { @doc("Check quota availability response object.") model CheckQuotaAvailabilityResponse { @doc("Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}") - @visibility("read") + @visibility(Lifecycle.Read) id: string; @doc("The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"") - @visibility("read") + @visibility(Lifecycle.Read) type: string; @doc("Azure Resource Manager metadata containing createdBy and modifiedBy information.") - @visibility("read") + @visibility(Lifecycle.Read) systemData?: Azure.ResourceManager.Foundations.SystemData; @doc("The name of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) name?: string; #suppress "deprecated" "Legacy flatten" diff --git a/specification/loadtestservice/LoadTestService/models.notificationrule.tsp b/specification/loadtestservice/LoadTestService/models.notificationrule.tsp index c05a4f1ac08a..854816741b33 100644 --- a/specification/loadtestservice/LoadTestService/models.notificationrule.tsp +++ b/specification/loadtestservice/LoadTestService/models.notificationrule.tsp @@ -99,7 +99,7 @@ model NotificationRule { @minLength(2) @pattern("^[a-z0-9_-]*$") @doc("The unique identifier of the notification rule.") - @visibility("read") + @visibility(Lifecycle.Read) notificationRuleId: string; @maxLength(50) diff --git a/specification/loadtestservice/LoadTestService/models.testprofile.tsp b/specification/loadtestservice/LoadTestService/models.testprofile.tsp index 2a04e965f67d..7a6758938ebc 100644 --- a/specification/loadtestservice/LoadTestService/models.testprofile.tsp +++ b/specification/loadtestservice/LoadTestService/models.testprofile.tsp @@ -17,7 +17,7 @@ model TestProfileIdPathParameter { @maxLength(50) @minLength(2) @key - @visibility("read") + @visibility(Lifecycle.Read) @pattern("^[a-z0-9_-]*$") testProfileId: string; } @@ -26,7 +26,7 @@ model TestProfileIdPathParameter { @added(APIVersions.v2024_05_01_preview) model TestProfileRunIdPathParameter { @doc("Unique identifier for the test profile run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.") - @visibility("read") + @visibility(Lifecycle.Read) @maxLength(50) @minLength(2) @key @@ -120,7 +120,7 @@ model TestProfileRunRecommendation { @discriminator("kind") model TargetResourceConfigurations { @doc("Kind of the resource for which the configurations apply.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) kind: ResourceKind; } @@ -155,11 +155,11 @@ model TestProfile { description?: string; @doc("Associated test ID for the test profile. This property is required for creating a Test Profile and it's not allowed to be updated.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) testId?: string; @doc("Target resource ID on which the test profile is created. This property is required for creating a Test Profile and it's not allowed to be updated.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) targetResourceId?: string; @doc("Configurations of the target resource on which testing would be done.") @@ -186,52 +186,52 @@ model TestProfileRun { description?: string; @doc("Associated test profile ID for the test profile run. This is required to create a test profile run and can't be updated.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) testProfileId?: string; // End section: Properties provided by user // Begin section: Properties populated from Test Profile @doc("Target resource ID on which the test profile run is created") - @visibility("read") + @visibility(Lifecycle.Read) targetResourceId?: string; @doc("Configurations of the target resource on which the test profile ran.") - @visibility("read") + @visibility(Lifecycle.Read) targetResourceConfigurations?: TargetResourceConfigurations; // End section: Properties populated from Test Profile // Begin section: Test profile Run specific information @doc("The test profile run status.") - @visibility("read") + @visibility(Lifecycle.Read) status?: TestProfileRunStatus; @doc("Error details if there is any failure in test profile run. These errors are specific to the Test Profile Run.") - @visibility("read") + @visibility(Lifecycle.Read) errorDetails?: ErrorDetails[]; @doc("The test profile run start DateTime(RFC 3339 literal format).") - @visibility("read") + @visibility(Lifecycle.Read) startDateTime?: utcDateTime; @doc("The test profile run end DateTime(RFC 3339 literal format).") - @visibility("read") + @visibility(Lifecycle.Read) endDateTime?: utcDateTime; @doc("Test profile run duration in seconds.") - @visibility("read") + @visibility(Lifecycle.Read) durationInSeconds?: int64; @doc(""" Details of the test runs ran as part of the test profile run. Key is the testRunId of the corresponding testRun. """) - @visibility("read") + @visibility(Lifecycle.Read) testRunDetails?: Record; @doc("Recommendations provided based on a successful test profile run.") - @visibility("read") + @visibility(Lifecycle.Read) recommendations?: TestProfileRunRecommendation[]; // End section: Test profile run specific information diff --git a/specification/loadtestservice/LoadTestService/models.trigger.tsp b/specification/loadtestservice/LoadTestService/models.trigger.tsp index 0ae7132cc633..ebf7ed0813c8 100644 --- a/specification/loadtestservice/LoadTestService/models.trigger.tsp +++ b/specification/loadtestservice/LoadTestService/models.trigger.tsp @@ -100,7 +100,7 @@ model ScheduleTestsTrigger extends Trigger { @doc("Start date time of the trigger in UTC timezone. (RFC 3339 literal format)") startDateTime?: utcDateTime; - @visibility("read") + @visibility(Lifecycle.Read) recurrenceStatus?: RecurrenceStatus; @doc("Recurrence details of the trigger. Null if schedule is not recurring.") @@ -127,7 +127,7 @@ model Trigger { @minLength(2) @pattern("^[a-z0-9_-]*$") @doc("The unique identifier of the trigger.") - @visibility("read") + @visibility(Lifecycle.Read) triggerId: string; @maxLength(50) @@ -146,7 +146,7 @@ model Trigger { state?: TriggerState; @doc("Details of current state of the trigger.") - @visibility("read") + @visibility(Lifecycle.Read) stateDetails?: StateDetails; ...SystemMetaData; diff --git a/specification/loadtestservice/LoadTestService/models.tsp b/specification/loadtestservice/LoadTestService/models.tsp index ff0ecf9d9de4..34cd16cbd828 100644 --- a/specification/loadtestservice/LoadTestService/models.tsp +++ b/specification/loadtestservice/LoadTestService/models.tsp @@ -309,7 +309,7 @@ model Test { baselineTestRunId?: string; @doc("The input artifacts for the test.") - @visibility("read") + @visibility(Lifecycle.Read) inputArtifacts?: TestInputArtifacts; ...TestIdPathParameter; @@ -399,11 +399,11 @@ model PassFailMetric { action?: PFAction = PFAction.continue; @doc("The actual value of the client metric for the test run.") - @visibility("read") + @visibility(Lifecycle.Read) actualValue?: float64; @doc("Outcome of the test run.") - @visibility("read") + @visibility(Lifecycle.Read) result?: PFResult; } @@ -431,11 +431,11 @@ model PassFailServerMetric { action?: PFAction = PFAction.continue; @doc("The actual value of the server metric ") - @visibility("read") + @visibility(Lifecycle.Read) actualValue?: float64; @doc("Outcome of the test run.") - @visibility("read") + @visibility(Lifecycle.Read) result?: PFResult; } @@ -560,7 +560,7 @@ model TestInputArtifacts { urlTestConfigFileInfo?: TestFileInfo; @doc("Additional supported files for the test run") - @visibility("read") + @visibility(Lifecycle.Read) additionalFileInfo?: TestFileInfo[]; } @@ -573,23 +573,23 @@ model FileInfo { @doc("File URL.") //update description - @visibility("read") + @visibility(Lifecycle.Read) url?: url; @doc("File type") - @visibility("read") + @visibility(Lifecycle.Read) fileType?: FileType; @doc("Expiry time of the file (RFC 3339 literal format)") - @visibility("read") + @visibility(Lifecycle.Read) expireDateTime?: utcDateTime; @doc("Validation status of the file") - @visibility("read") + @visibility(Lifecycle.Read) validationStatus?: FileStatus; @doc("Validation failure error details") - @visibility("read") + @visibility(Lifecycle.Read) validationFailureDetails?: string; } @@ -603,7 +603,7 @@ model TestAppComponents { components: Record; @doc("Test identifier") - @visibility("read") + @visibility(Lifecycle.Read) testId?: string; ...SystemMetaData; @@ -616,7 +616,7 @@ model AppComponent { @doc(""" fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName} """) - @visibility("read") + @visibility(Lifecycle.Read) resourceId: string; @doc("Azure resource name, required while creating the app component.") @@ -629,11 +629,11 @@ model AppComponent { displayName?: string; @doc("Resource group name of the Azure resource") - @visibility("read") + @visibility(Lifecycle.Read) resourceGroup?: string; @doc("Subscription Id of the Azure resource") - @visibility("read") + @visibility(Lifecycle.Read) subscriptionId?: string; @doc("Kind of Azure resource type") @@ -643,7 +643,7 @@ model AppComponent { @doc("Test server metrics configuration") model TestServerMetricConfig { @doc("Test identifier") - @visibility("read") + @visibility(Lifecycle.Read) testId?: string; @doc(""" @@ -663,7 +663,7 @@ model TestServerMetricConfig { """) model ResourceMetric { @doc("Unique name for metric.") - @visibility("read") + @visibility(Lifecycle.Read) id?: string; @doc("Azure resource id.") @@ -716,7 +716,7 @@ model TestRun { environmentVariables?: Record; @doc("Error details if there is any failure in load test run") - @visibility("read") + @visibility(Lifecycle.Read) errorDetails?: ErrorDetails[]; @doc(""" @@ -724,7 +724,7 @@ model TestRun { The sampler name is the same as the name mentioned in the test script. Sampler name "Total" represents the aggregated statistics of all the samplers. """) - @visibility("read") + @visibility(Lifecycle.Read) testRunStatistics?: Record; @doc(""" @@ -732,24 +732,24 @@ model TestRun { The region name should of format accepted by ARM, and should be a region supported by Azure Load Testing. For example, East US should be passed as "eastus". The region name must match one of the strings in the "Name" column returned from running the "az account list-locations -o table" Azure CLI command. """) - @visibility("read") + @visibility(Lifecycle.Read) @added(APIVersions.v2024_03_01_preview) regionalStatistics?: Record; @doc("The load test configuration.") - @visibility("read") + @visibility(Lifecycle.Read) loadTestConfiguration?: LoadTestConfiguration; @doc("Collection of test run artifacts") - @visibility("read") + @visibility(Lifecycle.Read) testArtifacts?: TestRunArtifacts; @doc("Test result for pass/Fail criteria used during the test run.") - @visibility("read") + @visibility(Lifecycle.Read) testResult?: PFTestResult; @doc("Number of virtual users, for which test has been run.") - @visibility("read") + @visibility(Lifecycle.Read) virtualUsers?: int32; @maxLength(50) @@ -767,41 +767,41 @@ model TestRun { description?: string; @doc("The test run status.") - @visibility("read") + @visibility(Lifecycle.Read) status?: Status; @doc("The test run start DateTime(RFC 3339 literal format).") - @visibility("read") + @visibility(Lifecycle.Read) startDateTime?: utcDateTime; @doc("The test run end DateTime(RFC 3339 literal format).") - @visibility("read") + @visibility(Lifecycle.Read) endDateTime?: utcDateTime; @doc("Test run initiated time.") - @visibility("read") + @visibility(Lifecycle.Read) executedDateTime?: utcDateTime; @doc("Portal url.") - @visibility("read") + @visibility(Lifecycle.Read) portalUrl?: string; @doc("Test run duration in milliseconds.") - @visibility("read") + @visibility(Lifecycle.Read) duration?: int64; @doc("Virtual user hours consumed by the test run.") - @visibility("read") + @visibility(Lifecycle.Read) @added(APIVersions.v2024_07_01_preview) virtualUserHours?: float64; @doc("Subnet ID on which the load test instances should run.") - @visibility("read") + @visibility(Lifecycle.Read) subnetId?: string; @added(APIVersions.v2023_04_01_preview) @doc("Type of test.") - @visibility("read") + @visibility(Lifecycle.Read) kind?: TestKind; @added(APIVersions.v2024_05_01_preview) @@ -815,7 +815,7 @@ model TestRun { #suppress "@azure-tools/typespec-azure-core/casing-style" "IP is an abbervation and should be all caps" @added(APIVersions.v2023_04_01_preview) @doc("Inject load test engines without deploying public IP for outbound access") - @visibility("read") + @visibility(Lifecycle.Read) publicIPDisabled?: boolean; @added(APIVersions.v2024_07_01_preview) @@ -828,105 +828,105 @@ model TestRun { @doc("Error details if there is any failure in load test run") model ErrorDetails { @doc("Error details in case test run was not successfully run.") - @visibility("read") + @visibility(Lifecycle.Read) message?: string; } @doc("Test run statistics.") model TestRunStatistics { @doc("Transaction name.") - @visibility("read") + @visibility(Lifecycle.Read) transaction?: string; @doc("Sampler count.") - @visibility("read") + @visibility(Lifecycle.Read) sampleCount?: float64; @doc("Error count.") - @visibility("read") + @visibility(Lifecycle.Read) errorCount?: float64; @doc("Error percentage.") - @visibility("read") + @visibility(Lifecycle.Read) errorPct?: float64; @doc("Mean response time.") - @visibility("read") + @visibility(Lifecycle.Read) meanResTime?: float64; @doc("Median response time.") - @visibility("read") + @visibility(Lifecycle.Read) medianResTime?: float64; @doc("Max response time.") - @visibility("read") + @visibility(Lifecycle.Read) maxResTime?: float64; @doc("Minimum response time.") - @visibility("read") + @visibility(Lifecycle.Read) minResTime?: float64; @doc("90 percentile response time.") - @visibility("read") + @visibility(Lifecycle.Read) pct1ResTime?: float64; @doc("95 percentile response time.") - @visibility("read") + @visibility(Lifecycle.Read) pct2ResTime?: float64; @doc("99 percentile response time.") - @visibility("read") + @visibility(Lifecycle.Read) pct3ResTime?: float64; @added(APIVersions.v2024_05_01_preview) @doc("75 percentile response time.") - @visibility("read") + @visibility(Lifecycle.Read) pct75ResTime?: float64; @added(APIVersions.v2024_05_01_preview) @doc("96 percentile response time.") - @visibility("read") + @visibility(Lifecycle.Read) pct96ResTime?: float64; @added(APIVersions.v2024_05_01_preview) @doc("97 percentile response time.") - @visibility("read") + @visibility(Lifecycle.Read) pct97ResTime?: float64; @added(APIVersions.v2024_05_01_preview) @doc("98 percentile response time.") - @visibility("read") + @visibility(Lifecycle.Read) pct98ResTime?: float64; @added(APIVersions.v2024_05_01_preview) @doc("99.9 percentile response time.") - @visibility("read") + @visibility(Lifecycle.Read) pct999ResTime?: float64; @added(APIVersions.v2024_05_01_preview) @doc("99.99 percentile response time.") - @visibility("read") + @visibility(Lifecycle.Read) pct9999ResTime?: float64; @doc("Throughput.") - @visibility("read") + @visibility(Lifecycle.Read) throughput?: float64; #suppress "@azure-tools/typespec-azure-core/casing-style" "KBytes is expected" @doc("Received network bytes.") - @visibility("read") + @visibility(Lifecycle.Read) receivedKBytesPerSec?: float64; #suppress "@azure-tools/typespec-azure-core/casing-style" "KBytes is expected" @doc("Send network bytes.") - @visibility("read") + @visibility(Lifecycle.Read) sentKBytesPerSec?: float64; } @doc("Collection of test run artifacts") model TestRunArtifacts { @doc("The input artifacts for the test run.") - @visibility("read") + @visibility(Lifecycle.Read) inputArtifacts?: TestRunInputArtifacts; @doc("The output artifacts for the test run.") @@ -952,7 +952,7 @@ model TestRunInputArtifacts { urlTestConfigFileInfo?: TestRunFileInfo; @doc("Additional supported files for the test run") - @visibility("read") + @visibility(Lifecycle.Read) additionalFileInfo?: TestRunFileInfo[]; } @@ -1107,7 +1107,7 @@ model DimensionValue { @pagedResult model DimensionValueList { @doc("The dimension name") - @visibility("read") + @visibility(Lifecycle.Read) @added(APIVersions.v2023_04_01_preview) name?: string; @@ -1151,7 +1151,7 @@ model TestRunAppComponents { components: Record; @doc("Test run identifier") - @visibility("read") + @visibility(Lifecycle.Read) testRunId?: string; ...SystemMetaData; @@ -1160,7 +1160,7 @@ model TestRunAppComponents { @doc("Test run server metrics configuration") model TestRunServerMetricConfig { @doc("Test run identifier") - @visibility("read") + @visibility(Lifecycle.Read) testRunId?: string; @doc(""" @@ -1260,19 +1260,19 @@ model ListTestQueryParams { @doc("System metadata.") model SystemMetaData { @doc("The creation datetime(RFC 3339 literal format).") - @visibility("read") + @visibility(Lifecycle.Read) createdDateTime?: utcDateTime; @doc("The user that created.") - @visibility("read") + @visibility(Lifecycle.Read) createdBy?: string; @doc("The last Modified datetime(RFC 3339 literal format).") - @visibility("read") + @visibility(Lifecycle.Read) lastModifiedDateTime?: utcDateTime; @doc("The user that last modified.") - @visibility("read") + @visibility(Lifecycle.Read) lastModifiedBy?: string; } @@ -1282,7 +1282,7 @@ model TestIdPathParameter { @maxLength(50) @minLength(2) @key - @visibility("read") + @visibility(Lifecycle.Read) @pattern("^[a-z0-9_-]*$") testId: string; } @@ -1290,7 +1290,7 @@ model TestIdPathParameter { @doc("Test run Id path parameter.") model TestRunIdPathParameter { @doc("Unique test run identifier for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.") - @visibility("read") + @visibility(Lifecycle.Read) @maxLength(50) @minLength(2) @key diff --git a/specification/machinelearningservices/AzureAI.Assets/common.tsp b/specification/machinelearningservices/AzureAI.Assets/common.tsp index d9a7f6e16736..fc10a24458d9 100644 --- a/specification/machinelearningservices/AzureAI.Assets/common.tsp +++ b/specification/machinelearningservices/AzureAI.Assets/common.tsp @@ -12,19 +12,19 @@ namespace Microsoft.MachineLearningServices; @doc("Metadata pertaining to creation and last modification of the resource.") model SystemData { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The timestamp the resource was created at.") createdAt?: utcDateTime; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The identity that created the resource.") createdBy?: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The identity type that created the resource.") createdByType?: string; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The timestamp of resource last modification (UTC)") lastModifiedAt?: utcDateTime; } diff --git a/specification/machinelearningservices/AzureAI.Assets/model.tsp b/specification/machinelearningservices/AzureAI.Assets/model.tsp index 92b142d12792..2a5e436075be 100644 --- a/specification/machinelearningservices/AzureAI.Assets/model.tsp +++ b/specification/machinelearningservices/AzureAI.Assets/model.tsp @@ -18,7 +18,7 @@ namespace Microsoft.MachineLearningServices; @doc("AssetVersion Definition") model AssetVersion { @doc("Fully qualified resource Id: azureml://workspace/{workspaceName}/indexes/{name}/versions/{version} of the index.") - @visibility("read") + @visibility(Lifecycle.Read) id: string; @doc("Update stage to 'Archive' to archive the asset. Default is Development, which means the asset is under development.") @@ -28,7 +28,7 @@ model AssetVersion { description?: string; @doc("Metadata containing createdBy and modifiedBy information.") - @visibility("read") + @visibility(Lifecycle.Read) systemData?: SystemData; @doc("Asset's tags. Unlike properties, tags are fully mutable.") diff --git a/specification/mongocluster/DocumentDB.MongoCluster.Management/FirewallRule.tsp b/specification/mongocluster/DocumentDB.MongoCluster.Management/FirewallRule.tsp index 1d6698de39bf..edf8e5b13971 100644 --- a/specification/mongocluster/DocumentDB.MongoCluster.Management/FirewallRule.tsp +++ b/specification/mongocluster/DocumentDB.MongoCluster.Management/FirewallRule.tsp @@ -13,7 +13,7 @@ model FirewallRule is ProxyResource { @pattern("^[a-zA-Z0-9][-_.a-zA-Z0-9]*") @key("firewallRuleName") @segment("firewallRules") - @visibility("read") + @visibility(Lifecycle.Read) @path name: string; } @@ -21,7 +21,7 @@ model FirewallRule is ProxyResource { /** The properties of a mongo cluster firewall rule. */ model FirewallRuleProperties { /** The provisioning state of the firewall rule. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** The start IP address of the mongo cluster firewall rule. Must be IPv4 format. */ diff --git a/specification/mongocluster/DocumentDB.MongoCluster.Management/MongoCluster.tsp b/specification/mongocluster/DocumentDB.MongoCluster.Management/MongoCluster.tsp index 985d2a0d1f3f..42420abd82cf 100644 --- a/specification/mongocluster/DocumentDB.MongoCluster.Management/MongoCluster.tsp +++ b/specification/mongocluster/DocumentDB.MongoCluster.Management/MongoCluster.tsp @@ -17,7 +17,7 @@ model MongoCluster is TrackedResource { @pattern("^[a-z0-9]+(-[a-z0-9]+)*") @key("mongoClusterName") @segment("mongoClusters") - @visibility("read") + @visibility(Lifecycle.Read) @path name: string; } @@ -77,25 +77,25 @@ scalar MongoClusterResourceId /** The properties of a mongo cluster. */ model MongoClusterProperties { /** The mode to create a mongo cluster. */ - @visibility("create") + @visibility(Lifecycle.Create) createMode?: CreateMode; /** The parameters to create a point-in-time restore mongo cluster. */ - @visibility("create") + @visibility(Lifecycle.Create) restoreParameters?: MongoClusterRestoreParameters; /** The parameters to create a replica mongo cluster. */ - @visibility("create") + @visibility(Lifecycle.Create) @added(Microsoft.DocumentDB.Versions.v2024_06_01_preview) replicaParameters?: MongoClusterReplicaParameters; /** The administrator's login for the mongo cluster. */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @removed(Versions.v2024_07_01) administratorLogin?: string; /** The password of the administrator login. */ - @visibility("create", "update") + @visibility(Lifecycle.Create, Lifecycle.Update) @removed(Versions.v2024_07_01) @secret administratorLoginPassword?: string; @@ -108,20 +108,20 @@ model MongoClusterProperties { serverVersion?: string; /** The default mongo connection string for the cluster. */ - @visibility("read") + @visibility(Lifecycle.Read) connectionString?: string; /** Earliest restore timestamp in UTC ISO8601 format. */ - @visibility("read") + @visibility(Lifecycle.Read) @removed(Versions.v2024_07_01) earliestRestoreTime?: string; /** The provisioning state of the mongo cluster. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** The status of the mongo cluster. */ - @visibility("read") + @visibility(Lifecycle.Read) clusterStatus?: MongoClusterStatus; /** Whether or not public endpoint access is allowed for this mongo cluster. */ @@ -157,7 +157,7 @@ model MongoClusterProperties { dataApi?: DataApiProperties; /** List of private endpoint connections. */ - @visibility("read") + @visibility(Lifecycle.Read) privateEndpointConnections?: PrivateEndpointConnection[]; /** List of private endpoint connections. */ @@ -166,12 +166,12 @@ model MongoClusterProperties { /** The replication properties for the mongo cluster */ @added(Microsoft.DocumentDB.Versions.v2024_06_01_preview) - @visibility("read") + @visibility(Lifecycle.Read) replica?: ReplicationProperties; /** The infrastructure version the cluster is provisioned on. */ @added(Microsoft.DocumentDB.Versions.v2024_06_01_preview) - @visibility("read") + @visibility(Lifecycle.Read) infrastructureVersion?: string; } @@ -245,14 +245,14 @@ union HighAvailabilityMode { @added(Versions.v2024_07_01) model BackupProperties { /** Earliest restore timestamp in UTC ISO8601 format. */ - @visibility("read") + @visibility(Lifecycle.Read) earliestRestoreTime?: string; } /** The connection strings for the given mongo cluster. */ model ListConnectionStringsResult { /** An array that contains the connection strings for a mongo cluster. */ - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", []) connectionStrings?: ConnectionString[]; } @@ -261,16 +261,16 @@ model ListConnectionStringsResult { model ConnectionString { /** Value of the connection string */ #suppress "@azure-tools/typespec-azure-core/property-name-conflict" "https://github.com/Azure/typespec-azure/issues/417" - @visibility("read") + @visibility(Lifecycle.Read) @clientName("uri", "csharp") connectionString?: string; /** Description of the connection string */ - @visibility("read") + @visibility(Lifecycle.Read) description?: string; /** Name of the connection string. */ - @visibility("read") + @visibility(Lifecycle.Read) @added(Versions.v2024_07_01) name?: string; } @@ -364,15 +364,15 @@ union PromoteMode { @added(Microsoft.DocumentDB.Versions.v2024_06_01_preview) model ReplicationProperties { /** The resource id the source cluster for the replica cluster. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceResourceId?: MongoClusterResourceId; /** The replication role of the cluster */ - @visibility("read") + @visibility(Lifecycle.Read) role?: ReplicationRole; /** The replication link state of the replica cluster. */ - @visibility("read") + @visibility(Lifecycle.Read) replicationState?: ReplicationState; } @@ -459,11 +459,11 @@ union NodeKind { @added(Versions.v2024_07_01) model AdministratorProperties { /** The administrator user name. */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) userName?: string; /** The administrator password. */ - @visibility("create", "update") + @visibility(Lifecycle.Create, Lifecycle.Update) @secret password?: string; } diff --git a/specification/mongocluster/DocumentDB.MongoCluster.Management/Replica.tsp b/specification/mongocluster/DocumentDB.MongoCluster.Management/Replica.tsp index 065daec358d1..7c358679a1e5 100644 --- a/specification/mongocluster/DocumentDB.MongoCluster.Management/Replica.tsp +++ b/specification/mongocluster/DocumentDB.MongoCluster.Management/Replica.tsp @@ -15,7 +15,7 @@ model Replica is ProxyResource { @pattern("^[a-z0-9]+(-[a-z0-9]+)*") @key("replicaName") @segment("replicas") - @visibility("read") + @visibility(Lifecycle.Read) @path name: string; } diff --git a/specification/monitor/Microsoft.Monitor.Management/typespec/azureMonitorWorkspace.tsp b/specification/monitor/Microsoft.Monitor.Management/typespec/azureMonitorWorkspace.tsp index 41813791d553..d13e7dfc3406 100644 --- a/specification/monitor/Microsoft.Monitor.Management/typespec/azureMonitorWorkspace.tsp +++ b/specification/monitor/Microsoft.Monitor.Management/typespec/azureMonitorWorkspace.tsp @@ -25,55 +25,55 @@ model AzureMonitorWorkspace #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "ETag is not included in TrackedResource." @doc("Resource entity tag (ETag)") - @visibility("read") + @visibility(Lifecycle.Read) etag?: string; } @doc("Properties that need to be specified to create a new workspace.") model AzureMonitorWorkspaceProperties { @doc("The immutable ID of the Azure Monitor workspace. This property is read-only.") - @visibility("read") + @visibility(Lifecycle.Read) accountId?: string; @doc("Information about metrics for the Azure Monitor workspace") metrics?: Metrics; @doc("The provisioning state of the Azure Monitor workspace. Set to Succeeded if everything is healthy.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @doc("The Data Collection Rule and Endpoint used for ingestion by default.") - @visibility("read") + @visibility(Lifecycle.Read) defaultIngestionSettings?: IngestionSettings; @doc("List of private endpoint connections.") - @visibility("read") + @visibility(Lifecycle.Read) privateEndpointConnections?: PrivateEndpointConnection[]; @doc("Gets or sets allow or disallow public network access to workspace") - @visibility("read") + @visibility(Lifecycle.Read) publicNetworkAccess?: PublicNetworkAccess; } @doc("Information about metrics for the workspace") model Metrics { @doc("The Prometheus query endpoint for the workspace") - @visibility("read") + @visibility(Lifecycle.Read) prometheusQueryEndpoint?: string; @doc("An internal identifier for the metrics container. Only to be used by the system") - @visibility("read") + @visibility(Lifecycle.Read) internalId?: string; } @doc("Settings for data ingestion") model IngestionSettings { @doc("The Azure resource Id of the default data collection rule for this workspace.") - @visibility("read") + @visibility(Lifecycle.Read) dataCollectionRuleResourceId?: string; @doc("The Azure resource Id of the default data collection endpoint for this workspace.") - @visibility("read") + @visibility(Lifecycle.Read) dataCollectionEndpointResourceId?: string; } diff --git a/specification/monitor/Microsoft.Monitor.Management/typespec/pipelineGroup.tsp b/specification/monitor/Microsoft.Monitor.Management/typespec/pipelineGroup.tsp index d51dddbc0d42..712774928bfe 100644 --- a/specification/monitor/Microsoft.Monitor.Management/typespec/pipelineGroup.tsp +++ b/specification/monitor/Microsoft.Monitor.Management/typespec/pipelineGroup.tsp @@ -31,7 +31,7 @@ model PipelineGroup is TrackedResource { #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Extended location is not included in TrackedResource yet." @doc("The extended location for given pipeline group.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation?: CommonTypes.ExtendedLocation; } @@ -60,7 +60,7 @@ model PipelineGroupProperties { networkingConfigurations?: NetworkingConfiguration[]; @doc("The provisioning state of a pipeline group instance. Set to Succeeded if everything is healthy.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/monitor/Microsoft.Monitor.PipelineGroups.Management/typespec/pipelineGroup.tsp b/specification/monitor/Microsoft.Monitor.PipelineGroups.Management/typespec/pipelineGroup.tsp index 65d107ce10f3..5f844f8bb123 100644 --- a/specification/monitor/Microsoft.Monitor.PipelineGroups.Management/typespec/pipelineGroup.tsp +++ b/specification/monitor/Microsoft.Monitor.PipelineGroups.Management/typespec/pipelineGroup.tsp @@ -58,7 +58,7 @@ model PipelineGroupProperties { networkingConfigurations?: NetworkingConfiguration[]; @doc("The provisioning state of a pipeline group instance. Set to Succeeded if everything is healthy.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/oracle/models/autonomousdatabase/autonomousDatabase.tsp b/specification/oracle/models/autonomousdatabase/autonomousDatabase.tsp index 6dfe127f6801..598ae9bfba63 100644 --- a/specification/oracle/models/autonomousdatabase/autonomousDatabase.tsp +++ b/specification/oracle/models/autonomousdatabase/autonomousDatabase.tsp @@ -614,35 +614,35 @@ model AutonomousDatabaseCloneProperties dataBaseType: DataBaseType.Clone; @doc("The source of the database.") - @visibility("create") + @visibility(Lifecycle.Create) source?: SourceType; @doc("The Azure resource ID of the Autonomous Database that was cloned to create the current Autonomous Database.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) sourceId: AutonomousDatabaseId; @doc("The Autonomous Database clone type.") - @visibility("create") + @visibility(Lifecycle.Create) cloneType: CloneType; @doc("Indicates if the refreshable clone can be reconnected to its source database.") - @visibility("read") + @visibility(Lifecycle.Read) isReconnectCloneEnabled?: boolean; @doc("Indicates if the Autonomous Database is a refreshable clone.") - @visibility("read") + @visibility(Lifecycle.Read) isRefreshableClone?: boolean; @doc("The refresh mode of the clone.") - @visibility("create") + @visibility(Lifecycle.Create) refreshableModel?: RefreshableModelType; @doc("The refresh status of the clone.") - @visibility("read") + @visibility(Lifecycle.Read) refreshableStatus?: RefreshableStatusType; @doc("The time and date as an RFC3339 formatted string, e.g., 2022-01-01T12:00:00.000Z, to set the limit for a refreshable clone to be reconnected to its source database.") - @visibility("read", "update") + @visibility(Lifecycle.Read, Lifecycle.Update) timeUntilReconnectCloneEnabled?: string; } @@ -654,29 +654,29 @@ model AutonomousDatabaseCrossRegionDisasterRecoveryProperties dataBaseType: DataBaseType.CrossRegionDisasterRecovery; @doc("The source of the database.") - @visibility("create") + @visibility(Lifecycle.Create) source: SourceType.CrossRegionDisasterRecovery; @doc("The Azure resource ID of the source Autonomous Database that will be used to create a new peer database for the DR association.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) sourceId: AutonomousDatabaseId; @doc("The name of the region where source Autonomous Database exists.") - @visibility("create") + @visibility(Lifecycle.Create) sourceLocation?: string; @doc("The source database ocid") - @visibility("create") + @visibility(Lifecycle.Create) @minLength(1) @maxLength(255) sourceOcid?: string; @doc("Indicates the cross-region disaster recovery (DR) type of the standby Autonomous Database Serverless instance. Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover. Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) remoteDisasterRecoveryType: DisasterRecoveryType; @doc("If true, 7 days worth of backups are replicated across regions for Cross-Region ADB or Backup-Based DR between Primary and Standby. If false, the backups taken on the Primary are not replicated to the Standby database.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) isReplicateAutomaticBackups?: boolean; } @@ -688,23 +688,23 @@ model AutonomousDatabaseFromBackupTimestampProperties dataBaseType: DataBaseType.CloneFromBackupTimestamp; @doc("The source of the database.") - @visibility("create") + @visibility(Lifecycle.Create) source: SourceType.BackupFromTimestamp; @doc("The ID of the source Autonomous Database that you will clone to create a new Autonomous Database.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) sourceId: AutonomousDatabaseId; @doc("The Autonomous Database clone type.") - @visibility("create") + @visibility(Lifecycle.Create) cloneType: CloneType; @doc("The timestamp specified for the point-in-time clone of the source Autonomous Database. The timestamp must be in the past.") - @visibility("create") + @visibility(Lifecycle.Create) timestamp?: utcDateTime; @doc("Clone from latest available backup timestamp.") - @visibility("create") + @visibility(Lifecycle.Create) useLatestAvailableBackupTimeStamp?: boolean; } @@ -712,341 +712,341 @@ model AutonomousDatabaseFromBackupTimestampProperties @doc("Autonomous Database base resource model.") model AutonomousDatabaseBaseProperties { @doc("Admin password.") - @visibility("create", "update") + @visibility(Lifecycle.Create, Lifecycle.Update) @minLength(12) @maxLength(30) adminPassword?: Password; @doc("Database type to be created.") - @visibility("create") + @visibility(Lifecycle.Create) dataBaseType: DataBaseType; @doc("The maintenance schedule type of the Autonomous Database Serverless.") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) autonomousMaintenanceScheduleType?: AutonomousMaintenanceScheduleType; @doc("The character set for the autonomous database.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) @minLength(1) @maxLength(255) characterSet?: string; @doc("The compute amount (CPUs) available to the database.") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) @minValue(0.1) @maxValue(512) computeCount?: float32; @doc("The compute model of the Autonomous Database.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) computeModel?: ComputeModel; @doc("The number of CPU cores to be made available to the database.") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) @minValue(1) @maxValue(128) cpuCoreCount?: int32; @doc("Customer Contacts.") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) @OpenAPI.extension("x-ms-identifiers", []) customerContacts?: CustomerContact[]; @doc("The quantity of data in the database, in terabytes.") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) @minValue(1) @maxValue(384) dataStorageSizeInTbs?: int32; @doc("The size, in gigabytes, of the data volume that will be created and attached to the database.") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) @minValue(20) @maxValue(393216) dataStorageSizeInGbs?: int32; @doc("A valid Oracle Database version for Autonomous Database.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) @minLength(1) @maxLength(255) dbVersion?: string; @doc("The Autonomous Database workload type") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) dbWorkload?: WorkloadType; @doc("The user-friendly name for the Autonomous Database.") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) @minLength(1) @maxLength(255) displayName?: string; @doc("Indicates if auto scaling is enabled for the Autonomous Database CPU core count.") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) isAutoScalingEnabled?: boolean; @doc("Indicates if auto scaling is enabled for the Autonomous Database storage.") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) isAutoScalingForStorageEnabled?: boolean; @doc("The list of Azure resource IDs of standby databases located in Autonomous Data Guard remote regions that are associated with the source database. Note that for Autonomous Database Serverless instances, standby databases located in the same region as the source primary database do not have Azure IDs.") - @visibility("read") + @visibility(Lifecycle.Read) peerDbIds?: string[]; @doc("The Azure resource ID of the Disaster Recovery peer database, which is located in a different region from the current peer database.") - @visibility("update") + @visibility(Lifecycle.Update) @minLength(1) @maxLength(255) peerDbId?: string; @doc("Indicates whether the Autonomous Database has local or called in-region Data Guard enabled.") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) isLocalDataGuardEnabled?: boolean; @doc("Indicates whether the Autonomous Database has Cross Region Data Guard enabled.") - @visibility("read") + @visibility(Lifecycle.Read) isRemoteDataGuardEnabled?: boolean; @doc("Indicates the local disaster recovery (DR) type of the Autonomous Database Serverless instance.Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover.Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover.") - @visibility("read") + @visibility(Lifecycle.Read) localDisasterRecoveryType?: DisasterRecoveryType; @added(Versions.v20241001_preview) @doc("The date and time the Disaster Recovery role was switched for the standby Autonomous Database.") - @visibility("read") + @visibility(Lifecycle.Read) timeDisasterRecoveryRoleChanged?: utcDateTime; @added(Versions.v20241001_preview) @doc("Indicates remote disaster recovery configuration") - @visibility("read") + @visibility(Lifecycle.Read) remoteDisasterRecoveryConfiguration?: DisasterRecoveryConfigurationDetails; @doc("Local Autonomous Disaster Recovery standby database details.") - @visibility("read") + @visibility(Lifecycle.Read) localStandbyDb?: AutonomousDatabaseStandbySummary; @doc("Indicates the number of seconds of data loss for a Data Guard failover.") - @visibility("read") + @visibility(Lifecycle.Read) failedDataRecoveryInSeconds?: int32; @doc("Specifies if the Autonomous Database requires mTLS connections.") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) isMtlsConnectionRequired?: boolean; @doc("Specifies if the Autonomous Database preview version is being provisioned.") - @visibility("create") + @visibility(Lifecycle.Create) isPreviewVersionWithServiceTermsAccepted?: boolean; @doc("The Oracle license model that applies to the Oracle Autonomous Database. The default is LICENSE_INCLUDED.") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) licenseModel?: LicenseModel; @doc("The character set for the Autonomous Database.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) @minLength(1) @maxLength(255) ncharacterSet?: string; @doc("Additional information about the current lifecycle state.") - @visibility("read") + @visibility(Lifecycle.Read) lifecycleDetails?: string; @doc("Azure resource provisioning state.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: AzureResourceProvisioningState; @doc("Views lifecycleState") - @visibility("read") + @visibility(Lifecycle.Read) lifecycleState?: AutonomousDatabaseLifecycleState; @doc("The list of scheduled operations.") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) scheduledOperations?: ScheduledOperationsType; @doc("The private endpoint Ip address for the resource.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) privateEndpointIp?: string; @doc("The resource's private endpoint label.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) privateEndpointLabel?: string; @doc("HTTPS link to OCI resources exposed to Azure Customer via Azure Interface.") - @visibility("read") + @visibility(Lifecycle.Read) ociUrl?: string; @doc("Client subnet") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) subnetId?: SubnetId; @doc("VNET for network connectivity") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) vnetId?: VnetId; @doc("The date and time that the database was created.") - @visibility("read") + @visibility(Lifecycle.Read) timeCreated?: utcDateTime; @doc("The date and time when maintenance will begin.") - @visibility("read") + @visibility(Lifecycle.Read) timeMaintenanceBegin?: utcDateTime; @doc("The date and time when maintenance will end.") - @visibility("read") + @visibility(Lifecycle.Read) timeMaintenanceEnd?: utcDateTime; @doc("The current amount of storage in use for user and system data, in terabytes (TB).") - @visibility("read") + @visibility(Lifecycle.Read) actualUsedDataStorageSizeInTbs?: float64; @doc("The amount of storage currently allocated for the database tables and billed for, rounded up.") - @visibility("read") + @visibility(Lifecycle.Read) allocatedStorageSizeInTbs?: float64; @doc("Information about Oracle APEX Application Development.") - @visibility("read") + @visibility(Lifecycle.Read) apexDetails?: ApexDetailsType; @doc("List of Oracle Database versions available for a database upgrade. If there are no version upgrades available, this list is empty.") - @visibility("read") + @visibility(Lifecycle.Read) availableUpgradeVersions?: string[]; @doc("The connection string used to connect to the Autonomous Database.") - @visibility("read") + @visibility(Lifecycle.Read) connectionStrings?: ConnectionStringType; @doc("The URLs for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute instance within your VCN or that has a direct connection to your VCN. ") - @visibility("read") + @visibility(Lifecycle.Read) connectionUrls?: ConnectionUrlType; @doc("Status of the Data Safe registration for this Autonomous Database.") - @visibility("read") + @visibility(Lifecycle.Read) dataSafeStatus?: DataSafeStatusType; @doc("The Oracle Database Edition that applies to the Autonomous databases.") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) databaseEdition?: DatabaseEditionType; @doc("Autonomous Database ID") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) autonomousDatabaseId?: AutonomousDatabaseId; @doc("The area assigned to In-Memory tables in Autonomous Database.") - @visibility("read") + @visibility(Lifecycle.Read) inMemoryAreaInGbs?: int32; @doc("The date and time when the next long-term backup would be created.") - @visibility("read") + @visibility(Lifecycle.Read) nextLongTermBackupTimeStamp?: utcDateTime; @doc("Details for the long-term backup schedule.") - @visibility("read", "update") + @visibility(Lifecycle.Read, Lifecycle.Update) longTermBackupSchedule?: LongTermBackUpScheduleDetails; @doc("Indicates if the Autonomous Database version is a preview version.") - @visibility("read") + @visibility(Lifecycle.Read) isPreview?: boolean; @doc("Parameter that allows users to select an acceptable maximum data loss limit in seconds, up to which Automatic Failover will be triggered when necessary for a Local Autonomous Data Guard") - @visibility("update", "read") + @visibility(Lifecycle.Update, Lifecycle.Read) @minValue(0) @maxValue(3600) localAdgAutoFailoverMaxDataLossLimit?: int32; @doc("The amount of memory (in GBs) enabled per ECPU or OCPU.") - @visibility("read") + @visibility(Lifecycle.Read) memoryPerOracleComputeUnitInGbs?: int32; @doc("Indicates the Autonomous Database mode.") - @visibility("update", "read") + @visibility(Lifecycle.Update, Lifecycle.Read) openMode?: OpenModeType; @doc("Status of Operations Insights for this Autonomous Database.") - @visibility("read") + @visibility(Lifecycle.Read) operationsInsightsStatus?: OperationsInsightsStatusType; @doc("The Autonomous Database permission level.") - @visibility("read", "update") + @visibility(Lifecycle.Read, Lifecycle.Update) permissionLevel?: PermissionLevelType; @doc("The private endpoint for the resource.") - @visibility("read") + @visibility(Lifecycle.Read) privateEndpoint?: string; @doc("An array of CPU values that an Autonomous Database can be scaled to.") - @visibility("read") + @visibility(Lifecycle.Read) provisionableCpus?: int32[]; @doc("The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.") - @visibility("read", "update") + @visibility(Lifecycle.Read, Lifecycle.Update) role?: RoleType; @doc("The URL of the Service Console for the Autonomous Database.") - @visibility("read") + @visibility(Lifecycle.Read) @minLength(10) @maxLength(255) serviceConsoleUrl?: string; @doc("The SQL Web Developer URL for the Oracle Autonomous Database.") - @visibility("read") + @visibility(Lifecycle.Read) @minLength(10) @maxLength(2048) sqlWebDeveloperUrl?: string; @doc("The list of regions that support the creation of an Autonomous Database clone or an Autonomous Data Guard standby database.") - @visibility("read") + @visibility(Lifecycle.Read) @maxItems(50) supportedRegionsToCloneTo?: string[]; @doc("The date and time the Autonomous Data Guard role was switched for the Autonomous Database.") - @visibility("read") + @visibility(Lifecycle.Read) timeDataGuardRoleChanged?: string; @doc("The date and time the Always Free database will be automatically deleted because of inactivity.") - @visibility("read") + @visibility(Lifecycle.Read) timeDeletionOfFreeAutonomousDatabase?: string; @doc("The date and time that Autonomous Data Guard was enabled for an Autonomous Database where the standby was provisioned in the same region as the primary database.") - @visibility("read") + @visibility(Lifecycle.Read) timeLocalDataGuardEnabled?: string; @doc("The timestamp of the last failover operation.") - @visibility("read") + @visibility(Lifecycle.Read) timeOfLastFailover?: string; @doc("The date and time when last refresh happened.") - @visibility("read") + @visibility(Lifecycle.Read) timeOfLastRefresh?: string; @doc("The refresh point timestamp (UTC).") - @visibility("read") + @visibility(Lifecycle.Read) timeOfLastRefreshPoint?: string; @doc("The timestamp of the last switchover operation for the Autonomous Database.") - @visibility("read") + @visibility(Lifecycle.Read) timeOfLastSwitchover?: string; @doc("The date and time the Always Free database will be stopped because of inactivity.") - @visibility("read") + @visibility(Lifecycle.Read) timeReclamationOfFreeAutonomousDatabase?: string; @doc("The storage space consumed by Autonomous Database in GBs.") - @visibility("read") + @visibility(Lifecycle.Read) usedDataStorageSizeInGbs?: int32; @doc("The amount of storage that has been used, in terabytes.") - @visibility("read") + @visibility(Lifecycle.Read) usedDataStorageSizeInTbs?: int32; @doc("Database ocid") - @visibility("read") + @visibility(Lifecycle.Read) ocid?: Ocid; @doc("Retention period, in days, for long-term backups") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) backupRetentionPeriodInDays?: int32; @doc("The client IP access control list (ACL). This is an array of CIDR notations and/or IP addresses. Values should be separate strings, separated by commas. Example: ['1.1.1.1','1.1.1.0/24','1.1.2.25']") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) whitelistedIps?: aclString[]; } diff --git a/specification/oracle/models/autonomousdatabase/autonomousDatabaseBackup.tsp b/specification/oracle/models/autonomousdatabase/autonomousDatabaseBackup.tsp index b6148984325c..7a256d40af08 100644 --- a/specification/oracle/models/autonomousdatabase/autonomousDatabaseBackup.tsp +++ b/specification/oracle/models/autonomousdatabase/autonomousDatabaseBackup.tsp @@ -60,67 +60,67 @@ model AutonomousDatabaseBackup @doc("AutonomousDatabaseBackup resource model") model AutonomousDatabaseBackupProperties { @doc("The OCID of the Autonomous Database.") - @visibility("read") + @visibility(Lifecycle.Read) autonomousDatabaseOcid?: Ocid; @doc("The size of the database in terabytes at the time the backup was taken.") - @visibility("read") + @visibility(Lifecycle.Read) databaseSizeInTbs?: float64; @doc("A valid Oracle Database version for Autonomous Database.") - @visibility("read") + @visibility(Lifecycle.Read) dbVersion?: string; @doc("The user-friendly name for the backup. The name does not have to be unique.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) displayName?: string; @doc("The OCID of the Autonomous Database backup.") - @visibility("read") + @visibility(Lifecycle.Read) ocid?: Ocid; @doc("Indicates whether the backup is user-initiated or automatic.") - @visibility("read") + @visibility(Lifecycle.Read) isAutomatic?: boolean; @doc("Indicates whether the backup can be used to restore the associated Autonomous Database.") - @visibility("read") + @visibility(Lifecycle.Read) isRestorable?: boolean; @doc("Additional information about the current lifecycle state.") - @visibility("read") + @visibility(Lifecycle.Read) lifecycleDetails?: string; @doc("The current state of the backup.") - @visibility("read") + @visibility(Lifecycle.Read) lifecycleState?: AutonomousDatabaseBackupLifecycleState; @doc("Retention period, in days") - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) retentionPeriodInDays?: int32; @doc("The backup size in terabytes (TB).") - @visibility("read") + @visibility(Lifecycle.Read) sizeInTbs?: float64; @doc("Timestamp until when the backup will be available.") - @visibility("read") + @visibility(Lifecycle.Read) timeAvailableTil?: utcDateTime; @doc("The date and time the backup started.") - @visibility("read") + @visibility(Lifecycle.Read) timeStarted?: string; @doc("The date and time the backup completed.") - @visibility("read") + @visibility(Lifecycle.Read) timeEnded?: string; @doc("The type of backup.") - @visibility("read") + @visibility(Lifecycle.Read) backupType?: AutonomousDatabaseBackupType; @doc("Azure resource provisioning state.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: AzureResourceProvisioningState; } diff --git a/specification/oracle/models/exadata/dbNodes.tsp b/specification/oracle/models/exadata/dbNodes.tsp index 009894894acf..8a320e1d0d7b 100644 --- a/specification/oracle/models/exadata/dbNodes.tsp +++ b/specification/oracle/models/exadata/dbNodes.tsp @@ -89,7 +89,7 @@ model DbNodeProperties { vnicId: Ocid; @doc("Azure resource provisioning state.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } diff --git a/specification/oracle/models/exadata/dbServers.tsp b/specification/oracle/models/exadata/dbServers.tsp index c89a45af5796..25190de0ef22 100644 --- a/specification/oracle/models/exadata/dbServers.tsp +++ b/specification/oracle/models/exadata/dbServers.tsp @@ -37,21 +37,21 @@ union DbServerPatchingStatus { @doc("DbServer Patching Properties") model DbServerPatchingDetails { @doc("Estimated Patch Duration") - @visibility("read") + @visibility(Lifecycle.Read) @minValue(1) @maxValue(3000) estimatedPatchDuration?: int32; @doc("Patching Status") - @visibility("read") + @visibility(Lifecycle.Read) patchingStatus?: DbServerPatchingStatus; @doc("Time Patching Ended") - @visibility("read") + @visibility(Lifecycle.Read) timePatchingEnded?: utcDateTime; @doc("Time Patching Started") - @visibility("read") + @visibility(Lifecycle.Read) timePatchingStarted?: utcDateTime; } @@ -59,87 +59,87 @@ model DbServerPatchingDetails { @doc("DbServer resource properties") model DbServerProperties { @doc("Db server name.") - @visibility("read") + @visibility(Lifecycle.Read) ocid?: Ocid; @doc("The name for the Db Server.") @minLength(1) @maxLength(255) - @visibility("read") + @visibility(Lifecycle.Read) displayName?: string; @doc("The OCID of the compartment.") - @visibility("read") + @visibility(Lifecycle.Read) compartmentId?: Ocid; @doc("The OCID of the Exadata infrastructure.") - @visibility("read") + @visibility(Lifecycle.Read) exadataInfrastructureId?: Ocid; @doc("The number of CPU cores enabled on the Db server.") - @visibility("read") + @visibility(Lifecycle.Read) cpuCoreCount?: int32; @doc("dbServerPatching details of the Db server.") - @visibility("read") + @visibility(Lifecycle.Read) dbServerPatchingDetails?: DbServerPatchingDetails; @doc("The total memory available in GBs.") - @visibility("read") + @visibility(Lifecycle.Read) maxMemoryInGbs?: int32; @doc("The allocated local node storage in GBs on the Db server.") - @visibility("read") + @visibility(Lifecycle.Read) dbNodeStorageSizeInGbs?: int32; @doc("The OCID of the VM Clusters associated with the Db server.") - @visibility("read") + @visibility(Lifecycle.Read) vmClusterIds?: Ocid[]; @doc("The OCID of the Db nodes associated with the Db server.") - @visibility("read") + @visibility(Lifecycle.Read) dbNodeIds?: Ocid[]; @doc("Lifecycle details of dbServer.") - @visibility("read") + @visibility(Lifecycle.Read) lifecycleDetails?: string; @doc("DbServer provisioning state.") - @visibility("read") + @visibility(Lifecycle.Read) lifecycleState?: DbServerProvisioningState; @doc("The total number of CPU cores available.") - @visibility("read") + @visibility(Lifecycle.Read) maxCpuCount?: int32; @doc("The list of OCIDs of the Autonomous VM Clusters associated with the Db server.") - @visibility("read") + @visibility(Lifecycle.Read) autonomousVmClusterIds?: Ocid[]; @doc("The list of OCIDs of the Autonomous Virtual Machines associated with the Db server.") - @visibility("read") + @visibility(Lifecycle.Read) autonomousVirtualMachineIds?: Ocid[]; @doc("The total max dbNode storage in GBs.") - @visibility("read") + @visibility(Lifecycle.Read) maxDbNodeStorageInGbs?: int32; @doc("The total memory size in GBs.") - @visibility("read") + @visibility(Lifecycle.Read) memorySizeInGbs?: int32; @doc("The shape of the Db server. The shape determines the amount of CPU, storage, and memory resources available.") - @visibility("read") + @visibility(Lifecycle.Read) @minLength(1) @maxLength(255) shape?: string; @doc("The date and time that the Db Server was created.") - @visibility("read") + @visibility(Lifecycle.Read) timeCreated?: utcDateTime; @doc("Azure resource provisioning state.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } diff --git a/specification/oracle/models/exadata/dnsPrivateViews.tsp b/specification/oracle/models/exadata/dnsPrivateViews.tsp index 5e0125d73316..023b2b8dd93e 100644 --- a/specification/oracle/models/exadata/dnsPrivateViews.tsp +++ b/specification/oracle/models/exadata/dnsPrivateViews.tsp @@ -41,7 +41,7 @@ model DnsPrivateViewProperties { timeUpdated: utcDateTime; @doc("Azure resource provisioning state.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } diff --git a/specification/oracle/models/exadata/dnsPrivateZones.tsp b/specification/oracle/models/exadata/dnsPrivateZones.tsp index e933c63b9ffa..486a6bb9d671 100644 --- a/specification/oracle/models/exadata/dnsPrivateZones.tsp +++ b/specification/oracle/models/exadata/dnsPrivateZones.tsp @@ -49,7 +49,7 @@ model DnsPrivateZoneProperties { timeCreated: utcDateTime; @doc("Azure resource provisioning state.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } diff --git a/specification/oracle/models/exadata/exadatainfra.tsp b/specification/oracle/models/exadata/exadatainfra.tsp index 418513e20dc7..475ee2c3d308 100644 --- a/specification/oracle/models/exadata/exadatainfra.tsp +++ b/specification/oracle/models/exadata/exadatainfra.tsp @@ -101,25 +101,25 @@ model EstimatedPatchingTime { @doc("The estimated time required in minutes for database server patching.") @minValue(1) @maxValue(3000) - @visibility("read") + @visibility(Lifecycle.Read) estimatedDbServerPatchingTime?: int32; @doc("The estimated time required in minutes for network switch patching.") @minValue(1) @maxValue(3000) - @visibility("read") + @visibility(Lifecycle.Read) estimatedNetworkSwitchesPatchingTime?: int32; @doc("The estimated time required in minutes for storage server patching.") @minValue(1) @maxValue(3000) - @visibility("read") + @visibility(Lifecycle.Read) estimatedStorageServerPatchingTime?: int32; @doc("The estimated total time required in minutes for all patching operations.") @minValue(1) @maxValue(3000) - @visibility("read") + @visibility(Lifecycle.Read) totalEstimatedPatchingTime?: int32; } @@ -141,129 +141,129 @@ model CloudExadataInfrastructure @doc("CloudExadataInfrastructure resource model") model CloudExadataInfrastructureProperties { @doc("Exadata infra ocid") - @visibility("read") + @visibility(Lifecycle.Read) ocid?: Ocid; @doc("The number of compute servers for the cloud Exadata infrastructure.") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) computeCount?: int32; @doc("The number of storage servers for the cloud Exadata infrastructure.") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) storageCount?: int32; @doc("The total storage allocated to the cloud Exadata infrastructure resource, in gigabytes (GB).") - @visibility("read") + @visibility(Lifecycle.Read) totalStorageSizeInGbs?: int32; @doc("The available storage can be allocated to the cloud Exadata infrastructure resource, in gigabytes (GB).") - @visibility("read") + @visibility(Lifecycle.Read) availableStorageSizeInGbs?: int32; @doc("The date and time the cloud Exadata infrastructure resource was created.") - @visibility("read") + @visibility(Lifecycle.Read) timeCreated?: string; @doc("Additional information about the current lifecycle state.") - @visibility("read") + @visibility(Lifecycle.Read) lifecycleDetails?: string; @doc("maintenanceWindow property") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) maintenanceWindow?: MaintenanceWindow; @doc("The estimated total time required in minutes for all patching operations (database server, storage server, and network switch patching).") - @visibility("read") + @visibility(Lifecycle.Read) estimatedPatchingTime?: EstimatedPatchingTime; @doc("The list of customer email addresses that receive information from Oracle about the specified OCI Database service resource. Oracle uses these email addresses to send notifications about planned and unplanned software maintenance updates, information about system hardware, and other information needed by administrators. Up to 10 email addresses can be added to the customer contacts for a cloud Exadata infrastructure instance. ") @extension("x-ms-identifiers", []) - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) customerContacts?: CustomerContact[]; @doc("CloudExadataInfrastructure provisioning state") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: AzureResourceProvisioningState; @doc("CloudExadataInfrastructure lifecycle state") - @visibility("read") + @visibility(Lifecycle.Read) lifecycleState?: CloudExadataInfrastructureLifecycleState; @doc("The model name of the cloud Exadata infrastructure resource.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) shape: string; @doc("HTTPS link to OCI resources exposed to Azure Customer via Azure Interface.") - @visibility("read") + @visibility(Lifecycle.Read) ociUrl?: url; @doc("The total number of CPU cores allocated.") - @visibility("read") + @visibility(Lifecycle.Read) cpuCount?: int32; @doc("The total number of CPU cores available.") - @visibility("read") + @visibility(Lifecycle.Read) maxCpuCount?: int32; @doc("The memory allocated in GBs.") - @visibility("read") + @visibility(Lifecycle.Read) memorySizeInGbs?: int32; @doc("The total memory available in GBs.") - @visibility("read") + @visibility(Lifecycle.Read) maxMemoryInGbs?: int32; @doc("The local node storage to be allocated in GBs.") - @visibility("read") + @visibility(Lifecycle.Read) dbNodeStorageSizeInGbs?: int32; @doc("The total local node storage available in GBs.") - @visibility("read") + @visibility(Lifecycle.Read) maxDbNodeStorageSizeInGbs?: int32; @doc("The quantity of data in the database, in terabytes.") - @visibility("read") + @visibility(Lifecycle.Read) dataStorageSizeInTbs?: float64; @doc("The total available DATA disk group size.") - @visibility("read") + @visibility(Lifecycle.Read) maxDataStorageInTbs?: float64; @doc("The software version of the database servers (dom0) in the Exadata infrastructure.") - @visibility("read") + @visibility(Lifecycle.Read) dbServerVersion?: string; @doc("The software version of the storage servers (cells) in the Exadata infrastructure.") - @visibility("read") + @visibility(Lifecycle.Read) storageServerVersion?: string; @doc("The requested number of additional storage servers activated for the Exadata infrastructure.") - @visibility("read") + @visibility(Lifecycle.Read) activatedStorageCount?: int32; @doc("The requested number of additional storage servers for the Exadata infrastructure.") - @visibility("read") + @visibility(Lifecycle.Read) additionalStorageCount?: int32; @doc("The name for the Exadata infrastructure.") - @visibility("create", "read", "update") + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) @minLength(1) @maxLength(255) displayName: string; @doc("The OCID of the last maintenance run.") - @visibility("read") + @visibility(Lifecycle.Read) lastMaintenanceRunId?: Ocid; @doc("The OCID of the next maintenance run.") - @visibility("read") + @visibility(Lifecycle.Read) nextMaintenanceRunId?: Ocid; @doc("Monthly Db Server version") - @visibility("read") + @visibility(Lifecycle.Read) monthlyDbServerVersion?: string; @doc("Monthly Storage Server version") - @visibility("read") + @visibility(Lifecycle.Read) monthlyStorageServerVersion?: string; } diff --git a/specification/oracle/models/exadata/virtualNetworkAddress.tsp b/specification/oracle/models/exadata/virtualNetworkAddress.tsp index bd67d5ee610a..f0214a2abb16 100644 --- a/specification/oracle/models/exadata/virtualNetworkAddress.tsp +++ b/specification/oracle/models/exadata/virtualNetworkAddress.tsp @@ -46,39 +46,39 @@ model VirtualNetworkAddress is ProxyResource { @doc("virtualNetworkAddress resource properties") model VirtualNetworkAddressProperties { @doc("Virtual network Address address.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) ipAddress?: string; @doc("Virtual Machine OCID.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) vmOcid?: Ocid; @doc("Application VIP OCID.") - @visibility("read") + @visibility(Lifecycle.Read) ocid?: Ocid; @doc("Virtual network address fully qualified domain name.") - @visibility("read") + @visibility(Lifecycle.Read) domain?: string; @doc("Additional information about the current lifecycle state of the application virtual IP (VIP) address.") - @visibility("read") + @visibility(Lifecycle.Read) lifecycleDetails?: string; //Subnet should be retrieved from the VM Cluster // @doc("Client subnet") - // @visibility("create", "read") + //@visibility(Lifecycle.Create, Lifecycle.Read) // subnetId?: SubnetId; @doc("Azure resource provisioning state.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: AzureResourceProvisioningState; @doc("virtual network address lifecycle state.") - @visibility("read") + @visibility(Lifecycle.Read) lifecycleState?: VirtualNetworkAddressLifecycleState; @doc("The date and time when the create operation for the application virtual IP (VIP) address completed.") - @visibility("read") + @visibility(Lifecycle.Read) timeAssigned?: utcDateTime; } diff --git a/specification/oracle/models/exadata/vmcluster.tsp b/specification/oracle/models/exadata/vmcluster.tsp index e3ea86bd0e51..2e5052dd04f4 100644 --- a/specification/oracle/models/exadata/vmcluster.tsp +++ b/specification/oracle/models/exadata/vmcluster.tsp @@ -189,19 +189,19 @@ model NsgCidr { @doc("CloudVmCluster resource model") model CloudVmClusterProperties { @doc("Cloud VM Cluster ocid") - @visibility("read") + @visibility(Lifecycle.Read) ocid?: Ocid; @doc("The port number configured for the listener on the cloud VM cluster.") - @visibility("read") + @visibility(Lifecycle.Read) listenerPort?: int64; @doc("The number of nodes in the cloud VM cluster. ") - @visibility("read") + @visibility(Lifecycle.Read) nodeCount?: int32; @doc("The data disk group size to be allocated in GBs per VM.") - @visibility("read", "update") + @visibility(Lifecycle.Read, Lifecycle.Update) storageSizeInGbs?: int32; @doc("The data disk group size to be allocated in TBs.") @@ -214,31 +214,31 @@ model CloudVmClusterProperties { memorySizeInGbs?: int32; @doc("The date and time that the cloud VM cluster was created.") - @visibility("read") + @visibility(Lifecycle.Read) timeCreated?: utcDateTime; @doc("Additional information about the current lifecycle state.") - @visibility("read") + @visibility(Lifecycle.Read) lifecycleDetails?: string; @doc("The time zone of the cloud VM cluster. For details, see [Exadata Infrastructure Time Zones](/Content/Database/References/timezones.htm).") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) @minLength(1) @maxLength(255) timeZone?: string; @doc("The OCID of the zone the cloud VM cluster is associated with.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) zoneId?: Ocid; @doc("The hostname for the cloud VM cluster.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) @minLength(1) @maxLength(23) hostname: string; @doc("The domain name for the cloud VM cluster.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) domain?: string; @doc("The number of CPU cores enabled on the cloud VM cluster.") @@ -248,29 +248,29 @@ model CloudVmClusterProperties { ocpuCount?: float32; @doc("The cluster name for cloud VM cluster. The cluster name must begin with an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. ") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) @minLength(1) @maxLength(11) clusterName?: string; @doc("The percentage assigned to DATA storage (user data and database files). The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 35, 40, 60 and 80. The default is 80 percent assigned to DATA storage. See [Storage Configuration](/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. ") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) dataStoragePercentage?: int32; @doc("If true, database backup on local Exadata storage is configured for the cloud VM cluster. If false, database backup on local Exadata storage is not available in the cloud VM cluster. ") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) isLocalBackupEnabled?: boolean = false; @doc("Cloud Exadata Infrastructure ID") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) cloudExadataInfrastructureId: CloudExadataInfrastructureId; @doc("If true, sparse disk group is configured for the cloud VM cluster. If false, sparse disk group is not created. ") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) isSparseDiskgroupEnabled?: boolean = false; @doc("Operating system version of the image.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) @minLength(1) @maxLength(255) systemVersion?: string; @@ -282,77 +282,77 @@ model CloudVmClusterProperties { licenseModel?: LicenseModel; @doc("The type of redundancy configured for the cloud Vm cluster. NORMAL is 2-way redundancy. HIGH is 3-way redundancy. ") - @visibility("read") + @visibility(Lifecycle.Read) diskRedundancy?: DiskRedundancy; @doc("The Single Client Access Name (SCAN) IP addresses associated with the cloud VM cluster. SCAN IP addresses are typically used for load balancing and are not assigned to any interface. Oracle Clusterware directs the requests to the appropriate nodes in the cluster. **Note:** For a single-node DB system, this list is empty.") - @visibility("read") + @visibility(Lifecycle.Read) scanIpIds?: string[]; @doc("The virtual IP (VIP) addresses associated with the cloud VM cluster. The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the Exadata Cloud Service instance to enable failover. If one node fails, the VIP is reassigned to another active node in the cluster. **Note:** For a single-node DB system, this list is empty.") - @visibility("read") + @visibility(Lifecycle.Read) vipIds?: string[]; @doc("The FQDN of the DNS record for the SCAN IP addresses that are associated with the cloud VM cluster. ") - @visibility("read") + @visibility(Lifecycle.Read) @minLength(1) @maxLength(72) scanDnsName?: string; @doc("The TCP Single Client Access Name (SCAN) port. The default port is 1521.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) scanListenerPortTcp?: int32; @doc("The TCPS Single Client Access Name (SCAN) port. The default port is 2484.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) scanListenerPortTcpSsl?: int32; @doc("The OCID of the DNS record for the SCAN IP addresses that are associated with the cloud VM cluster.") - @visibility("read") + @visibility(Lifecycle.Read) scanDnsRecordId?: Ocid; @doc("The model name of the Exadata hardware running the cloud VM cluster.") - @visibility("read") + @visibility(Lifecycle.Read) @minLength(1) @maxLength(255) shape?: string; @doc("CloudVmCluster provisioning state") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: AzureResourceProvisioningState; @doc("CloudVmCluster lifecycle state") - @visibility("read") + @visibility(Lifecycle.Read) lifecycleState?: CloudVmClusterLifecycleState; @doc("VNET for network connectivity") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) vnetId: VnetId; @doc("Oracle Grid Infrastructure (GI) software version") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) giVersion: string; @doc("HTTPS link to OCI resources exposed to Azure Customer via Azure Interface.") - @visibility("read") + @visibility(Lifecycle.Read) ociUrl?: url; @doc("HTTPS link to OCI Network Security Group exposed to Azure Customer via the Azure Interface.") - @visibility("read") + @visibility(Lifecycle.Read) nsgUrl?: url; @doc("Client subnet") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) subnetId: SubnetId; @doc("Client OCI backup subnet CIDR, default is 192.168.252.0/22") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) @minLength(1) @maxLength(32) backupSubnetCidr?: string; @doc("CIDR blocks for additional NSG ingress rules. The VNET CIDRs used to provision the VM Cluster will be added by default.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) @extension("x-ms-identifiers", []) nsgCidrs?: NsgCidr[]; @@ -365,27 +365,27 @@ model CloudVmClusterProperties { displayName: string; @doc("The list of compute servers to be added to the cloud VM cluster.") - @visibility("update") + @visibility(Lifecycle.Update) computeNodes?: Ocid[]; @doc("iormConfigCache details for cloud VM cluster.") - @visibility("read") + @visibility(Lifecycle.Read) iormConfigCache?: ExadataIormConfig; @doc("The OCID of the last maintenance update history entry.") - @visibility("read") + @visibility(Lifecycle.Read) lastUpdateHistoryEntryId?: Ocid; @doc("The list of DB servers.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) dbServers?: Ocid[]; @doc("Cluster compartmentId") - @visibility("read") + @visibility(Lifecycle.Read) compartmentId?: Ocid; @doc("Cluster subnet ocid") - @visibility("read") + @visibility(Lifecycle.Read) subnetOcid?: Ocid; } diff --git a/specification/oracle/models/oraclesubscription/oracleSubscription.tsp b/specification/oracle/models/oraclesubscription/oracleSubscription.tsp index 3677f00cc155..72fabd30bc3c 100644 --- a/specification/oracle/models/oraclesubscription/oracleSubscription.tsp +++ b/specification/oracle/models/oraclesubscription/oracleSubscription.tsp @@ -77,73 +77,73 @@ union Intent { @doc("Cloud Account Details model") model CloudAccountDetails { @doc("Cloud Account name") - @visibility("read") + @visibility(Lifecycle.Read) cloudAccountName?: string; @doc("Cloud Account Home region") - @visibility("read") + @visibility(Lifecycle.Read) cloudAccountHomeRegion?: string; } @doc("SaaS Subscription Details model") model SaasSubscriptionDetails { @doc("Purchased SaaS subscription ID") - @visibility("read") + @visibility(Lifecycle.Read) id?: string; @doc("SaaS subscription name") - @visibility("read") + @visibility(Lifecycle.Read) subscriptionName?: string; @doc("Creation Date and Time") - @visibility("read") + @visibility(Lifecycle.Read) timeCreated?: utcDateTime; @doc("Purchased offer ID") - @visibility("read") + @visibility(Lifecycle.Read) offerId?: string; @doc("Purchased offer's plan ID") - @visibility("read") + @visibility(Lifecycle.Read) planId?: string; @doc("Indicates the status of the Subscription.") - @visibility("read") + @visibility(Lifecycle.Read) saasSubscriptionStatus?: string; @doc("Publisher ID") - @visibility("read") + @visibility(Lifecycle.Read) publisherId?: string; @doc("Purchaser Email ID") - @visibility("read") + @visibility(Lifecycle.Read) purchaserEmailId?: string; @doc("Purchaser Tenant ID") - @visibility("read") + @visibility(Lifecycle.Read) purchaserTenantId?: string; @doc("Purchase Term Unit") - @visibility("read") + @visibility(Lifecycle.Read) termUnit?: string; @doc("AutoRenew flag") - @visibility("read") + @visibility(Lifecycle.Read) isAutoRenew?: boolean; @doc("FreeTrial flag") - @visibility("read") + @visibility(Lifecycle.Read) isFreeTrial?: boolean; } @doc("Activation Links model") model ActivationLinks { @doc("New Cloud Account Activation Link") - @visibility("read") + @visibility(Lifecycle.Read) newCloudAccountActivationLink?: string; @doc("Existing Cloud Account Activation Link") - @visibility("read") + @visibility(Lifecycle.Read) existingCloudAccountActivationLink?: string; } @@ -172,45 +172,45 @@ union AddSubscriptionOperationState { @doc("Oracle Subscription resource model") model OracleSubscriptionProperties { @doc("OracleSubscriptionProvisioningState provisioning state") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: OracleSubscriptionProvisioningState; @doc("SAAS subscription ID generated by Marketplace") - @visibility("read") + @visibility(Lifecycle.Read) saasSubscriptionId?: string; @doc("Cloud Account Id") - @visibility("read") + @visibility(Lifecycle.Read) cloudAccountId?: Ocid; @doc("Cloud Account provisioning state.") - @visibility("read") + @visibility(Lifecycle.Read) cloudAccountState?: CloudAccountProvisioningState; @doc("Term Unit. P1Y, P3Y, etc, see Durations https://en.wikipedia.org/wiki/ISO_8601") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) termUnit?: string; @doc("Product code for the term unit") - @visibility("update") + @visibility(Lifecycle.Update) productCode?: string; @doc("Intent for the update operation") - @visibility("update") + @visibility(Lifecycle.Update) intent?: Intent; @added(Versions.v20240601_preview) @doc("Azure subscriptions associated with this OracleSubscription") - @visibility("read") + @visibility(Lifecycle.Read) azureSubscriptionIds?: string[]; @added(Versions.v20240601_preview) @doc("State of the add Azure subscription operation on Oracle subscription") - @visibility("read") + @visibility(Lifecycle.Read) addSubscriptionOperationState?: AddSubscriptionOperationState; @added(Versions.v20240601_preview) @doc("Status details of the last operation on Oracle subscription") - @visibility("read") + @visibility(Lifecycle.Read) lastOperationStatusDetail?: string; } diff --git a/specification/playwrighttesting/PlaywrightTesting.AuthManager/main.tsp b/specification/playwrighttesting/PlaywrightTesting.AuthManager/main.tsp index 7ee1e26f125f..147cc9f70b09 100644 --- a/specification/playwrighttesting/PlaywrightTesting.AuthManager/main.tsp +++ b/specification/playwrighttesting/PlaywrightTesting.AuthManager/main.tsp @@ -70,30 +70,30 @@ model AccessToken { @doc("The access-token id.") @maxLength(64) @pattern("[A-Za-z0-9]+(-[A-Za-z0-9]+)+") - @visibility("read") + @visibility(Lifecycle.Read) id: uuid; @minLength(3) @maxLength(64) @pattern("^[a-zA-Z]{1}[a-zA-Z0-9]{2,63}$") @doc("The access-token name.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) name: string; @doc("The access-token value in JWT format.") - @visibility("read") + @visibility(Lifecycle.Read) jwtToken?: string; @doc("The access-token createdAt utcDateTime.") - @visibility("read") + @visibility(Lifecycle.Read) createdAt: utcDateTime; @doc("The access-token expiryAt utcDateTime.") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) expiryAt: utcDateTime; @doc("The access-token state - Active | Expired.") - @visibility("read") + @visibility(Lifecycle.Read) state: AccessTokenState; } diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/main.tsp b/specification/playwrighttesting/PlaywrightTesting.Management/main.tsp index 6583cebc20b5..fcc1febd48b5 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Management/main.tsp +++ b/specification/playwrighttesting/PlaywrightTesting.Management/main.tsp @@ -42,7 +42,7 @@ model Account is TrackedResource { @doc("Account resource properties.") model AccountProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The Playwright testing dashboard URI for the account resource.") dashboardUri?: url; @@ -58,7 +58,7 @@ model AccountProperties { @doc("When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations.") localAuth?: EnablementStatus = EnablementStatus.Disabled; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } @@ -120,7 +120,7 @@ model Location { @key("location") @path @segment("locations") - @visibility("query", "read", "update") + @visibility(Lifecycle.Query, Lifecycle.Read, Lifecycle.Update) name: string; } @@ -152,10 +152,10 @@ model QuotaProperties { freeTrial?: FreeTrialProperties; @doc("Indicates the offering type for the subscription.") - @visibility("read") + @visibility(Lifecycle.Read) offeringType?: OfferingType; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } @@ -163,11 +163,11 @@ model QuotaProperties { @doc("The subscription quota resource free-trial properties.") model FreeTrialProperties { @doc("The Playwright service account id.") - @visibility("read") + @visibility(Lifecycle.Read) accountId: string; @doc("The free-trial state.") - @visibility("read") + @visibility(Lifecycle.Read) state: FreeTrialState; } @@ -187,7 +187,7 @@ model AccountQuotaProperties { @doc("The Playwright service account quota resource free-trial properties.") freeTrial?: AccountFreeTrialProperties; - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } @@ -195,23 +195,23 @@ model AccountQuotaProperties { @doc("The Playwright service account quota resource free-trial properties.") model AccountFreeTrialProperties { @doc("The free-trial createdAt utcDateTime.") - @visibility("read") + @visibility(Lifecycle.Read) createdAt: utcDateTime; @doc("The free-trial expiryAt utcDateTime.") - @visibility("read") + @visibility(Lifecycle.Read) expiryAt: utcDateTime; @doc("The free-trial allocated limit value eg. allocated free minutes.") - @visibility("read") + @visibility(Lifecycle.Read) allocatedValue: int32; @doc("The free-trial used value eg. used free minutes.") - @visibility("read") + @visibility(Lifecycle.Read) usedValue: int32; @doc("The free-trial percentage used.") - @visibility("read") + @visibility(Lifecycle.Read) @minValue(0) @maxValue(100) percentageUsed: float32; diff --git a/specification/playwrighttesting/PlaywrightTesting.Shared/main.tsp b/specification/playwrighttesting/PlaywrightTesting.Shared/main.tsp index b45ff810de7a..c98fbc436e2c 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Shared/main.tsp +++ b/specification/playwrighttesting/PlaywrightTesting.Shared/main.tsp @@ -25,51 +25,51 @@ model Account { @doc("The account id.") @maxLength(64) @pattern("[A-Za-z0-9]+(_[A-Za-z0-9]+)*(-[A-Za-z0-9]+)+") - @visibility("read") + @visibility(Lifecycle.Read) id: string; @doc("The fully-qualified Azure resource id for the account.") - @visibility("read") + @visibility(Lifecycle.Read) resourceId: string; @doc("The account name.") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("The state of account - Active | Inactive") - @visibility("read") + @visibility(Lifecycle.Read) state: AccountState; @doc("The Azure subscription id for the account.") - @visibility("read") + @visibility(Lifecycle.Read) subscriptionId: uuid; @doc("The Azure subscription state - Registered | Unregistered | Warned | Suspended | Deleted") - @visibility("read") + @visibility(Lifecycle.Read) subscriptionState: SubscriptionState; @doc("The Azure tenant id of the account.") - @visibility("read") + @visibility(Lifecycle.Read) tenantId: uuid; @doc("The account resource location in Azure, for eg. eastus, southeastasia.") - @visibility("read") + @visibility(Lifecycle.Read) location: string; @doc("This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.") - @visibility("read") + @visibility(Lifecycle.Read) regionalAffinity?: EnablementStatus = EnablementStatus.Enabled; @doc("When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.") - @visibility("read") + @visibility(Lifecycle.Read) scalableExecution?: EnablementStatus = EnablementStatus.Enabled; @doc("When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.") - @visibility("read") + @visibility(Lifecycle.Read) reporting?: EnablementStatus = EnablementStatus.Enabled; @doc("When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations.") - @visibility("read") + @visibility(Lifecycle.Read) localAuth?: EnablementStatus = EnablementStatus.Disabled; } diff --git a/specification/portal/Dashboard.Management/models.tsp b/specification/portal/Dashboard.Management/models.tsp index c565464f215c..ab8d85ff594f 100644 --- a/specification/portal/Dashboard.Management/models.tsp +++ b/specification/portal/Dashboard.Management/models.tsp @@ -64,19 +64,19 @@ model ErrorDefinition { /** * Service specific error code which serves as the substatus for the HTTP error code. */ - @visibility("read") + @visibility(Lifecycle.Read) code?: int32; /** * Description of the error. */ - @visibility("read") + @visibility(Lifecycle.Read) message?: string; /** * Internal error details. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", ["code"]) details?: ErrorDefinition[]; } @@ -86,7 +86,7 @@ model DashboardPropertiesWithProvisioningState { ...DashboardProperties; @doc("The status of the last operation.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } @@ -213,19 +213,19 @@ model Resource { /** * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; /** * The name of the resource */ - @visibility("read") + @visibility(Lifecycle.Read) name?: string; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ - @visibility("read") + @visibility(Lifecycle.Read) type?: string; } diff --git a/specification/portal/TenantConfiguration.Management/models.tsp b/specification/portal/TenantConfiguration.Management/models.tsp index 2821e1629bf0..1a69e5410bc1 100644 --- a/specification/portal/TenantConfiguration.Management/models.tsp +++ b/specification/portal/TenantConfiguration.Management/models.tsp @@ -26,7 +26,7 @@ model ConfigurationProperties { enforcePrivateMarkdownStorage?: boolean; @doc("The status of the last operation.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } @@ -42,18 +42,18 @@ model Violation { /** * Id of the item that violates tenant configuration. */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; /** * Id of the user who owns violated item. */ - @visibility("read") + @visibility(Lifecycle.Read) userId?: string; /** * Error message. */ - @visibility("read") + @visibility(Lifecycle.Read) errorMessage?: string; } diff --git a/specification/portalservices/CopilotSettings.Management/CopilotSettings.tsp b/specification/portalservices/CopilotSettings.Management/CopilotSettings.tsp index d69ab1c7918d..439100a81713 100644 --- a/specification/portalservices/CopilotSettings.Management/CopilotSettings.tsp +++ b/specification/portalservices/CopilotSettings.Management/CopilotSettings.tsp @@ -14,7 +14,7 @@ model CopilotSettingsResource is ProxyResource { @doc("The default copilot settings, applying to entire tenant.") @segment("copilotSettings") @key - @visibility("read") + @visibility(Lifecycle.Read) @path @pattern("^[a-zA-Z0-9-]{3,24}$") name: string; diff --git a/specification/portalservices/CopilotSettings.Management/models.tsp b/specification/portalservices/CopilotSettings.Management/models.tsp index d3b4e6480adb..b672a40fa9ff 100644 --- a/specification/portalservices/CopilotSettings.Management/models.tsp +++ b/specification/portalservices/CopilotSettings.Management/models.tsp @@ -10,6 +10,6 @@ model CopilotSettingsProperties { accessControlEnabled: boolean; @doc("The status of the last provisioning operation performed on the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } diff --git a/specification/portalservices/Extension.Management/ExtensionTenantCompileFile.tsp b/specification/portalservices/Extension.Management/ExtensionTenantCompileFile.tsp index 4b955c90657b..52518c937153 100644 --- a/specification/portalservices/Extension.Management/ExtensionTenantCompileFile.tsp +++ b/specification/portalservices/Extension.Management/ExtensionTenantCompileFile.tsp @@ -20,7 +20,7 @@ model PortalTenantCompileFile @path @key("compilefile") @segment("compilefile") - @visibility("read") + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/portalservices/Extension.Management/models.tsp b/specification/portalservices/Extension.Management/models.tsp index 2bef8b5e1550..c4375796b117 100644 --- a/specification/portalservices/Extension.Management/models.tsp +++ b/specification/portalservices/Extension.Management/models.tsp @@ -143,37 +143,37 @@ model PortalExtensionProperties { /** * Readonly. The ICM routing details for any live site issues for the extension set in service tree */ - @visibility("read") + @visibility(Lifecycle.Read) icm?: PortalExtensionPropertiesIcm; /** * Readonly. Email for customer feedback from service tree. */ - @visibility("read") + @visibility(Lifecycle.Read) feedbackEmail?: string; /** * Readonly. The service tree id. */ - @visibility("read") + @visibility(Lifecycle.Read) serviceTreeId?: string; /** * Readonly. The oAuthClientId guid from service tree. */ - @visibility("read") + @visibility(Lifecycle.Read) oAuthClientId?: string; /** * Readonly. The preview stamp from service tree. */ - @visibility("read") + @visibility(Lifecycle.Read) previewStamp?: string; /** * Readonly. The Azure portal extension name e.g Microsoft_Azure_Storage. Comes in from extension.pdl or extension.dx.json or is generated. */ - @visibility("read") + @visibility(Lifecycle.Read) portalName?: string; /** @@ -184,19 +184,19 @@ model PortalExtensionProperties { /** * The current registration or provisioning state which only appears in the response */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * The visibility of the extension. By default status will be NotOnboarded. Microsoft owned extensions can promote using service tree. External extensions can promote your application use partner center. */ - @visibility("read") + @visibility(Lifecycle.Read) publicStatus?: PublicStatusKind; /** * Once provisioningState is in the terminal state of Succeeded this is the portal runtime uri for portal extensions with status of private */ - @visibility("read") + @visibility(Lifecycle.Read) runtimeUri?: string; } @@ -234,19 +234,19 @@ model PortalExtensionPropertiesIcm { /** * Readonly. The ICM service route e.g Azure Portal (IbizaFx) from ICM for the service tree icm teamId. */ - @visibility("read") + @visibility(Lifecycle.Read) service?: string; /** * Readonly. The team under the ICM service e.g Portal from ICM for the service tree icm teamId. */ - @visibility("read") + @visibility(Lifecycle.Read) team?: string; /** * Readonly. The ICM team Id from service tree. */ - @visibility("read") + @visibility(Lifecycle.Read) teamId?: int32; } @@ -272,19 +272,19 @@ model ArmCommonProperties { /** * Resource Id */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; /** * Resource name */ - @visibility("read") + @visibility(Lifecycle.Read) name?: string; /** * Resource type */ - @visibility("read") + @visibility(Lifecycle.Read) type?: string; /** @@ -301,7 +301,7 @@ model ArmCommonProperties { /** * Metadata pertaining to creation and last modification of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) systemData?: Azure.ResourceManager.Foundations.SystemData; } @@ -458,7 +458,7 @@ model ExtensionVersionProperties { /** * Indicates if the version has ever been deployed */ - @visibility("read") + @visibility(Lifecycle.Read) hasBeenDeployed?: boolean; /** @@ -469,7 +469,7 @@ model ExtensionVersionProperties { /** * Readonly. The provisioning state. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** @@ -541,13 +541,13 @@ model ExtensionDeploymentProperties { /** * Readonly. The current registration or provisioning state which only appears in the response */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * Readonly. The next stage of deployment from the deployment sequence e.g stage2 */ - @visibility("read") + @visibility(Lifecycle.Read) nextStage?: string; /** @@ -594,13 +594,13 @@ model ExtensionSlotProperties { /** * Readonly. The current registration or provisioning state which only appears in the response */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * Readonly. The slot that will be deployed to. */ - @visibility("read") + @visibility(Lifecycle.Read) nextStage?: string; } @@ -658,7 +658,7 @@ model PortalTenantCompileFileProperties { /** * The current registration or provisioning state which only appears in the response. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/location.tsp b/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/location.tsp index c90f5b3e63f9..33aa45b05852 100644 --- a/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/location.tsp +++ b/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/location.tsp @@ -25,7 +25,7 @@ interface DeviceLocation { model DeviceLocationEndpoint { @key @doc("Static endpoint") - @visibility("read") + @visibility(Lifecycle.Read) location: "location"; } diff --git a/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/network.tsp b/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/network.tsp index 47bb8931bd9d..09f74830388d 100644 --- a/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/network.tsp +++ b/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/network.tsp @@ -26,7 +26,7 @@ interface DeviceNetwork { model DeviceNetworkRetrievalEndpoint { @key @doc("Static endpoint") - @visibility("read") + @visibility(Lifecycle.Read) network: "network"; } diff --git a/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/number.tsp b/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/number.tsp index c781676a7113..0a3d1d438712 100644 --- a/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/number.tsp +++ b/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/number.tsp @@ -55,7 +55,7 @@ interface NumberVerification { model NumberVerificationEndpoint { @key @doc("Static endpoint") - @visibility("read") + @visibility(Lifecycle.Read) number: "number"; } diff --git a/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/simswap.tsp b/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/simswap.tsp index c1b76c601aad..b985f65c7f23 100644 --- a/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/simswap.tsp +++ b/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/simswap.tsp @@ -33,7 +33,7 @@ interface SimSwap { model SimSwapEndpoint { @key @doc("Static endpoint") - @visibility("read") + @visibility(Lifecycle.Read) simSwap: "sim-swap"; } diff --git a/specification/programmableconnectivity/ProgrammableConnectivity.Management/Gateway.tsp b/specification/programmableconnectivity/ProgrammableConnectivity.Management/Gateway.tsp index 96af6c1f5c7d..6f986b3e12b6 100644 --- a/specification/programmableconnectivity/ProgrammableConnectivity.Management/Gateway.tsp +++ b/specification/programmableconnectivity/ProgrammableConnectivity.Management/Gateway.tsp @@ -22,7 +22,7 @@ model Gateway is Azure.ResourceManager.TrackedResource { @path @key("gatewayName") @segment("gateways") - @visibility("read") + @visibility(Lifecycle.Read) name: string; } @@ -33,7 +33,7 @@ model GatewayProperties { /** * List of Operator API Connections selected by the user */ - @visibility("read") + @visibility(Lifecycle.Read) operatorApiConnections?: Azure.Core.armResourceIdentifier<[ { type: "Microsoft.ProgrammableConnectivity/operatorApiConnections"; @@ -43,13 +43,13 @@ model GatewayProperties { /** * Base URL of the Gateway resource. This is the URL that the users would use to make Open API Gateway requests to the Operators via Azure. */ - @visibility("read") + @visibility(Lifecycle.Read) gatewayBaseUrl?: string; /** * The status of the last operation on the Gateway resource. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/programmableconnectivity/ProgrammableConnectivity.Management/OperatorApiConnection.tsp b/specification/programmableconnectivity/ProgrammableConnectivity.Management/OperatorApiConnection.tsp index 883583989865..b0a68925eb5e 100644 --- a/specification/programmableconnectivity/ProgrammableConnectivity.Management/OperatorApiConnection.tsp +++ b/specification/programmableconnectivity/ProgrammableConnectivity.Management/OperatorApiConnection.tsp @@ -23,7 +23,7 @@ model OperatorApiConnection @path @key("operatorApiConnectionName") @segment("operatorApiConnections") - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) name: string; } @@ -34,7 +34,7 @@ model OperatorApiConnectionProperties { /** * Reference to the Operator API Plan Resource ID. */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) operatorApiPlanId: Azure.Core.armResourceIdentifier<[ { type: "Microsoft.ProgrammableConnectivity/operatorApiPlans"; @@ -44,25 +44,25 @@ model OperatorApiConnectionProperties { /** * Details about the SaaS offer purchased from the marketplace. */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) saasProperties?: SaasProperties; /** * Details about the Application that would use the Operator's Network APIs. */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) configuredApplication?: ApplicationProperties; /** * Application ID of the App Developer that is registered with the Operator in a specific country/region. */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) appId?: string; /** * Reference to the APC Gateway resource ID. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) gatewayId: Azure.Core.armResourceIdentifier<[ { type: "Microsoft.ProgrammableConnectivity/gateways"; @@ -72,38 +72,38 @@ model OperatorApiConnectionProperties { /** * Type of the account the user has with the Operator's Network API infrastructure. AzureManaged | UserManaged. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) accountType: AccountType; /** * Application secret linked to the 'appId'. This should be stored securely and is not returned back when the resource information is read. */ - @visibility("create", "update") + @visibility(Lifecycle.Create, Lifecycle.Update) @secret appSecret?: string; /** * Name of the Operator in the linked Operator API Plan belongs to. */ - @visibility("read") + @visibility(Lifecycle.Read) operatorName?: string; /** * The Network API for the current operator in the country/region provided in the linked Operator API Plan. */ - @visibility("read") + @visibility(Lifecycle.Read) camaraApiName?: string; /** * The status of the last operation. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * The status of the OperatorApiConnection resource. */ - @visibility("read") + @visibility(Lifecycle.Read) status?: Status; } diff --git a/specification/programmableconnectivity/ProgrammableConnectivity.Management/OperatorApiPlan.tsp b/specification/programmableconnectivity/ProgrammableConnectivity.Management/OperatorApiPlan.tsp index 5b0e5f2768fa..d9fcc31e32b5 100644 --- a/specification/programmableconnectivity/ProgrammableConnectivity.Management/OperatorApiPlan.tsp +++ b/specification/programmableconnectivity/ProgrammableConnectivity.Management/OperatorApiPlan.tsp @@ -24,7 +24,7 @@ model OperatorApiPlan @path @key("operatorApiPlanName") @segment("operatorApiPlans") - @visibility("read") + @visibility(Lifecycle.Read) name: string; } @@ -100,7 +100,7 @@ model OperatorApiPlanProperties { /** * The status of the last operation on the Gateway resource. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/purview/Azure.Analytics.Purview.DataMap/models.tsp b/specification/purview/Azure.Analytics.Purview.DataMap/models.tsp index da167237558c..d47c67484096 100644 --- a/specification/purview/Azure.Analytics.Purview.DataMap/models.tsp +++ b/specification/purview/Azure.Analytics.Purview.DataMap/models.tsp @@ -312,7 +312,7 @@ model AtlasEntity { homeId?: string; @doc("The collection ID of the entity.") - @visibility("read") + @visibility(Lifecycle.Read) collectionId?: string; @doc("Whether it is a shell entity") diff --git a/specification/quantum/Microsoft.Quantum.Management/models.tsp b/specification/quantum/Microsoft.Quantum.Management/models.tsp index c45fe0979511..8c69ffffb205 100644 --- a/specification/quantum/Microsoft.Quantum.Management/models.tsp +++ b/specification/quantum/Microsoft.Quantum.Management/models.tsp @@ -106,7 +106,7 @@ model ProviderDescription { /** * Provider's display name. */ - @visibility("read") + @visibility(Lifecycle.Read) name?: string; /** @@ -122,25 +122,25 @@ model ProviderProperties { /** * A description about this provider. */ - @visibility("read") + @visibility(Lifecycle.Read) description?: string; /** * Provider type. */ - @visibility("read") + @visibility(Lifecycle.Read) providerType?: string; /** * Company name. */ - @visibility("read") + @visibility(Lifecycle.Read) company?: string; /** * Provider's default endpoint. */ - @visibility("read") + @visibility(Lifecycle.Read) defaultEndpoint?: string; /** @@ -181,13 +181,13 @@ model ProviderPropertiesAad { /** * Provider's application id. */ - @visibility("read") + @visibility(Lifecycle.Read) applicationId?: string; /** * Provider's tenant id. */ - @visibility("read") + @visibility(Lifecycle.Read) tenantId?: string; } @@ -198,13 +198,13 @@ model ProviderPropertiesManagedApplication { /** * Provider's publisher id. */ - @visibility("read") + @visibility(Lifecycle.Read) publisherId?: string; /** * Provider's offer id. */ - @visibility("read") + @visibility(Lifecycle.Read) offerId?: string; } @@ -376,13 +376,13 @@ model WorkspaceResourceProperties { /** * Whether the current workspace is ready to accept Jobs. */ - @visibility("read") + @visibility(Lifecycle.Read) usable?: UsableStatus; /** * Provisioning status field */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: WorkspaceProvisioningStatus; /** @@ -393,7 +393,7 @@ model WorkspaceResourceProperties { /** * The URI of the workspace endpoint. */ - @visibility("read") + @visibility(Lifecycle.Read) endpointUri?: string; /** @@ -459,13 +459,13 @@ model ListKeysResult { /** * The connection string of the primary api key. */ - @visibility("read") + @visibility(Lifecycle.Read) primaryConnectionString?: string; /** * The connection string of the secondary api key. */ - @visibility("read") + @visibility(Lifecycle.Read) secondaryConnectionString?: string; } @@ -481,7 +481,7 @@ model ApiKey { /** * The Api key. */ - @visibility("read") + @visibility(Lifecycle.Read) key?: string; } diff --git a/specification/quantum/Quantum.Workspace/common/common-params.tsp b/specification/quantum/Quantum.Workspace/common/common-params.tsp index b3ac30890475..abf3365942e8 100644 --- a/specification/quantum/Quantum.Workspace/common/common-params.tsp +++ b/specification/quantum/Quantum.Workspace/common/common-params.tsp @@ -70,7 +70,7 @@ model CommonParams { model Subscription { /** The Azure subscription ID. */ @key - @visibility("read", "create", "update", "delete") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update, Lifecycle.Delete) subscriptionId: SubscriptionId; } @@ -80,7 +80,7 @@ model Subscription { model ResourceGroup { /** Name of the Azure resource group. */ @key - @visibility("read", "create", "update", "delete") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update, Lifecycle.Delete) resourceGroupName: ResourceGroupName; } @@ -90,7 +90,7 @@ model ResourceGroup { model ResourceProvider { /** The Azure Quantum resource provider. */ @key - @visibility("read", "create", "update", "delete") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update, Lifecycle.Delete) providerName: ResourceProviderName; } @@ -100,6 +100,6 @@ model ResourceProvider { model QuantumWorkspace { /** Name of the Azure Quantum workspace. */ @key - @visibility("read", "create", "update", "delete") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update, Lifecycle.Delete) workspaceName: WorkspaceName; } diff --git a/specification/quantum/Quantum.Workspace/common/json-patch.tsp b/specification/quantum/Quantum.Workspace/common/json-patch.tsp index cecef01830c5..8e7558b6279c 100644 --- a/specification/quantum/Quantum.Workspace/common/json-patch.tsp +++ b/specification/quantum/Quantum.Workspace/common/json-patch.tsp @@ -36,20 +36,20 @@ union JsonPatchOperation { /** A JSONPatch object as defined by RFC 6902. */ model JsonPatchObject { /** The operation to be performed. */ - @visibility("create") + @visibility(Lifecycle.Create) @encodedName("application/json", "op") operation: JsonPatchOperation; /** A JSON-Pointer. */ - @visibility("create") + @visibility(Lifecycle.Create) path: string; /** A value to be used in the operation on the path. */ - @visibility("create") + @visibility(Lifecycle.Create) value?: {}; /** Optional field used in copy and move operations. */ - @visibility("create") + @visibility(Lifecycle.Create) from?: string; } diff --git a/specification/quantum/Quantum.Workspace/operations/items.tsp b/specification/quantum/Quantum.Workspace/operations/items.tsp index 39bb7c422bc1..83e41661b05d 100644 --- a/specification/quantum/Quantum.Workspace/operations/items.tsp +++ b/specification/quantum/Quantum.Workspace/operations/items.tsp @@ -40,43 +40,43 @@ scalar WorkspaceItemId extends string; model ItemDetails { /** Id of the item. */ @key - @visibility("read") + @visibility(Lifecycle.Read) id: WorkspaceItemId; /** The name of the item. It is not required for the name to be unique and it's only used for display purposes. */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) name: string; /** The unique identifier for the provider. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) providerId: string; /** The target identifier to run the job. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) target: string; /** Type of the Quantum Workspace item */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) itemType: ItemType; /** The creation time of the item. */ - @visibility("read") + @visibility(Lifecycle.Read) creationTime?: utcDateTime; /** The time when the item began execution. */ - @visibility("read") + @visibility(Lifecycle.Read) beginExecutionTime?: utcDateTime; /** The time when the item finished execution. */ - @visibility("read") + @visibility(Lifecycle.Read) endExecutionTime?: utcDateTime; /** Cost estimate. */ - @visibility("read") + @visibility(Lifecycle.Read) costEstimate?: CostEstimate; /** Error information. */ - @visibility("read") + @visibility(Lifecycle.Read) errorData?: Errors.WorkspaceItemError; } diff --git a/specification/quantum/Quantum.Workspace/operations/jobs.tsp b/specification/quantum/Quantum.Workspace/operations/jobs.tsp index e0877b8507dc..e3d6765781c6 100644 --- a/specification/quantum/Quantum.Workspace/operations/jobs.tsp +++ b/specification/quantum/Quantum.Workspace/operations/jobs.tsp @@ -48,7 +48,7 @@ union JobStatus { /** Quantum computing data. */ model QuantumComputingData { /** The number of quantum computing items in the job. */ - @visibility("read") + @visibility(Lifecycle.Read) count: int64; } @@ -59,63 +59,63 @@ model JobDetails extends ItemDetails { /** Id of the job. */ #suppress "@azure-tools/typespec-azure-core/key-visibility-required" "False-positive" @key("jobId") - @visibility("read") + @visibility(Lifecycle.Read) id: WorkspaceItemId; /** Type of the Quantum Workspace item is Job. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) itemType: ItemType.Job; /** The type of job. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) jobType?: JobType; /** The ID of the session that the job is part of. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) sessionId?: string; /** The blob container SAS uri, the container is used to host job data. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) containerUri: string; /** The input blob URI, if specified, it will override the default input blob in the container. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) inputDataUri?: string; /** The format of the input data. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) inputDataFormat?: string; /** The status of the job. */ - @visibility("read") + @visibility(Lifecycle.Read) status?: JobStatus; /** The job metadata. Metadata provides client the ability to store client-specific information */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) metadata?: {}; /** The time when a job was successfully cancelled. */ - @visibility("read") + @visibility(Lifecycle.Read) cancellationTime?: utcDateTime; /** List of user-supplied tags associated with the job. */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) tags?: string[]; /** Quantum computing data. */ - @visibility("read") + @visibility(Lifecycle.Read) quantumComputingData?: QuantumComputingData; /** The input parameters for the job. JSON object used by the target solver. It is expected that the size of this object is small and only used to specify parameters for the execution target, not the input data. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) inputParams?: {}; /** The output blob uri. When a job finishes successfully, results will be uploaded to this blob. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) outputDataUri?: string; /** The format of the output data. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) outputDataFormat?: string; } diff --git a/specification/quantum/Quantum.Workspace/operations/providers.tsp b/specification/quantum/Quantum.Workspace/operations/providers.tsp index 3e873c9181d3..e297a2d7a821 100644 --- a/specification/quantum/Quantum.Workspace/operations/providers.tsp +++ b/specification/quantum/Quantum.Workspace/operations/providers.tsp @@ -41,35 +41,35 @@ union TargetAvailability { @parentResource(QuantumWorkspace) model ProviderStatus { /** Provider id. */ - @visibility("read") + @visibility(Lifecycle.Read) @key id: string; /** Current provider availability. */ - @visibility("read") + @visibility(Lifecycle.Read) currentAvailability: ProviderAvailability; /** Current target statuses. */ - @visibility("read") + @visibility(Lifecycle.Read) targets: TargetStatus[]; } /** Target status. */ model TargetStatus { /** Target id. */ - @visibility("read") + @visibility(Lifecycle.Read) id: string; /** Current target availability. */ - @visibility("read") + @visibility(Lifecycle.Read) currentAvailability: TargetAvailability; /** Average queue time in seconds. */ - @visibility("read") + @visibility(Lifecycle.Read) averageQueueTime: int64; /** A page with detailed status of the provider. */ - @visibility("read") + @visibility(Lifecycle.Read) statusPage?: string; } diff --git a/specification/quantum/Quantum.Workspace/operations/quotas.tsp b/specification/quantum/Quantum.Workspace/operations/quotas.tsp index 6c46e3bf3b9c..97b8e63c6280 100644 --- a/specification/quantum/Quantum.Workspace/operations/quotas.tsp +++ b/specification/quantum/Quantum.Workspace/operations/quotas.tsp @@ -36,36 +36,36 @@ union MeterPeriod { model Quota { /** Quota faux key. */ @key - @visibility("read") + @visibility(Lifecycle.Read) // A faux key is needed to tag the Quota as a resource. key: never; /** The name of the dimension associated with the quota. */ - @visibility("read") + @visibility(Lifecycle.Read) dimension: string; /** The scope at which the quota is applied. */ - @visibility("read") + @visibility(Lifecycle.Read) scope: DimensionScope; /** The unique identifier for the provider. */ - @visibility("read") + @visibility(Lifecycle.Read) providerId: string; /** The amount of the usage that has been applied for the current period. */ - @visibility("read") + @visibility(Lifecycle.Read) utilization: float32; /** The amount of the usage that has been reserved but not applied for the current period. */ - @visibility("read") + @visibility(Lifecycle.Read) holds: float32; /** The maximum amount of usage allowed for the current period. */ - @visibility("read") + @visibility(Lifecycle.Read) limit: float32; /** The time period in which the quota's underlying meter is accumulated. Based on calendar year. 'None' is used for concurrent quotas. */ - @visibility("read") + @visibility(Lifecycle.Read) period: MeterPeriod; } diff --git a/specification/quantum/Quantum.Workspace/operations/sessions.tsp b/specification/quantum/Quantum.Workspace/operations/sessions.tsp index a1e207e42abb..412804d71002 100644 --- a/specification/quantum/Quantum.Workspace/operations/sessions.tsp +++ b/specification/quantum/Quantum.Workspace/operations/sessions.tsp @@ -51,19 +51,19 @@ union SessionStatus { model SessionDetails extends ItemDetails { /** Id of the session. */ @key("sessionId") - @visibility("read") + @visibility(Lifecycle.Read) id: WorkspaceItemId; /** Type of the Quantum Workspace item is Session. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) itemType: ItemType.Session; /** Policy controlling the behavior of the Session when a job in the session fails. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) jobFailurePolicy: SessionJobFailurePolicy; /** The status of the session. */ - @visibility("read") + @visibility(Lifecycle.Read) status?: SessionStatus; } diff --git a/specification/quantum/Quantum.Workspace/operations/storage.tsp b/specification/quantum/Quantum.Workspace/operations/storage.tsp index 172d97f43944..6e14b680772f 100644 --- a/specification/quantum/Quantum.Workspace/operations/storage.tsp +++ b/specification/quantum/Quantum.Workspace/operations/storage.tsp @@ -13,18 +13,18 @@ using TypeSpec.Http; /** The details (name and container) of the blob to store or download data. */ model BlobDetails { /** The container name. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) containerName: string; /** The blob name. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) blobName?: string; } /** SAS URI operation response. */ model SasUriResponse { /** A URL with a SAS token to upload a blob for execution in the given workspace. */ - @visibility("read") + @visibility(Lifecycle.Read) sasUri: string; } diff --git a/specification/recoveryservicesdatareplication/DataReplication.Management/models.tsp b/specification/recoveryservicesdatareplication/DataReplication.Management/models.tsp index d4326337b150..6dd967e87fe3 100644 --- a/specification/recoveryservicesdatareplication/DataReplication.Management/models.tsp +++ b/specification/recoveryservicesdatareplication/DataReplication.Management/models.tsp @@ -728,7 +728,7 @@ model EmailConfigurationModelProperties { /** * Gets or sets the provisioning state of the email configuration. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -739,56 +739,56 @@ model EventModelProperties { /** * Gets or sets the resource type. */ - @visibility("read") + @visibility(Lifecycle.Read) resourceType?: string; /** * Gets or sets the resource name. */ - @visibility("read") + @visibility(Lifecycle.Read) resourceName?: string; /** * Gets or sets the event type. */ - @visibility("read") + @visibility(Lifecycle.Read) eventType?: string; /** * Gets or sets the event name. */ - @visibility("read") + @visibility(Lifecycle.Read) eventName?: string; /** * Gets or sets the time at which the event occurred at source. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. timeOfOccurrence?: utcDateTime; /** * Gets or sets the event severity. */ - @visibility("read") + @visibility(Lifecycle.Read) severity?: string; /** * Gets or sets the event description. */ - @visibility("read") + @visibility(Lifecycle.Read) description?: string; /** * Gets or sets the event correlation Id. */ - @visibility("read") + @visibility(Lifecycle.Read) correlationId?: string; /** * Gets or sets the errors associated with this event. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) healthErrors?: HealthErrorModel[]; @@ -800,7 +800,7 @@ model EventModelProperties { /** * Gets or sets the provisioning state of the event. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -827,68 +827,68 @@ model HealthErrorModel { /** * Gets or sets the error code. */ - @visibility("read") + @visibility(Lifecycle.Read) code?: string; /** * Gets or sets the health category. */ - @visibility("read") + @visibility(Lifecycle.Read) healthCategory?: string; /** * Gets or sets the error category. */ - @visibility("read") + @visibility(Lifecycle.Read) category?: string; /** * Gets or sets the error severity. */ - @visibility("read") + @visibility(Lifecycle.Read) severity?: string; /** * Gets or sets the error source. */ - @visibility("read") + @visibility(Lifecycle.Read) source?: string; /** * Gets or sets the error creation time. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. creationTime?: utcDateTime; /** * Gets or sets a value indicating whether the error is customer resolvable. */ - @visibility("read") + @visibility(Lifecycle.Read) isCustomerResolvable?: boolean; /** * Gets or sets the error summary. */ - @visibility("read") + @visibility(Lifecycle.Read) summary?: string; /** * Gets or sets the error message. */ - @visibility("read") + @visibility(Lifecycle.Read) message?: string; /** * Gets or sets possible causes of the error. */ - @visibility("read") + @visibility(Lifecycle.Read) causes?: string; /** * Gets or sets recommended action to resolve the error. */ - @visibility("read") + @visibility(Lifecycle.Read) recommendation?: string; } @@ -899,68 +899,68 @@ model InnerHealthErrorModel { /** * Gets or sets the error code. */ - @visibility("read") + @visibility(Lifecycle.Read) code?: string; /** * Gets or sets the health category. */ - @visibility("read") + @visibility(Lifecycle.Read) healthCategory?: string; /** * Gets or sets the error category. */ - @visibility("read") + @visibility(Lifecycle.Read) category?: string; /** * Gets or sets the error severity. */ - @visibility("read") + @visibility(Lifecycle.Read) severity?: string; /** * Gets or sets the error source. */ - @visibility("read") + @visibility(Lifecycle.Read) source?: string; /** * Gets or sets the error creation time. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. creationTime?: utcDateTime; /** * Gets or sets a value indicating whether the error is customer resolvable. */ - @visibility("read") + @visibility(Lifecycle.Read) isCustomerResolvable?: boolean; /** * Gets or sets the error summary. */ - @visibility("read") + @visibility(Lifecycle.Read) summary?: string; /** * Gets or sets the error message. */ - @visibility("read") + @visibility(Lifecycle.Read) message?: string; /** * Gets or sets possible causes of the error. */ - @visibility("read") + @visibility(Lifecycle.Read) causes?: string; /** * Gets or sets recommended action to resolve the error. */ - @visibility("read") + @visibility(Lifecycle.Read) recommendation?: string; } @@ -979,31 +979,31 @@ model FabricModelProperties { /** * Gets or sets the provisioning state of the fabric. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * Gets or sets the service endpoint. */ - @visibility("read") + @visibility(Lifecycle.Read) serviceEndpoint?: string; /** * Gets or sets the service resource Id. */ - @visibility("read") + @visibility(Lifecycle.Read) serviceResourceId?: string; /** * Gets or sets the fabric health. */ - @visibility("read") + @visibility(Lifecycle.Read) health?: HealthStatus; /** * Gets or sets the list of health errors. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) healthErrors?: HealthErrorModel[]; @@ -1039,25 +1039,25 @@ model FabricModelUpdate { /** * Gets or sets the Id of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; /** * Gets or sets the name of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) name?: string; /** * Gets or sets the type of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) type?: string; /** * Metadata pertaining to creation and last modification of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) systemData?: SystemData; } @@ -1068,7 +1068,7 @@ model FabricAgentModelProperties { /** * Gets or sets the fabric agent correlation Id. */ - @visibility("read") + @visibility(Lifecycle.Read) correlationId?: string; /** @@ -1096,32 +1096,32 @@ model FabricAgentModelProperties { /** * Gets or sets a value indicating whether the fabric agent is responsive. */ - @visibility("read") + @visibility(Lifecycle.Read) isResponsive?: boolean; /** * Gets or sets the time when last heartbeat was sent by the fabric agent. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastHeartbeat?: utcDateTime; /** * Gets or sets the fabric agent version. */ - @visibility("read") + @visibility(Lifecycle.Read) versionNumber?: string; /** * Gets or sets the provisioning state of the fabric agent. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * Gets or sets the list of health errors. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) healthErrors?: HealthErrorModel[]; @@ -1181,100 +1181,100 @@ model JobModelProperties { /** * Gets or sets the friendly display name. */ - @visibility("read") + @visibility(Lifecycle.Read) displayName?: string; /** * Gets or sets the job state. */ - @visibility("read") + @visibility(Lifecycle.Read) state?: JobState; /** * Gets or sets the start time. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. startTime?: utcDateTime; /** * Gets or sets the end time. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. endTime?: utcDateTime; /** * Gets or sets the affected object Id. */ - @visibility("read") + @visibility(Lifecycle.Read) objectId?: string; /** * Gets or sets the affected object name. */ - @visibility("read") + @visibility(Lifecycle.Read) objectName?: string; /** * Gets or sets the affected object internal Id. */ - @visibility("read") + @visibility(Lifecycle.Read) objectInternalId?: string; /** * Gets or sets the affected object internal name. */ - @visibility("read") + @visibility(Lifecycle.Read) objectInternalName?: string; /** * Gets or sets the object type. */ - @visibility("read") + @visibility(Lifecycle.Read) objectType?: JobObjectType; /** * Gets or sets the replication provider. */ - @visibility("read") + @visibility(Lifecycle.Read) replicationProviderId?: string; /** * Gets or sets the source fabric provider. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceFabricProviderId?: string; /** * Gets or sets the target fabric provider. */ - @visibility("read") + @visibility(Lifecycle.Read) targetFabricProviderId?: string; /** * Gets or sets the list of allowed actions on the job. */ - @visibility("read") + @visibility(Lifecycle.Read) allowedActions?: string[]; /** * Gets or sets the job activity id. */ - @visibility("read") + @visibility(Lifecycle.Read) activityId?: string; /** * Gets or sets the list of tasks. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) tasks?: TaskModel[]; /** * Gets or sets the list of errors. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) errors?: ErrorModel[]; @@ -1286,7 +1286,7 @@ model JobModelProperties { /** * Gets or sets the provisioning state of the job. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -1297,26 +1297,26 @@ model TaskModel { /** * Gets or sets the task name. */ - @visibility("read") + @visibility(Lifecycle.Read) taskName?: string; /** * Gets or sets the task state. */ - @visibility("read") + @visibility(Lifecycle.Read) state?: TaskState; /** * Gets or sets the start time. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. startTime?: utcDateTime; /** * Gets or sets the end time. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. endTime?: utcDateTime; @@ -1350,44 +1350,44 @@ model ErrorModel { /** * Gets or sets the error code. */ - @visibility("read") + @visibility(Lifecycle.Read) code?: string; /** * Gets or sets the error type. */ - @visibility("read") + @visibility(Lifecycle.Read) type?: string; /** * Gets or sets the error severity. */ - @visibility("read") + @visibility(Lifecycle.Read) severity?: string; /** * Gets or sets the creation time of error. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. creationTime?: utcDateTime; /** * Gets or sets the error message. */ - @visibility("read") + @visibility(Lifecycle.Read) message?: string; /** * Gets or sets the possible causes of error. */ - @visibility("read") + @visibility(Lifecycle.Read) causes?: string; /** * Gets or sets the recommended action to resolve error. */ - @visibility("read") + @visibility(Lifecycle.Read) recommendation?: string; } @@ -1401,7 +1401,7 @@ model JobModelCustomProperties { * Gets or sets any custom properties of the affected object. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" - @visibility("read") + @visibility(Lifecycle.Read) affectedObjectDetails?: { description?: string; type?: "object"; @@ -1415,7 +1415,7 @@ model PolicyModelProperties { /** * Gets or sets the provisioning state of the policy. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** @@ -1439,7 +1439,7 @@ model PrivateEndpointConnectionResponseProperties { /** * Gets or sets provisioning state of the private endpoint connection. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** @@ -1490,7 +1490,7 @@ model PrivateEndpointConnectionProxyProperties { /** * Gets or sets the provisioning state of the private endpoint connection proxy. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** @@ -1677,7 +1677,7 @@ model PrivateLinkResourceProperties { /** * Gets or sets the provisioning state of the private link resource. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -1700,160 +1700,160 @@ model ProtectedItemModelProperties { /** * Gets or sets the protected item correlation Id. */ - @visibility("read") + @visibility(Lifecycle.Read) correlationId?: string; /** * Gets or sets the provisioning state of the fabric agent. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * Gets or sets the protection state. */ - @visibility("read") + @visibility(Lifecycle.Read) protectionState?: ProtectionState; /** * Gets or sets the protection state description. */ - @visibility("read") + @visibility(Lifecycle.Read) protectionStateDescription?: string; /** * Gets or sets the test failover state. */ - @visibility("read") + @visibility(Lifecycle.Read) testFailoverState?: TestFailoverState; /** * Gets or sets the Test failover state description. */ - @visibility("read") + @visibility(Lifecycle.Read) testFailoverStateDescription?: string; /** * Gets or sets the resynchronization state. */ - @visibility("read") + @visibility(Lifecycle.Read) resynchronizationState?: ResynchronizationState; /** * Gets or sets the fabric object Id. */ - @visibility("read") + @visibility(Lifecycle.Read) fabricObjectId?: string; /** * Gets or sets the fabric object name. */ - @visibility("read") + @visibility(Lifecycle.Read) fabricObjectName?: string; /** * Gets or sets the source fabric provider Id. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceFabricProviderId?: string; /** * Gets or sets the target fabric provider Id. */ - @visibility("read") + @visibility(Lifecycle.Read) targetFabricProviderId?: string; /** * Gets or sets the fabric Id. */ - @visibility("read") + @visibility(Lifecycle.Read) fabricId?: string; /** * Gets or sets the target fabric Id. */ - @visibility("read") + @visibility(Lifecycle.Read) targetFabricId?: string; /** * Gets or sets the fabric agent Id. */ - @visibility("read") + @visibility(Lifecycle.Read) fabricAgentId?: string; /** * Gets or sets the target fabric agent Id. */ - @visibility("read") + @visibility(Lifecycle.Read) targetFabricAgentId?: string; /** * Gets or sets a value indicating whether resynchronization is required or not. */ - @visibility("read") + @visibility(Lifecycle.Read) resyncRequired?: boolean; /** * Gets or sets the Last successful planned failover time. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastSuccessfulPlannedFailoverTime?: utcDateTime; /** * Gets or sets the Last successful unplanned failover time. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastSuccessfulUnplannedFailoverTime?: utcDateTime; /** * Gets or sets the Last successful test failover time. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastSuccessfulTestFailoverTime?: utcDateTime; /** * Gets or sets the current scenario. */ - @visibility("read") + @visibility(Lifecycle.Read) currentJob?: ProtectedItemJobProperties; /** * Gets or sets the allowed scenarios on the protected item. */ - @visibility("read") + @visibility(Lifecycle.Read) allowedJobs?: string[]; /** * Gets or sets the last failed enabled protection job. */ - @visibility("read") + @visibility(Lifecycle.Read) lastFailedEnableProtectionJob?: ProtectedItemJobProperties; /** * Gets or sets the last failed planned failover job. */ - @visibility("read") + @visibility(Lifecycle.Read) lastFailedPlannedFailoverJob?: ProtectedItemJobProperties; /** * Gets or sets the last test failover job. */ - @visibility("read") + @visibility(Lifecycle.Read) lastTestFailoverJob?: ProtectedItemJobProperties; /** * Gets or sets protected item replication health. */ - @visibility("read") + @visibility(Lifecycle.Read) replicationHealth?: HealthStatus; /** * Gets or sets the list of health errors. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) healthErrors?: HealthErrorModel[]; @@ -1870,44 +1870,44 @@ model ProtectedItemJobProperties { /** * Gets or sets protection scenario name. */ - @visibility("read") + @visibility(Lifecycle.Read) scenarioName?: string; /** * Gets or sets job Id. */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; /** * Gets or sets job name. */ - @visibility("read") + @visibility(Lifecycle.Read) name?: string; /** * Gets or sets the job friendly display name. */ - @visibility("read") + @visibility(Lifecycle.Read) displayName?: string; /** * Gets or sets job state. */ - @visibility("read") + @visibility(Lifecycle.Read) state?: string; /** * Gets or sets start time of the job. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. startTime?: utcDateTime; /** * Gets or sets end time of the job. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. endTime?: utcDateTime; } @@ -1932,25 +1932,25 @@ model ProtectedItemModelUpdate { /** * Gets or sets the Id of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; /** * Gets or sets the name of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) name?: string; /** * Gets or sets the type of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) type?: string; /** * Metadata pertaining to creation and last modification of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) systemData?: SystemData; } @@ -2023,7 +2023,7 @@ model RecoveryPointModelProperties { /** * Gets or sets the provisioning state of the recovery point item. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -2042,7 +2042,7 @@ model ReplicationExtensionModelProperties { /** * Gets or sets the provisioning state of the replication extension. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** @@ -2122,7 +2122,7 @@ model DeploymentPreflightResource { /** * Gets or sets the location of the resource. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) location?: string; /** @@ -2174,13 +2174,13 @@ model VaultModelProperties { /** * Gets or sets the provisioning state of the vault. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * Gets or sets the service resource Id. */ - @visibility("read") + @visibility(Lifecycle.Read) serviceResourceId?: string; /** @@ -2201,13 +2201,13 @@ model VaultIdentityModel { /** * Gets or sets the object ID of the service principal object for the managed identity that is used to grant role-based access to an Azure resource. */ - @visibility("read") + @visibility(Lifecycle.Read) principalId?: string; /** * Gets or sets a Globally Unique Identifier (GUID) that represents the Azure AD tenant where the resource is now a member. */ - @visibility("read") + @visibility(Lifecycle.Read) tenantId?: string; } @@ -2234,25 +2234,25 @@ model VaultModelUpdate { /** * Gets or sets the Id of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; /** * Gets or sets the name of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) name?: string; /** * Gets or sets the type of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) type?: string; /** * Metadata pertaining to creation and last modification of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) systemData?: SystemData; } @@ -2318,7 +2318,7 @@ model AzStackHCIFabricModelCustomProperties /** * Gets or sets the Appliance name. */ - @visibility("read") + @visibility(Lifecycle.Read) applianceName?: string[]; /** @@ -2329,13 +2329,13 @@ model AzStackHCIFabricModelCustomProperties /** * Gets or sets the fabric resource Id. */ - @visibility("read") + @visibility(Lifecycle.Read) fabricResourceId?: string; /** * Gets or sets the fabric container Id. */ - @visibility("read") + @visibility(Lifecycle.Read) fabricContainerId?: string; /** @@ -2347,7 +2347,7 @@ model AzStackHCIFabricModelCustomProperties /** * Gets or sets the migration hub Uri. */ - @visibility("read") + @visibility(Lifecycle.Read) migrationHubUri?: string; /** @@ -2384,7 +2384,7 @@ model FailoverJobModelCustomProperties extends JobModelCustomProperties { /** * Gets or sets the failed over protected item details. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) protectedItemDetails?: FailoverProtectedItemProperties[]; @@ -2401,44 +2401,44 @@ model FailoverProtectedItemProperties { /** * Gets or sets the protected item name. */ - @visibility("read") + @visibility(Lifecycle.Read) protectedItemName?: string; /** * Gets or sets the VM name. */ - @visibility("read") + @visibility(Lifecycle.Read) vmName?: string; /** * Gets or sets the test VM name. */ - @visibility("read") + @visibility(Lifecycle.Read) testVmName?: string; /** * Gets or sets the recovery point Id. */ - @visibility("read") + @visibility(Lifecycle.Read) recoveryPointId?: string; /** * Gets or sets the recovery point time. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. recoveryPointTime?: utcDateTime; /** * Gets or sets the network name. */ - @visibility("read") + @visibility(Lifecycle.Read) networkName?: string; /** * Gets or sets the network subnet. */ - @visibility("read") + @visibility(Lifecycle.Read) subnet?: string; } @@ -2458,13 +2458,13 @@ model HyperVMigrateFabricModelCustomProperties /** * Gets or sets the fabric resource Id. */ - @visibility("read") + @visibility(Lifecycle.Read) fabricResourceId?: string; /** * Gets or sets the fabric container Id. */ - @visibility("read") + @visibility(Lifecycle.Read) fabricContainerId?: string; /** @@ -2476,7 +2476,7 @@ model HyperVMigrateFabricModelCustomProperties /** * Gets or sets the migration hub Uri. */ - @visibility("read") + @visibility(Lifecycle.Read) migrationHubUri?: string; /** @@ -2557,31 +2557,31 @@ model HyperVToAzStackHCIEventModelCustomProperties /** * Gets or sets the friendly name of the source which has raised this health event. */ - @visibility("read") + @visibility(Lifecycle.Read) eventSourceFriendlyName?: string; /** * Gets or sets the protected item friendly name. */ - @visibility("read") + @visibility(Lifecycle.Read) protectedItemFriendlyName?: string; /** * Gets or sets the source appliance name. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceApplianceName?: string; /** * Gets or sets the source target name. */ - @visibility("read") + @visibility(Lifecycle.Read) targetApplianceName?: string; /** * Gets or sets the server type. */ - @visibility("read") + @visibility(Lifecycle.Read) serverType?: string; /** @@ -2604,7 +2604,7 @@ model HyperVToAzStackHCINicInput { /** * Gets or sets the network name. */ - @visibility("read") + @visibility(Lifecycle.Read) networkName?: string; /** @@ -2685,85 +2685,85 @@ model HyperVToAzStackHCIProtectedDiskProperties { /** * Gets or sets the ARM Id of the storage container. */ - @visibility("read") + @visibility(Lifecycle.Read) storageContainerId?: string; /** * Gets or sets the local path of the storage container. */ - @visibility("read") + @visibility(Lifecycle.Read) storageContainerLocalPath?: string; /** * Gets or sets the source disk Id. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceDiskId?: string; /** * Gets or sets the source disk Name. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceDiskName?: string; /** * Gets or sets the seed disk name. */ - @visibility("read") + @visibility(Lifecycle.Read) seedDiskName?: string; /** * Gets or sets the test failover clone disk. */ - @visibility("read") + @visibility(Lifecycle.Read) testMigrateDiskName?: string; /** * Gets or sets the failover clone disk. */ - @visibility("read") + @visibility(Lifecycle.Read) migrateDiskName?: string; /** * Gets or sets a value indicating whether the disk is the OS disk. */ - @visibility("read") + @visibility(Lifecycle.Read) isOsDisk?: boolean; /** * Gets or sets the disk capacity in bytes. */ - @visibility("read") + @visibility(Lifecycle.Read) capacityInBytes?: int64; /** * Gets or sets a value indicating whether dynamic sizing is enabled on the virtual hard disk. */ - @visibility("read") + @visibility(Lifecycle.Read) isDynamic?: boolean; /** * Gets or sets the disk type. */ - @visibility("read") + @visibility(Lifecycle.Read) diskType?: string; /** * Gets or sets a value of disk block size. */ - @visibility("read") + @visibility(Lifecycle.Read) diskBlockSize?: int64; /** * Gets or sets a value of disk logical sector size. */ - @visibility("read") + @visibility(Lifecycle.Read) diskLogicalSectorSize?: int64; /** * Gets or sets a value of disk physical sector size. */ - @visibility("read") + @visibility(Lifecycle.Read) diskPhysicalSectorSize?: int64; } @@ -2776,7 +2776,7 @@ model HyperVToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the location of the protected item. */ - @visibility("read") + @visibility(Lifecycle.Read) activeLocation?: ProtectedItemActiveLocation; /** @@ -2794,7 +2794,7 @@ model HyperVToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the Target AzStackHCI cluster name. */ - @visibility("read") + @visibility(Lifecycle.Read) targetAzStackHciClusterName?: string; /** @@ -2818,19 +2818,19 @@ model HyperVToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the source VM display name. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceVmName?: string; /** * Gets or sets the source VM CPU cores. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceCpuCores?: int32; /** * Gets or sets the source VM ram memory size in megabytes. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceMemoryInMegaBytes?: float64; /** @@ -2907,37 +2907,37 @@ model HyperVToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the source appliance name. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceApplianceName?: string; /** * Gets or sets the target appliance name. */ - @visibility("read") + @visibility(Lifecycle.Read) targetApplianceName?: string; /** * Gets or sets the type of the OS. */ - @visibility("read") + @visibility(Lifecycle.Read) osType?: string; /** * Gets or sets the name of the OS. */ - @visibility("read") + @visibility(Lifecycle.Read) osName?: string; /** * Gets or sets the firmware type. */ - @visibility("read") + @visibility(Lifecycle.Read) firmwareType?: string; /** * Gets or sets the target location. */ - @visibility("read") + @visibility(Lifecycle.Read) targetLocation?: string; /** @@ -2949,58 +2949,58 @@ model HyperVToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the recovery point Id to which the VM was failed over. */ - @visibility("read") + @visibility(Lifecycle.Read) failoverRecoveryPointId?: string; /** * Gets or sets the last recovery point received time. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastRecoveryPointReceived?: utcDateTime; /** * Gets or sets the last recovery point Id. */ - @visibility("read") + @visibility(Lifecycle.Read) lastRecoveryPointId?: string; /** * Gets or sets the initial replication progress percentage. This is calculated based on total bytes processed for all disks in the source VM. */ - @visibility("read") + @visibility(Lifecycle.Read) initialReplicationProgressPercentage?: int32; /** * Gets or sets the resync progress percentage. This is calculated based on total bytes processed for all disks in the source VM. */ - @visibility("read") + @visibility(Lifecycle.Read) resyncProgressPercentage?: int32; /** * Gets or sets the list of protected disks. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) protectedDisks?: HyperVToAzStackHCIProtectedDiskProperties[]; /** * Gets or sets the VM NIC details. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) protectedNics?: HyperVToAzStackHCIProtectedNicProperties[]; /** * Gets or sets the BIOS Id of the target AzStackHCI VM. */ - @visibility("read") + @visibility(Lifecycle.Read) targetVmBiosId?: string; /** * Gets or sets the latest timestamp that replication status is updated. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastReplicationUpdateTime?: utcDateTime; @@ -3038,37 +3038,37 @@ model HyperVToAzStackHCIProtectedNicProperties { /** * Gets or sets the NIC Id. */ - @visibility("read") + @visibility(Lifecycle.Read) nicId?: string; /** * Gets or sets the NIC mac address. */ - @visibility("read") + @visibility(Lifecycle.Read) macAddress?: string; /** * Gets or sets the network name. */ - @visibility("read") + @visibility(Lifecycle.Read) networkName?: string; /** * Gets or sets the target network Id within AzStackHCI Cluster. */ - @visibility("read") + @visibility(Lifecycle.Read) targetNetworkId?: string; /** * Gets or sets the target test network Id within AzStackHCI Cluster. */ - @visibility("read") + @visibility(Lifecycle.Read) testNetworkId?: string; /** * Gets or sets the selection type of the NIC. */ - @visibility("read") + @visibility(Lifecycle.Read) selectionTypeForFailover?: VMNicSelection; } @@ -3124,7 +3124,7 @@ model HyperVToAzStackHCIRecoveryPointModelCustomProperties /** * Gets or sets the list of the disk Ids. */ - @visibility("read") + @visibility(Lifecycle.Read) diskIds?: string[]; /** @@ -3148,7 +3148,7 @@ model HyperVToAzStackHCIReplicationExtensionModelCustomProperties /** * Gets or sets the ARM Id of the HyperV site. */ - @visibility("read") + @visibility(Lifecycle.Read) hyperVSiteId?: string; /** @@ -3160,7 +3160,7 @@ model HyperVToAzStackHCIReplicationExtensionModelCustomProperties /** * Gets or sets the ARM Id of the AzStackHCI site. */ - @visibility("read") + @visibility(Lifecycle.Read) azStackHciSiteId?: string; /** @@ -3176,61 +3176,61 @@ model HyperVToAzStackHCIReplicationExtensionModelCustomProperties /** * Gets or sets the Uri of ASR. */ - @visibility("read") + @visibility(Lifecycle.Read) asrServiceUri?: string; /** * Gets or sets the Uri of Rcm. */ - @visibility("read") + @visibility(Lifecycle.Read) rcmServiceUri?: string; /** * Gets or sets the Uri of Gateway. */ - @visibility("read") + @visibility(Lifecycle.Read) gatewayServiceUri?: string; /** * Gets or sets the gateway service Id of source. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceGatewayServiceId?: string; /** * Gets or sets the gateway service Id of target. */ - @visibility("read") + @visibility(Lifecycle.Read) targetGatewayServiceId?: string; /** * Gets or sets the source storage container name. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceStorageContainerName?: string; /** * Gets or sets the target storage container name. */ - @visibility("read") + @visibility(Lifecycle.Read) targetStorageContainerName?: string; /** * Gets or sets the resource location. */ - @visibility("read") + @visibility(Lifecycle.Read) resourceLocation?: string; /** * Gets or sets the subscription. */ - @visibility("read") + @visibility(Lifecycle.Read) subscriptionId?: string; /** * Gets or sets the resource group. */ - @visibility("read") + @visibility(Lifecycle.Read) resourceGroup?: string; /** @@ -3350,7 +3350,7 @@ model TestFailoverCleanupJobModelCustomProperties /** * Gets or sets the test failover cleanup comments. */ - @visibility("read") + @visibility(Lifecycle.Read) comments?: string; /** @@ -3366,7 +3366,7 @@ model TestFailoverJobModelCustomProperties extends JobModelCustomProperties { /** * Gets or sets the test VM details. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) protectedItemDetails?: FailoverProtectedItemProperties[]; @@ -3495,31 +3495,31 @@ model VMwareToAzStackHCIEventModelCustomProperties /** * Gets or sets the friendly name of the source which has raised this health event. */ - @visibility("read") + @visibility(Lifecycle.Read) eventSourceFriendlyName?: string; /** * Gets or sets the protected item friendly name. */ - @visibility("read") + @visibility(Lifecycle.Read) protectedItemFriendlyName?: string; /** * Gets or sets the source appliance name. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceApplianceName?: string; /** * Gets or sets the source target name. */ - @visibility("read") + @visibility(Lifecycle.Read) targetApplianceName?: string; /** * Gets or sets the server type. */ - @visibility("read") + @visibility(Lifecycle.Read) serverType?: string; /** @@ -3548,7 +3548,7 @@ model VMwareToAzStackHCINicInput { /** * Gets or sets the network name. */ - @visibility("read") + @visibility(Lifecycle.Read) networkName?: string; /** @@ -3629,85 +3629,85 @@ model VMwareToAzStackHCIProtectedDiskProperties { /** * Gets or sets the ARM Id of the storage container. */ - @visibility("read") + @visibility(Lifecycle.Read) storageContainerId?: string; /** * Gets or sets the local path of the storage container. */ - @visibility("read") + @visibility(Lifecycle.Read) storageContainerLocalPath?: string; /** * Gets or sets the source disk Id. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceDiskId?: string; /** * Gets or sets the source disk Name. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceDiskName?: string; /** * Gets or sets the seed disk name. */ - @visibility("read") + @visibility(Lifecycle.Read) seedDiskName?: string; /** * Gets or sets the test failover clone disk. */ - @visibility("read") + @visibility(Lifecycle.Read) testMigrateDiskName?: string; /** * Gets or sets the failover clone disk. */ - @visibility("read") + @visibility(Lifecycle.Read) migrateDiskName?: string; /** * Gets or sets a value indicating whether the disk is the OS disk. */ - @visibility("read") + @visibility(Lifecycle.Read) isOsDisk?: boolean; /** * Gets or sets the disk capacity in bytes. */ - @visibility("read") + @visibility(Lifecycle.Read) capacityInBytes?: int64; /** * Gets or sets a value indicating whether dynamic sizing is enabled on the virtual hard disk. */ - @visibility("read") + @visibility(Lifecycle.Read) isDynamic?: boolean; /** * Gets or sets the disk type. */ - @visibility("read") + @visibility(Lifecycle.Read) diskType?: string; /** * Gets or sets a value of disk block size. */ - @visibility("read") + @visibility(Lifecycle.Read) diskBlockSize?: int64; /** * Gets or sets a value of disk logical sector size. */ - @visibility("read") + @visibility(Lifecycle.Read) diskLogicalSectorSize?: int64; /** * Gets or sets a value of disk physical sector size. */ - @visibility("read") + @visibility(Lifecycle.Read) diskPhysicalSectorSize?: int64; } @@ -3720,7 +3720,7 @@ model VMwareToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the location of the protected item. */ - @visibility("read") + @visibility(Lifecycle.Read) activeLocation?: ProtectedItemActiveLocation; /** @@ -3738,7 +3738,7 @@ model VMwareToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the Target AzStackHCI cluster name. */ - @visibility("read") + @visibility(Lifecycle.Read) targetAzStackHciClusterName?: string; /** @@ -3756,7 +3756,7 @@ model VMwareToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the target location. */ - @visibility("read") + @visibility(Lifecycle.Read) targetLocation?: string; /** @@ -3780,21 +3780,21 @@ model VMwareToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the list of protected disks. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) protectedDisks?: VMwareToAzStackHCIProtectedDiskProperties[]; /** * Gets or sets the VM NIC details. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) protectedNics?: VMwareToAzStackHCIProtectedNicProperties[]; /** * Gets or sets the BIOS Id of the target AzStackHCI VM. */ - @visibility("read") + @visibility(Lifecycle.Read) targetVmBiosId?: string; /** @@ -3842,19 +3842,19 @@ model VMwareToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the type of the OS. */ - @visibility("read") + @visibility(Lifecycle.Read) osType?: string; /** * Gets or sets the name of the OS. */ - @visibility("read") + @visibility(Lifecycle.Read) osName?: string; /** * Gets or sets the firmware type. */ - @visibility("read") + @visibility(Lifecycle.Read) firmwareType?: string; /** @@ -3866,19 +3866,19 @@ model VMwareToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the source VM display name. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceVmName?: string; /** * Gets or sets the source VM CPU cores. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceCpuCores?: int32; /** * Gets or sets the source VM ram memory size in megabytes. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceMemoryInMegaBytes?: float64; /** @@ -3902,74 +3902,74 @@ model VMwareToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the source appliance name. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceApplianceName?: string; /** * Gets or sets the target appliance name. */ - @visibility("read") + @visibility(Lifecycle.Read) targetApplianceName?: string; /** * Gets or sets the recovery point Id to which the VM was failed over. */ - @visibility("read") + @visibility(Lifecycle.Read) failoverRecoveryPointId?: string; /** * Gets or sets the last recovery point received time. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastRecoveryPointReceived?: utcDateTime; /** * Gets or sets the last recovery point Id. */ - @visibility("read") + @visibility(Lifecycle.Read) lastRecoveryPointId?: string; /** * Gets or sets the initial replication progress percentage. This is calculated based on total bytes processed for all disks in the source VM. */ - @visibility("read") + @visibility(Lifecycle.Read) initialReplicationProgressPercentage?: int32; /** * Gets or sets the migration progress percentage. */ - @visibility("read") + @visibility(Lifecycle.Read) migrationProgressPercentage?: int32; /** * Gets or sets the resume progress percentage. */ - @visibility("read") + @visibility(Lifecycle.Read) resumeProgressPercentage?: int32; /** * Gets or sets the resync progress percentage. This is calculated based on total bytes processed for all disks in the source VM. */ - @visibility("read") + @visibility(Lifecycle.Read) resyncProgressPercentage?: int32; /** * Gets or sets the resync retry count. */ - @visibility("read") + @visibility(Lifecycle.Read) resyncRetryCount?: int64; /** * Gets or sets a value indicating whether resync is required. */ - @visibility("read") + @visibility(Lifecycle.Read) resyncRequired?: boolean; /** * Gets or sets the resync state. */ - @visibility("read") + @visibility(Lifecycle.Read) resyncState?: VMwareToAzureMigrateResyncState; /** @@ -3980,13 +3980,13 @@ model VMwareToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the resume retry count. */ - @visibility("read") + @visibility(Lifecycle.Read) resumeRetryCount?: int64; /** * Gets or sets the latest timestamp that replication status is updated. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastReplicationUpdateTime?: utcDateTime; @@ -4004,19 +4004,19 @@ model VMwareToAzStackHCIProtectedNicProperties { /** * Gets or sets the NIC Id. */ - @visibility("read") + @visibility(Lifecycle.Read) nicId?: string; /** * Gets or sets the NIC mac address. */ - @visibility("read") + @visibility(Lifecycle.Read) macAddress?: string; /** * Gets or sets the NIC label. */ - @visibility("read") + @visibility(Lifecycle.Read) label?: string; /** @@ -4027,25 +4027,25 @@ model VMwareToAzStackHCIProtectedNicProperties { /** * Gets or sets the network name. */ - @visibility("read") + @visibility(Lifecycle.Read) networkName?: string; /** * Gets or sets the target network Id within AzStackHCI Cluster. */ - @visibility("read") + @visibility(Lifecycle.Read) targetNetworkId?: string; /** * Gets or sets the target test network Id within AzStackHCI Cluster. */ - @visibility("read") + @visibility(Lifecycle.Read) testNetworkId?: string; /** * Gets or sets the selection type of the NIC. */ - @visibility("read") + @visibility(Lifecycle.Read) selectionTypeForFailover?: VMNicSelection; } @@ -4101,7 +4101,7 @@ model VMwareToAzStackHCIRecoveryPointModelCustomProperties /** * Gets or sets the list of the disk Ids. */ - @visibility("read") + @visibility(Lifecycle.Read) diskIds?: string[]; /** @@ -4125,7 +4125,7 @@ model VMwareToAzStackHCIReplicationExtensionModelCustomProperties /** * Gets or sets the ARM Id of the VMware site. */ - @visibility("read") + @visibility(Lifecycle.Read) vmwareSiteId?: string; /** @@ -4137,7 +4137,7 @@ model VMwareToAzStackHCIReplicationExtensionModelCustomProperties /** * Gets or sets the ARM Id of the AzStackHCI site. */ - @visibility("read") + @visibility(Lifecycle.Read) azStackHciSiteId?: string; /** @@ -4153,61 +4153,61 @@ model VMwareToAzStackHCIReplicationExtensionModelCustomProperties /** * Gets or sets the Uri of ASR. */ - @visibility("read") + @visibility(Lifecycle.Read) asrServiceUri?: string; /** * Gets or sets the Uri of Rcm. */ - @visibility("read") + @visibility(Lifecycle.Read) rcmServiceUri?: string; /** * Gets or sets the Uri of Gateway. */ - @visibility("read") + @visibility(Lifecycle.Read) gatewayServiceUri?: string; /** * Gets or sets the gateway service Id of source. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceGatewayServiceId?: string; /** * Gets or sets the gateway service Id of target. */ - @visibility("read") + @visibility(Lifecycle.Read) targetGatewayServiceId?: string; /** * Gets or sets the source storage container name. */ - @visibility("read") + @visibility(Lifecycle.Read) sourceStorageContainerName?: string; /** * Gets or sets the target storage container name. */ - @visibility("read") + @visibility(Lifecycle.Read) targetStorageContainerName?: string; /** * Gets or sets the resource location. */ - @visibility("read") + @visibility(Lifecycle.Read) resourceLocation?: string; /** * Gets or sets the subscription. */ - @visibility("read") + @visibility(Lifecycle.Read) subscriptionId?: string; /** * Gets or sets the resource group. */ - @visibility("read") + @visibility(Lifecycle.Read) resourceGroup?: string; /** diff --git a/specification/riskiq/Easm/models.tsp b/specification/riskiq/Easm/models.tsp index f4f4a7ca0f76..9d96d9b15b45 100644 --- a/specification/riskiq/Easm/models.tsp +++ b/specification/riskiq/Easm/models.tsp @@ -235,7 +235,7 @@ model AssetResource { @doc("The system generated unique id for the resource.") @key("assetId") - @visibility("read") + @visibility(Lifecycle.Read) id: string; @doc("The caller provided unique name for the resource.") @@ -518,7 +518,7 @@ model DataConnection { @doc("The caller provided unique name for the resource.") @key("dataConnectionName") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("The name that can be used for display purposes.") @@ -528,7 +528,7 @@ model DataConnection { content?: DataConnectionContent; @doc("The date the data connection was created.") - @visibility("read") + @visibility(Lifecycle.Read) createdDate?: utcDateTime; @doc("The rate at which the data connection will receive updates.") @@ -538,18 +538,18 @@ model DataConnection { frequencyOffset?: int32; @doc("The date the data connection was last updated.") - @visibility("read") + @visibility(Lifecycle.Read) updatedDate?: utcDateTime; @doc("The date the data connection was last updated by user.") - @visibility("read") + @visibility(Lifecycle.Read) userUpdatedAt?: utcDateTime; @doc("An indicator of whether the data connection is active.") active?: boolean; @doc("A message that specifies details about data connection if inactive.") - @visibility("read") + @visibility(Lifecycle.Read) inactiveMessage?: string; } @@ -624,16 +624,16 @@ model ActionParameters { @resource("policies") model Policy { @doc("This is typically the same as the name but might be different for different models.") - @visibility("read") + @visibility(Lifecycle.Read) id?: string; @doc("The caller provided unique name for the resource.") @key("policyName") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("The name that can be used for display purposes.") - @visibility("read") + @visibility(Lifecycle.Read) displayName?: string; @doc("A human readable description of what the policy should do.") @@ -646,19 +646,19 @@ model Policy { action: PolicyAction; @doc("Number of assets in inventory that have been updated by this policy.") - @visibility("read") + @visibility(Lifecycle.Read) updatedAssetsCount?: int64; @doc("The unique name of the user that created the policy user@gmail.com") - @visibility("read") + @visibility(Lifecycle.Read) user?: string; @doc("The date this policy was created, in RFC3339 format.") - @visibility("read") + @visibility(Lifecycle.Read) createdDate?: utcDateTime; @doc("The date this policy was last updated, in RFC3339 format.") - @visibility("read") + @visibility(Lifecycle.Read) updatedDate?: utcDateTime; @doc("Additional parameters needed to perform the policy action.") @@ -673,7 +673,7 @@ model DiscoGroup { @doc("The caller provided unique name for the resource.") @key("groupName") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("The name that can be used for display purposes.") @@ -766,7 +766,7 @@ model DiscoSource { model DiscoTemplate { @doc("The system generated unique id for the resource.") @key("templateId") - @visibility("read") + @visibility(Lifecycle.Read) id: string; @doc("The caller provided unique name for the resource.") @@ -1323,7 +1323,7 @@ model SavedFilter { @doc("The caller provided unique name for the resource.") @key("filterName") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("The name that can be used for display purposes.") @@ -1442,7 +1442,7 @@ model SubResourceIntegrityCheck { model Task { @doc("The unique identifier of the task.") @key("taskId") - @visibility("read") + @visibility(Lifecycle.Read) id: string; @doc("The time the task started.") @@ -2172,7 +2172,7 @@ model RequiredFilterParameter { @Versioning.added(Versions.v2024_03_01_preview) model CisaCveResult { @key("cveId") - @visibility("read") + @visibility(Lifecycle.Read) @doc("The CVE ID of the vulnerability in the format CVE-YYYY-NNNN, note that the number portion can have more than 4 digits.") cveId: string; diff --git a/specification/schemaregistry/SchemaRegistry/main.tsp b/specification/schemaregistry/SchemaRegistry/main.tsp index 9026051b4eda..cbcd7e7874ca 100644 --- a/specification/schemaregistry/SchemaRegistry/main.tsp +++ b/specification/schemaregistry/SchemaRegistry/main.tsp @@ -275,7 +275,7 @@ model SchemaVersions { model SchemaGroup { @key("groupName") @doc("Name of schema group.") - @visibility("read") + @visibility(Lifecycle.Read) groupName: string; } @@ -285,7 +285,7 @@ model SchemaGroup { model SchemasName { @key("schemaName") @doc("Name of schema.") - @visibility("read") + @visibility(Lifecycle.Read) @maxLength(50) @pattern("^[A-Za-z0-9][^\\\\/$:]*$") schemaName: string; diff --git a/specification/scvmm/ScVmm.Management/GuestAgent.tsp b/specification/scvmm/ScVmm.Management/GuestAgent.tsp index d44f3bdae9cc..1ca5c0830204 100644 --- a/specification/scvmm/ScVmm.Management/GuestAgent.tsp +++ b/specification/scvmm/ScVmm.Management/GuestAgent.tsp @@ -16,7 +16,7 @@ model GuestAgent is ProxyResource { /** Name of the guest agent. */ @key("guestAgentName") @segment("guestAgents") - @visibility("read") + @visibility(Lifecycle.Read) @maxLength(54) @minLength(1) @pattern("[a-zA-Z0-9-_\\.]") diff --git a/specification/scvmm/ScVmm.Management/VirtualMachineInstance.tsp b/specification/scvmm/ScVmm.Management/VirtualMachineInstance.tsp index 71ca59eb3ce5..75d1790cc3c9 100644 --- a/specification/scvmm/ScVmm.Management/VirtualMachineInstance.tsp +++ b/specification/scvmm/ScVmm.Management/VirtualMachineInstance.tsp @@ -17,7 +17,7 @@ model VirtualMachineInstance /** Name of the virtual machine instance. */ @key @segment("virtualMachineInstances") - @visibility("read") + @visibility(Lifecycle.Read) @maxLength(54) @minLength(1) @pattern("[a-zA-Z0-9-_\\.]") @@ -26,7 +26,7 @@ model VirtualMachineInstance /** Gets or sets the extended location. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "This property is allowed but not recognized by the linter" - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } diff --git a/specification/scvmm/ScVmm.Management/VmInstanceHybridIdentityMetadata.tsp b/specification/scvmm/ScVmm.Management/VmInstanceHybridIdentityMetadata.tsp index a27edd51a540..223ff805f02a 100644 --- a/specification/scvmm/ScVmm.Management/VmInstanceHybridIdentityMetadata.tsp +++ b/specification/scvmm/ScVmm.Management/VmInstanceHybridIdentityMetadata.tsp @@ -22,7 +22,7 @@ model VmInstanceHybridIdentityMetadata @minLength(1) @pattern("[a-zA-Z0-9-_\\.]") @path - @visibility("read") + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/scvmm/ScVmm.Management/models.tsp b/specification/scvmm/ScVmm.Management/models.tsp index 45377020ed29..9126d6e6adfe 100644 --- a/specification/scvmm/ScVmm.Management/models.tsp +++ b/specification/scvmm/ScVmm.Management/models.tsp @@ -186,23 +186,23 @@ model VmmServerProperties { port?: int32; /** Gets the connection status to the vmmServer. */ - @visibility("read") + @visibility(Lifecycle.Read) connectionStatus?: string; /** Gets any error message if connection to vmmServer is having any issue. */ - @visibility("read") + @visibility(Lifecycle.Read) errorMessage?: string; /** Unique ID of vmmServer. */ - @visibility("read") + @visibility(Lifecycle.Read) uuid?: string; /** Version is the version of the vmmSever. */ - @visibility("read") + @visibility(Lifecycle.Read) version?: string; /** Provisioning state of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -212,7 +212,7 @@ model VmmCredential { username?: string; /** Password to use to connect to VmmServer. */ - @visibility("create", "update") + @visibility(Lifecycle.Create, Lifecycle.Update) @secret password?: string; } @@ -243,34 +243,34 @@ model CloudProperties { vmmServerId?: VmmServerId; /** Name of the cloud in VmmServer. */ - @visibility("read") + @visibility(Lifecycle.Read) cloudName?: string; /** Capacity of the cloud. */ - @visibility("read") + @visibility(Lifecycle.Read) cloudCapacity?: CloudCapacity; /** List of QoS policies available for the cloud. */ - @visibility("read") + @visibility(Lifecycle.Read) @encodedName("application/json", "storageQoSPolicies") storageQosPolicies?: StorageQosPolicy[]; /** Provisioning state of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } /** Cloud Capacity model */ model CloudCapacity { /** CPUCount specifies the maximum number of CPUs that can be allocated in the cloud. */ - @visibility("read") cpuCount?: int64; + @visibility(Lifecycle.Read) cpuCount?: int64; /** MemoryMB specifies a memory usage limit in megabytes. */ #suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb" - @visibility("read") memoryMB?: int64; + @visibility(Lifecycle.Read) memoryMB?: int64; /** VMCount gives the max number of VMs that can be deployed in the cloud. */ - @visibility("read") vmCount?: int64; + @visibility(Lifecycle.Read) vmCount?: int64; } /** The StorageQoSPolicy definition. */ @@ -307,11 +307,11 @@ model VirtualNetworkProperties { vmmServerId?: VmmServerId; /** Name of the virtual network in vmmServer. */ - @visibility("read") + @visibility(Lifecycle.Read) networkName?: string; /** Provisioning state of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -328,68 +328,68 @@ model VirtualMachineTemplateProperties { vmmServerId?: VmmServerId; /** Gets the type of the os. */ - @visibility("read") + @visibility(Lifecycle.Read) osType?: OsType; /** Gets os name. */ - @visibility("read") + @visibility(Lifecycle.Read) osName?: string; /** Gets computer name. */ - @visibility("read") + @visibility(Lifecycle.Read) computerName?: string; /** MemoryMB is the desired size of a virtual machine's memory, in MB. */ #suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb" - @visibility("read") + @visibility(Lifecycle.Read) memoryMB?: int32; /** Gets the desired number of vCPUs for the vm. */ - @visibility("read") + @visibility(Lifecycle.Read) cpuCount?: int32; /** Gets a value indicating whether to enable processor compatibility mode for live migration of VMs. */ - @visibility("read") + @visibility(Lifecycle.Read) limitCpuForMigration?: LimitCpuForMigration; /** Gets a value indicating whether to enable dynamic memory or not. */ - @visibility("read") + @visibility(Lifecycle.Read) dynamicMemoryEnabled?: DynamicMemoryEnabled; /** Gets a value indicating whether the vm template is customizable or not. */ - @visibility("read") + @visibility(Lifecycle.Read) isCustomizable?: IsCustomizable; /** Gets the max dynamic memory for the vm. */ #suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb" - @visibility("read") + @visibility(Lifecycle.Read) dynamicMemoryMaxMB?: int32; /** Gets the min dynamic memory for the vm. */ #suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb" - @visibility("read") + @visibility(Lifecycle.Read) dynamicMemoryMinMB?: int32; /** Gets highly available property. */ - @visibility("read") + @visibility(Lifecycle.Read) isHighlyAvailable?: IsHighlyAvailable; /** Gets the generation for the vm. */ - @visibility("read") + @visibility(Lifecycle.Read) generation?: int32; /** Gets the network interfaces of the template. */ - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["name", "nicId"]) networkInterfaces?: NetworkInterface[]; /** Gets the disks of the template. */ - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["diskId", "name"]) disks?: VirtualDisk[]; /** Provisioning state of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -399,15 +399,15 @@ model NetworkInterface { name?: string; /** Gets the display name of the network interface as shown in the vmmServer. This is the fallback label for a NIC when the name is not set. */ - @visibility("read") + @visibility(Lifecycle.Read) displayName?: string; /** Gets the nic ipv4 addresses. */ - @visibility("read") + @visibility(Lifecycle.Read) ipv4Addresses?: string[]; /** Gets the nic ipv6 addresses. */ - @visibility("read") + @visibility(Lifecycle.Read) ipv6Addresses?: string[]; /** Gets or sets the nic MAC address. */ @@ -417,7 +417,7 @@ model NetworkInterface { virtualNetworkId?: VirtualNetworkId; /** Gets the name of the virtual network in vmmServer that the nic is connected to. */ - @visibility("read") + @visibility(Lifecycle.Read) networkName?: string; /** Gets or sets the ipv4 address type. */ @@ -442,7 +442,7 @@ model VirtualDisk { name?: string; /** Gets the display name of the virtual disk as shown in the vmmServer. This is the fallback label for a disk when the name is not set. */ - @visibility("read") + @visibility(Lifecycle.Read) displayName?: string; /** Gets or sets the disk id. */ @@ -454,7 +454,7 @@ model VirtualDisk { /** Gets the max disk size. */ #suppress "@azure-tools/typespec-azure-core/casing-style" "GB is distinct from Gb" - @visibility("read") + @visibility(Lifecycle.Read) maxDiskSizeGB?: int32; /** Gets or sets the disk bus. */ @@ -470,15 +470,15 @@ model VirtualDisk { vhdType?: string; /** Gets the disk volume type. */ - @visibility("read") + @visibility(Lifecycle.Read) volumeType?: string; /** Gets the disk vhd format type. */ - @visibility("read") + @visibility(Lifecycle.Read) vhdFormatType?: string; /** Gets or sets the disk id in the template. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) templateDiskId?: string; /** The QoS policy for the disk. */ @@ -486,7 +486,7 @@ model VirtualDisk { storageQosPolicy?: StorageQosPolicyDetails; /** Gets or sets a value indicating diff disk. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) createDiffDisk?: CreateDiffDisk; } @@ -512,7 +512,7 @@ model AvailabilitySetProperties { vmmServerId?: VmmServerId; /** Provisioning state of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -540,19 +540,19 @@ model InventoryItemProperties { inventoryType: InventoryType; /** Gets the tracked resource id corresponding to the inventory resource. */ - @visibility("read") + @visibility(Lifecycle.Read) managedResourceId?: string; /** Gets the UUID (which is assigned by Vmm) for the inventory item. */ - @visibility("read") + @visibility(Lifecycle.Read) uuid?: string; /** Gets the Managed Object name in Vmm for the inventory item. */ - @visibility("read") + @visibility(Lifecycle.Read) inventoryItemName?: string; /** Provisioning state of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -562,7 +562,7 @@ model VirtualMachineInstanceProperties { availabilitySets?: AvailabilitySetListItem[]; /** OS properties. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) osProfile?: OsProfileForVmInstance; /** Hardware properties. */ @@ -578,11 +578,11 @@ model VirtualMachineInstanceProperties { infrastructureProfile?: InfrastructureProfile; /** Gets the power state of the virtual machine. */ - @visibility("read") + @visibility(Lifecycle.Read) powerState?: string; /** Provisioning state of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -625,7 +625,7 @@ model AvailabilitySetListItem { /** Defines the resource properties. */ model OsProfileForVmInstance { /** Admin password of the virtual machine. */ - @visibility("create", "update") + @visibility(Lifecycle.Create, Lifecycle.Update) @secret adminPassword?: string; @@ -633,15 +633,15 @@ model OsProfileForVmInstance { computerName?: string; /** Gets the type of the os. */ - @visibility("read") + @visibility(Lifecycle.Read) osType?: OsType; /** Gets os sku. */ - @visibility("read") + @visibility(Lifecycle.Read) osSku?: string; /** Gets os version. */ - @visibility("read") + @visibility(Lifecycle.Read) osVersion?: string; /** Gets or sets the domain name. */ @@ -653,7 +653,7 @@ model OsProfileForVmInstance { domainUsername?: string; /** Password of the domain the VM has to join. */ - @visibility("create", "update") + @visibility(Lifecycle.Create, Lifecycle.Update) @secret @added(Versions.v2024_06_01) domainPassword?: string; @@ -663,7 +663,7 @@ model OsProfileForVmInstance { workgroup?: string; /** Gets or sets the product key.Input format xxxxx-xxxxx-xxxxx-xxxxx-xxxxx */ - @visibility("create") + @visibility(Lifecycle.Create) @secret @added(Versions.v2024_06_01) productKey?: string; @@ -701,7 +701,7 @@ model HardwareProfile { dynamicMemoryMinMB?: int32; /** Gets highly available property. */ - @visibility("read") + @visibility(Lifecycle.Read) isHighlyAvailable?: IsHighlyAvailable; } @@ -741,15 +741,15 @@ model StorageProfileUpdate /** Specifies the vmmServer infrastructure specific settings for the virtual machine instance. */ model InfrastructureProfile { /** Gets or sets the inventory Item ID for the resource. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) inventoryItemId?: string; /** ARM Id of the vmmServer resource in which this resource resides. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) vmmServerId?: VmmServerId; /** ARM Id of the cloud resource to use for deploying the vm. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) cloudId?: Azure.Core.armResourceIdentifier<[ { type: "Microsoft.ScVmm/clouds"; @@ -757,7 +757,7 @@ model InfrastructureProfile { ]>; /** ARM Id of the template resource to use for deploying the vm. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) templateId?: Azure.Core.armResourceIdentifier<[ { type: "Microsoft.ScVmm/virtualMachineTemplates"; @@ -766,34 +766,34 @@ model InfrastructureProfile { /** VMName is the name of VM on the SCVmm server. */ @minLength(1) - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) vmName?: string; /** Unique ID of the virtual machine. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) uuid?: string; /** Last restored checkpoint in the vm. */ - @visibility("read") + @visibility(Lifecycle.Read) @encodedName("application/json", "lastRestoredVMCheckpoint") lastRestoredVmCheckpoint?: Checkpoint; /** Checkpoints in the vm. */ #suppress "@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers" "Workaround for emitter problem" - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["checkpointID"]) checkpoints?: Checkpoint[]; /** Type of checkpoint supported for the vm. */ - @visibility("read", "create", "update") + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) checkpointType?: string; /** Gets or sets the generation for the vm. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) generation?: int32; /** Gets or sets the bios guid for the vm. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) biosGuid?: string; } @@ -833,7 +833,7 @@ model VmInstanceHybridIdentityMetadataProperties { publicKey?: string; /** Provisioning state of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -861,7 +861,7 @@ model VirtualMachineRestoreCheckpoint { /** Defines the resource properties. */ model GuestAgentProperties { /** Gets a unique identifier for this resource. */ - @visibility("read") + @visibility(Lifecycle.Read) uuid?: string; /** Username / Password Credentials to provision guest agent. */ @@ -874,15 +874,15 @@ model GuestAgentProperties { provisioningAction?: ProvisioningAction; /** Gets the guest agent status. */ - @visibility("read") + @visibility(Lifecycle.Read) status?: string; /** Gets the name of the corresponding resource in Kubernetes. */ - @visibility("read") + @visibility(Lifecycle.Read) customResourceName?: string; /** Provisioning state of the resource. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** The resource id of the private link scope this machine is assigned to, if any. */ @@ -900,7 +900,7 @@ model GuestCredential { username: string; /** Gets or sets the password to connect with the guest. */ - @visibility("create", "update") + @visibility(Lifecycle.Create, Lifecycle.Update) @secret password: string; } @@ -935,20 +935,20 @@ model VirtualNetworkInventoryItem extends InventoryItemProperties { /** The Virtual machine template inventory item. */ model VirtualMachineTemplateInventoryItem extends InventoryItemProperties { /** Gets the desired number of vCPUs for the vm. */ - @visibility("read") + @visibility(Lifecycle.Read) cpuCount?: int32; /** MemoryMB is the desired size of a virtual machine's memory, in MB. */ #suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb" - @visibility("read") + @visibility(Lifecycle.Read) memoryMB?: int32; /** Gets the type of the os. */ - @visibility("read") + @visibility(Lifecycle.Read) osType?: OsType; /** Gets os name. */ - @visibility("read") + @visibility(Lifecycle.Read) osName?: string; /** They inventory type. */ @@ -958,19 +958,19 @@ model VirtualMachineTemplateInventoryItem extends InventoryItemProperties { /** The Virtual machine inventory item. */ model VirtualMachineInventoryItem extends InventoryItemProperties { /** Gets the type of the os. */ - @visibility("read") + @visibility(Lifecycle.Read) osType?: OsType; /** Gets os name. */ - @visibility("read") + @visibility(Lifecycle.Read) osName?: string; /** Gets os version. */ - @visibility("read") + @visibility(Lifecycle.Read) osVersion?: string; /** Gets the power state of the virtual machine. */ - @visibility("read") + @visibility(Lifecycle.Read) powerState?: string; /** Gets or sets the nic ip addresses. */ @@ -980,11 +980,11 @@ model VirtualMachineInventoryItem extends InventoryItemProperties { cloud?: InventoryItemDetails; /** Gets the bios guid. */ - @visibility("read") + @visibility(Lifecycle.Read) biosGuid?: string; /** Gets the tracked resource id corresponding to the inventory resource. */ - @visibility("read") + @visibility(Lifecycle.Read) managedMachineResourceId?: Azure.Core.armResourceIdentifier<[]>; /** They inventory type. */ diff --git a/specification/servicenetworking/ServiceNetworking.Management/main.tsp b/specification/servicenetworking/ServiceNetworking.Management/main.tsp index 1d358a7928cb..0a4c18fb4dba 100644 --- a/specification/servicenetworking/ServiceNetworking.Management/main.tsp +++ b/specification/servicenetworking/ServiceNetworking.Management/main.tsp @@ -38,7 +38,7 @@ using Azure.ResourceManager; model Frontend is TrackedResource { /** Frontends */ @key("frontendName") - @visibility("read") + @visibility(Lifecycle.Read) @path @segment("frontends") @pattern("^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$") @@ -48,11 +48,11 @@ model Frontend is TrackedResource { /** Frontend Properties. */ model FrontendProperties { /** The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend. */ - @visibility("read") + @visibility(Lifecycle.Read) fqdn?: string; /** Provisioning State of Traffic Controller Frontend Resource */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -62,7 +62,7 @@ model FrontendProperties { model Association is TrackedResource { /** Name of Association */ @key("associationName") - @visibility("read") + @visibility(Lifecycle.Read) @path @segment("associations") @pattern("^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$") @@ -104,7 +104,7 @@ model AssociationProperties { subnet?: AssociationSubnet; /** Provisioning State of Traffic Controller Association Resource */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -127,7 +127,7 @@ model AssociationSubnet { model SecurityPolicy is TrackedResource { /** SecurityPolicy */ @key("securityPolicyName") - @visibility("read") + @visibility(Lifecycle.Read) @path @segment("securityPolicies") @pattern("^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$") @@ -137,14 +137,14 @@ model SecurityPolicy is TrackedResource { /** SecurityPolicy Properties. */ model SecurityPolicyProperties { /** Type of the Traffic Controller Security Policy */ - @visibility("read") + @visibility(Lifecycle.Read) policyType?: PolicyType; /** Web Application Firewall Policy of the Traffic Controller Security Policy */ wafPolicy?: WafPolicy; /** Provisioning State of Traffic Controller SecurityPolicy Resource */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -189,19 +189,19 @@ model TrafficController is TrackedResource { /** Traffic Controller Properties. */ model TrafficControllerProperties { /** Configuration Endpoints. */ - @visibility("read") + @visibility(Lifecycle.Read) configurationEndpoints?: string[]; /** Frontends References List */ - @visibility("read") + @visibility(Lifecycle.Read) frontends?: ResourceId[]; /** Associations References List */ - @visibility("read") + @visibility(Lifecycle.Read) associations?: ResourceId[]; /** Security Policies References List */ - @visibility("read") + @visibility(Lifecycle.Read) @added(Versions.v2024_05_01_preview) securityPolicies?: ResourceId[]; @@ -211,7 +211,7 @@ model TrafficControllerProperties { securityPolicyConfigurations?: SecurityPolicyConfigurations; /** The status of the last operation. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/sovereign/Sovereign.Management/landingZoneAccountResourceProperties.tsp b/specification/sovereign/Sovereign.Management/landingZoneAccountResourceProperties.tsp index befcefa15d83..7e89115effb0 100644 --- a/specification/sovereign/Sovereign.Management/landingZoneAccountResourceProperties.tsp +++ b/specification/sovereign/Sovereign.Management/landingZoneAccountResourceProperties.tsp @@ -7,7 +7,7 @@ namespace Microsoft.Sovereign; @added(Versions.Preview20250227) @doc("The properties of landing zone account resource type.") model LandingZoneAccountResourceProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The state that reflects the current stage in the creation, updating, or deletion process of the landing zone account.") provisioningState?: provisioningState; diff --git a/specification/sovereign/Sovereign.Management/landingZoneConfigurationResourceProperties.tsp b/specification/sovereign/Sovereign.Management/landingZoneConfigurationResourceProperties.tsp index 1abafa5223bf..ac566cdac538 100644 --- a/specification/sovereign/Sovereign.Management/landingZoneConfigurationResourceProperties.tsp +++ b/specification/sovereign/Sovereign.Management/landingZoneConfigurationResourceProperties.tsp @@ -7,12 +7,12 @@ namespace Microsoft.Sovereign; @added(Versions.Preview20250227) @doc("The properties of landing zone configuration resource type.") model LandingZoneConfigurationResourceProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The state that reflects the current stage in the creation, updating, or deletion process of the landing zone configuration.") provisioningState?: provisioningState; #suppress "@azure-tools/typespec-providerhub/non-breaking-versioning" "Handled in code." - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status that indicates the current phase of the configuration process for a deployment.") authoringStatus?: AuthoringStatus; diff --git a/specification/sovereign/Sovereign.Management/landingZoneRegistrationResourceProperties.tsp b/specification/sovereign/Sovereign.Management/landingZoneRegistrationResourceProperties.tsp index 401bc2699369..09fdc0a98ba1 100644 --- a/specification/sovereign/Sovereign.Management/landingZoneRegistrationResourceProperties.tsp +++ b/specification/sovereign/Sovereign.Management/landingZoneRegistrationResourceProperties.tsp @@ -7,7 +7,7 @@ namespace Microsoft.Sovereign; @added(Versions.Preview20250227) @doc("The properties of landing zone registration resource type.") model LandingZoneRegistrationResourceProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The state that reflects the current stage in the creation, updating, or deletion process of the landing zone registration resource type.") provisioningState?: provisioningState; diff --git a/specification/sovereign/Sovereign.Management/main.tsp b/specification/sovereign/Sovereign.Management/main.tsp index 8e9c8bc4d02e..395e99a5a9e3 100644 --- a/specification/sovereign/Sovereign.Management/main.tsp +++ b/specification/sovereign/Sovereign.Management/main.tsp @@ -36,7 +36,7 @@ model LandingZoneAccountResource @segment("landingZoneAccounts") @key("landingZoneAccountName") @pattern("^[a-zA-Z0-9-]{3,64}$") - @visibility("read") + @visibility(Lifecycle.Read) @path name: string; @@ -71,7 +71,7 @@ model LandingZoneConfigurationResource @doc("The landing zone configuration name") @segment("landingZoneConfigurations") @key("landingZoneConfigurationName") - @visibility("read") + @visibility(Lifecycle.Read) @pattern("^[a-zA-Z0-9-]{3,64}$") @path name: string; diff --git a/specification/sphere/Sphere.Management/catalog.tsp b/specification/sphere/Sphere.Management/catalog.tsp index 34023a0e413f..2eccad994354 100644 --- a/specification/sphere/Sphere.Management/catalog.tsp +++ b/specification/sphere/Sphere.Management/catalog.tsp @@ -18,7 +18,7 @@ model Catalog is TrackedResource { @path @key("catalogName") @segment("catalogs") - @visibility("read") + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/sphere/Sphere.Management/certificate.tsp b/specification/sphere/Sphere.Management/certificate.tsp index 5fa84a96b650..4974fb23e63e 100644 --- a/specification/sphere/Sphere.Management/certificate.tsp +++ b/specification/sphere/Sphere.Management/certificate.tsp @@ -19,7 +19,7 @@ model Certificate is ProxyResource { @path @key("serialNumber") @segment("certificates") - @visibility("read") + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/sphere/Sphere.Management/deployment.tsp b/specification/sphere/Sphere.Management/deployment.tsp index 9df999337d4b..ae1d3b0fe925 100644 --- a/specification/sphere/Sphere.Management/deployment.tsp +++ b/specification/sphere/Sphere.Management/deployment.tsp @@ -15,7 +15,7 @@ model Deployment is ProxyResource { @path @key("deploymentName") @segment("deployments") - @visibility("read") + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/sphere/Sphere.Management/device.tsp b/specification/sphere/Sphere.Management/device.tsp index b4b8a643404a..6e8b4461e234 100644 --- a/specification/sphere/Sphere.Management/device.tsp +++ b/specification/sphere/Sphere.Management/device.tsp @@ -17,7 +17,7 @@ model Device is ProxyResource { @path @key("deviceName") @segment("devices") - @visibility("read") + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/sphere/Sphere.Management/deviceGroup.tsp b/specification/sphere/Sphere.Management/deviceGroup.tsp index eb1413658246..bdd11168343f 100644 --- a/specification/sphere/Sphere.Management/deviceGroup.tsp +++ b/specification/sphere/Sphere.Management/deviceGroup.tsp @@ -19,7 +19,7 @@ model DeviceGroup is ProxyResource { @path @key("deviceGroupName") @segment("deviceGroups") - @visibility("read") + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/sphere/Sphere.Management/image.tsp b/specification/sphere/Sphere.Management/image.tsp index 49932e5b06e9..3a107a5f427a 100644 --- a/specification/sphere/Sphere.Management/image.tsp +++ b/specification/sphere/Sphere.Management/image.tsp @@ -16,7 +16,7 @@ model Image is ProxyResource { @path @key("imageName") @segment("images") - @visibility("read") + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/sphere/Sphere.Management/models.tsp b/specification/sphere/Sphere.Management/models.tsp index e94264b1334e..2724e5881b58 100644 --- a/specification/sphere/Sphere.Management/models.tsp +++ b/specification/sphere/Sphere.Management/models.tsp @@ -297,13 +297,13 @@ model CatalogProperties { /** * The Azure Sphere tenant ID associated with the catalog. */ - @visibility("read") + @visibility(Lifecycle.Read) tenantId?: string; /** * The status of the last operation. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -314,25 +314,25 @@ model Resource { /** * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; /** * The name of the resource */ - @visibility("read") + @visibility(Lifecycle.Read) name?: string; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ - @visibility("read") + @visibility(Lifecycle.Read) type?: string; /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @visibility("read") + @visibility(Lifecycle.Read) systemData?: SystemData; } @@ -354,45 +354,45 @@ model CertificateProperties { /** * The certificate as a UTF-8 encoded base 64 string. */ - @visibility("read") + @visibility(Lifecycle.Read) certificate?: string; /** * The certificate status. */ - @visibility("read") + @visibility(Lifecycle.Read) status?: CertificateStatus; /** * The certificate subject. */ - @visibility("read") + @visibility(Lifecycle.Read) subject?: string; /** * The certificate thumbprint. */ - @visibility("read") + @visibility(Lifecycle.Read) thumbprint?: string; /** * The certificate expiry date. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. expiryUtc?: utcDateTime; /** * The certificate not before date. */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. notBeforeUtc?: utcDateTime; /** * The status of the last operation. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -403,7 +403,7 @@ model CertificateChainResponse { /** * The certificate chain. */ - @visibility("read") + @visibility(Lifecycle.Read) certificateChain?: string; } @@ -448,55 +448,55 @@ model ImageProperties { /** * Image as a UTF-8 encoded base 64 string on image create. This field contains the image URI on image reads. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) image?: string; /** * Image ID */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) imageId?: string; /** * Image name */ - @visibility("read") + @visibility(Lifecycle.Read) imageName?: string; /** * Regional data boundary for an image */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) regionalDataBoundary?: RegionalDataBoundary; /** * Location the image */ - @visibility("read") + @visibility(Lifecycle.Read) uri?: string; /** * The image description. */ - @visibility("read") + @visibility(Lifecycle.Read) description?: string; /** * The image component id. */ - @visibility("read") + @visibility(Lifecycle.Read) componentId?: string; /** * The image type. */ - @visibility("read") + @visibility(Lifecycle.Read) imageType?: ImageType; /** * The status of the last operation. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -507,26 +507,26 @@ model DeploymentProperties { /** * Deployment ID */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) deploymentId?: string; /** * Images deployed */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) deployedImages?: Image[]; /** * Deployment date UTC */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. deploymentDateUtc?: utcDateTime; /** * The status of the last operation. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -572,13 +572,13 @@ model DeviceGroupProperties { /** * Deployment status for the device group. */ - @visibility("read") + @visibility(Lifecycle.Read) hasDeployment?: boolean; /** * The status of the last operation. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -641,45 +641,45 @@ model DeviceProperties { /** * Device ID */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) deviceId?: string; /** * SKU of the chip */ - @visibility("read") + @visibility(Lifecycle.Read) chipSku?: string; /** * OS version available for installation when update requested */ - @visibility("read") + @visibility(Lifecycle.Read) lastAvailableOsVersion?: string; /** * OS version running on device when update requested */ - @visibility("read") + @visibility(Lifecycle.Read) lastInstalledOsVersion?: string; /** * Time when update requested and new OS version available */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastOsUpdateUtc?: utcDateTime; /** * Time when update was last requested */ - @visibility("read") + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastUpdateRequestUtc?: utcDateTime; /** * The status of the last operation. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -695,7 +695,7 @@ model ProductProperties { /** * The status of the last operation. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -812,7 +812,7 @@ model SignedCapabilityImageResponse { /** * The signed device capability image as a UTF-8 encoded base 64 string. */ - @visibility("read") + @visibility(Lifecycle.Read) image?: string; } diff --git a/specification/sphere/Sphere.Management/product.tsp b/specification/sphere/Sphere.Management/product.tsp index bc62bde56bc0..19663354240a 100644 --- a/specification/sphere/Sphere.Management/product.tsp +++ b/specification/sphere/Sphere.Management/product.tsp @@ -23,7 +23,7 @@ model Product is ProxyResource { @path @key("productName") @segment("products") - @visibility("read") + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/splitio/SplitIO.Experimentation.Management/main.tsp b/specification/splitio/SplitIO.Experimentation.Management/main.tsp index 70585795e0d0..bb211f8b91aa 100644 --- a/specification/splitio/SplitIO.Experimentation.Management/main.tsp +++ b/specification/splitio/SplitIO.Experimentation.Management/main.tsp @@ -33,7 +33,7 @@ namespace SplitIO.Experimentation { @doc("Properties of the experimentation workspace") model ExperimentationWorkspaceProperties { @doc("Provisioning state of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; @doc("Access policy for an experimentation workspace.") @@ -53,7 +53,7 @@ namespace SplitIO.Experimentation { defaultRole?: DataPlaneRole; @doc("Endpoint used for access to the experimentation workspace.") - @visibility("read") + @visibility(Lifecycle.Read) dataPlaneEndpoint?: url; } @@ -145,7 +145,7 @@ namespace SplitIO.Experimentation { @doc("The exchange token result that contains the bearer token which is used for Split.IO data plane authentication.") model ExchangeTokenResult { @doc("The bearer token that is used for Split.IO data plane authentication.") - @visibility("read") + @visibility(Lifecycle.Read) @secret token: string; } diff --git a/specification/standbypool/StandbyPool.Management/standbyContainerGroupPool.tsp b/specification/standbypool/StandbyPool.Management/standbyContainerGroupPool.tsp index 1974d21be724..d327e40e0000 100644 --- a/specification/standbypool/StandbyPool.Management/standbyContainerGroupPool.tsp +++ b/specification/standbypool/StandbyPool.Management/standbyContainerGroupPool.tsp @@ -26,7 +26,7 @@ model StandbyContainerGroupPoolResource @pattern("^[a-zA-Z0-9-]{3,24}$") @key("standbyContainerGroupPoolName") @segment("standbyContainerGroupPools") - @visibility("read") + @visibility(Lifecycle.Read) @doc("Name of the standby container group pool") @path name: string; @@ -42,7 +42,7 @@ model StandbyContainerGroupPoolResourceProperties { containerGroupProperties: ContainerGroupProperties; @doc("The status of the last operation.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/standbypool/StandbyPool.Management/standbyContainerGroupPoolRuntimeView.tsp b/specification/standbypool/StandbyPool.Management/standbyContainerGroupPoolRuntimeView.tsp index 357a10fb8c71..ab0cbf7d2408 100644 --- a/specification/standbypool/StandbyPool.Management/standbyContainerGroupPoolRuntimeView.tsp +++ b/specification/standbypool/StandbyPool.Management/standbyContainerGroupPoolRuntimeView.tsp @@ -28,7 +28,7 @@ model StandbyContainerGroupPoolRuntimeViewResource @pattern("^[a-zA-Z0-9-]{0,24}$") @key("runtimeView") @segment("runtimeViews") - @visibility("read") + @visibility(Lifecycle.Read) @doc("The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.") @path name: string; @@ -38,12 +38,12 @@ model StandbyContainerGroupPoolRuntimeViewResource @added(Microsoft.StandbyPool.Versions.`2024-03-01-preview`) model StandbyContainerGroupPoolRuntimeViewResourceProperties { @doc("A list containing the counts of container groups in each possible state, as known by the StandbyPool resource provider.") - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", []) instanceCountSummary: ContainerGroupInstanceCountSummary[]; @doc("Displays the provisioning state of the standby pool") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/standbypool/StandbyPool.Management/standbyVM.tsp b/specification/standbypool/StandbyPool.Management/standbyVM.tsp index 00b7728b145b..1f7f86c3452d 100644 --- a/specification/standbypool/StandbyPool.Management/standbyVM.tsp +++ b/specification/standbypool/StandbyPool.Management/standbyVM.tsp @@ -26,7 +26,7 @@ model StandbyVirtualMachineResource @pattern("^[_a-zA-Z0-9-]{3,64}$") @key("standbyVirtualMachineName") @segment("standbyVirtualMachines") - @visibility("read") + @visibility(Lifecycle.Read) @doc("Name of the standby virtual machine") @path name: string; @@ -38,7 +38,7 @@ model StandbyVirtualMachineResourceProperties { virtualMachineResourceId: Azure.Core.armResourceIdentifier<[]>; @doc("The status of the last operation.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/standbypool/StandbyPool.Management/standbyVMPool.tsp b/specification/standbypool/StandbyPool.Management/standbyVMPool.tsp index 1f2199b265a8..8e984cc7dc85 100644 --- a/specification/standbypool/StandbyPool.Management/standbyVMPool.tsp +++ b/specification/standbypool/StandbyPool.Management/standbyVMPool.tsp @@ -25,7 +25,7 @@ model StandbyVirtualMachinePoolResource @pattern("^[a-zA-Z0-9-]{3,24}$") @key("standbyVirtualMachinePoolName") @segment("standbyVirtualMachinePools") - @visibility("read") + @visibility(Lifecycle.Read) @doc("Name of the standby virtual machine pool") @path name: string; @@ -50,7 +50,7 @@ model StandbyVirtualMachinePoolResourceProperties { ]>; @doc("The status of the last operation.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/standbypool/StandbyPool.Management/standbyVirtualMachinePoolRuntimeView.tsp b/specification/standbypool/StandbyPool.Management/standbyVirtualMachinePoolRuntimeView.tsp index d5c26856b206..21b6ba85a07e 100644 --- a/specification/standbypool/StandbyPool.Management/standbyVirtualMachinePoolRuntimeView.tsp +++ b/specification/standbypool/StandbyPool.Management/standbyVirtualMachinePoolRuntimeView.tsp @@ -28,7 +28,7 @@ model StandbyVirtualMachinePoolRuntimeViewResource @pattern("^[a-zA-Z0-9-]{0,24}$") @key("runtimeView") @segment("runtimeViews") - @visibility("read") + @visibility(Lifecycle.Read) @doc("The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.") @path name: string; @@ -38,12 +38,12 @@ model StandbyVirtualMachinePoolRuntimeViewResource @added(Microsoft.StandbyPool.Versions.`2024-03-01-preview`) model StandbyVirtualMachinePoolRuntimeViewResourceProperties { @doc("A list containing the counts of virtual machines in each possible power state for each zone if enabled, as known by the StandbyPool resource provider. If zones are not enabled on the attached VMSS, the list will contain a single entry without zone values. Note: any resources in the Running state may still be installing extensions / not fully provisioned.") - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", []) instanceCountSummary: VirtualMachineInstanceCountSummary[]; @doc("Displays the provisioning state of the standby pool") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/translation/Azure.AI.DocumentTranslation/models.tsp b/specification/translation/Azure.AI.DocumentTranslation/models.tsp index af783529e246..c4391ca93b5b 100644 --- a/specification/translation/Azure.AI.DocumentTranslation/models.tsp +++ b/specification/translation/Azure.AI.DocumentTranslation/models.tsp @@ -274,7 +274,7 @@ model TranslationError { For example it would be \"documents\" or \"document id\" in case of invalid document. """) - @visibility("read") + @visibility(Lifecycle.Read) target?: string; @doc(""" @@ -308,7 +308,7 @@ model InnerTranslationError { For example it would be \"documents\" or \"document id\" in case of invalid document. """) - @visibility("read") + @visibility(Lifecycle.Read) target?: string; @doc(""" diff --git a/specification/trustedsigning/TrustedSigning/main.tsp b/specification/trustedsigning/TrustedSigning/main.tsp index ee0c97e294bc..3cbe7486ed6d 100644 --- a/specification/trustedsigning/TrustedSigning/main.tsp +++ b/specification/trustedsigning/TrustedSigning/main.tsp @@ -114,7 +114,7 @@ union SignatureAlgorithm { @resource("codesigningaccounts") model SigningAccount { @key("accountName") - @visibility("read", "update") + @visibility(Lifecycle.Read, Lifecycle.Update) @doc("Azure Trusted Signing account name.") accountName: string; } @@ -124,7 +124,7 @@ model SigningAccount { @parentResource(SigningAccount) model CertificateProfileName { @key("certificateProfile") - @visibility("read", "update") + @visibility(Lifecycle.Read, Lifecycle.Update) @doc("Azure Trusted Signing certificate profile name under an account.") certificateProfile: string; } @@ -172,7 +172,7 @@ model SigningOptions { @parentResource(CertificateProfileName) model ExtendedKeyUsage { @key("eku") - @visibility("read") + @visibility(Lifecycle.Read) @doc("An oid string that represents an eku.") eku: string; } diff --git a/specification/verifiedid/Microsoft.VerifiedId.Management/main.tsp b/specification/verifiedid/Microsoft.VerifiedId.Management/main.tsp index 95d515689465..1cdf39012669 100644 --- a/specification/verifiedid/Microsoft.VerifiedId.Management/main.tsp +++ b/specification/verifiedid/Microsoft.VerifiedId.Management/main.tsp @@ -63,7 +63,7 @@ union ProvisioningState { @doc("Details of the VerifiedId Authority.") model AuthorityProperties { - @visibility("read") + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/vmware/Microsoft.AVS.Management/addons.tsp b/specification/vmware/Microsoft.AVS.Management/addons.tsp index 5150948d6e59..c0ce269850b2 100644 --- a/specification/vmware/Microsoft.AVS.Management/addons.tsp +++ b/specification/vmware/Microsoft.AVS.Management/addons.tsp @@ -77,7 +77,7 @@ model AddonProperties { addonType: AddonType; @doc("The state of the addon provisioning") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: AddonProvisioningState; } diff --git a/specification/vmware/Microsoft.AVS.Management/authorizations.tsp b/specification/vmware/Microsoft.AVS.Management/authorizations.tsp index 67fd4c163df7..7a27192363ae 100644 --- a/specification/vmware/Microsoft.AVS.Management/authorizations.tsp +++ b/specification/vmware/Microsoft.AVS.Management/authorizations.tsp @@ -59,15 +59,15 @@ model ExpressRouteAuthorization @doc("The properties of an ExpressRoute Circuit Authorization resource") model ExpressRouteAuthorizationProperties { @doc("The state of the ExpressRoute Circuit Authorization provisioning") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ExpressRouteAuthorizationProvisioningState; @doc("The ID of the ExpressRoute Circuit Authorization") - @visibility("read") + @visibility(Lifecycle.Read) expressRouteAuthorizationId?: string; @doc("The key of the ExpressRoute Circuit Authorization") - @visibility("read") + @visibility(Lifecycle.Read) expressRouteAuthorizationKey?: string; @doc("The ID of the ExpressRoute Circuit") diff --git a/specification/vmware/Microsoft.AVS.Management/cloudLinks.tsp b/specification/vmware/Microsoft.AVS.Management/cloudLinks.tsp index 923be71525b7..959f6e46f0b8 100644 --- a/specification/vmware/Microsoft.AVS.Management/cloudLinks.tsp +++ b/specification/vmware/Microsoft.AVS.Management/cloudLinks.tsp @@ -72,11 +72,11 @@ union CloudLinkProvisioningState { @doc("The properties of a cloud link.") model CloudLinkProperties { @doc("The provisioning state of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: CloudLinkProvisioningState; @doc("The state of the cloud link.") - @visibility("read") + @visibility(Lifecycle.Read) status?: CloudLinkStatus; @doc("Identifier of the other private cloud participating in the link.") diff --git a/specification/vmware/Microsoft.AVS.Management/clusters.tsp b/specification/vmware/Microsoft.AVS.Management/clusters.tsp index 78aa34d2429e..75d6fd7ece6f 100644 --- a/specification/vmware/Microsoft.AVS.Management/clusters.tsp +++ b/specification/vmware/Microsoft.AVS.Management/clusters.tsp @@ -87,11 +87,11 @@ model CommonClusterProperties { clusterSize?: int32; @doc("The state of the cluster provisioning") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ClusterProvisioningState; @doc("The identity") - @visibility("read") + @visibility(Lifecycle.Read) clusterId?: int32; @doc("The hosts") @@ -148,10 +148,10 @@ model ClusterZoneList { @doc("Zone and associated hosts info") model ClusterZone { @doc("List of hosts belonging to the availability zone in a cluster") - @visibility("read") + @visibility(Lifecycle.Read) hosts?: string[]; @doc("Availability zone identifier") - @visibility("read") + @visibility(Lifecycle.Read) zone?: string; } diff --git a/specification/vmware/Microsoft.AVS.Management/datastores.tsp b/specification/vmware/Microsoft.AVS.Management/datastores.tsp index 1017f87de4e3..14e8eb50ae36 100644 --- a/specification/vmware/Microsoft.AVS.Management/datastores.tsp +++ b/specification/vmware/Microsoft.AVS.Management/datastores.tsp @@ -104,7 +104,7 @@ model Datastore is ProxyResource { @doc("The properties of a datastore") model DatastoreProperties { @doc("The state of the datastore provisioning") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: DatastoreProvisioningState; @doc("An Azure NetApp Files volume") @@ -117,7 +117,7 @@ model DatastoreProperties { elasticSanVolume?: ElasticSanVolume; @doc("The operational status of the datastore") - @visibility("read") + @visibility(Lifecycle.Read) status?: DatastoreStatus; } @@ -142,7 +142,7 @@ model DiskPoolVolume { mountOption?: MountOptionEnum = MountOptionEnum.MOUNT; @doc("Device path") - @visibility("read") + @visibility(Lifecycle.Read) path?: string; } diff --git a/specification/vmware/Microsoft.AVS.Management/globalReachConnections.tsp b/specification/vmware/Microsoft.AVS.Management/globalReachConnections.tsp index 188fc9d3b3ec..1ce7ca307eda 100644 --- a/specification/vmware/Microsoft.AVS.Management/globalReachConnections.tsp +++ b/specification/vmware/Microsoft.AVS.Management/globalReachConnections.tsp @@ -71,14 +71,14 @@ model GlobalReachConnection is ProxyResource { @doc("The properties of a global reach connection") model GlobalReachConnectionProperties { @doc("The state of the ExpressRoute Circuit Authorization provisioning") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: GlobalReachConnectionProvisioningState; @doc(""" The network used for global reach carved out from the original network block provided for the private cloud """) - @visibility("read") + @visibility(Lifecycle.Read) addressPrefix?: string; @doc(""" @@ -88,7 +88,7 @@ model GlobalReachConnectionProperties { authorizationKey?: string; @doc("The connection status of the global reach connection") - @visibility("read") + @visibility(Lifecycle.Read) circuitConnectionStatus?: GlobalReachConnectionStatus; @doc(""" diff --git a/specification/vmware/Microsoft.AVS.Management/hcxEnterpriseSites.tsp b/specification/vmware/Microsoft.AVS.Management/hcxEnterpriseSites.tsp index 42321ebdff64..66e23451af31 100644 --- a/specification/vmware/Microsoft.AVS.Management/hcxEnterpriseSites.tsp +++ b/specification/vmware/Microsoft.AVS.Management/hcxEnterpriseSites.tsp @@ -64,14 +64,14 @@ union HcxEnterpriseSiteProvisioningState { @doc("The properties of an HCX Enterprise Site") model HcxEnterpriseSiteProperties { @doc("The provisioning state of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: HcxEnterpriseSiteProvisioningState; @doc("The activation key") - @visibility("read") + @visibility(Lifecycle.Read) activationKey?: string; @doc("The status of the HCX Enterprise Site") - @visibility("read") + @visibility(Lifecycle.Read) status?: HcxEnterpriseSiteStatus; } diff --git a/specification/vmware/Microsoft.AVS.Management/iscsiPaths.tsp b/specification/vmware/Microsoft.AVS.Management/iscsiPaths.tsp index be9c0fbd0e4c..fbdb1be53e8d 100644 --- a/specification/vmware/Microsoft.AVS.Management/iscsiPaths.tsp +++ b/specification/vmware/Microsoft.AVS.Management/iscsiPaths.tsp @@ -40,11 +40,11 @@ model IscsiPath is ProxyResource { @doc("The properties of an iSCSI path resource") model IscsiPathProperties { @doc("The state of the iSCSI path provisioning") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: IscsiPathProvisioningState; @doc("CIDR Block for iSCSI path.") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) networkBlock: string; } diff --git a/specification/vmware/Microsoft.AVS.Management/locations.tsp b/specification/vmware/Microsoft.AVS.Management/locations.tsp index e8744184ca72..5bb921b8ea4e 100644 --- a/specification/vmware/Microsoft.AVS.Management/locations.tsp +++ b/specification/vmware/Microsoft.AVS.Management/locations.tsp @@ -55,11 +55,11 @@ union QuotaEnabled { @doc("Subscription trial availability") model Trial { @doc("Trial status") - @visibility("read") + @visibility(Lifecycle.Read) status?: TrialStatus; @doc("Number of trial hosts available") - @visibility("read") + @visibility(Lifecycle.Read) availableHosts?: int32; } @@ -67,11 +67,11 @@ model Trial { model Quota { #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "existing API" @doc("Remaining hosts quota by sku type") - @visibility("read") + @visibility(Lifecycle.Read) hostsRemaining?: Record; @doc("Host quota is active for current subscription") - @visibility("read") + @visibility(Lifecycle.Read) quotaEnabled?: QuotaEnabled; } @@ -100,6 +100,6 @@ union LocationProvisioningState { @doc("The properties of a location resource") model LocationProperties { @doc("The provisioning state of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: LocationProvisioningState; } diff --git a/specification/vmware/Microsoft.AVS.Management/placementPolicies.tsp b/specification/vmware/Microsoft.AVS.Management/placementPolicies.tsp index 12f914973245..b84a30bca590 100644 --- a/specification/vmware/Microsoft.AVS.Management/placementPolicies.tsp +++ b/specification/vmware/Microsoft.AVS.Management/placementPolicies.tsp @@ -149,7 +149,7 @@ model PlacementPolicyProperties { displayName?: string; @doc("The provisioning state") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: PlacementPolicyProvisioningState; } diff --git a/specification/vmware/Microsoft.AVS.Management/privateClouds.tsp b/specification/vmware/Microsoft.AVS.Management/privateClouds.tsp index f35f0801baf4..876df1516410 100644 --- a/specification/vmware/Microsoft.AVS.Management/privateClouds.tsp +++ b/specification/vmware/Microsoft.AVS.Management/privateClouds.tsp @@ -227,7 +227,7 @@ model PrivateCloudUpdateProperties { identitySources?: IdentitySource[]; @doc("Properties describing how the cloud is distributed across availability zones") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) availability?: AvailabilityProperties; @doc("Customer managed key encryption, can be enabled or disabled") @@ -258,7 +258,7 @@ model PrivateCloudProperties { identitySources?: IdentitySource[]; @doc("Properties describing how the cloud is distributed across availability zones") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) availability?: AvailabilityProperties; @doc("Customer managed key encryption, can be enabled or disabled") @@ -273,14 +273,14 @@ model PrivateCloudProperties { extendedNetworkBlocks?: string[]; @doc("The provisioning state") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: PrivateCloudProvisioningState; @doc("An ExpressRoute Circuit") circuit?: Circuit; @doc("The endpoints") - @visibility("read") + @visibility(Lifecycle.Read) endpoints?: Endpoints; @doc(""" @@ -291,15 +291,15 @@ model PrivateCloudProperties { networkBlock: string; @doc("Network used to access vCenter Server and NSX-T Manager") - @visibility("read") + @visibility(Lifecycle.Read) managementNetwork?: string; @doc("Used for virtual machine cold migration, cloning, and snapshot migration") - @visibility("read") + @visibility(Lifecycle.Read) provisioningNetwork?: string; @doc("Used for live migration of virtual machines") - @visibility("read") + @visibility(Lifecycle.Read) vmotionNetwork?: string; @doc("Optionally, set the vCenter admin password when the private cloud is created") @@ -311,15 +311,15 @@ model PrivateCloudProperties { nsxtPassword?: string; @doc("Thumbprint of the vCenter Server SSL certificate") - @visibility("read") + @visibility(Lifecycle.Read) vcenterCertificateThumbprint?: string; @doc("Thumbprint of the NSX-T Manager SSL certificate") - @visibility("read") + @visibility(Lifecycle.Read) nsxtCertificateThumbprint?: string; @doc("Array of cloud link IDs from other clouds that connect to this one") - @visibility("read") + @visibility(Lifecycle.Read) externalCloudLinks?: string[]; @doc(""" @@ -332,11 +332,11 @@ model PrivateCloudProperties { Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024 """) - @visibility("read") + @visibility(Lifecycle.Read) nsxPublicIpQuotaRaised?: NsxPublicIpQuotaRaisedEnum; @doc("Azure resource ID of the virtual network") - @visibility("create", "read") + @visibility(Lifecycle.Create, Lifecycle.Read) virtualNetworkId?: Azure.Core.armResourceIdentifier<[ { type: "\\Microsoft.Network\\vnet"; @@ -350,48 +350,48 @@ model PrivateCloudProperties { @doc("An ExpressRoute Circuit") model Circuit { @doc("CIDR of primary subnet") - @visibility("read") + @visibility(Lifecycle.Read) primarySubnet?: string; @doc("CIDR of secondary subnet") - @visibility("read") + @visibility(Lifecycle.Read) secondarySubnet?: string; #suppress "@azure-tools/typespec-azure-core/casing-style" "Can not change existing name." @doc("Identifier of the ExpressRoute Circuit (Microsoft Colo only)") - @visibility("read") + @visibility(Lifecycle.Read) expressRouteID?: string; #suppress "@azure-tools/typespec-azure-core/casing-style" "Can not change existing name." @doc("ExpressRoute Circuit private peering identifier") - @visibility("read") + @visibility(Lifecycle.Read) expressRoutePrivatePeeringID?: string; } @doc("Endpoint addresses") model Endpoints { @doc("Endpoint FQDN for the NSX-T Data Center manager") - @visibility("read") + @visibility(Lifecycle.Read) nsxtManager?: string; @doc("Endpoint FQDN for Virtual Center Server Appliance") - @visibility("read") + @visibility(Lifecycle.Read) vcsa?: string; @doc("Endpoint FQDN for the HCX Cloud Manager") - @visibility("read") + @visibility(Lifecycle.Read) hcxCloudManager?: string; @doc("Endpoint IP for the NSX-T Data Center manager") - @visibility("read") + @visibility(Lifecycle.Read) nsxtManagerIp?: string; @doc("Endpoint IP for Virtual Center Server Appliance") - @visibility("read") + @visibility(Lifecycle.Read) vcenterIp?: string; @doc("Endpoint IP for the HCX Cloud Manager") - @visibility("read") + @visibility(Lifecycle.Read) hcxCloudManagerIp?: string; } @@ -472,38 +472,38 @@ model EncryptionKeyVaultProperties { keyVersion?: string; @doc("The auto-detected version of the key if versionType is auto-detected.") - @visibility("read") + @visibility(Lifecycle.Read) autoDetectedKeyVersion?: string; @doc("The URL of the vault.") keyVaultUrl?: string; @doc("The state of key provided") - @visibility("read") + @visibility(Lifecycle.Read) keyState?: EncryptionKeyStatus; @doc("Property of the key if user provided or auto detected") - @visibility("read") + @visibility(Lifecycle.Read) versionType?: EncryptionVersionType; } @doc("Administrative credentials for accessing vCenter and NSX-T") model AdminCredentials { @doc("NSX-T Manager username") - @visibility("read") + @visibility(Lifecycle.Read) nsxtUsername?: string; @doc("NSX-T Manager password") - @visibility("read") + @visibility(Lifecycle.Read) @secret nsxtPassword?: string; @doc("vCenter admin username") - @visibility("read") + @visibility(Lifecycle.Read) vcenterUsername?: string; @doc("vCenter admin password") - @visibility("read") + @visibility(Lifecycle.Read) @secret vcenterPassword?: string; } diff --git a/specification/vmware/Microsoft.AVS.Management/scriptCmdlets.tsp b/specification/vmware/Microsoft.AVS.Management/scriptCmdlets.tsp index 1d657e456bda..1055bf2318e1 100644 --- a/specification/vmware/Microsoft.AVS.Management/scriptCmdlets.tsp +++ b/specification/vmware/Microsoft.AVS.Management/scriptCmdlets.tsp @@ -84,24 +84,24 @@ union ScriptCmdletProvisioningState { @doc("Properties of a pre-canned script") model ScriptCmdletProperties { @doc("The provisioning state of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ScriptCmdletProvisioningState; @doc("Description of the scripts functionality") - @visibility("read") + @visibility(Lifecycle.Read) description?: string; @doc("Recommended time limit for execution") - @visibility("read") + @visibility(Lifecycle.Read) timeout?: string; @doc("Specifies whether a script cmdlet is intended to be invoked only through automation or visible to customers") - @visibility("read") + @visibility(Lifecycle.Read) audience?: ScriptCmdletAudience; #suppress "@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers" @doc("Parameters the script will accept") - @visibility("read") + @visibility(Lifecycle.Read) parameters?: ScriptParameter[]; } @@ -122,24 +122,24 @@ model ScriptParameter { The type of parameter the script is expecting. psCredential is a PSCredentialObject """) - @visibility("read") + @visibility(Lifecycle.Read) type?: ScriptParameterTypes; @doc("The parameter name that the script will expect a parameter value for") name?: string; @doc("User friendly description of the parameter") - @visibility("read") + @visibility(Lifecycle.Read) description?: string; @doc(""" Should this parameter be visible to arm and passed in the parameters argument when executing """) - @visibility("read") + @visibility(Lifecycle.Read) visibility?: VisibilityParameterEnum; @doc("Is this parameter required or optional") - @visibility("read") + @visibility(Lifecycle.Read) optional?: OptionalParamEnum; } diff --git a/specification/vmware/Microsoft.AVS.Management/scriptExecutions.tsp b/specification/vmware/Microsoft.AVS.Management/scriptExecutions.tsp index 51a7ba093f3c..9a36513f3783 100644 --- a/specification/vmware/Microsoft.AVS.Management/scriptExecutions.tsp +++ b/specification/vmware/Microsoft.AVS.Management/scriptExecutions.tsp @@ -125,19 +125,19 @@ model ScriptExecutionProperties { retention?: string; @doc("Time the script execution was submitted") - @visibility("read") + @visibility(Lifecycle.Read) submittedAt?: utcDateTime; @doc("Time the script execution was started") - @visibility("read") + @visibility(Lifecycle.Read) startedAt?: utcDateTime; @doc("Time the script execution was finished") - @visibility("read") + @visibility(Lifecycle.Read) finishedAt?: utcDateTime; @doc("The state of the script execution resource") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ScriptExecutionProvisioningState; @doc("Standard output stream from the powershell execution") @@ -150,15 +150,15 @@ model ScriptExecutionProperties { namedOutputs?: Record<{}>; @doc("Standard information out stream from the powershell execution") - @visibility("read") + @visibility(Lifecycle.Read) information?: string[]; @doc("Standard warning out stream from the powershell execution") - @visibility("read") + @visibility(Lifecycle.Read) warnings?: string[]; @doc("Standard error output stream from the powershell execution") - @visibility("read") + @visibility(Lifecycle.Read) errors?: string[]; } diff --git a/specification/vmware/Microsoft.AVS.Management/scriptPackages.tsp b/specification/vmware/Microsoft.AVS.Management/scriptPackages.tsp index 0ab2e3eafc60..646f23d2c788 100644 --- a/specification/vmware/Microsoft.AVS.Management/scriptPackages.tsp +++ b/specification/vmware/Microsoft.AVS.Management/scriptPackages.tsp @@ -39,22 +39,22 @@ union ScriptPackageProvisioningState { @doc("Properties of a Script Package subresource") model ScriptPackageProperties { @doc("The provisioning state of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ScriptPackageProvisioningState; @doc("User friendly description of the package") - @visibility("read") + @visibility(Lifecycle.Read) description?: string; @doc("Module version") - @visibility("read") + @visibility(Lifecycle.Read) version?: string; @doc("Company that created and supports the package") - @visibility("read") + @visibility(Lifecycle.Read) company?: string; @doc("Link to support by the package vendor") - @visibility("read") + @visibility(Lifecycle.Read) uri?: string; } diff --git a/specification/vmware/Microsoft.AVS.Management/virtualMachines.tsp b/specification/vmware/Microsoft.AVS.Management/virtualMachines.tsp index 9e8eebd6a68e..9a259bffe0e7 100644 --- a/specification/vmware/Microsoft.AVS.Management/virtualMachines.tsp +++ b/specification/vmware/Microsoft.AVS.Management/virtualMachines.tsp @@ -64,23 +64,23 @@ union VirtualMachineProvisioningState { @doc("Virtual Machine Properties") model VirtualMachineProperties { @doc("The provisioning state of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: VirtualMachineProvisioningState; @doc("Display name of the VM.") - @visibility("read") + @visibility(Lifecycle.Read) displayName?: string; @doc("Virtual machine managed object reference id") - @visibility("read") + @visibility(Lifecycle.Read) moRefId?: string; @doc("Path to virtual machine's folder starting from datacenter virtual machine folder") - @visibility("read") + @visibility(Lifecycle.Read) folderPath?: string; @doc("Whether VM DRS-driven movement is restricted (enabled) or not (disabled)") - @visibility("read") + @visibility(Lifecycle.Read) restrictMovement?: VirtualMachineRestrictMovementState; } diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dhcpConfigurations.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dhcpConfigurations.tsp index 99abc4f78460..8ebf4bb692c3 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dhcpConfigurations.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dhcpConfigurations.tsp @@ -107,11 +107,11 @@ model WorkloadNetworkDhcpEntity { displayName?: string; @doc("NSX Segments consuming DHCP.") - @visibility("read") + @visibility(Lifecycle.Read) segments?: string[]; @doc("The provisioning state") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: WorkloadNetworkDhcpProvisioningState; @doc("NSX revision number.") diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsServices.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsServices.tsp index 0c7de01a8a5e..cad8de5c2eca 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsServices.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsServices.tsp @@ -151,11 +151,11 @@ model WorkloadNetworkDnsServiceProperties { logLevel?: DnsServiceLogLevelEnum; @doc("DNS Service status.") - @visibility("read") + @visibility(Lifecycle.Read) status?: DnsServiceStatusEnum; @doc("The provisioning state") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: WorkloadNetworkDnsServiceProvisioningState; @doc("NSX revision number.") diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsZones.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsZones.tsp index f2fa3d54df41..3f9ed7b466a1 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsZones.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsZones.tsp @@ -114,7 +114,7 @@ model WorkloadNetworkDnsZoneProperties { dnsServices?: int64; @doc("The provisioning state") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: WorkloadNetworkDnsZoneProvisioningState; @doc("NSX revision number.") diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-gateways.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-gateways.tsp index 2240338721f5..48a630a867b7 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-gateways.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-gateways.tsp @@ -36,13 +36,13 @@ model WorkloadNetworkGateway @doc("Properties of a NSX Gateway.") model WorkloadNetworkGatewayProperties { @doc("The provisioning state of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: WorkloadNetworkProvisioningState; @doc("Display name of the DHCP entity.") displayName?: string; @doc("NSX Gateway Path.") - @visibility("read") + @visibility(Lifecycle.Read) path?: string; } diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-portMirroringProfiles.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-portMirroringProfiles.tsp index 23d7ce77a516..33cf2e508973 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-portMirroringProfiles.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-portMirroringProfiles.tsp @@ -139,11 +139,11 @@ model WorkloadNetworkPortMirroringProperties { destination?: string; @doc("Port Mirroring Status.") - @visibility("read") + @visibility(Lifecycle.Read) status?: PortMirroringStatusEnum; @doc("The provisioning state") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: WorkloadNetworkPortMirroringProvisioningState; @doc("NSX revision number.") diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-publicIPs.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-publicIPs.tsp index 6f0e02bb11a5..352d8a6ff10b 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-publicIPs.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-publicIPs.tsp @@ -99,10 +99,10 @@ model WorkloadNetworkPublicIPProperties { numberOfPublicIPs?: int64; @doc("CIDR Block of the Public IP Block.") - @visibility("read") + @visibility(Lifecycle.Read) publicIPBlock?: string; @doc("The provisioning state") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: WorkloadNetworkPublicIPProvisioningState; } diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-segments.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-segments.tsp index 84f04ac61c04..ef0256c4c16a 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-segments.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-segments.tsp @@ -91,15 +91,15 @@ model WorkloadNetworkSegmentProperties { #suppress "@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers" @doc("Port Vif which segment is associated with.") - @visibility("read") + @visibility(Lifecycle.Read) portVif?: WorkloadNetworkSegmentPortVif[]; @doc("Segment status.") - @visibility("read") + @visibility(Lifecycle.Read) status?: SegmentStatusEnum; @doc("The provisioning state") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: WorkloadNetworkSegmentProvisioningState; @doc("NSX revision number.") diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-virtualMachines.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-virtualMachines.tsp index 4421f6f2a00b..237439b6c8fa 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-virtualMachines.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-virtualMachines.tsp @@ -39,14 +39,14 @@ model WorkloadNetworkVirtualMachine @doc("NSX Virtual Machine Properties") model WorkloadNetworkVirtualMachineProperties { @doc("The provisioning state of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: WorkloadNetworkProvisioningState; @doc("Display name of the VM.") displayName?: string; @doc("Virtual machine type.") - @visibility("read") + @visibility(Lifecycle.Read) vmType?: VMTypeEnum; } diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-vmGroups.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-vmGroups.tsp index d4148b9dd33c..b12abc10f6e2 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-vmGroups.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-vmGroups.tsp @@ -118,11 +118,11 @@ model WorkloadNetworkVMGroupProperties { members?: string[]; @doc("VM Group status.") - @visibility("read") + @visibility(Lifecycle.Read) status?: VMGroupStatusEnum; @doc("The provisioning state") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: WorkloadNetworkVMGroupProvisioningState; @doc("NSX revision number.") diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks.tsp index 509ff20a72d1..f3a326a00f8f 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks.tsp @@ -51,6 +51,6 @@ union WorkloadNetworkProvisioningState { @doc("The properties of a workload network") model WorkloadNetworkProperties { @doc("The provisioning state of the resource.") - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: WorkloadNetworkProvisioningState; } diff --git a/specification/voiceservices/VoiceServices.Provisioning/main.tsp b/specification/voiceservices/VoiceServices.Provisioning/main.tsp index 119620699173..c0a689fcdf57 100644 --- a/specification/voiceservices/VoiceServices.Provisioning/main.tsp +++ b/specification/voiceservices/VoiceServices.Provisioning/main.tsp @@ -63,11 +63,11 @@ union ServiceProvisioningStatus { alias ProvisioningStatus = { @doc("The status of the provisioning action associated with this resource.") - @visibility("read") + @visibility(Lifecycle.Read) serviceProvisioningStatus?: ServiceProvisioningStatus; @doc("Any errors pertaining to the provisioning of this resource.") - @visibility("read") + @visibility(Lifecycle.Read) serviceProvisioningErrors?: Azure.Core.Foundations.Error[]; }; @@ -77,14 +77,14 @@ model NumberIdentifier { @minLength(3) @maxLength(16) @pattern("^\\+[1-9]\\d+$") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) telephoneNumber: string; } @doc("A list identifiers for a Number resource.") model NumberIdentifiers { @doc("Array containing a list of identifiers for Number resources.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) numbers: NumberIdentifier[]; } @@ -95,19 +95,19 @@ model NumberIdentifiers { alias ServiceSyncEnabled = { @doc("Boolean indicating if data is being provisioned through the backend service.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) syncEnabled: boolean; }; alias ServiceEnabled = { @doc("Boolean indicating if the service is enabled on this Account.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) enabled: boolean; }; alias ServiceNumberCount = { @doc("The count of telephone numbers associated with this account that have this backend service enabled.") - @visibility("read") + @visibility(Lifecycle.Read) numberCount?: int64; }; @@ -124,14 +124,14 @@ model TeamsDirectRoutingSubdomainTokens { @minLength(1) @maxLength(100) @pattern("^([A-Za-z0-9=_-]+)$") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) region1Token: string; @doc("DNS TXT value for the second region, as provided by the enterprise admin from their Microsoft 365 Admin Center. Can only contain letters, numbers, underscores and dashes. Can be up to 100 characters in length.") @minLength(1) @maxLength(100) @pattern("^([A-Za-z0-9=_-]+)$") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) region2Token: string; } @@ -152,18 +152,18 @@ union TeamsDirectRoutingSubdomainProvisioningStatus { @doc("Configuration specific to Teams Direct Routing.") model TeamsDirectRoutingAccountConfig { @doc("Enables/disables caller ID screening for the account. Caller ID screening is enabled by default.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) callScreening: boolean; @doc("Enterprise-specific domain name label. Can only contain letters, numbers, underscores and dashes. Can be up to 10 characters in length.") @minLength(1) @maxLength(10) @pattern("^([A-Za-z0-9_-]+)$") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) subdomain: string; @doc("DNS TXT value for the Direct Routing regions, as provided by the customer from their Microsoft 365 Admin Center.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) subdomainTokens: TeamsDirectRoutingSubdomainTokens; } @@ -174,11 +174,11 @@ model TeamsDirectRoutingAccountDetails { ...ServiceNumberCount; @doc("The configuration for Teams Direct Routing on this account.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) configuration?: TeamsDirectRoutingAccountConfig; @doc("The provisioning status of the domains.") - @visibility("read") + @visibility(Lifecycle.Read) subdomainStatus: TeamsDirectRoutingSubdomainProvisioningStatus; } @@ -205,27 +205,27 @@ model AzureOperatorCallProtectionAccountDetails { @doc("Details of the backend services associated with this Account.") model AccountServiceDetails { @doc("The Microsoft Teams Tenant ID of the Account. This can only be updated if no Operator Connect or Teams Phone Mobile numbers are configured in this account.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) teamsTenantId?: string; @doc("Details for the Teams Operator Connect service on this Account.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) teamsOperatorConnect?: TeamsOperatorConnectAccountDetails; @doc("Details for the Teams Direct Routing service on this Account.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) teamsDirectRouting?: TeamsDirectRoutingAccountDetails; @doc("Details for the Teams Phone Mobile service on this Account.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) teamsPhoneMobile?: TeamsPhoneMobileAccountDetails; @doc("Details for the Zoom Phone Cloud Peering service on this Account.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) zoomPhoneCloudPeering?: ZoomPhoneCloudPeeringAccountDetails; @doc("Details for the Azure Operator Call Protection service on this Account.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) azureOperatorCallProtection?: AzureOperatorCallProtectionAccountDetails; } @@ -238,16 +238,16 @@ model AccountResource { @minLength(1) @maxLength(100) @pattern("^([A-Za-z0-9_-]+)$") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) @key("accountName") name: string; @doc("A user defined identifier used for correlating with external systems.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) correlationId?: string; @doc("The details of the account.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) serviceDetails?: AccountServiceDetails; } @@ -259,41 +259,41 @@ model AccountResource { @doc("The Teams capabilities available for numbers with Operator Connect or Teams Phone Mobile services enabled.") model TeamsAvailableCapabilities { @doc("The available capabilities for the numbers specified with Operator Connect or Teams Phone Mobile services enabled.") - @visibility("read") + @visibility(Lifecycle.Read) availableCapabilities: string[]; } @doc("A teams capability plan for a given usage.") model TeamsCapabilityPlan { @doc("The capability plan name.") - @visibility("read") + @visibility(Lifecycle.Read) name: string; @doc("The offer types available.") - @visibility("read") + @visibility(Lifecycle.Read) offerTypes?: string[]; @doc("The telephone number usage.") - @visibility("read") + @visibility(Lifecycle.Read) usage: string; @doc("Mandatory capabilities for telephone numbers.") - @visibility("read") + @visibility(Lifecycle.Read) mandatoryCapabilities?: string[]; @doc("Choosable capabilities for telephone numbers.") - @visibility("read") + @visibility(Lifecycle.Read) choosableCapabilities?: string[]; @doc("Boolean indicating if Toll free is supported.") - @visibility("read") + @visibility(Lifecycle.Read) supportsTollFree: boolean; } @doc("The Teams telephone number upload usages for this account.") model TeamsCapabilityPlans { @doc("A list of telephone number upload usages.") - @visibility("read") + @visibility(Lifecycle.Read) capabilityPlans: TeamsCapabilityPlan[]; } @@ -317,28 +317,28 @@ union ValidationStatus { model Location { @minLength(1) @doc("The ID of the location.") - @visibility("read") + @visibility(Lifecycle.Read) id: string; @minLength(1) @doc("The civic address ID of the location.") - @visibility("read") + @visibility(Lifecycle.Read) civicAddressId: string; @doc("The description of the location.") - @visibility("read") + @visibility(Lifecycle.Read) description?: string; @doc("The additional information of the location.") - @visibility("read") + @visibility(Lifecycle.Read) additionalInfo?: string; @doc("Flag indicating whether the location is default or not.") - @visibility("read") + @visibility(Lifecycle.Read) isDefault?: boolean; @doc("The elin (Emergency Location Identification Number) of the location.") - @visibility("read") + @visibility(Lifecycle.Read) elin?: string; } @@ -349,96 +349,96 @@ model TeamsCivicAddressResource { @minLength(1) @doc("The ID of the civic address.") @key("civicAddressId") - @visibility("read") + @visibility(Lifecycle.Read) id: string; @doc("The country of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) country?: string; @doc("The house number of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) houseNumber?: string; @doc("The house number suffix of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) houseNumberSuffix?: string; @doc("The pre directional of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) preDirectional?: string; @doc("The street name of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) streetName?: string; @doc("The street suffix of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) streetSuffix?: string; @doc("The post directional of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) postDirectional?: string; @doc("The state or province of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) stateOrProvince?: string; @doc("The county or district of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) countyOrDistrict?: string; @doc("The city or town of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) cityOrTown?: string; @doc("The city or town alias of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) cityOrTownAlias?: string; @doc("The postal or zip code of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) postalOrZipCode?: string; @doc("The description of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) description?: string; @doc("The company name of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) companyName?: string; @doc("The company ID of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) companyId?: string; @minLength(1) @doc("The default location ID of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) defaultLocationId: string; @doc("The validation status of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) validationStatus?: ValidationStatus; @doc("The customer tenant ID of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) tenantId?: string; @doc("The partner ID of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) partnerId?: string; @doc("The list of locations associated with the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) locations?: Location[]; @doc("The latitude of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) latitude?: string; @doc("The longitude of the civic address.") - @visibility("read") + @visibility(Lifecycle.Read) longitude?: string; } @@ -460,52 +460,52 @@ union TelephoneNumberAssignmentStatus { alias NumberAssignmentStatus = { @doc("The assignment status of this Number.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) assignmentStatus?: TelephoneNumberAssignmentStatus; }; @doc("Telephone number configuration for Teams Operator Connect and Teams Phone Mobile telephone numbers.") model TeamsCommonNumberConfig { @doc("The usage for this telephone number.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) usage: string; @doc("The choosable capabilities for this telephone number.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) choosableCapabilities: string[]; @doc("The acquired capabilities for this telephone number.") - @visibility("read") + @visibility(Lifecycle.Read) acquiredCapabilities?: string[]; @doc("The available capabilities for this telephone number.") - @visibility("read") + @visibility(Lifecycle.Read) availableCapabilities?: string[]; @doc("The additional usages for this telephone number.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) additionalUsages?: string[]; @doc("The ID of the civic address to be used as the emergency address for this telephone number.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) civicAddressId?: string; @doc("The ID of the location to be used as the emergency address for this telephone number.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) locationId?: string; @doc("If the enterprise is allowed to update the address for this telephone number.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) allowTenantAddressUpdate?: boolean = false; @doc("The country code to be displayed with this telephone number") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) displayedCountryCode?: string; } alias NumberServiceEnabled = { @doc("Boolean indicating if the service is enabled on this Number.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) enabled: boolean; }; @@ -520,7 +520,7 @@ model TeamsOperatorConnectNumberDetails { ...NumberAssignmentStatus; @doc("The configuration for Teams Operator Connect on this number.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) configuration?: TeamsOperatorConnectNumberConfig; } @@ -540,7 +540,7 @@ model TeamsPhoneMobileNumberDetails { ...NumberAssignmentStatus; @doc("The configuration for Teams Phone Mobile on this number.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) configuration?: TeamsPhoneMobileNumberConfig; } @@ -557,23 +557,23 @@ model AzureOperatorCallProtectionNumberDetails { @doc("Configuration of backend services for a telephone number.") model NumberServiceDetails { @doc("Details for the Teams Operator Connect service on this Number.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) teamsOperatorConnect?: TeamsOperatorConnectNumberDetails; @doc("Details for the Teams Direct Routing service on this Number.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) teamsDirectRouting?: TeamsDirectRoutingNumberDetails; @doc("Details for the Teams Phone Mobile service on this Number.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) teamsPhoneMobile?: TeamsPhoneMobileNumberDetails; @doc("Details for the Zoom Phone Cloud Peering service on this Number.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) zoomPhoneCloudPeering?: ZoomPhoneCloudPeeringNumberDetails; @doc("Details for the Azure Operator Call Protection service on this Number.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) azureOperatorCallProtection?: AzureOperatorCallProtectionNumberDetails; } @@ -583,7 +583,7 @@ model NumberConfiguration { @minLength(1) @maxLength(100) @pattern("^([A-Za-z0-9_-])+$") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) customSipHeader?: string; } @@ -597,7 +597,7 @@ model NumberResource { @minLength(1) @maxLength(16) @pattern("^\\+[1-9]\\d+$") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) @key("telephoneNumber") telephoneNumber: string; @@ -605,15 +605,15 @@ model NumberResource { @minLength(1) @maxLength(100) @pattern("^([A-Za-z0-9_-]+)$") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) accountName: string; @doc("Configuration of the individual backend services for this number.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) serviceDetails: NumberServiceDetails; @doc("Configuration for this number.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) configuration?: NumberConfiguration; } @@ -621,7 +621,7 @@ model NumberResource { model BatchNumbers { @doc("The list of numbers to upload. At most 100 can be uploaded in one request.") @maxItems(100) - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) numbers: NumberResource[]; } @@ -629,7 +629,7 @@ model BatchNumbers { model BatchNumbersDelete { @doc("The list of number to delete. At most 100 can be deleted in one request.") @maxItems(100) - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) numbers: NumberIdentifier[]; } @@ -658,39 +658,39 @@ union TeamsConsentStatus { model ContactDetails { @doc("The full name of the contact detail.") @minLength(1) - @visibility("read") + @visibility(Lifecycle.Read) fullName: string; @doc("The email of the contact detail.") @minLength(1) - @visibility("read") + @visibility(Lifecycle.Read) email: string; @doc("The telephone number of the contact detail.") - @visibility("read") + @visibility(Lifecycle.Read) telephoneNumber?: string; @doc("The company name of the contact detail.") - @visibility("read") + @visibility(Lifecycle.Read) companyName?: string; @doc("The company size of the contact detail.") - @visibility("read") + @visibility(Lifecycle.Read) companySize?: string; } @doc("Details of a customer relationship.") model CustomerRelationship { @doc("The status of the customer relationship.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) status?: string; @doc("The time (ISO8601 format) when the customer relationship is last modified.") - @visibility("read") + @visibility(Lifecycle.Read) lastModifiedOn?: utcDateTime; @doc("The comment of the customer relationship.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) comment?: string; } @@ -700,7 +700,7 @@ model RequestForInformationResource { ...ProvisioningStatus; @doc("The ID of the Request for Information.") - @visibility("read") + @visibility(Lifecycle.Read) id?: string; @doc("The Teams tenant ID which generated this Request for Information.") @@ -708,43 +708,43 @@ model RequestForInformationResource { @maxLength(36) @pattern("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") @key("tenantId") - @visibility("read") + @visibility(Lifecycle.Read) tenantId: string; @doc("The name of the account associated with this Request for Information.") - @visibility("read") + @visibility(Lifecycle.Read) accountName?: string; @doc("Will always be 'teams'.") - @visibility("read") + @visibility(Lifecycle.Read) productContext?: string; @doc("The operator ID of the operator consent.") - @visibility("read") + @visibility(Lifecycle.Read) operatorId?: string; @doc("The status of the operator consent.") - @visibility("read") + @visibility(Lifecycle.Read) status?: TeamsConsentStatus; @doc("The time (ISO8601 format) when the operator consent is created.") - @visibility("read") + @visibility(Lifecycle.Read) consentedOn?: utcDateTime; @doc("The time (ISO8601 format) when the operator consent is last modified.") - @visibility("read") + @visibility(Lifecycle.Read) lastModifiedOn?: utcDateTime; @doc("The list of consented countries.") - @visibility("read") + @visibility(Lifecycle.Read) consentedCountries?: string[]; @doc("The list of tenant contacts.") - @visibility("read") + @visibility(Lifecycle.Read) contacts?: ContactDetails[]; @doc("The customer relationship of the operator consent.") - @visibility("read", "update", "create") + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) customerRelationship?: CustomerRelationship; } diff --git a/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPDiscoverySite.tsp b/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPDiscoverySite.tsp index a3b3b3193aaf..ce7ffaf260c5 100644 --- a/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPDiscoverySite.tsp +++ b/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPDiscoverySite.tsp @@ -16,7 +16,7 @@ model SAPDiscoverySite is TrackedResource { @path @key("sapDiscoverySiteName") @segment("sapDiscoverySites") - @visibility("read") + @visibility(Lifecycle.Read) name: string; /** diff --git a/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPInstance.tsp b/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPInstance.tsp index 5b884636749a..7b62560146d8 100644 --- a/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPInstance.tsp +++ b/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPInstance.tsp @@ -17,7 +17,7 @@ model SAPInstance is TrackedResource { @path @key("sapInstanceName") @segment("sapInstances") - @visibility("read") + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/workloads/Workloads.SAPDiscoverySite.Management/ServerInstance.tsp b/specification/workloads/Workloads.SAPDiscoverySite.Management/ServerInstance.tsp index 3a35ece80995..0a632f1a32de 100644 --- a/specification/workloads/Workloads.SAPDiscoverySite.Management/ServerInstance.tsp +++ b/specification/workloads/Workloads.SAPDiscoverySite.Management/ServerInstance.tsp @@ -15,7 +15,7 @@ model ServerInstance is ProxyResource { @path @key("serverInstanceName") @segment("serverInstances") - @visibility("read") + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/workloads/Workloads.SAPDiscoverySite.Management/models.tsp b/specification/workloads/Workloads.SAPDiscoverySite.Management/models.tsp index 06baba790789..9952cc68591b 100644 --- a/specification/workloads/Workloads.SAPDiscoverySite.Management/models.tsp +++ b/specification/workloads/Workloads.SAPDiscoverySite.Management/models.tsp @@ -183,13 +183,13 @@ model SAPDiscoverySiteProperties { /** * Defines the provisioning states. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * Indicates any errors on the SAP Migration discovery site resource. */ - @visibility("read") + @visibility(Lifecycle.Read) errors?: SAPMigrateError; } @@ -213,25 +213,25 @@ model ErrorDefinition { /** * Service specific error code which serves as the substatus for the HTTP error code. */ - @visibility("read") + @visibility(Lifecycle.Read) code?: string; /** * Description of the error. */ - @visibility("read") + @visibility(Lifecycle.Read) message?: string; /** * Description of the recommendation. */ - @visibility("read") + @visibility(Lifecycle.Read) recommendation?: string; /** * Internal error details. */ - @visibility("read") + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", []) details?: ErrorDefinition[]; } @@ -259,37 +259,37 @@ model SAPInstanceProperties { /** * This is the SID of SAP System. Keeping this not equal to ID as different landscapes can have repeated System SID IDs. */ - @visibility("read") + @visibility(Lifecycle.Read) systemSid?: string; /** * The Environment; PRD, QA, DEV, etc to which SAP system belongs to. Select from the list of available dropdown values. */ - @visibility("read") + @visibility(Lifecycle.Read) environment?: SapInstanceEnvironment; /** * This is the SID of the production system in a landscape. An SAP system could itself be a production SID or a part of a landscape with a different Production SID. This field can be used to relate non-prod SIDs, other components, SID (WEBDISP) to the prod SID. Enter the value of Production SID. */ - @visibility("read") + @visibility(Lifecycle.Read) landscapeSid?: string; /** * Enter a business function/department identifier to group multiple SIDs. */ - @visibility("read") + @visibility(Lifecycle.Read) application?: string; /** * Defines the provisioning states. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * Defines the errors related to SAP Instance resource. */ - @visibility("read") + @visibility(Lifecycle.Read) errors?: SAPMigrateError; } @@ -300,61 +300,61 @@ model ServerInstanceProperties { /** * This is the Virtual Machine Name of the SAP system. Add all the virtual machines attached to an SAP system which you wish to migrate to Azure. Keeping this not equal to ID as for single tier all InstanceTypes would be on same server, leading to multiple resources with same servername. */ - @visibility("read") + @visibility(Lifecycle.Read) serverName?: string; /** * Defines the type SAP instance on this server instance. */ - @visibility("read") + @visibility(Lifecycle.Read) sapInstanceType?: SapInstanceType; /** * This is the Instance SID for ASCS/AP/DB instance. An SAP system with HANA database for example could have a different SID for database Instance than that of ASCS instance. */ - @visibility("read") + @visibility(Lifecycle.Read) instanceSid?: string; /** * This is the SAP Application Component; e.g. SAP S/4HANA 2022, SAP ERP ENHANCE PACKAGE. */ - @visibility("read") + @visibility(Lifecycle.Read) sapProduct?: string; /** * Provide the product version of the SAP product. */ - @visibility("read") + @visibility(Lifecycle.Read) sapProductVersion?: string; /** * This is Operating System on which the host server is running. */ - @visibility("read") + @visibility(Lifecycle.Read) operatingSystem?: OperatingSystem; /** * Configuration data for this server instance. */ - @visibility("read") + @visibility(Lifecycle.Read) configurationData?: ConfigurationData; /** * Configuration data for this server instance. */ - @visibility("read") + @visibility(Lifecycle.Read) performanceData?: PerformanceData; /** * Defines the provisioning states. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * Defines the errors related to SAP Instance resource. */ - @visibility("read") + @visibility(Lifecycle.Read) errors?: SAPMigrateError; } @@ -375,69 +375,69 @@ model ConfigurationData { /** * Provide the SAPS for each server of the SAP system. This should be a non-zero value. For example, 1000. */ - @visibility("read") + @visibility(Lifecycle.Read) saps?: int32; /** * Provide the CPU value of the server. For example, 16, 32 etc. */ - @visibility("read") + @visibility(Lifecycle.Read) cpu?: int32; /** * Provide the CPU architecture type of the server. For example, Xeon Platinum 8171M, Xeon E5-2673 v3. */ - @visibility("read") + @visibility(Lifecycle.Read) cpuType?: string; /** * Provide the CPU clock speed of the server in MHz. This should be a non-zero value. For example, 2100. */ - @visibility("read") + @visibility(Lifecycle.Read) cpuInMhz?: int32; /** * Provide the RAM of the server. This should be a non-zero value. For example, 256. */ - @visibility("read") + @visibility(Lifecycle.Read) ram?: int32; /** * Provide the HW manufacturer company of the server. For example, Microsoft Corporation. */ - @visibility("read") + @visibility(Lifecycle.Read) hardwareManufacturer?: string; /** * Specify if the Hardware is a physical server or virtual machine. */ - @visibility("read") + @visibility(Lifecycle.Read) `model`?: string; /** * Provide the total disk volume capacity in GB. Add the disk volume for each individual disks and provide the total sum in this field. */ #suppress "@azure-tools/typespec-azure-core/casing-style" "GB is short for Gigabytes." - @visibility("read") + @visibility(Lifecycle.Read) totalDiskSizeGB?: int32; /** * Provide the total disk IOPS capacity. Add the disk volume for each individual disk and provide the sum total in this field. */ - @visibility("read") + @visibility(Lifecycle.Read) totalDiskIops?: int32; /** * The database of this is a server instance. Applicable only if SAP instance type for this server instance is 'DB'. */ - @visibility("read") + @visibility(Lifecycle.Read) databaseType?: DatabaseType; /** * Provide the target HANA database size you need. Applicable only if SAP instance type for this server instance is 'DB' and you are migrating an AnyDb database to SAP S/4HANA. */ #suppress "@azure-tools/typespec-azure-core/casing-style" "GB is short for Gigabytes." - @visibility("read") + @visibility(Lifecycle.Read) targetHanaRamSizeGB?: int32; } @@ -457,14 +457,14 @@ model ExcelPerformanceData extends PerformanceData { /** * Provide the max CPU percentage load on the server. Omit the percentage symbol while filling this value. */ - @visibility("read") + @visibility(Lifecycle.Read) maxCpuLoad?: int32; /** * Provide the source Database size in GB. Applicable only if SAP instance type for this server instance is 'DB'. */ #suppress "@azure-tools/typespec-azure-core/casing-style" "GB is short for Gigabytes." - @visibility("read") + @visibility(Lifecycle.Read) totalSourceDbSizeGB?: int32; /** diff --git a/specification/workloads/Workloads.SAPMonitor.Management/Alert.tsp b/specification/workloads/Workloads.SAPMonitor.Management/Alert.tsp index e741adc737b8..06421b9b23bf 100644 --- a/specification/workloads/Workloads.SAPMonitor.Management/Alert.tsp +++ b/specification/workloads/Workloads.SAPMonitor.Management/Alert.tsp @@ -18,7 +18,7 @@ model Alert is ProxyResource { @path @key("alertName") @segment("alerts") - @visibility("read") + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/workloads/Workloads.SAPMonitor.Management/AlertTemplate.tsp b/specification/workloads/Workloads.SAPMonitor.Management/AlertTemplate.tsp index 4b95fc9c3a7e..72b464591e70 100644 --- a/specification/workloads/Workloads.SAPMonitor.Management/AlertTemplate.tsp +++ b/specification/workloads/Workloads.SAPMonitor.Management/AlertTemplate.tsp @@ -16,7 +16,7 @@ model AlertTemplate is ProxyResource { @path @key("alertTemplateName") @segment("alertTemplates") - @visibility("read") + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/workloads/Workloads.SAPMonitor.Management/Monitor.tsp b/specification/workloads/Workloads.SAPMonitor.Management/Monitor.tsp index 542752e4af90..0944c5fa0645 100644 --- a/specification/workloads/Workloads.SAPMonitor.Management/Monitor.tsp +++ b/specification/workloads/Workloads.SAPMonitor.Management/Monitor.tsp @@ -15,7 +15,7 @@ model Monitor is TrackedResource { @path @key("monitorName") @segment("monitors") - @visibility("read") + @visibility(Lifecycle.Read) name: string; ...ManagedServiceIdentityProperty; diff --git a/specification/workloads/Workloads.SAPMonitor.Management/ProviderInstance.tsp b/specification/workloads/Workloads.SAPMonitor.Management/ProviderInstance.tsp index 32a0311f4e62..43c13342e7c4 100644 --- a/specification/workloads/Workloads.SAPMonitor.Management/ProviderInstance.tsp +++ b/specification/workloads/Workloads.SAPMonitor.Management/ProviderInstance.tsp @@ -15,7 +15,7 @@ model ProviderInstance is ProxyResource { @path @key("providerInstanceName") @segment("providerInstances") - @visibility("read") + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/workloads/Workloads.SAPMonitor.Management/SapLandscapeMonitor.tsp b/specification/workloads/Workloads.SAPMonitor.Management/SapLandscapeMonitor.tsp index b0b964619191..ae475633efc0 100644 --- a/specification/workloads/Workloads.SAPMonitor.Management/SapLandscapeMonitor.tsp +++ b/specification/workloads/Workloads.SAPMonitor.Management/SapLandscapeMonitor.tsp @@ -25,7 +25,7 @@ model SapLandscapeMonitorResource @key @path @segment("sapLandscapeMonitor") - @visibility("read") + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/workloads/Workloads.SAPMonitor.Management/models.tsp b/specification/workloads/Workloads.SAPMonitor.Management/models.tsp index d0fef8375516..8e737f4ceffc 100644 --- a/specification/workloads/Workloads.SAPMonitor.Management/models.tsp +++ b/specification/workloads/Workloads.SAPMonitor.Management/models.tsp @@ -242,13 +242,13 @@ model MonitorProperties { /** * State of provisioning of the SAP monitor. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: WorkloadMonitorProvisioningState; /** * Defines the SAP monitor errors. */ - @visibility("read") + @visibility(Lifecycle.Read) errors?: ErrorDetail; /** @@ -289,13 +289,13 @@ model MonitorProperties { /** * The ARM ID of the MSI used for SAP monitoring. */ - @visibility("read") + @visibility(Lifecycle.Read) msiArmId?: string; /** * The ARM ID of the Storage account used for SAP monitoring. */ - @visibility("read") + @visibility(Lifecycle.Read) storageAccountArmId?: string; } @@ -340,19 +340,19 @@ model ProviderInstanceProperties { /** * State of provisioning of the provider instance */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: WorkloadMonitorProvisioningState; /** * Resource health details */ - @visibility("read") + @visibility(Lifecycle.Read) health?: Health; /** * Defines the provider instance errors. */ - @visibility("read") + @visibility(Lifecycle.Read) errors?: ErrorDetail; /** @@ -368,13 +368,13 @@ model Health { /** * Health state of the resource */ - @visibility("read") + @visibility(Lifecycle.Read) healthState?: WorkloadProviderInstanceHealthState; /** * Reasons impacting health state */ - @visibility("read") + @visibility(Lifecycle.Read) impactingReasons?: string; } @@ -387,7 +387,7 @@ model ProviderSpecificProperties { * The provider type. For example, the value can be SapHana. */ #suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing" - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) providerType: string; } @@ -398,7 +398,7 @@ model SapLandscapeMonitorProperties { /** * State of provisioning of the SAP monitor. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: SapLandscapeMonitorProvisioningState; /** @@ -851,13 +851,13 @@ model AlertProperties { /** * Defines the alert instance errors. */ - @visibility("read") + @visibility(Lifecycle.Read) errors?: ErrorDetail; /** * ID of the alert rule resource created. */ - @visibility("read") + @visibility(Lifecycle.Read) alertRuleResourceId?: armResourceIdentifier; /** @@ -883,7 +883,7 @@ model AlertProperties { /** * State of provisioning of the alert instance */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: WorkloadMonitorProvisioningState; } @@ -985,13 +985,13 @@ model AlertTemplateProperties { /** * Defines the SAP monitor Alert Template errors. */ - @visibility("read") + @visibility(Lifecycle.Read) errors?: ErrorDetail; /** * State of provisioning of the Alert Template. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: WorkloadMonitorProvisioningState; /** diff --git a/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPVirtualInstanceMetadata.tsp b/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPVirtualInstanceMetadata.tsp index 001341e013ef..9244c10f1e69 100644 --- a/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPVirtualInstanceMetadata.tsp +++ b/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPVirtualInstanceMetadata.tsp @@ -16,7 +16,7 @@ model SAPVirtualInstanceMetadata { * The default variable. */ @path - @visibility("read") + @visibility(Lifecycle.Read) @segment("sapVirtualInstanceMetadata") @key default: "string"; diff --git a/specification/workloads/Workloads.SAPVirtualInstance.Management/models.tsp b/specification/workloads/Workloads.SAPVirtualInstance.Management/models.tsp index d4a3d21f0de1..7b4daabacdd6 100644 --- a/specification/workloads/Workloads.SAPVirtualInstance.Management/models.tsp +++ b/specification/workloads/Workloads.SAPVirtualInstance.Management/models.tsp @@ -859,13 +859,13 @@ model SAPVirtualInstanceProperties { /** * Defines the environment type - Production/Non Production. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) environment: SAPEnvironmentType; /** * Defines the SAP Product type. */ - @visibility("read", "create") + @visibility(Lifecycle.Read, Lifecycle.Create) sapProduct: SAPProductType; /** @@ -886,31 +886,31 @@ model SAPVirtualInstanceProperties { /** * Defines the SAP Instance status. */ - @visibility("read") + @visibility(Lifecycle.Read) status?: SAPVirtualInstanceStatus; /** * Defines the health of SAP Instances. */ - @visibility("read") + @visibility(Lifecycle.Read) health?: SAPHealthState; /** * Defines the Virtual Instance for SAP state. */ - @visibility("read") + @visibility(Lifecycle.Read) state?: SAPVirtualInstanceState; /** * Defines the provisioning states. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: SapVirtualInstanceProvisioningState; /** * Indicates any errors on the Virtual Instance for SAP solutions resource. */ - @visibility("read") + @visibility(Lifecycle.Read) errors?: SAPVirtualInstanceError; } @@ -955,19 +955,19 @@ model ErrorDefinition { /** * Service specific error code which serves as the substatus for the HTTP error code. */ - @visibility("read") + @visibility(Lifecycle.Read) code?: string; /** * Description of the error. */ - @visibility("read") + @visibility(Lifecycle.Read) message?: string; /** * Internal error details. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) details?: ErrorDefinition[]; } @@ -979,25 +979,25 @@ model Resource { /** * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; /** * The name of the resource */ - @visibility("read") + @visibility(Lifecycle.Read) name?: string; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ - @visibility("read") + @visibility(Lifecycle.Read) type?: string; /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @visibility("read") + @visibility(Lifecycle.Read) systemData?: SystemData; } @@ -1042,13 +1042,13 @@ model SAPCentralServerProperties { /** * The central services instance number. */ - @visibility("read") + @visibility(Lifecycle.Read) instanceNo?: string; /** * The central services instance subnet. */ - @visibility("read") + @visibility(Lifecycle.Read) subnet?: string; /** @@ -1074,50 +1074,50 @@ model SAPCentralServerProperties { /** * The central services instance Kernel Version. */ - @visibility("read") + @visibility(Lifecycle.Read) kernelVersion?: string; /** * The central services instance Kernel Patch level. */ - @visibility("read") + @visibility(Lifecycle.Read) kernelPatch?: string; /** * The Load Balancer details such as LoadBalancer ID attached to ASCS Virtual Machines */ - @visibility("read") + @visibility(Lifecycle.Read) loadBalancerDetails?: LoadBalancerDetails; /** * The list of virtual machines corresponding to the Central Services instance. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) vmDetails?: CentralServerVmDetails[]; /** * Defines the SAP Instance status. */ - @visibility("read") + @visibility(Lifecycle.Read) status?: SAPVirtualInstanceStatus; /** * Defines the health of SAP Instances. */ - @visibility("read") + @visibility(Lifecycle.Read) health?: SAPHealthState; /** * Defines the provisioning states. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: SapVirtualInstanceProvisioningState; /** * Defines the errors related to SAP Central Services Instance resource. */ - @visibility("read") + @visibility(Lifecycle.Read) errors?: SAPVirtualInstanceError; } @@ -1128,43 +1128,43 @@ model MessageServerProperties { /** * message server port. */ - @visibility("read") + @visibility(Lifecycle.Read) msPort?: int64; /** * message server internal MS port. */ - @visibility("read") + @visibility(Lifecycle.Read) internalMsPort?: int64; /** * message server HTTP Port. */ - @visibility("read") + @visibility(Lifecycle.Read) httpPort?: int64; /** * message server HTTPS Port. */ - @visibility("read") + @visibility(Lifecycle.Read) httpsPort?: int64; /** * message server SAP Hostname. */ - @visibility("read") + @visibility(Lifecycle.Read) hostname?: string; /** * message server IP Address. */ - @visibility("read") + @visibility(Lifecycle.Read) ipAddress?: string; /** * Defines the health of SAP Instances. */ - @visibility("read") + @visibility(Lifecycle.Read) health?: SAPHealthState; } @@ -1175,25 +1175,25 @@ model EnqueueServerProperties { /** * Enqueue Server SAP Hostname. */ - @visibility("read") + @visibility(Lifecycle.Read) hostname?: string; /** * Enqueue Server SAP IP Address. */ - @visibility("read") + @visibility(Lifecycle.Read) ipAddress?: string; /** * Enqueue Server Port. */ - @visibility("read") + @visibility(Lifecycle.Read) port?: int64; /** * Defines the health of SAP Instances. */ - @visibility("read") + @visibility(Lifecycle.Read) health?: SAPHealthState; } @@ -1204,13 +1204,13 @@ model GatewayServerProperties { /** * Gateway Port. */ - @visibility("read") + @visibility(Lifecycle.Read) port?: int64; /** * Defines the health of SAP Instances. */ - @visibility("read") + @visibility(Lifecycle.Read) health?: SAPHealthState; } @@ -1221,43 +1221,43 @@ model EnqueueReplicationServerProperties { /** * Defines the type of Enqueue Replication Server. */ - @visibility("read") + @visibility(Lifecycle.Read) ersVersion?: EnqueueReplicationServerType; /** * ERS Instance Number. */ - @visibility("read") + @visibility(Lifecycle.Read) instanceNo?: string; /** * ERS SAP Hostname. */ - @visibility("read") + @visibility(Lifecycle.Read) hostname?: string; /** * ERS SAP Kernel Version. */ - @visibility("read") + @visibility(Lifecycle.Read) kernelVersion?: string; /** * ERS SAP Kernel Patch level. */ - @visibility("read") + @visibility(Lifecycle.Read) kernelPatch?: string; /** * ERS SAP IP Address. */ - @visibility("read") + @visibility(Lifecycle.Read) ipAddress?: string; /** * Defines the health of SAP Instances. */ - @visibility("read") + @visibility(Lifecycle.Read) health?: SAPHealthState; } @@ -1268,7 +1268,7 @@ model LoadBalancerDetails { /** * Fully qualified resource ID for the load balancer. */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; } @@ -1279,19 +1279,19 @@ model CentralServerVmDetails { /** * Defines the type of central server VM. */ - @visibility("read") + @visibility(Lifecycle.Read) type?: CentralServerVirtualMachineType; /** * The virtual machine id. */ - @visibility("read") + @visibility(Lifecycle.Read) virtualMachineId?: string; /** * Storage details of all the Storage Accounts attached to the ASCS Virtual Machine. For e.g. NFS on AFS Shared Storage. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) storageDetails?: StorageInformation[]; } @@ -1303,7 +1303,7 @@ model StorageInformation { /** * Fully qualified resource ID for the storage account. */ - @visibility("read") + @visibility(Lifecycle.Read) id?: string; } @@ -1327,56 +1327,56 @@ model SAPDatabaseProperties { /** * Database subnet. */ - @visibility("read") + @visibility(Lifecycle.Read) subnet?: string; /** * Database SID name. */ - @visibility("read") + @visibility(Lifecycle.Read) databaseSid?: string; /** * Database type, that is if the DB is HANA, DB2, Oracle, SAP ASE, Max DB or MS SQL Server. */ - @visibility("read") + @visibility(Lifecycle.Read) databaseType?: string; /** * Database IP Address. */ - @visibility("read") + @visibility(Lifecycle.Read) ipAddress?: string; /** * The Load Balancer details such as LoadBalancer ID attached to Database Virtual Machines */ - @visibility("read") + @visibility(Lifecycle.Read) loadBalancerDetails?: LoadBalancerDetails; /** * The list of virtual machines corresponding to the Database resource. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) vmDetails?: DatabaseVmDetails[]; /** * Defines the SAP Instance status. */ - @visibility("read") + @visibility(Lifecycle.Read) status?: SAPVirtualInstanceStatus; /** * Defines the provisioning states. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: SapVirtualInstanceProvisioningState; /** * Defines the errors related to Database resource. */ - @visibility("read") + @visibility(Lifecycle.Read) errors?: SAPVirtualInstanceError; } @@ -1387,19 +1387,19 @@ model DatabaseVmDetails { /** * The virtual machine id. */ - @visibility("read") + @visibility(Lifecycle.Read) virtualMachineId?: string; /** * Defines the SAP Instance status. */ - @visibility("read") + @visibility(Lifecycle.Read) status?: SAPVirtualInstanceStatus; /** * Storage details of all the Storage Accounts attached to the Database Virtual Machine. For e.g. NFS on AFS Shared Storage. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) storageDetails?: StorageInformation[]; } @@ -1424,98 +1424,98 @@ model SAPApplicationServerProperties { /** * Application server Instance Number. */ - @visibility("read") + @visibility(Lifecycle.Read) instanceNo?: string; /** * Application server Subnet. */ - @visibility("read") + @visibility(Lifecycle.Read) subnet?: string; /** * Application server instance SAP hostname. */ - @visibility("read") + @visibility(Lifecycle.Read) hostname?: string; /** * Application server instance SAP Kernel Version. */ - @visibility("read") + @visibility(Lifecycle.Read) kernelVersion?: string; /** * Application server instance SAP Kernel Patch level. */ - @visibility("read") + @visibility(Lifecycle.Read) kernelPatch?: string; /** * Application server instance SAP IP Address. */ - @visibility("read") + @visibility(Lifecycle.Read) ipAddress?: string; /** * Application server instance gateway Port. */ - @visibility("read") + @visibility(Lifecycle.Read) gatewayPort?: int64; /** * Application server instance ICM HTTP Port. */ - @visibility("read") + @visibility(Lifecycle.Read) icmHttpPort?: int64; /** * Application server instance ICM HTTPS Port. */ - @visibility("read") + @visibility(Lifecycle.Read) icmHttpsPort?: int64; /** * Application server instance dispatcher status. */ - @visibility("read") + @visibility(Lifecycle.Read) dispatcherStatus?: string; /** * The Load Balancer details such as LoadBalancer ID attached to Application Server Virtual Machines */ - @visibility("read") + @visibility(Lifecycle.Read) loadBalancerDetails?: LoadBalancerDetails; /** * The list of virtual machines. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) vmDetails?: ApplicationServerVmDetails[]; /** * Defines the SAP Instance status. */ - @visibility("read") + @visibility(Lifecycle.Read) status?: SAPVirtualInstanceStatus; /** * Defines the health of SAP Instances. */ - @visibility("read") + @visibility(Lifecycle.Read) health?: SAPHealthState; /** * Defines the provisioning states. */ - @visibility("read") + @visibility(Lifecycle.Read) provisioningState?: SapVirtualInstanceProvisioningState; /** * Defines the Application Instance errors. */ - @visibility("read") + @visibility(Lifecycle.Read) errors?: SAPVirtualInstanceError; } @@ -1526,19 +1526,19 @@ model ApplicationServerVmDetails { /** * Defines the type of application server VM. */ - @visibility("read") + @visibility(Lifecycle.Read) type?: ApplicationServerVirtualMachineType; /** * The virtual machine id. */ - @visibility("read") + @visibility(Lifecycle.Read) virtualMachineId?: string; /** * Storage details of all the Storage Accounts attached to the App Virtual Machine. For e.g. NFS on AFS Shared Storage. */ - @visibility("read") + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) storageDetails?: StorageInformation[]; } @@ -2403,7 +2403,7 @@ model DiscoveryConfiguration extends SAPConfiguration { /** * The geo-location where the SAP system exists. */ - @visibility("read") + @visibility(Lifecycle.Read) appLocation?: string; /** From d2104eb7d08bb41d0d53990e94598d7e1b5d5f22 Mon Sep 17 00:00:00 2001 From: Will Temple Date: Tue, 25 Feb 2025 13:44:54 -0500 Subject: [PATCH 02/17] Format specs --- .../AgriculturePlatform.Management/main.tsp | 52 +- .../ai/DocumentIntelligence/models.tsp | 28 +- specification/ai/Face/models.common.tsp | 2 +- specification/ai/Face/models.facelist.tsp | 4 +- .../ai/Face/models.persondirectory.tsp | 8 +- specification/ai/Face/models.persongroup.tsp | 6 +- specification/ai/Face/models.session.tsp | 4 +- .../model.common.shared.tsp | 12 +- .../model.radiologyinsights.tsp | 4 +- .../model.trialmatcher.tsp | 4 +- specification/ai/ImageAnalysis/models.tsp | 4 +- .../ApiCenter.DataApi/models/api.tsp | 4 +- .../models/exportSpecification.tsp | 2 +- .../apicenter/ApiCenter.Management/models.tsp | 8 +- .../models/code-execution-file.tsp | 8 +- .../models/code-execution.tsp | 2 +- .../models/models.tsp | 218 +++---- .../resources/EvidenceResource.tsp | 2 +- .../resources/ReportResource.tsp | 2 +- .../ScopingConfigurationResource.tsp | 2 +- .../resources/SnapshotResource.tsp | 2 +- .../resources/WebhookResource.tsp | 2 +- .../AppConfiguration/models.tsp | 18 +- specification/awsconnector/shared/main.tsp | 2 +- .../DependencyMap.Management/main.tsp | 12 +- .../baseVirtualMachineProfile.tsp | 18 +- .../AzureFleet.Management/fleet.tsp | 6 +- .../virtualMachineScaleSet.tsp | 12 +- .../AzureLargeInstance.Management/models.tsp | 24 +- .../AttestationStatus.tsp | 2 +- .../GalleryImages.tsp | 2 +- .../GuestAgent.tsp | 2 +- .../HybridIdentityMetadata.tsp | 2 +- .../LogicalNetworks.tsp | 2 +- .../MarketplaceGalleryImages.tsp | 2 +- .../NetworkInterfaces.tsp | 2 +- .../NetworkSecurityGroups.tsp | 2 +- .../SecurityRules.tsp | 2 +- .../StorageContainers.tsp | 2 +- .../VirtualHardDisks.tsp | 2 +- .../VirtualMachineInstance.tsp | 2 +- .../models.tsp | 110 ++-- specification/batch/Azure.Batch/models.tsp | 188 +++--- .../Chaos.Management/capability.models.tsp | 12 +- .../capabilityType.models.tsp | 24 +- .../chaos/Chaos.Management/common.models.tsp | 4 +- .../Chaos.Management/experiment.models.tsp | 2 +- .../experimentExecution.models.tsp | 74 +-- .../Chaos.Management/privateAccess.models.tsp | 4 +- .../privateEndpointConnection.models.tsp | 12 +- .../Chaos.Management/targetType.models.tsp | 8 +- .../CodeSigning.Management/models.tsp | 34 +- .../AnomalyDetector/multivariate/models.tsp | 6 +- .../AnomalyDetector/univariate/models.tsp | 2 +- .../ContentSafety/models.tsp | 4 +- .../models/project.tsp | 34 +- .../models/common.models.tsp | 2 +- .../Language.AnalyzeText-authoring/models.tsp | 22 +- .../models/common.models.tsp | 2 +- .../Language.Conversations/models/common.tsp | 6 +- .../OpenAI.Inference/routes/common.tsp | 2 +- .../Speech.VideoTranslation/main.tsp | 26 +- .../Communication.JobRouter/models.tsp | 56 +- .../Communication.Messages/models.tsp | 8 +- .../Community.Management/main.tsp | 34 +- .../ComputeSchedule.Management/models.tsp | 6 +- .../Microsoft.ManagedCcf/acks.tsp | 2 +- .../Microsoft.ManagedCcf/proposals.tsp | 2 +- .../Microsoft.ManagedCcf/recovery.tsp | 4 +- .../Microsoft.ManagedCcf/service_state.tsp | 10 +- .../Microsoft.ManagedCcf/transactions.tsp | 4 +- .../ConnectedCache.Management/models.tsp | 176 +++--- .../Fleet.Management/fleet.tsp | 32 +- .../Fleet.Management/fleetmember.tsp | 6 +- .../update/autoupgradeprofile.tsp | 8 +- .../Fleet.Management/update/run.tsp | 56 +- .../Fleet.Management/update/strategy.tsp | 6 +- .../assignment.tsp | 4 +- .../ContainerStorage.Management/pool.tsp | 14 +- .../ContainerStorage.Management/snapshot.tsp | 6 +- .../ContainerStorage.Management/volume.tsp | 8 +- .../Contoso.Management/employee.tsp | 2 +- .../Contoso.WidgetManager/main.tsp | 2 +- .../models.tsp | 128 ++--- .../alertRuleResources.tsp | 2 +- .../DatabaseWatcher.Management/baseTarget.tsp | 2 +- .../healthValidation.tsp | 24 +- .../sharedPrivateLinkResource.tsp | 4 +- .../DatabaseWatcher.Management/watcher.tsp | 4 +- .../devcenter/DevCenter/DevBox/models.tsp | 102 ++-- .../DevCenter/Environments/models.tsp | 32 +- .../devcenter/DevCenter/shared/models.tsp | 8 +- .../assetEndpointProfiles.tsp | 16 +- .../DeviceRegistry.Management/assets.tsp | 44 +- .../DeviceRegistry.Management/billings.tsp | 4 +- .../discoveredAssetEndpointProfiles.tsp | 4 +- .../discoveredAssets.tsp | 6 +- .../schemaRegistries.tsp | 24 +- .../DurableTask.Management/main.tsp | 10 +- .../Microsoft.Edge.Sites.Management/Site.tsp | 2 +- .../models.tsp | 2 +- .../edgezones/EdgeZones.Management/main.tsp | 22 +- .../Azure.Messaging.EventGrid/main.tsp | 4 +- .../azurekeyvaultsecretproviderclass.tsp | 2 +- .../secretsync.tsp | 20 +- .../Microsoft.Fabric.Management/capacity.tsp | 2 +- .../Microsoft.Fabric.Management/models.tsp | 6 +- .../NetworkSettingsResource.tsp | 2 +- .../GitHub.Network.Management/models.tsp | 6 +- .../models_document_flow.tsp | 16 +- .../HealthDataAIServices.Management/main.tsp | 6 +- .../PublicCloud.tsp | 22 +- .../HybridConnectivity.Management/models.tsp | 14 +- .../Impact.Management/ImpactCategories.tsp | 2 +- .../impact/Impact.Management/connectors.tsp | 6 +- .../impact/Impact.Management/insights.tsp | 4 +- .../impact/Impact.Management/main.tsp | 2 +- .../Impact.Management/workloadImpacts.tsp | 6 +- .../main.tsp | 4 +- .../models/broker/authentications.tsp | 4 +- .../models/broker/authorizations.tsp | 4 +- .../models/broker/brokers.tsp | 14 +- .../models/broker/listeners.tsp | 4 +- .../models/dataflows/dataflowEndpoints.tsp | 4 +- .../models/dataflows/dataflowProfiles.tsp | 4 +- .../models/dataflows/dataflows.tsp | 4 +- .../models/instance.tsp | 6 +- .../dataset.tsp | 4 +- .../instance.tsp | 4 +- .../pipeline.tsp | 4 +- .../models/base.tsp | 2 +- .../models/datalakeconnector.tsp | 4 +- .../models/diagnosticservice.tsp | 2 +- .../models/kafkaconnector.tsp | 4 +- .../IoTOperationsMQ.Management/models/mq.tsp | 2 +- .../models/mqttbridgeconnector.tsp | 4 +- .../models/mqttbroker.tsp | 8 +- .../instance.tsp | 4 +- .../solution.tsp | 4 +- .../target.tsp | 4 +- .../Security.KeyVault.Certificates/models.tsp | 52 +- .../Security.KeyVault.Common/common.tsp | 8 +- .../Security.KeyVault.Keys/models.tsp | 52 +- .../Security.KeyVault.RBAC/models.tsp | 12 +- .../Security.KeyVault.Secrets/models.tsp | 32 +- .../Security.KeyVault.Settings/models.tsp | 2 +- .../KubernetesRuntime.Management/bgppeer.tsp | 2 +- .../loadbalancer.tsp | 2 +- .../KubernetesRuntime.Management/service.tsp | 4 +- .../storageclass.tsp | 8 +- .../LiftrBase/main.tsp | 8 +- .../LiftrBase/main.tsp | 4 +- .../LiftrBase.Storage/main.tsp | 4 +- .../LiftrBase/main.tsp | 2 +- .../LoadTestService.Management/models.tsp | 32 +- .../models.notificationrule.tsp | 2 +- .../LoadTestService/models.testprofile.tsp | 30 +- .../LoadTestService/models.trigger.tsp | 6 +- .../LoadTestService/models.tsp | 132 ++--- .../AzureAI.Assets/common.tsp | 8 +- .../AzureAI.Assets/model.tsp | 4 +- .../FirewallRule.tsp | 4 +- .../MongoCluster.tsp | 46 +- .../Replica.tsp | 2 +- .../typespec/azureMonitorWorkspace.tsp | 20 +- .../typespec/pipelineGroup.tsp | 4 +- .../typespec/pipelineGroup.tsp | 2 +- .../autonomousdatabase/autonomousDatabase.tsp | 192 +++---- .../autonomousDatabaseBackup.tsp | 32 +- .../oracle/models/exadata/dbNodes.tsp | 2 +- .../oracle/models/exadata/dbServers.tsp | 48 +- .../oracle/models/exadata/dnsPrivateViews.tsp | 2 +- .../oracle/models/exadata/dnsPrivateZones.tsp | 2 +- .../oracle/models/exadata/exadatainfra.tsp | 70 +-- .../models/exadata/virtualNetworkAddress.tsp | 16 +- .../oracle/models/exadata/vmcluster.tsp | 78 +-- .../oraclesubscription/oracleSubscription.tsp | 52 +- .../PlaywrightTesting.AuthManager/main.tsp | 12 +- .../PlaywrightTesting.Management/main.tsp | 26 +- .../PlaywrightTesting.Shared/main.tsp | 24 +- .../portal/Dashboard.Management/models.tsp | 14 +- .../TenantConfiguration.Management/models.tsp | 8 +- .../CopilotSettings.tsp | 2 +- .../CopilotSettings.Management/models.tsp | 2 +- .../ExtensionTenantCompileFile.tsp | 2 +- .../Extension.Management/models.tsp | 46 +- .../apis/location.tsp | 2 +- .../apis/network.tsp | 2 +- .../apis/number.tsp | 2 +- .../apis/simswap.tsp | 2 +- .../Gateway.tsp | 8 +- .../OperatorApiConnection.tsp | 24 +- .../OperatorApiPlan.tsp | 4 +- .../models.tsp | 2 +- .../Microsoft.Quantum.Management/models.tsp | 30 +- .../common/common-params.tsp | 28 +- .../Quantum.Workspace/common/json-patch.tsp | 8 +- .../Quantum.Workspace/operations/items.tsp | 20 +- .../Quantum.Workspace/operations/jobs.tsp | 32 +- .../operations/providers.tsp | 14 +- .../Quantum.Workspace/operations/quotas.tsp | 16 +- .../Quantum.Workspace/operations/sessions.tsp | 8 +- .../Quantum.Workspace/operations/storage.tsp | 6 +- .../DataReplication.Management/models.tsp | 542 +++++++++--------- specification/riskiq/Easm/models.tsp | 36 +- .../schemaregistry/SchemaRegistry/main.tsp | 4 +- .../scvmm/ScVmm.Management/GuestAgent.tsp | 2 +- .../VirtualMachineInstance.tsp | 4 +- .../VmInstanceHybridIdentityMetadata.tsp | 2 +- .../scvmm/ScVmm.Management/models.tsp | 164 +++--- .../ServiceNetworking.Management/main.tsp | 26 +- .../landingZoneAccountResourceProperties.tsp | 2 +- ...ingZoneConfigurationResourceProperties.tsp | 4 +- ...dingZoneRegistrationResourceProperties.tsp | 2 +- .../sovereign/Sovereign.Management/main.tsp | 4 +- .../sphere/Sphere.Management/catalog.tsp | 2 +- .../sphere/Sphere.Management/certificate.tsp | 2 +- .../sphere/Sphere.Management/deployment.tsp | 2 +- .../sphere/Sphere.Management/device.tsp | 2 +- .../sphere/Sphere.Management/deviceGroup.tsp | 2 +- .../sphere/Sphere.Management/image.tsp | 2 +- .../sphere/Sphere.Management/models.tsp | 76 +-- .../sphere/Sphere.Management/product.tsp | 2 +- .../main.tsp | 6 +- .../standbyContainerGroupPool.tsp | 4 +- .../standbyContainerGroupPoolRuntimeView.tsp | 6 +- .../StandbyPool.Management/standbyVM.tsp | 4 +- .../StandbyPool.Management/standbyVMPool.tsp | 4 +- .../standbyVirtualMachinePoolRuntimeView.tsp | 6 +- .../Azure.AI.DocumentTranslation/models.tsp | 4 +- .../trustedsigning/TrustedSigning/main.tsp | 6 +- .../Microsoft.VerifiedId.Management/main.tsp | 2 +- .../Microsoft.AVS.Management/addons.tsp | 2 +- .../authorizations.tsp | 6 +- .../Microsoft.AVS.Management/cloudLinks.tsp | 4 +- .../Microsoft.AVS.Management/clusters.tsp | 8 +- .../Microsoft.AVS.Management/datastores.tsp | 6 +- .../globalReachConnections.tsp | 6 +- .../hcxEnterpriseSites.tsp | 6 +- .../Microsoft.AVS.Management/iscsiPaths.tsp | 4 +- .../Microsoft.AVS.Management/locations.tsp | 10 +- .../placementPolicies.tsp | 2 +- .../privateClouds.tsp | 58 +- .../scriptCmdlets.tsp | 18 +- .../scriptExecutions.tsp | 14 +- .../scriptPackages.tsp | 10 +- .../virtualMachines.tsp | 10 +- .../workloadNetworks-dhcpConfigurations.tsp | 4 +- .../workloadNetworks-dnsServices.tsp | 4 +- .../workloadNetworks-dnsZones.tsp | 2 +- .../workloadNetworks-gateways.tsp | 4 +- ...workloadNetworks-portMirroringProfiles.tsp | 4 +- .../workloadNetworks-publicIPs.tsp | 4 +- .../workloadNetworks-segments.tsp | 6 +- .../workloadNetworks-virtualMachines.tsp | 4 +- .../workloadNetworks-vmGroups.tsp | 4 +- .../workloadNetworks.tsp | 2 +- .../VoiceServices.Provisioning/main.tsp | 208 +++---- .../SAPDiscoverySite.tsp | 2 +- .../SAPInstance.tsp | 2 +- .../ServerInstance.tsp | 2 +- .../models.tsp | 70 +-- .../Workloads.SAPMonitor.Management/Alert.tsp | 2 +- .../AlertTemplate.tsp | 2 +- .../Monitor.tsp | 2 +- .../ProviderInstance.tsp | 2 +- .../SapLandscapeMonitor.tsp | 2 +- .../models.tsp | 32 +- .../SAPVirtualInstanceMetadata.tsp | 2 +- .../models.tsp | 162 +++--- 270 files changed, 2577 insertions(+), 2539 deletions(-) diff --git a/specification/agricultureplatform/AgriculturePlatform.Management/main.tsp b/specification/agricultureplatform/AgriculturePlatform.Management/main.tsp index 089e8f186b22..2fd3fcc02d12 100644 --- a/specification/agricultureplatform/AgriculturePlatform.Management/main.tsp +++ b/specification/agricultureplatform/AgriculturePlatform.Management/main.tsp @@ -35,7 +35,7 @@ model AgriServiceResource is TrackedResource { @pattern("^[a-zA-Z0-9-]{3,24}$") @key("agriServiceResourceName") @segment("agriServices") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path name: string; @@ -72,26 +72,26 @@ union ProvisioningState { @doc("Details of the Agriculture AgriDataManager.") model AgriServiceResourceProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; @doc("Config of the AgriService instance.") - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) config?: AgriServiceConfig; - @visibility(Lifecycle.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(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) dataConnectorCredentials?: DataConnectorCredentialMap[]; @doc("AgriService installed solutions.") @OpenAPI.extension("x-ms-identifiers", ["key"]) - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) installedSolutions?: InstalledSolutionMap[]; } @@ -116,39 +116,39 @@ model InstalledSolutionMap { @doc("Config of the AgriService resource instance.") model AgriServiceConfig { @doc("Instance URI of the AgriService instance.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @minLength(2) @maxLength(256) instanceUri?: string; @doc("Version of AgriService instance.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @minLength(2) @maxLength(256) version?: string; @doc("App service resource Id.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @minLength(2) appServiceResourceId?: string; @doc("Cosmos Db resource Id.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @minLength(2) cosmosDbResourceId?: string; @doc("Storage account resource Id.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @minLength(2) storageAccountResourceId?: string; @doc("Key vault resource Id.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @minLength(2) keyVaultResourceId?: string; @doc("Redis cache resource Id.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @minLength(2) redisCacheResourceId?: string; } @@ -156,26 +156,26 @@ model AgriServiceConfig { @doc("The properties related to an AgriService data connector.") model DataConnectorCredentials { @doc("Type of credential.") - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) kind?: AuthCredentialsKind; @doc("Client Id associated with the provider, if type of credentials is OAuthClientCredentials.") - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @minLength(2) clientId?: string; @doc("Uri of the key vault") - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @minLength(2) keyVaultUri?: string; @doc("Name of the key vault key.") - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @minLength(2) keyName?: string; @doc("Version of the key vault key.") - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @minLength(2) keyVersion?: string; } @@ -194,39 +194,39 @@ union AuthCredentialsKind { @doc("Installed data manager for Agriculture solution detail.") model Solution { @doc("Application name of the solution.") - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @minLength(2) applicationName?: string; @doc("Partner Id.") - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @minLength(2) partnerId?: string; @doc("Marketplace publisher Id.") - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @minLength(2) marketPlacePublisherId?: string; @doc("Saas subscription Id.") - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @minLength(2) saasSubscriptionId?: string; @doc("Saas subscription name.") - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @minLength(2) saasSubscriptionName?: string; @doc("Plan Id.") - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @minLength(2) planId?: string; } @doc("Configuration of the managed on behalf of resource.") model ManagedOnBehalfOfConfiguration { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Associated MoboBrokerResources.") moboBrokerResources: MoboBrokerResource[]; } @@ -237,7 +237,7 @@ model MoboBrokerResource { * The fully qualified resource ID of the MoboBroker resource. * Example: `/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}` */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: string; } diff --git a/specification/ai/DocumentIntelligence/models.tsp b/specification/ai/DocumentIntelligence/models.tsp index 958113df0c13..a2cf02c8cea6 100644 --- a/specification/ai/DocumentIntelligence/models.tsp +++ b/specification/ai/DocumentIntelligence/models.tsp @@ -1321,7 +1321,7 @@ model ClassifierCopyAuthorization { model DocumentIntelligenceOperationDetails { @doc("Operation ID") @key - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) operationId: string; @doc("Operation status. notStarted, running, completed, or failed") @@ -1358,7 +1358,7 @@ model DocumentIntelligenceOperationDetails { @doc("Document model info.") model DocumentModelDetails { @key - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("Unique document model name.") @pattern("^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$") modelId: string; @@ -1368,40 +1368,40 @@ model DocumentModelDetails { description?: string; @doc("Date and time (UTC) when the document model was created.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) createdDateTime: utcDateTime; @doc("Date and time (UTC) when the document model will expire.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) expirationDateTime?: utcDateTime; @doc("Date and time (UTC) when the document model was last modified.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) modifiedDateTime?: utcDateTime; @doc("API version used to create this document model.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) apiVersion?: string; @doc("List of key-value tag attributes associated with the document model.") tags?: Record; @doc("Custom document model build mode.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) buildMode?: DocumentBuildMode; @doc(""" Azure Blob Storage location containing the training data. Either azureBlobSource or azureBlobFileListSource must be specified. """) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) azureBlobSource?: AzureBlobContentSource; @doc(""" Azure Blob Storage file list specifying the training data. Either azureBlobSource or azureBlobFileListSource must be specified. """) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) azureBlobFileListSource?: AzureBlobFileListContentSource; @doc("For composed models, the custom classifier to split and classify the input file.") @@ -1411,15 +1411,15 @@ model DocumentModelDetails { split?: SplitMode = SplitMode.none; @doc("Supported document types.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) docTypes?: Record; @doc("List of warnings encountered while building the model.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) warnings?: DocumentIntelligenceWarning[]; @doc("Number of V100-equivalent GPU hours consumed for model training.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) trainingHours?: float32; } @@ -1520,7 +1520,7 @@ model ClassifierDocumentTypeDetails { @resource("documentClassifiers") model DocumentClassifierDetails { @key - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("Unique document classifier name.") @pattern("^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$") @maxLength(64) @@ -1537,7 +1537,7 @@ model DocumentClassifierDetails { expirationDateTime?: utcDateTime; @doc("Date and time (UTC) when the document model was last modified.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) modifiedDateTime?: utcDateTime; @doc("API version used to create this document classifier.") diff --git a/specification/ai/Face/models.common.tsp b/specification/ai/Face/models.common.tsp index f537295710b1..5acf765d8c1d 100644 --- a/specification/ai/Face/models.common.tsp +++ b/specification/ai/Face/models.common.tsp @@ -117,7 +117,7 @@ model FaceUserData { @resource("persistedfaces") model BaseFace { @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Face ID of the face.") persistedFaceId: uuid; diff --git a/specification/ai/Face/models.facelist.tsp b/specification/ai/Face/models.facelist.tsp index 7b988cdfdb4a..04bb155b2940 100644 --- a/specification/ai/Face/models.facelist.tsp +++ b/specification/ai/Face/models.facelist.tsp @@ -13,7 +13,7 @@ namespace Face; @resource("facelists") model FaceList is BaseCollection { @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Valid character is letter in lower case or digit or '-' or '_', maximum length is 64.") faceListId: collectionId; @@ -35,7 +35,7 @@ model FaceListFace is BaseFace; @resource("largefacelists") model LargeFaceList is BaseCollection { @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Valid character is letter in lower case or digit or '-' or '_', maximum length is 64.") largeFaceListId: collectionId; } diff --git a/specification/ai/Face/models.persondirectory.tsp b/specification/ai/Face/models.persondirectory.tsp index 9a7a225378c2..f2b0421c0051 100644 --- a/specification/ai/Face/models.persondirectory.tsp +++ b/specification/ai/Face/models.persondirectory.tsp @@ -13,7 +13,7 @@ namespace Face; @doc("Person resource for person directory") model PersonDirectoryPerson { @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Person ID of the person.") personId: uuid; @@ -24,7 +24,7 @@ model PersonDirectoryPerson { @doc("Long running operation resource for person directory.") model OperationResult { @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Operation ID of the operation.") operationId: uuid; @@ -50,7 +50,7 @@ model OperationResult { model PersonDirectoryRecognitionModel { @key @doc("The 'recognitionModel' associated with faces.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) recognitionModel: RecognitionModel; } @@ -63,7 +63,7 @@ model PersonDirectoryFace is BaseFace; @resource("dynamicpersongroups") model DynamicPersonGroup { @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("ID of the dynamic person group.") dynamicPersonGroupId: collectionId; diff --git a/specification/ai/Face/models.persongroup.tsp b/specification/ai/Face/models.persongroup.tsp index dbf5213b3f65..d48c4966d59d 100644 --- a/specification/ai/Face/models.persongroup.tsp +++ b/specification/ai/Face/models.persongroup.tsp @@ -13,7 +13,7 @@ namespace Face; @doc("Base model for person.") model BasePersonGroupPerson { @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("ID of the person.") personId: uuid; @@ -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(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("ID of the container.") personGroupId: collectionId; } @@ -44,7 +44,7 @@ model PersonGroupPersonFace is BaseFace; @resource("largepersongroups") model LargePersonGroup is BaseCollection { @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("ID of the container.") largePersonGroupId: collectionId; } diff --git a/specification/ai/Face/models.session.tsp b/specification/ai/Face/models.session.tsp index 370b4d861d06..19b2098c1414 100644 --- a/specification/ai/Face/models.session.tsp +++ b/specification/ai/Face/models.session.tsp @@ -74,7 +74,7 @@ model LivenessSessionData { model LivenessSessionItem { @doc("The unique ID to reference this session.") @key("sessionId") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: string; @doc("DateTime when this session was created.") @@ -351,7 +351,7 @@ model SessionImageStream { model LivenessSessionCommonData { @doc("The unique ID to reference this session.") @key - @visibility(Lifecycle.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.") diff --git a/specification/ai/HealthInsights/HealthInsights.Common/model.common.shared.tsp b/specification/ai/HealthInsights/HealthInsights.Common/model.common.shared.tsp index dbfec5af0ece..06cae03c68c8 100644 --- a/specification/ai/HealthInsights/HealthInsights.Common/model.common.shared.tsp +++ b/specification/ai/HealthInsights/HealthInsights.Common/model.common.shared.tsp @@ -8,31 +8,31 @@ namespace AzureHealthInsights; model HealthInsightsJobBase { @key("id") @doc("The unique ID of the job.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @maxLength(36) @minLength(3) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_]+[a-zA-Z0-9]$") id: string; @doc("The status of the job.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @lroStatus status: JobStatus; @doc("The date and time when the processing job was created.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) createdAt?: utcDateTime; @doc("The date and time when the processing job is set to expire.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) expiresAt?: utcDateTime; @doc("The date and time when the processing job was last updated.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) updatedAt?: utcDateTime; @doc("Error object that describes the error when status is \"Failed\".") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) error?: Foundations.Error; } diff --git a/specification/ai/HealthInsights/HealthInsights.RadiologyInsights/model.radiologyinsights.tsp b/specification/ai/HealthInsights/HealthInsights.RadiologyInsights/model.radiologyinsights.tsp index 228e06bb679c..98df2949306a 100644 --- a/specification/ai/HealthInsights/HealthInsights.RadiologyInsights/model.radiologyinsights.tsp +++ b/specification/ai/HealthInsights/HealthInsights.RadiologyInsights/model.radiologyinsights.tsp @@ -87,11 +87,11 @@ model QualityMeasureOptions { @resource("radiology-insights/jobs") model RadiologyInsightsJob { @doc("The request data for the operation.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) jobData?: RadiologyInsightsData; @doc("The result of the operation.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) result?: RadiologyInsightsInferenceResult; ...HealthInsightsJobBase; diff --git a/specification/ai/HealthInsights/HealthInsights.TrialMatcher/model.trialmatcher.tsp b/specification/ai/HealthInsights/HealthInsights.TrialMatcher/model.trialmatcher.tsp index abf5178c1fec..7dc07b1f5d61 100644 --- a/specification/ai/HealthInsights/HealthInsights.TrialMatcher/model.trialmatcher.tsp +++ b/specification/ai/HealthInsights/HealthInsights.TrialMatcher/model.trialmatcher.tsp @@ -35,11 +35,11 @@ model TrialMatcherModelConfiguration { @resource("trial-matcher/jobs") model TrialMatcherJob { @doc("The request data for the operation.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) jobData?: TrialMatcherData; @doc("The result of the operation.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) result?: TrialMatcherInferenceResult; ...HealthInsightsJobBase; diff --git a/specification/ai/ImageAnalysis/models.tsp b/specification/ai/ImageAnalysis/models.tsp index 86933b439fcd..12feb65f937d 100644 --- a/specification/ai/ImageAnalysis/models.tsp +++ b/specification/ai/ImageAnalysis/models.tsp @@ -101,14 +101,14 @@ model DetectedObject { @doc("Represents a person detected in an image.") model DetectedPerson { @doc("A rectangular boundary where the person was detected.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) boundingBox: ImageBoundingBox; @doc(""" A score, in the range of 0 to 1 (inclusive), representing the confidence that this detection was accurate. Higher values indicating higher confidence. """) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @minValue(0.0) @maxValue(1.0) confidence: float32; diff --git a/specification/apicenter/ApiCenter.DataApi/models/api.tsp b/specification/apicenter/ApiCenter.DataApi/models/api.tsp index b66c484f1261..a4819304b421 100644 --- a/specification/apicenter/ApiCenter.DataApi/models/api.tsp +++ b/specification/apicenter/ApiCenter.DataApi/models/api.tsp @@ -35,7 +35,7 @@ model Api { kind: ApiKind; @doc("Current lifecycle stage of the API.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lifecycleStage?: LifecycleStage; @doc("Terms of service for the API.") @@ -54,7 +54,7 @@ model Api { customProperties?: {}; @doc("Last updated date and time.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastUpdated?: utcDateTime; } diff --git a/specification/apicenter/ApiCenter.DataApi/models/exportSpecification.tsp b/specification/apicenter/ApiCenter.DataApi/models/exportSpecification.tsp index 158d98ef8b11..e158880e690b 100644 --- a/specification/apicenter/ApiCenter.DataApi/models/exportSpecification.tsp +++ b/specification/apicenter/ApiCenter.DataApi/models/exportSpecification.tsp @@ -8,7 +8,7 @@ using TypeSpec.Rest; model ApiSpecExportResult { @doc("API definition identifier.") @key("definitionName") - @visibility(Lifecycle.Query) + @visibility(Lifecycle.Query) definitionName: string; @doc("The result of the specification export.") diff --git a/specification/apicenter/ApiCenter.Management/models.tsp b/specification/apicenter/ApiCenter.Management/models.tsp index 9dc20e0cf1c8..b18f4a560c2c 100644 --- a/specification/apicenter/ApiCenter.Management/models.tsp +++ b/specification/apicenter/ApiCenter.Management/models.tsp @@ -233,7 +233,7 @@ union EnvironmentServerType { @doc("The properties of the service.") model ServiceProperties { @doc("Provisioning state of the service.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @added(Versions.v2024_03_15_preview) @@ -311,7 +311,7 @@ model ApiProperties { summary?: string; @doc("Current lifecycle stage of the API.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lifecycleStage?: LifecycleStage; @doc("Terms of service for the API.") @@ -416,7 +416,7 @@ model ApiDefinitionProperties { description?: string; @doc("API specification details.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) specification?: ApiDefinitionPropertiesSpecification; } @@ -582,7 +582,7 @@ model ApiSourceProperties { /** * The state of the API source link */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) linkState?: LinkState; } diff --git a/specification/app/Microsoft.App.DynamicSessions/models/code-execution-file.tsp b/specification/app/Microsoft.App.DynamicSessions/models/code-execution-file.tsp index e5307d225bb3..12ddeddaf00b 100644 --- a/specification/app/Microsoft.App.DynamicSessions/models/code-execution-file.tsp +++ b/specification/app/Microsoft.App.DynamicSessions/models/code-execution-file.tsp @@ -16,7 +16,13 @@ model SessionResourceFile { @key("name") @segment("files") @doc("The name of the file.") - @visibility(Lifecycle.Read, Lifecycle.Query, Lifecycle.Create, Lifecycle.Update, Lifecycle.Delete) + @visibility( + Lifecycle.Read, + Lifecycle.Query, + Lifecycle.Create, + Lifecycle.Update, + Lifecycle.Delete + ) name: string; @doc("The type of the session resource file.") diff --git a/specification/app/Microsoft.App.DynamicSessions/models/code-execution.tsp b/specification/app/Microsoft.App.DynamicSessions/models/code-execution.tsp index bab92a69e736..159b998edbd5 100644 --- a/specification/app/Microsoft.App.DynamicSessions/models/code-execution.tsp +++ b/specification/app/Microsoft.App.DynamicSessions/models/code-execution.tsp @@ -39,7 +39,7 @@ model SessionCodeExecutionResult { @doc("The session code execution resource.") @resource("executions") model SessionCodeExecutionResource { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Session code execution id.") @key("executionId") id: string; diff --git a/specification/appcomplianceautomation/AppComplianceAutomation.Management/models/models.tsp b/specification/appcomplianceautomation/AppComplianceAutomation.Management/models/models.tsp index c34ba4254d80..412b5ebb9cd1 100644 --- a/specification/appcomplianceautomation/AppComplianceAutomation.Management/models/models.tsp +++ b/specification/appcomplianceautomation/AppComplianceAutomation.Management/models/models.tsp @@ -612,14 +612,14 @@ model TriggerEvaluationProperty { /** * The time when the evaluation is triggered. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. triggerTime?: utcDateTime; /** * The time when the evaluation is end. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. evaluationEndTime?: utcDateTime; @@ -643,44 +643,44 @@ model QuickAssessment { /** * Resource id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceId?: string; /** * Responsibility id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) responsibilityId?: string; /** * The timestamp of resource creation (UTC). */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. timestamp?: utcDateTime; /** * Quick assessment status. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceStatus?: ResourceStatus; /** * Quick assessment display name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) displayName?: string; /** * Quick assessment display name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) description?: string; /** * Link to remediation steps for this quick assessment. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) remediationLink?: string; } @@ -739,19 +739,19 @@ alias ReportBaseProperties = { /** * Report status. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: ReportStatus; /** * List of report error codes. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errors?: string[]; /** * Report's tenant id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) tenantId?: string; /** @@ -762,27 +762,27 @@ alias ReportBaseProperties = { /** * Report next collection trigger time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. nextTriggerTime?: utcDateTime; /** * Report last collection trigger time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastTriggerTime?: utcDateTime; /** * List of subscription Ids. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) subscriptions?: string[]; /** * Report compliance status. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) complianceStatus?: ReportComplianceStatus; /** @@ -793,14 +793,14 @@ alias ReportBaseProperties = { /** * List of synchronized certification records. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["offerGuid"]) certRecords?: CertSyncRecord[]; /** * Azure lifecycle management */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; }; @@ -891,7 +891,7 @@ model ReportComplianceStatus { /** * The Microsoft 365 certification name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) m365?: OverviewStatus; } @@ -902,31 +902,31 @@ model OverviewStatus { /** * The count of all passed control. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) passedCount?: int32; /** * The count of all failed control. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) failedCount?: int32; /** * The count of all manual control. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) manualCount?: int32; /** * The count of all not applicable control. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) notApplicableCount?: int32; /** * The count of all pending for approval control. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) pendingCount?: int32; } @@ -1009,7 +1009,7 @@ model WebhookProperties { /** * Webhook id in database. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) webhookId?: string; /** @@ -1020,7 +1020,7 @@ model WebhookProperties { /** * Tenant id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) tenantId?: string; /** @@ -1058,7 +1058,7 @@ model WebhookProperties { /** * whether webhookKey is enabled. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) webhookKeyEnabled?: WebhookKeyEnabled; /** @@ -1069,13 +1069,13 @@ model WebhookProperties { /** * webhook deliveryStatus */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) deliveryStatus?: DeliveryStatus; /** * Azure Resource Provisioning State */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -1096,38 +1096,38 @@ model SnapshotProperties { /** * Snapshot name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) snapshotName?: string; /** * The timestamp of resource creation (UTC). */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. createdAt?: utcDateTime; /** * Azure lifecycle management */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * The report essential info. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) reportProperties?: ReportProperties; /** * Metadata pertaining to creation and last modification of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) reportSystemData?: SystemData; /** * List of compliance results. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["complianceName"]) complianceResults?: ComplianceResult[]; } @@ -1139,13 +1139,13 @@ model ComplianceResult { /** * The name of the compliance. e.g. "M365" */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) complianceName?: string; /** * List of categories. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["categoryName"]) categories?: Category[]; } @@ -1157,19 +1157,19 @@ model Category { /** * The name of the compliance category. e.g. "Operational Security" */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) categoryName?: string; /** * Category status. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) categoryStatus?: CategoryStatus; /** * List of control families. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["controlFamilyName"]) controlFamilies?: ControlFamily[]; } @@ -1181,19 +1181,19 @@ model ControlFamily { /** * The name of the control family. e.g. "Malware Protection - Anti-Virus" */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) controlFamilyName?: string; /** * The control family status */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) controlFamilyStatus?: ControlFamilyStatus; /** * List of controls. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["controlId"]) controls?: Control[]; } @@ -1205,43 +1205,43 @@ model Control { /** * The Id of the control. e.g. "Operational_Security_10" */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) controlId?: string; /** * The name of the control. e.g. "Unsupported OS and Software." */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) controlName?: string; /** * The full name of the control. e.g. "Validate that unsupported operating systems and software components are not in use." */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) controlFullName?: string; /** * The control's description */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) controlDescription?: string; /** * The hyper link to the control's description'. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) controlDescriptionHyperLink?: string; /** * Control status. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) controlStatus?: ControlStatus; /** * List of customer responsibility. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["responsibilityId"]) responsibilities?: Responsibility[]; } @@ -1253,43 +1253,43 @@ model Responsibility { /** * The id of the customer responsibility. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) responsibilityId?: string; /** * The title of the customer responsibility. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) responsibilityTitle?: string; /** * The description of the customer responsibility. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) responsibilityDescription?: string; /** * The type of customer responsibility. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) responsibilityType?: ResponsibilityType; /** * The severity level of this customer responsibility. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) responsibilitySeverity?: ResponsibilitySeverity; /** * The status of this customer responsibility. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) responsibilityStatus?: ResponsibilityStatus; /** * The supported cloud environment of this customer responsibility. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) responsibilityEnvironment?: ResponsibilityEnvironment; /** @@ -1305,27 +1305,27 @@ model Responsibility { /** * List of resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["resourceId"]) resourceList?: ResponsibilityResource[]; /** * List of recommendation. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["recommendationId"]) recommendationList?: Recommendation[]; /** * The evidence upload guidance description. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) guidance?: string; /** * The justification given by the user to clarify the reason. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) justification?: string; /** @@ -1341,37 +1341,37 @@ model ResponsibilityResource { /** * The Id of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceId?: string; /** * Account Id. For example - AWS account Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) accountId?: string; /** * The type of the resource. e.g. "Microsoft.SignalRService/SignalR" */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceType?: string; /** * Resource origin. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceOrigin?: ResourceOrigin; /** * Resource status. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceStatus?: ResourceStatus; /** * The status change date for the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. resourceStatusChangeDate?: utcDateTime; @@ -1388,19 +1388,19 @@ model Recommendation { /** * The Id of the recommendation. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) recommendationId?: string; /** * The short name of the recommendation. e.g. "Invalid TLS config" */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) recommendationShortName?: string; /** * List of recommendation solutions. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["recommendationSolutionIndex"]) recommendationSolutions?: RecommendationSolution[]; } @@ -1412,19 +1412,19 @@ model RecommendationSolution { /** * The index of the recommendation solution. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) recommendationSolutionIndex?: string; /** * The detail steps of the recommendation solution. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) recommendationSolutionContent?: string; /** * Indicates whether this solution is the recommended. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isRecommendSolution?: IsRecommendSolution; } @@ -1456,27 +1456,27 @@ model DownloadResponse { /** * Resource list of the report */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["resourceId"]) resourceList?: ResourceItem[]; /** * List of the compliance result */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["controlId"]) complianceReport?: ComplianceReportItem[]; /** * Compliance pdf report */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) compliancePdfReport?: DownloadResponseCompliancePdfReport; /** * The detailed compliance pdf report */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) complianceDetailedPdfReport?: DownloadResponseComplianceDetailedPdfReport; } @@ -1487,25 +1487,25 @@ model ResourceItem { /** * The subscription Id of this resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) subscriptionId?: string; /** * The resource group name of this resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceGroup?: string; /** * The resource type of this resource. e.g. "Microsoft.SignalRService/SignalR" */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceType?: string; /** * The resource Id - e.g. "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1". */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceId?: string; } @@ -1516,73 +1516,73 @@ model ComplianceReportItem { /** * The category name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) categoryName?: string; /** * The control family name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) controlFamilyName?: string; /** * The control Id - e.g. "1". */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) controlId?: string; /** * The control name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) controlName?: string; /** * Control status. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) controlStatus?: ControlStatus; /** * The title of the customer responsibility. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) responsibilityTitle?: string; /** * The description of the customer responsibility. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) responsibilityDescription?: string; /** * The Id of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceId?: string; /** * The type of the resource. e.g. "Microsoft.SignalRService/SignalR" */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceType?: string; /** * Resource origin. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceOrigin?: ResourceOrigin; /** * Resource status. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceStatus?: ResourceStatus; /** * The status change date for the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. resourceStatusChangeDate?: utcDateTime; } @@ -1594,7 +1594,7 @@ model DownloadResponseCompliancePdfReport { /** * The uri of compliance pdf report */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sasUri?: string; } @@ -1605,7 +1605,7 @@ model DownloadResponseComplianceDetailedPdfReport { /** * The uri of detailed compliance pdf report */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sasUri?: string; } @@ -1622,7 +1622,7 @@ model ScopingConfigurationProperties { /** * Azure lifecycle management */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -1644,37 +1644,37 @@ model ScopingQuestion { /** * Question id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) questionId: string; /** * Superior question id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) superiorQuestionId?: string; /** * Input type of the question answer. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) inputType: InputType; /** * Option id list. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) optionIds: string[]; /** * The rule of the question. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) rules: Rule[]; /** * The answer value to show the sub questions. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) showSubQuestionsValue?: string; } @@ -1726,7 +1726,7 @@ model EvidenceProperties { /** * Azure lifecycle management */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -1753,7 +1753,7 @@ model EvidenceFileDownloadResponse { /** * The uri of evidence file */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) evidenceFile?: EvidenceFileDownloadResponseEvidenceFile; } @@ -1764,7 +1764,7 @@ model EvidenceFileDownloadResponseEvidenceFile { /** * The url of evidence file */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) url?: string; } @@ -1775,13 +1775,13 @@ model ReportFixResult { /** * Indicates whether the fix action is Succeeded or Failed. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) result?: Result; /** * If the report fix action failed, to indicate the detailed failed reason. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) reason?: string; } @@ -1792,13 +1792,13 @@ model ReportVerificationResult { /** * Indicates whether the report verification action is Succeeded or Failed. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) result?: Result; /** * If the report verification action failed, to indicate the detailed failed reason. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) reason?: string; } diff --git a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/EvidenceResource.tsp b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/EvidenceResource.tsp index 037ffbe8db3d..383b0b3952a2 100644 --- a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/EvidenceResource.tsp +++ b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/EvidenceResource.tsp @@ -28,7 +28,7 @@ model EvidenceResource extends Azure.ResourceManager.Foundations.ProxyResource { */ @key("evidenceName") @segment("evidences") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @pattern("^[a-zA-Z0-9-_.]+$") @path name: string; diff --git a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ReportResource.tsp b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ReportResource.tsp index 32564df7bed2..9e51ba4948d5 100644 --- a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ReportResource.tsp +++ b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ReportResource.tsp @@ -29,7 +29,7 @@ model ReportResource extends Azure.ResourceManager.Foundations.ProxyResource { @pattern("^[-a-zA-Z0-9_]{1,50}$") @key("reportName") @segment("reports") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path name: string; diff --git a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ScopingConfigurationResource.tsp b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ScopingConfigurationResource.tsp index 1adefc04fef4..177817dd4cc5 100644 --- a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ScopingConfigurationResource.tsp +++ b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ScopingConfigurationResource.tsp @@ -32,7 +32,7 @@ model ScopingConfigurationResource extends Azure.ResourceManager.Foundations.ProxyResource { @key("scopingConfigurationName") @segment("scopingConfigurations") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The scoping configuration of the specific report.") @pattern("^[a-zA-Z0-9_]*$") @path diff --git a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/SnapshotResource.tsp b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/SnapshotResource.tsp index 98ac764a0367..f32c1c40e759 100644 --- a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/SnapshotResource.tsp +++ b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/SnapshotResource.tsp @@ -27,7 +27,7 @@ model SnapshotResource extends Azure.ResourceManager.Foundations.ProxyResource { @path @key("snapshotName") @segment("snapshots") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @pattern("^[a-zA-Z0-9-_]{1,64}$") name: string; diff --git a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/WebhookResource.tsp b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/WebhookResource.tsp index 9304730392e8..d41fde81abc3 100644 --- a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/WebhookResource.tsp +++ b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/WebhookResource.tsp @@ -33,7 +33,7 @@ model WebhookResource extends Azure.ResourceManager.Foundations.ProxyResource { @pattern("^[-a-zA-Z0-9_]{1,50}$") @key("webhookName") @segment("webhooks") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path name: string; diff --git a/specification/appconfiguration/AppConfiguration/models.tsp b/specification/appconfiguration/AppConfiguration/models.tsp index a561e8e28ec9..ee63648e40cc 100644 --- a/specification/appconfiguration/AppConfiguration/models.tsp +++ b/specification/appconfiguration/AppConfiguration/models.tsp @@ -128,7 +128,7 @@ model KeyListResult { model Key { @doc("The name of the key.") @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } @@ -170,7 +170,7 @@ model KeyValueListResult { @resource("kv") model KeyValue { @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The key of the key-value.") key: string; @@ -216,11 +216,11 @@ model SnapshotListResult { model Snapshot { @key @doc("The name of the snapshot.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("The current status of the snapshot.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: SnapshotStatus; @doc("A list of filters used to filter the key-values included in the snapshot.") @@ -239,12 +239,12 @@ model Snapshot { #suppress "@azure-tools/typespec-azure-core/no-offsetdatetime" "Pre-existing API contract." @doc("The time that the snapshot was created.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) created?: offsetDateTime; #suppress "@azure-tools/typespec-azure-core/no-offsetdatetime" "Pre-existing API contract." @doc("The time that the snapshot will expire.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) expires?: offsetDateTime; @doc(""" @@ -259,11 +259,11 @@ model Snapshot { retentionPeriod?: int64; @doc("The size in bytes of the snapshot.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) size?: int64; @doc("The amount of key-values in the snapshot.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encodedName("application/json", "items_count") itemsCount?: int64; @@ -271,7 +271,7 @@ model Snapshot { tags?: Record; @doc("A value representing the current state of the snapshot.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) etag?: string; } diff --git a/specification/awsconnector/shared/main.tsp b/specification/awsconnector/shared/main.tsp index 584ee9c46b61..95ce0c07b003 100644 --- a/specification/awsconnector/shared/main.tsp +++ b/specification/awsconnector/shared/main.tsp @@ -26,7 +26,7 @@ alias AwsCommonProperties = { @doc("AWS Tags") awsTags?: Record; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; }; diff --git a/specification/azuredependencymap/DependencyMap.Management/main.tsp b/specification/azuredependencymap/DependencyMap.Management/main.tsp index 1569c60b50b3..2959beceaeac 100644 --- a/specification/azuredependencymap/DependencyMap.Management/main.tsp +++ b/specification/azuredependencymap/DependencyMap.Management/main.tsp @@ -36,7 +36,7 @@ model MapsResource is TrackedResource { @key("mapName") @segment("maps") @doc("Maps resource name") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path name: string; } @@ -44,7 +44,7 @@ model MapsResource is TrackedResource { @doc("The properties of Maps resource") model MapsResourceProperties { @doc("Provisioning state of Maps resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -199,7 +199,7 @@ model DiscoverySourceResource @key("sourceName") @segment("discoverySources") @doc("discovery source resource") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path name: string; } @@ -208,15 +208,15 @@ model DiscoverySourceResource @discriminator("sourceType") model DiscoverySourceResourceProperties { @doc("Provisioning state of Discovery Source resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @doc("Source type of Discovery Source resource.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) sourceType: SourceType; @doc("Source ArmId of Discovery Source resource") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) sourceId: string; } diff --git a/specification/azurefleet/AzureFleet.Management/baseVirtualMachineProfile.tsp b/specification/azurefleet/AzureFleet.Management/baseVirtualMachineProfile.tsp index c768b80eeb28..8595317a7f46 100644 --- a/specification/azurefleet/AzureFleet.Management/baseVirtualMachineProfile.tsp +++ b/specification/azurefleet/AzureFleet.Management/baseVirtualMachineProfile.tsp @@ -108,7 +108,7 @@ model BaseVirtualMachineProfile { * will be added to VMSS Flex VM tags when creating/updating the VMSS VM Profile * with minimum api-version 2023-09-01. Examples: "2024-07-01T00:00:01.1234567+00:00" */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeCreated?: utcDateTime; } @@ -151,7 +151,7 @@ model VirtualMachineScaleSetOSProfile { repair disks on Azure Linux VMs using the VMAccess Extension](https://learn.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection) """) - @visibility(Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Update) @secret adminPassword?: string; @@ -162,7 +162,7 @@ model VirtualMachineScaleSetOSProfile { * your VM, see [Using cloud-init to customize a Linux VM during * creation](https://learn.microsoft.com/azure/virtual-machines/linux/using-cloud-init) */ - @visibility(Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Update) @secret customData?: string; @@ -287,7 +287,7 @@ model AdditionalUnattendContent { * the specified path and component. The XML must be less than 4KB and must * include the root element for the setting or feature that is being inserted. */ - @visibility(Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Update) @secret content?: string; } @@ -650,7 +650,7 @@ model ImageReference is SubResource { * image used to create the virtual machine. This readonly field differs from 'version', * only if the value specified in 'version' field is 'latest'. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) exactVersion?: string; /** @@ -1383,7 +1383,7 @@ model VirtualMachineScaleSetExtension is SubResourceReadOnly { /** * Resource type */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) type?: string; /** @@ -1443,14 +1443,14 @@ model VirtualMachineScaleSetExtensionProperties { */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Converted legacy object to typespec https://github.com/Azure/azure-rest-api-specs/blob/d715112415eb08572ee96cc4bd77217aa44dedf1/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2024-03-01/virtualMachineScaleSet.json#L5002C1-L5009C11" #suppress "@azure-tools/typespec-azure-core/no-openapi" "Legacy" - @visibility(Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Update) @OpenAPI.extension("x-ms-secret", true) protectedSettings?: Record; /** * The provisioning state, which only appears in the response. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: string; /** @@ -1495,7 +1495,7 @@ model SubResourceReadOnly { /** * Resource Id */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: armResourceIdentifier; } diff --git a/specification/azurefleet/AzureFleet.Management/fleet.tsp b/specification/azurefleet/AzureFleet.Management/fleet.tsp index 45bb4215dc39..a9ece3484fd1 100644 --- a/specification/azurefleet/AzureFleet.Management/fleet.tsp +++ b/specification/azurefleet/AzureFleet.Management/fleet.tsp @@ -71,7 +71,7 @@ union ProvisioningState { @doc("Details of the Compute Fleet.") model FleetProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; @@ -97,11 +97,11 @@ model FleetProperties { computeProfile: ComputeProfile; @doc("Specifies the time at which the Compute Fleet is created.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeCreated?: utcDateTime; @doc("Specifies the ID which uniquely identifies a Compute Fleet.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) uniqueId?: string; } diff --git a/specification/azurefleet/AzureFleet.Management/virtualMachineScaleSet.tsp b/specification/azurefleet/AzureFleet.Management/virtualMachineScaleSet.tsp index b9b2a0b31cf3..63cd913813c6 100644 --- a/specification/azurefleet/AzureFleet.Management/virtualMachineScaleSet.tsp +++ b/specification/azurefleet/AzureFleet.Management/virtualMachineScaleSet.tsp @@ -18,7 +18,7 @@ model VirtualMachineScaleSet { @doc("The name of the virtualMachineScaleSet") @key("virtualMachineScaleSetName") @segment("virtualMachineScaleSets") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path name: string; @@ -26,26 +26,26 @@ model VirtualMachineScaleSet { The compute RP resource id of the virtualMachineScaleSet "subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}" """) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: armResourceIdentifier; @doc("Type of the virtualMachineScaleSet") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) type?: string; @removed(Versions.v2024_05_01_preview) @doc("This represents the Provisioning State of the VMSS in response to the last operation that was performed on it by Azure Fleet resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState: ProvisioningState; @added(Versions.v2024_05_01_preview) @doc("This represents the operationStatus of the VMSS in response to the last operation that was performed on it by Azure Fleet resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) operationStatus: ProvisioningState; @added(Versions.v2024_05_01_preview) @doc("Error Information when `operationStatus` is `Failed`") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) error?: ApiError; } diff --git a/specification/azurelargeinstance/AzureLargeInstance.Management/models.tsp b/specification/azurelargeinstance/AzureLargeInstance.Management/models.tsp index 84b27224da75..b1488cd41dfb 100644 --- a/specification/azurelargeinstance/AzureLargeInstance.Management/models.tsp +++ b/specification/azurelargeinstance/AzureLargeInstance.Management/models.tsp @@ -295,7 +295,7 @@ model AzureLargeInstanceProperties { @removed(Versions.v2024_08_01_preview) @renamedFrom(Versions.v2024_08_01_preview, "azureLargeInstanceId") @doc("Specifies the Azure Large Instance unique ID.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) azureLargeInstanceIdOld?: string; @added(Versions.v2024_08_01_preview) @@ -305,7 +305,7 @@ model AzureLargeInstanceProperties { @removed(Versions.v2024_08_01_preview) @renamedFrom(Versions.v2024_08_01_preview, "powerState") @doc("Resource power state") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) powerStateOld?: AzureLargeInstancePowerStateEnum; @added(Versions.v2024_08_01_preview) @@ -315,7 +315,7 @@ model AzureLargeInstanceProperties { @removed(Versions.v2024_08_01_preview) @renamedFrom(Versions.v2024_08_01_preview, "proximityPlacementGroup") @doc("Resource proximity placement group") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) proximityPlacementGroupOld?: string; @added(Versions.v2024_08_01_preview) @@ -325,7 +325,7 @@ model AzureLargeInstanceProperties { @removed(Versions.v2024_08_01_preview) @renamedFrom(Versions.v2024_08_01_preview, "hwRevision") @doc("Hardware revision of an Azure Large Instance") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) hwRevisionOld?: string; @added(Versions.v2024_08_01_preview) @@ -340,7 +340,7 @@ model AzureLargeInstanceProperties { partnerNodeId?: string; @doc("State of provisioning of the AzureLargeInstance") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: AzureLargeInstanceProvisioningStatesEnum; } @@ -349,7 +349,7 @@ model HardwareProfile { @removed(Versions.v2024_08_01_preview) @renamedFrom(Versions.v2024_08_01_preview, "hardwareType") @doc("Name of the hardware type (vendor and/or their product name)") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) hardwareTypeOld?: AzureLargeInstanceHardwareTypeNamesEnum; @added(Versions.v2024_08_01_preview) @@ -359,7 +359,7 @@ model HardwareProfile { @removed(Versions.v2024_08_01_preview) @renamedFrom(Versions.v2024_08_01_preview, "azureLargeInstanceSize") @doc("Specifies the Azure Large Instance SKU.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) azureLargeInstanceSizeOld?: AzureLargeInstanceSizeNamesEnum; @added(Versions.v2024_08_01_preview) @@ -372,7 +372,7 @@ model StorageProfile { @removed(Versions.v2024_08_01_preview) @renamedFrom(Versions.v2024_08_01_preview, "nfsIpAddress") @doc("IP Address to connect to storage.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nfsIpAddressOld?: string; @added(Versions.v2024_08_01_preview) @@ -401,7 +401,7 @@ model Disk { identify data disks within the VM and therefore must be unique for each data disk attached to a VM. """) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lun?: int32; } @@ -413,7 +413,7 @@ model OsProfile { @removed(Versions.v2024_08_01_preview) @renamedFrom(Versions.v2024_08_01_preview, "osType") @doc("This property allows you to specify the type of the OS.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) osTypeOld?: string; @added(Versions.v2024_08_01_preview) @@ -423,7 +423,7 @@ model OsProfile { @removed(Versions.v2024_08_01_preview) @renamedFrom(Versions.v2024_08_01_preview, "version") @doc("Specifies version of operating system.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) versionOld?: string; @added(Versions.v2024_08_01_preview) @@ -443,7 +443,7 @@ model NetworkProfile { @removed(Versions.v2024_08_01_preview) @doc("Specifies the circuit id for connecting to express route.") @renamedFrom(Versions.v2024_08_01_preview, "circuitId") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) circuitIdOld?: string; @added(Versions.v2024_08_01_preview) diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/AttestationStatus.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/AttestationStatus.tsp index 81c8a2243e47..5155f69c333a 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/AttestationStatus.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/AttestationStatus.tsp @@ -21,7 +21,7 @@ model AttestationStatus is ProxyResource { @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") @key("attestationStatus") @segment("attestationStatus") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path name: string; } diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GalleryImages.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GalleryImages.tsp index 4d3e664bf84e..dca1274e17e9 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GalleryImages.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GalleryImages.tsp @@ -21,7 +21,7 @@ model GalleryImage is TrackedResource { @path @key("galleryImageName") @segment("galleryImages") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("The extendedLocation of the resource.") diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GuestAgent.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GuestAgent.tsp index 5c5f5de75936..0529a1d8962d 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GuestAgent.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GuestAgent.tsp @@ -20,7 +20,7 @@ model GuestAgent is ProxyResource { @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") @key("guestAgent") @segment("guestAgents") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path name: string; } diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/HybridIdentityMetadata.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/HybridIdentityMetadata.tsp index 132a2c76c355..0cbdcba1c4b4 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/HybridIdentityMetadata.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/HybridIdentityMetadata.tsp @@ -25,7 +25,7 @@ model HybridIdentityMetadata @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") @key("hybridIdentityMetadatum") @segment("hybridIdentityMetadata") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path name: string; } diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/LogicalNetworks.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/LogicalNetworks.tsp index 0801390b3a5e..0a5767172485 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/LogicalNetworks.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/LogicalNetworks.tsp @@ -21,7 +21,7 @@ model LogicalNetwork is TrackedResource { @path @key("logicalNetworkName") @segment("logicalNetworks") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("The extendedLocation of the resource.") diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/MarketplaceGalleryImages.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/MarketplaceGalleryImages.tsp index cb77243bd947..0108508e5862 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/MarketplaceGalleryImages.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/MarketplaceGalleryImages.tsp @@ -22,7 +22,7 @@ model MarketplaceGalleryImage @path @key("marketplaceGalleryImageName") @segment("marketplaceGalleryImages") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("The extendedLocation of the resource.") diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkInterfaces.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkInterfaces.tsp index 500ce1230eac..98d269209e3e 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkInterfaces.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkInterfaces.tsp @@ -23,7 +23,7 @@ model NetworkInterface is TrackedResource { @path @key("networkInterfaceName") @segment("networkInterfaces") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("The extendedLocation of the resource.") diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkSecurityGroups.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkSecurityGroups.tsp index 6ac2ec2d9a38..cd111e0e7d80 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkSecurityGroups.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkSecurityGroups.tsp @@ -17,7 +17,7 @@ model NetworkSecurityGroup is TrackedResource { @path @key("networkSecurityGroupName") @segment("networkSecurityGroups") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("The extendedLocation of the resource.") diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/SecurityRules.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/SecurityRules.tsp index cf0d38d715ee..aab391204cd7 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/SecurityRules.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/SecurityRules.tsp @@ -18,7 +18,7 @@ model SecurityRule is ProxyResource { @path @key("securityRuleName") @segment("securityRules") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("The extendedLocation of the resource.") diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/StorageContainers.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/StorageContainers.tsp index af1c4473ae7d..9b5a70be7abe 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/StorageContainers.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/StorageContainers.tsp @@ -20,7 +20,7 @@ model StorageContainer is TrackedResource { @path @key("storageContainerName") @segment("storageContainers") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("The extendedLocation of the resource.") diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualHardDisks.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualHardDisks.tsp index 976caeff7566..a306d30aa3fb 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualHardDisks.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualHardDisks.tsp @@ -22,7 +22,7 @@ model VirtualHardDisk is TrackedResource { @path @key("virtualHardDiskName") @segment("virtualHardDisks") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("The extendedLocation of the resource.") diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualMachineInstance.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualMachineInstance.tsp index 8c8872fcc86f..621d9be52eed 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualMachineInstance.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualMachineInstance.tsp @@ -21,7 +21,7 @@ model VirtualMachineInstance @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") @key("virtualMachineInstance") @segment("virtualMachineInstances") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path name: string; diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/models.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/models.tsp index f8b651943ae2..059d4df491c7 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/models.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/models.tsp @@ -502,7 +502,7 @@ model StorageContainerArmReference { @doc("The ARM ID for a Gallery Image.") model ImageArmReference { @doc("The ARM ID for an image resource used by the virtual machine instance.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) id?: armResourceIdentifier<[ { type: "Microsoft.AzureStackHCI/galleryImages"; @@ -557,11 +557,11 @@ model GalleryImageProperties { version?: GalleryImageVersion; @doc("Provisioning state of the gallery image.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; @doc("The observed state of gallery images") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: GalleryImageStatus; @added(Versions.v2024_05_01_preview) @@ -623,7 +623,7 @@ model GalleryImageVersionStorageProfile { model GalleryDiskImage { #suppress "@azure-tools/typespec-azure-core/casing-style" "MB is a short form." @doc("This property indicates the size of the VHD to be created.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sizeInMB?: int64; } @@ -694,14 +694,14 @@ model LogicalNetworkProperties { subnets?: Subnet[]; @doc("Provisioning state of the logical network.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; @doc("name of the network switch to be used for VMs") vmSwitchName?: string; @doc("The observed state of logical networks") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: LogicalNetworkStatus; } @@ -755,15 +755,15 @@ model SubnetProperties { @doc("Route table resource.") model RouteTable { @doc("A unique read-only string that changes whenever the resource is updated.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) etag?: string; @doc("Resource name.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name?: string; @doc("Resource type.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) type?: string; #suppress "deprecated" "LEGACY flattening" @@ -825,31 +825,31 @@ model IPPool { @doc("IP Pool info") model IPPoolInfo { @doc("Number of IP addresses allocated from the IP Pool") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) used?: string; @doc("Number of IP addresses available in the IP Pool") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) available?: string; } @doc("Network Security Group resource.") model NetworkSecurityGroupProperties { @doc("A collection of references to network interfaces that are currently using this NSG.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", []) networkInterfaces?: NetworkInterfaceArmReference[]; @doc("A collection of references to logical networks that are currently using this NSG") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) subnets?: LogicalNetworkArmReference[]; @doc("The provisioning state of the network security group resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; @doc("The observed state of Network Security Group") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @added(Versions.v2025_02_01_preview) status?: NetworkSecurityGroupStatus; } @@ -907,7 +907,7 @@ model SecurityRuleProperties { direction: SecurityRuleDirection; @doc("Provisioning state of the SR") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; } @@ -928,11 +928,11 @@ model NetworkInterfaceProperties { createFromLocal?: boolean = false; @doc("Provisioning state of the network interface.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; @doc("The observed state of network interfaces") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: NetworkInterfaceStatus; @doc("NetworkSecurityGroup - Network Security Group attached to the network interface.") @@ -943,7 +943,7 @@ model NetworkInterfaceProperties { @doc("InterfaceIPConfiguration IPConfiguration in a network interface.") model IPConfiguration { @doc("Name - The name of the resource that is unique within a resource group. This name can be used to access the resource.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$") name?: string; @@ -956,12 +956,12 @@ model IPConfiguration { @doc("InterfaceIPConfigurationPropertiesFormat properties of IP configuration.") model IPConfigurationProperties { @doc("Gateway for network interface") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) gateway?: string; #suppress "@azure-tools/typespec-azure-core/casing-style" "IP is a short form. The casing is correct." @doc("prefixLength for network interface") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) prefixLength?: string; #suppress "@azure-tools/typespec-azure-core/casing-style" "IP is a short form. The casing is correct." @@ -1055,11 +1055,11 @@ model MarketplaceGalleryImageProperties { version?: GalleryImageVersion; @doc("Provisioning state of the marketplace gallery image.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; @doc("The observed state of marketplace gallery images") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: MarketplaceGalleryImageStatus; } @@ -1138,11 +1138,11 @@ model StorageContainerProperties { path: string; @doc("Provisioning state of the storage container.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; @doc("The observed state of storage containers") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: StorageContainerStatus; } @@ -1217,7 +1217,7 @@ model VirtualHardDiskProperties { createFromLocal?: boolean = false; @doc("Provisioning state of the virtual hard disk.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; @doc("Storage ContainerID of the storage container to be used for VHD") @@ -1228,7 +1228,7 @@ model VirtualHardDiskProperties { ]>; @doc("The observed state of virtual hard disks") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: VirtualHardDiskStatus; } @@ -1370,22 +1370,22 @@ model VirtualMachineInstanceProperties { createFromLocal?: boolean = false; @doc("Provisioning state of the virtual machine instance.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; @doc("The virtual machine instance view.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) instanceView?: VirtualMachineInstanceView; @doc("The observed state of virtual machine instances") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: VirtualMachineInstanceStatus; @doc("Guest agent install status.") guestAgentInstallStatus?: GuestAgentInstallStatus; @doc("Unique identifier for the vm resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) vmId?: string; @doc("Unique identifier defined by ARC to identify the guest of the VM.") @@ -1453,7 +1453,7 @@ model VirtualMachineInstancePropertiesNetworkProfile { @doc("OsProfile - describes the configuration of the operating system and sets login data") model VirtualMachineInstancePropertiesOsProfile { @doc("AdminPassword - admin password") - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) @secret adminPassword?: string; @@ -1548,7 +1548,7 @@ model VirtualMachineInstancePropertiesStorageProfile { dataDisks?: VirtualHardDiskArmReference[]; @doc("Which Image to use for the virtual machine instance") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) imageReference?: ImageArmReference; @doc("VHD to attach as OS disk") @@ -1667,35 +1667,35 @@ model VirtualMachineInstanceStatusProvisioningStatus { @doc("Defines the status of a guest agent installation.") model GuestAgentInstallStatus { @doc("Specifies the VM's unique SMBIOS ID.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) vmUuid?: string; @doc("The installation status of the hybrid machine agent installation.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: StatusTypes; @doc("The time of the last status change.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastStatusChange?: utcDateTime; @doc("The hybrid machine agent full version.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) agentVersion?: string; @doc("Details about the error state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errorDetails?: Azure.ResourceManager.Foundations.ErrorDetail[]; } @doc("Identity for the resource.") model Identity { @doc("The principal ID of resource identity. The value must be an UUID.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) principalId?: string; @doc("The tenant ID of resource. The value must be an UUID.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) tenantId?: string; @doc("The identity type.") @@ -1801,56 +1801,56 @@ model HybridIdentityMetadataProperties { publicKey?: string; @doc("Identity for the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) identity?: Identity; @doc("Provisioning state of the virtual machine instance.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; } @doc("Defines the attestation status properties") model AttestationStatusProperties { @doc("The status of whether secure boot is enabled.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) attestSecureBootEnabled?: AttestSecureBootPropertyEnum = AttestSecureBootPropertyEnum.Unknown; @doc("The status of whether attestation certificate is validated.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) attestationCertValidated?: AttestCertPropertyEnum = AttestCertPropertyEnum.Unknown; @doc("The status of whether the list of boot integrity properties is validated.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) bootIntegrityValidated?: AttestBootIntegrityPropertyEnum = AttestBootIntegrityPropertyEnum.Unknown; @doc("kernel version string for Linux VM.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) linuxKernelVersion?: string; @doc("The health status of attestation validation and parsing") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) healthStatus?: AttestHealthStatusEnum = AttestHealthStatusEnum.Unknown; @doc("The time stamp of the last time attestation token is validated by relying party service.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timestamp?: string; @doc("The error message of attestation validation and parsing") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errorMessage?: string; @doc("Provisioning state of the virtual machine instance.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; @doc("The hardware platform information from attestation token. This only applies to Confidential VM.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @added(Versions.v2024_08_01_preview) attestHardwarePlatform?: AttestHWPlatformEnum; @added(Versions.v2024_08_01_preview) @doc("The managed disk security encryption type from attestation token. This only applies to Confidential VM.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) attestDiskSecurityEncryptionType?: AttestDiskSecurityEncryptionTypeEnum; } @@ -1863,11 +1863,11 @@ model GuestAgentProperties { provisioningAction?: ProvisioningAction; @doc("The guest agent status.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: string; @doc("Provisioning state of the virtual machine instance.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningStateEnum; } @@ -1877,7 +1877,7 @@ model GuestCredential { username?: string; @doc("The password to connect with the guest.") - @visibility(Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Update) @secret password?: string; } diff --git a/specification/batch/Azure.Batch/models.tsp b/specification/batch/Azure.Batch/models.tsp index abe1dd9071a9..31e455ffe38d 100644 --- a/specification/batch/Azure.Batch/models.tsp +++ b/specification/batch/Azure.Batch/models.tsp @@ -861,7 +861,7 @@ model ImageReference { virtualMachineImageId?: string; @doc("The specific version of the platform image or marketplace image used to create the node. This read-only field differs from 'version' only if the value specified for 'version' when the pool was created was 'latest'.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) exactVersion?: string; @doc("The shared gallery image unique identifier. This property is mutually exclusive with other properties and can be fetched from shared gallery image GET call.") @@ -1146,43 +1146,43 @@ model FileProperties { """) model BatchJobSchedule { @doc("A string that uniquely identifies the schedule within the Account.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; @doc("The display name for the schedule.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) displayName?: string; @doc("The URL of the Job Schedule.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) url?: string; @doc("The ETag of the Job Schedule. This is an opaque string. You can use it to detect whether the Job Schedule has changed between requests. In particular, you can be pass the ETag with an Update Job Schedule request to specify that your changes should take effect only if nobody else has modified the schedule in the meantime.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) eTag?: string; @doc("The last modified time of the Job Schedule. This is the last time at which the schedule level data, such as the Job specification or recurrence information, changed. It does not factor in job-level changes such as new Jobs being created or Jobs changing state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastModified?: utcDateTime; @doc("The creation time of the Job Schedule.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) creationTime?: utcDateTime; @doc("The current state of the Job Schedule.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) state?: BatchJobScheduleState; @doc("The time at which the Job Schedule entered the current state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) stateTransitionTime?: utcDateTime; @doc("The previous state of the Job Schedule. This property is not present if the Job Schedule is in its initial active state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) previousState?: BatchJobScheduleState; @doc("The time at which the Job Schedule entered its previous state. This property is not present if the Job Schedule is in its initial active state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) previousStateTransitionTime?: utcDateTime; @doc("The schedule according to which Jobs will be created. All times are fixed respective to UTC and are not impacted by daylight saving time.") @@ -1192,14 +1192,14 @@ model BatchJobSchedule { jobSpecification: BatchJobSpecification; @doc("Information about Jobs that have been and will be run under this schedule.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) executionInfo?: BatchJobScheduleExecutionInfo; @doc("A list of name-value pairs associated with the schedule as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code.") metadata?: MetadataItem[]; @doc("The lifetime resource usage statistics for the Job Schedule. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) stats?: BatchJobScheduleStatistics; } @@ -2358,47 +2358,47 @@ model BatchJobScheduleListResult { @doc("An Azure Batch Job.") model BatchJob { @doc("A string that uniquely identifies the Job within the Account. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within an Account that differ only by case).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; @doc("The display name for the Job.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) displayName?: string; @doc("Whether Tasks in the Job can define dependencies on each other. The default is false.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) usesTaskDependencies?: boolean; @doc("The URL of the Job.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) url?: string; @doc("The ETag of the Job. This is an opaque string. You can use it to detect whether the Job has changed between requests. In particular, you can be pass the ETag when updating a Job to specify that your changes should take effect only if nobody else has modified the Job in the meantime.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) eTag?: string; @doc("The last modified time of the Job. This is the last time at which the Job level data, such as the Job state or priority, changed. It does not factor in task-level changes such as adding new Tasks or Tasks changing state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastModified?: utcDateTime; @doc("The creation time of the Job.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) creationTime?: utcDateTime; @doc("The current state of the Job.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) state?: BatchJobState; @doc("The time at which the Job entered its current state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) stateTransitionTime?: utcDateTime; @doc("The previous state of the Job. This property is not set if the Job is in its initial Active state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) previousState?: BatchJobState; @doc("The time at which the Job entered its previous state. This property is not set if the Job is in its initial Active state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) previousStateTransitionTime?: utcDateTime; @doc("The priority of the Job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0.") @@ -2414,19 +2414,19 @@ model BatchJob { constraints?: BatchJobConstraints; @doc("Details of a Job Manager Task to be launched when the Job is started.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) jobManagerTask?: BatchJobManagerTask; @doc("The Job Preparation Task. The Job Preparation Task is a special Task run on each Compute Node before any other Task of the Job.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) jobPreparationTask?: BatchJobPreparationTask; @doc("The Job Release Task. The Job Release Task is a special Task run at the end of the Job on each Compute Node that has run any other Task of the Job.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) jobReleaseTask?: BatchJobReleaseTask; @doc("The list of common environment variable settings. These environment variables are set for all Tasks in the Job (including the Job Manager, Job Preparation and Job Release Tasks). Individual Tasks can override an environment setting specified here by specifying the same setting name with a different value.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) commonEnvironmentSettings?: EnvironmentSetting[]; @doc("The Pool settings associated with the Job.") @@ -2436,22 +2436,22 @@ model BatchJob { onAllTasksComplete?: OnAllBatchTasksComplete; @doc("The action the Batch service should take when any Task in the Job fails. A Task is considered to have failed if has a failureInfo. A failureInfo is set if the Task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the Task, for example due to a resource file download error. The default is noaction.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) onTaskFailure?: OnBatchTaskFailure; @doc("The network configuration for the Job.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) networkConfiguration?: BatchJobNetworkConfiguration; @doc("A list of name-value pairs associated with the Job as metadata. The Batch service does not assign any meaning to metadata; it is solely for the use of user code.") metadata?: MetadataItem[]; @doc("The execution information for the Job.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) executionInfo?: BatchJobExecutionInfo; @doc("Resource usage statistics for the entire lifetime of the Job. This property is populated only if the BatchJob was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) stats?: BatchJobStatistics; } @@ -2774,145 +2774,145 @@ model BatchTaskSlotCounts { @doc("A Pool in the Azure Batch service.") model BatchPool { @doc("A string that uniquely identifies the Pool within the Account. The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within an Account that differ only by case).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; @doc("The display name for the Pool. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) displayName?: string; @doc("The URL of the Pool.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) url?: string; @doc("The ETag of the Pool. This is an opaque string. You can use it to detect whether the Pool has changed between requests. In particular, you can be pass the ETag when updating a Pool to specify that your changes should take effect only if nobody else has modified the Pool in the meantime.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) eTag?: string; @doc("The last modified time of the Pool. This is the last time at which the Pool level data, such as the targetDedicatedNodes or enableAutoscale settings, changed. It does not factor in node-level changes such as a Compute Node changing state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastModified?: utcDateTime; @doc("The creation time of the Pool.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) creationTime?: utcDateTime; @doc("The current state of the Pool.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) state?: BatchPoolState; @doc("The time at which the Pool entered its current state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) stateTransitionTime?: utcDateTime; @doc("Whether the Pool is resizing.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) allocationState?: AllocationState; @doc("The time at which the Pool entered its current allocation state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) allocationStateTransitionTime?: utcDateTime; @doc("The size of virtual machines in the Pool. All virtual machines in a Pool are the same size. For information about available VM sizes, see Sizes for Virtual Machines in Azure (https://learn.microsoft.com/azure/virtual-machines/sizes/overview). Batch supports all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) vmSize?: string; @doc("The virtual machine configuration for the Pool. This property must be specified.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) virtualMachineConfiguration?: VirtualMachineConfiguration; @doc("The timeout for allocation of Compute Nodes to the Pool. This is the timeout for the most recent resize operation. (The initial sizing when the Pool is created counts as a resize.) The default value is 15 minutes.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resizeTimeout?: duration; @doc("A list of errors encountered while performing the last resize on the Pool. This property is set only if one or more errors occurred during the last Pool resize, and only when the Pool allocationState is Steady.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resizeErrors?: ResizeError[]; @doc("The user-specified tags associated with the pool. The user-defined tags to be associated with the Azure Batch Pool. When specified, these tags are propagated to the backing Azure resources associated with the pool. This property can only be specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceTags?: Record; @doc("The number of dedicated Compute Nodes currently in the Pool.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) currentDedicatedNodes?: int32; @doc("The number of Spot/Low-priority Compute Nodes currently in the Pool. Spot/Low-priority Compute Nodes which have been preempted are included in this count.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) currentLowPriorityNodes?: int32; @doc("The desired number of dedicated Compute Nodes in the Pool.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetDedicatedNodes?: int32; @doc("The desired number of Spot/Low-priority Compute Nodes in the Pool.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetLowPriorityNodes?: int32; @doc("Whether the Pool size should automatically adjust over time. If false, at least one of targetDedicatedNodes and targetLowPriorityNodes must be specified. If true, the autoScaleFormula property is required and the Pool automatically resizes according to the formula. The default value is false.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) enableAutoScale?: boolean; @doc("A formula for the desired number of Compute Nodes in the Pool. This property is set only if the Pool automatically scales, i.e. enableAutoScale is true.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) autoScaleFormula?: string; @doc("The time interval at which to automatically adjust the Pool size according to the autoscale formula. This property is set only if the Pool automatically scales, i.e. enableAutoScale is true.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) autoScaleEvaluationInterval?: duration; @doc("The results and errors from the last execution of the autoscale formula. This property is set only if the Pool automatically scales, i.e. enableAutoScale is true.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) autoScaleRun?: AutoScaleRun; @doc("Whether the Pool permits direct communication between Compute Nodes. This imposes restrictions on which Compute Nodes can be assigned to the Pool. Specifying this value can reduce the chance of the requested number of Compute Nodes to be allocated in the Pool.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) enableInterNodeCommunication?: boolean; @doc("The network configuration for the Pool.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) networkConfiguration?: NetworkConfiguration; @doc("A Task specified to run on each Compute Node as it joins the Pool.") startTask?: BatchStartTask; @doc("The list of Packages to be installed on each Compute Node in the Pool. Changes to Package references affect all new Nodes joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. There is a maximum of 10 Package references on any given Pool.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) applicationPackageReferences?: BatchApplicationPackageReference[]; @doc("The number of task slots that can be used to run concurrent tasks on a single compute node in the pool. The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) taskSlotsPerNode?: int32; @doc("How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) taskSchedulingPolicy?: BatchTaskSchedulingPolicy; @doc("The list of user Accounts to be created on each Compute Node in the Pool.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) userAccounts?: UserAccount[]; @doc("A list of name-value pairs associated with the Pool as metadata.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) metadata?: MetadataItem[]; @doc("Utilization and resource usage statistics for the entire lifetime of the Pool. This property is populated only if the BatchPool was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) stats?: BatchPoolStatistics; @doc("A list of file systems to mount on each node in the pool. This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) mountConfiguration?: MountConfiguration[]; @doc("The identity of the Batch pool, if configured. The list of user identities associated with the Batch pool. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) identity?: BatchPoolIdentity; @doc("The desired node communication mode for the pool. If omitted, the default value is Default.") targetNodeCommunicationMode?: BatchNodeCommunicationMode; @doc("The current state of the pool communication mode.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) currentNodeCommunicationMode?: BatchNodeCommunicationMode; @doc("The upgrade policy for the Pool. Describes an upgrade policy - automatic, manual, or rolling.") @@ -3102,11 +3102,11 @@ model UserAssignedIdentity { resourceId: string; @doc("The client id of the user assigned identity.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) clientId?: string; @doc("The principal id of the user assigned identity.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) principalId?: string; } @@ -3184,110 +3184,110 @@ model BatchNodeDeallocateContent { """) model BatchTask { @doc("A string that uniquely identifies the Task within the Job. The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; @doc("A display name for the Task. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) displayName?: string; @doc("The URL of the Task.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) url?: string; @doc("The ETag of the Task. This is an opaque string. You can use it to detect whether the Task has changed between requests. In particular, you can be pass the ETag when updating a Task to specify that your changes should take effect only if nobody else has modified the Task in the meantime.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) eTag?: string; @doc("The last modified time of the Task.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastModified?: utcDateTime; @doc("The creation time of the Task.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) creationTime?: utcDateTime; @doc("How the Batch service should respond when the Task completes.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) exitConditions?: ExitConditions; @doc("The current state of the Task.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) state?: BatchTaskState; @doc("The time at which the Task entered its current state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) stateTransitionTime?: utcDateTime; @doc("The previous state of the Task. This property is not set if the Task is in its initial Active state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) previousState?: BatchTaskState; @doc("The time at which the Task entered its previous state. This property is not set if the Task is in its initial Active state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) previousStateTransitionTime?: utcDateTime; @doc("The command line of the Task. For multi-instance Tasks, the command line is executed as the primary Task, after the primary Task and all subtasks have finished executing the coordination command line. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using \"cmd /c MyCommand\" in Windows or \"/bin/sh -c MyCommand\" in Linux. If the command line refers to file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided environment variable (https://learn.microsoft.com/azure/batch/batch-compute-node-environment-variables).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) commandLine?: string; @doc("The settings for the container under which the Task runs. If the Pool that will run this Task has containerConfiguration set, this must be set as well. If the Pool that will run this Task doesn't have containerConfiguration set, this must not be set. When this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all Task environment variables are mapped into the container, and the Task command line is executed in the container. Files produced in the container outside of AZ_BATCH_NODE_ROOT_DIR might not be reflected to the host disk, meaning that Batch file APIs will not be able to access those files.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) containerSettings?: BatchTaskContainerSettings; @doc("A list of files that the Batch service will download to the Compute Node before running the command line. For multi-instance Tasks, the resource files will only be downloaded to the Compute Node on which the primary Task is executed. There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceFiles?: ResourceFile[]; @doc("A list of files that the Batch service will upload from the Compute Node after running the command line. For multi-instance Tasks, the files will only be uploaded from the Compute Node on which the primary Task is executed.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) outputFiles?: OutputFile[]; @doc("A list of environment variable settings for the Task.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) environmentSettings?: EnvironmentSetting[]; @doc("A locality hint that can be used by the Batch service to select a Compute Node on which to start the new Task.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) affinityInfo?: AffinityInfo; @doc("The execution constraints that apply to this Task.") constraints?: BatchTaskConstraints; @doc("The number of scheduling slots that the Task requires to run. The default is 1. A Task can only be scheduled to run on a compute node if the node has enough free scheduling slots available. For multi-instance Tasks, this must be 1.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) requiredSlots?: int32; @doc("The user identity under which the Task runs. If omitted, the Task runs as a non-administrative user unique to the Task.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) userIdentity?: UserIdentity; @doc("Information about the execution of the Task.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) executionInfo?: BatchTaskExecutionInfo; @doc("Information about the Compute Node on which the Task ran.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nodeInfo?: BatchNodeInfo; @doc("An object that indicates that the Task is a multi-instance Task, and contains information about how to run the multi-instance Task.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) multiInstanceSettings?: MultiInstanceSettings; @doc("Resource usage statistics for the Task.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) stats?: BatchTaskStatistics; @doc("The Tasks that this Task depends on. This Task will not be scheduled until all Tasks that it depends on have completed successfully. If any of those Tasks fail and exhaust their retry counts, this Task will never be scheduled.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) dependsOn?: BatchTaskDependencies; @doc("A list of Packages that the Batch service will deploy to the Compute Node before running the command line. Application packages are downloaded and deployed to a shared directory, not the Task working directory. Therefore, if a referenced package is already on the Node, and is up to date, then it is not re-downloaded; the existing copy on the Compute Node is used. If a referenced Package cannot be installed, for example because the package has been deleted or because download failed, the Task fails.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) applicationPackageReferences?: BatchApplicationPackageReference[]; @doc("The settings for an authentication token that the Task can use to perform Batch service operations. If this property is set, the Batch service provides the Task with an authentication token which can be used to authenticate Batch service operations without requiring an Account access key. The token is provided via the AZ_BATCH_AUTHENTICATION_TOKEN environment variable. The operations that the Task can carry out using the token depend on the settings. For example, a Task can request Job permissions in order to add other Tasks to the Job, or check the status of the Job or of other Tasks under the Job.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) authenticationTokenSettings?: AuthenticationTokenSettings; } diff --git a/specification/chaos/Chaos.Management/capability.models.tsp b/specification/chaos/Chaos.Management/capability.models.tsp index 9c91d4c76257..1ddc9c15fa90 100644 --- a/specification/chaos/Chaos.Management/capability.models.tsp +++ b/specification/chaos/Chaos.Management/capability.models.tsp @@ -37,32 +37,32 @@ model CapabilityProperties { /** * String of the Publisher that this Capability extends. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) publisher?: string; /** * String of the Target Type that this Capability extends. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetType?: string; /** * Localized string of the description. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) description?: string; /** * URL to retrieve JSON schema of the Capability parameters. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @maxLength(2048) parametersSchema?: string; /** * String of the URN for this Capability Type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @maxLength(2048) urn?: string; @@ -70,7 +70,7 @@ model CapabilityProperties { * Resource provisioning state. Not currently in use because resource is created synchronously. */ @removed(Microsoft.Chaos.Versions.v2025_01_01) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/chaos/Chaos.Management/capabilityType.models.tsp b/specification/chaos/Chaos.Management/capabilityType.models.tsp index d2f30b3ee97c..b88eb972d247 100644 --- a/specification/chaos/Chaos.Management/capabilityType.models.tsp +++ b/specification/chaos/Chaos.Management/capabilityType.models.tsp @@ -34,70 +34,70 @@ model CapabilityTypeProperties { /** * String of the Publisher that this Capability Type extends. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) publisher?: string; /** * String of the Target Type that this Capability Type extends. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetType?: string; /** * Localized string of the display name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) displayName?: string; /** * Localized string of the description. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) description?: string; /** * URL to retrieve JSON schema of the Capability Type parameters. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @maxLength(2048) parametersSchema?: string; /** * String of the URN for this Capability Type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @maxLength(2048) urn?: string; /** * String of the kind of this Capability Type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) kind?: string; /** * Control plane actions necessary to execute capability type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) azureRbacActions?: string[]; /** * Data plane actions necessary to execute capability type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) azureRbacDataActions?: string[]; /** * Required Azure Role Definition Ids to execute capability type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @added(Microsoft.Chaos.Versions.v2025_01_01) requiredAzureRoleDefinitionIds?: string[]; /** * Runtime properties of this Capability Type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) runtimeProperties?: CapabilityTypePropertiesRuntimeProperties; } @@ -108,7 +108,7 @@ model CapabilityTypePropertiesRuntimeProperties { /** * String of the kind of the resource's action type (continuous or discrete). */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) kind?: string; } diff --git a/specification/chaos/Chaos.Management/common.models.tsp b/specification/chaos/Chaos.Management/common.models.tsp index ccc7a08dd924..a5e9314eeaab 100644 --- a/specification/chaos/Chaos.Management/common.models.tsp +++ b/specification/chaos/Chaos.Management/common.models.tsp @@ -84,13 +84,13 @@ model OperationStatus extends ErrorResponse { /** * The start time of the operation. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) startTime?: utcDateTime; /** * The end time of the operation. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) endTime?: utcDateTime; /** diff --git a/specification/chaos/Chaos.Management/experiment.models.tsp b/specification/chaos/Chaos.Management/experiment.models.tsp index 37f73a9689d4..74cda3a5fe85 100644 --- a/specification/chaos/Chaos.Management/experiment.models.tsp +++ b/specification/chaos/Chaos.Management/experiment.models.tsp @@ -98,7 +98,7 @@ model ExperimentProperties { /** * Most recent provisioning state for the given experiment resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** diff --git a/specification/chaos/Chaos.Management/experimentExecution.models.tsp b/specification/chaos/Chaos.Management/experimentExecution.models.tsp index 9ee3ecbccbd6..10555d029643 100644 --- a/specification/chaos/Chaos.Management/experimentExecution.models.tsp +++ b/specification/chaos/Chaos.Management/experimentExecution.models.tsp @@ -35,26 +35,26 @@ model ExperimentExecutionProperties { /** * The status of the execution. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: string; /** * String that represents the start date time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) startedAt?: utcDateTime; /** * String that represents the stop date time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) stoppedAt?: utcDateTime; /** * Resource provisioning state. Not currently in use for executions. */ @removed(Microsoft.Chaos.Versions.v2025_01_01) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -65,25 +65,25 @@ model ExperimentExecutionDetails { /** * String of the resource type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) type?: string; /** * String of the fully qualified resource ID. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; /** * String of the resource name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name?: string; /** * The properties of the experiment execution details. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) properties?: ExperimentExecutionDetailsProperties; } @@ -95,44 +95,44 @@ model ExperimentExecutionDetailsProperties { /** * The status of the execution. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: string; /** * String that represents the start date time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) startedAt?: utcDateTime; /** * String that represents the stop date time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) stoppedAt?: utcDateTime; /** * Resource provisioning state. Not currently in use for executions. */ @removed(Microsoft.Chaos.Versions.v2025_01_01) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * The reason why the execution failed. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) failureReason?: string; /** * String that represents the last action date time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastActionAt?: utcDateTime; /** * The information of the experiment run. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) runInformation?: ExperimentExecutionDetailsPropertiesRunInformation; } @@ -143,7 +143,7 @@ model ExperimentExecutionDetailsPropertiesRunInformation { /** * The steps of the experiment run. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", ["stepName"]) steps?: StepStatus[]; } @@ -155,25 +155,25 @@ model StepStatus { /** * The name of the step. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) stepName?: string; /** * The id of the step. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) stepId?: string; /** * The value of the status of the step. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: string; /** * The array of branches. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", ["branchName"]) branches?: BranchStatus[]; } @@ -185,25 +185,25 @@ model BranchStatus { /** * The name of the branch status. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) branchName?: string; /** * The id of the branch status. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) branchId?: string; /** * The status of the branch. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: string; /** * The array of actions. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", ["actionId"]) actions?: ActionStatus[]; } @@ -215,37 +215,37 @@ model ActionStatus { /** * The name of the action status. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) actionName?: string; /** * The id of the action status. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) actionId?: string; /** * The status of the action. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: string; /** * String that represents the start time of the action. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) startTime?: utcDateTime; /** * String that represents the end time of the action. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) endTime?: utcDateTime; /** * The array of targets. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) targets?: ExperimentExecutionActionTargetDetailsProperties[]; } @@ -257,31 +257,31 @@ model ExperimentExecutionActionTargetDetailsProperties { /** * The status of the execution. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: string; /** * The target for the action. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) target?: string; /** * String that represents the failed date time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetFailedTime?: utcDateTime; /** * String that represents the completed date time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetCompletedTime?: utcDateTime; /** * The error of the action. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) error?: ExperimentExecutionActionTargetDetailsError; } @@ -292,13 +292,13 @@ model ExperimentExecutionActionTargetDetailsError { /** * The error code. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) code?: string; /** * The error message */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) message?: string; } diff --git a/specification/chaos/Chaos.Management/privateAccess.models.tsp b/specification/chaos/Chaos.Management/privateAccess.models.tsp index df1da27240a0..fdcaa840e9df 100644 --- a/specification/chaos/Chaos.Management/privateAccess.models.tsp +++ b/specification/chaos/Chaos.Management/privateAccess.models.tsp @@ -41,13 +41,13 @@ model PrivateAccessProperties { /** * Most recent provisioning state for the given privateAccess resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * A readonly collection of private endpoint connection. Currently only one endpoint connection is supported. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) privateEndpointConnections?: PrivateEndpointConnection[]; /** diff --git a/specification/chaos/Chaos.Management/privateEndpointConnection.models.tsp b/specification/chaos/Chaos.Management/privateEndpointConnection.models.tsp index 5b5da38a7925..7bf7c8157bdc 100644 --- a/specification/chaos/Chaos.Management/privateEndpointConnection.models.tsp +++ b/specification/chaos/Chaos.Management/privateEndpointConnection.models.tsp @@ -33,7 +33,7 @@ model PrivateEndpointConnectionProperties { /** * The group ids for the private endpoint resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) groupIds?: string[]; /** @@ -49,7 +49,7 @@ model PrivateEndpointConnectionProperties { /** * The provisioning state of the private endpoint connection resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -60,7 +60,7 @@ model PrivateEndpoint { /** * The ARM identifier for private endpoint. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; } @@ -135,13 +135,13 @@ model PrivateLinkResourceProperties { /** * The private link resource group id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) groupId?: string; /** * The private link resource required member names. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) requiredMembers?: string[]; /** @@ -152,7 +152,7 @@ model PrivateLinkResourceProperties { /** * Resource provisioning state. Not currently in use. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/chaos/Chaos.Management/targetType.models.tsp b/specification/chaos/Chaos.Management/targetType.models.tsp index 558528770d7a..85bd62d5f095 100644 --- a/specification/chaos/Chaos.Management/targetType.models.tsp +++ b/specification/chaos/Chaos.Management/targetType.models.tsp @@ -35,26 +35,26 @@ model TargetTypeProperties { /** * Localized string of the display name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) displayName?: string; /** * Localized string of the description. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) description?: string; /** * URL to retrieve JSON schema of the Target Type properties. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @maxLength(2048) propertiesSchema?: string; /** * List of resource types this Target Type can extend. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceTypes?: string[]; } diff --git a/specification/codesigning/CodeSigning.Management/models.tsp b/specification/codesigning/CodeSigning.Management/models.tsp index e5ca0117b948..00a5fa7ac530 100644 --- a/specification/codesigning/CodeSigning.Management/models.tsp +++ b/specification/codesigning/CodeSigning.Management/models.tsp @@ -128,14 +128,14 @@ union NameUnavailabilityReason { @doc("Properties of the trusted signing account.") model CodeSigningAccountProperties { @doc("The URI of the trusted signing account which is used during signing files.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) accountUri?: string; @doc("SKU of the trusted signing account.") sku?: AccountSku; @doc("Status of the current operation on trusted signing account.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -178,22 +178,22 @@ model CertificateProfileProperties { @removed(Versions.v2024_09_30_preview) @doc("Used as CN in the certificate subject name.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) commonName?: string; @removed(Versions.v2024_09_30_preview) @doc("Used as O in the certificate subject name.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) organization?: string; @removed(Versions.v2024_09_30_preview) @doc("Used as OU in the private trust certificate subject name.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) organizationUnit?: string; @removed(Versions.v2024_09_30_preview) @doc("Used as STREET in the certificate subject name.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) streetAddress?: string; @doc("Whether to include STREET in the certificate subject name.") @@ -201,7 +201,7 @@ model CertificateProfileProperties { @removed(Versions.v2024_09_30_preview) @doc("Used as L in the certificate subject name.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) city?: string; @doc("Whether to include L in the certificate subject name. Applicable only for private trust, private trust ci profile types") @@ -209,7 +209,7 @@ model CertificateProfileProperties { @removed(Versions.v2024_09_30_preview) @doc("Used as S in the certificate subject name.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) state?: string; @doc("Whether to include S in the certificate subject name. Applicable only for private trust, private trust ci profile types") @@ -217,7 +217,7 @@ model CertificateProfileProperties { @removed(Versions.v2024_09_30_preview) @doc("Used as C in the certificate subject name.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) country?: string; @doc("Whether to include C in the certificate subject name. Applicable only for private trust, private trust ci profile types") @@ -225,7 +225,7 @@ model CertificateProfileProperties { @removed(Versions.v2024_09_30_preview) @doc("Used as PC in the certificate subject name.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) postalCode?: string; @doc("Whether to include PC in the certificate subject name.") @@ -233,7 +233,7 @@ model CertificateProfileProperties { @removed(Versions.v2024_09_30_preview) @doc("Enhanced key usage of the certificate.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) enhancedKeyUsage?: string; @doc("Identity validation id used for the certificate subject name.") @@ -241,16 +241,16 @@ model CertificateProfileProperties { identityValidationId: string; @doc("Status of the current operation on certificate profile.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @doc("Status of the certificate profile.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: CertificateProfileStatus; #suppress "deprecated" "Legacy flatten" @doc("List of renewed certificates.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", []) @Azure.ClientGenerator.Core.flattenProperty certificates?: Certificate[]; @@ -335,14 +335,14 @@ model CheckNameAvailability { @doc("The CheckNameAvailability operation response.") model CheckNameAvailabilityResult { @doc("A boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nameAvailable?: boolean; @doc("The reason that a trusted signing account name could not be used. The Reason element is only returned if nameAvailable is false.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) reason?: NameUnavailabilityReason; @doc("An error message explaining the Reason value in more detail.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) message?: string; } diff --git a/specification/cognitiveservices/AnomalyDetector/multivariate/models.tsp b/specification/cognitiveservices/AnomalyDetector/multivariate/models.tsp index 135335748cc6..8e11dc4d80c8 100644 --- a/specification/cognitiveservices/AnomalyDetector/multivariate/models.tsp +++ b/specification/cognitiveservices/AnomalyDetector/multivariate/models.tsp @@ -264,15 +264,15 @@ model ModelInfo { alignPolicy?: AlignPolicy; @doc("Model status.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: ModelStatus; @doc("Error messages after failure to create a model.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errors?: ErrorResponse[]; @doc("Diagnostics information to help inspect the states of a model or variable.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) diagnosticsInfo?: DiagnosticsInfo; } diff --git a/specification/cognitiveservices/AnomalyDetector/univariate/models.tsp b/specification/cognitiveservices/AnomalyDetector/univariate/models.tsp index 16e206204e03..5eeb3e816a07 100644 --- a/specification/cognitiveservices/AnomalyDetector/univariate/models.tsp +++ b/specification/cognitiveservices/AnomalyDetector/univariate/models.tsp @@ -288,7 +288,7 @@ model UnivariateChangePointDetectionResult { Frequency extracted from the series. Zero means no recurrent pattern has been found. """) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) period?: int32; @doc(""" diff --git a/specification/cognitiveservices/ContentSafety/models.tsp b/specification/cognitiveservices/ContentSafety/models.tsp index 87877cd8e08a..b0b9233d8908 100644 --- a/specification/cognitiveservices/ContentSafety/models.tsp +++ b/specification/cognitiveservices/ContentSafety/models.tsp @@ -159,7 +159,7 @@ model TextBlocklist { @doc("Text blocklist name.") @pattern("^[0-9A-Za-z._~-]+$") @key("blocklistName") - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Query) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Query) @maxLength(64) @clientName("Name", "csharp") @clientName("name", "java") @@ -176,7 +176,7 @@ model TextBlocklist { model TextBlocklistItem { @doc("The service will generate a BlocklistItemId, which will be a UUID.") @key("blocklistItemId") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @maxLength(64) blocklistItemId: string; diff --git a/specification/cognitiveservices/Language.AnalyzeConversations-authoring/models/project.tsp b/specification/cognitiveservices/Language.AnalyzeConversations-authoring/models/project.tsp index 1bb72bd9812d..0434b4edaa82 100644 --- a/specification/cognitiveservices/Language.AnalyzeConversations-authoring/models/project.tsp +++ b/specification/cognitiveservices/Language.AnalyzeConversations-authoring/models/project.tsp @@ -64,19 +64,19 @@ model AnalyzeConversationAuthoringProjectMetadata { /** * Represents the project kind. */ - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) projectKind: ProjectKind; /** * The project settings. */ - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) settings?: AnalyzeConversationAuthoringProjectSettings; /** * The storage container name in case of conversation summarization. */ - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) @added(Versions.v2023_04_15_preview) storageInputContainerName?: string; @@ -84,26 +84,26 @@ model AnalyzeConversationAuthoringProjectMetadata { * The new project name. */ @key("projectName") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) @maxLength(100) projectName: string; /** * Whether the project would be used for multiple languages or not. */ - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) multilingual?: boolean; /** * The project description. */ - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) description?: string; /** * The project language. This is BCP-47 representation of a language. For example, use "en" for English, "en-gb" for English (UK), "es" for Spanish etc. */ - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) language: string; } @@ -355,7 +355,7 @@ model AnalyzeConversationAuthoringJobState { * The job ID. */ @key("jobId") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) jobId: string; /** @@ -419,7 +419,7 @@ model AnalyzeConversationAuthoringProjectDeployment { * Represents deployment name. */ @key("deploymentName") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) deploymentName: string; /** @@ -600,7 +600,7 @@ model AnalyzeConversationAuthoringProjectTrainedModel { * The trained model label. */ @key("trainedModelLabel") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) label: string; /** @@ -737,7 +737,7 @@ model AnalyzeConversationAuthoringUtteranceEvaluationResult { * Represents the utterance text. */ @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) text: string; /** @@ -1064,7 +1064,7 @@ model AnalyzeConversationAuthoringAssignedDeploymentResource { * The resource ID. */ @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @clientName("resourceId", "csharp") azureResourceId: string; @@ -1263,7 +1263,7 @@ model AnalyzeConversationAuthoringAssignedProjectDeploymentsMetadata { * Represents the project name. */ @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) projectName: string; /** @@ -1321,7 +1321,7 @@ model AnalyzeConversationAuthoringSupportedLanguage { * The language name. */ @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) languageName: string; /** @@ -1356,7 +1356,7 @@ model AnalyzeConversationAuthoringPrebuiltEntity { * The prebuilt entity category. */ @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) category: string; /** @@ -1396,7 +1396,7 @@ model AnalyzeConversationAuthoringTrainingConfigVersion { * Represents the version of the config. */ @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) trainingConfigVersion: string; /** @@ -1851,7 +1851,7 @@ model AnalyzeConversationAuthoringExportedTrainedModel { * The exported model name. */ @key("exportedModelName") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) exportedModelName: string; /** diff --git a/specification/cognitiveservices/Language.AnalyzeDocuments/models/common.models.tsp b/specification/cognitiveservices/Language.AnalyzeDocuments/models/common.models.tsp index 49d3e8617dc4..faed464d5dff 100644 --- a/specification/cognitiveservices/Language.AnalyzeDocuments/models/common.models.tsp +++ b/specification/cognitiveservices/Language.AnalyzeDocuments/models/common.models.tsp @@ -625,7 +625,7 @@ model JobState { /** job ID */ @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) jobId: uuid; /** last updated date and time */ diff --git a/specification/cognitiveservices/Language.AnalyzeText-authoring/models.tsp b/specification/cognitiveservices/Language.AnalyzeText-authoring/models.tsp index 2461e58d8e7f..b5bdc53a4cda 100644 --- a/specification/cognitiveservices/Language.AnalyzeText-authoring/models.tsp +++ b/specification/cognitiveservices/Language.AnalyzeText-authoring/models.tsp @@ -231,7 +231,7 @@ model TextAnalysisAuthoringProjectMetadata { * The new project name. */ @key("projectName") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) projectName: string; /** @@ -599,7 +599,7 @@ model TextAnalysisAuthoringJobState { * The job ID. */ @key("jobId") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) jobId: string; /** @@ -676,7 +676,7 @@ model TextAnalysisAuthoringProjectDeployment { * Represents deployment name. */ @key("deploymentName") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) deploymentName: string; /** @@ -844,7 +844,7 @@ model TextAnalysisAuthoringExportedTrainedModel { * The exported model name. */ @key("exportedModelName") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) exportedModelName: string; /** @@ -960,7 +960,7 @@ model TextAnalysisAuthoringProjectTrainedModel { * The trained model label. */ @key("trainedModelLabel") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) label: string; /** @@ -1061,7 +1061,7 @@ model TextAnalysisAuthoringDocumentEvaluationResult { * Represents the project kind. */ @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) projectKind: ProjectKind; /** @@ -1172,7 +1172,7 @@ model TextAnalysisAuthoringAssignedDeploymentResource { * The resource ID. */ @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) azureResourceId: string; /** @@ -1372,7 +1372,7 @@ model TextAnalysisAuthoringAssignedProjectDeploymentsMetadata { * Represents the project name. */ @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) projectName: string; /** @@ -1428,7 +1428,7 @@ model TextAnalysisAuthoringSupportedLanguage { * The language name. */ @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) languageName: string; /** @@ -1465,7 +1465,7 @@ model TextAnalysisAuthoringPrebuiltEntity { * The prebuilt entity category. */ @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) category: string; /** @@ -1505,7 +1505,7 @@ model TextAnalysisAuthoringTrainingConfigVersion { * Represents the version of the config. */ @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) trainingConfigVersion: string; /** diff --git a/specification/cognitiveservices/Language.AnalyzeText/models/common.models.tsp b/specification/cognitiveservices/Language.AnalyzeText/models/common.models.tsp index a682a14e95c3..fd4af0988c8d 100644 --- a/specification/cognitiveservices/Language.AnalyzeText/models/common.models.tsp +++ b/specification/cognitiveservices/Language.AnalyzeText/models/common.models.tsp @@ -501,7 +501,7 @@ model JobState { /** job ID */ @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) jobId: uuid; /** last updated date and time */ diff --git a/specification/cognitiveservices/Language.Conversations/models/common.tsp b/specification/cognitiveservices/Language.Conversations/models/common.tsp index 29634aee69e0..ed94266d9dd1 100644 --- a/specification/cognitiveservices/Language.Conversations/models/common.tsp +++ b/specification/cognitiveservices/Language.Conversations/models/common.tsp @@ -105,7 +105,7 @@ model JobState { /** job ID */ @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) jobId: uuid; /** last updated date and time */ @@ -388,7 +388,7 @@ model CustomResult { model AnalyzeConversationTask { /** The base class of a conversation input task. */ @key - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Query) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Query) kind: AnalyzeConversationTaskKind; } @@ -835,7 +835,7 @@ model AnalyzeConversationJobsInput { /** Analysis Input */ @key - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Query) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Query) analysisInput: MultiLanguageConversationAnalysisInput; /** Set of tasks to execute on the input conversation. */ diff --git a/specification/cognitiveservices/OpenAI.Inference/routes/common.tsp b/specification/cognitiveservices/OpenAI.Inference/routes/common.tsp index 88a79a4dbd03..3dbbc044e54a 100644 --- a/specification/cognitiveservices/OpenAI.Inference/routes/common.tsp +++ b/specification/cognitiveservices/OpenAI.Inference/routes/common.tsp @@ -9,7 +9,7 @@ using Azure.ClientGenerator.Core; @doc("A specific deployment") @TypeSpec.Rest.resource("deployments") model Deployment { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Specifies either the model deployment name (when using Azure OpenAI) or model name (when using non-Azure OpenAI) to use for this request.") @clientName("deploymentOrModelName", "java") @key diff --git a/specification/cognitiveservices/Speech.VideoTranslation/main.tsp b/specification/cognitiveservices/Speech.VideoTranslation/main.tsp index 1fa9f745774d..615e5c8e3129 100644 --- a/specification/cognitiveservices/Speech.VideoTranslation/main.tsp +++ b/specification/cognitiveservices/Speech.VideoTranslation/main.tsp @@ -188,7 +188,7 @@ model IterationInput { model OperationIdHeader { @doc("Operation ID.") @header("Operation-Id") - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) operationId: resourceId; } @@ -197,7 +197,7 @@ model OperationIdHeader { model Translation { @doc("Translation resource ID.") @key("translationId") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: resourceId; @doc("Translation input.") @@ -210,19 +210,19 @@ model Translation { description?: string; @doc("The timestamp when the object was created. The timestamp is encoded as ISO 8601 date and time format (\"YYYY-MM-DDThh:mm:ssZ\", see https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) createdDateTime?: utcDateTime; @doc("Latest iteration of the translation.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) latestIteration?: Iteration; @doc("Latest completed iteration of the translation.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) latestSucceededIteration?: Iteration; @doc("Translation failure reason") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) failureReason?: string; } @@ -232,7 +232,7 @@ model Translation { model Iteration { @doc("Iteration ID") @key("iterationId") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: resourceId; @doc("Iteration input.") @@ -242,23 +242,23 @@ model Iteration { description?: string; @doc("Iteration status") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: Status; @doc("Iteration failure reason") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) failureReason?: string; @doc("The timestamp when the object was created. The timestamp is encoded as ISO 8601 date and time format (\"YYYY-MM-DDThh:mm:ssZ\", see https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) createdDateTime?: utcDateTime; @doc("The timestamp when the current status was entered. The timestamp is encoded as ISO 8601 date and time format (\"YYYY-MM-DDThh:mm:ssZ\", see https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastActionDateTime?: utcDateTime; @doc("Iteration result.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) result?: IterationResult; } @@ -267,7 +267,7 @@ model Iteration { model Operation { @doc("Operation ID") @key("operationId") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: resourceId; @doc("Operation status") diff --git a/specification/communication/Communication.JobRouter/models.tsp b/specification/communication/Communication.JobRouter/models.tsp index 1d89755c15e0..fa7d49c4324b 100644 --- a/specification/communication/Communication.JobRouter/models.tsp +++ b/specification/communication/Communication.JobRouter/models.tsp @@ -19,7 +19,7 @@ namespace AzureCommunicationRoutingService; @doc("Provides the 'Last-Modified' header to enable conditional (cached) requests") model LastModifiedResponseEnvelope { @header("Last-Modified") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The last modified timestamp.") @encode("rfc7231") lastModifiedTimestamp?: utcDateTime; @@ -29,12 +29,24 @@ model LastModifiedResponseEnvelope { @doc("Provides the 'If-*' headers to enable conditional (cached) responses for JobRouter.") model RouterConditionalRequestHeaders { - @visibility(Lifecycle.Read, Lifecycle.Query, Lifecycle.Create, Lifecycle.Update, Lifecycle.Delete) + @visibility( + Lifecycle.Read, + Lifecycle.Query, + Lifecycle.Create, + Lifecycle.Update, + Lifecycle.Delete + ) @header("If-Match") @doc("The request should only proceed if an entity matches this string.") ifMatch?: string; - @visibility(Lifecycle.Read, Lifecycle.Query, Lifecycle.Create, Lifecycle.Update, Lifecycle.Delete) + @visibility( + Lifecycle.Read, + Lifecycle.Query, + Lifecycle.Create, + Lifecycle.Update, + Lifecycle.Delete + ) @header("If-Unmodified-Since") @doc("The request should only proceed if the entity was not modified after this time.") @encode("rfc7231") @@ -360,7 +372,7 @@ model ClassificationPolicy { @key("classificationPolicyId") @doc("Id of a classification policy.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: string; @doc("Friendly name of this policy.") @@ -400,7 +412,7 @@ model DistributionPolicy { @key("distributionPolicyId") @doc("Id of a distribution policy.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: string; @doc("Friendly name of this policy.") @@ -436,7 +448,7 @@ model ExceptionPolicy { @key("exceptionPolicyId") @doc("Id of an exception policy.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: string; @doc("Friendly name of this policy.") @@ -481,18 +493,18 @@ model RouterJob { @key("jobId") @doc("Id of a job.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: string; @doc("Reference to an external parent context, eg. call ID.") channelReference?: string; @doc("The status of the job.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: RouterJobStatus; @doc("Timestamp a job was queued in UTC.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) enqueuedAt?: utcDateTime; @doc("The channel identifier. eg. voice, chat, etc.") @@ -514,7 +526,7 @@ model RouterJob { requestedWorkerSelectors?: RouterWorkerSelector[]; @doc("A collection of worker selectors attached by a classification policy, which a worker must satisfy in order to process this job.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) attachedWorkerSelectors?: RouterWorkerSelector[]; #suppress "@azure-tools/typespec-azure-core/bad-record-type" "Unions are currently not allowed in spec." @@ -522,7 +534,7 @@ model RouterJob { labels?: Record; @doc("A collection of the assignments of the job. Key is AssignmentId.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) assignments?: Record; #suppress "@azure-tools/typespec-azure-core/bad-record-type" "Unions are currently not allowed in spec." @@ -533,7 +545,7 @@ model RouterJob { notes?: RouterJobNote[]; @doc("If set, job will be scheduled to be enqueued at a given time.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) scheduledAt?: utcDateTime; @doc("If provided, will determine how job matching will be carried out. Default mode: QueueAndMatchMode.") @@ -559,11 +571,11 @@ model RouterWorkerSelector { expedite?: boolean; @doc("Status of the worker selector.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: RouterWorkerSelectorStatus; @doc("The time at which this worker selector expires in UTC.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) expiresAt?: utcDateTime; } @@ -573,7 +585,7 @@ model RouterWorkerSelector { model RouterJobAssignment { @key @doc("Id of a job assignment.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) assignmentId: string; @doc("Id of the Worker assigned to the job.") @@ -715,7 +727,7 @@ model RouterQueue { @key("queueId") @doc("Id of a queue.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: string; @doc("Friendly name of this queue.") @@ -754,11 +766,11 @@ model RouterWorker { @key("workerId") @doc("Id of a worker.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: string; @doc("Current state of a worker.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) state?: RouterWorkerState; @doc("Collection of queue(s) that this worker can receive work from.") @@ -779,15 +791,15 @@ model RouterWorker { channels?: RouterChannel[]; @doc("A list of active offers issued to this worker.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) offers?: RouterJobOffer[]; @doc("A list of assigned jobs attached to this worker.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) assignedJobs?: RouterWorkerAssignment[]; @doc("A value indicating the workers capacity. A value of '1' means all capacity is consumed. A value of '0' means no capacity is currently consumed.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) loadRatio?: float64; @doc("A flag indicating this worker is open to receive offers or not.") @@ -816,7 +828,7 @@ model RouterChannel { model RouterJobOffer { @key @doc("Id of an offer.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) offerId: string; @doc("Id of the job.") diff --git a/specification/communication/Communication.Messages/models.tsp b/specification/communication/Communication.Messages/models.tsp index 7734b3c02f0a..dc72872247be 100644 --- a/specification/communication/Communication.Messages/models.tsp +++ b/specification/communication/Communication.Messages/models.tsp @@ -646,7 +646,7 @@ model WhatsAppMessageTemplateItem extends MessageTemplateItem { @doc("A notification.") model Notifications { @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The notification ID.") id: string; } @@ -655,7 +655,7 @@ model Notifications { @doc("A communication channel.") model CommunicationChannel { @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The registration ID of the channel.") channelId: uuid; } @@ -664,7 +664,7 @@ model CommunicationChannel { @doc("A data stream.") model MessageDataStream { @key - @invisible(Lifecycle) // this model is only used as a parameter + @invisible(Lifecycle) // this model is only used as a parameter @doc("The stream ID.") @clientName("mediaId", "java") id: string; @@ -684,7 +684,7 @@ model MessageDataStream { @doc("The message template as returned from the service.") model MessageTemplateItem { @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The template's name.") name: string; diff --git a/specification/communitytraining/Community.Management/main.tsp b/specification/communitytraining/Community.Management/main.tsp index dc632d21b068..16f2ea0189c1 100644 --- a/specification/communitytraining/Community.Management/main.tsp +++ b/specification/communitytraining/Community.Management/main.tsp @@ -60,75 +60,75 @@ union ProvisioningState { @doc("Details of the Community CommunityTraining Identity Configuration") model IdentityConfigurationProperties { - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @doc("The identity type of the Community Training Resource") identityType: string; - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @doc("To indicate whether the Community Training Resource has Teams enabled") teamsEnabled?: boolean = false; - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @doc("The tenantId of the selected identity provider for the Community Training Resource") tenantId: string; - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @doc("The domain name of the selected identity provider for the Community Training Resource") domainName: string; - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @doc("The clientId of the application registered in the selected identity provider for the Community Training Resource") clientId: string; - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @doc("The client secret of the application registered in the selected identity provider for the Community Training Resource") @secret clientSecret: string; - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @doc("The name of the authentication policy registered in ADB2C for the Community Training Resource") b2cAuthenticationPolicy?: string; - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @doc("The name of the password reset policy registered in ADB2C for the Community Training Resource") b2cPasswordResetPolicy?: string; - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @doc("The custom login parameters for the Community Training Resource") customLoginParameters?: string; } @doc("Details of the Community CommunityTraining.") model CommunityTrainingProperties { - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("The portal name (website name) of the Community Training instance") portalName: string; - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("The email address of the portal admin") portalAdminEmailAddress: string; - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("The organization name of the portal owner") portalOwnerOrganizationName: string; - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("The email address of the portal owner. Will be used as the primary contact") portalOwnerEmailAddress: string; - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @doc("The identity configuration of the Community Training resource") identityConfiguration: IdentityConfigurationProperties; - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("To indicate whether the Community Training instance has Zone Redundancy enabled") zoneRedundancyEnabled: boolean; - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("To indicate whether the Community Training instance has Disaster Recovery enabled") disasterRecoveryEnabled: boolean; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/computeschedule/ComputeSchedule.Management/models.tsp b/specification/computeschedule/ComputeSchedule.Management/models.tsp index 891533803be1..2c259d0b2b62 100644 --- a/specification/computeschedule/ComputeSchedule.Management/models.tsp +++ b/specification/computeschedule/ComputeSchedule.Management/models.tsp @@ -296,7 +296,7 @@ model DeallocateResourceOperationResponse { type: string; @doc("The location of the deallocate request eg westus") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) location: azureLocation; @extension("x-ms-identifiers", ["resourceId"]) @@ -329,7 +329,7 @@ model StartResourceOperationResponse { type: string; @doc("The location of the start request eg westus") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) location: azureLocation; @extension("x-ms-identifiers", ["resourceId"]) @@ -362,7 +362,7 @@ model HibernateResourceOperationResponse { type: string; @doc("The location of the Hibernate request eg westus") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) location: azureLocation; @extension("x-ms-identifiers", ["resourceId"]) diff --git a/specification/confidentialledger/Microsoft.ManagedCcf/acks.tsp b/specification/confidentialledger/Microsoft.ManagedCcf/acks.tsp index 60d88b6f79d3..5be21259ac7a 100644 --- a/specification/confidentialledger/Microsoft.ManagedCcf/acks.tsp +++ b/specification/confidentialledger/Microsoft.ManagedCcf/acks.tsp @@ -12,7 +12,7 @@ namespace Microsoft.ManagedCcf.Acks; @TypeSpec.Rest.resource("state-digests") model StateDigest { @doc("Identifier for member this stateDigest applies to.") - @visibility(Lifecycle.Query) + @visibility(Lifecycle.Query) @key memberId: memberId; diff --git a/specification/confidentialledger/Microsoft.ManagedCcf/proposals.tsp b/specification/confidentialledger/Microsoft.ManagedCcf/proposals.tsp index a02d2247ed80..6b76fa1c63ef 100644 --- a/specification/confidentialledger/Microsoft.ManagedCcf/proposals.tsp +++ b/specification/confidentialledger/Microsoft.ManagedCcf/proposals.tsp @@ -97,7 +97,7 @@ model ProposalActions { @TypeSpec.Rest.parentResource(Proposal) model Ballot { @doc("ID of CCF member who signed and submitted this ballot.") - @visibility(Lifecycle.Query) + @visibility(Lifecycle.Query) @key memberId: memberId; diff --git a/specification/confidentialledger/Microsoft.ManagedCcf/recovery.tsp b/specification/confidentialledger/Microsoft.ManagedCcf/recovery.tsp index cf6a2279d39a..9ba4e09d3861 100644 --- a/specification/confidentialledger/Microsoft.ManagedCcf/recovery.tsp +++ b/specification/confidentialledger/Microsoft.ManagedCcf/recovery.tsp @@ -12,7 +12,7 @@ namespace Microsoft.ManagedCcf.Recovery; @TypeSpec.Rest.resource("encrypted-shares") model EncryptedRecoveryShare { @doc("ID of CCF member who this recovery share belongs to.") - @visibility(Lifecycle.Query) + @visibility(Lifecycle.Query) @key memberId: memberId; @@ -42,7 +42,7 @@ model RecoveryResponse { @TypeSpec.Rest.resource("members") model Member { @doc("Identifier for member this recovery state applies to.") - @visibility(Lifecycle.Query) + @visibility(Lifecycle.Query) @key memberId: memberId; } diff --git a/specification/confidentialledger/Microsoft.ManagedCcf/service_state.tsp b/specification/confidentialledger/Microsoft.ManagedCcf/service_state.tsp index 6b468f850ba0..6647a2a7108c 100644 --- a/specification/confidentialledger/Microsoft.ManagedCcf/service_state.tsp +++ b/specification/confidentialledger/Microsoft.ManagedCcf/service_state.tsp @@ -129,7 +129,7 @@ model Node { @doc("Constitution used to make governance decisions on the service. All governance changes are presented as proposals which must be validated, approved, and applied by the code in this constitution.") model ConstitutionResponse { @doc("Singleton key for accessing constitution") - @visibility(Lifecycle.Query) + @visibility(Lifecycle.Query) @key id: "constitution"; @@ -195,7 +195,7 @@ model JsOperations extends Record {} @doc("Describes the currently installed JavaScript application.") model JsApp { @doc("Singleton key for accessing javascript-app.") - @visibility(Lifecycle.Query) + @visibility(Lifecycle.Query) @key id: "javascript-app"; @@ -233,7 +233,7 @@ model SnpJoinPolicy { @doc("Collection of all policies which determine currently acceptable nodes, across multiple platforms.") model JoinPolicies { @doc("Singleton key for accessing join-policy") - @visibility(Lifecycle.Query) + @visibility(Lifecycle.Query) @key id: "join-policy"; @@ -278,7 +278,7 @@ scalar caCertBundle extends string; @doc("Describes what Javascript Web Tokens (JWTs) are accepted by the service, and how they will be validated.") model JwkInfo { @doc("Singleton key for accessing jwk") - @visibility(Lifecycle.Query) + @visibility(Lifecycle.Query) @key id: "jwk"; @@ -311,7 +311,7 @@ union ServiceStatus { @TypeSpec.Rest.resource("service") model ServiceInfo { @doc("Singleton key for accessing info.") - @visibility(Lifecycle.Query) + @visibility(Lifecycle.Query) @key id: "info"; diff --git a/specification/confidentialledger/Microsoft.ManagedCcf/transactions.tsp b/specification/confidentialledger/Microsoft.ManagedCcf/transactions.tsp index 8cb34178880a..55a3eb35ad7c 100644 --- a/specification/confidentialledger/Microsoft.ManagedCcf/transactions.tsp +++ b/specification/confidentialledger/Microsoft.ManagedCcf/transactions.tsp @@ -35,7 +35,7 @@ model Transaction { @TypeSpec.Rest.resource("transactions") model NamedTransaction { @doc("Identifier of the requested transaction.") - @visibility(Lifecycle.Query) + @visibility(Lifecycle.Query) @key transactionId: transactionId; @@ -46,7 +46,7 @@ model NamedTransaction { @TypeSpec.Rest.resource("transactions") model CommittedTransaction { @doc("Singleton key for accessing commit.") - @visibility(Lifecycle.Query) + @visibility(Lifecycle.Query) @key id: "commit"; diff --git a/specification/connectedcache/ConnectedCache.Management/models.tsp b/specification/connectedcache/ConnectedCache.Management/models.tsp index 0f4f85fa55c0..2a6809b4c8fd 100644 --- a/specification/connectedcache/ConnectedCache.Management/models.tsp +++ b/specification/connectedcache/ConnectedCache.Management/models.tsp @@ -124,7 +124,7 @@ union CycleType { @doc("Model representing Cache Node for ConnectedCache resource") model CacheNodeOldResponse { @doc("The provisioned state of the resource") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @doc("statusCode used to get code details of Mcc response object") @@ -137,7 +137,7 @@ model CacheNodeOldResponse { statusDetails?: string; @doc("status of the HTTP error code") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: string; @doc("The error details") @@ -148,14 +148,14 @@ model CacheNodeOldResponse { model ConnectedCachePatchResource { #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Existing api" @doc("Resource tags.") - @visibility(Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Update) tags?: Record; } @doc("Model representing customer for connectedCache resource") model CustomerProperty { @doc("The provisioned state of the resource") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @doc("Mcc customer resource (customer entity).") @@ -165,23 +165,23 @@ model CustomerProperty { additionalCustomerProperties?: AdditionalCustomerProperties; @doc("Mcc response status code.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) statusCode?: string; @doc("Mcc response status text as string for retrieving status details.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) statusText?: string; @doc("Mcc response status details for retrieving response inner details.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) statusDetails?: string; @doc("HTTP error status code.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: string; @doc("Mcc response error details.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) error?: Azure.ResourceManager.Foundations.ErrorDetail; } @@ -191,7 +191,7 @@ model CustomerEntity { fullyQualifiedResourceId?: string; @doc("Customer resource Guid Id.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) customerId?: string; @doc("Customer resource name.") @@ -213,22 +213,22 @@ model CustomerEntity { releaseVersion?: int32; @doc("Customer resource create async operation Id.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) createAsyncOperationId?: string; @doc("Customer resource deletion async operation Id.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) deleteAsyncOperationId?: string; @doc("Customer resource client tenant Id of subscription.") clientTenantId?: string; @doc("Customer resource sync attempts.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) synchWithAzureAttemptsCount?: int32; @doc("Customer resource last Azure sync timestamp.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastSyncWithAzureTimestamp?: utcDateTime; @doc("Customer resource flag for enterprise management as boolean.") @@ -244,7 +244,7 @@ model CustomerEntity { verifySignupCode?: boolean; @doc("Customer resource phrase for verifying signup.") - @visibility(Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Update) @secret verifySignupPhrase?: string; } @@ -252,71 +252,71 @@ model CustomerEntity { @doc("Model representing customer for connected cache resource") model AdditionalCustomerProperties { @doc("Customer resource last PeeringDB update timestamp.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) peeringDbLastUpdateTime?: utcDateTime; @doc("Customer resource cache efficiency.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) customerPropertiesOverviewCacheEfficiency?: float32; @doc("Customer resource average egress in Mbps.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) customerPropertiesOverviewAverageEgressMbps?: float32; @doc("Customer resource average cache miss throughput in Mbps.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) customerPropertiesOverviewAverageMissMbps?: float32; @doc("Customer resource maximum egress in Mbps.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) customerPropertiesOverviewEgressMbpsMax?: float32; @doc("Customer resource peak egress timestamp.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) customerPropertiesOverviewEgressMbpsMaxDateTime?: utcDateTime; @doc("Customer resource maximum cache miss throughput in Mbps.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) customerPropertiesOverviewMissMbpsMax?: float32; @doc("Customer resource peak cache miss throughput timestamp.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) customerPropertiesOverviewMissMbpsMaxDateTime?: utcDateTime; @doc("Customer resource total healthy cache nodes.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) customerPropertiesOverviewCacheNodesHealthyCount?: int32; @doc("Customer resource total unhealthy cache nodes.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) customerPropertiesOverviewCacheNodesUnhealthyCount?: int32; @doc("Customer resource signup status as boolean.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) signupStatus?: boolean; @doc("Customer resource signup status as integer code.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) signupStatusCode?: int32; @doc("Customer resource signup status as string text.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) signupStatusText?: string; @doc("Customer resource signup phase status code as integer.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) signupPhaseStatusCode?: int32; @doc("Customer resource signup phase status as string text.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) signupPhaseStatusText?: string; @doc("Customer resource last PeeringDB update timestamp.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) peeringDbLastUpdateDate?: utcDateTime; @doc("Customer resource owner organization name.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) customerOrgName?: string; @doc("Customer resource contact email.") @@ -332,7 +332,7 @@ model AdditionalCustomerProperties { customerAsn?: string; @doc("Customer resource estimated Asn peering peak in Gbps.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) customerAsnEstimatedEgressPeekGbps?: float32; @doc("Customer resource entitlement Sku Id.") @@ -366,7 +366,7 @@ model AdditionalCustomerProperties { @doc("Model representing an Mcc cache node connectedCache resource") model CacheNodeProperty { @doc("The provisioned state of the resource") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @doc("Mcc cache node resource (cache node entity).") @@ -385,7 +385,7 @@ model CacheNodeProperty { statusDetails?: string; @doc("HTTP error status code.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: string; @doc("Mcc response error details.") @@ -398,7 +398,7 @@ model CacheNodeEntity { fullyQualifiedResourceId?: string; @doc("Cache node resource customer resource GUID Id.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) customerId?: string; @doc("Cache node resource customer resource name.") @@ -426,147 +426,147 @@ model CacheNodeEntity { maxAllowableEgressInMbps?: int32; @doc("Cache node resource maximum allowed probability of egress.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) maxAllowableProbability?: float32; @doc("Cache node resource Azure XCid.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) xCid?: string; @doc("Cache node resource flag for determining if managed by enterprise as boolean.") isEnterpriseManaged?: boolean; @doc("Cache node resource create async operation Id.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) createAsyncOperationId?: string; @doc("Cache node resource deletion async operation Id.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) deleteAsyncOperationId?: string; @doc("Cache node resource customer resource client tenant Id of subscription.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) clientTenantId?: string; @doc("Cache node resource category.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) category?: string; @doc("Cache node resource release version.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) releaseVersion?: int32; @doc("Cache node resource last sync timestamp.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastSyncWithAzureTimestamp?: utcDateTime; @doc("Cache node resource last backend updated timestamp.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastUpdatedTimestamp?: utcDateTime; @doc("Cache node resource attempts to sync with Azure.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) synchWithAzureAttemptsCount?: int32; @doc("Cache node resource container configuration details.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) containerConfigurations?: string; @doc("Cache node resource comma separated values of Cidrs.") cidrCsv?: string[]; @doc("Cache node resource last Cidr Csv update timestamp") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) cidrCsvLastUpdateTime?: utcDateTime; @doc("Cache node resource last Bgp Cidr Csv update timestamp") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) bgpCidrCsvLastUpdateTime?: utcDateTime; @doc("Cache node resource last Bgp report timestamp.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) bgpLastReportedTime?: utcDateTime; @doc("Cache node resource Bgp review state string text in detail.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) bgpReviewStateText?: string; @doc("Cache node resource Bgp review state string text.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) bgpReviewState?: BgpReviewStateEnum; @doc("Cache node resource Bgp review feedback text.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) bgpReviewFeedback?: string; @doc("Cache node resource Bgp update count.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) bgpNumberOfTimesUpdated?: int32; @doc("Cache node resource Bgp record count.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) bgpNumberOfRecords?: int32; @doc("Cache node resource Bgp block count.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) bgpCidrBlocksCount?: int32; @doc("Cache node resource total addressable space defined by Bgp and Cidr Csv blocks.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) bgpAddressSpace?: int32; @doc("Cache node resource flag for determining if customer will be migrated.") shouldMigrate?: boolean; @doc("Cache node resource bytes truncated from Bgp output file.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) bgpFileBytesTruncated?: int32; @doc("Cache node resource current Cidr range precedence selection type.") cidrSelectionType?: int32; @doc("Cache node resource flag for indicating the cache node resource is frozen (not selectable, not editable in UI).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isFrozen?: boolean; @doc("Cache node resource review process state as integer") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) reviewState?: int32; @doc("Cache node resource review state text.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) reviewStateText?: string; @doc("Cache node resource review feedback text.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) reviewFeedback?: string; @doc("Cache node resource configuration state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) configurationState?: ConfigurationState; @doc("Cache node resource configuration state text.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) configurationStateText?: string; @doc("Cache node resource total addressable space defined by the Cidr Csv block.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) addressSpace?: int32; @doc("Cache node resource Mcc container deployment worker connection count.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) workerConnections?: int32; @doc("Cache node resource last updated Mcc container deployment worker connection count timestamp.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) workerConnectionsLastUpdatedDateTime?: utcDateTime; @doc("Cache node resource Mcc container configuration details re-sync trigger.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) containerResyncTrigger?: int32; @doc("Cache node resource Mcc Container Id Uri.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) imageUri?: string; @doc("FQDN(fully qualified domain name) value of the mcc cache node") @@ -596,35 +596,35 @@ model AdditionalCacheNodeProperties { cacheNodePropertiesDetailsIssuesList?: string[]; @doc("Cache node resource aggregated status details.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) aggregatedStatusDetails?: string; @doc("Cache node resource aggregated status text.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) aggregatedStatusText?: string; @doc("Cache node resource aggregated status code.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) aggregatedStatusCode?: int32; @doc("Cache node resource Mcc product version.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) productVersion?: string; @doc("Cache node resource flag indicating if cache node has been physically installed or provisioned on their physical lab.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isProvisioned?: boolean; @doc("Cache node resource detailed state text.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) cacheNodeStateDetailedText?: string; @doc("Cache node resource short state text.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) cacheNodeStateShortText?: string; @doc("Cache node resource state as integer.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) cacheNodeState?: int32; #suppress "@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers" "" @@ -659,31 +659,31 @@ model AdditionalCacheNodeProperties { updateRequestedDateTime?: utcDateTime; @doc("Auto update version that is the Next available version to update on mcc cache node") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) autoUpdateNextAvailableVersion?: string; @doc("Auto update last applied date time of mcc install") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) autoUpdateNextAvailableDateTime?: utcDateTime; @doc("Auto update version that is the applied to update on mcc cache node") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) autoUpdateAppliedVersion?: string; @doc("Auto Update status details from the backend after applying the new version details") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) autoUpdateLastAppliedDetails?: string; @doc("Last applied auto update state for mcc install of auto update cycle") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) autoUpdateLastAppliedState?: string; @doc("Auto update last applied date time of mcc install") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) autoUpdateLastAppliedDateTime?: utcDateTime; @doc("Auto update last triggered date time of mcc install") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) autoUpdateLastTriggeredDateTime?: utcDateTime; @doc("Optional property #1 of Mcc response object") @@ -742,7 +742,7 @@ model MccCacheNodeBgpCidrDetails @doc("Mcc cache node Bgp Cidr details.") model BgpCidrsConfiguration { @doc("Mcc cache node Bgp Cidr details.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) bgpCidrs?: string[]; } @@ -763,17 +763,17 @@ model CacheNodeInstallProperties { cacheNodeId?: string; @doc("Mcc primary account key. Internal to Mcc.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @secret primaryAccountKey?: string; @doc("Mcc secondary account key. Internal to Mcc.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @secret secondaryAccountKey?: string; @doc("Mcc Iot Central temporary device registration key, used once.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @secret registrationKey?: string; } diff --git a/specification/containerservice/Fleet.Management/fleet.tsp b/specification/containerservice/Fleet.Management/fleet.tsp index bc95cd98e9c0..c0c0fddfe6e7 100644 --- a/specification/containerservice/Fleet.Management/fleet.tsp +++ b/specification/containerservice/Fleet.Management/fleet.tsp @@ -25,7 +25,7 @@ model Fleet is TrackedResource { @key("fleetName") @path @segment("fleets") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) name: string; ...EntityTagProperty; @@ -42,7 +42,7 @@ model FleetProperties { // omitting it for now as response headers do not impact SDK generation. // ...EtagResponseEnvelope; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: FleetProvisioningState; @@ -61,7 +61,7 @@ model FleetProperties { @doc("The FleetHubProfile configures the fleet hub.") model FleetHubProfile { @doc("DNS prefix used to create the FQDN for the Fleet hub.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][a-zA-Z0-9-]{0,52}[a-zA-Z0-9]$") @minLength(1) @maxLength(54) @@ -69,24 +69,24 @@ model FleetHubProfile { @added(Versions.v2023_06_15_preview) @doc("The access profile for the Fleet hub API server.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) apiServerAccessProfile?: APIServerAccessProfile; @added(Versions.v2023_06_15_preview) @doc("The agent profile for the Fleet hub.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) agentProfile?: AgentProfile; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The FQDN of the Fleet hub.") fqdn?: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The Kubernetes version of the Fleet hub.") kubernetesVersion?: string; @added(Versions.v2023_08_15_preview) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The Azure Portal FQDN of the Fleet hub.") portalFqdn?: string; } @@ -101,18 +101,18 @@ scalar SubnetResourceId #suppress "@azure-tools/typespec-azure-core/casing-style" "match existing AKS APIServerAccessProfile" @doc("Access profile for the Fleet hub API server.") model APIServerAccessProfile { - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("Whether to create the Fleet hub as a private cluster or not.") enablePrivateCluster?: boolean; - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @added(Versions.v2023_06_15_preview) @removed(Versions.v2024_04_01) @added(Versions.v2024_05_02_preview) @doc("Whether to enable apiserver vnet integration for the Fleet hub or not.") enableVnetIntegration?: boolean; - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @added(Versions.v2023_06_15_preview) @removed(Versions.v2024_04_01) @added(Versions.v2024_05_02_preview) @@ -122,13 +122,13 @@ model APIServerAccessProfile { @doc("Agent profile for the Fleet hub.") model AgentProfile { - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("The ID of the subnet which the Fleet hub node will join on startup. If this is not specified, a vnet and subnet will be generated and used.") subnetId?: SubnetResourceId; @added(Versions.v2023_08_15_preview) @doc("The virtual machine size of the Fleet hub.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) vmSize?: string; } @@ -163,18 +163,18 @@ model FleetPatch { @doc("One credential result item.") model FleetCredentialResult { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The name of the credential.") name?: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Base64-encoded Kubernetes configuration file.") value?: bytes; } @doc("The Credential results response.") model FleetCredentialResults { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Array of base64-encoded Kubernetes configuration files.") @extension("x-ms-identifiers", ["name"]) kubeconfigs?: FleetCredentialResult[]; diff --git a/specification/containerservice/Fleet.Management/fleetmember.tsp b/specification/containerservice/Fleet.Management/fleetmember.tsp index 773411ddf84a..614f00160ad1 100644 --- a/specification/containerservice/Fleet.Management/fleetmember.tsp +++ b/specification/containerservice/Fleet.Management/fleetmember.tsp @@ -21,7 +21,7 @@ model FleetMember is ProxyResource { @key("fleetMemberName") @path @segment("members") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) name: string; ...EntityTagProperty; @@ -40,7 +40,7 @@ model FleetMemberProperties { // omitting it for now as response headers do not impact SDK generation. // ...EtagResponseEnvelope; - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) @doc("The ARM resource id of the cluster that joins the Fleet. Must be a valid Azure resource id. e.g.: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{clusterName}'.") clusterResourceId: ClusterResourceId; @@ -51,7 +51,7 @@ model FleetMemberProperties { @added(Versions.v2023_03_15_preview) group?: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: FleetMemberProvisioningState; } diff --git a/specification/containerservice/Fleet.Management/update/autoupgradeprofile.tsp b/specification/containerservice/Fleet.Management/update/autoupgradeprofile.tsp index 0e99abc36d33..d73d9e789bac 100644 --- a/specification/containerservice/Fleet.Management/update/autoupgradeprofile.tsp +++ b/specification/containerservice/Fleet.Management/update/autoupgradeprofile.tsp @@ -30,7 +30,7 @@ model AutoUpgradeProfile @minLength(1) @maxLength(50) @path - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) name: string; ...EntityTagProperty; @@ -45,11 +45,11 @@ union AutoUpgradeProfileProvisioningState { @doc("The properties of the AutoUpgradeProfile.") @added(Versions.v2024_05_02_preview) model AutoUpgradeProfileProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The provisioning state of the AutoUpgradeProfile resource.") provisioningState?: AutoUpgradeProfileProvisioningState; - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) @doc("The resource id of the UpdateStrategy resource to reference. If not specified, the auto upgrade will run on all clusters which are members of the fleet.") updateStrategyId?: FleetUpdateStrategyResourceId; @@ -88,7 +88,7 @@ union UpgradeChannel { @doc("The node image upgrade to be applied to the target clusters in auto upgrade.") @added(Versions.v2024_05_02_preview) model AutoUpgradeNodeImageSelection { - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) @doc("The node image upgrade type.") type: AutoUpgradeNodeImageSelectionType; } diff --git a/specification/containerservice/Fleet.Management/update/run.tsp b/specification/containerservice/Fleet.Management/update/run.tsp index 3a3cb290822b..66c9fa5951bc 100644 --- a/specification/containerservice/Fleet.Management/update/run.tsp +++ b/specification/containerservice/Fleet.Management/update/run.tsp @@ -24,7 +24,7 @@ model UpdateRun is ProxyResource { @minLength(1) @maxLength(50) @path - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) name: string; ...EntityTagProperty; @@ -45,7 +45,7 @@ scalar FleetUpdateStrategyResourceId @doc("The properties of the UpdateRun.") model UpdateRunProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The provisioning state of the UpdateRun resource.") provisioningState?: UpdateRunProvisioningState; @@ -76,7 +76,7 @@ model UpdateRunProperties { @doc("The update to be applied to all clusters in the UpdateRun. The managedClusterUpdate can be modified until the run is started.") managedClusterUpdate: ManagedClusterUpdate; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the UpdateRun.") status?: UpdateRunStatus; } @@ -86,7 +86,7 @@ model ManagedClusterUpdate { @doc("The upgrade to apply to the ManagedClusters.") upgrade: ManagedClusterUpgradeSpec; - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) @doc("The node image upgrade to be applied to the target nodes in update run.") @added(Versions.v2023_06_15_preview) nodeImageSelection?: NodeImageSelection; @@ -95,7 +95,7 @@ model ManagedClusterUpdate { @doc("The node image upgrade to be applied to the target nodes in update run.") @added(Versions.v2023_06_15_preview) model NodeImageSelection { - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) @doc("The node image upgrade type.") type: NodeImageSelectionType; @@ -176,35 +176,35 @@ union UpdateState { @doc("The status for an operation or group of operations.") model UpdateStatus { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The time the operation or group was started.") startTime?: utcDateTime; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The time the operation or group was completed.") completedTime?: utcDateTime; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The State of the operation or group.") state?: UpdateState; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The error details when a failure is encountered.") error?: Azure.ResourceManager.Foundations.ErrorDetail; // https://github.com/Azure/azure-rest-api-specs/blob/1de0b5315d62e1b40052bad2c9a2f2c89d84ff0f/specification/common-types/resource-management/v5/types.json#L260 } @doc("The status of a UpdateRun.") model UpdateRunStatus { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the UpdateRun.") status?: UpdateStatus; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["name"]) @doc("The stages composing an update run. Stages are run sequentially withing an UpdateRun.") stages?: UpdateStageStatus[]; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The node image upgrade specs for the update run. It is only set in update run when `NodeImageSelection.type` is `Consistent`.") @added(Versions.v2023_06_15_preview) nodeImageSelection?: NodeImageSelectionStatus; @@ -214,7 +214,7 @@ model UpdateRunStatus { @added(Versions.v2023_06_15_preview) model NodeImageSelectionStatus { @extension("x-ms-identifiers", ["version"]) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The image versions to upgrade the nodes to.") selectedNodeImageVersions?: NodeImageVersion[]; } @@ -222,42 +222,42 @@ model NodeImageSelectionStatus { @doc("The node upgrade image version.") @added(Versions.v2023_06_15_preview) model NodeImageVersion { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The image version to upgrade the nodes to (e.g., 'AKSUbuntu-1804gen2containerd-2022.12.13').") version?: string; } @doc("The status of a UpdateStage.") model UpdateStageStatus { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the UpdateStage.") status?: UpdateStatus; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The name of the UpdateStage.") name?: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["name"]) @doc("The list of groups to be updated as part of this UpdateStage.") groups?: UpdateGroupStatus[]; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the wait period configured on the UpdateStage.") afterStageWaitStatus?: WaitStatus; } @doc("The status of a UpdateGroup.") model UpdateGroupStatus { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the UpdateGroup.") status?: UpdateStatus; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The name of the UpdateGroup.") name?: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["name"]) @doc("The list of member this UpdateGroup updates.") members?: MemberUpdateStatus[]; @@ -265,34 +265,34 @@ model UpdateGroupStatus { @doc("The status of the wait duration.") model WaitStatus { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the wait duration.") status?: UpdateStatus; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The wait duration configured in seconds.") waitDurationInSeconds?: int32; } @doc("The status of a member update operation.") model MemberUpdateStatus { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the MemberUpdate operation.") status?: UpdateStatus; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The name of the FleetMember.") name?: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The Azure resource id of the target Kubernetes cluster.") clusterResourceId?: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The operation resource id of the latest attempt to perform the operation.") operationId?: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status message after processing the member update operation.") @added(Versions.v2023_06_15_preview) message?: string; diff --git a/specification/containerservice/Fleet.Management/update/strategy.tsp b/specification/containerservice/Fleet.Management/update/strategy.tsp index 611d7f493a47..4f624d156cc0 100644 --- a/specification/containerservice/Fleet.Management/update/strategy.tsp +++ b/specification/containerservice/Fleet.Management/update/strategy.tsp @@ -27,7 +27,7 @@ model FleetUpdateStrategy is ProxyResource { @minLength(1) @maxLength(50) @path - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) name: string; ...EntityTagProperty; @@ -41,11 +41,11 @@ union FleetUpdateStrategyProvisioningState { @doc("The properties of the UpdateStrategy.") model FleetUpdateStrategyProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The provisioning state of the UpdateStrategy resource.") provisioningState?: FleetUpdateStrategyProvisioningState; - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) @doc("Defines the update sequence of the clusters.") strategy: UpdateRunStrategy; } diff --git a/specification/containerstorage/ContainerStorage.Management/assignment.tsp b/specification/containerstorage/ContainerStorage.Management/assignment.tsp index fe6cd24d2269..a4bd791ca8bf 100644 --- a/specification/containerstorage/ContainerStorage.Management/assignment.tsp +++ b/specification/containerstorage/ContainerStorage.Management/assignment.tsp @@ -37,11 +37,11 @@ scalar AssignmentId @doc("Assignment Properties") model Assignment { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Indicates if the assignment is in a usable state") status?: AssignmentStatus; - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("Resource id for the assigned resource") id: AssignmentId; } diff --git a/specification/containerstorage/ContainerStorage.Management/pool.tsp b/specification/containerstorage/ContainerStorage.Management/pool.tsp index 10a18f019487..fdbbe6217526 100644 --- a/specification/containerstorage/ContainerStorage.Management/pool.tsp +++ b/specification/containerstorage/ContainerStorage.Management/pool.tsp @@ -49,14 +49,14 @@ model Pool is TrackedResource { @doc("Pool Properties") model PoolProperties { @doc("The status of the last operation.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @doc("The operational status of the resource") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: ResourceOperationalStatus; - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @maxItems(3) @doc("List of availability zones that resources can be created in.") zones?: Zone[]; @@ -68,7 +68,7 @@ model PoolProperties { poolType: PoolType; @doc("ReclaimPolicy defines what happens to the backend storage when StoragePool is deleted") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) reclaimPolicy?: ReclaimPolicy; @doc("List of resources that should have access to the pool. Typically ARM references to AKS clusters or ACI Container Groups. For local and standard this must be a single reference. For ElasticSAN there can be many.") @@ -137,16 +137,16 @@ model Disk { @doc("Properties shared between azureDisk and elasticSan") model ProvisionedPoolProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Managed resource group for the pool.") resourceGroup?: string; - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("Sku name") skuName?: SkuType; @doc("Encryption specifies the encryption configuration for the Azure Disk pool") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) encryption?: Encryption; } diff --git a/specification/containerstorage/ContainerStorage.Management/snapshot.tsp b/specification/containerstorage/ContainerStorage.Management/snapshot.tsp index 520655fe2278..f56d9d361f25 100644 --- a/specification/containerstorage/ContainerStorage.Management/snapshot.tsp +++ b/specification/containerstorage/ContainerStorage.Management/snapshot.tsp @@ -43,18 +43,18 @@ model Snapshot is ProxyResource { @doc("Volume Snapshot Properties") model SnapshotProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; @doc("The status of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: ResourceOperationalStatus; @doc("Reference to the source volume") @minLength(3) @maxLength(253) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) source: string; } diff --git a/specification/containerstorage/ContainerStorage.Management/volume.tsp b/specification/containerstorage/ContainerStorage.Management/volume.tsp index 807f05b3e392..d7349bcbeae2 100644 --- a/specification/containerstorage/ContainerStorage.Management/volume.tsp +++ b/specification/containerstorage/ContainerStorage.Management/volume.tsp @@ -50,12 +50,12 @@ model Volume is ProxyResource { @doc("Volume Properties") model VolumeProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; @doc("The status of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: ResourceOperationalStatus; #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "existing API" @@ -67,14 +67,14 @@ model VolumeProperties { @minValue(1) capacityGiB: int64; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Properties of the volume") volumeType?: VolumeType; } @doc("Properties of the volume") model VolumeType { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Properties of the ElasticSAN iSCSI target") elasticSan?: ElasticSanVolumeProperties; } diff --git a/specification/contosowidgetmanager/Contoso.Management/employee.tsp b/specification/contosowidgetmanager/Contoso.Management/employee.tsp index 89df5a216649..9458cfb54ebd 100644 --- a/specification/contosowidgetmanager/Contoso.Management/employee.tsp +++ b/specification/contosowidgetmanager/Contoso.Management/employee.tsp @@ -28,7 +28,7 @@ model EmployeeProperties { profile?: bytes; /** The status of the last operation. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/contosowidgetmanager/Contoso.WidgetManager/main.tsp b/specification/contosowidgetmanager/Contoso.WidgetManager/main.tsp index 8d7d0cccf046..855088529349 100644 --- a/specification/contosowidgetmanager/Contoso.WidgetManager/main.tsp +++ b/specification/contosowidgetmanager/Contoso.WidgetManager/main.tsp @@ -28,7 +28,7 @@ enum Versions { model WidgetSuite { @key("widgetName") @doc("The widget name.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("The ID of the widget's manufacturer.") diff --git a/specification/databasefleetmanager/DatabaseFleetManager.Management/models.tsp b/specification/databasefleetmanager/DatabaseFleetManager.Management/models.tsp index 52a09bba7c0c..79f27f2084bd 100644 --- a/specification/databasefleetmanager/DatabaseFleetManager.Management/models.tsp +++ b/specification/databasefleetmanager/DatabaseFleetManager.Management/models.tsp @@ -103,7 +103,7 @@ model DatabaseChangeTierDefinition { /** * A target tier name. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) targetTierName?: string; } @@ -114,101 +114,101 @@ model FleetDatabaseProperties { /** * Resource identifier for the underlying database resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) originalDatabaseId?: string; /** * Database state. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: AzureProvisioningState; /** * Create mode. Available options: Default - Create a database. Copy - Copy the source database (source database name must be specified) PointInTimeRestore - Create a database by restoring source database from a point in time (source database name and restore from time must be specified) */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) createMode?: DatabaseCreateMode; /** * Name of the tier this database belongs to. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) tierName?: string; /** * Connection string to connect to the database with. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) connectionString?: string; /** * If true, database is recoverable. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) recoverable?: boolean; /** * Restore from time when CreateMode is PointInTimeRestore. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. restoreFromTime?: utcDateTime; /** * Earliest restore time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. earliestRestoreTime?: utcDateTime; /** * Latest restore time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. latestRestoreTime?: utcDateTime; /** * Backup retention in days. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) backupRetentionDays?: int32; /** * Maximum database size in Gb. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) databaseSizeGbMax?: int32; /** * Source database name used when CreateMode is Copy or PointInTimeRestore. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) sourceDatabaseName?: string; /** * Additional database properties to be applied as the underlying database resource tags. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Model properties or operation parameters should not be of type Record. ARM requires Resource provider teams to define types explicitly." - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) resourceTags?: Record; /** * Identity property. */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) identity?: Identity; /** * Transparent Data Encryption properties */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) transparentDataEncryption?: TransparentDataEncryption; /** * Database collation. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) collation?: string; } @@ -219,20 +219,20 @@ model Identity { /** * Identity type of the main principal. */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) identityType?: IdentityType; /** * User identity ids */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @OpenAPI.extension("x-ms-identifiers", []) userAssignedIdentities?: DatabaseIdentity[]; /** * The federated client id for the SQL Database. It is used for cross tenant CMK scenario. */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) federatedClientId?: uuid; } @@ -243,7 +243,7 @@ model DatabaseIdentity { /** * Resource Id of the database identity. */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) resourceId?: Azure.Core.armResourceIdentifier<[ { type: "Microsoft.ManagedIdentity/userAssignedIdentities"; @@ -253,13 +253,13 @@ model DatabaseIdentity { /** * Principal Id of the database identity. */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) principalId?: uuid; /** * Client Id of the database identity. */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) clientId?: uuid; } @@ -270,19 +270,19 @@ model TransparentDataEncryption { /** * Customer Managed Key (CMK) Uri. */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) keyUri?: url; /** * Additional Keys */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) keys?: string[]; /** * Enable key auto rotation */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) enableAutoRotation?: boolean; } @@ -293,7 +293,7 @@ model DatabaseRenameDefinition { /** * New database name. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) newName?: string; } @@ -304,19 +304,19 @@ model FirewallRuleProperties { /** * Start IP address. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) startIpAddress?: string; /** * End IP address. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) endIpAddress?: string; /** * Provisioning state. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: AzureProvisioningState; } @@ -328,13 +328,13 @@ model FleetUpdate { * Resource tags. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "existing API" - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) tags?: Record; /** * The Database Fleet properties. */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) properties?: FleetProperties; } @@ -345,13 +345,13 @@ model FleetProperties { /** * Fleet description. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) description?: string; /** * Provisioning state. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: AzureProvisioningState; } @@ -362,19 +362,19 @@ model DestinationTierOverride { /** * Resource type. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) resourceType: ResourceType; /** * Destination tier name. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) tierName: string; /** * Resource name. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) resourceName: string; } @@ -385,31 +385,31 @@ model MainPrincipal { /** * Login name of the main principal. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) login?: string; /** * Application Id of the main principal. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) applicationId?: uuid; /** * Object Id of the main principal. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) objectId?: uuid; /** * Tenant Id of the main principal. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) tenantId?: uuid; /** * Principal type of the main principal. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) principalType?: PrincipalType; } @@ -420,19 +420,19 @@ model FleetspaceProperties { /** * Fleetspace state. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: AzureProvisioningState; /** * Maximum number of vCores database fleet manager is allowed to provision in the fleetspace. */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) capacityMax?: int32; /** * Main Microsoft Entra ID principal that has admin access to all databases in the fleetspace. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) mainPrincipal?: MainPrincipal; } @@ -443,31 +443,31 @@ model RegisterServerDefinition { /** * Destination tier name. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) tierName?: string; /** * Source subscription id. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) sourceSubscriptionId?: string; /** * Source resource group name. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) sourceResourceGroupName?: string; /** * Source SQL Server name. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) sourceServerName?: string; /** * Destination tier overrides. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @OpenAPI.extension("x-ms-identifiers", []) destinationTierOverrides?: DestinationTierOverride[]; } @@ -479,79 +479,79 @@ model FleetTierProperties { /** * If true, tier is disabled. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) disabled?: boolean; /** * If true, serverless resources are provisioned in the tier. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) serverless?: boolean; /** * If true, databases are pooled. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) pooled?: boolean; /** * Service tier of provisioned resources. Supported values: GeneralPurpose, Hyperscale. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) serviceTier?: string; /** * Family of provisioned resources, for example Gen5. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) family?: string; /** * Capacity of provisioned resources in the tier, in units matching the specified service tier, for example vCore for GeneralPurpose. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) capacity?: int32; /** * Maximum number of databases per pool. */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) poolNumOfDatabasesMax?: int32; /** * Number of high availability replicas for databases in this tier. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) highAvailabilityReplicaCount?: int32; /** * Enable zone redundancy for all databases in this tier. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) zoneRedundancy?: ZoneRedundancy; /** * Minimum allocated capacity per database, in units matching the specified service tier. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) databaseCapacityMin?: float64; /** * Maximum allocated capacity per database, in units matching the specified service tier. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) databaseCapacityMax?: float64; /** * Maximum database size in Gb. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) databaseSizeGbMax?: int32; /** * Provisioning state. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: AzureProvisioningState; } @@ -562,6 +562,6 @@ model FleetDatabaseFilterParameters { /** * Filter on database tier name. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) tierName?: string; } diff --git a/specification/databasewatcher/DatabaseWatcher.Management/alertRuleResources.tsp b/specification/databasewatcher/DatabaseWatcher.Management/alertRuleResources.tsp index 3b88ec25ae0e..302780195a49 100644 --- a/specification/databasewatcher/DatabaseWatcher.Management/alertRuleResources.tsp +++ b/specification/databasewatcher/DatabaseWatcher.Management/alertRuleResources.tsp @@ -45,7 +45,7 @@ model AlertRuleResourceProperties { @doc("The creation time of the alert rule resource.") creationTime: utcDateTime; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The provisioning state of the alert rule resource.") provisioningState?: ResourceProvisioningState; diff --git a/specification/databasewatcher/DatabaseWatcher.Management/baseTarget.tsp b/specification/databasewatcher/DatabaseWatcher.Management/baseTarget.tsp index eaeb07df482a..ffcf48c68a78 100644 --- a/specification/databasewatcher/DatabaseWatcher.Management/baseTarget.tsp +++ b/specification/databasewatcher/DatabaseWatcher.Management/baseTarget.tsp @@ -42,7 +42,7 @@ model TargetProperties { @maxLength(200) connectionServerName: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The provisioning state of the resource.") provisioningState?: ResourceProvisioningState; } diff --git a/specification/databasewatcher/DatabaseWatcher.Management/healthValidation.tsp b/specification/databasewatcher/DatabaseWatcher.Management/healthValidation.tsp index fed4016a9a12..86e1c24e979b 100644 --- a/specification/databasewatcher/DatabaseWatcher.Management/healthValidation.tsp +++ b/specification/databasewatcher/DatabaseWatcher.Management/healthValidation.tsp @@ -36,24 +36,24 @@ model HealthValidation is ProxyResource { @doc("The generic properties of the health validation resource.") @added(Versions.v2024_10_01_preview) model HealthValidationProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The start time of health validation, in UTC.") startTime: utcDateTime; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The end time of health validation, in UTC.") endTime: utcDateTime; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The current health validation status.") status: validationStatus; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) @doc("The list of issues found by health validation.") issues: ValidationIssue[]; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The provisioning state of the health validation resource.") provisioningState?: ResourceProvisioningState; } @@ -85,31 +85,31 @@ union validationStatus { @doc("The model of a health validation issue.") @added(Versions.v2024_10_01_preview) model ValidationIssue { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The error code of the issue.") errorCode: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The error message of the issue.") errorMessage: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The additional details for the issue.") additionalDetails?: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The recommendation for resolving the issue.") recommendationMessage: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The URL related to resolving the issue.") recommendationUrl?: url; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The resource ID of the Azure resource related to the issue.") relatedResourceId?: Azure.Core.armResourceIdentifier<[]>; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The type of the Azure resource related to the issue.") relatedResourceType?: string; } diff --git a/specification/databasewatcher/DatabaseWatcher.Management/sharedPrivateLinkResource.tsp b/specification/databasewatcher/DatabaseWatcher.Management/sharedPrivateLinkResource.tsp index 4ba6638e2d63..724988f45ae4 100644 --- a/specification/databasewatcher/DatabaseWatcher.Management/sharedPrivateLinkResource.tsp +++ b/specification/databasewatcher/DatabaseWatcher.Management/sharedPrivateLinkResource.tsp @@ -47,11 +47,11 @@ model SharedPrivateLinkResourceProperties { @doc("The DNS zone segment to be included in the DNS name of the shared private link. Value is required for Azure Data Explorer clusters and SQL managed instances, and must be omitted for SQL logical servers and key vaults. The value is the second segment of the host FQDN name of the resource that the shared private link resource is for. For example: if the host name is 'adx-cluster-21187695.eastus.kusto.windows.net', then the value is 'eastus'; if the host name is 'sql-mi-23961134.767d5869f605.database.windows.net', then the value is '767d5869f605'.") dnsZone?: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Status of the shared private link resource. Can be Pending, Approved, Rejected or Disconnected.") status?: SharedPrivateLinkResourceStatus; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The provisioning state of the resource.") provisioningState?: ResourceProvisioningState; } diff --git a/specification/databasewatcher/DatabaseWatcher.Management/watcher.tsp b/specification/databasewatcher/DatabaseWatcher.Management/watcher.tsp index a74b572b864a..e652fc0066ed 100644 --- a/specification/databasewatcher/DatabaseWatcher.Management/watcher.tsp +++ b/specification/databasewatcher/DatabaseWatcher.Management/watcher.tsp @@ -69,10 +69,10 @@ model WatcherProperties { datastore?: Datastore; @doc("The monitoring collection status of the watcher.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: WatcherStatus; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The provisioning state of the resource watcher.") provisioningState?: DatabaseWatcherProvisioningState; diff --git a/specification/devcenter/DevCenter/DevBox/models.tsp b/specification/devcenter/DevCenter/DevBox/models.tsp index 806da12d0f37..4563ba54271e 100644 --- a/specification/devcenter/DevCenter/DevBox/models.tsp +++ b/specification/devcenter/DevCenter/DevBox/models.tsp @@ -417,7 +417,7 @@ model Pool { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Pool name.") name: string; @@ -466,17 +466,17 @@ model Pool { @doc("Hardware specifications for the Dev Box.") model HardwareProfile { @doc("The name of the SKU.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) skuName?: SkuName; #suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" @doc("The number of vCPUs available for the Dev Box.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) vCPUs?: int32; #suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" @doc("The amount of memory available for the Dev Box.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) memoryGB?: int32; } @@ -490,30 +490,30 @@ model StorageProfile { model OsDisk { #suppress "@azure-tools/typespec-azure-core/casing-style" "this represents the case-sensitive wire format" @doc("The size of the OS Disk in gigabytes.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) diskSizeGB?: int32; } @doc("Specifies information about the image used.") model ImageReference { @doc("The name of the image used.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name?: string; @doc("The version of the image.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) version?: string; @doc("The operating system of the image.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) operatingSystem?: string; @doc("The operating system build number of the image.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) osBuildNumber?: string; @doc("The datetime that the backing image version was published, in RFC3339 format.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) publishedDate?: utcDateTime; } @@ -558,7 +558,7 @@ model Schedule { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Display name for the Schedule.") name: string; @@ -591,7 +591,7 @@ alias DevBoxListResult = Azure.Core.Page; @parentResource(User) model DevBox { @doc("The unique URI of the dev box.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @added(APIVersions.v2024_02_01) uri: url; @@ -600,88 +600,88 @@ model DevBox { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("Name of the project this Dev Box belongs to.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) projectName?: string; @doc("The name of the Dev Box pool this machine belongs to.") @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) poolName: string; @doc("Indicates whether hibernate is enabled/disabled or unknown.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) hibernateSupport?: HibernateSupport; @doc("The current provisioning state of the Dev Box.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: DevBoxProvisioningState; @doc(""" The current action state of the Dev Box. This is state is based on previous action performed by user. """) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) actionState?: string; @doc("The current power state of the Dev Box.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) powerState?: PowerState; @doc(""" A unique identifier for the Dev Box. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). """) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) uniqueId?: Azure.Core.uuid; @doc("Provisioning or action error details. Populated only for error states.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) error?: Azure.Core.Foundations.Error; @doc(""" Azure region where this Dev Box is located. This will be the same region as the Virtual Network it is attached to. """) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) location?: Azure.Core.azureLocation; @doc("The operating system type of this Dev Box.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) osType?: OsType; @doc("The AAD object id of the user this Dev Box is assigned to.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) user?: Azure.Core.uuid; @doc("Information about the Dev Box's hardware resources.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) hardwareProfile?: HardwareProfile; @doc("Storage settings for this Dev Box.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) storageProfile?: StorageProfile; @doc("Information about the image used for this Dev Box.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) imageReference?: ImageReference; @doc("Creation time of this Dev Box, in RFC3339 format.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) createdTime?: utcDateTime; @doc("Last time a user connected to this Dev Box, in RFC3339 format.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @added(APIVersions.v2024_10_01_preview) lastConnectedTime?: utcDateTime; @doc("Indicates whether the owner of the Dev Box is a local administrator.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) localAdministrator?: LocalAdminStatus; } @@ -711,7 +711,7 @@ model DevBoxAction { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("The action that will be taken.") @@ -775,7 +775,7 @@ model DevBoxOperation { @minLength(36) @maxLength(36) @pattern("^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @key("operationId") operationId: Azure.Core.uuid; @@ -870,15 +870,15 @@ model PagedCustomizationTaskDefinition model CustomizationTaskDefinition { @doc("Full name of the task: {catalogName}/{taskName}.") @key("taskName") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("Name of the catalog that the task belongs to.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) catalogName: string; @doc("The unique URI of the customization task.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) uri?: url; @doc("Description of the task.") @@ -898,7 +898,7 @@ model CustomizationTaskDefinitionParameter { type: CustomizationTaskDefinitionParameterType; @doc("Whether or not the parameter is required.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) required?: boolean; @doc("Default value for the parameter.") @@ -922,7 +922,7 @@ model CustomizationTaskList { model CustomizationTask { @doc("Name of the task.") @key("taskName") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) name: string; @doc("Parameters for the task.") @@ -938,23 +938,23 @@ model CustomizationTask { runAs?: CustomizationTaskExecutionAccount; @doc("ID of the task instance.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; @doc("The unique URI for retrieving the task logs.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) logUri?: string; @doc("Status of the task.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: CustomizationTaskStatus; @doc("Start time of the task, in RFC3339 format.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) startTime?: utcDateTime; @doc("End time of the task, in RFC3339 format.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) endTime?: utcDateTime; } @@ -1000,7 +1000,7 @@ model CustomizationGroup { tasks?: CustomizationTask[]; @doc("The unique URI of the customization group.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) uri?: string; @doc("Name of the customization group.") @@ -1008,19 +1008,19 @@ model CustomizationGroup { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("Status of the customization group.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: CustomizationGroupStatus; @doc("Start time of the customization group, in RFC3339 format.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) startTime?: utcDateTime; @doc("End time of the customization group, in RFC3339 format.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) endTime?: utcDateTime; } @@ -1031,20 +1031,20 @@ model CustomizationGroup { model DevBoxSnapshot { @key("snapshotId") @doc("The id of the snapshot. Should be treated as opaque string.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) snapshotId: string; @doc("The datetime that the snapshot was created, in RFC3339 format.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) createdTime: utcDateTime; @doc("The datetime when the snapshot expires, will only be shown for a manual snapshot, in RFC3339 format.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @added(APIVersions.v2024_10_01_preview) expirationTime?: utcDateTime; @doc("The type of the snapshot indicates whether it is manual or automatic.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @added(APIVersions.v2024_10_01_preview) snapshotType: SnapshotType; } diff --git a/specification/devcenter/DevCenter/Environments/models.tsp b/specification/devcenter/DevCenter/Environments/models.tsp index 15849a787054..e1d31732df1a 100644 --- a/specification/devcenter/DevCenter/Environments/models.tsp +++ b/specification/devcenter/DevCenter/Environments/models.tsp @@ -174,7 +174,7 @@ model Environment { ...EnvironmentUpdateProperties; @doc("The unique URI of the environment.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @added(APIVersions.v2024_02_01) uri: url; @@ -183,35 +183,35 @@ model Environment { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("Environment type.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) environmentType: string; @doc("The AAD object id of the owner of this Environment.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) user?: Azure.Core.uuid; @doc("The provisioning state of the environment.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: EnvironmentProvisioningState; @doc("The identifier of the resource group containing the environment's resources.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceGroupId?: string; @doc("Name of the catalog.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) catalogName: string; @doc("Name of the environment definition.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) environmentDefinitionName: string; @doc("Provisioning error details. Populated only for error states.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) error?: Azure.Core.Foundations.Error; } @@ -268,7 +268,7 @@ model EnvironmentOperation { @minLength(36) @maxLength(36) @pattern("^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @key("operationId") operationId: Azure.Core.uuid; @@ -304,12 +304,12 @@ model EnvironmentAction { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @key("actionName") name: string; @doc("Uri of the action resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) uri: url; @doc("The action that will be taken.") @@ -319,7 +319,7 @@ model EnvironmentAction { next?: EnvironmentNextAction; @doc("Object Id of the user who last modified the action.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastModifiedBy?: Azure.Core.uuid; @doc("Time the object was last modified, in RFC3339 format.") @@ -346,7 +346,7 @@ model Catalog { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } @@ -368,7 +368,7 @@ model EnvironmentDefinition { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("Name of the catalog.") @@ -437,7 +437,7 @@ model EnvironmentType { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc(""" diff --git a/specification/devcenter/DevCenter/shared/models.tsp b/specification/devcenter/DevCenter/shared/models.tsp index c6133eff434f..7b6a54115df8 100644 --- a/specification/devcenter/DevCenter/shared/models.tsp +++ b/specification/devcenter/DevCenter/shared/models.tsp @@ -15,7 +15,7 @@ namespace DevCenterService; @parentResource(Project) model OperationStatus { @doc("Fully qualified ID for the operation status.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: string; @doc("The operation id name.") @@ -23,7 +23,7 @@ model OperationStatus { @minLength(36) @pattern("^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$") @key("operationId") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: Azure.Core.uuid; @doc("Provisioning state of the resource.") @@ -63,7 +63,7 @@ model Project { @minLength(3) @maxLength(63) @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("Description of the project.") @@ -90,7 +90,7 @@ model User { @minLength(2) @maxLength(36) @pattern("^[a-zA-Z0-9]{8}-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{12}$|^me$") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) userId: string; } diff --git a/specification/deviceregistry/DeviceRegistry.Management/assetEndpointProfiles.tsp b/specification/deviceregistry/DeviceRegistry.Management/assetEndpointProfiles.tsp index 8d996478a50a..ba7800362cc0 100644 --- a/specification/deviceregistry/DeviceRegistry.Management/assetEndpointProfiles.tsp +++ b/specification/deviceregistry/DeviceRegistry.Management/assetEndpointProfiles.tsp @@ -29,14 +29,14 @@ model AssetEndpointProfile is TrackedResource { // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("The extended location.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @doc("Defines the Asset Endpoint Profile properties.") model AssetEndpointProfileProperties { @doc("Globally unique, immutable, non-reusable id.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) uuid?: string; @doc("The local valid URI specifying the network address/DNS name of a southbound device. The scheme part of the targetAddress URI specifies the type of the device. The additionalConfiguration field holds further connector type specific configuration.") @@ -62,17 +62,17 @@ model AssetEndpointProfileProperties { additionalConfiguration?: string; @doc("Reference to a discovered asset endpoint profile. Populated only if the asset endpoint profile has been created from discovery flow. Discovered asset endpoint profile name must be provided.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @added(Versions.v2024_09_01_preview) discoveredAssetEndpointProfileRef?: string; @doc("Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @added(Versions.v2024_09_01_preview) status?: AssetEndpointProfileStatus; @doc("Provisioning state of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -147,7 +147,7 @@ model OwnCertificate { @added(Versions.v2024_09_01_preview) model AssetEndpointProfileStatus { @doc("Array object to transfer and persist errors that originate from the Edge.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", []) errors?: AssetEndpointProfileStatusError[]; } @@ -156,11 +156,11 @@ model AssetEndpointProfileStatus { @added(Versions.v2024_09_01_preview) model AssetEndpointProfileStatusError { @doc("Error code for classification of errors (ex: 400, 404, 500, etc.).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) code?: int32; @doc("Human readable helpful error message to provide additional context for error (ex: “targetAddress 'foo' is not a valid url”).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) message?: string; } diff --git a/specification/deviceregistry/DeviceRegistry.Management/assets.tsp b/specification/deviceregistry/DeviceRegistry.Management/assets.tsp index c37193f20629..d64accbe5ead 100644 --- a/specification/deviceregistry/DeviceRegistry.Management/assets.tsp +++ b/specification/deviceregistry/DeviceRegistry.Management/assets.tsp @@ -29,14 +29,14 @@ model Asset is TrackedResource { // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("The extended location.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @doc("Defines the asset properties.") model AssetProperties { @doc("Globally unique, immutable, non-reusable id.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) uuid?: string; @doc("Resource path to asset type (model) definition.") @@ -47,7 +47,7 @@ model AssetProperties { enabled?: boolean; @doc("Asset id provided by the customer.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) externalAssetId?: string; @doc("Human-readable display name.") @@ -57,17 +57,17 @@ model AssetProperties { description?: string; @doc("A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset. Must have the format /.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @removed(Versions.v2024_09_01_preview) assetEndpointProfileUri: string; @doc("A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset. Must provide asset endpoint profile name.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @added(Versions.v2024_09_01_preview) assetEndpointProfileRef: string; @doc("An integer that is incremented each time the resource is modified.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @typeChangedFrom(Versions.v2024_09_01_preview, int32) version?: int64; @@ -100,7 +100,7 @@ model AssetProperties { attributes?: Record; @doc("Reference to a list of discovered assets. Populated only if the asset has been created from discovery flow. Discovered asset names must be provided.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @added(Versions.v2024_09_01_preview) discoveredAssetRefs?: string[]; @@ -134,11 +134,11 @@ model AssetProperties { events?: Event[]; @doc("Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: AssetStatus; @doc("Provisioning state of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -296,23 +296,23 @@ union EventObservabilityMode { @doc("Defines the asset status properties.") model AssetStatus { @doc("Array object to transfer and persist errors that originate from the Edge.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", []) errors?: AssetStatusError[]; @doc("A read only incremental counter indicating the number of times the configuration has been modified from the perspective of the current actual (Edge) state of the Asset. Edge would be the only writer of this value and would sync back up to the cloud. In steady state, this should equal version.") @typeChangedFrom(Versions.v2024_09_01_preview, int32) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) version?: int64; @doc("Array of dataset statuses that describe the status of each dataset.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @added(Versions.v2024_09_01_preview) @extension("x-ms-identifiers", []) datasets?: AssetStatusDataset[]; @doc("Array of event statuses that describe the status of each event.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @added(Versions.v2024_09_01_preview) @extension("x-ms-identifiers", []) events?: AssetStatusEvent[]; @@ -321,11 +321,11 @@ model AssetStatus { @doc("Defines the asset status error properties.") model AssetStatusError { @doc("Error code for classification of errors (ex: 400, 404, 500, etc.).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) code?: int32; @doc("Human readable helpful error message to provide additional context for error (ex: “capability Id 'foo' does not exist”).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) message?: string; } @@ -333,11 +333,11 @@ model AssetStatusError { @added(Versions.v2024_09_01_preview) model AssetStatusDataset { @doc("The name of the dataset. Must be unique within the status.datasets array. This name is used to correlate between the spec and status dataset information.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("The message schema reference object.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) messageSchemaReference?: MessageSchemaReference; } @@ -345,11 +345,11 @@ model AssetStatusDataset { @added(Versions.v2024_09_01_preview) model AssetStatusEvent { @doc("The name of the event. Must be unique within the status.events array. This name is used to correlate between the spec and status event information.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("The message schema reference object.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) messageSchemaReference?: MessageSchemaReference; } @@ -357,15 +357,15 @@ model AssetStatusEvent { @added(Versions.v2024_09_01_preview) model MessageSchemaReference { @doc("The message schema registry namespace.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) schemaRegistryNamespace: string; @doc("The message schema name.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) schemaName: string; @doc("The message schema version.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) schemaVersion: string; } diff --git a/specification/deviceregistry/DeviceRegistry.Management/billings.tsp b/specification/deviceregistry/DeviceRegistry.Management/billings.tsp index 012dea0b4b6c..f305df1aebe2 100644 --- a/specification/deviceregistry/DeviceRegistry.Management/billings.tsp +++ b/specification/deviceregistry/DeviceRegistry.Management/billings.tsp @@ -30,7 +30,7 @@ model BillingContainer is ProxyResource { // Suppress linter false positive for etag properties not allowed at top level of ProxyResource #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Resource ETag") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) etag?: string; } @@ -38,7 +38,7 @@ model BillingContainer is ProxyResource { @doc("Defines the billingContainer properties.") model BillingContainerProperties { @doc("Provisioning state of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/deviceregistry/DeviceRegistry.Management/discoveredAssetEndpointProfiles.tsp b/specification/deviceregistry/DeviceRegistry.Management/discoveredAssetEndpointProfiles.tsp index 2bfc4a3e9a0e..d4eaecee000e 100644 --- a/specification/deviceregistry/DeviceRegistry.Management/discoveredAssetEndpointProfiles.tsp +++ b/specification/deviceregistry/DeviceRegistry.Management/discoveredAssetEndpointProfiles.tsp @@ -32,7 +32,7 @@ model DiscoveredAssetEndpointProfile // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("The extended location.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -60,7 +60,7 @@ model DiscoveredAssetEndpointProfileProperties { version: int64; @doc("Provisioning state of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/deviceregistry/DeviceRegistry.Management/discoveredAssets.tsp b/specification/deviceregistry/DeviceRegistry.Management/discoveredAssets.tsp index 010c98459139..3723cdb57c9b 100644 --- a/specification/deviceregistry/DeviceRegistry.Management/discoveredAssets.tsp +++ b/specification/deviceregistry/DeviceRegistry.Management/discoveredAssets.tsp @@ -31,7 +31,7 @@ model DiscoveredAsset is TrackedResource { // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("The extended location.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -40,7 +40,7 @@ model DiscoveredAsset is TrackedResource { @removed(Versions.v2024_11_01) model DiscoveredAssetProperties { @doc("A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset. Must provide asset endpoint profile name.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) assetEndpointProfileRef: string; @doc("Identifier used to detect changes in the asset.") @@ -91,7 +91,7 @@ model DiscoveredAssetProperties { events?: DiscoveredEvent[]; @doc("Provisioning state of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/deviceregistry/DeviceRegistry.Management/schemaRegistries.tsp b/specification/deviceregistry/DeviceRegistry.Management/schemaRegistries.tsp index 416586f1f18d..6d4763bbfb22 100644 --- a/specification/deviceregistry/DeviceRegistry.Management/schemaRegistries.tsp +++ b/specification/deviceregistry/DeviceRegistry.Management/schemaRegistries.tsp @@ -34,11 +34,11 @@ model SchemaRegistry is TrackedResource { @doc("Defines the schema registry properties.") model SchemaRegistryProperties { @doc("Globally unique, immutable, non-reusable id.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) uuid?: string; @doc("Schema registry namespace. Uniquely identifies a schema registry within a tenant.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @pattern("^[a-z0-9][a-z0-9-]*[a-z0-9]$") @maxLength(32) `namespace`: string; @@ -50,11 +50,11 @@ model SchemaRegistryProperties { description?: string; @doc("The Storage Account's Container URL where schemas will be stored.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) storageAccountContainerUrl: string; @doc("Provisioning state of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -78,7 +78,7 @@ model Schema is ProxyResource { @doc("Defines the schema properties.") model SchemaProperties { @doc("Globally unique, immutable, non-reusable id.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) uuid?: string; @doc("Human-readable display name.") @@ -88,15 +88,15 @@ model SchemaProperties { description?: string; @doc("Format of the schema.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) format: Format; @doc("Type of the schema.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) schemaType: SchemaType; @doc("Provisioning state of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "" @@ -148,22 +148,22 @@ model SchemaVersion is ProxyResource { @doc("Defines the schema version properties.") model SchemaVersionProperties { @doc("Globally unique, immutable, non-reusable id.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) uuid?: string; @doc("Human-readable description of the schema.") description?: string; @doc("Schema content.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) schemaContent: string; @doc("Hash of the schema content.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) hash?: string; @doc("Provisioning state of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/durabletask/DurableTask.Management/main.tsp b/specification/durabletask/DurableTask.Management/main.tsp index db994b9f43af..ac074b5a5dbe 100644 --- a/specification/durabletask/DurableTask.Management/main.tsp +++ b/specification/durabletask/DurableTask.Management/main.tsp @@ -41,12 +41,12 @@ model Scheduler is Azure.ResourceManager.TrackedResource { @doc("Details of the Scheduler") @added(Versions.v2024_10_01_Preview) model SchedulerProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation") provisioningState?: ProvisioningState; @doc("URL of the durable task scheduler") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) endpoint?: string; @doc("IP allow list for durable task scheduler. Values can be IPv4, IPv6 or CIDR") @@ -66,7 +66,7 @@ model SchedulerSku { capacity?: int32; @doc("Indicates whether the current SKU configuration is zone redundant") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) redundancyState?: RedundancyState; } @@ -95,12 +95,12 @@ union RedundancyState { @doc("The properties of Task Hub") model TaskHubProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation") provisioningState?: ProvisioningState; @doc("URL of the durable task scheduler dashboard") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) dashboardUrl?: url; } diff --git a/specification/edge/Microsoft.Edge.Sites.Management/Site.tsp b/specification/edge/Microsoft.Edge.Sites.Management/Site.tsp index dd49e7e7a1aa..166e5c06d0e2 100644 --- a/specification/edge/Microsoft.Edge.Sites.Management/Site.tsp +++ b/specification/edge/Microsoft.Edge.Sites.Management/Site.tsp @@ -18,7 +18,7 @@ model Site is ProxyResource { @path @key("siteName") @segment("sites") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/edge/Microsoft.Edge.Sites.Management/models.tsp b/specification/edge/Microsoft.Edge.Sites.Management/models.tsp index 5910557a4892..63af73ff60e8 100644 --- a/specification/edge/Microsoft.Edge.Sites.Management/models.tsp +++ b/specification/edge/Microsoft.Edge.Sites.Management/models.tsp @@ -27,7 +27,7 @@ model SiteProperties { ]>; @doc("Provisioning state of last operation") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } diff --git a/specification/edgezones/EdgeZones.Management/main.tsp b/specification/edgezones/EdgeZones.Management/main.tsp index e1cf3b8ee14d..7a79f0040188 100644 --- a/specification/edgezones/EdgeZones.Management/main.tsp +++ b/specification/edgezones/EdgeZones.Management/main.tsp @@ -64,47 +64,47 @@ union RegistrationState { @doc("The properties of an Extended Zone resource.") model ExtendedZoneProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Status of the last operation performed by the subscription on the Edge Zone resource") provisioningState?: ProvisioningState; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Indicates the Azure Extended Zone registration’s approval status.") registrationState?: RegistrationState; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Display name of the Azure Extended Zone.") displayName: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Regional display name of the Azure Extended Zone.") regionalDisplayName: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Type of region for the Azure Extended Zone.") regionType: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Category of region for the Azure Extended Zone.") regionCategory: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Geography of the Azure Extended Zone.") geography: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The Geography Group of the Azure Extended Zone.") geographyGroup: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The Longitude of the Azure Extended Zone.") longitude: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The Latitude of the Azure Extended Zone.") latitude: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The Home Location of the Azure Extended Zone.") homeLocation: string; } diff --git a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp index 24f9b15e74aa..1d26c62d9d02 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid/main.tsp @@ -208,7 +208,7 @@ namespace Microsoft.EventGrid { model Topic { @key @doc("Topic Name.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) topicName: string; } @@ -218,7 +218,7 @@ namespace Microsoft.EventGrid { model EventSubscription { @key @doc("Event Subscription Name.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) eventSubscriptionName: string; } diff --git a/specification/ews/SecretSyncController.Management/azurekeyvaultsecretproviderclass.tsp b/specification/ews/SecretSyncController.Management/azurekeyvaultsecretproviderclass.tsp index 0662fbed82d4..5e1ba8fc71f5 100644 --- a/specification/ews/SecretSyncController.Management/azurekeyvaultsecretproviderclass.tsp +++ b/specification/ews/SecretSyncController.Management/azurekeyvaultsecretproviderclass.tsp @@ -43,7 +43,7 @@ model AzureKeyVaultSecretProviderClassProperties { objects?: string; @doc("Provisioning state of the AzureKeyVaultSecretProviderClass instance.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/ews/SecretSyncController.Management/secretsync.tsp b/specification/ews/SecretSyncController.Management/secretsync.tsp index 63f996fee270..3ce1bbeef880 100644 --- a/specification/ews/SecretSyncController.Management/secretsync.tsp +++ b/specification/ews/SecretSyncController.Management/secretsync.tsp @@ -49,12 +49,12 @@ model SecretSyncProperties { @OpenAPI.extension("x-ms-identifiers", []) objectSecretMapping: KubernetesSecretObjectMapping[]; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("SecretSyncStatus defines the observed state of the secret synchronization process.") status?: SecretSyncStatus; @doc("Provisioning state of the SecretSync instance.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -106,12 +106,12 @@ union StatusConditionType { @doc("SecretSyncStatus defines the observed state of the secret synchronization process.") model SecretSyncStatus { @doc("LastSuccessfulSyncTime represents the last time the secret was retrieved from the Provider and updated.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastSuccessfulSyncTime?: utcDateTime; @OpenAPI.extension("x-ms-identifiers", []) @doc("Conditions represent the status of the secret create and update processes. The status can be True, False, or Unknown with various reasons and messages explaining the state. Examples of reasons include CreateSucceeded, ProviderError, InvalidClusterSecretLabelError, InvalidClusterSecretAnnotationError, UnknownError, ValidatingAdmissionPolicyCheckFailed, UserInputValidationFailed, ControllerSpcError, ControllerInternalError, NoValueChange, and ValueChangeOrForceUpdateDetected.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) conditions?: SecretSyncCondition[]; // Not including syncHash at the moment for security concerns TODO #28507544 https://msazure.visualstudio.com/One/_workitems/edit/28507544 @@ -120,30 +120,30 @@ model SecretSyncStatus { @doc("A condition represents the status of the secret create and update processes.") model SecretSyncCondition { @doc("LastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastTransitionTime?: utcDateTime; @doc("Message is a human readable message indicating details about the transition. This may be an empty string.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) message: string; @doc("ObservedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) observedGeneration?: int64; @doc("Reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @minLength(1) @maxLength(1024) @pattern("^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$") reason: string; @doc("Status of the condition, one of True, False, Unknown.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status: StatusConditionType; @doc("Type of condition in CamelCase or in foo.example.com/CamelCase. Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to de-conflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @maxLength(316) @pattern("^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$") type: string; diff --git a/specification/fabric/Microsoft.Fabric.Management/capacity.tsp b/specification/fabric/Microsoft.Fabric.Management/capacity.tsp index 23ba8323fc1b..c669c8ab09e0 100644 --- a/specification/fabric/Microsoft.Fabric.Management/capacity.tsp +++ b/specification/fabric/Microsoft.Fabric.Management/capacity.tsp @@ -20,7 +20,7 @@ model FabricCapacity is TrackedResource { @key("capacityName") @path @segment("capacities") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "The standard ResourceSkuProperty does not fit our case" diff --git a/specification/fabric/Microsoft.Fabric.Management/models.tsp b/specification/fabric/Microsoft.Fabric.Management/models.tsp index 1fb0a8e7dc7e..9fd6a4223757 100644 --- a/specification/fabric/Microsoft.Fabric.Management/models.tsp +++ b/specification/fabric/Microsoft.Fabric.Management/models.tsp @@ -15,11 +15,11 @@ interface Operations extends Azure.ResourceManager.Operations {} @doc("The Microsoft Fabric capacity properties.") model FabricCapacityProperties { @doc("The current deployment state of Microsoft Fabric resource. The provisioningState is to indicate states for resource provisioning.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @doc("The current state of Microsoft Fabric resource. The state is to indicate more states outside of resource provisioning.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) state?: ResourceState; @doc("The capacity administration") @@ -172,7 +172,7 @@ model CapacityNameParameter { @doc("Describes Resource Quota") model Quota { @doc("The name of the quota.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name?: QuotaName; @doc("The unit of usage measurement.") diff --git a/specification/github-network/GitHub.Network.Management/NetworkSettingsResource.tsp b/specification/github-network/GitHub.Network.Management/NetworkSettingsResource.tsp index 0a9cfb4e7d51..45d4654eb3c5 100644 --- a/specification/github-network/GitHub.Network.Management/NetworkSettingsResource.tsp +++ b/specification/github-network/GitHub.Network.Management/NetworkSettingsResource.tsp @@ -22,7 +22,7 @@ model NetworkSettingsResource @path @key("networkSettingsName") @segment("networkSettings") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/github-network/GitHub.Network.Management/models.tsp b/specification/github-network/GitHub.Network.Management/models.tsp index 870cfda0c0ae..ac309b8e80b5 100644 --- a/specification/github-network/GitHub.Network.Management/models.tsp +++ b/specification/github-network/GitHub.Network.Management/models.tsp @@ -37,15 +37,15 @@ union ProvisioningState { @doc("NetworkSettings resource-specific properties.") model NetworkSettingsResourceProperties { @doc("Specifies a subnet ID for vnet-injection.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) subnetId?: string; @doc("Specifies the GitHub business (enterprise/organization) ID associated to the Azure subscription.") @added(Versions.`2024-04-01-preview`) - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) businessId?: string; @doc("The managed application provisioning state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/healthdataaiservices/HealthDataAIServices.DeidServices/models_document_flow.tsp b/specification/healthdataaiservices/HealthDataAIServices.DeidServices/models_document_flow.tsp index afa429358ea8..6023b28a1e05 100644 --- a/specification/healthdataaiservices/HealthDataAIServices.DeidServices/models_document_flow.tsp +++ b/specification/healthdataaiservices/HealthDataAIServices.DeidServices/models_document_flow.tsp @@ -15,7 +15,7 @@ namespace HealthDataAIServices.DeidServices; model DeidentificationJob { @key @doc("The name of a job.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @maxLength(36) @minLength(3) // Must be 3 to match regex @pattern("^[a-zA-Z0-9][a-zA-Z0-9-_]+[a-zA-Z0-9]$") @@ -36,12 +36,12 @@ model DeidentificationJob { // Readonly Properties @doc("Current status of a job.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @pollingOperationParameter status: Azure.Core.Foundations.OperationState; @doc("Error when job fails in it's entirety.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) error?: Azure.Core.Foundations.Error; @doc(""" @@ -51,19 +51,19 @@ model DeidentificationJob { If the job failed, this is the time when the job failed. """) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastUpdatedAt: utcDateTime; @doc("Date and time when the job was created.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) createdAt: utcDateTime; @doc("Date and time when the job was started.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) startedAt?: utcDateTime; @doc("Summary of a job. Exists only when the job is completed.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) summary?: DeidentificationJobSummary; } @@ -96,7 +96,7 @@ model DeidentificationJobSummary { model DeidentificationDocumentDetails { @key @doc("Id of the document details.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: string; @doc("Location for the input.") diff --git a/specification/healthdataaiservices/HealthDataAIServices.Management/main.tsp b/specification/healthdataaiservices/HealthDataAIServices.Management/main.tsp index 22280236fbb2..e539dce2215c 100644 --- a/specification/healthdataaiservices/HealthDataAIServices.Management/main.tsp +++ b/specification/healthdataaiservices/HealthDataAIServices.Management/main.tsp @@ -101,16 +101,16 @@ enum PublicNetworkAccess { @doc("Details of the HealthDataAIServices DeidService.") model DeidServiceProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Deid service url.") serviceUrl?: string; @doc("List of private endpoint connections.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) privateEndpointConnections?: PrivateEndpointConnection[]; @doc("Gets or sets allow or disallow public network access to resource") diff --git a/specification/hybridconnectivity/HybridConnectivity.Management/PublicCloud.tsp b/specification/hybridconnectivity/HybridConnectivity.Management/PublicCloud.tsp index 08685b7c4cd2..5236f96d666d 100644 --- a/specification/hybridconnectivity/HybridConnectivity.Management/PublicCloud.tsp +++ b/specification/hybridconnectivity/HybridConnectivity.Management/PublicCloud.tsp @@ -101,15 +101,15 @@ model PublicCloudConnectorProperties { awsCloudProfile: AwsCloudProfile; @doc("Host cloud the public cloud connector.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) hostType: HostType; @doc("The resource provisioning state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; @doc("Connector primary identifier.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) connectorPrimaryIdentifier?: string; } @@ -124,14 +124,14 @@ union HostType { @doc("cloud profile for AWS.") model AwsCloudProfile { @doc("Account id for the AWS account.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) accountId: string; @doc("List of AWS accounts which need to be excluded.") excludedAccounts?: string[]; @doc("Boolean value that indicates whether the account is organizational or not. True represents organization account, whereas false represents a single account.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) isOrganizationalAccount?: boolean = false; } @@ -152,7 +152,7 @@ model SolutionConfiguration @doc("Solution configuration resource.") model SolutionConfigurationProperties { @doc("The resource provisioning state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; @doc("The type of the solution") @@ -162,15 +162,15 @@ model SolutionConfigurationProperties { solutionSettings?: SolutionSettings; @doc("The status of solution configurations") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: SolutionConfigurationStatus; @doc("The detailed message of status details") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) statusDetails?: string; @doc("The last time resources were inventoried") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastSyncTime?: utcDateTime; } @@ -248,7 +248,7 @@ model InventoryResource is ProxyResource { @doc("Inventory resource") @segment("inventory") @key("inventoryId") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path name: string; } @@ -271,7 +271,7 @@ model InventoryProperties { statusDetails?: string; @doc("The resource provisioning state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } diff --git a/specification/hybridconnectivity/HybridConnectivity.Management/models.tsp b/specification/hybridconnectivity/HybridConnectivity.Management/models.tsp index a15e267422a8..84d2033223c1 100644 --- a/specification/hybridconnectivity/HybridConnectivity.Management/models.tsp +++ b/specification/hybridconnectivity/HybridConnectivity.Management/models.tsp @@ -74,7 +74,7 @@ model EndpointProperties { * The resource provisioning state. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "For backward compatibility" - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: string; } @@ -85,25 +85,25 @@ model Resource { /** * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; /** * The name of the resource */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name?: string; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) type?: string; /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) systemData?: SystemData; } @@ -134,7 +134,7 @@ model ServiceConfigurationProperties { /** * The resource provisioning state. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -208,7 +208,7 @@ model RelayNamespaceAccessProperties { /** * Access key for hybrid connection. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) accessKey?: string; /** diff --git a/specification/impact/Impact.Management/ImpactCategories.tsp b/specification/impact/Impact.Management/ImpactCategories.tsp index ab10deaddd43..b6f4631f499e 100644 --- a/specification/impact/Impact.Management/ImpactCategories.tsp +++ b/specification/impact/Impact.Management/ImpactCategories.tsp @@ -21,7 +21,7 @@ model ImpactCategory @key("impactCategoryName") @segment("impactCategories") @doc("Name of the impact category") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path name: string; } diff --git a/specification/impact/Impact.Management/connectors.tsp b/specification/impact/Impact.Management/connectors.tsp index 8e681ed19a81..4a3da99f91a1 100644 --- a/specification/impact/Impact.Management/connectors.tsp +++ b/specification/impact/Impact.Management/connectors.tsp @@ -24,18 +24,18 @@ model Connector is ProxyResource { @doc("Details of the Connector.") model ConnectorProperties is ResourceProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("unique id of the connector.") connectorId: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("tenant id of this connector") tenantId: string; @doc("connector type") connectorType: Platform; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("last run time stamp of this connector in UTC time zone") lastRunTimeStamp: utcDateTime; } diff --git a/specification/impact/Impact.Management/insights.tsp b/specification/impact/Impact.Management/insights.tsp index 250fede272be..cadd6bb3bbb4 100644 --- a/specification/impact/Impact.Management/insights.tsp +++ b/specification/impact/Impact.Management/insights.tsp @@ -18,7 +18,7 @@ model Insight is ProxyResource { @key("insightName") @segment("insights") @doc("Name of the insight") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path name: string; } @@ -30,7 +30,7 @@ model InsightUnderSubscription is ProxyResource { @key("insightName") @segment("insights") @doc("Name of the insight") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path name: string; } diff --git a/specification/impact/Impact.Management/main.tsp b/specification/impact/Impact.Management/main.tsp index 25ef4400fcc3..7057b5d19e86 100644 --- a/specification/impact/Impact.Management/main.tsp +++ b/specification/impact/Impact.Management/main.tsp @@ -30,6 +30,6 @@ union ProvisioningState { @doc("General resource properties.") model ResourceProperties { @doc("Resource provisioning state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/impact/Impact.Management/workloadImpacts.tsp b/specification/impact/Impact.Management/workloadImpacts.tsp index 459dcd38e62b..699295cca9cf 100644 --- a/specification/impact/Impact.Management/workloadImpacts.tsp +++ b/specification/impact/Impact.Management/workloadImpacts.tsp @@ -18,7 +18,7 @@ model WorkloadImpact is ProxyResource { @key("workloadImpactName") @segment("workloadImpacts") @doc("workloadImpact resource ") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path name: string; } @@ -35,12 +35,12 @@ model WorkloadImpactProperties is ResourceProperties { impactedResourceId: string; @doc("Unique ID of the impact (UUID)") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @pattern("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}") impactUniqueId?: string; @doc("Time at which impact is reported") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) reportedTimeUtc?: utcDateTime; @doc("Category of the impact, details can found from /impactCategories API") diff --git a/specification/informatica/Informatica.DataManagement.Management/main.tsp b/specification/informatica/Informatica.DataManagement.Management/main.tsp index 4f5e6834edca..937cf348e937 100644 --- a/specification/informatica/Informatica.DataManagement.Management/main.tsp +++ b/specification/informatica/Informatica.DataManagement.Management/main.tsp @@ -259,7 +259,7 @@ model InformaticaServerlessRuntimeResource @doc("Properties specific to the Informatica DataManagement Organization resource.") model OrganizationProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Provisioning State of the resource.") provisioningState?: ProvisioningState; @@ -392,7 +392,7 @@ model ServerlessMetadataResponse { @doc("Serverless Runtime properties.") model InformaticaServerlessRuntimeProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Provisioning State of the resource.") provisioningState?: ProvisioningState; diff --git a/specification/iotoperations/IoTOperations.Management/models/broker/authentications.tsp b/specification/iotoperations/IoTOperations.Management/models/broker/authentications.tsp index 1e56c70e2783..fc8f3bc03e12 100644 --- a/specification/iotoperations/IoTOperations.Management/models/broker/authentications.tsp +++ b/specification/iotoperations/IoTOperations.Management/models/broker/authentications.tsp @@ -28,7 +28,7 @@ model BrokerAuthenticationResource // Extended location is not included in ProxyResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -38,7 +38,7 @@ model BrokerAuthenticationProperties { @OpenAPI.extension("x-ms-identifiers", []) authenticationMethods: BrokerAuthenticatorMethods[]; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperations/IoTOperations.Management/models/broker/authorizations.tsp b/specification/iotoperations/IoTOperations.Management/models/broker/authorizations.tsp index b916750ab281..c95bba481726 100644 --- a/specification/iotoperations/IoTOperations.Management/models/broker/authorizations.tsp +++ b/specification/iotoperations/IoTOperations.Management/models/broker/authorizations.tsp @@ -28,7 +28,7 @@ model BrokerAuthorizationResource // Extended location is not included in ProxyResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -37,7 +37,7 @@ model BrokerAuthorizationProperties { @doc("The list of authorization policies supported by the Authorization Resource.") authorizationPolicies: AuthorizationConfig; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperations/IoTOperations.Management/models/broker/brokers.tsp b/specification/iotoperations/IoTOperations.Management/models/broker/brokers.tsp index 1ae39ed03254..91078e41b985 100644 --- a/specification/iotoperations/IoTOperations.Management/models/broker/brokers.tsp +++ b/specification/iotoperations/IoTOperations.Management/models/broker/brokers.tsp @@ -27,36 +27,36 @@ model BrokerResource is ProxyResource { // Extended location is not included in ProxyResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @doc("Broker Resource properties") model BrokerProperties { - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("Advanced settings of Broker.") advanced?: AdvancedSettings; - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("The cardinality details of the broker.") cardinality?: Cardinality; @doc("Spec defines the desired identities of Broker diagnostics settings.") diagnostics?: BrokerDiagnostics; - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("Settings of Disk Backed Message Buffer.") diskBackedMessageBuffer?: DiskBackedMessageBuffer; - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("This setting controls whether Kubernetes CPU resource limits are requested. Increasing the number of replicas or workers proportionally increases the amount of CPU resources requested. If this setting is enabled and there are insufficient CPU resources, an error will be emitted.") generateResourceLimits?: GenerateResourceLimits; - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) @doc("Memory profile of Broker.") memoryProfile?: BrokerMemoryProfile = BrokerMemoryProfile.Medium; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperations/IoTOperations.Management/models/broker/listeners.tsp b/specification/iotoperations/IoTOperations.Management/models/broker/listeners.tsp index 9e8f39ed75fa..611b35b03d74 100644 --- a/specification/iotoperations/IoTOperations.Management/models/broker/listeners.tsp +++ b/specification/iotoperations/IoTOperations.Management/models/broker/listeners.tsp @@ -26,7 +26,7 @@ model BrokerListenerResource is ProxyResource { // Extended location is not included in ProxyResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -42,7 +42,7 @@ model BrokerListenerProperties { @doc("Kubernetes Service type of this listener.") serviceType?: ServiceType = ServiceType.ClusterIp; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflowEndpoints.tsp b/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflowEndpoints.tsp index 1c9551f90fc6..b049e4058d75 100644 --- a/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflowEndpoints.tsp +++ b/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflowEndpoints.tsp @@ -28,7 +28,7 @@ model DataflowEndpointResource is ProxyResource { // Extended location is not included in ProxyResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -55,7 +55,7 @@ model DataflowEndpointProperties { @doc("Broker endpoint.") mqttSettings?: DataflowEndpointMqtt; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflowProfiles.tsp b/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflowProfiles.tsp index 25523d13a764..ceb99364ea5e 100644 --- a/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflowProfiles.tsp +++ b/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflowProfiles.tsp @@ -28,7 +28,7 @@ model DataflowProfileResource is ProxyResource { // Extended location is not included in ProxyResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -42,7 +42,7 @@ model DataflowProfileProperties { @maxValue(20) instanceCount?: int32 = 1; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflows.tsp b/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflows.tsp index 9f47821cb427..8ca261cfb88b 100644 --- a/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflows.tsp +++ b/specification/iotoperations/IoTOperations.Management/models/dataflows/dataflows.tsp @@ -28,7 +28,7 @@ model DataflowResource is ProxyResource { // Extended location is not included in ProxyResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -41,7 +41,7 @@ model DataflowProperties { @OpenAPI.extension("x-ms-identifiers", []) operations: DataflowOperation[]; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperations/IoTOperations.Management/models/instance.tsp b/specification/iotoperations/IoTOperations.Management/models/instance.tsp index 972ca68de699..494fb5f2ccb0 100644 --- a/specification/iotoperations/IoTOperations.Management/models/instance.tsp +++ b/specification/iotoperations/IoTOperations.Management/models/instance.tsp @@ -26,7 +26,7 @@ model InstanceResource is TrackedResource { // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; ...ManagedServiceIdentityProperty; @@ -44,11 +44,11 @@ model InstanceProperties { description?: string; @doc("The status of the last operation.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @doc("The Azure IoT Operations version.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) version?: string; @doc("The reference to the Schema Registry for this AIO Instance.") diff --git a/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/dataset.tsp b/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/dataset.tsp index 8ed121f18881..bf1b001ac5ac 100644 --- a/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/dataset.tsp +++ b/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/dataset.tsp @@ -27,7 +27,7 @@ model Dataset is TrackedResource { // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -50,7 +50,7 @@ model DatasetProperties { keys?: Record; @doc("The status of the last operation.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/instance.tsp b/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/instance.tsp index a8466511c2f1..a95d692e52b0 100644 --- a/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/instance.tsp +++ b/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/instance.tsp @@ -25,7 +25,7 @@ model Instance is TrackedResource { // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -35,7 +35,7 @@ model InstanceProperties { description?: string; @doc("The status of the last operation.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/pipeline.tsp b/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/pipeline.tsp index 3720d0d9ff64..035b698b506d 100644 --- a/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/pipeline.tsp +++ b/specification/iotoperationsdataprocessor/IoTOperationsDataProcessor.Management/pipeline.tsp @@ -27,7 +27,7 @@ model Pipeline is TrackedResource { // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -47,7 +47,7 @@ model PipelineProperties { stages: Record; @doc("The status of the last operation.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/base.tsp b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/base.tsp index 1466d7a4b4f0..ec3e7031a8a7 100644 --- a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/base.tsp +++ b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/base.tsp @@ -8,7 +8,7 @@ namespace Microsoft.IoTOperationsMQ; #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Extended location is a valid property" alias ExtendedLocation = { @doc("Extended Location") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocationProperty; }; diff --git a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/datalakeconnector.tsp b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/datalakeconnector.tsp index e150b660a5db..1ba0566ec148 100644 --- a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/datalakeconnector.tsp +++ b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/datalakeconnector.tsp @@ -62,7 +62,7 @@ model DataLakeConnectorProperties { @doc("The protocol to use for connecting with Brokers. NOTE - Enum only storage is supported at at time.") target: DataLakeTargetStorage; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } @@ -203,7 +203,7 @@ model DataLakeConnectorTopicMapProperties { @doc("TopicMap for DataLake connector.") mapping: DataLakeConnectorMap; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/diagnosticservice.tsp b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/diagnosticservice.tsp index 461bdb50e56c..cfba68c25c8a 100644 --- a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/diagnosticservice.tsp +++ b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/diagnosticservice.tsp @@ -61,7 +61,7 @@ model DiagnosticServiceProperties { @doc("The destination to collect traces. Diagnostic service will push traces to this endpoint") openTelemetryTracesCollectorAddr?: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; diff --git a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/kafkaconnector.tsp b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/kafkaconnector.tsp index 8ad856745a1a..831c8c6ed2aa 100644 --- a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/kafkaconnector.tsp +++ b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/kafkaconnector.tsp @@ -57,7 +57,7 @@ model KafkaConnectorProperties { @doc("The Node Tolerations for the Bridge Connector pods.") nodeTolerations?: NodeTolerations; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } @@ -209,7 +209,7 @@ model KafkaTopicMapProperties { @OpenAPI.extension("x-ms-identifiers", []) routes: KafkaRoutes[]; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mq.tsp b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mq.tsp index 26ee7b37acef..658d40b76386 100644 --- a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mq.tsp +++ b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mq.tsp @@ -31,7 +31,7 @@ model MqResource is TrackedResource { @doc("MQ Resource properties") model MqProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mqttbridgeconnector.tsp b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mqttbridgeconnector.tsp index ecb83cb4e11c..e68975536d85 100644 --- a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mqttbridgeconnector.tsp +++ b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mqttbridgeconnector.tsp @@ -58,7 +58,7 @@ model MqttBridgeConnectorProperties { @doc("The protocol to use for connecting with Brokers.") protocol: MqttProtocol; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; @@ -151,7 +151,7 @@ model MqttBridgeTopicMapProperties { @OpenAPI.extension("x-ms-identifiers", []) routes?: MqttBridgeRoutes[]; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mqttbroker.tsp b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mqttbroker.tsp index 15c9e513ce1f..eb5ddc9bd154 100644 --- a/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mqttbroker.tsp +++ b/specification/iotoperationsmq/IoTOperationsMQ.Management/models/mqttbroker.tsp @@ -70,7 +70,7 @@ model BrokerProperties { @doc("The Running Mode of the Broker Deployment.") mode: RunMode; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } @@ -419,7 +419,7 @@ model BrokerListenerProperties { @doc("Defines configuration of a TLS server certificate. NOTE Enum - Only one TLS Cert method is supported") tls?: TlsCertMethod; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } @@ -515,7 +515,7 @@ model BrokerAuthenticationProperties { @doc("The array of listener Resources it supports.") listenerRef: string[]; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } @@ -649,7 +649,7 @@ model BrokerAuthorizationProperties { @doc("The array of listener Resources it supports.") listenerRef: string[]; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/instance.tsp b/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/instance.tsp index f9b533ca87ff..717e01bb6953 100644 --- a/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/instance.tsp +++ b/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/instance.tsp @@ -25,7 +25,7 @@ model Instance is TrackedResource { // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -47,7 +47,7 @@ model InstanceProperties { version?: string; @doc("The status of the last operation.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/solution.tsp b/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/solution.tsp index 8a9ad0c0ae7c..912782733905 100644 --- a/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/solution.tsp +++ b/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/solution.tsp @@ -25,7 +25,7 @@ model Solution is TrackedResource { // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -39,7 +39,7 @@ model SolutionProperties { version?: string; @doc("The status of the last operation.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } diff --git a/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/target.tsp b/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/target.tsp index de4cabb423c1..b76e277645c6 100644 --- a/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/target.tsp +++ b/specification/iotoperationsorchestrator/IoTOperationsOrchestrator.Management/target.tsp @@ -25,7 +25,7 @@ model Target is TrackedResource { // Extended location is not included in TrackedResource yet #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" @doc("Edge location of the resource.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } @@ -49,7 +49,7 @@ model TargetProperties { version?: string; @doc("The status of the last operation.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/keyvault/Security.KeyVault.Certificates/models.tsp b/specification/keyvault/Security.KeyVault.Certificates/models.tsp index a4f5ff990fbc..4207acbefb13 100644 --- a/specification/keyvault/Security.KeyVault.Certificates/models.tsp +++ b/specification/keyvault/Security.KeyVault.Certificates/models.tsp @@ -155,7 +155,7 @@ model CertificateListResult { * The URL to get the next set of certificates. */ @TypeSpec.nextLink - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nextLink?: string; } @@ -196,13 +196,13 @@ model CertificateAttributes { /** * softDelete data retention days. Value should be >=7 and <=90 when softDelete enabled, otherwise 0. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) recoverableDays?: int32; /** * Reflects the deletion recovery level currently in effect for certificates in the current vault. If it contains 'Purgeable', the certificate can be permanently deleted by a privileged user; otherwise, only the system can purge the certificate, at the end of the retention interval. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) recoveryLevel?: DeletionRecoveryLevel; } @@ -234,14 +234,14 @@ model Attributes { /** * Creation time in UTC. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) created?: utcDateTime; /** * Last updated time in UTC. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) updated?: utcDateTime; } @@ -260,14 +260,14 @@ model DeletedCertificateBundle { /** * The time when the certificate is scheduled to be purged, in UTC */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) scheduledPurgeDate?: utcDateTime; /** * The time when the certificate was deleted, in UTC */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) deletedDate?: utcDateTime; } @@ -279,26 +279,26 @@ model CertificateBundle { /** * The certificate id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; /** * The key id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) kid?: string; /** * The secret id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sid?: string; /** * Thumbprint of the certificate. */ #suppress "@azure-tools/typespec-azure-core/casing-style" "Preserving original casing" - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encodedName("application/json", "x5t") @encode("base64url") X509Thumbprint?: bytes; @@ -306,7 +306,7 @@ model CertificateBundle { /** * The management policy. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) policy?: CertificatePolicy; /** @@ -343,7 +343,7 @@ model CertificatePolicy { /** * The certificate id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; /** @@ -560,7 +560,7 @@ model Contacts { /** * Identifier for the contacts collection. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; /** @@ -602,14 +602,14 @@ model CertificateIssuerListResult { * A response message containing a list of certificate issuers in the key vault along with a link to the next page of certificate issuers. */ @items - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) value?: CertificateIssuerItem[]; /** * The URL to get the next set of certificate issuers. */ @TypeSpec.nextLink - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nextLink?: string; } @@ -729,14 +729,14 @@ model IssuerAttributes { /** * Creation time in UTC. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) created?: utcDateTime; /** * Last updated time in UTC. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) updated?: utcDateTime; } @@ -748,7 +748,7 @@ model IssuerBundle { /** * Identifier for the issuer object. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; /** @@ -834,7 +834,7 @@ model CertificateOperation { /** * The certificate id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; /** @@ -991,7 +991,7 @@ model BackupCertificateResult { /** * The backup blob containing the backed up certificate. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("base64url") value?: bytes; } @@ -1017,14 +1017,14 @@ model DeletedCertificateListResult { * A response message containing a list of deleted certificates in the vault along with a link to the next page of deleted certificates. */ @items - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) value?: DeletedCertificateItem[]; /** * The URL to get the next set of deleted certificates. */ @TypeSpec.nextLink - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nextLink?: string; } @@ -1042,14 +1042,14 @@ model DeletedCertificateItem { /** * The time when the certificate is scheduled to be purged, in UTC */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) scheduledPurgeDate?: utcDateTime; /** * The time when the certificate was deleted, in UTC */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) deletedDate?: utcDateTime; } @@ -1061,6 +1061,6 @@ model PendingCertificateSigningRequestResult { /** * The pending certificate signing request as Base64 encoded string. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) value?: string; } diff --git a/specification/keyvault/Security.KeyVault.Common/common.tsp b/specification/keyvault/Security.KeyVault.Common/common.tsp index c33dcb442c30..ccaffdd9fb3f 100644 --- a/specification/keyvault/Security.KeyVault.Common/common.tsp +++ b/specification/keyvault/Security.KeyVault.Common/common.tsp @@ -21,19 +21,19 @@ union Error { /** * The error code. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) code?: string, /** * The error message. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) message?: string, /** * The key vault server error. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encodedName("application/json", "innererror") innerError?: Error, }, @@ -48,6 +48,6 @@ model KeyVaultError { * The key vault server error. */ #suppress "@azure-tools/typespec-azure-core/no-nullable" "Intentionally nullable model" - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) error?: Error; } diff --git a/specification/keyvault/Security.KeyVault.Keys/models.tsp b/specification/keyvault/Security.KeyVault.Keys/models.tsp index 91688f724529..984aa8edde86 100644 --- a/specification/keyvault/Security.KeyVault.Keys/models.tsp +++ b/specification/keyvault/Security.KeyVault.Keys/models.tsp @@ -375,13 +375,13 @@ model KeyAttributes { /** * softDelete data retention days. Value should be >=7 and <=90 when softDelete enabled, otherwise 0. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) recoverableDays?: int32; /** * Reflects the deletion recovery level currently in effect for keys in the current vault. If it contains 'Purgeable' the key can be permanently deleted by a privileged user; otherwise, only the system can purge the key, at the end of the retention interval. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) recoveryLevel?: DeletionRecoveryLevel; /** @@ -392,7 +392,7 @@ model KeyAttributes { /** * The underlying HSM Platform. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) hsmPlatform?: string; /** @@ -457,14 +457,14 @@ model Attributes { /** * Creation time in UTC. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) created?: utcDateTime; /** * Last updated time in UTC. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) updated?: utcDateTime; } @@ -513,7 +513,7 @@ model KeyBundle { /** * True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) managed?: boolean; /** @@ -669,14 +669,14 @@ model DeletedKeyBundle { /** * The time when the key is scheduled to be purged, in UTC */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) scheduledPurgeDate?: utcDateTime; /** * The time when the key was deleted, in UTC */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) deletedDate?: utcDateTime; } @@ -718,14 +718,14 @@ model KeyListResult { * A response message containing a list of keys in the key vault along with a link to the next page of keys. */ @items - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) value?: KeyItem[]; /** * The URL to get the next set of keys. */ @nextLink - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nextLink?: string; } @@ -751,7 +751,7 @@ model KeyItem { /** * True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) managed?: boolean; } @@ -762,7 +762,7 @@ model BackupKeyResult { /** * The backup blob containing the backed up key. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("base64url") value?: bytes; } @@ -821,13 +821,13 @@ model KeyOperationResult { /** * Key identifier */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) kid?: string; /** * The result of the operation. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encodedName("application/json", "value") @encode("base64url") result?: bytes; @@ -835,14 +835,14 @@ model KeyOperationResult { /** * Cryptographically random, non-repeating initialization vector for symmetric algorithms. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("base64url") iv?: bytes; /** * The tag to authenticate when performing decryption with an authenticated algorithm. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encodedName("application/json", "tag") @encode("base64url") authenticationTag?: bytes; @@ -850,7 +850,7 @@ model KeyOperationResult { /** * Additional data to authenticate but not encrypt/decrypt when using authenticated crypto algorithms. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encodedName("application/json", "aad") @encode("base64url") additionalAuthenticatedData?: bytes; @@ -904,7 +904,7 @@ model KeyVerifyResult { /** * True if the signature is verified, otherwise false. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) value?: boolean; } @@ -937,7 +937,7 @@ model KeyReleaseResult { /** * A signed object containing the released key. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) value?: string; } @@ -950,14 +950,14 @@ model DeletedKeyListResult { * A response message containing a list of deleted keys in the key vault along with a link to the next page of deleted keys. */ @items - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) value?: DeletedKeyItem[]; /** * The URL to get the next set of deleted keys. */ @nextLink - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nextLink?: string; } @@ -975,14 +975,14 @@ model DeletedKeyItem { /** * The time when the key is scheduled to be purged, in UTC */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) scheduledPurgeDate?: utcDateTime; /** * The time when the key was deleted, in UTC */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) deletedDate?: utcDateTime; } @@ -994,7 +994,7 @@ model KeyRotationPolicy { /** * The key policy id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; /** @@ -1060,14 +1060,14 @@ model KeyRotationPolicyAttributes { /** * The key rotation policy created time in UTC. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) created?: utcDateTime; /** * The key rotation policy's last updated time in UTC. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) updated?: utcDateTime; } diff --git a/specification/keyvault/Security.KeyVault.RBAC/models.tsp b/specification/keyvault/Security.KeyVault.RBAC/models.tsp index ca5c7400a101..ebce3eaac4af 100644 --- a/specification/keyvault/Security.KeyVault.RBAC/models.tsp +++ b/specification/keyvault/Security.KeyVault.RBAC/models.tsp @@ -243,19 +243,19 @@ model RoleDefinition { /** * The role definition ID. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; /** * The role definition name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name?: string; /** * The role definition type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) type?: RoleDefinitionType; /** @@ -357,19 +357,19 @@ model RoleAssignment { /** * The role assignment ID. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; /** * The role assignment name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name?: string; /** * The role assignment type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) type?: string; /** diff --git a/specification/keyvault/Security.KeyVault.Secrets/models.tsp b/specification/keyvault/Security.KeyVault.Secrets/models.tsp index 251b299b58bf..74bcea38396c 100644 --- a/specification/keyvault/Security.KeyVault.Secrets/models.tsp +++ b/specification/keyvault/Security.KeyVault.Secrets/models.tsp @@ -85,13 +85,13 @@ model SecretAttributes { /** * softDelete data retention days. Value should be >=7 and <=90 when softDelete enabled, otherwise 0. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) recoverableDays?: int32; /** * Reflects the deletion recovery level currently in effect for secrets in the current vault. If it contains 'Purgeable', the secret can be permanently deleted by a privileged user; otherwise, only the system can purge the secret, at the end of the retention interval. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) recoveryLevel?: DeletionRecoveryLevel; } @@ -123,14 +123,14 @@ model Attributes { /** * Creation time in UTC. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) created?: utcDateTime; /** * Last updated time in UTC. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) updated?: utcDateTime; } @@ -167,13 +167,13 @@ model SecretBundle { /** * If this is a secret backing a KV certificate, then this field specifies the corresponding key backing the KV certificate. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) kid?: string; /** * True if the secret's lifetime is managed by key vault. If this is a secret backing a certificate, then managed will be true. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) managed?: boolean; } @@ -191,14 +191,14 @@ model DeletedSecretBundle { /** * The time when the secret is scheduled to be purged, in UTC */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) scheduledPurgeDate?: utcDateTime; /** * The time when the secret was deleted, in UTC */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) deletedDate?: utcDateTime; } @@ -233,14 +233,14 @@ model SecretListResult { * A response message containing a list of secrets in the key vault along with a link to the next page of secrets. */ @items - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) value?: SecretItem[]; /** * The URL to get the next set of secrets. */ @nextLink - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nextLink?: string; } @@ -271,7 +271,7 @@ model SecretItem { /** * True if the secret's lifetime is managed by key vault. If this is a key backing a certificate, then managed will be true. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) managed?: boolean; } @@ -284,14 +284,14 @@ model DeletedSecretListResult { * A response message containing a list of deleted secrets in the key vault along with a link to the next page of deleted secrets. */ @items - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) value?: DeletedSecretItem[]; /** * The URL to get the next set of deleted secrets. */ @nextLink - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nextLink?: string; } @@ -309,14 +309,14 @@ model DeletedSecretItem { /** * The time when the secret is scheduled to be purged, in UTC */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) scheduledPurgeDate?: utcDateTime; /** * The time when the secret was deleted, in UTC */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("unixTimestamp", int32) deletedDate?: utcDateTime; } @@ -328,7 +328,7 @@ model BackupSecretResult { /** * The backup blob containing the backed up secret. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encode("base64url") value?: bytes; } diff --git a/specification/keyvault/Security.KeyVault.Settings/models.tsp b/specification/keyvault/Security.KeyVault.Settings/models.tsp index e18582394bfb..bdcddd722829 100644 --- a/specification/keyvault/Security.KeyVault.Settings/models.tsp +++ b/specification/keyvault/Security.KeyVault.Settings/models.tsp @@ -74,6 +74,6 @@ model SettingsListResult { /** * A response message containing a list of account settings with their associated value. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) settings?: Setting[]; } diff --git a/specification/kubernetesruntime/KubernetesRuntime.Management/bgppeer.tsp b/specification/kubernetesruntime/KubernetesRuntime.Management/bgppeer.tsp index 9ad37f89eb4d..13e8ce951469 100644 --- a/specification/kubernetesruntime/KubernetesRuntime.Management/bgppeer.tsp +++ b/specification/kubernetesruntime/KubernetesRuntime.Management/bgppeer.tsp @@ -28,7 +28,7 @@ model BgpPeerProperties { @doc("Peer Address") peerAddress: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Resource provision state") provisioningState?: ProvisioningState; } diff --git a/specification/kubernetesruntime/KubernetesRuntime.Management/loadbalancer.tsp b/specification/kubernetesruntime/KubernetesRuntime.Management/loadbalancer.tsp index ac8a4a4bd93a..eee82c095602 100644 --- a/specification/kubernetesruntime/KubernetesRuntime.Management/loadbalancer.tsp +++ b/specification/kubernetesruntime/KubernetesRuntime.Management/loadbalancer.tsp @@ -47,7 +47,7 @@ model LoadBalancerProperties { @added(Microsoft.KubernetesRuntime.Versions.v2024_03_01) bgpPeers?: string[]; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Resource provision state") provisioningState?: ProvisioningState; } diff --git a/specification/kubernetesruntime/KubernetesRuntime.Management/service.tsp b/specification/kubernetesruntime/KubernetesRuntime.Management/service.tsp index 6c8c760eac77..718d7a955b81 100644 --- a/specification/kubernetesruntime/KubernetesRuntime.Management/service.tsp +++ b/specification/kubernetesruntime/KubernetesRuntime.Management/service.tsp @@ -11,11 +11,11 @@ namespace Microsoft.KubernetesRuntime; @doc("Properties for the service resource") model ServiceProperties { @doc("The object id of the service principal of the RP provisioned in the tenant") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) rpObjectId?: uuid; @doc("Resource provision state") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/kubernetesruntime/KubernetesRuntime.Management/storageclass.tsp b/specification/kubernetesruntime/KubernetesRuntime.Management/storageclass.tsp index 481b0c2abfa9..5090aa74d62b 100644 --- a/specification/kubernetesruntime/KubernetesRuntime.Management/storageclass.tsp +++ b/specification/kubernetesruntime/KubernetesRuntime.Management/storageclass.tsp @@ -117,11 +117,11 @@ model StorageClassProperties { mountOptions?: string[]; @doc("Provisioner name") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) provisioner?: string; @doc("Binding mode of volumes: Immediate, WaitForFirstConsumer") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) volumeBindingMode?: VolumeBindingMode; @doc("The access mode: [ReadWriteOnce, ReadWriteMany] or [ReadWriteOnce]") @@ -144,11 +144,11 @@ model StorageClassProperties { @doc("Properties of the StorageClass") // prevent generation of buggy StorageClassPropertiesUpdate model - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) typeProperties: StorageClassTypeProperties; @doc("Resource provision state") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/liftrastronomer/Astronomer.Astro.Management/LiftrBase/main.tsp b/specification/liftrastronomer/Astronomer.Astro.Management/LiftrBase/main.tsp index c3d219e3fc9b..0fbe5ae3b28c 100644 --- a/specification/liftrastronomer/Astronomer.Astro.Management/LiftrBase/main.tsp +++ b/specification/liftrastronomer/Astronomer.Astro.Management/LiftrBase/main.tsp @@ -95,7 +95,7 @@ model OfferDetails { @added(Versions.v2024_08_27_preview) @added(Versions.v2024_08_27) @doc("Current subscription end date and time") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) endDate?: utcDateTime; } @@ -124,14 +124,14 @@ model UserDetails { @doc("Base resource properties that can be extended for arm resources.") model BaseResourceProperties { @doc("Marketplace details of the resource.") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) marketplace: MarketplaceDetails; @doc("Details of the user.") user: UserDetails; @doc("Provisioning state of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } @@ -149,7 +149,7 @@ model SingleSignOnProperties { @doc("List of AAD domains fetched from Microsoft Graph for user.") aadDomains?: string[]; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Provisioning State of the resource") provisioningState?: ResourceProvisioningState; } diff --git a/specification/liftrneon/Neon.Postgres.Management/LiftrBase/main.tsp b/specification/liftrneon/Neon.Postgres.Management/LiftrBase/main.tsp index 61de9654b004..6fd92d34cabb 100644 --- a/specification/liftrneon/Neon.Postgres.Management/LiftrBase/main.tsp +++ b/specification/liftrneon/Neon.Postgres.Management/LiftrBase/main.tsp @@ -113,7 +113,7 @@ model CompanyDetails { @doc("Base resource properties that can be extended for arm resources.") model BaseResourceProperties { @doc("Marketplace details of the resource.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) marketplaceDetails: MarketplaceDetails; @doc("Details of the user.") @@ -123,7 +123,7 @@ model BaseResourceProperties { companyDetails: CompanyDetails; @doc("Provisioning state of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } diff --git a/specification/liftrqumulo/Qumulo.Storage.Management/LiftrBase.Storage/main.tsp b/specification/liftrqumulo/Qumulo.Storage.Management/LiftrBase.Storage/main.tsp index 10cb7b9d1fb3..9d9de1e22374 100644 --- a/specification/liftrqumulo/Qumulo.Storage.Management/LiftrBase.Storage/main.tsp +++ b/specification/liftrqumulo/Qumulo.Storage.Management/LiftrBase.Storage/main.tsp @@ -39,7 +39,7 @@ model FileSystemResourceProperties { /** * Provisioning State of the resource */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** @@ -130,7 +130,7 @@ model FileSystemResource @path @key("fileSystemName") @segment("fileSystems") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @pattern("^[a-zA-Z0-9_-]*$") name: string; diff --git a/specification/liftrqumulo/Qumulo.Storage.Management/LiftrBase/main.tsp b/specification/liftrqumulo/Qumulo.Storage.Management/LiftrBase/main.tsp index 7e2d033e2cb9..8ade310f3cca 100644 --- a/specification/liftrqumulo/Qumulo.Storage.Management/LiftrBase/main.tsp +++ b/specification/liftrqumulo/Qumulo.Storage.Management/LiftrBase/main.tsp @@ -78,7 +78,7 @@ model MarketplaceDetails { /** * Marketplace subscription status */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) marketplaceSubscriptionStatus?: MarketplaceSubscriptionStatus; } diff --git a/specification/loadtestservice/LoadTestService.Management/models.tsp b/specification/loadtestservice/LoadTestService.Management/models.tsp index efd554e3c2dc..eab7ae9a4d82 100644 --- a/specification/loadtestservice/LoadTestService.Management/models.tsp +++ b/specification/loadtestservice/LoadTestService.Management/models.tsp @@ -112,7 +112,7 @@ union type { @doc("Details about the connection between the Batch service and the endpoint.") model EndpointDetail { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The port an endpoint is connected to.") port?: int32; } @@ -120,16 +120,16 @@ model EndpointDetail { @doc("A domain name and connection details used to access a dependency.") model EndpointDependency { @doc("The domain name of the dependency. Domain names may be fully qualified or may contain a * wildcard.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @key domainName: string; @doc("Human-readable supplemental information about the dependency and when it is applicable.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) description?: string; @doc("The list of connection details for this endpoint.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["port"]) endpointDetails?: EndpointDetail[]; } @@ -137,11 +137,11 @@ model EndpointDependency { @doc("A collection of related endpoints from the same service for which the Batch service requires outbound access.") model OutboundEnvironmentEndpoint { @doc("The type of service that Azure Load Testing connects to.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) category?: string; @doc("The endpoints for this service to which the Batch service makes outbound calls.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["domainName"]) endpoints?: EndpointDependency[]; } @@ -176,7 +176,7 @@ model QuotaResourceProperties { usage?: int32; @doc("Resource provisioning state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ResourceState; } @@ -196,16 +196,16 @@ model QuotaResource is ProxyResource { model MaxMonthlyVirtualUserHoursResourceProperties { @doc("Current limit value, with -1 indicating that there is no limit.") @minValue(-1) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) limit?: int32; @doc("Current usage value.") @minValue(0) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) usage?: int32; @doc("Resource provisioning state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ResourceState; } @@ -238,12 +238,12 @@ model LoadTestProperties { @doc("Description of the resource.") description?: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Resource provisioning state.") provisioningState?: ResourceState; #suppress "@azure-tools/typespec-azure-core/casing-style" "URI is an abbervation and should be upper case" - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @maxLength(2083) @doc("Resource data plane URI.") dataPlaneURI?: string; @@ -255,19 +255,19 @@ model LoadTestProperties { @doc("Check quota availability response object.") model CheckQuotaAvailabilityResponse { @doc("Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: string; @doc("The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) type: string; @doc("Azure Resource Manager metadata containing createdBy and modifiedBy information.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) systemData?: Azure.ResourceManager.Foundations.SystemData; @doc("The name of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name?: string; #suppress "deprecated" "Legacy flatten" diff --git a/specification/loadtestservice/LoadTestService/models.notificationrule.tsp b/specification/loadtestservice/LoadTestService/models.notificationrule.tsp index 854816741b33..3f7a639d8863 100644 --- a/specification/loadtestservice/LoadTestService/models.notificationrule.tsp +++ b/specification/loadtestservice/LoadTestService/models.notificationrule.tsp @@ -99,7 +99,7 @@ model NotificationRule { @minLength(2) @pattern("^[a-z0-9_-]*$") @doc("The unique identifier of the notification rule.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) notificationRuleId: string; @maxLength(50) diff --git a/specification/loadtestservice/LoadTestService/models.testprofile.tsp b/specification/loadtestservice/LoadTestService/models.testprofile.tsp index 7a6758938ebc..ecd2250abdc7 100644 --- a/specification/loadtestservice/LoadTestService/models.testprofile.tsp +++ b/specification/loadtestservice/LoadTestService/models.testprofile.tsp @@ -17,7 +17,7 @@ model TestProfileIdPathParameter { @maxLength(50) @minLength(2) @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @pattern("^[a-z0-9_-]*$") testProfileId: string; } @@ -26,7 +26,7 @@ model TestProfileIdPathParameter { @added(APIVersions.v2024_05_01_preview) model TestProfileRunIdPathParameter { @doc("Unique identifier for the test profile run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @maxLength(50) @minLength(2) @key @@ -120,7 +120,7 @@ model TestProfileRunRecommendation { @discriminator("kind") model TargetResourceConfigurations { @doc("Kind of the resource for which the configurations apply.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) kind: ResourceKind; } @@ -155,11 +155,11 @@ model TestProfile { description?: string; @doc("Associated test ID for the test profile. This property is required for creating a Test Profile and it's not allowed to be updated.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) testId?: string; @doc("Target resource ID on which the test profile is created. This property is required for creating a Test Profile and it's not allowed to be updated.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) targetResourceId?: string; @doc("Configurations of the target resource on which testing would be done.") @@ -186,52 +186,52 @@ model TestProfileRun { description?: string; @doc("Associated test profile ID for the test profile run. This is required to create a test profile run and can't be updated.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) testProfileId?: string; // End section: Properties provided by user // Begin section: Properties populated from Test Profile @doc("Target resource ID on which the test profile run is created") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetResourceId?: string; @doc("Configurations of the target resource on which the test profile ran.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetResourceConfigurations?: TargetResourceConfigurations; // End section: Properties populated from Test Profile // Begin section: Test profile Run specific information @doc("The test profile run status.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: TestProfileRunStatus; @doc("Error details if there is any failure in test profile run. These errors are specific to the Test Profile Run.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errorDetails?: ErrorDetails[]; @doc("The test profile run start DateTime(RFC 3339 literal format).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) startDateTime?: utcDateTime; @doc("The test profile run end DateTime(RFC 3339 literal format).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) endDateTime?: utcDateTime; @doc("Test profile run duration in seconds.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) durationInSeconds?: int64; @doc(""" Details of the test runs ran as part of the test profile run. Key is the testRunId of the corresponding testRun. """) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) testRunDetails?: Record; @doc("Recommendations provided based on a successful test profile run.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) recommendations?: TestProfileRunRecommendation[]; // End section: Test profile run specific information diff --git a/specification/loadtestservice/LoadTestService/models.trigger.tsp b/specification/loadtestservice/LoadTestService/models.trigger.tsp index ebf7ed0813c8..266e1554fe45 100644 --- a/specification/loadtestservice/LoadTestService/models.trigger.tsp +++ b/specification/loadtestservice/LoadTestService/models.trigger.tsp @@ -100,7 +100,7 @@ model ScheduleTestsTrigger extends Trigger { @doc("Start date time of the trigger in UTC timezone. (RFC 3339 literal format)") startDateTime?: utcDateTime; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) recurrenceStatus?: RecurrenceStatus; @doc("Recurrence details of the trigger. Null if schedule is not recurring.") @@ -127,7 +127,7 @@ model Trigger { @minLength(2) @pattern("^[a-z0-9_-]*$") @doc("The unique identifier of the trigger.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) triggerId: string; @maxLength(50) @@ -146,7 +146,7 @@ model Trigger { state?: TriggerState; @doc("Details of current state of the trigger.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) stateDetails?: StateDetails; ...SystemMetaData; diff --git a/specification/loadtestservice/LoadTestService/models.tsp b/specification/loadtestservice/LoadTestService/models.tsp index 34cd16cbd828..1bf1c100dcf0 100644 --- a/specification/loadtestservice/LoadTestService/models.tsp +++ b/specification/loadtestservice/LoadTestService/models.tsp @@ -309,7 +309,7 @@ model Test { baselineTestRunId?: string; @doc("The input artifacts for the test.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) inputArtifacts?: TestInputArtifacts; ...TestIdPathParameter; @@ -399,11 +399,11 @@ model PassFailMetric { action?: PFAction = PFAction.continue; @doc("The actual value of the client metric for the test run.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) actualValue?: float64; @doc("Outcome of the test run.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) result?: PFResult; } @@ -431,11 +431,11 @@ model PassFailServerMetric { action?: PFAction = PFAction.continue; @doc("The actual value of the server metric ") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) actualValue?: float64; @doc("Outcome of the test run.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) result?: PFResult; } @@ -560,7 +560,7 @@ model TestInputArtifacts { urlTestConfigFileInfo?: TestFileInfo; @doc("Additional supported files for the test run") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) additionalFileInfo?: TestFileInfo[]; } @@ -573,23 +573,23 @@ model FileInfo { @doc("File URL.") //update description - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) url?: url; @doc("File type") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) fileType?: FileType; @doc("Expiry time of the file (RFC 3339 literal format)") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) expireDateTime?: utcDateTime; @doc("Validation status of the file") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) validationStatus?: FileStatus; @doc("Validation failure error details") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) validationFailureDetails?: string; } @@ -603,7 +603,7 @@ model TestAppComponents { components: Record; @doc("Test identifier") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) testId?: string; ...SystemMetaData; @@ -616,7 +616,7 @@ model AppComponent { @doc(""" fully qualified resource Id e.g subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName} """) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceId: string; @doc("Azure resource name, required while creating the app component.") @@ -629,11 +629,11 @@ model AppComponent { displayName?: string; @doc("Resource group name of the Azure resource") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceGroup?: string; @doc("Subscription Id of the Azure resource") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) subscriptionId?: string; @doc("Kind of Azure resource type") @@ -643,7 +643,7 @@ model AppComponent { @doc("Test server metrics configuration") model TestServerMetricConfig { @doc("Test identifier") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) testId?: string; @doc(""" @@ -663,7 +663,7 @@ model TestServerMetricConfig { """) model ResourceMetric { @doc("Unique name for metric.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; @doc("Azure resource id.") @@ -716,7 +716,7 @@ model TestRun { environmentVariables?: Record; @doc("Error details if there is any failure in load test run") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errorDetails?: ErrorDetails[]; @doc(""" @@ -724,7 +724,7 @@ model TestRun { The sampler name is the same as the name mentioned in the test script. Sampler name "Total" represents the aggregated statistics of all the samplers. """) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) testRunStatistics?: Record; @doc(""" @@ -732,24 +732,24 @@ model TestRun { The region name should of format accepted by ARM, and should be a region supported by Azure Load Testing. For example, East US should be passed as "eastus". The region name must match one of the strings in the "Name" column returned from running the "az account list-locations -o table" Azure CLI command. """) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @added(APIVersions.v2024_03_01_preview) regionalStatistics?: Record; @doc("The load test configuration.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) loadTestConfiguration?: LoadTestConfiguration; @doc("Collection of test run artifacts") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) testArtifacts?: TestRunArtifacts; @doc("Test result for pass/Fail criteria used during the test run.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) testResult?: PFTestResult; @doc("Number of virtual users, for which test has been run.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) virtualUsers?: int32; @maxLength(50) @@ -767,41 +767,41 @@ model TestRun { description?: string; @doc("The test run status.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: Status; @doc("The test run start DateTime(RFC 3339 literal format).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) startDateTime?: utcDateTime; @doc("The test run end DateTime(RFC 3339 literal format).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) endDateTime?: utcDateTime; @doc("Test run initiated time.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) executedDateTime?: utcDateTime; @doc("Portal url.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) portalUrl?: string; @doc("Test run duration in milliseconds.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) duration?: int64; @doc("Virtual user hours consumed by the test run.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @added(APIVersions.v2024_07_01_preview) virtualUserHours?: float64; @doc("Subnet ID on which the load test instances should run.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) subnetId?: string; @added(APIVersions.v2023_04_01_preview) @doc("Type of test.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) kind?: TestKind; @added(APIVersions.v2024_05_01_preview) @@ -815,7 +815,7 @@ model TestRun { #suppress "@azure-tools/typespec-azure-core/casing-style" "IP is an abbervation and should be all caps" @added(APIVersions.v2023_04_01_preview) @doc("Inject load test engines without deploying public IP for outbound access") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) publicIPDisabled?: boolean; @added(APIVersions.v2024_07_01_preview) @@ -828,105 +828,105 @@ model TestRun { @doc("Error details if there is any failure in load test run") model ErrorDetails { @doc("Error details in case test run was not successfully run.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) message?: string; } @doc("Test run statistics.") model TestRunStatistics { @doc("Transaction name.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) transaction?: string; @doc("Sampler count.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sampleCount?: float64; @doc("Error count.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errorCount?: float64; @doc("Error percentage.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errorPct?: float64; @doc("Mean response time.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) meanResTime?: float64; @doc("Median response time.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) medianResTime?: float64; @doc("Max response time.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) maxResTime?: float64; @doc("Minimum response time.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) minResTime?: float64; @doc("90 percentile response time.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) pct1ResTime?: float64; @doc("95 percentile response time.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) pct2ResTime?: float64; @doc("99 percentile response time.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) pct3ResTime?: float64; @added(APIVersions.v2024_05_01_preview) @doc("75 percentile response time.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) pct75ResTime?: float64; @added(APIVersions.v2024_05_01_preview) @doc("96 percentile response time.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) pct96ResTime?: float64; @added(APIVersions.v2024_05_01_preview) @doc("97 percentile response time.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) pct97ResTime?: float64; @added(APIVersions.v2024_05_01_preview) @doc("98 percentile response time.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) pct98ResTime?: float64; @added(APIVersions.v2024_05_01_preview) @doc("99.9 percentile response time.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) pct999ResTime?: float64; @added(APIVersions.v2024_05_01_preview) @doc("99.99 percentile response time.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) pct9999ResTime?: float64; @doc("Throughput.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) throughput?: float64; #suppress "@azure-tools/typespec-azure-core/casing-style" "KBytes is expected" @doc("Received network bytes.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) receivedKBytesPerSec?: float64; #suppress "@azure-tools/typespec-azure-core/casing-style" "KBytes is expected" @doc("Send network bytes.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sentKBytesPerSec?: float64; } @doc("Collection of test run artifacts") model TestRunArtifacts { @doc("The input artifacts for the test run.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) inputArtifacts?: TestRunInputArtifacts; @doc("The output artifacts for the test run.") @@ -952,7 +952,7 @@ model TestRunInputArtifacts { urlTestConfigFileInfo?: TestRunFileInfo; @doc("Additional supported files for the test run") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) additionalFileInfo?: TestRunFileInfo[]; } @@ -1107,7 +1107,7 @@ model DimensionValue { @pagedResult model DimensionValueList { @doc("The dimension name") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @added(APIVersions.v2023_04_01_preview) name?: string; @@ -1151,7 +1151,7 @@ model TestRunAppComponents { components: Record; @doc("Test run identifier") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) testRunId?: string; ...SystemMetaData; @@ -1160,7 +1160,7 @@ model TestRunAppComponents { @doc("Test run server metrics configuration") model TestRunServerMetricConfig { @doc("Test run identifier") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) testRunId?: string; @doc(""" @@ -1260,19 +1260,19 @@ model ListTestQueryParams { @doc("System metadata.") model SystemMetaData { @doc("The creation datetime(RFC 3339 literal format).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) createdDateTime?: utcDateTime; @doc("The user that created.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) createdBy?: string; @doc("The last Modified datetime(RFC 3339 literal format).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastModifiedDateTime?: utcDateTime; @doc("The user that last modified.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastModifiedBy?: string; } @@ -1282,7 +1282,7 @@ model TestIdPathParameter { @maxLength(50) @minLength(2) @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @pattern("^[a-z0-9_-]*$") testId: string; } @@ -1290,7 +1290,7 @@ model TestIdPathParameter { @doc("Test run Id path parameter.") model TestRunIdPathParameter { @doc("Unique test run identifier for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @maxLength(50) @minLength(2) @key diff --git a/specification/machinelearningservices/AzureAI.Assets/common.tsp b/specification/machinelearningservices/AzureAI.Assets/common.tsp index fc10a24458d9..3151b63470e6 100644 --- a/specification/machinelearningservices/AzureAI.Assets/common.tsp +++ b/specification/machinelearningservices/AzureAI.Assets/common.tsp @@ -12,19 +12,19 @@ namespace Microsoft.MachineLearningServices; @doc("Metadata pertaining to creation and last modification of the resource.") model SystemData { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The timestamp the resource was created at.") createdAt?: utcDateTime; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The identity that created the resource.") createdBy?: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The identity type that created the resource.") createdByType?: string; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The timestamp of resource last modification (UTC)") lastModifiedAt?: utcDateTime; } diff --git a/specification/machinelearningservices/AzureAI.Assets/model.tsp b/specification/machinelearningservices/AzureAI.Assets/model.tsp index 2a5e436075be..2b74e1f76aa0 100644 --- a/specification/machinelearningservices/AzureAI.Assets/model.tsp +++ b/specification/machinelearningservices/AzureAI.Assets/model.tsp @@ -18,7 +18,7 @@ namespace Microsoft.MachineLearningServices; @doc("AssetVersion Definition") model AssetVersion { @doc("Fully qualified resource Id: azureml://workspace/{workspaceName}/indexes/{name}/versions/{version} of the index.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: string; @doc("Update stage to 'Archive' to archive the asset. Default is Development, which means the asset is under development.") @@ -28,7 +28,7 @@ model AssetVersion { description?: string; @doc("Metadata containing createdBy and modifiedBy information.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) systemData?: SystemData; @doc("Asset's tags. Unlike properties, tags are fully mutable.") diff --git a/specification/mongocluster/DocumentDB.MongoCluster.Management/FirewallRule.tsp b/specification/mongocluster/DocumentDB.MongoCluster.Management/FirewallRule.tsp index edf8e5b13971..376a026de8fc 100644 --- a/specification/mongocluster/DocumentDB.MongoCluster.Management/FirewallRule.tsp +++ b/specification/mongocluster/DocumentDB.MongoCluster.Management/FirewallRule.tsp @@ -13,7 +13,7 @@ model FirewallRule is ProxyResource { @pattern("^[a-zA-Z0-9][-_.a-zA-Z0-9]*") @key("firewallRuleName") @segment("firewallRules") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path name: string; } @@ -21,7 +21,7 @@ model FirewallRule is ProxyResource { /** The properties of a mongo cluster firewall rule. */ model FirewallRuleProperties { /** The provisioning state of the firewall rule. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** The start IP address of the mongo cluster firewall rule. Must be IPv4 format. */ diff --git a/specification/mongocluster/DocumentDB.MongoCluster.Management/MongoCluster.tsp b/specification/mongocluster/DocumentDB.MongoCluster.Management/MongoCluster.tsp index 42420abd82cf..c7c49dd74574 100644 --- a/specification/mongocluster/DocumentDB.MongoCluster.Management/MongoCluster.tsp +++ b/specification/mongocluster/DocumentDB.MongoCluster.Management/MongoCluster.tsp @@ -17,7 +17,7 @@ model MongoCluster is TrackedResource { @pattern("^[a-z0-9]+(-[a-z0-9]+)*") @key("mongoClusterName") @segment("mongoClusters") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path name: string; } @@ -77,25 +77,25 @@ scalar MongoClusterResourceId /** The properties of a mongo cluster. */ model MongoClusterProperties { /** The mode to create a mongo cluster. */ - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) createMode?: CreateMode; /** The parameters to create a point-in-time restore mongo cluster. */ - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) restoreParameters?: MongoClusterRestoreParameters; /** The parameters to create a replica mongo cluster. */ - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) @added(Microsoft.DocumentDB.Versions.v2024_06_01_preview) replicaParameters?: MongoClusterReplicaParameters; /** The administrator's login for the mongo cluster. */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) @removed(Versions.v2024_07_01) administratorLogin?: string; /** The password of the administrator login. */ - @visibility(Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Update) @removed(Versions.v2024_07_01) @secret administratorLoginPassword?: string; @@ -108,20 +108,20 @@ model MongoClusterProperties { serverVersion?: string; /** The default mongo connection string for the cluster. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) connectionString?: string; /** Earliest restore timestamp in UTC ISO8601 format. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @removed(Versions.v2024_07_01) earliestRestoreTime?: string; /** The provisioning state of the mongo cluster. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** The status of the mongo cluster. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) clusterStatus?: MongoClusterStatus; /** Whether or not public endpoint access is allowed for this mongo cluster. */ @@ -157,7 +157,7 @@ model MongoClusterProperties { dataApi?: DataApiProperties; /** List of private endpoint connections. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) privateEndpointConnections?: PrivateEndpointConnection[]; /** List of private endpoint connections. */ @@ -166,12 +166,12 @@ model MongoClusterProperties { /** The replication properties for the mongo cluster */ @added(Microsoft.DocumentDB.Versions.v2024_06_01_preview) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) replica?: ReplicationProperties; /** The infrastructure version the cluster is provisioned on. */ @added(Microsoft.DocumentDB.Versions.v2024_06_01_preview) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) infrastructureVersion?: string; } @@ -245,14 +245,14 @@ union HighAvailabilityMode { @added(Versions.v2024_07_01) model BackupProperties { /** Earliest restore timestamp in UTC ISO8601 format. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) earliestRestoreTime?: string; } /** The connection strings for the given mongo cluster. */ model ListConnectionStringsResult { /** An array that contains the connection strings for a mongo cluster. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", []) connectionStrings?: ConnectionString[]; } @@ -261,16 +261,16 @@ model ListConnectionStringsResult { model ConnectionString { /** Value of the connection string */ #suppress "@azure-tools/typespec-azure-core/property-name-conflict" "https://github.com/Azure/typespec-azure/issues/417" - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @clientName("uri", "csharp") connectionString?: string; /** Description of the connection string */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) description?: string; /** Name of the connection string. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @added(Versions.v2024_07_01) name?: string; } @@ -364,15 +364,15 @@ union PromoteMode { @added(Microsoft.DocumentDB.Versions.v2024_06_01_preview) model ReplicationProperties { /** The resource id the source cluster for the replica cluster. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceResourceId?: MongoClusterResourceId; /** The replication role of the cluster */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) role?: ReplicationRole; /** The replication link state of the replica cluster. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) replicationState?: ReplicationState; } @@ -459,11 +459,11 @@ union NodeKind { @added(Versions.v2024_07_01) model AdministratorProperties { /** The administrator user name. */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) userName?: string; /** The administrator password. */ - @visibility(Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Update) @secret password?: string; } diff --git a/specification/mongocluster/DocumentDB.MongoCluster.Management/Replica.tsp b/specification/mongocluster/DocumentDB.MongoCluster.Management/Replica.tsp index 7c358679a1e5..6f94c7a774b4 100644 --- a/specification/mongocluster/DocumentDB.MongoCluster.Management/Replica.tsp +++ b/specification/mongocluster/DocumentDB.MongoCluster.Management/Replica.tsp @@ -15,7 +15,7 @@ model Replica is ProxyResource { @pattern("^[a-z0-9]+(-[a-z0-9]+)*") @key("replicaName") @segment("replicas") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path name: string; } diff --git a/specification/monitor/Microsoft.Monitor.Management/typespec/azureMonitorWorkspace.tsp b/specification/monitor/Microsoft.Monitor.Management/typespec/azureMonitorWorkspace.tsp index d13e7dfc3406..afc4e5dd0f02 100644 --- a/specification/monitor/Microsoft.Monitor.Management/typespec/azureMonitorWorkspace.tsp +++ b/specification/monitor/Microsoft.Monitor.Management/typespec/azureMonitorWorkspace.tsp @@ -25,55 +25,55 @@ model AzureMonitorWorkspace #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "ETag is not included in TrackedResource." @doc("Resource entity tag (ETag)") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) etag?: string; } @doc("Properties that need to be specified to create a new workspace.") model AzureMonitorWorkspaceProperties { @doc("The immutable ID of the Azure Monitor workspace. This property is read-only.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) accountId?: string; @doc("Information about metrics for the Azure Monitor workspace") metrics?: Metrics; @doc("The provisioning state of the Azure Monitor workspace. Set to Succeeded if everything is healthy.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; @doc("The Data Collection Rule and Endpoint used for ingestion by default.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) defaultIngestionSettings?: IngestionSettings; @doc("List of private endpoint connections.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) privateEndpointConnections?: PrivateEndpointConnection[]; @doc("Gets or sets allow or disallow public network access to workspace") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) publicNetworkAccess?: PublicNetworkAccess; } @doc("Information about metrics for the workspace") model Metrics { @doc("The Prometheus query endpoint for the workspace") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) prometheusQueryEndpoint?: string; @doc("An internal identifier for the metrics container. Only to be used by the system") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) internalId?: string; } @doc("Settings for data ingestion") model IngestionSettings { @doc("The Azure resource Id of the default data collection rule for this workspace.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) dataCollectionRuleResourceId?: string; @doc("The Azure resource Id of the default data collection endpoint for this workspace.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) dataCollectionEndpointResourceId?: string; } diff --git a/specification/monitor/Microsoft.Monitor.Management/typespec/pipelineGroup.tsp b/specification/monitor/Microsoft.Monitor.Management/typespec/pipelineGroup.tsp index 712774928bfe..cf82d8140219 100644 --- a/specification/monitor/Microsoft.Monitor.Management/typespec/pipelineGroup.tsp +++ b/specification/monitor/Microsoft.Monitor.Management/typespec/pipelineGroup.tsp @@ -31,7 +31,7 @@ model PipelineGroup is TrackedResource { #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "Extended location is not included in TrackedResource yet." @doc("The extended location for given pipeline group.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation?: CommonTypes.ExtendedLocation; } @@ -60,7 +60,7 @@ model PipelineGroupProperties { networkingConfigurations?: NetworkingConfiguration[]; @doc("The provisioning state of a pipeline group instance. Set to Succeeded if everything is healthy.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/monitor/Microsoft.Monitor.PipelineGroups.Management/typespec/pipelineGroup.tsp b/specification/monitor/Microsoft.Monitor.PipelineGroups.Management/typespec/pipelineGroup.tsp index 5f844f8bb123..5396d6490e09 100644 --- a/specification/monitor/Microsoft.Monitor.PipelineGroups.Management/typespec/pipelineGroup.tsp +++ b/specification/monitor/Microsoft.Monitor.PipelineGroups.Management/typespec/pipelineGroup.tsp @@ -58,7 +58,7 @@ model PipelineGroupProperties { networkingConfigurations?: NetworkingConfiguration[]; @doc("The provisioning state of a pipeline group instance. Set to Succeeded if everything is healthy.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/oracle/models/autonomousdatabase/autonomousDatabase.tsp b/specification/oracle/models/autonomousdatabase/autonomousDatabase.tsp index 598ae9bfba63..c27e01aef94d 100644 --- a/specification/oracle/models/autonomousdatabase/autonomousDatabase.tsp +++ b/specification/oracle/models/autonomousdatabase/autonomousDatabase.tsp @@ -614,35 +614,35 @@ model AutonomousDatabaseCloneProperties dataBaseType: DataBaseType.Clone; @doc("The source of the database.") - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) source?: SourceType; @doc("The Azure resource ID of the Autonomous Database that was cloned to create the current Autonomous Database.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) sourceId: AutonomousDatabaseId; @doc("The Autonomous Database clone type.") - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) cloneType: CloneType; @doc("Indicates if the refreshable clone can be reconnected to its source database.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isReconnectCloneEnabled?: boolean; @doc("Indicates if the Autonomous Database is a refreshable clone.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isRefreshableClone?: boolean; @doc("The refresh mode of the clone.") - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) refreshableModel?: RefreshableModelType; @doc("The refresh status of the clone.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) refreshableStatus?: RefreshableStatusType; @doc("The time and date as an RFC3339 formatted string, e.g., 2022-01-01T12:00:00.000Z, to set the limit for a refreshable clone to be reconnected to its source database.") - @visibility(Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Update) timeUntilReconnectCloneEnabled?: string; } @@ -654,29 +654,29 @@ model AutonomousDatabaseCrossRegionDisasterRecoveryProperties dataBaseType: DataBaseType.CrossRegionDisasterRecovery; @doc("The source of the database.") - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) source: SourceType.CrossRegionDisasterRecovery; @doc("The Azure resource ID of the source Autonomous Database that will be used to create a new peer database for the DR association.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) sourceId: AutonomousDatabaseId; @doc("The name of the region where source Autonomous Database exists.") - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) sourceLocation?: string; @doc("The source database ocid") - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) @minLength(1) @maxLength(255) sourceOcid?: string; @doc("Indicates the cross-region disaster recovery (DR) type of the standby Autonomous Database Serverless instance. Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover. Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) remoteDisasterRecoveryType: DisasterRecoveryType; @doc("If true, 7 days worth of backups are replicated across regions for Cross-Region ADB or Backup-Based DR between Primary and Standby. If false, the backups taken on the Primary are not replicated to the Standby database.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) isReplicateAutomaticBackups?: boolean; } @@ -688,23 +688,23 @@ model AutonomousDatabaseFromBackupTimestampProperties dataBaseType: DataBaseType.CloneFromBackupTimestamp; @doc("The source of the database.") - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) source: SourceType.BackupFromTimestamp; @doc("The ID of the source Autonomous Database that you will clone to create a new Autonomous Database.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) sourceId: AutonomousDatabaseId; @doc("The Autonomous Database clone type.") - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) cloneType: CloneType; @doc("The timestamp specified for the point-in-time clone of the source Autonomous Database. The timestamp must be in the past.") - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) timestamp?: utcDateTime; @doc("Clone from latest available backup timestamp.") - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) useLatestAvailableBackupTimeStamp?: boolean; } @@ -712,341 +712,341 @@ model AutonomousDatabaseFromBackupTimestampProperties @doc("Autonomous Database base resource model.") model AutonomousDatabaseBaseProperties { @doc("Admin password.") - @visibility(Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Update) @minLength(12) @maxLength(30) adminPassword?: Password; @doc("Database type to be created.") - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) dataBaseType: DataBaseType; @doc("The maintenance schedule type of the Autonomous Database Serverless.") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) autonomousMaintenanceScheduleType?: AutonomousMaintenanceScheduleType; @doc("The character set for the autonomous database.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) @minLength(1) @maxLength(255) characterSet?: string; @doc("The compute amount (CPUs) available to the database.") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) @minValue(0.1) @maxValue(512) computeCount?: float32; @doc("The compute model of the Autonomous Database.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) computeModel?: ComputeModel; @doc("The number of CPU cores to be made available to the database.") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) @minValue(1) @maxValue(128) cpuCoreCount?: int32; @doc("Customer Contacts.") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) @OpenAPI.extension("x-ms-identifiers", []) customerContacts?: CustomerContact[]; @doc("The quantity of data in the database, in terabytes.") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) @minValue(1) @maxValue(384) dataStorageSizeInTbs?: int32; @doc("The size, in gigabytes, of the data volume that will be created and attached to the database.") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) @minValue(20) @maxValue(393216) dataStorageSizeInGbs?: int32; @doc("A valid Oracle Database version for Autonomous Database.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) @minLength(1) @maxLength(255) dbVersion?: string; @doc("The Autonomous Database workload type") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) dbWorkload?: WorkloadType; @doc("The user-friendly name for the Autonomous Database.") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) @minLength(1) @maxLength(255) displayName?: string; @doc("Indicates if auto scaling is enabled for the Autonomous Database CPU core count.") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) isAutoScalingEnabled?: boolean; @doc("Indicates if auto scaling is enabled for the Autonomous Database storage.") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) isAutoScalingForStorageEnabled?: boolean; @doc("The list of Azure resource IDs of standby databases located in Autonomous Data Guard remote regions that are associated with the source database. Note that for Autonomous Database Serverless instances, standby databases located in the same region as the source primary database do not have Azure IDs.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) peerDbIds?: string[]; @doc("The Azure resource ID of the Disaster Recovery peer database, which is located in a different region from the current peer database.") - @visibility(Lifecycle.Update) + @visibility(Lifecycle.Update) @minLength(1) @maxLength(255) peerDbId?: string; @doc("Indicates whether the Autonomous Database has local or called in-region Data Guard enabled.") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) isLocalDataGuardEnabled?: boolean; @doc("Indicates whether the Autonomous Database has Cross Region Data Guard enabled.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isRemoteDataGuardEnabled?: boolean; @doc("Indicates the local disaster recovery (DR) type of the Autonomous Database Serverless instance.Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover.Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) localDisasterRecoveryType?: DisasterRecoveryType; @added(Versions.v20241001_preview) @doc("The date and time the Disaster Recovery role was switched for the standby Autonomous Database.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeDisasterRecoveryRoleChanged?: utcDateTime; @added(Versions.v20241001_preview) @doc("Indicates remote disaster recovery configuration") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) remoteDisasterRecoveryConfiguration?: DisasterRecoveryConfigurationDetails; @doc("Local Autonomous Disaster Recovery standby database details.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) localStandbyDb?: AutonomousDatabaseStandbySummary; @doc("Indicates the number of seconds of data loss for a Data Guard failover.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) failedDataRecoveryInSeconds?: int32; @doc("Specifies if the Autonomous Database requires mTLS connections.") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) isMtlsConnectionRequired?: boolean; @doc("Specifies if the Autonomous Database preview version is being provisioned.") - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) isPreviewVersionWithServiceTermsAccepted?: boolean; @doc("The Oracle license model that applies to the Oracle Autonomous Database. The default is LICENSE_INCLUDED.") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) licenseModel?: LicenseModel; @doc("The character set for the Autonomous Database.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) @minLength(1) @maxLength(255) ncharacterSet?: string; @doc("Additional information about the current lifecycle state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lifecycleDetails?: string; @doc("Azure resource provisioning state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: AzureResourceProvisioningState; @doc("Views lifecycleState") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lifecycleState?: AutonomousDatabaseLifecycleState; @doc("The list of scheduled operations.") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) scheduledOperations?: ScheduledOperationsType; @doc("The private endpoint Ip address for the resource.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) privateEndpointIp?: string; @doc("The resource's private endpoint label.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) privateEndpointLabel?: string; @doc("HTTPS link to OCI resources exposed to Azure Customer via Azure Interface.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) ociUrl?: string; @doc("Client subnet") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) subnetId?: SubnetId; @doc("VNET for network connectivity") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) vnetId?: VnetId; @doc("The date and time that the database was created.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeCreated?: utcDateTime; @doc("The date and time when maintenance will begin.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeMaintenanceBegin?: utcDateTime; @doc("The date and time when maintenance will end.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeMaintenanceEnd?: utcDateTime; @doc("The current amount of storage in use for user and system data, in terabytes (TB).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) actualUsedDataStorageSizeInTbs?: float64; @doc("The amount of storage currently allocated for the database tables and billed for, rounded up.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) allocatedStorageSizeInTbs?: float64; @doc("Information about Oracle APEX Application Development.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) apexDetails?: ApexDetailsType; @doc("List of Oracle Database versions available for a database upgrade. If there are no version upgrades available, this list is empty.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) availableUpgradeVersions?: string[]; @doc("The connection string used to connect to the Autonomous Database.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) connectionStrings?: ConnectionStringType; @doc("The URLs for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute instance within your VCN or that has a direct connection to your VCN. ") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) connectionUrls?: ConnectionUrlType; @doc("Status of the Data Safe registration for this Autonomous Database.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) dataSafeStatus?: DataSafeStatusType; @doc("The Oracle Database Edition that applies to the Autonomous databases.") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) databaseEdition?: DatabaseEditionType; @doc("Autonomous Database ID") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) autonomousDatabaseId?: AutonomousDatabaseId; @doc("The area assigned to In-Memory tables in Autonomous Database.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) inMemoryAreaInGbs?: int32; @doc("The date and time when the next long-term backup would be created.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nextLongTermBackupTimeStamp?: utcDateTime; @doc("Details for the long-term backup schedule.") - @visibility(Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Update) longTermBackupSchedule?: LongTermBackUpScheduleDetails; @doc("Indicates if the Autonomous Database version is a preview version.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isPreview?: boolean; @doc("Parameter that allows users to select an acceptable maximum data loss limit in seconds, up to which Automatic Failover will be triggered when necessary for a Local Autonomous Data Guard") - @visibility(Lifecycle.Update, Lifecycle.Read) + @visibility(Lifecycle.Update, Lifecycle.Read) @minValue(0) @maxValue(3600) localAdgAutoFailoverMaxDataLossLimit?: int32; @doc("The amount of memory (in GBs) enabled per ECPU or OCPU.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) memoryPerOracleComputeUnitInGbs?: int32; @doc("Indicates the Autonomous Database mode.") - @visibility(Lifecycle.Update, Lifecycle.Read) + @visibility(Lifecycle.Update, Lifecycle.Read) openMode?: OpenModeType; @doc("Status of Operations Insights for this Autonomous Database.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) operationsInsightsStatus?: OperationsInsightsStatusType; @doc("The Autonomous Database permission level.") - @visibility(Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Update) permissionLevel?: PermissionLevelType; @doc("The private endpoint for the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) privateEndpoint?: string; @doc("An array of CPU values that an Autonomous Database can be scaled to.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisionableCpus?: int32[]; @doc("The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.") - @visibility(Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Update) role?: RoleType; @doc("The URL of the Service Console for the Autonomous Database.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @minLength(10) @maxLength(255) serviceConsoleUrl?: string; @doc("The SQL Web Developer URL for the Oracle Autonomous Database.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @minLength(10) @maxLength(2048) sqlWebDeveloperUrl?: string; @doc("The list of regions that support the creation of an Autonomous Database clone or an Autonomous Data Guard standby database.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @maxItems(50) supportedRegionsToCloneTo?: string[]; @doc("The date and time the Autonomous Data Guard role was switched for the Autonomous Database.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeDataGuardRoleChanged?: string; @doc("The date and time the Always Free database will be automatically deleted because of inactivity.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeDeletionOfFreeAutonomousDatabase?: string; @doc("The date and time that Autonomous Data Guard was enabled for an Autonomous Database where the standby was provisioned in the same region as the primary database.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeLocalDataGuardEnabled?: string; @doc("The timestamp of the last failover operation.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeOfLastFailover?: string; @doc("The date and time when last refresh happened.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeOfLastRefresh?: string; @doc("The refresh point timestamp (UTC).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeOfLastRefreshPoint?: string; @doc("The timestamp of the last switchover operation for the Autonomous Database.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeOfLastSwitchover?: string; @doc("The date and time the Always Free database will be stopped because of inactivity.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeReclamationOfFreeAutonomousDatabase?: string; @doc("The storage space consumed by Autonomous Database in GBs.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) usedDataStorageSizeInGbs?: int32; @doc("The amount of storage that has been used, in terabytes.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) usedDataStorageSizeInTbs?: int32; @doc("Database ocid") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) ocid?: Ocid; @doc("Retention period, in days, for long-term backups") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) backupRetentionPeriodInDays?: int32; @doc("The client IP access control list (ACL). This is an array of CIDR notations and/or IP addresses. Values should be separate strings, separated by commas. Example: ['1.1.1.1','1.1.1.0/24','1.1.2.25']") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) whitelistedIps?: aclString[]; } diff --git a/specification/oracle/models/autonomousdatabase/autonomousDatabaseBackup.tsp b/specification/oracle/models/autonomousdatabase/autonomousDatabaseBackup.tsp index 7a256d40af08..70bedd1ee890 100644 --- a/specification/oracle/models/autonomousdatabase/autonomousDatabaseBackup.tsp +++ b/specification/oracle/models/autonomousdatabase/autonomousDatabaseBackup.tsp @@ -60,67 +60,67 @@ model AutonomousDatabaseBackup @doc("AutonomousDatabaseBackup resource model") model AutonomousDatabaseBackupProperties { @doc("The OCID of the Autonomous Database.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) autonomousDatabaseOcid?: Ocid; @doc("The size of the database in terabytes at the time the backup was taken.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) databaseSizeInTbs?: float64; @doc("A valid Oracle Database version for Autonomous Database.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) dbVersion?: string; @doc("The user-friendly name for the backup. The name does not have to be unique.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) displayName?: string; @doc("The OCID of the Autonomous Database backup.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) ocid?: Ocid; @doc("Indicates whether the backup is user-initiated or automatic.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isAutomatic?: boolean; @doc("Indicates whether the backup can be used to restore the associated Autonomous Database.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isRestorable?: boolean; @doc("Additional information about the current lifecycle state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lifecycleDetails?: string; @doc("The current state of the backup.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lifecycleState?: AutonomousDatabaseBackupLifecycleState; @doc("Retention period, in days") - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) retentionPeriodInDays?: int32; @doc("The backup size in terabytes (TB).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sizeInTbs?: float64; @doc("Timestamp until when the backup will be available.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeAvailableTil?: utcDateTime; @doc("The date and time the backup started.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeStarted?: string; @doc("The date and time the backup completed.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeEnded?: string; @doc("The type of backup.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) backupType?: AutonomousDatabaseBackupType; @doc("Azure resource provisioning state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: AzureResourceProvisioningState; } diff --git a/specification/oracle/models/exadata/dbNodes.tsp b/specification/oracle/models/exadata/dbNodes.tsp index 8a320e1d0d7b..0ae2bd161ec2 100644 --- a/specification/oracle/models/exadata/dbNodes.tsp +++ b/specification/oracle/models/exadata/dbNodes.tsp @@ -89,7 +89,7 @@ model DbNodeProperties { vnicId: Ocid; @doc("Azure resource provisioning state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } diff --git a/specification/oracle/models/exadata/dbServers.tsp b/specification/oracle/models/exadata/dbServers.tsp index 25190de0ef22..0f0fed157ea2 100644 --- a/specification/oracle/models/exadata/dbServers.tsp +++ b/specification/oracle/models/exadata/dbServers.tsp @@ -37,21 +37,21 @@ union DbServerPatchingStatus { @doc("DbServer Patching Properties") model DbServerPatchingDetails { @doc("Estimated Patch Duration") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @minValue(1) @maxValue(3000) estimatedPatchDuration?: int32; @doc("Patching Status") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) patchingStatus?: DbServerPatchingStatus; @doc("Time Patching Ended") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timePatchingEnded?: utcDateTime; @doc("Time Patching Started") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timePatchingStarted?: utcDateTime; } @@ -59,87 +59,87 @@ model DbServerPatchingDetails { @doc("DbServer resource properties") model DbServerProperties { @doc("Db server name.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) ocid?: Ocid; @doc("The name for the Db Server.") @minLength(1) @maxLength(255) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) displayName?: string; @doc("The OCID of the compartment.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) compartmentId?: Ocid; @doc("The OCID of the Exadata infrastructure.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) exadataInfrastructureId?: Ocid; @doc("The number of CPU cores enabled on the Db server.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) cpuCoreCount?: int32; @doc("dbServerPatching details of the Db server.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) dbServerPatchingDetails?: DbServerPatchingDetails; @doc("The total memory available in GBs.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) maxMemoryInGbs?: int32; @doc("The allocated local node storage in GBs on the Db server.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) dbNodeStorageSizeInGbs?: int32; @doc("The OCID of the VM Clusters associated with the Db server.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) vmClusterIds?: Ocid[]; @doc("The OCID of the Db nodes associated with the Db server.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) dbNodeIds?: Ocid[]; @doc("Lifecycle details of dbServer.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lifecycleDetails?: string; @doc("DbServer provisioning state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lifecycleState?: DbServerProvisioningState; @doc("The total number of CPU cores available.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) maxCpuCount?: int32; @doc("The list of OCIDs of the Autonomous VM Clusters associated with the Db server.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) autonomousVmClusterIds?: Ocid[]; @doc("The list of OCIDs of the Autonomous Virtual Machines associated with the Db server.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) autonomousVirtualMachineIds?: Ocid[]; @doc("The total max dbNode storage in GBs.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) maxDbNodeStorageInGbs?: int32; @doc("The total memory size in GBs.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) memorySizeInGbs?: int32; @doc("The shape of the Db server. The shape determines the amount of CPU, storage, and memory resources available.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @minLength(1) @maxLength(255) shape?: string; @doc("The date and time that the Db Server was created.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeCreated?: utcDateTime; @doc("Azure resource provisioning state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } diff --git a/specification/oracle/models/exadata/dnsPrivateViews.tsp b/specification/oracle/models/exadata/dnsPrivateViews.tsp index 023b2b8dd93e..e9372fb90385 100644 --- a/specification/oracle/models/exadata/dnsPrivateViews.tsp +++ b/specification/oracle/models/exadata/dnsPrivateViews.tsp @@ -41,7 +41,7 @@ model DnsPrivateViewProperties { timeUpdated: utcDateTime; @doc("Azure resource provisioning state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } diff --git a/specification/oracle/models/exadata/dnsPrivateZones.tsp b/specification/oracle/models/exadata/dnsPrivateZones.tsp index 486a6bb9d671..b47b10f727ab 100644 --- a/specification/oracle/models/exadata/dnsPrivateZones.tsp +++ b/specification/oracle/models/exadata/dnsPrivateZones.tsp @@ -49,7 +49,7 @@ model DnsPrivateZoneProperties { timeCreated: utcDateTime; @doc("Azure resource provisioning state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } diff --git a/specification/oracle/models/exadata/exadatainfra.tsp b/specification/oracle/models/exadata/exadatainfra.tsp index 475ee2c3d308..90b13adf97f9 100644 --- a/specification/oracle/models/exadata/exadatainfra.tsp +++ b/specification/oracle/models/exadata/exadatainfra.tsp @@ -101,25 +101,25 @@ model EstimatedPatchingTime { @doc("The estimated time required in minutes for database server patching.") @minValue(1) @maxValue(3000) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) estimatedDbServerPatchingTime?: int32; @doc("The estimated time required in minutes for network switch patching.") @minValue(1) @maxValue(3000) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) estimatedNetworkSwitchesPatchingTime?: int32; @doc("The estimated time required in minutes for storage server patching.") @minValue(1) @maxValue(3000) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) estimatedStorageServerPatchingTime?: int32; @doc("The estimated total time required in minutes for all patching operations.") @minValue(1) @maxValue(3000) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) totalEstimatedPatchingTime?: int32; } @@ -141,129 +141,129 @@ model CloudExadataInfrastructure @doc("CloudExadataInfrastructure resource model") model CloudExadataInfrastructureProperties { @doc("Exadata infra ocid") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) ocid?: Ocid; @doc("The number of compute servers for the cloud Exadata infrastructure.") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) computeCount?: int32; @doc("The number of storage servers for the cloud Exadata infrastructure.") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) storageCount?: int32; @doc("The total storage allocated to the cloud Exadata infrastructure resource, in gigabytes (GB).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) totalStorageSizeInGbs?: int32; @doc("The available storage can be allocated to the cloud Exadata infrastructure resource, in gigabytes (GB).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) availableStorageSizeInGbs?: int32; @doc("The date and time the cloud Exadata infrastructure resource was created.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeCreated?: string; @doc("Additional information about the current lifecycle state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lifecycleDetails?: string; @doc("maintenanceWindow property") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) maintenanceWindow?: MaintenanceWindow; @doc("The estimated total time required in minutes for all patching operations (database server, storage server, and network switch patching).") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) estimatedPatchingTime?: EstimatedPatchingTime; @doc("The list of customer email addresses that receive information from Oracle about the specified OCI Database service resource. Oracle uses these email addresses to send notifications about planned and unplanned software maintenance updates, information about system hardware, and other information needed by administrators. Up to 10 email addresses can be added to the customer contacts for a cloud Exadata infrastructure instance. ") @extension("x-ms-identifiers", []) - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) customerContacts?: CustomerContact[]; @doc("CloudExadataInfrastructure provisioning state") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: AzureResourceProvisioningState; @doc("CloudExadataInfrastructure lifecycle state") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lifecycleState?: CloudExadataInfrastructureLifecycleState; @doc("The model name of the cloud Exadata infrastructure resource.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) shape: string; @doc("HTTPS link to OCI resources exposed to Azure Customer via Azure Interface.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) ociUrl?: url; @doc("The total number of CPU cores allocated.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) cpuCount?: int32; @doc("The total number of CPU cores available.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) maxCpuCount?: int32; @doc("The memory allocated in GBs.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) memorySizeInGbs?: int32; @doc("The total memory available in GBs.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) maxMemoryInGbs?: int32; @doc("The local node storage to be allocated in GBs.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) dbNodeStorageSizeInGbs?: int32; @doc("The total local node storage available in GBs.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) maxDbNodeStorageSizeInGbs?: int32; @doc("The quantity of data in the database, in terabytes.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) dataStorageSizeInTbs?: float64; @doc("The total available DATA disk group size.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) maxDataStorageInTbs?: float64; @doc("The software version of the database servers (dom0) in the Exadata infrastructure.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) dbServerVersion?: string; @doc("The software version of the storage servers (cells) in the Exadata infrastructure.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) storageServerVersion?: string; @doc("The requested number of additional storage servers activated for the Exadata infrastructure.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) activatedStorageCount?: int32; @doc("The requested number of additional storage servers for the Exadata infrastructure.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) additionalStorageCount?: int32; @doc("The name for the Exadata infrastructure.") - @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Read, Lifecycle.Update) @minLength(1) @maxLength(255) displayName: string; @doc("The OCID of the last maintenance run.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastMaintenanceRunId?: Ocid; @doc("The OCID of the next maintenance run.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nextMaintenanceRunId?: Ocid; @doc("Monthly Db Server version") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) monthlyDbServerVersion?: string; @doc("Monthly Storage Server version") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) monthlyStorageServerVersion?: string; } diff --git a/specification/oracle/models/exadata/virtualNetworkAddress.tsp b/specification/oracle/models/exadata/virtualNetworkAddress.tsp index f0214a2abb16..bcd057f742a5 100644 --- a/specification/oracle/models/exadata/virtualNetworkAddress.tsp +++ b/specification/oracle/models/exadata/virtualNetworkAddress.tsp @@ -46,23 +46,23 @@ model VirtualNetworkAddress is ProxyResource { @doc("virtualNetworkAddress resource properties") model VirtualNetworkAddressProperties { @doc("Virtual network Address address.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) ipAddress?: string; @doc("Virtual Machine OCID.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) vmOcid?: Ocid; @doc("Application VIP OCID.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) ocid?: Ocid; @doc("Virtual network address fully qualified domain name.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) domain?: string; @doc("Additional information about the current lifecycle state of the application virtual IP (VIP) address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lifecycleDetails?: string; //Subnet should be retrieved from the VM Cluster @@ -71,14 +71,14 @@ model VirtualNetworkAddressProperties { // subnetId?: SubnetId; @doc("Azure resource provisioning state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: AzureResourceProvisioningState; @doc("virtual network address lifecycle state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lifecycleState?: VirtualNetworkAddressLifecycleState; @doc("The date and time when the create operation for the application virtual IP (VIP) address completed.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeAssigned?: utcDateTime; } diff --git a/specification/oracle/models/exadata/vmcluster.tsp b/specification/oracle/models/exadata/vmcluster.tsp index 2e5052dd04f4..92fb2be0df23 100644 --- a/specification/oracle/models/exadata/vmcluster.tsp +++ b/specification/oracle/models/exadata/vmcluster.tsp @@ -189,19 +189,19 @@ model NsgCidr { @doc("CloudVmCluster resource model") model CloudVmClusterProperties { @doc("Cloud VM Cluster ocid") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) ocid?: Ocid; @doc("The port number configured for the listener on the cloud VM cluster.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) listenerPort?: int64; @doc("The number of nodes in the cloud VM cluster. ") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nodeCount?: int32; @doc("The data disk group size to be allocated in GBs per VM.") - @visibility(Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Update) storageSizeInGbs?: int32; @doc("The data disk group size to be allocated in TBs.") @@ -214,31 +214,31 @@ model CloudVmClusterProperties { memorySizeInGbs?: int32; @doc("The date and time that the cloud VM cluster was created.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeCreated?: utcDateTime; @doc("Additional information about the current lifecycle state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lifecycleDetails?: string; @doc("The time zone of the cloud VM cluster. For details, see [Exadata Infrastructure Time Zones](/Content/Database/References/timezones.htm).") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) @minLength(1) @maxLength(255) timeZone?: string; @doc("The OCID of the zone the cloud VM cluster is associated with.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) zoneId?: Ocid; @doc("The hostname for the cloud VM cluster.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) @minLength(1) @maxLength(23) hostname: string; @doc("The domain name for the cloud VM cluster.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) domain?: string; @doc("The number of CPU cores enabled on the cloud VM cluster.") @@ -248,29 +248,29 @@ model CloudVmClusterProperties { ocpuCount?: float32; @doc("The cluster name for cloud VM cluster. The cluster name must begin with an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. ") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) @minLength(1) @maxLength(11) clusterName?: string; @doc("The percentage assigned to DATA storage (user data and database files). The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 35, 40, 60 and 80. The default is 80 percent assigned to DATA storage. See [Storage Configuration](/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. ") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) dataStoragePercentage?: int32; @doc("If true, database backup on local Exadata storage is configured for the cloud VM cluster. If false, database backup on local Exadata storage is not available in the cloud VM cluster. ") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) isLocalBackupEnabled?: boolean = false; @doc("Cloud Exadata Infrastructure ID") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) cloudExadataInfrastructureId: CloudExadataInfrastructureId; @doc("If true, sparse disk group is configured for the cloud VM cluster. If false, sparse disk group is not created. ") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) isSparseDiskgroupEnabled?: boolean = false; @doc("Operating system version of the image.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) @minLength(1) @maxLength(255) systemVersion?: string; @@ -282,77 +282,77 @@ model CloudVmClusterProperties { licenseModel?: LicenseModel; @doc("The type of redundancy configured for the cloud Vm cluster. NORMAL is 2-way redundancy. HIGH is 3-way redundancy. ") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) diskRedundancy?: DiskRedundancy; @doc("The Single Client Access Name (SCAN) IP addresses associated with the cloud VM cluster. SCAN IP addresses are typically used for load balancing and are not assigned to any interface. Oracle Clusterware directs the requests to the appropriate nodes in the cluster. **Note:** For a single-node DB system, this list is empty.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) scanIpIds?: string[]; @doc("The virtual IP (VIP) addresses associated with the cloud VM cluster. The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the Exadata Cloud Service instance to enable failover. If one node fails, the VIP is reassigned to another active node in the cluster. **Note:** For a single-node DB system, this list is empty.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) vipIds?: string[]; @doc("The FQDN of the DNS record for the SCAN IP addresses that are associated with the cloud VM cluster. ") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @minLength(1) @maxLength(72) scanDnsName?: string; @doc("The TCP Single Client Access Name (SCAN) port. The default port is 1521.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) scanListenerPortTcp?: int32; @doc("The TCPS Single Client Access Name (SCAN) port. The default port is 2484.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) scanListenerPortTcpSsl?: int32; @doc("The OCID of the DNS record for the SCAN IP addresses that are associated with the cloud VM cluster.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) scanDnsRecordId?: Ocid; @doc("The model name of the Exadata hardware running the cloud VM cluster.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @minLength(1) @maxLength(255) shape?: string; @doc("CloudVmCluster provisioning state") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: AzureResourceProvisioningState; @doc("CloudVmCluster lifecycle state") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lifecycleState?: CloudVmClusterLifecycleState; @doc("VNET for network connectivity") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) vnetId: VnetId; @doc("Oracle Grid Infrastructure (GI) software version") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) giVersion: string; @doc("HTTPS link to OCI resources exposed to Azure Customer via Azure Interface.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) ociUrl?: url; @doc("HTTPS link to OCI Network Security Group exposed to Azure Customer via the Azure Interface.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nsgUrl?: url; @doc("Client subnet") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) subnetId: SubnetId; @doc("Client OCI backup subnet CIDR, default is 192.168.252.0/22") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) @minLength(1) @maxLength(32) backupSubnetCidr?: string; @doc("CIDR blocks for additional NSG ingress rules. The VNET CIDRs used to provision the VM Cluster will be added by default.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) @extension("x-ms-identifiers", []) nsgCidrs?: NsgCidr[]; @@ -365,27 +365,27 @@ model CloudVmClusterProperties { displayName: string; @doc("The list of compute servers to be added to the cloud VM cluster.") - @visibility(Lifecycle.Update) + @visibility(Lifecycle.Update) computeNodes?: Ocid[]; @doc("iormConfigCache details for cloud VM cluster.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) iormConfigCache?: ExadataIormConfig; @doc("The OCID of the last maintenance update history entry.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastUpdateHistoryEntryId?: Ocid; @doc("The list of DB servers.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) dbServers?: Ocid[]; @doc("Cluster compartmentId") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) compartmentId?: Ocid; @doc("Cluster subnet ocid") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) subnetOcid?: Ocid; } diff --git a/specification/oracle/models/oraclesubscription/oracleSubscription.tsp b/specification/oracle/models/oraclesubscription/oracleSubscription.tsp index 72fabd30bc3c..c4be97e80f5c 100644 --- a/specification/oracle/models/oraclesubscription/oracleSubscription.tsp +++ b/specification/oracle/models/oraclesubscription/oracleSubscription.tsp @@ -77,73 +77,73 @@ union Intent { @doc("Cloud Account Details model") model CloudAccountDetails { @doc("Cloud Account name") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) cloudAccountName?: string; @doc("Cloud Account Home region") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) cloudAccountHomeRegion?: string; } @doc("SaaS Subscription Details model") model SaasSubscriptionDetails { @doc("Purchased SaaS subscription ID") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; @doc("SaaS subscription name") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) subscriptionName?: string; @doc("Creation Date and Time") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeCreated?: utcDateTime; @doc("Purchased offer ID") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) offerId?: string; @doc("Purchased offer's plan ID") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) planId?: string; @doc("Indicates the status of the Subscription.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) saasSubscriptionStatus?: string; @doc("Publisher ID") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) publisherId?: string; @doc("Purchaser Email ID") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) purchaserEmailId?: string; @doc("Purchaser Tenant ID") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) purchaserTenantId?: string; @doc("Purchase Term Unit") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) termUnit?: string; @doc("AutoRenew flag") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isAutoRenew?: boolean; @doc("FreeTrial flag") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isFreeTrial?: boolean; } @doc("Activation Links model") model ActivationLinks { @doc("New Cloud Account Activation Link") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) newCloudAccountActivationLink?: string; @doc("Existing Cloud Account Activation Link") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) existingCloudAccountActivationLink?: string; } @@ -172,45 +172,45 @@ union AddSubscriptionOperationState { @doc("Oracle Subscription resource model") model OracleSubscriptionProperties { @doc("OracleSubscriptionProvisioningState provisioning state") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: OracleSubscriptionProvisioningState; @doc("SAAS subscription ID generated by Marketplace") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) saasSubscriptionId?: string; @doc("Cloud Account Id") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) cloudAccountId?: Ocid; @doc("Cloud Account provisioning state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) cloudAccountState?: CloudAccountProvisioningState; @doc("Term Unit. P1Y, P3Y, etc, see Durations https://en.wikipedia.org/wiki/ISO_8601") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) termUnit?: string; @doc("Product code for the term unit") - @visibility(Lifecycle.Update) + @visibility(Lifecycle.Update) productCode?: string; @doc("Intent for the update operation") - @visibility(Lifecycle.Update) + @visibility(Lifecycle.Update) intent?: Intent; @added(Versions.v20240601_preview) @doc("Azure subscriptions associated with this OracleSubscription") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) azureSubscriptionIds?: string[]; @added(Versions.v20240601_preview) @doc("State of the add Azure subscription operation on Oracle subscription") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) addSubscriptionOperationState?: AddSubscriptionOperationState; @added(Versions.v20240601_preview) @doc("Status details of the last operation on Oracle subscription") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastOperationStatusDetail?: string; } diff --git a/specification/playwrighttesting/PlaywrightTesting.AuthManager/main.tsp b/specification/playwrighttesting/PlaywrightTesting.AuthManager/main.tsp index 147cc9f70b09..60cce50c7ada 100644 --- a/specification/playwrighttesting/PlaywrightTesting.AuthManager/main.tsp +++ b/specification/playwrighttesting/PlaywrightTesting.AuthManager/main.tsp @@ -70,30 +70,30 @@ model AccessToken { @doc("The access-token id.") @maxLength(64) @pattern("[A-Za-z0-9]+(-[A-Za-z0-9]+)+") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: uuid; @minLength(3) @maxLength(64) @pattern("^[a-zA-Z]{1}[a-zA-Z0-9]{2,63}$") @doc("The access-token name.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) name: string; @doc("The access-token value in JWT format.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) jwtToken?: string; @doc("The access-token createdAt utcDateTime.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) createdAt: utcDateTime; @doc("The access-token expiryAt utcDateTime.") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) expiryAt: utcDateTime; @doc("The access-token state - Active | Expired.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) state: AccessTokenState; } diff --git a/specification/playwrighttesting/PlaywrightTesting.Management/main.tsp b/specification/playwrighttesting/PlaywrightTesting.Management/main.tsp index fcc1febd48b5..ed97da02b308 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Management/main.tsp +++ b/specification/playwrighttesting/PlaywrightTesting.Management/main.tsp @@ -42,7 +42,7 @@ model Account is TrackedResource { @doc("Account resource properties.") model AccountProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The Playwright testing dashboard URI for the account resource.") dashboardUri?: url; @@ -58,7 +58,7 @@ model AccountProperties { @doc("When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations.") localAuth?: EnablementStatus = EnablementStatus.Disabled; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } @@ -120,7 +120,7 @@ model Location { @key("location") @path @segment("locations") - @visibility(Lifecycle.Query, Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Query, Lifecycle.Read, Lifecycle.Update) name: string; } @@ -152,10 +152,10 @@ model QuotaProperties { freeTrial?: FreeTrialProperties; @doc("Indicates the offering type for the subscription.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) offeringType?: OfferingType; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } @@ -163,11 +163,11 @@ model QuotaProperties { @doc("The subscription quota resource free-trial properties.") model FreeTrialProperties { @doc("The Playwright service account id.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) accountId: string; @doc("The free-trial state.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) state: FreeTrialState; } @@ -187,7 +187,7 @@ model AccountQuotaProperties { @doc("The Playwright service account quota resource free-trial properties.") freeTrial?: AccountFreeTrialProperties; - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } @@ -195,23 +195,23 @@ model AccountQuotaProperties { @doc("The Playwright service account quota resource free-trial properties.") model AccountFreeTrialProperties { @doc("The free-trial createdAt utcDateTime.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) createdAt: utcDateTime; @doc("The free-trial expiryAt utcDateTime.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) expiryAt: utcDateTime; @doc("The free-trial allocated limit value eg. allocated free minutes.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) allocatedValue: int32; @doc("The free-trial used value eg. used free minutes.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) usedValue: int32; @doc("The free-trial percentage used.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @minValue(0) @maxValue(100) percentageUsed: float32; diff --git a/specification/playwrighttesting/PlaywrightTesting.Shared/main.tsp b/specification/playwrighttesting/PlaywrightTesting.Shared/main.tsp index c98fbc436e2c..79cd8f6badd8 100644 --- a/specification/playwrighttesting/PlaywrightTesting.Shared/main.tsp +++ b/specification/playwrighttesting/PlaywrightTesting.Shared/main.tsp @@ -25,51 +25,51 @@ model Account { @doc("The account id.") @maxLength(64) @pattern("[A-Za-z0-9]+(_[A-Za-z0-9]+)*(-[A-Za-z0-9]+)+") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: string; @doc("The fully-qualified Azure resource id for the account.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceId: string; @doc("The account name.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("The state of account - Active | Inactive") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) state: AccountState; @doc("The Azure subscription id for the account.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) subscriptionId: uuid; @doc("The Azure subscription state - Registered | Unregistered | Warned | Suspended | Deleted") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) subscriptionState: SubscriptionState; @doc("The Azure tenant id of the account.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) tenantId: uuid; @doc("The account resource location in Azure, for eg. eastus, southeastasia.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) location: string; @doc("This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) regionalAffinity?: EnablementStatus = EnablementStatus.Enabled; @doc("When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) scalableExecution?: EnablementStatus = EnablementStatus.Enabled; @doc("When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) reporting?: EnablementStatus = EnablementStatus.Enabled; @doc("When enabled, this feature allows the workspace to use local auth (through service access token) for executing operations.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) localAuth?: EnablementStatus = EnablementStatus.Disabled; } diff --git a/specification/portal/Dashboard.Management/models.tsp b/specification/portal/Dashboard.Management/models.tsp index ab8d85ff594f..3a54ebb1a96c 100644 --- a/specification/portal/Dashboard.Management/models.tsp +++ b/specification/portal/Dashboard.Management/models.tsp @@ -64,19 +64,19 @@ model ErrorDefinition { /** * Service specific error code which serves as the substatus for the HTTP error code. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) code?: int32; /** * Description of the error. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) message?: string; /** * Internal error details. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", ["code"]) details?: ErrorDefinition[]; } @@ -86,7 +86,7 @@ model DashboardPropertiesWithProvisioningState { ...DashboardProperties; @doc("The status of the last operation.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } @@ -213,19 +213,19 @@ model Resource { /** * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; /** * The name of the resource */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name?: string; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) type?: string; } diff --git a/specification/portal/TenantConfiguration.Management/models.tsp b/specification/portal/TenantConfiguration.Management/models.tsp index 1a69e5410bc1..957f88c9e7a9 100644 --- a/specification/portal/TenantConfiguration.Management/models.tsp +++ b/specification/portal/TenantConfiguration.Management/models.tsp @@ -26,7 +26,7 @@ model ConfigurationProperties { enforcePrivateMarkdownStorage?: boolean; @doc("The status of the last operation.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } @@ -42,18 +42,18 @@ model Violation { /** * Id of the item that violates tenant configuration. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; /** * Id of the user who owns violated item. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) userId?: string; /** * Error message. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errorMessage?: string; } diff --git a/specification/portalservices/CopilotSettings.Management/CopilotSettings.tsp b/specification/portalservices/CopilotSettings.Management/CopilotSettings.tsp index 439100a81713..e0320c2fedc3 100644 --- a/specification/portalservices/CopilotSettings.Management/CopilotSettings.tsp +++ b/specification/portalservices/CopilotSettings.Management/CopilotSettings.tsp @@ -14,7 +14,7 @@ model CopilotSettingsResource is ProxyResource { @doc("The default copilot settings, applying to entire tenant.") @segment("copilotSettings") @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path @pattern("^[a-zA-Z0-9-]{3,24}$") name: string; diff --git a/specification/portalservices/CopilotSettings.Management/models.tsp b/specification/portalservices/CopilotSettings.Management/models.tsp index b672a40fa9ff..8b24c7eb84d1 100644 --- a/specification/portalservices/CopilotSettings.Management/models.tsp +++ b/specification/portalservices/CopilotSettings.Management/models.tsp @@ -10,6 +10,6 @@ model CopilotSettingsProperties { accessControlEnabled: boolean; @doc("The status of the last provisioning operation performed on the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; } diff --git a/specification/portalservices/Extension.Management/ExtensionTenantCompileFile.tsp b/specification/portalservices/Extension.Management/ExtensionTenantCompileFile.tsp index 52518c937153..53d624ee2867 100644 --- a/specification/portalservices/Extension.Management/ExtensionTenantCompileFile.tsp +++ b/specification/portalservices/Extension.Management/ExtensionTenantCompileFile.tsp @@ -20,7 +20,7 @@ model PortalTenantCompileFile @path @key("compilefile") @segment("compilefile") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/portalservices/Extension.Management/models.tsp b/specification/portalservices/Extension.Management/models.tsp index c4375796b117..06a2f33f3c22 100644 --- a/specification/portalservices/Extension.Management/models.tsp +++ b/specification/portalservices/Extension.Management/models.tsp @@ -143,37 +143,37 @@ model PortalExtensionProperties { /** * Readonly. The ICM routing details for any live site issues for the extension set in service tree */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) icm?: PortalExtensionPropertiesIcm; /** * Readonly. Email for customer feedback from service tree. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) feedbackEmail?: string; /** * Readonly. The service tree id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) serviceTreeId?: string; /** * Readonly. The oAuthClientId guid from service tree. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) oAuthClientId?: string; /** * Readonly. The preview stamp from service tree. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) previewStamp?: string; /** * Readonly. The Azure portal extension name e.g Microsoft_Azure_Storage. Comes in from extension.pdl or extension.dx.json or is generated. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) portalName?: string; /** @@ -184,19 +184,19 @@ model PortalExtensionProperties { /** * The current registration or provisioning state which only appears in the response */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * The visibility of the extension. By default status will be NotOnboarded. Microsoft owned extensions can promote using service tree. External extensions can promote your application use partner center. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) publicStatus?: PublicStatusKind; /** * Once provisioningState is in the terminal state of Succeeded this is the portal runtime uri for portal extensions with status of private */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) runtimeUri?: string; } @@ -234,19 +234,19 @@ model PortalExtensionPropertiesIcm { /** * Readonly. The ICM service route e.g Azure Portal (IbizaFx) from ICM for the service tree icm teamId. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) service?: string; /** * Readonly. The team under the ICM service e.g Portal from ICM for the service tree icm teamId. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) team?: string; /** * Readonly. The ICM team Id from service tree. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) teamId?: int32; } @@ -272,19 +272,19 @@ model ArmCommonProperties { /** * Resource Id */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; /** * Resource name */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name?: string; /** * Resource type */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) type?: string; /** @@ -301,7 +301,7 @@ model ArmCommonProperties { /** * Metadata pertaining to creation and last modification of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) systemData?: Azure.ResourceManager.Foundations.SystemData; } @@ -458,7 +458,7 @@ model ExtensionVersionProperties { /** * Indicates if the version has ever been deployed */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) hasBeenDeployed?: boolean; /** @@ -469,7 +469,7 @@ model ExtensionVersionProperties { /** * Readonly. The provisioning state. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** @@ -541,13 +541,13 @@ model ExtensionDeploymentProperties { /** * Readonly. The current registration or provisioning state which only appears in the response */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * Readonly. The next stage of deployment from the deployment sequence e.g stage2 */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nextStage?: string; /** @@ -594,13 +594,13 @@ model ExtensionSlotProperties { /** * Readonly. The current registration or provisioning state which only appears in the response */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * Readonly. The slot that will be deployed to. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nextStage?: string; } @@ -658,7 +658,7 @@ model PortalTenantCompileFileProperties { /** * The current registration or provisioning state which only appears in the response. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/location.tsp b/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/location.tsp index 33aa45b05852..43f69b759fd9 100644 --- a/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/location.tsp +++ b/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/location.tsp @@ -25,7 +25,7 @@ interface DeviceLocation { model DeviceLocationEndpoint { @key @doc("Static endpoint") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) location: "location"; } diff --git a/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/network.tsp b/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/network.tsp index 09f74830388d..6e19d7e227e5 100644 --- a/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/network.tsp +++ b/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/network.tsp @@ -26,7 +26,7 @@ interface DeviceNetwork { model DeviceNetworkRetrievalEndpoint { @key @doc("Static endpoint") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) network: "network"; } diff --git a/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/number.tsp b/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/number.tsp index 0a3d1d438712..9bf2b48c0f00 100644 --- a/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/number.tsp +++ b/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/number.tsp @@ -55,7 +55,7 @@ interface NumberVerification { model NumberVerificationEndpoint { @key @doc("Static endpoint") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) number: "number"; } diff --git a/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/simswap.tsp b/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/simswap.tsp index b985f65c7f23..47f6fca93931 100644 --- a/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/simswap.tsp +++ b/specification/programmableconnectivity/Azure.ProgrammableConnectivity/apis/simswap.tsp @@ -33,7 +33,7 @@ interface SimSwap { model SimSwapEndpoint { @key @doc("Static endpoint") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) simSwap: "sim-swap"; } diff --git a/specification/programmableconnectivity/ProgrammableConnectivity.Management/Gateway.tsp b/specification/programmableconnectivity/ProgrammableConnectivity.Management/Gateway.tsp index 6f986b3e12b6..43922bd80947 100644 --- a/specification/programmableconnectivity/ProgrammableConnectivity.Management/Gateway.tsp +++ b/specification/programmableconnectivity/ProgrammableConnectivity.Management/Gateway.tsp @@ -22,7 +22,7 @@ model Gateway is Azure.ResourceManager.TrackedResource { @path @key("gatewayName") @segment("gateways") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } @@ -33,7 +33,7 @@ model GatewayProperties { /** * List of Operator API Connections selected by the user */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) operatorApiConnections?: Azure.Core.armResourceIdentifier<[ { type: "Microsoft.ProgrammableConnectivity/operatorApiConnections"; @@ -43,13 +43,13 @@ model GatewayProperties { /** * Base URL of the Gateway resource. This is the URL that the users would use to make Open API Gateway requests to the Operators via Azure. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) gatewayBaseUrl?: string; /** * The status of the last operation on the Gateway resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/programmableconnectivity/ProgrammableConnectivity.Management/OperatorApiConnection.tsp b/specification/programmableconnectivity/ProgrammableConnectivity.Management/OperatorApiConnection.tsp index b0a68925eb5e..eeba79848161 100644 --- a/specification/programmableconnectivity/ProgrammableConnectivity.Management/OperatorApiConnection.tsp +++ b/specification/programmableconnectivity/ProgrammableConnectivity.Management/OperatorApiConnection.tsp @@ -23,7 +23,7 @@ model OperatorApiConnection @path @key("operatorApiConnectionName") @segment("operatorApiConnections") - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) name: string; } @@ -34,7 +34,7 @@ model OperatorApiConnectionProperties { /** * Reference to the Operator API Plan Resource ID. */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) operatorApiPlanId: Azure.Core.armResourceIdentifier<[ { type: "Microsoft.ProgrammableConnectivity/operatorApiPlans"; @@ -44,25 +44,25 @@ model OperatorApiConnectionProperties { /** * Details about the SaaS offer purchased from the marketplace. */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) saasProperties?: SaasProperties; /** * Details about the Application that would use the Operator's Network APIs. */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) configuredApplication?: ApplicationProperties; /** * Application ID of the App Developer that is registered with the Operator in a specific country/region. */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) appId?: string; /** * Reference to the APC Gateway resource ID. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) gatewayId: Azure.Core.armResourceIdentifier<[ { type: "Microsoft.ProgrammableConnectivity/gateways"; @@ -72,38 +72,38 @@ model OperatorApiConnectionProperties { /** * Type of the account the user has with the Operator's Network API infrastructure. AzureManaged | UserManaged. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) accountType: AccountType; /** * Application secret linked to the 'appId'. This should be stored securely and is not returned back when the resource information is read. */ - @visibility(Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Update) @secret appSecret?: string; /** * Name of the Operator in the linked Operator API Plan belongs to. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) operatorName?: string; /** * The Network API for the current operator in the country/region provided in the linked Operator API Plan. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) camaraApiName?: string; /** * The status of the last operation. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * The status of the OperatorApiConnection resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: Status; } diff --git a/specification/programmableconnectivity/ProgrammableConnectivity.Management/OperatorApiPlan.tsp b/specification/programmableconnectivity/ProgrammableConnectivity.Management/OperatorApiPlan.tsp index d9fcc31e32b5..db9a013d388d 100644 --- a/specification/programmableconnectivity/ProgrammableConnectivity.Management/OperatorApiPlan.tsp +++ b/specification/programmableconnectivity/ProgrammableConnectivity.Management/OperatorApiPlan.tsp @@ -24,7 +24,7 @@ model OperatorApiPlan @path @key("operatorApiPlanName") @segment("operatorApiPlans") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } @@ -100,7 +100,7 @@ model OperatorApiPlanProperties { /** * The status of the last operation on the Gateway resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/purview/Azure.Analytics.Purview.DataMap/models.tsp b/specification/purview/Azure.Analytics.Purview.DataMap/models.tsp index d47c67484096..a01e01bd5b26 100644 --- a/specification/purview/Azure.Analytics.Purview.DataMap/models.tsp +++ b/specification/purview/Azure.Analytics.Purview.DataMap/models.tsp @@ -312,7 +312,7 @@ model AtlasEntity { homeId?: string; @doc("The collection ID of the entity.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) collectionId?: string; @doc("Whether it is a shell entity") diff --git a/specification/quantum/Microsoft.Quantum.Management/models.tsp b/specification/quantum/Microsoft.Quantum.Management/models.tsp index 8c69ffffb205..067332957251 100644 --- a/specification/quantum/Microsoft.Quantum.Management/models.tsp +++ b/specification/quantum/Microsoft.Quantum.Management/models.tsp @@ -106,7 +106,7 @@ model ProviderDescription { /** * Provider's display name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name?: string; /** @@ -122,25 +122,25 @@ model ProviderProperties { /** * A description about this provider. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) description?: string; /** * Provider type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) providerType?: string; /** * Company name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) company?: string; /** * Provider's default endpoint. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) defaultEndpoint?: string; /** @@ -181,13 +181,13 @@ model ProviderPropertiesAad { /** * Provider's application id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) applicationId?: string; /** * Provider's tenant id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) tenantId?: string; } @@ -198,13 +198,13 @@ model ProviderPropertiesManagedApplication { /** * Provider's publisher id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) publisherId?: string; /** * Provider's offer id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) offerId?: string; } @@ -376,13 +376,13 @@ model WorkspaceResourceProperties { /** * Whether the current workspace is ready to accept Jobs. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) usable?: UsableStatus; /** * Provisioning status field */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: WorkspaceProvisioningStatus; /** @@ -393,7 +393,7 @@ model WorkspaceResourceProperties { /** * The URI of the workspace endpoint. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) endpointUri?: string; /** @@ -459,13 +459,13 @@ model ListKeysResult { /** * The connection string of the primary api key. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) primaryConnectionString?: string; /** * The connection string of the secondary api key. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) secondaryConnectionString?: string; } @@ -481,7 +481,7 @@ model ApiKey { /** * The Api key. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) key?: string; } diff --git a/specification/quantum/Quantum.Workspace/common/common-params.tsp b/specification/quantum/Quantum.Workspace/common/common-params.tsp index abf3365942e8..dada2750cdc6 100644 --- a/specification/quantum/Quantum.Workspace/common/common-params.tsp +++ b/specification/quantum/Quantum.Workspace/common/common-params.tsp @@ -70,7 +70,12 @@ model CommonParams { model Subscription { /** The Azure subscription ID. */ @key - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update, Lifecycle.Delete) + @visibility( + Lifecycle.Read, + Lifecycle.Create, + Lifecycle.Update, + Lifecycle.Delete + ) subscriptionId: SubscriptionId; } @@ -80,7 +85,12 @@ model Subscription { model ResourceGroup { /** Name of the Azure resource group. */ @key - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update, Lifecycle.Delete) + @visibility( + Lifecycle.Read, + Lifecycle.Create, + Lifecycle.Update, + Lifecycle.Delete + ) resourceGroupName: ResourceGroupName; } @@ -90,7 +100,12 @@ model ResourceGroup { model ResourceProvider { /** The Azure Quantum resource provider. */ @key - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update, Lifecycle.Delete) + @visibility( + Lifecycle.Read, + Lifecycle.Create, + Lifecycle.Update, + Lifecycle.Delete + ) providerName: ResourceProviderName; } @@ -100,6 +115,11 @@ model ResourceProvider { model QuantumWorkspace { /** Name of the Azure Quantum workspace. */ @key - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update, Lifecycle.Delete) + @visibility( + Lifecycle.Read, + Lifecycle.Create, + Lifecycle.Update, + Lifecycle.Delete + ) workspaceName: WorkspaceName; } diff --git a/specification/quantum/Quantum.Workspace/common/json-patch.tsp b/specification/quantum/Quantum.Workspace/common/json-patch.tsp index 8e7558b6279c..77bf9e92eef7 100644 --- a/specification/quantum/Quantum.Workspace/common/json-patch.tsp +++ b/specification/quantum/Quantum.Workspace/common/json-patch.tsp @@ -36,20 +36,20 @@ union JsonPatchOperation { /** A JSONPatch object as defined by RFC 6902. */ model JsonPatchObject { /** The operation to be performed. */ - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) @encodedName("application/json", "op") operation: JsonPatchOperation; /** A JSON-Pointer. */ - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) path: string; /** A value to be used in the operation on the path. */ - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) value?: {}; /** Optional field used in copy and move operations. */ - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) from?: string; } diff --git a/specification/quantum/Quantum.Workspace/operations/items.tsp b/specification/quantum/Quantum.Workspace/operations/items.tsp index 83e41661b05d..835693e47118 100644 --- a/specification/quantum/Quantum.Workspace/operations/items.tsp +++ b/specification/quantum/Quantum.Workspace/operations/items.tsp @@ -40,43 +40,43 @@ scalar WorkspaceItemId extends string; model ItemDetails { /** Id of the item. */ @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: WorkspaceItemId; /** The name of the item. It is not required for the name to be unique and it's only used for display purposes. */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) name: string; /** The unique identifier for the provider. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) providerId: string; /** The target identifier to run the job. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) target: string; /** Type of the Quantum Workspace item */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) itemType: ItemType; /** The creation time of the item. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) creationTime?: utcDateTime; /** The time when the item began execution. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) beginExecutionTime?: utcDateTime; /** The time when the item finished execution. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) endExecutionTime?: utcDateTime; /** Cost estimate. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) costEstimate?: CostEstimate; /** Error information. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errorData?: Errors.WorkspaceItemError; } diff --git a/specification/quantum/Quantum.Workspace/operations/jobs.tsp b/specification/quantum/Quantum.Workspace/operations/jobs.tsp index e3d6765781c6..d629dfe696ac 100644 --- a/specification/quantum/Quantum.Workspace/operations/jobs.tsp +++ b/specification/quantum/Quantum.Workspace/operations/jobs.tsp @@ -48,7 +48,7 @@ union JobStatus { /** Quantum computing data. */ model QuantumComputingData { /** The number of quantum computing items in the job. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) count: int64; } @@ -59,63 +59,63 @@ model JobDetails extends ItemDetails { /** Id of the job. */ #suppress "@azure-tools/typespec-azure-core/key-visibility-required" "False-positive" @key("jobId") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: WorkspaceItemId; /** Type of the Quantum Workspace item is Job. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) itemType: ItemType.Job; /** The type of job. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) jobType?: JobType; /** The ID of the session that the job is part of. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) sessionId?: string; /** The blob container SAS uri, the container is used to host job data. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) containerUri: string; /** The input blob URI, if specified, it will override the default input blob in the container. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) inputDataUri?: string; /** The format of the input data. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) inputDataFormat?: string; /** The status of the job. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: JobStatus; /** The job metadata. Metadata provides client the ability to store client-specific information */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) metadata?: {}; /** The time when a job was successfully cancelled. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) cancellationTime?: utcDateTime; /** List of user-supplied tags associated with the job. */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) tags?: string[]; /** Quantum computing data. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) quantumComputingData?: QuantumComputingData; /** The input parameters for the job. JSON object used by the target solver. It is expected that the size of this object is small and only used to specify parameters for the execution target, not the input data. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) inputParams?: {}; /** The output blob uri. When a job finishes successfully, results will be uploaded to this blob. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) outputDataUri?: string; /** The format of the output data. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) outputDataFormat?: string; } diff --git a/specification/quantum/Quantum.Workspace/operations/providers.tsp b/specification/quantum/Quantum.Workspace/operations/providers.tsp index e297a2d7a821..af356bb2b11c 100644 --- a/specification/quantum/Quantum.Workspace/operations/providers.tsp +++ b/specification/quantum/Quantum.Workspace/operations/providers.tsp @@ -41,35 +41,35 @@ union TargetAvailability { @parentResource(QuantumWorkspace) model ProviderStatus { /** Provider id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @key id: string; /** Current provider availability. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) currentAvailability: ProviderAvailability; /** Current target statuses. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targets: TargetStatus[]; } /** Target status. */ model TargetStatus { /** Target id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: string; /** Current target availability. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) currentAvailability: TargetAvailability; /** Average queue time in seconds. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) averageQueueTime: int64; /** A page with detailed status of the provider. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) statusPage?: string; } diff --git a/specification/quantum/Quantum.Workspace/operations/quotas.tsp b/specification/quantum/Quantum.Workspace/operations/quotas.tsp index 97b8e63c6280..8c83ebb0d37b 100644 --- a/specification/quantum/Quantum.Workspace/operations/quotas.tsp +++ b/specification/quantum/Quantum.Workspace/operations/quotas.tsp @@ -36,36 +36,36 @@ union MeterPeriod { model Quota { /** Quota faux key. */ @key - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // A faux key is needed to tag the Quota as a resource. key: never; /** The name of the dimension associated with the quota. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) dimension: string; /** The scope at which the quota is applied. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) scope: DimensionScope; /** The unique identifier for the provider. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) providerId: string; /** The amount of the usage that has been applied for the current period. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) utilization: float32; /** The amount of the usage that has been reserved but not applied for the current period. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) holds: float32; /** The maximum amount of usage allowed for the current period. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) limit: float32; /** The time period in which the quota's underlying meter is accumulated. Based on calendar year. 'None' is used for concurrent quotas. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) period: MeterPeriod; } diff --git a/specification/quantum/Quantum.Workspace/operations/sessions.tsp b/specification/quantum/Quantum.Workspace/operations/sessions.tsp index 412804d71002..23d40f657113 100644 --- a/specification/quantum/Quantum.Workspace/operations/sessions.tsp +++ b/specification/quantum/Quantum.Workspace/operations/sessions.tsp @@ -51,19 +51,19 @@ union SessionStatus { model SessionDetails extends ItemDetails { /** Id of the session. */ @key("sessionId") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: WorkspaceItemId; /** Type of the Quantum Workspace item is Session. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) itemType: ItemType.Session; /** Policy controlling the behavior of the Session when a job in the session fails. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) jobFailurePolicy: SessionJobFailurePolicy; /** The status of the session. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: SessionStatus; } diff --git a/specification/quantum/Quantum.Workspace/operations/storage.tsp b/specification/quantum/Quantum.Workspace/operations/storage.tsp index 6e14b680772f..f444b192a224 100644 --- a/specification/quantum/Quantum.Workspace/operations/storage.tsp +++ b/specification/quantum/Quantum.Workspace/operations/storage.tsp @@ -13,18 +13,18 @@ using TypeSpec.Http; /** The details (name and container) of the blob to store or download data. */ model BlobDetails { /** The container name. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) containerName: string; /** The blob name. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) blobName?: string; } /** SAS URI operation response. */ model SasUriResponse { /** A URL with a SAS token to upload a blob for execution in the given workspace. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sasUri: string; } diff --git a/specification/recoveryservicesdatareplication/DataReplication.Management/models.tsp b/specification/recoveryservicesdatareplication/DataReplication.Management/models.tsp index 6dd967e87fe3..10a98d6523ea 100644 --- a/specification/recoveryservicesdatareplication/DataReplication.Management/models.tsp +++ b/specification/recoveryservicesdatareplication/DataReplication.Management/models.tsp @@ -728,7 +728,7 @@ model EmailConfigurationModelProperties { /** * Gets or sets the provisioning state of the email configuration. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -739,56 +739,56 @@ model EventModelProperties { /** * Gets or sets the resource type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceType?: string; /** * Gets or sets the resource name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceName?: string; /** * Gets or sets the event type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) eventType?: string; /** * Gets or sets the event name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) eventName?: string; /** * Gets or sets the time at which the event occurred at source. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. timeOfOccurrence?: utcDateTime; /** * Gets or sets the event severity. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) severity?: string; /** * Gets or sets the event description. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) description?: string; /** * Gets or sets the event correlation Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) correlationId?: string; /** * Gets or sets the errors associated with this event. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) healthErrors?: HealthErrorModel[]; @@ -800,7 +800,7 @@ model EventModelProperties { /** * Gets or sets the provisioning state of the event. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -827,68 +827,68 @@ model HealthErrorModel { /** * Gets or sets the error code. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) code?: string; /** * Gets or sets the health category. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) healthCategory?: string; /** * Gets or sets the error category. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) category?: string; /** * Gets or sets the error severity. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) severity?: string; /** * Gets or sets the error source. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) source?: string; /** * Gets or sets the error creation time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. creationTime?: utcDateTime; /** * Gets or sets a value indicating whether the error is customer resolvable. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isCustomerResolvable?: boolean; /** * Gets or sets the error summary. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) summary?: string; /** * Gets or sets the error message. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) message?: string; /** * Gets or sets possible causes of the error. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) causes?: string; /** * Gets or sets recommended action to resolve the error. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) recommendation?: string; } @@ -899,68 +899,68 @@ model InnerHealthErrorModel { /** * Gets or sets the error code. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) code?: string; /** * Gets or sets the health category. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) healthCategory?: string; /** * Gets or sets the error category. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) category?: string; /** * Gets or sets the error severity. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) severity?: string; /** * Gets or sets the error source. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) source?: string; /** * Gets or sets the error creation time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. creationTime?: utcDateTime; /** * Gets or sets a value indicating whether the error is customer resolvable. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isCustomerResolvable?: boolean; /** * Gets or sets the error summary. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) summary?: string; /** * Gets or sets the error message. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) message?: string; /** * Gets or sets possible causes of the error. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) causes?: string; /** * Gets or sets recommended action to resolve the error. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) recommendation?: string; } @@ -979,31 +979,31 @@ model FabricModelProperties { /** * Gets or sets the provisioning state of the fabric. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * Gets or sets the service endpoint. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) serviceEndpoint?: string; /** * Gets or sets the service resource Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) serviceResourceId?: string; /** * Gets or sets the fabric health. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) health?: HealthStatus; /** * Gets or sets the list of health errors. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) healthErrors?: HealthErrorModel[]; @@ -1039,25 +1039,25 @@ model FabricModelUpdate { /** * Gets or sets the Id of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; /** * Gets or sets the name of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name?: string; /** * Gets or sets the type of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) type?: string; /** * Metadata pertaining to creation and last modification of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) systemData?: SystemData; } @@ -1068,7 +1068,7 @@ model FabricAgentModelProperties { /** * Gets or sets the fabric agent correlation Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) correlationId?: string; /** @@ -1096,32 +1096,32 @@ model FabricAgentModelProperties { /** * Gets or sets a value indicating whether the fabric agent is responsive. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isResponsive?: boolean; /** * Gets or sets the time when last heartbeat was sent by the fabric agent. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastHeartbeat?: utcDateTime; /** * Gets or sets the fabric agent version. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) versionNumber?: string; /** * Gets or sets the provisioning state of the fabric agent. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * Gets or sets the list of health errors. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) healthErrors?: HealthErrorModel[]; @@ -1181,100 +1181,100 @@ model JobModelProperties { /** * Gets or sets the friendly display name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) displayName?: string; /** * Gets or sets the job state. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) state?: JobState; /** * Gets or sets the start time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. startTime?: utcDateTime; /** * Gets or sets the end time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. endTime?: utcDateTime; /** * Gets or sets the affected object Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) objectId?: string; /** * Gets or sets the affected object name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) objectName?: string; /** * Gets or sets the affected object internal Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) objectInternalId?: string; /** * Gets or sets the affected object internal name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) objectInternalName?: string; /** * Gets or sets the object type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) objectType?: JobObjectType; /** * Gets or sets the replication provider. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) replicationProviderId?: string; /** * Gets or sets the source fabric provider. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceFabricProviderId?: string; /** * Gets or sets the target fabric provider. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetFabricProviderId?: string; /** * Gets or sets the list of allowed actions on the job. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) allowedActions?: string[]; /** * Gets or sets the job activity id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) activityId?: string; /** * Gets or sets the list of tasks. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) tasks?: TaskModel[]; /** * Gets or sets the list of errors. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) errors?: ErrorModel[]; @@ -1286,7 +1286,7 @@ model JobModelProperties { /** * Gets or sets the provisioning state of the job. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -1297,26 +1297,26 @@ model TaskModel { /** * Gets or sets the task name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) taskName?: string; /** * Gets or sets the task state. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) state?: TaskState; /** * Gets or sets the start time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. startTime?: utcDateTime; /** * Gets or sets the end time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. endTime?: utcDateTime; @@ -1350,44 +1350,44 @@ model ErrorModel { /** * Gets or sets the error code. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) code?: string; /** * Gets or sets the error type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) type?: string; /** * Gets or sets the error severity. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) severity?: string; /** * Gets or sets the creation time of error. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. creationTime?: utcDateTime; /** * Gets or sets the error message. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) message?: string; /** * Gets or sets the possible causes of error. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) causes?: string; /** * Gets or sets the recommended action to resolve error. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) recommendation?: string; } @@ -1401,7 +1401,7 @@ model JobModelCustomProperties { * Gets or sets any custom properties of the affected object. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) affectedObjectDetails?: { description?: string; type?: "object"; @@ -1415,7 +1415,7 @@ model PolicyModelProperties { /** * Gets or sets the provisioning state of the policy. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** @@ -1439,7 +1439,7 @@ model PrivateEndpointConnectionResponseProperties { /** * Gets or sets provisioning state of the private endpoint connection. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** @@ -1490,7 +1490,7 @@ model PrivateEndpointConnectionProxyProperties { /** * Gets or sets the provisioning state of the private endpoint connection proxy. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** @@ -1677,7 +1677,7 @@ model PrivateLinkResourceProperties { /** * Gets or sets the provisioning state of the private link resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -1700,160 +1700,160 @@ model ProtectedItemModelProperties { /** * Gets or sets the protected item correlation Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) correlationId?: string; /** * Gets or sets the provisioning state of the fabric agent. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * Gets or sets the protection state. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) protectionState?: ProtectionState; /** * Gets or sets the protection state description. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) protectionStateDescription?: string; /** * Gets or sets the test failover state. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) testFailoverState?: TestFailoverState; /** * Gets or sets the Test failover state description. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) testFailoverStateDescription?: string; /** * Gets or sets the resynchronization state. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resynchronizationState?: ResynchronizationState; /** * Gets or sets the fabric object Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) fabricObjectId?: string; /** * Gets or sets the fabric object name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) fabricObjectName?: string; /** * Gets or sets the source fabric provider Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceFabricProviderId?: string; /** * Gets or sets the target fabric provider Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetFabricProviderId?: string; /** * Gets or sets the fabric Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) fabricId?: string; /** * Gets or sets the target fabric Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetFabricId?: string; /** * Gets or sets the fabric agent Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) fabricAgentId?: string; /** * Gets or sets the target fabric agent Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetFabricAgentId?: string; /** * Gets or sets a value indicating whether resynchronization is required or not. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resyncRequired?: boolean; /** * Gets or sets the Last successful planned failover time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastSuccessfulPlannedFailoverTime?: utcDateTime; /** * Gets or sets the Last successful unplanned failover time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastSuccessfulUnplannedFailoverTime?: utcDateTime; /** * Gets or sets the Last successful test failover time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastSuccessfulTestFailoverTime?: utcDateTime; /** * Gets or sets the current scenario. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) currentJob?: ProtectedItemJobProperties; /** * Gets or sets the allowed scenarios on the protected item. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) allowedJobs?: string[]; /** * Gets or sets the last failed enabled protection job. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastFailedEnableProtectionJob?: ProtectedItemJobProperties; /** * Gets or sets the last failed planned failover job. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastFailedPlannedFailoverJob?: ProtectedItemJobProperties; /** * Gets or sets the last test failover job. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastTestFailoverJob?: ProtectedItemJobProperties; /** * Gets or sets protected item replication health. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) replicationHealth?: HealthStatus; /** * Gets or sets the list of health errors. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) healthErrors?: HealthErrorModel[]; @@ -1870,44 +1870,44 @@ model ProtectedItemJobProperties { /** * Gets or sets protection scenario name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) scenarioName?: string; /** * Gets or sets job Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; /** * Gets or sets job name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name?: string; /** * Gets or sets the job friendly display name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) displayName?: string; /** * Gets or sets job state. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) state?: string; /** * Gets or sets start time of the job. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. startTime?: utcDateTime; /** * Gets or sets end time of the job. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. endTime?: utcDateTime; } @@ -1932,25 +1932,25 @@ model ProtectedItemModelUpdate { /** * Gets or sets the Id of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; /** * Gets or sets the name of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name?: string; /** * Gets or sets the type of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) type?: string; /** * Metadata pertaining to creation and last modification of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) systemData?: SystemData; } @@ -2023,7 +2023,7 @@ model RecoveryPointModelProperties { /** * Gets or sets the provisioning state of the recovery point item. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -2042,7 +2042,7 @@ model ReplicationExtensionModelProperties { /** * Gets or sets the provisioning state of the replication extension. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** @@ -2122,7 +2122,7 @@ model DeploymentPreflightResource { /** * Gets or sets the location of the resource. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) location?: string; /** @@ -2174,13 +2174,13 @@ model VaultModelProperties { /** * Gets or sets the provisioning state of the vault. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * Gets or sets the service resource Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) serviceResourceId?: string; /** @@ -2201,13 +2201,13 @@ model VaultIdentityModel { /** * Gets or sets the object ID of the service principal object for the managed identity that is used to grant role-based access to an Azure resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) principalId?: string; /** * Gets or sets a Globally Unique Identifier (GUID) that represents the Azure AD tenant where the resource is now a member. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) tenantId?: string; } @@ -2234,25 +2234,25 @@ model VaultModelUpdate { /** * Gets or sets the Id of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; /** * Gets or sets the name of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name?: string; /** * Gets or sets the type of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) type?: string; /** * Metadata pertaining to creation and last modification of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) systemData?: SystemData; } @@ -2318,7 +2318,7 @@ model AzStackHCIFabricModelCustomProperties /** * Gets or sets the Appliance name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) applianceName?: string[]; /** @@ -2329,13 +2329,13 @@ model AzStackHCIFabricModelCustomProperties /** * Gets or sets the fabric resource Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) fabricResourceId?: string; /** * Gets or sets the fabric container Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) fabricContainerId?: string; /** @@ -2347,7 +2347,7 @@ model AzStackHCIFabricModelCustomProperties /** * Gets or sets the migration hub Uri. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) migrationHubUri?: string; /** @@ -2384,7 +2384,7 @@ model FailoverJobModelCustomProperties extends JobModelCustomProperties { /** * Gets or sets the failed over protected item details. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) protectedItemDetails?: FailoverProtectedItemProperties[]; @@ -2401,44 +2401,44 @@ model FailoverProtectedItemProperties { /** * Gets or sets the protected item name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) protectedItemName?: string; /** * Gets or sets the VM name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) vmName?: string; /** * Gets or sets the test VM name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) testVmName?: string; /** * Gets or sets the recovery point Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) recoveryPointId?: string; /** * Gets or sets the recovery point time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. recoveryPointTime?: utcDateTime; /** * Gets or sets the network name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) networkName?: string; /** * Gets or sets the network subnet. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) subnet?: string; } @@ -2458,13 +2458,13 @@ model HyperVMigrateFabricModelCustomProperties /** * Gets or sets the fabric resource Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) fabricResourceId?: string; /** * Gets or sets the fabric container Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) fabricContainerId?: string; /** @@ -2476,7 +2476,7 @@ model HyperVMigrateFabricModelCustomProperties /** * Gets or sets the migration hub Uri. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) migrationHubUri?: string; /** @@ -2557,31 +2557,31 @@ model HyperVToAzStackHCIEventModelCustomProperties /** * Gets or sets the friendly name of the source which has raised this health event. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) eventSourceFriendlyName?: string; /** * Gets or sets the protected item friendly name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) protectedItemFriendlyName?: string; /** * Gets or sets the source appliance name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceApplianceName?: string; /** * Gets or sets the source target name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetApplianceName?: string; /** * Gets or sets the server type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) serverType?: string; /** @@ -2604,7 +2604,7 @@ model HyperVToAzStackHCINicInput { /** * Gets or sets the network name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) networkName?: string; /** @@ -2685,85 +2685,85 @@ model HyperVToAzStackHCIProtectedDiskProperties { /** * Gets or sets the ARM Id of the storage container. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) storageContainerId?: string; /** * Gets or sets the local path of the storage container. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) storageContainerLocalPath?: string; /** * Gets or sets the source disk Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceDiskId?: string; /** * Gets or sets the source disk Name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceDiskName?: string; /** * Gets or sets the seed disk name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) seedDiskName?: string; /** * Gets or sets the test failover clone disk. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) testMigrateDiskName?: string; /** * Gets or sets the failover clone disk. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) migrateDiskName?: string; /** * Gets or sets a value indicating whether the disk is the OS disk. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isOsDisk?: boolean; /** * Gets or sets the disk capacity in bytes. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) capacityInBytes?: int64; /** * Gets or sets a value indicating whether dynamic sizing is enabled on the virtual hard disk. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isDynamic?: boolean; /** * Gets or sets the disk type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) diskType?: string; /** * Gets or sets a value of disk block size. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) diskBlockSize?: int64; /** * Gets or sets a value of disk logical sector size. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) diskLogicalSectorSize?: int64; /** * Gets or sets a value of disk physical sector size. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) diskPhysicalSectorSize?: int64; } @@ -2776,7 +2776,7 @@ model HyperVToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the location of the protected item. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) activeLocation?: ProtectedItemActiveLocation; /** @@ -2794,7 +2794,7 @@ model HyperVToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the Target AzStackHCI cluster name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetAzStackHciClusterName?: string; /** @@ -2818,19 +2818,19 @@ model HyperVToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the source VM display name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceVmName?: string; /** * Gets or sets the source VM CPU cores. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceCpuCores?: int32; /** * Gets or sets the source VM ram memory size in megabytes. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceMemoryInMegaBytes?: float64; /** @@ -2907,37 +2907,37 @@ model HyperVToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the source appliance name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceApplianceName?: string; /** * Gets or sets the target appliance name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetApplianceName?: string; /** * Gets or sets the type of the OS. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) osType?: string; /** * Gets or sets the name of the OS. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) osName?: string; /** * Gets or sets the firmware type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) firmwareType?: string; /** * Gets or sets the target location. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetLocation?: string; /** @@ -2949,58 +2949,58 @@ model HyperVToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the recovery point Id to which the VM was failed over. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) failoverRecoveryPointId?: string; /** * Gets or sets the last recovery point received time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastRecoveryPointReceived?: utcDateTime; /** * Gets or sets the last recovery point Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastRecoveryPointId?: string; /** * Gets or sets the initial replication progress percentage. This is calculated based on total bytes processed for all disks in the source VM. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) initialReplicationProgressPercentage?: int32; /** * Gets or sets the resync progress percentage. This is calculated based on total bytes processed for all disks in the source VM. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resyncProgressPercentage?: int32; /** * Gets or sets the list of protected disks. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) protectedDisks?: HyperVToAzStackHCIProtectedDiskProperties[]; /** * Gets or sets the VM NIC details. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) protectedNics?: HyperVToAzStackHCIProtectedNicProperties[]; /** * Gets or sets the BIOS Id of the target AzStackHCI VM. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetVmBiosId?: string; /** * Gets or sets the latest timestamp that replication status is updated. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastReplicationUpdateTime?: utcDateTime; @@ -3038,37 +3038,37 @@ model HyperVToAzStackHCIProtectedNicProperties { /** * Gets or sets the NIC Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nicId?: string; /** * Gets or sets the NIC mac address. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) macAddress?: string; /** * Gets or sets the network name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) networkName?: string; /** * Gets or sets the target network Id within AzStackHCI Cluster. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetNetworkId?: string; /** * Gets or sets the target test network Id within AzStackHCI Cluster. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) testNetworkId?: string; /** * Gets or sets the selection type of the NIC. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) selectionTypeForFailover?: VMNicSelection; } @@ -3124,7 +3124,7 @@ model HyperVToAzStackHCIRecoveryPointModelCustomProperties /** * Gets or sets the list of the disk Ids. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) diskIds?: string[]; /** @@ -3148,7 +3148,7 @@ model HyperVToAzStackHCIReplicationExtensionModelCustomProperties /** * Gets or sets the ARM Id of the HyperV site. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) hyperVSiteId?: string; /** @@ -3160,7 +3160,7 @@ model HyperVToAzStackHCIReplicationExtensionModelCustomProperties /** * Gets or sets the ARM Id of the AzStackHCI site. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) azStackHciSiteId?: string; /** @@ -3176,61 +3176,61 @@ model HyperVToAzStackHCIReplicationExtensionModelCustomProperties /** * Gets or sets the Uri of ASR. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) asrServiceUri?: string; /** * Gets or sets the Uri of Rcm. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) rcmServiceUri?: string; /** * Gets or sets the Uri of Gateway. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) gatewayServiceUri?: string; /** * Gets or sets the gateway service Id of source. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceGatewayServiceId?: string; /** * Gets or sets the gateway service Id of target. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetGatewayServiceId?: string; /** * Gets or sets the source storage container name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceStorageContainerName?: string; /** * Gets or sets the target storage container name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetStorageContainerName?: string; /** * Gets or sets the resource location. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceLocation?: string; /** * Gets or sets the subscription. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) subscriptionId?: string; /** * Gets or sets the resource group. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceGroup?: string; /** @@ -3350,7 +3350,7 @@ model TestFailoverCleanupJobModelCustomProperties /** * Gets or sets the test failover cleanup comments. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) comments?: string; /** @@ -3366,7 +3366,7 @@ model TestFailoverJobModelCustomProperties extends JobModelCustomProperties { /** * Gets or sets the test VM details. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) protectedItemDetails?: FailoverProtectedItemProperties[]; @@ -3495,31 +3495,31 @@ model VMwareToAzStackHCIEventModelCustomProperties /** * Gets or sets the friendly name of the source which has raised this health event. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) eventSourceFriendlyName?: string; /** * Gets or sets the protected item friendly name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) protectedItemFriendlyName?: string; /** * Gets or sets the source appliance name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceApplianceName?: string; /** * Gets or sets the source target name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetApplianceName?: string; /** * Gets or sets the server type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) serverType?: string; /** @@ -3548,7 +3548,7 @@ model VMwareToAzStackHCINicInput { /** * Gets or sets the network name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) networkName?: string; /** @@ -3629,85 +3629,85 @@ model VMwareToAzStackHCIProtectedDiskProperties { /** * Gets or sets the ARM Id of the storage container. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) storageContainerId?: string; /** * Gets or sets the local path of the storage container. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) storageContainerLocalPath?: string; /** * Gets or sets the source disk Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceDiskId?: string; /** * Gets or sets the source disk Name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceDiskName?: string; /** * Gets or sets the seed disk name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) seedDiskName?: string; /** * Gets or sets the test failover clone disk. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) testMigrateDiskName?: string; /** * Gets or sets the failover clone disk. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) migrateDiskName?: string; /** * Gets or sets a value indicating whether the disk is the OS disk. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isOsDisk?: boolean; /** * Gets or sets the disk capacity in bytes. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) capacityInBytes?: int64; /** * Gets or sets a value indicating whether dynamic sizing is enabled on the virtual hard disk. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isDynamic?: boolean; /** * Gets or sets the disk type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) diskType?: string; /** * Gets or sets a value of disk block size. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) diskBlockSize?: int64; /** * Gets or sets a value of disk logical sector size. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) diskLogicalSectorSize?: int64; /** * Gets or sets a value of disk physical sector size. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) diskPhysicalSectorSize?: int64; } @@ -3720,7 +3720,7 @@ model VMwareToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the location of the protected item. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) activeLocation?: ProtectedItemActiveLocation; /** @@ -3738,7 +3738,7 @@ model VMwareToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the Target AzStackHCI cluster name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetAzStackHciClusterName?: string; /** @@ -3756,7 +3756,7 @@ model VMwareToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the target location. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetLocation?: string; /** @@ -3780,21 +3780,21 @@ model VMwareToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the list of protected disks. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) protectedDisks?: VMwareToAzStackHCIProtectedDiskProperties[]; /** * Gets or sets the VM NIC details. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) protectedNics?: VMwareToAzStackHCIProtectedNicProperties[]; /** * Gets or sets the BIOS Id of the target AzStackHCI VM. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetVmBiosId?: string; /** @@ -3842,19 +3842,19 @@ model VMwareToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the type of the OS. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) osType?: string; /** * Gets or sets the name of the OS. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) osName?: string; /** * Gets or sets the firmware type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) firmwareType?: string; /** @@ -3866,19 +3866,19 @@ model VMwareToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the source VM display name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceVmName?: string; /** * Gets or sets the source VM CPU cores. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceCpuCores?: int32; /** * Gets or sets the source VM ram memory size in megabytes. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceMemoryInMegaBytes?: float64; /** @@ -3902,74 +3902,74 @@ model VMwareToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the source appliance name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceApplianceName?: string; /** * Gets or sets the target appliance name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetApplianceName?: string; /** * Gets or sets the recovery point Id to which the VM was failed over. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) failoverRecoveryPointId?: string; /** * Gets or sets the last recovery point received time. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastRecoveryPointReceived?: utcDateTime; /** * Gets or sets the last recovery point Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastRecoveryPointId?: string; /** * Gets or sets the initial replication progress percentage. This is calculated based on total bytes processed for all disks in the source VM. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) initialReplicationProgressPercentage?: int32; /** * Gets or sets the migration progress percentage. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) migrationProgressPercentage?: int32; /** * Gets or sets the resume progress percentage. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resumeProgressPercentage?: int32; /** * Gets or sets the resync progress percentage. This is calculated based on total bytes processed for all disks in the source VM. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resyncProgressPercentage?: int32; /** * Gets or sets the resync retry count. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resyncRetryCount?: int64; /** * Gets or sets a value indicating whether resync is required. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resyncRequired?: boolean; /** * Gets or sets the resync state. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resyncState?: VMwareToAzureMigrateResyncState; /** @@ -3980,13 +3980,13 @@ model VMwareToAzStackHCIProtectedItemModelCustomProperties /** * Gets or sets the resume retry count. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resumeRetryCount?: int64; /** * Gets or sets the latest timestamp that replication status is updated. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastReplicationUpdateTime?: utcDateTime; @@ -4004,19 +4004,19 @@ model VMwareToAzStackHCIProtectedNicProperties { /** * Gets or sets the NIC Id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nicId?: string; /** * Gets or sets the NIC mac address. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) macAddress?: string; /** * Gets or sets the NIC label. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) label?: string; /** @@ -4027,25 +4027,25 @@ model VMwareToAzStackHCIProtectedNicProperties { /** * Gets or sets the network name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) networkName?: string; /** * Gets or sets the target network Id within AzStackHCI Cluster. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetNetworkId?: string; /** * Gets or sets the target test network Id within AzStackHCI Cluster. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) testNetworkId?: string; /** * Gets or sets the selection type of the NIC. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) selectionTypeForFailover?: VMNicSelection; } @@ -4101,7 +4101,7 @@ model VMwareToAzStackHCIRecoveryPointModelCustomProperties /** * Gets or sets the list of the disk Ids. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) diskIds?: string[]; /** @@ -4125,7 +4125,7 @@ model VMwareToAzStackHCIReplicationExtensionModelCustomProperties /** * Gets or sets the ARM Id of the VMware site. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) vmwareSiteId?: string; /** @@ -4137,7 +4137,7 @@ model VMwareToAzStackHCIReplicationExtensionModelCustomProperties /** * Gets or sets the ARM Id of the AzStackHCI site. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) azStackHciSiteId?: string; /** @@ -4153,61 +4153,61 @@ model VMwareToAzStackHCIReplicationExtensionModelCustomProperties /** * Gets or sets the Uri of ASR. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) asrServiceUri?: string; /** * Gets or sets the Uri of Rcm. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) rcmServiceUri?: string; /** * Gets or sets the Uri of Gateway. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) gatewayServiceUri?: string; /** * Gets or sets the gateway service Id of source. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceGatewayServiceId?: string; /** * Gets or sets the gateway service Id of target. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetGatewayServiceId?: string; /** * Gets or sets the source storage container name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sourceStorageContainerName?: string; /** * Gets or sets the target storage container name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetStorageContainerName?: string; /** * Gets or sets the resource location. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceLocation?: string; /** * Gets or sets the subscription. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) subscriptionId?: string; /** * Gets or sets the resource group. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) resourceGroup?: string; /** diff --git a/specification/riskiq/Easm/models.tsp b/specification/riskiq/Easm/models.tsp index 9d96d9b15b45..42e8c71fe677 100644 --- a/specification/riskiq/Easm/models.tsp +++ b/specification/riskiq/Easm/models.tsp @@ -235,7 +235,7 @@ model AssetResource { @doc("The system generated unique id for the resource.") @key("assetId") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: string; @doc("The caller provided unique name for the resource.") @@ -518,7 +518,7 @@ model DataConnection { @doc("The caller provided unique name for the resource.") @key("dataConnectionName") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("The name that can be used for display purposes.") @@ -528,7 +528,7 @@ model DataConnection { content?: DataConnectionContent; @doc("The date the data connection was created.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) createdDate?: utcDateTime; @doc("The rate at which the data connection will receive updates.") @@ -538,18 +538,18 @@ model DataConnection { frequencyOffset?: int32; @doc("The date the data connection was last updated.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) updatedDate?: utcDateTime; @doc("The date the data connection was last updated by user.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) userUpdatedAt?: utcDateTime; @doc("An indicator of whether the data connection is active.") active?: boolean; @doc("A message that specifies details about data connection if inactive.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) inactiveMessage?: string; } @@ -624,16 +624,16 @@ model ActionParameters { @resource("policies") model Policy { @doc("This is typically the same as the name but might be different for different models.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; @doc("The caller provided unique name for the resource.") @key("policyName") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("The name that can be used for display purposes.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) displayName?: string; @doc("A human readable description of what the policy should do.") @@ -646,19 +646,19 @@ model Policy { action: PolicyAction; @doc("Number of assets in inventory that have been updated by this policy.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) updatedAssetsCount?: int64; @doc("The unique name of the user that created the policy user@gmail.com") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) user?: string; @doc("The date this policy was created, in RFC3339 format.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) createdDate?: utcDateTime; @doc("The date this policy was last updated, in RFC3339 format.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) updatedDate?: utcDateTime; @doc("Additional parameters needed to perform the policy action.") @@ -673,7 +673,7 @@ model DiscoGroup { @doc("The caller provided unique name for the resource.") @key("groupName") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("The name that can be used for display purposes.") @@ -766,7 +766,7 @@ model DiscoSource { model DiscoTemplate { @doc("The system generated unique id for the resource.") @key("templateId") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: string; @doc("The caller provided unique name for the resource.") @@ -1323,7 +1323,7 @@ model SavedFilter { @doc("The caller provided unique name for the resource.") @key("filterName") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("The name that can be used for display purposes.") @@ -1442,7 +1442,7 @@ model SubResourceIntegrityCheck { model Task { @doc("The unique identifier of the task.") @key("taskId") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: string; @doc("The time the task started.") @@ -2172,7 +2172,7 @@ model RequiredFilterParameter { @Versioning.added(Versions.v2024_03_01_preview) model CisaCveResult { @key("cveId") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The CVE ID of the vulnerability in the format CVE-YYYY-NNNN, note that the number portion can have more than 4 digits.") cveId: string; diff --git a/specification/schemaregistry/SchemaRegistry/main.tsp b/specification/schemaregistry/SchemaRegistry/main.tsp index cbcd7e7874ca..b0c799b17fbe 100644 --- a/specification/schemaregistry/SchemaRegistry/main.tsp +++ b/specification/schemaregistry/SchemaRegistry/main.tsp @@ -275,7 +275,7 @@ model SchemaVersions { model SchemaGroup { @key("groupName") @doc("Name of schema group.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) groupName: string; } @@ -285,7 +285,7 @@ model SchemaGroup { model SchemasName { @key("schemaName") @doc("Name of schema.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @maxLength(50) @pattern("^[A-Za-z0-9][^\\\\/$:]*$") schemaName: string; diff --git a/specification/scvmm/ScVmm.Management/GuestAgent.tsp b/specification/scvmm/ScVmm.Management/GuestAgent.tsp index 1ca5c0830204..2d4837c99b92 100644 --- a/specification/scvmm/ScVmm.Management/GuestAgent.tsp +++ b/specification/scvmm/ScVmm.Management/GuestAgent.tsp @@ -16,7 +16,7 @@ model GuestAgent is ProxyResource { /** Name of the guest agent. */ @key("guestAgentName") @segment("guestAgents") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @maxLength(54) @minLength(1) @pattern("[a-zA-Z0-9-_\\.]") diff --git a/specification/scvmm/ScVmm.Management/VirtualMachineInstance.tsp b/specification/scvmm/ScVmm.Management/VirtualMachineInstance.tsp index 75d1790cc3c9..6dadf740e090 100644 --- a/specification/scvmm/ScVmm.Management/VirtualMachineInstance.tsp +++ b/specification/scvmm/ScVmm.Management/VirtualMachineInstance.tsp @@ -17,7 +17,7 @@ model VirtualMachineInstance /** Name of the virtual machine instance. */ @key @segment("virtualMachineInstances") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @maxLength(54) @minLength(1) @pattern("[a-zA-Z0-9-_\\.]") @@ -26,7 +26,7 @@ model VirtualMachineInstance /** Gets or sets the extended location. */ #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "This property is allowed but not recognized by the linter" - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) extendedLocation: ExtendedLocation; } diff --git a/specification/scvmm/ScVmm.Management/VmInstanceHybridIdentityMetadata.tsp b/specification/scvmm/ScVmm.Management/VmInstanceHybridIdentityMetadata.tsp index 223ff805f02a..96c394dbbc7d 100644 --- a/specification/scvmm/ScVmm.Management/VmInstanceHybridIdentityMetadata.tsp +++ b/specification/scvmm/ScVmm.Management/VmInstanceHybridIdentityMetadata.tsp @@ -22,7 +22,7 @@ model VmInstanceHybridIdentityMetadata @minLength(1) @pattern("[a-zA-Z0-9-_\\.]") @path - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/scvmm/ScVmm.Management/models.tsp b/specification/scvmm/ScVmm.Management/models.tsp index 9126d6e6adfe..f216aa69ff7d 100644 --- a/specification/scvmm/ScVmm.Management/models.tsp +++ b/specification/scvmm/ScVmm.Management/models.tsp @@ -186,23 +186,23 @@ model VmmServerProperties { port?: int32; /** Gets the connection status to the vmmServer. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) connectionStatus?: string; /** Gets any error message if connection to vmmServer is having any issue. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errorMessage?: string; /** Unique ID of vmmServer. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) uuid?: string; /** Version is the version of the vmmSever. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) version?: string; /** Provisioning state of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -212,7 +212,7 @@ model VmmCredential { username?: string; /** Password to use to connect to VmmServer. */ - @visibility(Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Update) @secret password?: string; } @@ -243,34 +243,34 @@ model CloudProperties { vmmServerId?: VmmServerId; /** Name of the cloud in VmmServer. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) cloudName?: string; /** Capacity of the cloud. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) cloudCapacity?: CloudCapacity; /** List of QoS policies available for the cloud. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encodedName("application/json", "storageQoSPolicies") storageQosPolicies?: StorageQosPolicy[]; /** Provisioning state of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } /** Cloud Capacity model */ model CloudCapacity { /** CPUCount specifies the maximum number of CPUs that can be allocated in the cloud. */ - @visibility(Lifecycle.Read) cpuCount?: int64; + @visibility(Lifecycle.Read) cpuCount?: int64; /** MemoryMB specifies a memory usage limit in megabytes. */ #suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb" - @visibility(Lifecycle.Read) memoryMB?: int64; + @visibility(Lifecycle.Read) memoryMB?: int64; /** VMCount gives the max number of VMs that can be deployed in the cloud. */ - @visibility(Lifecycle.Read) vmCount?: int64; + @visibility(Lifecycle.Read) vmCount?: int64; } /** The StorageQoSPolicy definition. */ @@ -307,11 +307,11 @@ model VirtualNetworkProperties { vmmServerId?: VmmServerId; /** Name of the virtual network in vmmServer. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) networkName?: string; /** Provisioning state of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -328,68 +328,68 @@ model VirtualMachineTemplateProperties { vmmServerId?: VmmServerId; /** Gets the type of the os. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) osType?: OsType; /** Gets os name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) osName?: string; /** Gets computer name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) computerName?: string; /** MemoryMB is the desired size of a virtual machine's memory, in MB. */ #suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb" - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) memoryMB?: int32; /** Gets the desired number of vCPUs for the vm. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) cpuCount?: int32; /** Gets a value indicating whether to enable processor compatibility mode for live migration of VMs. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) limitCpuForMigration?: LimitCpuForMigration; /** Gets a value indicating whether to enable dynamic memory or not. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) dynamicMemoryEnabled?: DynamicMemoryEnabled; /** Gets a value indicating whether the vm template is customizable or not. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isCustomizable?: IsCustomizable; /** Gets the max dynamic memory for the vm. */ #suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb" - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) dynamicMemoryMaxMB?: int32; /** Gets the min dynamic memory for the vm. */ #suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb" - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) dynamicMemoryMinMB?: int32; /** Gets highly available property. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isHighlyAvailable?: IsHighlyAvailable; /** Gets the generation for the vm. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) generation?: int32; /** Gets the network interfaces of the template. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["name", "nicId"]) networkInterfaces?: NetworkInterface[]; /** Gets the disks of the template. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["diskId", "name"]) disks?: VirtualDisk[]; /** Provisioning state of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -399,15 +399,15 @@ model NetworkInterface { name?: string; /** Gets the display name of the network interface as shown in the vmmServer. This is the fallback label for a NIC when the name is not set. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) displayName?: string; /** Gets the nic ipv4 addresses. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) ipv4Addresses?: string[]; /** Gets the nic ipv6 addresses. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) ipv6Addresses?: string[]; /** Gets or sets the nic MAC address. */ @@ -417,7 +417,7 @@ model NetworkInterface { virtualNetworkId?: VirtualNetworkId; /** Gets the name of the virtual network in vmmServer that the nic is connected to. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) networkName?: string; /** Gets or sets the ipv4 address type. */ @@ -442,7 +442,7 @@ model VirtualDisk { name?: string; /** Gets the display name of the virtual disk as shown in the vmmServer. This is the fallback label for a disk when the name is not set. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) displayName?: string; /** Gets or sets the disk id. */ @@ -454,7 +454,7 @@ model VirtualDisk { /** Gets the max disk size. */ #suppress "@azure-tools/typespec-azure-core/casing-style" "GB is distinct from Gb" - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) maxDiskSizeGB?: int32; /** Gets or sets the disk bus. */ @@ -470,15 +470,15 @@ model VirtualDisk { vhdType?: string; /** Gets the disk volume type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) volumeType?: string; /** Gets the disk vhd format type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) vhdFormatType?: string; /** Gets or sets the disk id in the template. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) templateDiskId?: string; /** The QoS policy for the disk. */ @@ -486,7 +486,7 @@ model VirtualDisk { storageQosPolicy?: StorageQosPolicyDetails; /** Gets or sets a value indicating diff disk. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) createDiffDisk?: CreateDiffDisk; } @@ -512,7 +512,7 @@ model AvailabilitySetProperties { vmmServerId?: VmmServerId; /** Provisioning state of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -540,19 +540,19 @@ model InventoryItemProperties { inventoryType: InventoryType; /** Gets the tracked resource id corresponding to the inventory resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) managedResourceId?: string; /** Gets the UUID (which is assigned by Vmm) for the inventory item. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) uuid?: string; /** Gets the Managed Object name in Vmm for the inventory item. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) inventoryItemName?: string; /** Provisioning state of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -562,7 +562,7 @@ model VirtualMachineInstanceProperties { availabilitySets?: AvailabilitySetListItem[]; /** OS properties. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) osProfile?: OsProfileForVmInstance; /** Hardware properties. */ @@ -578,11 +578,11 @@ model VirtualMachineInstanceProperties { infrastructureProfile?: InfrastructureProfile; /** Gets the power state of the virtual machine. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) powerState?: string; /** Provisioning state of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -625,7 +625,7 @@ model AvailabilitySetListItem { /** Defines the resource properties. */ model OsProfileForVmInstance { /** Admin password of the virtual machine. */ - @visibility(Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Update) @secret adminPassword?: string; @@ -633,15 +633,15 @@ model OsProfileForVmInstance { computerName?: string; /** Gets the type of the os. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) osType?: OsType; /** Gets os sku. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) osSku?: string; /** Gets os version. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) osVersion?: string; /** Gets or sets the domain name. */ @@ -653,7 +653,7 @@ model OsProfileForVmInstance { domainUsername?: string; /** Password of the domain the VM has to join. */ - @visibility(Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Update) @secret @added(Versions.v2024_06_01) domainPassword?: string; @@ -663,7 +663,7 @@ model OsProfileForVmInstance { workgroup?: string; /** Gets or sets the product key.Input format xxxxx-xxxxx-xxxxx-xxxxx-xxxxx */ - @visibility(Lifecycle.Create) + @visibility(Lifecycle.Create) @secret @added(Versions.v2024_06_01) productKey?: string; @@ -701,7 +701,7 @@ model HardwareProfile { dynamicMemoryMinMB?: int32; /** Gets highly available property. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isHighlyAvailable?: IsHighlyAvailable; } @@ -741,15 +741,15 @@ model StorageProfileUpdate /** Specifies the vmmServer infrastructure specific settings for the virtual machine instance. */ model InfrastructureProfile { /** Gets or sets the inventory Item ID for the resource. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) inventoryItemId?: string; /** ARM Id of the vmmServer resource in which this resource resides. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) vmmServerId?: VmmServerId; /** ARM Id of the cloud resource to use for deploying the vm. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) cloudId?: Azure.Core.armResourceIdentifier<[ { type: "Microsoft.ScVmm/clouds"; @@ -757,7 +757,7 @@ model InfrastructureProfile { ]>; /** ARM Id of the template resource to use for deploying the vm. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) templateId?: Azure.Core.armResourceIdentifier<[ { type: "Microsoft.ScVmm/virtualMachineTemplates"; @@ -766,34 +766,34 @@ model InfrastructureProfile { /** VMName is the name of VM on the SCVmm server. */ @minLength(1) - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) vmName?: string; /** Unique ID of the virtual machine. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) uuid?: string; /** Last restored checkpoint in the vm. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @encodedName("application/json", "lastRestoredVMCheckpoint") lastRestoredVmCheckpoint?: Checkpoint; /** Checkpoints in the vm. */ #suppress "@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers" "Workaround for emitter problem" - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", ["checkpointID"]) checkpoints?: Checkpoint[]; /** Type of checkpoint supported for the vm. */ - @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) checkpointType?: string; /** Gets or sets the generation for the vm. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) generation?: int32; /** Gets or sets the bios guid for the vm. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) biosGuid?: string; } @@ -833,7 +833,7 @@ model VmInstanceHybridIdentityMetadataProperties { publicKey?: string; /** Provisioning state of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -861,7 +861,7 @@ model VirtualMachineRestoreCheckpoint { /** Defines the resource properties. */ model GuestAgentProperties { /** Gets a unique identifier for this resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) uuid?: string; /** Username / Password Credentials to provision guest agent. */ @@ -874,15 +874,15 @@ model GuestAgentProperties { provisioningAction?: ProvisioningAction; /** Gets the guest agent status. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: string; /** Gets the name of the corresponding resource in Kubernetes. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) customResourceName?: string; /** Provisioning state of the resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** The resource id of the private link scope this machine is assigned to, if any. */ @@ -900,7 +900,7 @@ model GuestCredential { username: string; /** Gets or sets the password to connect with the guest. */ - @visibility(Lifecycle.Create, Lifecycle.Update) + @visibility(Lifecycle.Create, Lifecycle.Update) @secret password: string; } @@ -935,20 +935,20 @@ model VirtualNetworkInventoryItem extends InventoryItemProperties { /** The Virtual machine template inventory item. */ model VirtualMachineTemplateInventoryItem extends InventoryItemProperties { /** Gets the desired number of vCPUs for the vm. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) cpuCount?: int32; /** MemoryMB is the desired size of a virtual machine's memory, in MB. */ #suppress "@azure-tools/typespec-azure-core/casing-style" "MB is distinct from Mb" - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) memoryMB?: int32; /** Gets the type of the os. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) osType?: OsType; /** Gets os name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) osName?: string; /** They inventory type. */ @@ -958,19 +958,19 @@ model VirtualMachineTemplateInventoryItem extends InventoryItemProperties { /** The Virtual machine inventory item. */ model VirtualMachineInventoryItem extends InventoryItemProperties { /** Gets the type of the os. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) osType?: OsType; /** Gets os name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) osName?: string; /** Gets os version. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) osVersion?: string; /** Gets the power state of the virtual machine. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) powerState?: string; /** Gets or sets the nic ip addresses. */ @@ -980,11 +980,11 @@ model VirtualMachineInventoryItem extends InventoryItemProperties { cloud?: InventoryItemDetails; /** Gets the bios guid. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) biosGuid?: string; /** Gets the tracked resource id corresponding to the inventory resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) managedMachineResourceId?: Azure.Core.armResourceIdentifier<[]>; /** They inventory type. */ diff --git a/specification/servicenetworking/ServiceNetworking.Management/main.tsp b/specification/servicenetworking/ServiceNetworking.Management/main.tsp index 0a4c18fb4dba..1e7ebc8adff3 100644 --- a/specification/servicenetworking/ServiceNetworking.Management/main.tsp +++ b/specification/servicenetworking/ServiceNetworking.Management/main.tsp @@ -38,7 +38,7 @@ using Azure.ResourceManager; model Frontend is TrackedResource { /** Frontends */ @key("frontendName") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path @segment("frontends") @pattern("^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$") @@ -48,11 +48,11 @@ model Frontend is TrackedResource { /** Frontend Properties. */ model FrontendProperties { /** The Fully Qualified Domain Name of the DNS record associated to a Traffic Controller frontend. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) fqdn?: string; /** Provisioning State of Traffic Controller Frontend Resource */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -62,7 +62,7 @@ model FrontendProperties { model Association is TrackedResource { /** Name of Association */ @key("associationName") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path @segment("associations") @pattern("^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$") @@ -104,7 +104,7 @@ model AssociationProperties { subnet?: AssociationSubnet; /** Provisioning State of Traffic Controller Association Resource */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -127,7 +127,7 @@ model AssociationSubnet { model SecurityPolicy is TrackedResource { /** SecurityPolicy */ @key("securityPolicyName") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path @segment("securityPolicies") @pattern("^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$") @@ -137,14 +137,14 @@ model SecurityPolicy is TrackedResource { /** SecurityPolicy Properties. */ model SecurityPolicyProperties { /** Type of the Traffic Controller Security Policy */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) policyType?: PolicyType; /** Web Application Firewall Policy of the Traffic Controller Security Policy */ wafPolicy?: WafPolicy; /** Provisioning State of Traffic Controller SecurityPolicy Resource */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -189,19 +189,19 @@ model TrafficController is TrackedResource { /** Traffic Controller Properties. */ model TrafficControllerProperties { /** Configuration Endpoints. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) configurationEndpoints?: string[]; /** Frontends References List */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) frontends?: ResourceId[]; /** Associations References List */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) associations?: ResourceId[]; /** Security Policies References List */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @added(Versions.v2024_05_01_preview) securityPolicies?: ResourceId[]; @@ -211,7 +211,7 @@ model TrafficControllerProperties { securityPolicyConfigurations?: SecurityPolicyConfigurations; /** The status of the last operation. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/sovereign/Sovereign.Management/landingZoneAccountResourceProperties.tsp b/specification/sovereign/Sovereign.Management/landingZoneAccountResourceProperties.tsp index 7e89115effb0..9bcfba6013bc 100644 --- a/specification/sovereign/Sovereign.Management/landingZoneAccountResourceProperties.tsp +++ b/specification/sovereign/Sovereign.Management/landingZoneAccountResourceProperties.tsp @@ -7,7 +7,7 @@ namespace Microsoft.Sovereign; @added(Versions.Preview20250227) @doc("The properties of landing zone account resource type.") model LandingZoneAccountResourceProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The state that reflects the current stage in the creation, updating, or deletion process of the landing zone account.") provisioningState?: provisioningState; diff --git a/specification/sovereign/Sovereign.Management/landingZoneConfigurationResourceProperties.tsp b/specification/sovereign/Sovereign.Management/landingZoneConfigurationResourceProperties.tsp index ac566cdac538..00d2ed4f758c 100644 --- a/specification/sovereign/Sovereign.Management/landingZoneConfigurationResourceProperties.tsp +++ b/specification/sovereign/Sovereign.Management/landingZoneConfigurationResourceProperties.tsp @@ -7,12 +7,12 @@ namespace Microsoft.Sovereign; @added(Versions.Preview20250227) @doc("The properties of landing zone configuration resource type.") model LandingZoneConfigurationResourceProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The state that reflects the current stage in the creation, updating, or deletion process of the landing zone configuration.") provisioningState?: provisioningState; #suppress "@azure-tools/typespec-providerhub/non-breaking-versioning" "Handled in code." - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status that indicates the current phase of the configuration process for a deployment.") authoringStatus?: AuthoringStatus; diff --git a/specification/sovereign/Sovereign.Management/landingZoneRegistrationResourceProperties.tsp b/specification/sovereign/Sovereign.Management/landingZoneRegistrationResourceProperties.tsp index 09fdc0a98ba1..cb802b2c6a12 100644 --- a/specification/sovereign/Sovereign.Management/landingZoneRegistrationResourceProperties.tsp +++ b/specification/sovereign/Sovereign.Management/landingZoneRegistrationResourceProperties.tsp @@ -7,7 +7,7 @@ namespace Microsoft.Sovereign; @added(Versions.Preview20250227) @doc("The properties of landing zone registration resource type.") model LandingZoneRegistrationResourceProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The state that reflects the current stage in the creation, updating, or deletion process of the landing zone registration resource type.") provisioningState?: provisioningState; diff --git a/specification/sovereign/Sovereign.Management/main.tsp b/specification/sovereign/Sovereign.Management/main.tsp index 395e99a5a9e3..414177d8fefb 100644 --- a/specification/sovereign/Sovereign.Management/main.tsp +++ b/specification/sovereign/Sovereign.Management/main.tsp @@ -36,7 +36,7 @@ model LandingZoneAccountResource @segment("landingZoneAccounts") @key("landingZoneAccountName") @pattern("^[a-zA-Z0-9-]{3,64}$") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @path name: string; @@ -71,7 +71,7 @@ model LandingZoneConfigurationResource @doc("The landing zone configuration name") @segment("landingZoneConfigurations") @key("landingZoneConfigurationName") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @pattern("^[a-zA-Z0-9-]{3,64}$") @path name: string; diff --git a/specification/sphere/Sphere.Management/catalog.tsp b/specification/sphere/Sphere.Management/catalog.tsp index 2eccad994354..1f7f0de780c0 100644 --- a/specification/sphere/Sphere.Management/catalog.tsp +++ b/specification/sphere/Sphere.Management/catalog.tsp @@ -18,7 +18,7 @@ model Catalog is TrackedResource { @path @key("catalogName") @segment("catalogs") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/sphere/Sphere.Management/certificate.tsp b/specification/sphere/Sphere.Management/certificate.tsp index 4974fb23e63e..534e3d5c8cae 100644 --- a/specification/sphere/Sphere.Management/certificate.tsp +++ b/specification/sphere/Sphere.Management/certificate.tsp @@ -19,7 +19,7 @@ model Certificate is ProxyResource { @path @key("serialNumber") @segment("certificates") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/sphere/Sphere.Management/deployment.tsp b/specification/sphere/Sphere.Management/deployment.tsp index ae1d3b0fe925..48378b9bb2fa 100644 --- a/specification/sphere/Sphere.Management/deployment.tsp +++ b/specification/sphere/Sphere.Management/deployment.tsp @@ -15,7 +15,7 @@ model Deployment is ProxyResource { @path @key("deploymentName") @segment("deployments") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/sphere/Sphere.Management/device.tsp b/specification/sphere/Sphere.Management/device.tsp index 6e8b4461e234..fe0bd47c9c8e 100644 --- a/specification/sphere/Sphere.Management/device.tsp +++ b/specification/sphere/Sphere.Management/device.tsp @@ -17,7 +17,7 @@ model Device is ProxyResource { @path @key("deviceName") @segment("devices") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/sphere/Sphere.Management/deviceGroup.tsp b/specification/sphere/Sphere.Management/deviceGroup.tsp index bdd11168343f..a2986b4634ba 100644 --- a/specification/sphere/Sphere.Management/deviceGroup.tsp +++ b/specification/sphere/Sphere.Management/deviceGroup.tsp @@ -19,7 +19,7 @@ model DeviceGroup is ProxyResource { @path @key("deviceGroupName") @segment("deviceGroups") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/sphere/Sphere.Management/image.tsp b/specification/sphere/Sphere.Management/image.tsp index 3a107a5f427a..b5bf20a06605 100644 --- a/specification/sphere/Sphere.Management/image.tsp +++ b/specification/sphere/Sphere.Management/image.tsp @@ -16,7 +16,7 @@ model Image is ProxyResource { @path @key("imageName") @segment("images") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/sphere/Sphere.Management/models.tsp b/specification/sphere/Sphere.Management/models.tsp index 2724e5881b58..795cd2924c78 100644 --- a/specification/sphere/Sphere.Management/models.tsp +++ b/specification/sphere/Sphere.Management/models.tsp @@ -297,13 +297,13 @@ model CatalogProperties { /** * The Azure Sphere tenant ID associated with the catalog. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) tenantId?: string; /** * The status of the last operation. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -314,25 +314,25 @@ model Resource { /** * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; /** * The name of the resource */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name?: string; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) type?: string; /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) systemData?: SystemData; } @@ -354,45 +354,45 @@ model CertificateProperties { /** * The certificate as a UTF-8 encoded base 64 string. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) certificate?: string; /** * The certificate status. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: CertificateStatus; /** * The certificate subject. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) subject?: string; /** * The certificate thumbprint. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) thumbprint?: string; /** * The certificate expiry date. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. expiryUtc?: utcDateTime; /** * The certificate not before date. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. notBeforeUtc?: utcDateTime; /** * The status of the last operation. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -403,7 +403,7 @@ model CertificateChainResponse { /** * The certificate chain. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) certificateChain?: string; } @@ -448,55 +448,55 @@ model ImageProperties { /** * Image as a UTF-8 encoded base 64 string on image create. This field contains the image URI on image reads. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) image?: string; /** * Image ID */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) imageId?: string; /** * Image name */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) imageName?: string; /** * Regional data boundary for an image */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) regionalDataBoundary?: RegionalDataBoundary; /** * Location the image */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) uri?: string; /** * The image description. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) description?: string; /** * The image component id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) componentId?: string; /** * The image type. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) imageType?: ImageType; /** * The status of the last operation. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -507,26 +507,26 @@ model DeploymentProperties { /** * Deployment ID */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) deploymentId?: string; /** * Images deployed */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) deployedImages?: Image[]; /** * Deployment date UTC */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. deploymentDateUtc?: utcDateTime; /** * The status of the last operation. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -572,13 +572,13 @@ model DeviceGroupProperties { /** * Deployment status for the device group. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) hasDeployment?: boolean; /** * The status of the last operation. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -641,45 +641,45 @@ model DeviceProperties { /** * Device ID */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) deviceId?: string; /** * SKU of the chip */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) chipSku?: string; /** * OS version available for installation when update requested */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastAvailableOsVersion?: string; /** * OS version running on device when update requested */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastInstalledOsVersion?: string; /** * Time when update requested and new OS version available */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastOsUpdateUtc?: utcDateTime; /** * Time when update was last requested */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) // FIXME: (utcDateTime) Please double check that this is the correct type for your scenario. lastUpdateRequestUtc?: utcDateTime; /** * The status of the last operation. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -695,7 +695,7 @@ model ProductProperties { /** * The status of the last operation. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } @@ -812,7 +812,7 @@ model SignedCapabilityImageResponse { /** * The signed device capability image as a UTF-8 encoded base 64 string. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) image?: string; } diff --git a/specification/sphere/Sphere.Management/product.tsp b/specification/sphere/Sphere.Management/product.tsp index 19663354240a..d769dbb6bff2 100644 --- a/specification/sphere/Sphere.Management/product.tsp +++ b/specification/sphere/Sphere.Management/product.tsp @@ -23,7 +23,7 @@ model Product is ProxyResource { @path @key("productName") @segment("products") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/splitio/SplitIO.Experimentation.Management/main.tsp b/specification/splitio/SplitIO.Experimentation.Management/main.tsp index bb211f8b91aa..ba9df0f7aa00 100644 --- a/specification/splitio/SplitIO.Experimentation.Management/main.tsp +++ b/specification/splitio/SplitIO.Experimentation.Management/main.tsp @@ -33,7 +33,7 @@ namespace SplitIO.Experimentation { @doc("Properties of the experimentation workspace") model ExperimentationWorkspaceProperties { @doc("Provisioning state of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState; @doc("Access policy for an experimentation workspace.") @@ -53,7 +53,7 @@ namespace SplitIO.Experimentation { defaultRole?: DataPlaneRole; @doc("Endpoint used for access to the experimentation workspace.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) dataPlaneEndpoint?: url; } @@ -145,7 +145,7 @@ namespace SplitIO.Experimentation { @doc("The exchange token result that contains the bearer token which is used for Split.IO data plane authentication.") model ExchangeTokenResult { @doc("The bearer token that is used for Split.IO data plane authentication.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @secret token: string; } diff --git a/specification/standbypool/StandbyPool.Management/standbyContainerGroupPool.tsp b/specification/standbypool/StandbyPool.Management/standbyContainerGroupPool.tsp index d327e40e0000..df62633c2abb 100644 --- a/specification/standbypool/StandbyPool.Management/standbyContainerGroupPool.tsp +++ b/specification/standbypool/StandbyPool.Management/standbyContainerGroupPool.tsp @@ -26,7 +26,7 @@ model StandbyContainerGroupPoolResource @pattern("^[a-zA-Z0-9-]{3,24}$") @key("standbyContainerGroupPoolName") @segment("standbyContainerGroupPools") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Name of the standby container group pool") @path name: string; @@ -42,7 +42,7 @@ model StandbyContainerGroupPoolResourceProperties { containerGroupProperties: ContainerGroupProperties; @doc("The status of the last operation.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/standbypool/StandbyPool.Management/standbyContainerGroupPoolRuntimeView.tsp b/specification/standbypool/StandbyPool.Management/standbyContainerGroupPoolRuntimeView.tsp index ab0cbf7d2408..559d7b862fe5 100644 --- a/specification/standbypool/StandbyPool.Management/standbyContainerGroupPoolRuntimeView.tsp +++ b/specification/standbypool/StandbyPool.Management/standbyContainerGroupPoolRuntimeView.tsp @@ -28,7 +28,7 @@ model StandbyContainerGroupPoolRuntimeViewResource @pattern("^[a-zA-Z0-9-]{0,24}$") @key("runtimeView") @segment("runtimeViews") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.") @path name: string; @@ -38,12 +38,12 @@ model StandbyContainerGroupPoolRuntimeViewResource @added(Microsoft.StandbyPool.Versions.`2024-03-01-preview`) model StandbyContainerGroupPoolRuntimeViewResourceProperties { @doc("A list containing the counts of container groups in each possible state, as known by the StandbyPool resource provider.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", []) instanceCountSummary: ContainerGroupInstanceCountSummary[]; @doc("Displays the provisioning state of the standby pool") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/standbypool/StandbyPool.Management/standbyVM.tsp b/specification/standbypool/StandbyPool.Management/standbyVM.tsp index 1f7f86c3452d..94ba7dbdc880 100644 --- a/specification/standbypool/StandbyPool.Management/standbyVM.tsp +++ b/specification/standbypool/StandbyPool.Management/standbyVM.tsp @@ -26,7 +26,7 @@ model StandbyVirtualMachineResource @pattern("^[_a-zA-Z0-9-]{3,64}$") @key("standbyVirtualMachineName") @segment("standbyVirtualMachines") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Name of the standby virtual machine") @path name: string; @@ -38,7 +38,7 @@ model StandbyVirtualMachineResourceProperties { virtualMachineResourceId: Azure.Core.armResourceIdentifier<[]>; @doc("The status of the last operation.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/standbypool/StandbyPool.Management/standbyVMPool.tsp b/specification/standbypool/StandbyPool.Management/standbyVMPool.tsp index 8e984cc7dc85..59fa8430d517 100644 --- a/specification/standbypool/StandbyPool.Management/standbyVMPool.tsp +++ b/specification/standbypool/StandbyPool.Management/standbyVMPool.tsp @@ -25,7 +25,7 @@ model StandbyVirtualMachinePoolResource @pattern("^[a-zA-Z0-9-]{3,24}$") @key("standbyVirtualMachinePoolName") @segment("standbyVirtualMachinePools") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("Name of the standby virtual machine pool") @path name: string; @@ -50,7 +50,7 @@ model StandbyVirtualMachinePoolResourceProperties { ]>; @doc("The status of the last operation.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/standbypool/StandbyPool.Management/standbyVirtualMachinePoolRuntimeView.tsp b/specification/standbypool/StandbyPool.Management/standbyVirtualMachinePoolRuntimeView.tsp index 21b6ba85a07e..f7a69d2c1bdf 100644 --- a/specification/standbypool/StandbyPool.Management/standbyVirtualMachinePoolRuntimeView.tsp +++ b/specification/standbypool/StandbyPool.Management/standbyVirtualMachinePoolRuntimeView.tsp @@ -28,7 +28,7 @@ model StandbyVirtualMachinePoolRuntimeViewResource @pattern("^[a-zA-Z0-9-]{0,24}$") @key("runtimeView") @segment("runtimeViews") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The unique identifier for the runtime view. The input string should be the word 'latest', which will get the latest runtime view of the pool, otherwise the request will fail with NotFound exception.") @path name: string; @@ -38,12 +38,12 @@ model StandbyVirtualMachinePoolRuntimeViewResource @added(Microsoft.StandbyPool.Versions.`2024-03-01-preview`) model StandbyVirtualMachinePoolRuntimeViewResourceProperties { @doc("A list containing the counts of virtual machines in each possible power state for each zone if enabled, as known by the StandbyPool resource provider. If zones are not enabled on the attached VMSS, the list will contain a single entry without zone values. Note: any resources in the Running state may still be installing extensions / not fully provisioned.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", []) instanceCountSummary: VirtualMachineInstanceCountSummary[]; @doc("Displays the provisioning state of the standby pool") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; } diff --git a/specification/translation/Azure.AI.DocumentTranslation/models.tsp b/specification/translation/Azure.AI.DocumentTranslation/models.tsp index c4391ca93b5b..2d4843ff82fb 100644 --- a/specification/translation/Azure.AI.DocumentTranslation/models.tsp +++ b/specification/translation/Azure.AI.DocumentTranslation/models.tsp @@ -274,7 +274,7 @@ model TranslationError { For example it would be \"documents\" or \"document id\" in case of invalid document. """) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) target?: string; @doc(""" @@ -308,7 +308,7 @@ model InnerTranslationError { For example it would be \"documents\" or \"document id\" in case of invalid document. """) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) target?: string; @doc(""" diff --git a/specification/trustedsigning/TrustedSigning/main.tsp b/specification/trustedsigning/TrustedSigning/main.tsp index 3cbe7486ed6d..5c11801ac7f7 100644 --- a/specification/trustedsigning/TrustedSigning/main.tsp +++ b/specification/trustedsigning/TrustedSigning/main.tsp @@ -114,7 +114,7 @@ union SignatureAlgorithm { @resource("codesigningaccounts") model SigningAccount { @key("accountName") - @visibility(Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Update) @doc("Azure Trusted Signing account name.") accountName: string; } @@ -124,7 +124,7 @@ model SigningAccount { @parentResource(SigningAccount) model CertificateProfileName { @key("certificateProfile") - @visibility(Lifecycle.Read, Lifecycle.Update) + @visibility(Lifecycle.Read, Lifecycle.Update) @doc("Azure Trusted Signing certificate profile name under an account.") certificateProfile: string; } @@ -172,7 +172,7 @@ model SigningOptions { @parentResource(CertificateProfileName) model ExtendedKeyUsage { @key("eku") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("An oid string that represents an eku.") eku: string; } diff --git a/specification/verifiedid/Microsoft.VerifiedId.Management/main.tsp b/specification/verifiedid/Microsoft.VerifiedId.Management/main.tsp index 1cdf39012669..f0cd93662d0f 100644 --- a/specification/verifiedid/Microsoft.VerifiedId.Management/main.tsp +++ b/specification/verifiedid/Microsoft.VerifiedId.Management/main.tsp @@ -63,7 +63,7 @@ union ProvisioningState { @doc("Details of the VerifiedId Authority.") model AuthorityProperties { - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @doc("The status of the last operation.") provisioningState?: ProvisioningState; } diff --git a/specification/vmware/Microsoft.AVS.Management/addons.tsp b/specification/vmware/Microsoft.AVS.Management/addons.tsp index c0ce269850b2..ac24ec2bdefa 100644 --- a/specification/vmware/Microsoft.AVS.Management/addons.tsp +++ b/specification/vmware/Microsoft.AVS.Management/addons.tsp @@ -77,7 +77,7 @@ model AddonProperties { addonType: AddonType; @doc("The state of the addon provisioning") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: AddonProvisioningState; } diff --git a/specification/vmware/Microsoft.AVS.Management/authorizations.tsp b/specification/vmware/Microsoft.AVS.Management/authorizations.tsp index 7a27192363ae..53a6e0095498 100644 --- a/specification/vmware/Microsoft.AVS.Management/authorizations.tsp +++ b/specification/vmware/Microsoft.AVS.Management/authorizations.tsp @@ -59,15 +59,15 @@ model ExpressRouteAuthorization @doc("The properties of an ExpressRoute Circuit Authorization resource") model ExpressRouteAuthorizationProperties { @doc("The state of the ExpressRoute Circuit Authorization provisioning") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ExpressRouteAuthorizationProvisioningState; @doc("The ID of the ExpressRoute Circuit Authorization") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) expressRouteAuthorizationId?: string; @doc("The key of the ExpressRoute Circuit Authorization") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) expressRouteAuthorizationKey?: string; @doc("The ID of the ExpressRoute Circuit") diff --git a/specification/vmware/Microsoft.AVS.Management/cloudLinks.tsp b/specification/vmware/Microsoft.AVS.Management/cloudLinks.tsp index 959f6e46f0b8..9b6d02c890ae 100644 --- a/specification/vmware/Microsoft.AVS.Management/cloudLinks.tsp +++ b/specification/vmware/Microsoft.AVS.Management/cloudLinks.tsp @@ -72,11 +72,11 @@ union CloudLinkProvisioningState { @doc("The properties of a cloud link.") model CloudLinkProperties { @doc("The provisioning state of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: CloudLinkProvisioningState; @doc("The state of the cloud link.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: CloudLinkStatus; @doc("Identifier of the other private cloud participating in the link.") diff --git a/specification/vmware/Microsoft.AVS.Management/clusters.tsp b/specification/vmware/Microsoft.AVS.Management/clusters.tsp index 75d6fd7ece6f..f73424f79c11 100644 --- a/specification/vmware/Microsoft.AVS.Management/clusters.tsp +++ b/specification/vmware/Microsoft.AVS.Management/clusters.tsp @@ -87,11 +87,11 @@ model CommonClusterProperties { clusterSize?: int32; @doc("The state of the cluster provisioning") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ClusterProvisioningState; @doc("The identity") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) clusterId?: int32; @doc("The hosts") @@ -148,10 +148,10 @@ model ClusterZoneList { @doc("Zone and associated hosts info") model ClusterZone { @doc("List of hosts belonging to the availability zone in a cluster") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) hosts?: string[]; @doc("Availability zone identifier") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) zone?: string; } diff --git a/specification/vmware/Microsoft.AVS.Management/datastores.tsp b/specification/vmware/Microsoft.AVS.Management/datastores.tsp index 14e8eb50ae36..de82bf1c9ad0 100644 --- a/specification/vmware/Microsoft.AVS.Management/datastores.tsp +++ b/specification/vmware/Microsoft.AVS.Management/datastores.tsp @@ -104,7 +104,7 @@ model Datastore is ProxyResource { @doc("The properties of a datastore") model DatastoreProperties { @doc("The state of the datastore provisioning") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: DatastoreProvisioningState; @doc("An Azure NetApp Files volume") @@ -117,7 +117,7 @@ model DatastoreProperties { elasticSanVolume?: ElasticSanVolume; @doc("The operational status of the datastore") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: DatastoreStatus; } @@ -142,7 +142,7 @@ model DiskPoolVolume { mountOption?: MountOptionEnum = MountOptionEnum.MOUNT; @doc("Device path") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) path?: string; } diff --git a/specification/vmware/Microsoft.AVS.Management/globalReachConnections.tsp b/specification/vmware/Microsoft.AVS.Management/globalReachConnections.tsp index 1ce7ca307eda..0c0af43e620c 100644 --- a/specification/vmware/Microsoft.AVS.Management/globalReachConnections.tsp +++ b/specification/vmware/Microsoft.AVS.Management/globalReachConnections.tsp @@ -71,14 +71,14 @@ model GlobalReachConnection is ProxyResource { @doc("The properties of a global reach connection") model GlobalReachConnectionProperties { @doc("The state of the ExpressRoute Circuit Authorization provisioning") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: GlobalReachConnectionProvisioningState; @doc(""" The network used for global reach carved out from the original network block provided for the private cloud """) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) addressPrefix?: string; @doc(""" @@ -88,7 +88,7 @@ model GlobalReachConnectionProperties { authorizationKey?: string; @doc("The connection status of the global reach connection") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) circuitConnectionStatus?: GlobalReachConnectionStatus; @doc(""" diff --git a/specification/vmware/Microsoft.AVS.Management/hcxEnterpriseSites.tsp b/specification/vmware/Microsoft.AVS.Management/hcxEnterpriseSites.tsp index 66e23451af31..9f21105e563b 100644 --- a/specification/vmware/Microsoft.AVS.Management/hcxEnterpriseSites.tsp +++ b/specification/vmware/Microsoft.AVS.Management/hcxEnterpriseSites.tsp @@ -64,14 +64,14 @@ union HcxEnterpriseSiteProvisioningState { @doc("The properties of an HCX Enterprise Site") model HcxEnterpriseSiteProperties { @doc("The provisioning state of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: HcxEnterpriseSiteProvisioningState; @doc("The activation key") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) activationKey?: string; @doc("The status of the HCX Enterprise Site") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: HcxEnterpriseSiteStatus; } diff --git a/specification/vmware/Microsoft.AVS.Management/iscsiPaths.tsp b/specification/vmware/Microsoft.AVS.Management/iscsiPaths.tsp index fbdb1be53e8d..1273e3c0aa47 100644 --- a/specification/vmware/Microsoft.AVS.Management/iscsiPaths.tsp +++ b/specification/vmware/Microsoft.AVS.Management/iscsiPaths.tsp @@ -40,11 +40,11 @@ model IscsiPath is ProxyResource { @doc("The properties of an iSCSI path resource") model IscsiPathProperties { @doc("The state of the iSCSI path provisioning") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: IscsiPathProvisioningState; @doc("CIDR Block for iSCSI path.") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) networkBlock: string; } diff --git a/specification/vmware/Microsoft.AVS.Management/locations.tsp b/specification/vmware/Microsoft.AVS.Management/locations.tsp index 5bb921b8ea4e..219b12185538 100644 --- a/specification/vmware/Microsoft.AVS.Management/locations.tsp +++ b/specification/vmware/Microsoft.AVS.Management/locations.tsp @@ -55,11 +55,11 @@ union QuotaEnabled { @doc("Subscription trial availability") model Trial { @doc("Trial status") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: TrialStatus; @doc("Number of trial hosts available") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) availableHosts?: int32; } @@ -67,11 +67,11 @@ model Trial { model Quota { #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "existing API" @doc("Remaining hosts quota by sku type") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) hostsRemaining?: Record; @doc("Host quota is active for current subscription") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) quotaEnabled?: QuotaEnabled; } @@ -100,6 +100,6 @@ union LocationProvisioningState { @doc("The properties of a location resource") model LocationProperties { @doc("The provisioning state of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: LocationProvisioningState; } diff --git a/specification/vmware/Microsoft.AVS.Management/placementPolicies.tsp b/specification/vmware/Microsoft.AVS.Management/placementPolicies.tsp index b84a30bca590..fcc1c9f9f5e2 100644 --- a/specification/vmware/Microsoft.AVS.Management/placementPolicies.tsp +++ b/specification/vmware/Microsoft.AVS.Management/placementPolicies.tsp @@ -149,7 +149,7 @@ model PlacementPolicyProperties { displayName?: string; @doc("The provisioning state") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: PlacementPolicyProvisioningState; } diff --git a/specification/vmware/Microsoft.AVS.Management/privateClouds.tsp b/specification/vmware/Microsoft.AVS.Management/privateClouds.tsp index 876df1516410..abb03c7e6326 100644 --- a/specification/vmware/Microsoft.AVS.Management/privateClouds.tsp +++ b/specification/vmware/Microsoft.AVS.Management/privateClouds.tsp @@ -227,7 +227,7 @@ model PrivateCloudUpdateProperties { identitySources?: IdentitySource[]; @doc("Properties describing how the cloud is distributed across availability zones") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) availability?: AvailabilityProperties; @doc("Customer managed key encryption, can be enabled or disabled") @@ -258,7 +258,7 @@ model PrivateCloudProperties { identitySources?: IdentitySource[]; @doc("Properties describing how the cloud is distributed across availability zones") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) availability?: AvailabilityProperties; @doc("Customer managed key encryption, can be enabled or disabled") @@ -273,14 +273,14 @@ model PrivateCloudProperties { extendedNetworkBlocks?: string[]; @doc("The provisioning state") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: PrivateCloudProvisioningState; @doc("An ExpressRoute Circuit") circuit?: Circuit; @doc("The endpoints") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) endpoints?: Endpoints; @doc(""" @@ -291,15 +291,15 @@ model PrivateCloudProperties { networkBlock: string; @doc("Network used to access vCenter Server and NSX-T Manager") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) managementNetwork?: string; @doc("Used for virtual machine cold migration, cloning, and snapshot migration") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningNetwork?: string; @doc("Used for live migration of virtual machines") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) vmotionNetwork?: string; @doc("Optionally, set the vCenter admin password when the private cloud is created") @@ -311,15 +311,15 @@ model PrivateCloudProperties { nsxtPassword?: string; @doc("Thumbprint of the vCenter Server SSL certificate") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) vcenterCertificateThumbprint?: string; @doc("Thumbprint of the NSX-T Manager SSL certificate") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nsxtCertificateThumbprint?: string; @doc("Array of cloud link IDs from other clouds that connect to this one") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) externalCloudLinks?: string[]; @doc(""" @@ -332,11 +332,11 @@ model PrivateCloudProperties { Flag to indicate whether the private cloud has the quota for provisioned NSX Public IP count raised from 64 to 1024 """) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nsxPublicIpQuotaRaised?: NsxPublicIpQuotaRaisedEnum; @doc("Azure resource ID of the virtual network") - @visibility(Lifecycle.Create, Lifecycle.Read) + @visibility(Lifecycle.Create, Lifecycle.Read) virtualNetworkId?: Azure.Core.armResourceIdentifier<[ { type: "\\Microsoft.Network\\vnet"; @@ -350,48 +350,48 @@ model PrivateCloudProperties { @doc("An ExpressRoute Circuit") model Circuit { @doc("CIDR of primary subnet") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) primarySubnet?: string; @doc("CIDR of secondary subnet") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) secondarySubnet?: string; #suppress "@azure-tools/typespec-azure-core/casing-style" "Can not change existing name." @doc("Identifier of the ExpressRoute Circuit (Microsoft Colo only)") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) expressRouteID?: string; #suppress "@azure-tools/typespec-azure-core/casing-style" "Can not change existing name." @doc("ExpressRoute Circuit private peering identifier") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) expressRoutePrivatePeeringID?: string; } @doc("Endpoint addresses") model Endpoints { @doc("Endpoint FQDN for the NSX-T Data Center manager") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nsxtManager?: string; @doc("Endpoint FQDN for Virtual Center Server Appliance") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) vcsa?: string; @doc("Endpoint FQDN for the HCX Cloud Manager") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) hcxCloudManager?: string; @doc("Endpoint IP for the NSX-T Data Center manager") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nsxtManagerIp?: string; @doc("Endpoint IP for Virtual Center Server Appliance") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) vcenterIp?: string; @doc("Endpoint IP for the HCX Cloud Manager") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) hcxCloudManagerIp?: string; } @@ -472,38 +472,38 @@ model EncryptionKeyVaultProperties { keyVersion?: string; @doc("The auto-detected version of the key if versionType is auto-detected.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) autoDetectedKeyVersion?: string; @doc("The URL of the vault.") keyVaultUrl?: string; @doc("The state of key provided") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) keyState?: EncryptionKeyStatus; @doc("Property of the key if user provided or auto detected") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) versionType?: EncryptionVersionType; } @doc("Administrative credentials for accessing vCenter and NSX-T") model AdminCredentials { @doc("NSX-T Manager username") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) nsxtUsername?: string; @doc("NSX-T Manager password") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @secret nsxtPassword?: string; @doc("vCenter admin username") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) vcenterUsername?: string; @doc("vCenter admin password") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @secret vcenterPassword?: string; } diff --git a/specification/vmware/Microsoft.AVS.Management/scriptCmdlets.tsp b/specification/vmware/Microsoft.AVS.Management/scriptCmdlets.tsp index 1055bf2318e1..4fcef34436df 100644 --- a/specification/vmware/Microsoft.AVS.Management/scriptCmdlets.tsp +++ b/specification/vmware/Microsoft.AVS.Management/scriptCmdlets.tsp @@ -84,24 +84,24 @@ union ScriptCmdletProvisioningState { @doc("Properties of a pre-canned script") model ScriptCmdletProperties { @doc("The provisioning state of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ScriptCmdletProvisioningState; @doc("Description of the scripts functionality") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) description?: string; @doc("Recommended time limit for execution") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) timeout?: string; @doc("Specifies whether a script cmdlet is intended to be invoked only through automation or visible to customers") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) audience?: ScriptCmdletAudience; #suppress "@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers" @doc("Parameters the script will accept") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) parameters?: ScriptParameter[]; } @@ -122,24 +122,24 @@ model ScriptParameter { The type of parameter the script is expecting. psCredential is a PSCredentialObject """) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) type?: ScriptParameterTypes; @doc("The parameter name that the script will expect a parameter value for") name?: string; @doc("User friendly description of the parameter") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) description?: string; @doc(""" Should this parameter be visible to arm and passed in the parameters argument when executing """) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) visibility?: VisibilityParameterEnum; @doc("Is this parameter required or optional") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) optional?: OptionalParamEnum; } diff --git a/specification/vmware/Microsoft.AVS.Management/scriptExecutions.tsp b/specification/vmware/Microsoft.AVS.Management/scriptExecutions.tsp index 9a36513f3783..63408f5e83be 100644 --- a/specification/vmware/Microsoft.AVS.Management/scriptExecutions.tsp +++ b/specification/vmware/Microsoft.AVS.Management/scriptExecutions.tsp @@ -125,19 +125,19 @@ model ScriptExecutionProperties { retention?: string; @doc("Time the script execution was submitted") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) submittedAt?: utcDateTime; @doc("Time the script execution was started") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) startedAt?: utcDateTime; @doc("Time the script execution was finished") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) finishedAt?: utcDateTime; @doc("The state of the script execution resource") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ScriptExecutionProvisioningState; @doc("Standard output stream from the powershell execution") @@ -150,15 +150,15 @@ model ScriptExecutionProperties { namedOutputs?: Record<{}>; @doc("Standard information out stream from the powershell execution") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) information?: string[]; @doc("Standard warning out stream from the powershell execution") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) warnings?: string[]; @doc("Standard error output stream from the powershell execution") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errors?: string[]; } diff --git a/specification/vmware/Microsoft.AVS.Management/scriptPackages.tsp b/specification/vmware/Microsoft.AVS.Management/scriptPackages.tsp index 646f23d2c788..48c087d63a16 100644 --- a/specification/vmware/Microsoft.AVS.Management/scriptPackages.tsp +++ b/specification/vmware/Microsoft.AVS.Management/scriptPackages.tsp @@ -39,22 +39,22 @@ union ScriptPackageProvisioningState { @doc("Properties of a Script Package subresource") model ScriptPackageProperties { @doc("The provisioning state of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ScriptPackageProvisioningState; @doc("User friendly description of the package") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) description?: string; @doc("Module version") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) version?: string; @doc("Company that created and supports the package") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) company?: string; @doc("Link to support by the package vendor") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) uri?: string; } diff --git a/specification/vmware/Microsoft.AVS.Management/virtualMachines.tsp b/specification/vmware/Microsoft.AVS.Management/virtualMachines.tsp index 9a259bffe0e7..a5bc43810e41 100644 --- a/specification/vmware/Microsoft.AVS.Management/virtualMachines.tsp +++ b/specification/vmware/Microsoft.AVS.Management/virtualMachines.tsp @@ -64,23 +64,23 @@ union VirtualMachineProvisioningState { @doc("Virtual Machine Properties") model VirtualMachineProperties { @doc("The provisioning state of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: VirtualMachineProvisioningState; @doc("Display name of the VM.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) displayName?: string; @doc("Virtual machine managed object reference id") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) moRefId?: string; @doc("Path to virtual machine's folder starting from datacenter virtual machine folder") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) folderPath?: string; @doc("Whether VM DRS-driven movement is restricted (enabled) or not (disabled)") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) restrictMovement?: VirtualMachineRestrictMovementState; } diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dhcpConfigurations.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dhcpConfigurations.tsp index 8ebf4bb692c3..74f6f72007ac 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dhcpConfigurations.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dhcpConfigurations.tsp @@ -107,11 +107,11 @@ model WorkloadNetworkDhcpEntity { displayName?: string; @doc("NSX Segments consuming DHCP.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) segments?: string[]; @doc("The provisioning state") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: WorkloadNetworkDhcpProvisioningState; @doc("NSX revision number.") diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsServices.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsServices.tsp index cad8de5c2eca..a3c952ef8fcb 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsServices.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsServices.tsp @@ -151,11 +151,11 @@ model WorkloadNetworkDnsServiceProperties { logLevel?: DnsServiceLogLevelEnum; @doc("DNS Service status.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: DnsServiceStatusEnum; @doc("The provisioning state") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: WorkloadNetworkDnsServiceProvisioningState; @doc("NSX revision number.") diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsZones.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsZones.tsp index 3f9ed7b466a1..ca9875dd2f10 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsZones.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsZones.tsp @@ -114,7 +114,7 @@ model WorkloadNetworkDnsZoneProperties { dnsServices?: int64; @doc("The provisioning state") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: WorkloadNetworkDnsZoneProvisioningState; @doc("NSX revision number.") diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-gateways.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-gateways.tsp index 48a630a867b7..7cfa3f1748aa 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-gateways.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-gateways.tsp @@ -36,13 +36,13 @@ model WorkloadNetworkGateway @doc("Properties of a NSX Gateway.") model WorkloadNetworkGatewayProperties { @doc("The provisioning state of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: WorkloadNetworkProvisioningState; @doc("Display name of the DHCP entity.") displayName?: string; @doc("NSX Gateway Path.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) path?: string; } diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-portMirroringProfiles.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-portMirroringProfiles.tsp index 33cf2e508973..17d62da98daa 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-portMirroringProfiles.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-portMirroringProfiles.tsp @@ -139,11 +139,11 @@ model WorkloadNetworkPortMirroringProperties { destination?: string; @doc("Port Mirroring Status.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: PortMirroringStatusEnum; @doc("The provisioning state") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: WorkloadNetworkPortMirroringProvisioningState; @doc("NSX revision number.") diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-publicIPs.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-publicIPs.tsp index 352d8a6ff10b..17f926830489 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-publicIPs.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-publicIPs.tsp @@ -99,10 +99,10 @@ model WorkloadNetworkPublicIPProperties { numberOfPublicIPs?: int64; @doc("CIDR Block of the Public IP Block.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) publicIPBlock?: string; @doc("The provisioning state") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: WorkloadNetworkPublicIPProvisioningState; } diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-segments.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-segments.tsp index ef0256c4c16a..c4ebb4869601 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-segments.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-segments.tsp @@ -91,15 +91,15 @@ model WorkloadNetworkSegmentProperties { #suppress "@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers" @doc("Port Vif which segment is associated with.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) portVif?: WorkloadNetworkSegmentPortVif[]; @doc("Segment status.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: SegmentStatusEnum; @doc("The provisioning state") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: WorkloadNetworkSegmentProvisioningState; @doc("NSX revision number.") diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-virtualMachines.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-virtualMachines.tsp index 237439b6c8fa..263f23987871 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-virtualMachines.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-virtualMachines.tsp @@ -39,14 +39,14 @@ model WorkloadNetworkVirtualMachine @doc("NSX Virtual Machine Properties") model WorkloadNetworkVirtualMachineProperties { @doc("The provisioning state of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: WorkloadNetworkProvisioningState; @doc("Display name of the VM.") displayName?: string; @doc("Virtual machine type.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) vmType?: VMTypeEnum; } diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-vmGroups.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-vmGroups.tsp index b12abc10f6e2..7c4cb40b2172 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-vmGroups.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-vmGroups.tsp @@ -118,11 +118,11 @@ model WorkloadNetworkVMGroupProperties { members?: string[]; @doc("VM Group status.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: VMGroupStatusEnum; @doc("The provisioning state") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: WorkloadNetworkVMGroupProvisioningState; @doc("NSX revision number.") diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks.tsp index f3a326a00f8f..9beaf3a20437 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks.tsp @@ -51,6 +51,6 @@ union WorkloadNetworkProvisioningState { @doc("The properties of a workload network") model WorkloadNetworkProperties { @doc("The provisioning state of the resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: WorkloadNetworkProvisioningState; } diff --git a/specification/voiceservices/VoiceServices.Provisioning/main.tsp b/specification/voiceservices/VoiceServices.Provisioning/main.tsp index c0a689fcdf57..f55b2a0efac5 100644 --- a/specification/voiceservices/VoiceServices.Provisioning/main.tsp +++ b/specification/voiceservices/VoiceServices.Provisioning/main.tsp @@ -63,11 +63,11 @@ union ServiceProvisioningStatus { alias ProvisioningStatus = { @doc("The status of the provisioning action associated with this resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) serviceProvisioningStatus?: ServiceProvisioningStatus; @doc("Any errors pertaining to the provisioning of this resource.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) serviceProvisioningErrors?: Azure.Core.Foundations.Error[]; }; @@ -77,14 +77,14 @@ model NumberIdentifier { @minLength(3) @maxLength(16) @pattern("^\\+[1-9]\\d+$") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) telephoneNumber: string; } @doc("A list identifiers for a Number resource.") model NumberIdentifiers { @doc("Array containing a list of identifiers for Number resources.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) numbers: NumberIdentifier[]; } @@ -95,19 +95,19 @@ model NumberIdentifiers { alias ServiceSyncEnabled = { @doc("Boolean indicating if data is being provisioned through the backend service.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) syncEnabled: boolean; }; alias ServiceEnabled = { @doc("Boolean indicating if the service is enabled on this Account.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) enabled: boolean; }; alias ServiceNumberCount = { @doc("The count of telephone numbers associated with this account that have this backend service enabled.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) numberCount?: int64; }; @@ -124,14 +124,14 @@ model TeamsDirectRoutingSubdomainTokens { @minLength(1) @maxLength(100) @pattern("^([A-Za-z0-9=_-]+)$") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) region1Token: string; @doc("DNS TXT value for the second region, as provided by the enterprise admin from their Microsoft 365 Admin Center. Can only contain letters, numbers, underscores and dashes. Can be up to 100 characters in length.") @minLength(1) @maxLength(100) @pattern("^([A-Za-z0-9=_-]+)$") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) region2Token: string; } @@ -152,18 +152,18 @@ union TeamsDirectRoutingSubdomainProvisioningStatus { @doc("Configuration specific to Teams Direct Routing.") model TeamsDirectRoutingAccountConfig { @doc("Enables/disables caller ID screening for the account. Caller ID screening is enabled by default.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) callScreening: boolean; @doc("Enterprise-specific domain name label. Can only contain letters, numbers, underscores and dashes. Can be up to 10 characters in length.") @minLength(1) @maxLength(10) @pattern("^([A-Za-z0-9_-]+)$") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) subdomain: string; @doc("DNS TXT value for the Direct Routing regions, as provided by the customer from their Microsoft 365 Admin Center.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) subdomainTokens: TeamsDirectRoutingSubdomainTokens; } @@ -174,11 +174,11 @@ model TeamsDirectRoutingAccountDetails { ...ServiceNumberCount; @doc("The configuration for Teams Direct Routing on this account.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) configuration?: TeamsDirectRoutingAccountConfig; @doc("The provisioning status of the domains.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) subdomainStatus: TeamsDirectRoutingSubdomainProvisioningStatus; } @@ -205,27 +205,27 @@ model AzureOperatorCallProtectionAccountDetails { @doc("Details of the backend services associated with this Account.") model AccountServiceDetails { @doc("The Microsoft Teams Tenant ID of the Account. This can only be updated if no Operator Connect or Teams Phone Mobile numbers are configured in this account.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) teamsTenantId?: string; @doc("Details for the Teams Operator Connect service on this Account.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) teamsOperatorConnect?: TeamsOperatorConnectAccountDetails; @doc("Details for the Teams Direct Routing service on this Account.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) teamsDirectRouting?: TeamsDirectRoutingAccountDetails; @doc("Details for the Teams Phone Mobile service on this Account.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) teamsPhoneMobile?: TeamsPhoneMobileAccountDetails; @doc("Details for the Zoom Phone Cloud Peering service on this Account.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) zoomPhoneCloudPeering?: ZoomPhoneCloudPeeringAccountDetails; @doc("Details for the Azure Operator Call Protection service on this Account.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) azureOperatorCallProtection?: AzureOperatorCallProtectionAccountDetails; } @@ -238,16 +238,16 @@ model AccountResource { @minLength(1) @maxLength(100) @pattern("^([A-Za-z0-9_-]+)$") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) @key("accountName") name: string; @doc("A user defined identifier used for correlating with external systems.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) correlationId?: string; @doc("The details of the account.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) serviceDetails?: AccountServiceDetails; } @@ -259,41 +259,41 @@ model AccountResource { @doc("The Teams capabilities available for numbers with Operator Connect or Teams Phone Mobile services enabled.") model TeamsAvailableCapabilities { @doc("The available capabilities for the numbers specified with Operator Connect or Teams Phone Mobile services enabled.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) availableCapabilities: string[]; } @doc("A teams capability plan for a given usage.") model TeamsCapabilityPlan { @doc("The capability plan name.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; @doc("The offer types available.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) offerTypes?: string[]; @doc("The telephone number usage.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) usage: string; @doc("Mandatory capabilities for telephone numbers.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) mandatoryCapabilities?: string[]; @doc("Choosable capabilities for telephone numbers.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) choosableCapabilities?: string[]; @doc("Boolean indicating if Toll free is supported.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) supportsTollFree: boolean; } @doc("The Teams telephone number upload usages for this account.") model TeamsCapabilityPlans { @doc("A list of telephone number upload usages.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) capabilityPlans: TeamsCapabilityPlan[]; } @@ -317,28 +317,28 @@ union ValidationStatus { model Location { @minLength(1) @doc("The ID of the location.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: string; @minLength(1) @doc("The civic address ID of the location.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) civicAddressId: string; @doc("The description of the location.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) description?: string; @doc("The additional information of the location.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) additionalInfo?: string; @doc("Flag indicating whether the location is default or not.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) isDefault?: boolean; @doc("The elin (Emergency Location Identification Number) of the location.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) elin?: string; } @@ -349,96 +349,96 @@ model TeamsCivicAddressResource { @minLength(1) @doc("The ID of the civic address.") @key("civicAddressId") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id: string; @doc("The country of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) country?: string; @doc("The house number of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) houseNumber?: string; @doc("The house number suffix of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) houseNumberSuffix?: string; @doc("The pre directional of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) preDirectional?: string; @doc("The street name of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) streetName?: string; @doc("The street suffix of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) streetSuffix?: string; @doc("The post directional of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) postDirectional?: string; @doc("The state or province of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) stateOrProvince?: string; @doc("The county or district of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) countyOrDistrict?: string; @doc("The city or town of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) cityOrTown?: string; @doc("The city or town alias of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) cityOrTownAlias?: string; @doc("The postal or zip code of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) postalOrZipCode?: string; @doc("The description of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) description?: string; @doc("The company name of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) companyName?: string; @doc("The company ID of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) companyId?: string; @minLength(1) @doc("The default location ID of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) defaultLocationId: string; @doc("The validation status of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) validationStatus?: ValidationStatus; @doc("The customer tenant ID of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) tenantId?: string; @doc("The partner ID of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) partnerId?: string; @doc("The list of locations associated with the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) locations?: Location[]; @doc("The latitude of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) latitude?: string; @doc("The longitude of the civic address.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) longitude?: string; } @@ -460,52 +460,52 @@ union TelephoneNumberAssignmentStatus { alias NumberAssignmentStatus = { @doc("The assignment status of this Number.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) assignmentStatus?: TelephoneNumberAssignmentStatus; }; @doc("Telephone number configuration for Teams Operator Connect and Teams Phone Mobile telephone numbers.") model TeamsCommonNumberConfig { @doc("The usage for this telephone number.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) usage: string; @doc("The choosable capabilities for this telephone number.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) choosableCapabilities: string[]; @doc("The acquired capabilities for this telephone number.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) acquiredCapabilities?: string[]; @doc("The available capabilities for this telephone number.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) availableCapabilities?: string[]; @doc("The additional usages for this telephone number.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) additionalUsages?: string[]; @doc("The ID of the civic address to be used as the emergency address for this telephone number.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) civicAddressId?: string; @doc("The ID of the location to be used as the emergency address for this telephone number.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) locationId?: string; @doc("If the enterprise is allowed to update the address for this telephone number.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) allowTenantAddressUpdate?: boolean = false; @doc("The country code to be displayed with this telephone number") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) displayedCountryCode?: string; } alias NumberServiceEnabled = { @doc("Boolean indicating if the service is enabled on this Number.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) enabled: boolean; }; @@ -520,7 +520,7 @@ model TeamsOperatorConnectNumberDetails { ...NumberAssignmentStatus; @doc("The configuration for Teams Operator Connect on this number.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) configuration?: TeamsOperatorConnectNumberConfig; } @@ -540,7 +540,7 @@ model TeamsPhoneMobileNumberDetails { ...NumberAssignmentStatus; @doc("The configuration for Teams Phone Mobile on this number.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) configuration?: TeamsPhoneMobileNumberConfig; } @@ -557,23 +557,23 @@ model AzureOperatorCallProtectionNumberDetails { @doc("Configuration of backend services for a telephone number.") model NumberServiceDetails { @doc("Details for the Teams Operator Connect service on this Number.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) teamsOperatorConnect?: TeamsOperatorConnectNumberDetails; @doc("Details for the Teams Direct Routing service on this Number.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) teamsDirectRouting?: TeamsDirectRoutingNumberDetails; @doc("Details for the Teams Phone Mobile service on this Number.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) teamsPhoneMobile?: TeamsPhoneMobileNumberDetails; @doc("Details for the Zoom Phone Cloud Peering service on this Number.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) zoomPhoneCloudPeering?: ZoomPhoneCloudPeeringNumberDetails; @doc("Details for the Azure Operator Call Protection service on this Number.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) azureOperatorCallProtection?: AzureOperatorCallProtectionNumberDetails; } @@ -583,7 +583,7 @@ model NumberConfiguration { @minLength(1) @maxLength(100) @pattern("^([A-Za-z0-9_-])+$") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) customSipHeader?: string; } @@ -597,7 +597,7 @@ model NumberResource { @minLength(1) @maxLength(16) @pattern("^\\+[1-9]\\d+$") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) @key("telephoneNumber") telephoneNumber: string; @@ -605,15 +605,15 @@ model NumberResource { @minLength(1) @maxLength(100) @pattern("^([A-Za-z0-9_-]+)$") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) accountName: string; @doc("Configuration of the individual backend services for this number.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) serviceDetails: NumberServiceDetails; @doc("Configuration for this number.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) configuration?: NumberConfiguration; } @@ -621,7 +621,7 @@ model NumberResource { model BatchNumbers { @doc("The list of numbers to upload. At most 100 can be uploaded in one request.") @maxItems(100) - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) numbers: NumberResource[]; } @@ -629,7 +629,7 @@ model BatchNumbers { model BatchNumbersDelete { @doc("The list of number to delete. At most 100 can be deleted in one request.") @maxItems(100) - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) numbers: NumberIdentifier[]; } @@ -658,39 +658,39 @@ union TeamsConsentStatus { model ContactDetails { @doc("The full name of the contact detail.") @minLength(1) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) fullName: string; @doc("The email of the contact detail.") @minLength(1) - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) email: string; @doc("The telephone number of the contact detail.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) telephoneNumber?: string; @doc("The company name of the contact detail.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) companyName?: string; @doc("The company size of the contact detail.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) companySize?: string; } @doc("Details of a customer relationship.") model CustomerRelationship { @doc("The status of the customer relationship.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) status?: string; @doc("The time (ISO8601 format) when the customer relationship is last modified.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastModifiedOn?: utcDateTime; @doc("The comment of the customer relationship.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) comment?: string; } @@ -700,7 +700,7 @@ model RequestForInformationResource { ...ProvisioningStatus; @doc("The ID of the Request for Information.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; @doc("The Teams tenant ID which generated this Request for Information.") @@ -708,43 +708,43 @@ model RequestForInformationResource { @maxLength(36) @pattern("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") @key("tenantId") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) tenantId: string; @doc("The name of the account associated with this Request for Information.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) accountName?: string; @doc("Will always be 'teams'.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) productContext?: string; @doc("The operator ID of the operator consent.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) operatorId?: string; @doc("The status of the operator consent.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: TeamsConsentStatus; @doc("The time (ISO8601 format) when the operator consent is created.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) consentedOn?: utcDateTime; @doc("The time (ISO8601 format) when the operator consent is last modified.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) lastModifiedOn?: utcDateTime; @doc("The list of consented countries.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) consentedCountries?: string[]; @doc("The list of tenant contacts.") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) contacts?: ContactDetails[]; @doc("The customer relationship of the operator consent.") - @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Update, Lifecycle.Create) customerRelationship?: CustomerRelationship; } diff --git a/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPDiscoverySite.tsp b/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPDiscoverySite.tsp index ce7ffaf260c5..004eec2b2c31 100644 --- a/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPDiscoverySite.tsp +++ b/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPDiscoverySite.tsp @@ -16,7 +16,7 @@ model SAPDiscoverySite is TrackedResource { @path @key("sapDiscoverySiteName") @segment("sapDiscoverySites") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; /** diff --git a/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPInstance.tsp b/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPInstance.tsp index 7b62560146d8..f7cd091c4448 100644 --- a/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPInstance.tsp +++ b/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPInstance.tsp @@ -17,7 +17,7 @@ model SAPInstance is TrackedResource { @path @key("sapInstanceName") @segment("sapInstances") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/workloads/Workloads.SAPDiscoverySite.Management/ServerInstance.tsp b/specification/workloads/Workloads.SAPDiscoverySite.Management/ServerInstance.tsp index 0a632f1a32de..17f778f4cb08 100644 --- a/specification/workloads/Workloads.SAPDiscoverySite.Management/ServerInstance.tsp +++ b/specification/workloads/Workloads.SAPDiscoverySite.Management/ServerInstance.tsp @@ -15,7 +15,7 @@ model ServerInstance is ProxyResource { @path @key("serverInstanceName") @segment("serverInstances") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/workloads/Workloads.SAPDiscoverySite.Management/models.tsp b/specification/workloads/Workloads.SAPDiscoverySite.Management/models.tsp index 9952cc68591b..38c85152b75b 100644 --- a/specification/workloads/Workloads.SAPDiscoverySite.Management/models.tsp +++ b/specification/workloads/Workloads.SAPDiscoverySite.Management/models.tsp @@ -183,13 +183,13 @@ model SAPDiscoverySiteProperties { /** * Defines the provisioning states. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * Indicates any errors on the SAP Migration discovery site resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errors?: SAPMigrateError; } @@ -213,25 +213,25 @@ model ErrorDefinition { /** * Service specific error code which serves as the substatus for the HTTP error code. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) code?: string; /** * Description of the error. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) message?: string; /** * Description of the recommendation. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) recommendation?: string; /** * Internal error details. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @extension("x-ms-identifiers", []) details?: ErrorDefinition[]; } @@ -259,37 +259,37 @@ model SAPInstanceProperties { /** * This is the SID of SAP System. Keeping this not equal to ID as different landscapes can have repeated System SID IDs. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) systemSid?: string; /** * The Environment; PRD, QA, DEV, etc to which SAP system belongs to. Select from the list of available dropdown values. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) environment?: SapInstanceEnvironment; /** * This is the SID of the production system in a landscape. An SAP system could itself be a production SID or a part of a landscape with a different Production SID. This field can be used to relate non-prod SIDs, other components, SID (WEBDISP) to the prod SID. Enter the value of Production SID. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) landscapeSid?: string; /** * Enter a business function/department identifier to group multiple SIDs. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) application?: string; /** * Defines the provisioning states. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * Defines the errors related to SAP Instance resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errors?: SAPMigrateError; } @@ -300,61 +300,61 @@ model ServerInstanceProperties { /** * This is the Virtual Machine Name of the SAP system. Add all the virtual machines attached to an SAP system which you wish to migrate to Azure. Keeping this not equal to ID as for single tier all InstanceTypes would be on same server, leading to multiple resources with same servername. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) serverName?: string; /** * Defines the type SAP instance on this server instance. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sapInstanceType?: SapInstanceType; /** * This is the Instance SID for ASCS/AP/DB instance. An SAP system with HANA database for example could have a different SID for database Instance than that of ASCS instance. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) instanceSid?: string; /** * This is the SAP Application Component; e.g. SAP S/4HANA 2022, SAP ERP ENHANCE PACKAGE. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sapProduct?: string; /** * Provide the product version of the SAP product. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) sapProductVersion?: string; /** * This is Operating System on which the host server is running. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) operatingSystem?: OperatingSystem; /** * Configuration data for this server instance. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) configurationData?: ConfigurationData; /** * Configuration data for this server instance. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) performanceData?: PerformanceData; /** * Defines the provisioning states. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: ProvisioningState; /** * Defines the errors related to SAP Instance resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errors?: SAPMigrateError; } @@ -375,69 +375,69 @@ model ConfigurationData { /** * Provide the SAPS for each server of the SAP system. This should be a non-zero value. For example, 1000. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) saps?: int32; /** * Provide the CPU value of the server. For example, 16, 32 etc. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) cpu?: int32; /** * Provide the CPU architecture type of the server. For example, Xeon Platinum 8171M, Xeon E5-2673 v3. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) cpuType?: string; /** * Provide the CPU clock speed of the server in MHz. This should be a non-zero value. For example, 2100. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) cpuInMhz?: int32; /** * Provide the RAM of the server. This should be a non-zero value. For example, 256. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) ram?: int32; /** * Provide the HW manufacturer company of the server. For example, Microsoft Corporation. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) hardwareManufacturer?: string; /** * Specify if the Hardware is a physical server or virtual machine. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) `model`?: string; /** * Provide the total disk volume capacity in GB. Add the disk volume for each individual disks and provide the total sum in this field. */ #suppress "@azure-tools/typespec-azure-core/casing-style" "GB is short for Gigabytes." - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) totalDiskSizeGB?: int32; /** * Provide the total disk IOPS capacity. Add the disk volume for each individual disk and provide the sum total in this field. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) totalDiskIops?: int32; /** * The database of this is a server instance. Applicable only if SAP instance type for this server instance is 'DB'. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) databaseType?: DatabaseType; /** * Provide the target HANA database size you need. Applicable only if SAP instance type for this server instance is 'DB' and you are migrating an AnyDb database to SAP S/4HANA. */ #suppress "@azure-tools/typespec-azure-core/casing-style" "GB is short for Gigabytes." - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) targetHanaRamSizeGB?: int32; } @@ -457,14 +457,14 @@ model ExcelPerformanceData extends PerformanceData { /** * Provide the max CPU percentage load on the server. Omit the percentage symbol while filling this value. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) maxCpuLoad?: int32; /** * Provide the source Database size in GB. Applicable only if SAP instance type for this server instance is 'DB'. */ #suppress "@azure-tools/typespec-azure-core/casing-style" "GB is short for Gigabytes." - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) totalSourceDbSizeGB?: int32; /** diff --git a/specification/workloads/Workloads.SAPMonitor.Management/Alert.tsp b/specification/workloads/Workloads.SAPMonitor.Management/Alert.tsp index 06421b9b23bf..f1e887115841 100644 --- a/specification/workloads/Workloads.SAPMonitor.Management/Alert.tsp +++ b/specification/workloads/Workloads.SAPMonitor.Management/Alert.tsp @@ -18,7 +18,7 @@ model Alert is ProxyResource { @path @key("alertName") @segment("alerts") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/workloads/Workloads.SAPMonitor.Management/AlertTemplate.tsp b/specification/workloads/Workloads.SAPMonitor.Management/AlertTemplate.tsp index 72b464591e70..f56fdb75d834 100644 --- a/specification/workloads/Workloads.SAPMonitor.Management/AlertTemplate.tsp +++ b/specification/workloads/Workloads.SAPMonitor.Management/AlertTemplate.tsp @@ -16,7 +16,7 @@ model AlertTemplate is ProxyResource { @path @key("alertTemplateName") @segment("alertTemplates") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/workloads/Workloads.SAPMonitor.Management/Monitor.tsp b/specification/workloads/Workloads.SAPMonitor.Management/Monitor.tsp index 0944c5fa0645..187253a624c0 100644 --- a/specification/workloads/Workloads.SAPMonitor.Management/Monitor.tsp +++ b/specification/workloads/Workloads.SAPMonitor.Management/Monitor.tsp @@ -15,7 +15,7 @@ model Monitor is TrackedResource { @path @key("monitorName") @segment("monitors") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; ...ManagedServiceIdentityProperty; diff --git a/specification/workloads/Workloads.SAPMonitor.Management/ProviderInstance.tsp b/specification/workloads/Workloads.SAPMonitor.Management/ProviderInstance.tsp index 43c13342e7c4..0a9602a0f157 100644 --- a/specification/workloads/Workloads.SAPMonitor.Management/ProviderInstance.tsp +++ b/specification/workloads/Workloads.SAPMonitor.Management/ProviderInstance.tsp @@ -15,7 +15,7 @@ model ProviderInstance is ProxyResource { @path @key("providerInstanceName") @segment("providerInstances") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/workloads/Workloads.SAPMonitor.Management/SapLandscapeMonitor.tsp b/specification/workloads/Workloads.SAPMonitor.Management/SapLandscapeMonitor.tsp index ae475633efc0..2375df3651ad 100644 --- a/specification/workloads/Workloads.SAPMonitor.Management/SapLandscapeMonitor.tsp +++ b/specification/workloads/Workloads.SAPMonitor.Management/SapLandscapeMonitor.tsp @@ -25,7 +25,7 @@ model SapLandscapeMonitorResource @key @path @segment("sapLandscapeMonitor") - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name: string; } diff --git a/specification/workloads/Workloads.SAPMonitor.Management/models.tsp b/specification/workloads/Workloads.SAPMonitor.Management/models.tsp index 8e737f4ceffc..81cbafc65f4e 100644 --- a/specification/workloads/Workloads.SAPMonitor.Management/models.tsp +++ b/specification/workloads/Workloads.SAPMonitor.Management/models.tsp @@ -242,13 +242,13 @@ model MonitorProperties { /** * State of provisioning of the SAP monitor. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: WorkloadMonitorProvisioningState; /** * Defines the SAP monitor errors. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errors?: ErrorDetail; /** @@ -289,13 +289,13 @@ model MonitorProperties { /** * The ARM ID of the MSI used for SAP monitoring. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) msiArmId?: string; /** * The ARM ID of the Storage account used for SAP monitoring. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) storageAccountArmId?: string; } @@ -340,19 +340,19 @@ model ProviderInstanceProperties { /** * State of provisioning of the provider instance */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: WorkloadMonitorProvisioningState; /** * Resource health details */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) health?: Health; /** * Defines the provider instance errors. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errors?: ErrorDetail; /** @@ -368,13 +368,13 @@ model Health { /** * Health state of the resource */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) healthState?: WorkloadProviderInstanceHealthState; /** * Reasons impacting health state */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) impactingReasons?: string; } @@ -387,7 +387,7 @@ model ProviderSpecificProperties { * The provider type. For example, the value can be SapHana. */ #suppress "@azure-tools/typespec-azure-core/no-string-discriminator" "Existing" - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) providerType: string; } @@ -398,7 +398,7 @@ model SapLandscapeMonitorProperties { /** * State of provisioning of the SAP monitor. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: SapLandscapeMonitorProvisioningState; /** @@ -851,13 +851,13 @@ model AlertProperties { /** * Defines the alert instance errors. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errors?: ErrorDetail; /** * ID of the alert rule resource created. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) alertRuleResourceId?: armResourceIdentifier; /** @@ -883,7 +883,7 @@ model AlertProperties { /** * State of provisioning of the alert instance */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: WorkloadMonitorProvisioningState; } @@ -985,13 +985,13 @@ model AlertTemplateProperties { /** * Defines the SAP monitor Alert Template errors. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errors?: ErrorDetail; /** * State of provisioning of the Alert Template. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: WorkloadMonitorProvisioningState; /** diff --git a/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPVirtualInstanceMetadata.tsp b/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPVirtualInstanceMetadata.tsp index 9244c10f1e69..cb25e5462664 100644 --- a/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPVirtualInstanceMetadata.tsp +++ b/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPVirtualInstanceMetadata.tsp @@ -16,7 +16,7 @@ model SAPVirtualInstanceMetadata { * The default variable. */ @path - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @segment("sapVirtualInstanceMetadata") @key default: "string"; diff --git a/specification/workloads/Workloads.SAPVirtualInstance.Management/models.tsp b/specification/workloads/Workloads.SAPVirtualInstance.Management/models.tsp index 7b4daabacdd6..0288f1d44ab5 100644 --- a/specification/workloads/Workloads.SAPVirtualInstance.Management/models.tsp +++ b/specification/workloads/Workloads.SAPVirtualInstance.Management/models.tsp @@ -859,13 +859,13 @@ model SAPVirtualInstanceProperties { /** * Defines the environment type - Production/Non Production. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) environment: SAPEnvironmentType; /** * Defines the SAP Product type. */ - @visibility(Lifecycle.Read, Lifecycle.Create) + @visibility(Lifecycle.Read, Lifecycle.Create) sapProduct: SAPProductType; /** @@ -886,31 +886,31 @@ model SAPVirtualInstanceProperties { /** * Defines the SAP Instance status. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: SAPVirtualInstanceStatus; /** * Defines the health of SAP Instances. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) health?: SAPHealthState; /** * Defines the Virtual Instance for SAP state. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) state?: SAPVirtualInstanceState; /** * Defines the provisioning states. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: SapVirtualInstanceProvisioningState; /** * Indicates any errors on the Virtual Instance for SAP solutions resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errors?: SAPVirtualInstanceError; } @@ -955,19 +955,19 @@ model ErrorDefinition { /** * Service specific error code which serves as the substatus for the HTTP error code. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) code?: string; /** * Description of the error. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) message?: string; /** * Internal error details. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) details?: ErrorDefinition[]; } @@ -979,25 +979,25 @@ model Resource { /** * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; /** * The name of the resource */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) name?: string; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) type?: string; /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) systemData?: SystemData; } @@ -1042,13 +1042,13 @@ model SAPCentralServerProperties { /** * The central services instance number. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) instanceNo?: string; /** * The central services instance subnet. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) subnet?: string; /** @@ -1074,50 +1074,50 @@ model SAPCentralServerProperties { /** * The central services instance Kernel Version. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) kernelVersion?: string; /** * The central services instance Kernel Patch level. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) kernelPatch?: string; /** * The Load Balancer details such as LoadBalancer ID attached to ASCS Virtual Machines */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) loadBalancerDetails?: LoadBalancerDetails; /** * The list of virtual machines corresponding to the Central Services instance. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) vmDetails?: CentralServerVmDetails[]; /** * Defines the SAP Instance status. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: SAPVirtualInstanceStatus; /** * Defines the health of SAP Instances. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) health?: SAPHealthState; /** * Defines the provisioning states. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: SapVirtualInstanceProvisioningState; /** * Defines the errors related to SAP Central Services Instance resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errors?: SAPVirtualInstanceError; } @@ -1128,43 +1128,43 @@ model MessageServerProperties { /** * message server port. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) msPort?: int64; /** * message server internal MS port. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) internalMsPort?: int64; /** * message server HTTP Port. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) httpPort?: int64; /** * message server HTTPS Port. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) httpsPort?: int64; /** * message server SAP Hostname. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) hostname?: string; /** * message server IP Address. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) ipAddress?: string; /** * Defines the health of SAP Instances. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) health?: SAPHealthState; } @@ -1175,25 +1175,25 @@ model EnqueueServerProperties { /** * Enqueue Server SAP Hostname. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) hostname?: string; /** * Enqueue Server SAP IP Address. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) ipAddress?: string; /** * Enqueue Server Port. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) port?: int64; /** * Defines the health of SAP Instances. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) health?: SAPHealthState; } @@ -1204,13 +1204,13 @@ model GatewayServerProperties { /** * Gateway Port. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) port?: int64; /** * Defines the health of SAP Instances. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) health?: SAPHealthState; } @@ -1221,43 +1221,43 @@ model EnqueueReplicationServerProperties { /** * Defines the type of Enqueue Replication Server. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) ersVersion?: EnqueueReplicationServerType; /** * ERS Instance Number. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) instanceNo?: string; /** * ERS SAP Hostname. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) hostname?: string; /** * ERS SAP Kernel Version. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) kernelVersion?: string; /** * ERS SAP Kernel Patch level. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) kernelPatch?: string; /** * ERS SAP IP Address. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) ipAddress?: string; /** * Defines the health of SAP Instances. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) health?: SAPHealthState; } @@ -1268,7 +1268,7 @@ model LoadBalancerDetails { /** * Fully qualified resource ID for the load balancer. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; } @@ -1279,19 +1279,19 @@ model CentralServerVmDetails { /** * Defines the type of central server VM. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) type?: CentralServerVirtualMachineType; /** * The virtual machine id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) virtualMachineId?: string; /** * Storage details of all the Storage Accounts attached to the ASCS Virtual Machine. For e.g. NFS on AFS Shared Storage. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) storageDetails?: StorageInformation[]; } @@ -1303,7 +1303,7 @@ model StorageInformation { /** * Fully qualified resource ID for the storage account. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) id?: string; } @@ -1327,56 +1327,56 @@ model SAPDatabaseProperties { /** * Database subnet. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) subnet?: string; /** * Database SID name. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) databaseSid?: string; /** * Database type, that is if the DB is HANA, DB2, Oracle, SAP ASE, Max DB or MS SQL Server. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) databaseType?: string; /** * Database IP Address. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) ipAddress?: string; /** * The Load Balancer details such as LoadBalancer ID attached to Database Virtual Machines */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) loadBalancerDetails?: LoadBalancerDetails; /** * The list of virtual machines corresponding to the Database resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) vmDetails?: DatabaseVmDetails[]; /** * Defines the SAP Instance status. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: SAPVirtualInstanceStatus; /** * Defines the provisioning states. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: SapVirtualInstanceProvisioningState; /** * Defines the errors related to Database resource. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errors?: SAPVirtualInstanceError; } @@ -1387,19 +1387,19 @@ model DatabaseVmDetails { /** * The virtual machine id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) virtualMachineId?: string; /** * Defines the SAP Instance status. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: SAPVirtualInstanceStatus; /** * Storage details of all the Storage Accounts attached to the Database Virtual Machine. For e.g. NFS on AFS Shared Storage. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) storageDetails?: StorageInformation[]; } @@ -1424,98 +1424,98 @@ model SAPApplicationServerProperties { /** * Application server Instance Number. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) instanceNo?: string; /** * Application server Subnet. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) subnet?: string; /** * Application server instance SAP hostname. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) hostname?: string; /** * Application server instance SAP Kernel Version. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) kernelVersion?: string; /** * Application server instance SAP Kernel Patch level. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) kernelPatch?: string; /** * Application server instance SAP IP Address. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) ipAddress?: string; /** * Application server instance gateway Port. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) gatewayPort?: int64; /** * Application server instance ICM HTTP Port. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) icmHttpPort?: int64; /** * Application server instance ICM HTTPS Port. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) icmHttpsPort?: int64; /** * Application server instance dispatcher status. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) dispatcherStatus?: string; /** * The Load Balancer details such as LoadBalancer ID attached to Application Server Virtual Machines */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) loadBalancerDetails?: LoadBalancerDetails; /** * The list of virtual machines. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) vmDetails?: ApplicationServerVmDetails[]; /** * Defines the SAP Instance status. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) status?: SAPVirtualInstanceStatus; /** * Defines the health of SAP Instances. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) health?: SAPHealthState; /** * Defines the provisioning states. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) provisioningState?: SapVirtualInstanceProvisioningState; /** * Defines the Application Instance errors. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) errors?: SAPVirtualInstanceError; } @@ -1526,19 +1526,19 @@ model ApplicationServerVmDetails { /** * Defines the type of application server VM. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) type?: ApplicationServerVirtualMachineType; /** * The virtual machine id. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) virtualMachineId?: string; /** * Storage details of all the Storage Accounts attached to the App Virtual Machine. For e.g. NFS on AFS Shared Storage. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) @OpenAPI.extension("x-ms-identifiers", []) storageDetails?: StorageInformation[]; } @@ -2403,7 +2403,7 @@ model DiscoveryConfiguration extends SAPConfiguration { /** * The geo-location where the SAP system exists. */ - @visibility(Lifecycle.Read) + @visibility(Lifecycle.Read) appLocation?: string; /** From b2a0bac08ca001d2407ed1d845cad01c2bb99285 Mon Sep 17 00:00:00 2001 From: Will Temple Date: Tue, 25 Feb 2025 14:23:05 -0500 Subject: [PATCH 03/17] fix communication messages --- specification/communication/Communication.Messages/models.tsp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specification/communication/Communication.Messages/models.tsp b/specification/communication/Communication.Messages/models.tsp index dc72872247be..273cce54b28f 100644 --- a/specification/communication/Communication.Messages/models.tsp +++ b/specification/communication/Communication.Messages/models.tsp @@ -664,7 +664,9 @@ model CommunicationChannel { @doc("A data stream.") model MessageDataStream { @key - @invisible(Lifecycle) // this model is only used as a parameter + // @invisible(Lifecycle) // this model is only used as a parameter + @path + @visibility(Lifecycle.Query) @doc("The stream ID.") @clientName("mediaId", "java") id: string; From 50c8cc7e96b6c67a125278066e526771f4ed2536 Mon Sep 17 00:00:00 2001 From: Will Temple Date: Wed, 26 Feb 2025 13:03:16 -0500 Subject: [PATCH 04/17] link local packages --- package.json | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index eb98cbfcd3c5..91be4a0f73a3 100644 --- a/package.json +++ b/package.json @@ -2,25 +2,25 @@ "name": "azure-rest-api-specs", "devDependencies": { "@azure-tools/typespec-apiview": "0.5.0", - "@azure-tools/typespec-autorest": "0.51.0", - "@azure-tools/typespec-azure-core": "0.51.0", - "@azure-tools/typespec-azure-portal-core": "0.51.0", - "@azure-tools/typespec-azure-resource-manager": "0.51.0", - "@azure-tools/typespec-azure-rulesets": "0.51.0", + "@azure-tools/typespec-autorest": "file:../typespec-azure/packages/typespec-autorest", + "@azure-tools/typespec-azure-core": "file:../typespec-azure/packages/typespec-azure-core", + "@azure-tools/typespec-azure-portal-core": "file:../typespec-azure/packages/typespec-azure-portal-core", + "@azure-tools/typespec-azure-resource-manager": "file:../typespec-azure/packages/typespec-azure-resource-manager", + "@azure-tools/typespec-azure-rulesets": "file:../typespec-azure/packages/typespec-azure-rulesets", "@azure-tools/typespec-client-generator-cli": "0.15.3", - "@azure-tools/typespec-client-generator-core": "0.51.3", + "@azure-tools/typespec-client-generator-core": "file:../typespec-azure/packages/typespec-client-generator-core", "@azure-tools/typespec-liftr-base": "0.7.0", "@azure/avocado": "^0.9.1", "@autorest/openapi-to-typespec": "0.10.10", - "@typespec/compiler": "0.65.3", - "@typespec/http": "0.65.0", - "@typespec/openapi": "0.65.0", - "@typespec/openapi3": "0.65.0", - "@typespec/prettier-plugin-typespec": "0.65.0", - "@typespec/rest": "0.65.0", - "@typespec/streams": "0.65.0", - "@typespec/versioning": "0.65.0", - "@typespec/xml": "0.65.0", + "@typespec/compiler": "file:../typespec-azure/core/packages/compiler", + "@typespec/http": "file:../typespec-azure/core/packages/http", + "@typespec/openapi": "file:../typespec-azure/core/packages/openapi", + "@typespec/openapi3": "file:../typespec-azure/core/packages/openapi3", + "@typespec/prettier-plugin-typespec": "file:../typespec-azure/core/packages/prettier-plugin-typespec", + "@typespec/rest": "file:../typespec-azure/core/packages/rest", + "@typespec/streams": "file:../typespec-azure/core/packages/streams", + "@typespec/versioning": "file:../typespec-azure/core/packages/versioning", + "@typespec/xml": "file:../typespec-azure/core/packages/xml", "azure-rest-api-specs-eng-tools": "file:eng/tools", "oav": "^3.5.1", "prettier": "~3.3.3", @@ -31,4 +31,4 @@ "npm": ">=9.0.0" }, "private": true -} +} \ No newline at end of file From 9147eda69e88ef574d1d67209067602f4a5f542b Mon Sep 17 00:00:00 2001 From: Will Temple Date: Wed, 26 Feb 2025 13:03:37 -0500 Subject: [PATCH 05/17] Fix communication.messages --- specification/communication/Communication.Messages/models.tsp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/communication/Communication.Messages/models.tsp b/specification/communication/Communication.Messages/models.tsp index 273cce54b28f..9754de602c2f 100644 --- a/specification/communication/Communication.Messages/models.tsp +++ b/specification/communication/Communication.Messages/models.tsp @@ -664,9 +664,8 @@ model CommunicationChannel { @doc("A data stream.") model MessageDataStream { @key - // @invisible(Lifecycle) // this model is only used as a parameter @path - @visibility(Lifecycle.Query) + @invisible(Lifecycle) // The stream ID is only used as a parameter. @doc("The stream ID.") @clientName("mediaId", "java") id: string; From 444dbb3980177899341c342598fc1f9a887d836b Mon Sep 17 00:00:00 2001 From: Will Temple Date: Wed, 26 Feb 2025 15:17:21 -0500 Subject: [PATCH 06/17] Update Chaos.Management parameter visibility use --- specification/chaos/Chaos.Management/experiment.tsp | 2 +- specification/chaos/Chaos.Management/privateAccess.tsp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/chaos/Chaos.Management/experiment.tsp b/specification/chaos/Chaos.Management/experiment.tsp index 97144fd131b0..71067543f610 100644 --- a/specification/chaos/Chaos.Management/experiment.tsp +++ b/specification/chaos/Chaos.Management/experiment.tsp @@ -26,7 +26,7 @@ interface Experiments { /** * The operation to update an experiment. */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; /** diff --git a/specification/chaos/Chaos.Management/privateAccess.tsp b/specification/chaos/Chaos.Management/privateAccess.tsp index bb2976effba7..b311c99b1e5b 100644 --- a/specification/chaos/Chaos.Management/privateAccess.tsp +++ b/specification/chaos/Chaos.Management/privateAccess.tsp @@ -28,7 +28,7 @@ interface PrivateAccesses { /** * Patch a private access tags */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; /** From ae94128771f92e06506ef92b152e25a2cd2c8e55 Mon Sep 17 00:00:00 2001 From: Will Temple Date: Wed, 26 Feb 2025 15:30:29 -0500 Subject: [PATCH 07/17] Replace @parameterVisibility with patch option in operation explicitly labeled PATCH --- .../Language.AnalyzeConversations-authoring/routes.tsp | 3 +-- .../Language.AnalyzeText-authoring/routes.tsp | 3 +-- specification/keyvault/Security.KeyVault.Settings/routes.tsp | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/specification/cognitiveservices/Language.AnalyzeConversations-authoring/routes.tsp b/specification/cognitiveservices/Language.AnalyzeConversations-authoring/routes.tsp index c7b108905233..1fdd323c53ae 100644 --- a/specification/cognitiveservices/Language.AnalyzeConversations-authoring/routes.tsp +++ b/specification/cognitiveservices/Language.AnalyzeConversations-authoring/routes.tsp @@ -366,8 +366,7 @@ interface ConversationAuthoringProjects { */ #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Need to rename the body" @createsOrUpdatesResource(AnalyzeConversationAuthoringProjectMetadata) - @parameterVisibility - @patch + @patch(#{ implicitOptionality: false }) createProject is Foundations.ResourceOperation< AnalyzeConversationAuthoringProjectMetadata, { diff --git a/specification/cognitiveservices/Language.AnalyzeText-authoring/routes.tsp b/specification/cognitiveservices/Language.AnalyzeText-authoring/routes.tsp index c6f8b6869a82..fed6ae942adf 100644 --- a/specification/cognitiveservices/Language.AnalyzeText-authoring/routes.tsp +++ b/specification/cognitiveservices/Language.AnalyzeText-authoring/routes.tsp @@ -36,8 +36,7 @@ interface TextAnalysisAuthoring { #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Need to rename the body" @createsOrUpdatesResource(TextAnalysisAuthoringProjectMetadata) - @parameterVisibility - @patch + @patch(#{ implicitOptionality: false }) createProject is Foundations.ResourceOperation< TextAnalysisAuthoringProjectMetadata, { diff --git a/specification/keyvault/Security.KeyVault.Settings/routes.tsp b/specification/keyvault/Security.KeyVault.Settings/routes.tsp index 3dd4a95737cd..6a2e40cb9320 100644 --- a/specification/keyvault/Security.KeyVault.Settings/routes.tsp +++ b/specification/keyvault/Security.KeyVault.Settings/routes.tsp @@ -16,10 +16,9 @@ namespace KeyVault; * Description of the pool setting to be updated */ #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Foundations.Operation is necessary for Key Vault" -@parameterVisibility @summary("Updates key vault account setting, stores it, then returns the setting name and value to the client.") @route("/settings/{setting-name}") -@patch +@patch(#{ implicitOptionality: false }) op updateSetting is KeyVaultOperation< { ...SettingNameParameter; From a5940359ba6fca9330f546d5818acfb0e01c9a6f Mon Sep 17 00:00:00 2001 From: Will Temple Date: Wed, 26 Feb 2025 15:33:42 -0500 Subject: [PATCH 08/17] Replace all @parameterVisibility on ARM Patch operations with implicitOptionality: false --- .../resources/ReportResource.tsp | 2 +- .../resources/WebhookResource.tsp | 2 +- specification/azurefleet/AzureFleet.Management/fleet.tsp | 2 +- .../AzureStackHCI.StackHCIVM.Management/GalleryImages.tsp | 2 +- .../AzureStackHCI.StackHCIVM.Management/LogicalNetworks.tsp | 2 +- .../MarketplaceGalleryImages.tsp | 2 +- .../AzureStackHCI.StackHCIVM.Management/NetworkInterfaces.tsp | 4 ++-- .../AzureStackHCI.StackHCIVM.Management/VirtualHardDisks.tsp | 2 +- .../VirtualMachineInstance.tsp | 2 +- .../codesigning/CodeSigning.Management/CodeSigningAccount.tsp | 2 +- .../DatabaseFleetManager.Management/Fleet.tsp | 2 +- .../DatabaseFleetManager.Management/FleetDatabase.tsp | 2 +- .../DatabaseFleetManager.Management/FleetTier.tsp | 2 +- .../DatabaseFleetManager.Management/Fleetspace.tsp | 2 +- .../Microsoft.DevOpsInfrastructure.Management/main.tsp | 2 +- specification/fabric/Microsoft.Fabric.Management/capacity.tsp | 2 +- .../HybridConnectivity.Management/EndpointResource.tsp | 2 +- .../ServiceConfigurationResource.tsp | 2 +- specification/iotoperations/IoTOperations.Management/main.tsp | 2 +- .../keyvault/Security.KeyVault.Certificates/routes.tsp | 2 +- specification/liftrqumulo/Qumulo.Storage.Management/main.tsp | 2 +- .../DocumentDB.MongoCluster.Management/MongoCluster.tsp | 2 +- .../typespec/azureMonitorWorkspace.tsp | 2 +- .../Microsoft.Monitor.Management/typespec/pipelineGroup.tsp | 2 +- specification/portal/Dashboard.Management/Dashboard.tsp | 2 +- .../DataReplication.Management/FabricModel.tsp | 2 +- .../DataReplication.Management/ProtectedItemModel.tsp | 2 +- .../DataReplication.Management/VaultModel.tsp | 2 +- specification/sphere/Sphere.Management/catalog.tsp | 2 +- specification/sphere/Sphere.Management/device.tsp | 2 +- specification/sphere/Sphere.Management/deviceGroup.tsp | 2 +- specification/sphere/Sphere.Management/product.tsp | 2 +- .../StandbyPool.Management/standbyContainerGroupPool.tsp | 2 +- .../standbypool/StandbyPool.Management/standbyVMPool.tsp | 2 +- .../workloadNetworks-dhcpConfigurations.tsp | 2 +- .../Microsoft.AVS.Management/workloadNetworks-dnsServices.tsp | 2 +- .../Microsoft.AVS.Management/workloadNetworks-dnsZones.tsp | 2 +- .../workloadNetworks-portMirroringProfiles.tsp | 2 +- .../Microsoft.AVS.Management/workloadNetworks-segments.tsp | 2 +- .../Microsoft.AVS.Management/workloadNetworks-vmGroups.tsp | 2 +- .../SAPDiscoverySite.tsp | 2 +- .../Workloads.SAPDiscoverySite.Management/SAPInstance.tsp | 2 +- .../Workloads.SAPDiscoverySite.Management/ServerInstance.tsp | 2 +- .../workloads/Workloads.SAPMonitor.Management/Monitor.tsp | 2 +- .../Workloads.SAPMonitor.Management/SapLandscapeMonitor.tsp | 2 +- .../SAPApplicationServerInstance.tsp | 2 +- .../SAPCentralServerInstance.tsp | 2 +- .../SAPDatabaseInstance.tsp | 2 +- .../SAPVirtualInstance.tsp | 2 +- 49 files changed, 50 insertions(+), 50 deletions(-) diff --git a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ReportResource.tsp b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ReportResource.tsp index 9e51ba4948d5..112dc0e5d3a7 100644 --- a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ReportResource.tsp +++ b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/ReportResource.tsp @@ -68,7 +68,7 @@ interface Report { * Update an exiting AppComplianceAutomation report. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "For backward compatibility" - @parameterVisibility + @patch(#{ implicitOptionality: false }) @operationId("Report_Update") update is ArmCustomPatchAsync< ReportResource, diff --git a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/WebhookResource.tsp b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/WebhookResource.tsp index d41fde81abc3..7bcd6a7d390c 100644 --- a/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/WebhookResource.tsp +++ b/specification/appcomplianceautomation/AppComplianceAutomation.Management/resources/WebhookResource.tsp @@ -66,7 +66,7 @@ interface Webhook { * Update an exiting AppComplianceAutomation webhook. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "For backward compatibility" - @parameterVisibility + @patch(#{ implicitOptionality: false }) @operationId("Webhook_Update") update is ArmCustomPatchSync< WebhookResource, diff --git a/specification/azurefleet/AzureFleet.Management/fleet.tsp b/specification/azurefleet/AzureFleet.Management/fleet.tsp index a9ece3484fd1..bfc4fa87beab 100644 --- a/specification/azurefleet/AzureFleet.Management/fleet.tsp +++ b/specification/azurefleet/AzureFleet.Management/fleet.tsp @@ -534,7 +534,7 @@ interface Fleets { Fleet, LroHeaders = Azure.Core.Foundations.RetryAfterHeader >; - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; delete is ArmResourceDeleteWithoutOkAsync; listByResourceGroup is ArmResourceListByParent; diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GalleryImages.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GalleryImages.tsp index dca1274e17e9..b06d03fefc48 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GalleryImages.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GalleryImages.tsp @@ -42,7 +42,7 @@ interface GalleryImages { >; @doc("The operation to update a gallery image.") - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; @doc("The operation to delete a gallery image.") diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/LogicalNetworks.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/LogicalNetworks.tsp index 0a5767172485..91615d993ba4 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/LogicalNetworks.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/LogicalNetworks.tsp @@ -42,7 +42,7 @@ interface LogicalNetworks { >; @doc("The operation to update a logical network.") - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; @doc("The operation to delete a logical network.") diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/MarketplaceGalleryImages.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/MarketplaceGalleryImages.tsp index 0108508e5862..a52f369b8384 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/MarketplaceGalleryImages.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/MarketplaceGalleryImages.tsp @@ -43,7 +43,7 @@ interface MarketplaceGalleryImages { >; @doc("The operation to update a marketplace gallery image.") - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; @doc("The operation to delete a marketplace gallery image.") diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkInterfaces.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkInterfaces.tsp index 98d269209e3e..6eb0a10798e0 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkInterfaces.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkInterfaces.tsp @@ -44,14 +44,14 @@ interface NetworkInterfaces { >; @doc("The operation to update a network interface.") - @parameterVisibility + @patch(#{ implicitOptionality: false }) @removed(Versions.v2025_02_01_preview) @sharedRoute @renamedFrom(Versions.v2025_02_01_preview, "update") updateOld is ArmCustomPatchAsync; @doc("The operation to update a network interface.") - @parameterVisibility + @patch(#{ implicitOptionality: false }) @added(Versions.v2025_02_01_preview) @sharedRoute update is ArmCustomPatchAsync< diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualHardDisks.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualHardDisks.tsp index a306d30aa3fb..c5d3483bf7c0 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualHardDisks.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualHardDisks.tsp @@ -49,7 +49,7 @@ interface VirtualHardDisks { updateOld is ArmTagsPatchAsync; @doc("The operation to update a virtual hard disk.") - @parameterVisibility + @patch(#{ implicitOptionality: false }) @added(Versions.v2025_02_01_preview) @sharedRoute update is ArmCustomPatchAsync; diff --git a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualMachineInstance.tsp b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualMachineInstance.tsp index 621d9be52eed..22a32443df09 100644 --- a/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualMachineInstance.tsp +++ b/specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/VirtualMachineInstance.tsp @@ -45,7 +45,7 @@ interface VirtualMachineInstances { >; @doc("The operation to update a virtual machine instance.") - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync< VirtualMachineInstance, VirtualMachineInstanceUpdateRequest diff --git a/specification/codesigning/CodeSigning.Management/CodeSigningAccount.tsp b/specification/codesigning/CodeSigning.Management/CodeSigningAccount.tsp index 2ba44542c4ba..25786389c394 100644 --- a/specification/codesigning/CodeSigning.Management/CodeSigningAccount.tsp +++ b/specification/codesigning/CodeSigning.Management/CodeSigningAccount.tsp @@ -34,7 +34,7 @@ interface CodeSigningAccounts { >; @doc("Update a trusted signing account.") - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; @doc("Delete a trusted signing account.") diff --git a/specification/databasefleetmanager/DatabaseFleetManager.Management/Fleet.tsp b/specification/databasefleetmanager/DatabaseFleetManager.Management/Fleet.tsp index 430deadf7ca3..05963457e68f 100644 --- a/specification/databasefleetmanager/DatabaseFleetManager.Management/Fleet.tsp +++ b/specification/databasefleetmanager/DatabaseFleetManager.Management/Fleet.tsp @@ -38,7 +38,7 @@ interface Fleets { /** * Modifies a fleet resource. */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; /** diff --git a/specification/databasefleetmanager/DatabaseFleetManager.Management/FleetDatabase.tsp b/specification/databasefleetmanager/DatabaseFleetManager.Management/FleetDatabase.tsp index 27ea588ee1df..ae09c0631015 100644 --- a/specification/databasefleetmanager/DatabaseFleetManager.Management/FleetDatabase.tsp +++ b/specification/databasefleetmanager/DatabaseFleetManager.Management/FleetDatabase.tsp @@ -40,7 +40,7 @@ interface FleetDatabases { /** * Updates a fleet database. */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; /** diff --git a/specification/databasefleetmanager/DatabaseFleetManager.Management/FleetTier.tsp b/specification/databasefleetmanager/DatabaseFleetManager.Management/FleetTier.tsp index dcc1ea57a864..737712b0264f 100644 --- a/specification/databasefleetmanager/DatabaseFleetManager.Management/FleetTier.tsp +++ b/specification/databasefleetmanager/DatabaseFleetManager.Management/FleetTier.tsp @@ -40,7 +40,7 @@ interface FleetTiers { /** * Updates a tier. */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; /** diff --git a/specification/databasefleetmanager/DatabaseFleetManager.Management/Fleetspace.tsp b/specification/databasefleetmanager/DatabaseFleetManager.Management/Fleetspace.tsp index 0aaf6ab7e4ea..3ea71eca6cf7 100644 --- a/specification/databasefleetmanager/DatabaseFleetManager.Management/Fleetspace.tsp +++ b/specification/databasefleetmanager/DatabaseFleetManager.Management/Fleetspace.tsp @@ -40,7 +40,7 @@ interface Fleetspaces { /** * Modifies a fleetspace resource. */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; /** diff --git a/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/main.tsp b/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/main.tsp index 58da61ab20d3..1a0ef0691c3f 100644 --- a/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/main.tsp +++ b/specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/main.tsp @@ -448,7 +448,7 @@ interface Pools { Pool, LroHeaders = Azure.Core.Foundations.RetryAfterHeader >; - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync< Pool, Azure.ResourceManager.Foundations.ResourceUpdateModel diff --git a/specification/fabric/Microsoft.Fabric.Management/capacity.tsp b/specification/fabric/Microsoft.Fabric.Management/capacity.tsp index c669c8ab09e0..25eb77d5e5ba 100644 --- a/specification/fabric/Microsoft.Fabric.Management/capacity.tsp +++ b/specification/fabric/Microsoft.Fabric.Management/capacity.tsp @@ -32,7 +32,7 @@ model FabricCapacity is TrackedResource { interface FabricCapacities { get is ArmResourceRead; createOrUpdate is ArmResourceCreateOrReplaceAsync; - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync< FabricCapacity, Azure.ResourceManager.Foundations.ResourceUpdateModel< diff --git a/specification/hybridconnectivity/HybridConnectivity.Management/EndpointResource.tsp b/specification/hybridconnectivity/HybridConnectivity.Management/EndpointResource.tsp index fd49cc7d0d9d..327ac079050e 100644 --- a/specification/hybridconnectivity/HybridConnectivity.Management/EndpointResource.tsp +++ b/specification/hybridconnectivity/HybridConnectivity.Management/EndpointResource.tsp @@ -84,7 +84,7 @@ interface EndpointResources { * Update the endpoint to the target resource. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @parameterVisibility + @patch(#{ implicitOptionality: false }) @operationId("Endpoints_Update") update is ArmCustomPatchSync< EndpointResource, diff --git a/specification/hybridconnectivity/HybridConnectivity.Management/ServiceConfigurationResource.tsp b/specification/hybridconnectivity/HybridConnectivity.Management/ServiceConfigurationResource.tsp index 0cab92af822a..c0b6727724f6 100644 --- a/specification/hybridconnectivity/HybridConnectivity.Management/ServiceConfigurationResource.tsp +++ b/specification/hybridconnectivity/HybridConnectivity.Management/ServiceConfigurationResource.tsp @@ -51,7 +51,7 @@ interface ServiceConfigurationResources { * Update the service details in the service configurations of the target resource. */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "non-standard operations" - @parameterVisibility + @patch(#{ implicitOptionality: false }) @operationId("ServiceConfigurations_Update") update is ArmCustomPatchSync< ServiceConfigurationResource, diff --git a/specification/iotoperations/IoTOperations.Management/main.tsp b/specification/iotoperations/IoTOperations.Management/main.tsp index 9ee8c7a96fe4..6e2eb71eefbe 100644 --- a/specification/iotoperations/IoTOperations.Management/main.tsp +++ b/specification/iotoperations/IoTOperations.Management/main.tsp @@ -46,7 +46,7 @@ interface Operations extends Azure.ResourceManager.Operations {} interface Instance { get is ArmResourceRead; createOrUpdate is ArmResourceCreateOrUpdateAsync; - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchSync; delete is ArmResourceDeleteWithoutOkAsync; listByResourceGroup is ArmResourceListByParent; diff --git a/specification/keyvault/Security.KeyVault.Certificates/routes.tsp b/specification/keyvault/Security.KeyVault.Certificates/routes.tsp index 211954736233..4b23019e0544 100644 --- a/specification/keyvault/Security.KeyVault.Certificates/routes.tsp +++ b/specification/keyvault/Security.KeyVault.Certificates/routes.tsp @@ -395,7 +395,7 @@ op getCertificate is KeyVaultOperation< * Updates a certificate creation operation that is already in progress. This operation requires the certificates/update permission. */ #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Foundations.Operation is necessary for Key Vault" -@parameterVisibility +@patch(#{ implicitOptionality: false }) @summary("Updates a certificate operation.") @route("/certificates/{certificate-name}/pending") @patch diff --git a/specification/liftrqumulo/Qumulo.Storage.Management/main.tsp b/specification/liftrqumulo/Qumulo.Storage.Management/main.tsp index e634bb7bc3da..7e5c7a63053e 100644 --- a/specification/liftrqumulo/Qumulo.Storage.Management/main.tsp +++ b/specification/liftrqumulo/Qumulo.Storage.Management/main.tsp @@ -64,7 +64,7 @@ interface FileSystems { * Update a FileSystemResource */ #suppress "@azure-tools/typespec-azure-core/no-openapi" "For backward compatibility" - @parameterVisibility + @patch(#{ implicitOptionality: false }) @operationId("FileSystems_Update") update is ArmCustomPatchSync; diff --git a/specification/mongocluster/DocumentDB.MongoCluster.Management/MongoCluster.tsp b/specification/mongocluster/DocumentDB.MongoCluster.Management/MongoCluster.tsp index c7c49dd74574..f0d7ce419050 100644 --- a/specification/mongocluster/DocumentDB.MongoCluster.Management/MongoCluster.tsp +++ b/specification/mongocluster/DocumentDB.MongoCluster.Management/MongoCluster.tsp @@ -34,7 +34,7 @@ interface MongoClusters { LroHeaders = Azure.Core.Foundations.RetryAfterHeader >; /** Updates an existing mongo cluster. The request body can contain one to many of the properties present in the normal mongo cluster definition. */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync< MongoCluster, Azure.ResourceManager.Foundations.ResourceUpdateModel< diff --git a/specification/monitor/Microsoft.Monitor.Management/typespec/azureMonitorWorkspace.tsp b/specification/monitor/Microsoft.Monitor.Management/typespec/azureMonitorWorkspace.tsp index afc4e5dd0f02..c5caa4e70db7 100644 --- a/specification/monitor/Microsoft.Monitor.Management/typespec/azureMonitorWorkspace.tsp +++ b/specification/monitor/Microsoft.Monitor.Management/typespec/azureMonitorWorkspace.tsp @@ -100,7 +100,7 @@ interface AzureMonitorWorkspaces { LroHeaders = Azure.Core.Foundations.RetryAfterHeader >; @doc("Updates part of a workspace") - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchSync< AzureMonitorWorkspace, Azure.ResourceManager.Foundations.ResourceUpdateModel< diff --git a/specification/monitor/Microsoft.Monitor.Management/typespec/pipelineGroup.tsp b/specification/monitor/Microsoft.Monitor.Management/typespec/pipelineGroup.tsp index cf82d8140219..fa5168e42ace 100644 --- a/specification/monitor/Microsoft.Monitor.Management/typespec/pipelineGroup.tsp +++ b/specification/monitor/Microsoft.Monitor.Management/typespec/pipelineGroup.tsp @@ -257,7 +257,7 @@ interface PipelineGroups { delete is ArmResourceDeleteWithoutOkAsync; @doc("Updates a pipeline group instance") - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync< PipelineGroup, Azure.ResourceManager.Foundations.ResourceUpdateModel< diff --git a/specification/portal/Dashboard.Management/Dashboard.tsp b/specification/portal/Dashboard.Management/Dashboard.tsp index e68c3c53ab10..c4748bb1fe8a 100644 --- a/specification/portal/Dashboard.Management/Dashboard.tsp +++ b/specification/portal/Dashboard.Management/Dashboard.tsp @@ -36,7 +36,7 @@ interface Dashboards { /** * Updates an existing Dashboard. */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchSync; /** diff --git a/specification/recoveryservicesdatareplication/DataReplication.Management/FabricModel.tsp b/specification/recoveryservicesdatareplication/DataReplication.Management/FabricModel.tsp index 3f38deacf618..a9f3f9f748ad 100644 --- a/specification/recoveryservicesdatareplication/DataReplication.Management/FabricModel.tsp +++ b/specification/recoveryservicesdatareplication/DataReplication.Management/FabricModel.tsp @@ -48,7 +48,7 @@ interface Fabric { /** * Performs update on the fabric. */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; /** diff --git a/specification/recoveryservicesdatareplication/DataReplication.Management/ProtectedItemModel.tsp b/specification/recoveryservicesdatareplication/DataReplication.Management/ProtectedItemModel.tsp index 13fa16eb8e1c..045743982d55 100644 --- a/specification/recoveryservicesdatareplication/DataReplication.Management/ProtectedItemModel.tsp +++ b/specification/recoveryservicesdatareplication/DataReplication.Management/ProtectedItemModel.tsp @@ -51,7 +51,7 @@ interface ProtectedItem { /** * Performs update on the protected item. */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; /** diff --git a/specification/recoveryservicesdatareplication/DataReplication.Management/VaultModel.tsp b/specification/recoveryservicesdatareplication/DataReplication.Management/VaultModel.tsp index b0cd7b1921af..69c5771a6bd0 100644 --- a/specification/recoveryservicesdatareplication/DataReplication.Management/VaultModel.tsp +++ b/specification/recoveryservicesdatareplication/DataReplication.Management/VaultModel.tsp @@ -50,7 +50,7 @@ interface Vault { /** * Performs update on the vault. */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; /** diff --git a/specification/sphere/Sphere.Management/catalog.tsp b/specification/sphere/Sphere.Management/catalog.tsp index 1f7f0de780c0..4b0da842fcff 100644 --- a/specification/sphere/Sphere.Management/catalog.tsp +++ b/specification/sphere/Sphere.Management/catalog.tsp @@ -42,7 +42,7 @@ interface Catalogs { /** * Update a Catalog */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchSync; /** diff --git a/specification/sphere/Sphere.Management/device.tsp b/specification/sphere/Sphere.Management/device.tsp index fe0bd47c9c8e..7a15ee06fcff 100644 --- a/specification/sphere/Sphere.Management/device.tsp +++ b/specification/sphere/Sphere.Management/device.tsp @@ -42,7 +42,7 @@ interface Devices { * Update a Device. Use '.unassigned' or '.default' for the device group and product names to move a device to the catalog level. */ #suppress "@azure-tools/typespec-azure-resource-manager/lro-location-header" "Existing API" - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync< Device, DeviceUpdate, diff --git a/specification/sphere/Sphere.Management/deviceGroup.tsp b/specification/sphere/Sphere.Management/deviceGroup.tsp index a2986b4634ba..a62440ec2239 100644 --- a/specification/sphere/Sphere.Management/deviceGroup.tsp +++ b/specification/sphere/Sphere.Management/deviceGroup.tsp @@ -43,7 +43,7 @@ interface DeviceGroups { /** * Update a DeviceGroup. '.default' and '.unassigned' are system defined values and cannot be used for product or device group name. */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; /** diff --git a/specification/sphere/Sphere.Management/product.tsp b/specification/sphere/Sphere.Management/product.tsp index d769dbb6bff2..2e23dc2f5428 100644 --- a/specification/sphere/Sphere.Management/product.tsp +++ b/specification/sphere/Sphere.Management/product.tsp @@ -47,7 +47,7 @@ interface Products { /** * Update a Product. '.default' and '.unassigned' are system defined values and cannot be used for product name. */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; /** diff --git a/specification/standbypool/StandbyPool.Management/standbyContainerGroupPool.tsp b/specification/standbypool/StandbyPool.Management/standbyContainerGroupPool.tsp index df62633c2abb..8ec38557eec4 100644 --- a/specification/standbypool/StandbyPool.Management/standbyContainerGroupPool.tsp +++ b/specification/standbypool/StandbyPool.Management/standbyContainerGroupPool.tsp @@ -113,7 +113,7 @@ interface StandbyContainerGroupPools { LroHeaders = Azure.Core.Foundations.RetryAfterHeader >; delete is ArmResourceDeleteWithoutOkAsync; - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchSync< StandbyContainerGroupPoolResource, Azure.ResourceManager.Foundations.ResourceUpdateModel< diff --git a/specification/standbypool/StandbyPool.Management/standbyVMPool.tsp b/specification/standbypool/StandbyPool.Management/standbyVMPool.tsp index 59fa8430d517..5f35221b3cf2 100644 --- a/specification/standbypool/StandbyPool.Management/standbyVMPool.tsp +++ b/specification/standbypool/StandbyPool.Management/standbyVMPool.tsp @@ -90,7 +90,7 @@ interface StandbyVirtualMachinePools { LroHeaders = Azure.Core.Foundations.RetryAfterHeader >; delete is ArmResourceDeleteWithoutOkAsync; - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchSync< StandbyVirtualMachinePoolResource, Azure.ResourceManager.Foundations.ResourceUpdateModel< diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dhcpConfigurations.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dhcpConfigurations.tsp index 74f6f72007ac..bc126f424e22 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dhcpConfigurations.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dhcpConfigurations.tsp @@ -41,7 +41,7 @@ interface WorkloadNetworkDhcpConfigurations { #suppress "@azure-tools/typespec-azure-core/no-openapi" "Can not change existing operationId." @operationId("WorkloadNetworks_UpdateDhcp") - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; #suppress "deprecated" diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsServices.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsServices.tsp index a3c952ef8fcb..2c84e02ab431 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsServices.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsServices.tsp @@ -37,7 +37,7 @@ interface WorkloadNetworkDnsServices { #suppress "@azure-tools/typespec-azure-core/no-openapi" "Can not change existing operationId." @operationId("WorkloadNetworks_UpdateDnsService") - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync< WorkloadNetworkDnsService, WorkloadNetworkDnsService diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsZones.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsZones.tsp index ca9875dd2f10..f10011098789 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsZones.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-dnsZones.tsp @@ -34,7 +34,7 @@ interface WorkloadNetworkDnsZones { #suppress "@azure-tools/typespec-azure-core/no-openapi" "Can not change existing operationId." @operationId("WorkloadNetworks_UpdateDnsZone") - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "DnsZoneIdParameter should be last, but it is breaking to correct it." diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-portMirroringProfiles.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-portMirroringProfiles.tsp index 17d62da98daa..adbbea18041e 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-portMirroringProfiles.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-portMirroringProfiles.tsp @@ -34,7 +34,7 @@ interface WorkloadNetworkPortMirroringProfiles { #suppress "@azure-tools/typespec-azure-core/no-openapi" "Can not change existing operationId." @operationId("WorkloadNetworks_UpdatePortMirroring") - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync< WorkloadNetworkPortMirroring, WorkloadNetworkPortMirroring diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-segments.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-segments.tsp index c4ebb4869601..fd6e34d57a4f 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-segments.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-segments.tsp @@ -31,7 +31,7 @@ interface WorkloadNetworkSegments { #suppress "@azure-tools/typespec-azure-core/no-openapi" "Can not change existing operationId." @operationId("WorkloadNetworks_UpdateSegments") - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; #suppress "deprecated" diff --git a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-vmGroups.tsp b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-vmGroups.tsp index 7c4cb40b2172..8ca086546740 100644 --- a/specification/vmware/Microsoft.AVS.Management/workloadNetworks-vmGroups.tsp +++ b/specification/vmware/Microsoft.AVS.Management/workloadNetworks-vmGroups.tsp @@ -34,7 +34,7 @@ interface WorkloadNetworkVmGroups { #suppress "@azure-tools/typespec-azure-core/no-openapi" "Can not change existing operationId." @operationId("WorkloadNetworks_UpdateVMGroup") - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-operation" "VmGroupIdParameter should be last, but it is breaking to correct it." diff --git a/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPDiscoverySite.tsp b/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPDiscoverySite.tsp index 004eec2b2c31..ca20cf351897 100644 --- a/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPDiscoverySite.tsp +++ b/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPDiscoverySite.tsp @@ -46,7 +46,7 @@ interface SAPDiscoverySites { /** * Updates a SAP Migration discovery site resource. */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmTagsPatchSync; /** diff --git a/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPInstance.tsp b/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPInstance.tsp index f7cd091c4448..ce27c2335c5b 100644 --- a/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPInstance.tsp +++ b/specification/workloads/Workloads.SAPDiscoverySite.Management/SAPInstance.tsp @@ -42,7 +42,7 @@ interface SAPInstances { /** * Updates the SAP Instance resource. */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmTagsPatchSync; /** diff --git a/specification/workloads/Workloads.SAPDiscoverySite.Management/ServerInstance.tsp b/specification/workloads/Workloads.SAPDiscoverySite.Management/ServerInstance.tsp index 17f778f4cb08..e53989de18e4 100644 --- a/specification/workloads/Workloads.SAPDiscoverySite.Management/ServerInstance.tsp +++ b/specification/workloads/Workloads.SAPDiscoverySite.Management/ServerInstance.tsp @@ -39,7 +39,7 @@ interface ServerInstances { /** * Updates the Server Instance resource. This operation on a resource by end user will return a Bad Request error. */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchSync; /** diff --git a/specification/workloads/Workloads.SAPMonitor.Management/Monitor.tsp b/specification/workloads/Workloads.SAPMonitor.Management/Monitor.tsp index 187253a624c0..82af5294b26b 100644 --- a/specification/workloads/Workloads.SAPMonitor.Management/Monitor.tsp +++ b/specification/workloads/Workloads.SAPMonitor.Management/Monitor.tsp @@ -41,7 +41,7 @@ interface Monitors { /** * Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name. */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync; /** diff --git a/specification/workloads/Workloads.SAPMonitor.Management/SapLandscapeMonitor.tsp b/specification/workloads/Workloads.SAPMonitor.Management/SapLandscapeMonitor.tsp index 2375df3651ad..b7404b62b9b7 100644 --- a/specification/workloads/Workloads.SAPMonitor.Management/SapLandscapeMonitor.tsp +++ b/specification/workloads/Workloads.SAPMonitor.Management/SapLandscapeMonitor.tsp @@ -44,7 +44,7 @@ interface SapLandscapeMonitor { /** * Patches the SAP Landscape Monitor Dashboard for the specified subscription, resource group, and SAP monitor name. */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchSync< SapLandscapeMonitorResource, SapLandscapeMonitorResource diff --git a/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPApplicationServerInstance.tsp b/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPApplicationServerInstance.tsp index 0325a37abe21..b466fb575239 100644 --- a/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPApplicationServerInstance.tsp +++ b/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPApplicationServerInstance.tsp @@ -39,7 +39,7 @@ interface SAPApplicationServerInstances { /** * Puts the SAP Application Server Instance resource. */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchSync< SAPApplicationServerInstance, UpdateSAPApplicationInstanceRequest diff --git a/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPCentralServerInstance.tsp b/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPCentralServerInstance.tsp index 568589fd0d53..b43f94a47bf9 100644 --- a/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPCentralServerInstance.tsp +++ b/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPCentralServerInstance.tsp @@ -39,7 +39,7 @@ interface SAPCentralServerInstances { /** * Updates the SAP Central Services Instance resource. <br><br>This can be used to update tags on the resource. */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchSync< SAPCentralServerInstance, UpdateSAPCentralInstanceRequest diff --git a/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPDatabaseInstance.tsp b/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPDatabaseInstance.tsp index a95ff227952a..2eac63cdf8e7 100644 --- a/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPDatabaseInstance.tsp +++ b/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPDatabaseInstance.tsp @@ -38,7 +38,7 @@ interface SAPDatabaseInstances { /** * Updates the Database resource. */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchSync< SAPDatabaseInstance, UpdateSAPDatabaseInstanceRequest diff --git a/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPVirtualInstance.tsp b/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPVirtualInstance.tsp index 30322a827a4d..aa4bae507d6b 100644 --- a/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPVirtualInstance.tsp +++ b/specification/workloads/Workloads.SAPVirtualInstance.Management/SAPVirtualInstance.tsp @@ -36,7 +36,7 @@ interface SAPVirtualInstances { /** * Updates a Virtual Instance for SAP solutions resource */ - @parameterVisibility + @patch(#{ implicitOptionality: false }) update is ArmCustomPatchAsync< SAPVirtualInstance, UpdateSAPVirtualInstanceRequest From f61a4d3016bd4f1788378d8f1678d7b4168ccd43 Mon Sep 17 00:00:00 2001 From: Will Temple Date: Wed, 26 Feb 2025 15:40:14 -0500 Subject: [PATCH 09/17] ScVmm: use Lifecycle.Read instead of 'read' in augmentation --- specification/scvmm/ScVmm.Management/BackCompat.tsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/scvmm/ScVmm.Management/BackCompat.tsp b/specification/scvmm/ScVmm.Management/BackCompat.tsp index 1d42eb88d770..c3c19443400b 100644 --- a/specification/scvmm/ScVmm.Management/BackCompat.tsp +++ b/specification/scvmm/ScVmm.Management/BackCompat.tsp @@ -1,3 +1,3 @@ import "@azure-tools/typespec-azure-core"; -@@visibility(Azure.Core.Page.nextLink, "read"); +@@visibility(Azure.Core.Page.nextLink, Lifecycle.Read); From 1050e33d36b7122129d1867a87c5f5831c2b5908 Mon Sep 17 00:00:00 2001 From: Will Temple Date: Wed, 26 Feb 2025 15:41:40 -0500 Subject: [PATCH 10/17] Keyvault: remove redundant @patch --- specification/keyvault/Security.KeyVault.Certificates/routes.tsp | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/keyvault/Security.KeyVault.Certificates/routes.tsp b/specification/keyvault/Security.KeyVault.Certificates/routes.tsp index 4b23019e0544..56be40e6fb61 100644 --- a/specification/keyvault/Security.KeyVault.Certificates/routes.tsp +++ b/specification/keyvault/Security.KeyVault.Certificates/routes.tsp @@ -398,7 +398,6 @@ op getCertificate is KeyVaultOperation< @patch(#{ implicitOptionality: false }) @summary("Updates a certificate operation.") @route("/certificates/{certificate-name}/pending") -@patch op updateCertificateOperation is KeyVaultOperation< { /** From 391ed7510773a76fc5215fd407d2b334d8c0195a Mon Sep 17 00:00:00 2001 From: Will Temple Date: Wed, 26 Feb 2025 15:48:50 -0500 Subject: [PATCH 11/17] connectedcache: Use Lifecycle instead of strings in augmentation --- .../ConnectedCache.Management/enterpriseMccCacheNodes.tsp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/connectedcache/ConnectedCache.Management/enterpriseMccCacheNodes.tsp b/specification/connectedcache/ConnectedCache.Management/enterpriseMccCacheNodes.tsp index b16ea1d63000..d038829f13db 100644 --- a/specification/connectedcache/ConnectedCache.Management/enterpriseMccCacheNodes.tsp +++ b/specification/connectedcache/ConnectedCache.Management/enterpriseMccCacheNodes.tsp @@ -47,7 +47,7 @@ interface EnterpriseMccCacheNodesOperations { } @@visibility(Azure.ResourceManager.TrackedResource.properties, - "create", - "update", - "read" + Lifecycle.Create, + Lifecycle.Update, + Lifecycle.Read ); From 193a16847f030a8d29c88281df6ce2f5d6f760ed Mon Sep 17 00:00:00 2001 From: Will Temple Date: Thu, 27 Feb 2025 12:22:35 -0500 Subject: [PATCH 12/17] app: change visibility of SessionResourceFile.name to be more restricted to satisfy lint rule --- .../models/code-execution-file.tsp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/specification/app/Microsoft.App.DynamicSessions/models/code-execution-file.tsp b/specification/app/Microsoft.App.DynamicSessions/models/code-execution-file.tsp index 12ddeddaf00b..b6bdbec67d14 100644 --- a/specification/app/Microsoft.App.DynamicSessions/models/code-execution-file.tsp +++ b/specification/app/Microsoft.App.DynamicSessions/models/code-execution-file.tsp @@ -16,13 +16,7 @@ model SessionResourceFile { @key("name") @segment("files") @doc("The name of the file.") - @visibility( - Lifecycle.Read, - Lifecycle.Query, - Lifecycle.Create, - Lifecycle.Update, - Lifecycle.Delete - ) + @visibility(Lifecycle.Read, Lifecycle.Create, Lifecycle.Update) name: string; @doc("The type of the session resource file.") From fd0fb9cd99cb77661d6ff99c957d8767ea392fe5 Mon Sep 17 00:00:00 2001 From: Will Temple Date: Fri, 28 Feb 2025 11:05:47 -0500 Subject: [PATCH 13/17] Use web deps --- package.json | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index aa65e35fe277..1fcb006248af 100644 --- a/package.json +++ b/package.json @@ -2,25 +2,25 @@ "name": "azure-rest-api-specs", "devDependencies": { "@azure-tools/typespec-apiview": "0.5.0", - "@azure-tools/typespec-autorest": "file:../typespec-azure/packages/typespec-autorest", - "@azure-tools/typespec-azure-core": "file:../typespec-azure/packages/typespec-azure-core", - "@azure-tools/typespec-azure-portal-core": "file:../typespec-azure/packages/typespec-azure-portal-core", - "@azure-tools/typespec-azure-resource-manager": "file:../typespec-azure/packages/typespec-azure-resource-manager", - "@azure-tools/typespec-azure-rulesets": "file:../typespec-azure/packages/typespec-azure-rulesets", + "@azure-tools/typespec-autorest": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE0Ny9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Fazure-tools-typespec-autorest-0.52.0-pr-2263.20250227.17.tgz", + "@azure-tools/typespec-azure-core": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE0Ny9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Fazure-tools-typespec-azure-core-0.52.0-pr-2263.20250227.17.tgz", + "@azure-tools/typespec-azure-portal-core": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE0Ny9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Fazure-tools-typespec-azure-portal-core-0.52.0-pr-2263.20250227.17.tgz", + "@azure-tools/typespec-azure-resource-manager": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE0Ny9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Fazure-tools-typespec-azure-resource-manager-0.52.0-pr-2263.20250227.17.tgz", + "@azure-tools/typespec-azure-rulesets": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE0Ny9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Fazure-tools-typespec-azure-rulesets-0.52.0-pr-2263.20250227.17.tgz", "@azure-tools/typespec-client-generator-cli": "0.15.3", - "@azure-tools/typespec-client-generator-core": "file:../typespec-azure/packages/typespec-client-generator-core", + "@azure-tools/typespec-client-generator-core": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE0Ny9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Fazure-tools-typespec-client-generator-core-0.52.0-pr-2263.20250227.17.tgz", "@azure-tools/typespec-liftr-base": "0.8.0", "@azure/avocado": "^0.9.1", "@autorest/openapi-to-typespec": "0.10.10", - "@typespec/compiler": "file:../typespec-azure/core/packages/compiler", - "@typespec/http": "file:../typespec-azure/core/packages/http", - "@typespec/openapi": "file:../typespec-azure/core/packages/openapi", - "@typespec/openapi3": "file:../typespec-azure/core/packages/openapi3", - "@typespec/prettier-plugin-typespec": "file:../typespec-azure/core/packages/prettier-plugin-typespec", - "@typespec/rest": "file:../typespec-azure/core/packages/rest", - "@typespec/streams": "file:../typespec-azure/core/packages/streams", - "@typespec/versioning": "file:../typespec-azure/core/packages/versioning", - "@typespec/xml": "file:../typespec-azure/core/packages/xml", + "@typespec/compiler": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE1MS9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Ftypespec-compiler-0.66.0-pr-6088.20250227.55.tgz", + "@typespec/http": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE1MS9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Ftypespec-http-0.66.0-pr-6088.20250227.55.tgz", + "@typespec/openapi": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE1MS9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Ftypespec-openapi-0.66.0-pr-6088.20250227.55.tgz", + "@typespec/openapi3": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE1MS9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Ftypespec-openapi3-0.66.0-pr-6088.20250227.55.tgz", + "@typespec/prettier-plugin-typespec": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE1MS9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Ftypespec-prettier-plugin-typespec-0.66.0-pr-6088.20250227.55.tgz", + "@typespec/rest": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE1MS9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Ftypespec-rest-0.66.0-pr-6088.20250227.55.tgz", + "@typespec/streams": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE1MS9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Ftypespec-streams-0.66.0-pr-6088.20250227.55.tgz", + "@typespec/versioning": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE1MS9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Ftypespec-versioning-0.66.0-pr-6088.20250227.55.tgz", + "@typespec/xml": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE1MS9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Ftypespec-xml-0.66.0-pr-6088.20250227.55.tgz", "azure-rest-api-specs-eng-tools": "file:eng/tools", "oav": "^3.5.1", "prettier": "~3.3.3", From f2d670147fbf5e0d57b96620a9db8d866712db42 Mon Sep 17 00:00:00 2001 From: Will Temple Date: Mon, 3 Mar 2025 11:43:05 -0500 Subject: [PATCH 14/17] Reset package.json to use next publications. --- package.json | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 1fcb006248af..150583e862b4 100644 --- a/package.json +++ b/package.json @@ -1,26 +1,23 @@ { "name": "azure-rest-api-specs", "devDependencies": { - "@azure-tools/typespec-apiview": "0.5.0", - "@azure-tools/typespec-autorest": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE0Ny9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Fazure-tools-typespec-autorest-0.52.0-pr-2263.20250227.17.tgz", - "@azure-tools/typespec-azure-core": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE0Ny9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Fazure-tools-typespec-azure-core-0.52.0-pr-2263.20250227.17.tgz", - "@azure-tools/typespec-azure-portal-core": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE0Ny9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Fazure-tools-typespec-azure-portal-core-0.52.0-pr-2263.20250227.17.tgz", - "@azure-tools/typespec-azure-resource-manager": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE0Ny9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Fazure-tools-typespec-azure-resource-manager-0.52.0-pr-2263.20250227.17.tgz", - "@azure-tools/typespec-azure-rulesets": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE0Ny9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Fazure-tools-typespec-azure-rulesets-0.52.0-pr-2263.20250227.17.tgz", - "@azure-tools/typespec-client-generator-cli": "0.15.3", - "@azure-tools/typespec-client-generator-core": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE0Ny9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Fazure-tools-typespec-client-generator-core-0.52.0-pr-2263.20250227.17.tgz", + "@azure-tools/typespec-autorest": "next", + "@azure-tools/typespec-azure-core": "next", + "@azure-tools/typespec-azure-portal-core": "next", + "@azure-tools/typespec-azure-resource-manager": "next", + "@azure-tools/typespec-azure-rulesets": "next", + "@azure-tools/typespec-client-generator-core": "next", "@azure-tools/typespec-liftr-base": "0.8.0", "@azure/avocado": "^0.9.1", - "@autorest/openapi-to-typespec": "0.10.10", - "@typespec/compiler": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE1MS9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Ftypespec-compiler-0.66.0-pr-6088.20250227.55.tgz", - "@typespec/http": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE1MS9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Ftypespec-http-0.66.0-pr-6088.20250227.55.tgz", - "@typespec/openapi": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE1MS9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Ftypespec-openapi-0.66.0-pr-6088.20250227.55.tgz", - "@typespec/openapi3": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE1MS9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Ftypespec-openapi3-0.66.0-pr-6088.20250227.55.tgz", - "@typespec/prettier-plugin-typespec": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE1MS9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Ftypespec-prettier-plugin-typespec-0.66.0-pr-6088.20250227.55.tgz", - "@typespec/rest": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE1MS9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Ftypespec-rest-0.66.0-pr-6088.20250227.55.tgz", - "@typespec/streams": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE1MS9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Ftypespec-streams-0.66.0-pr-6088.20250227.55.tgz", - "@typespec/versioning": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE1MS9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Ftypespec-versioning-0.66.0-pr-6088.20250227.55.tgz", - "@typespec/xml": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNDYwNDE1MS9hcnRpZmFjdE5hbWUvcGFja2FnZXM1/content?format=file&subPath=%2Ftypespec-xml-0.66.0-pr-6088.20250227.55.tgz", + "@typespec/compiler": "next", + "@typespec/http": "next", + "@typespec/openapi": "next", + "@typespec/openapi3": "next", + "@typespec/prettier-plugin-typespec": "next", + "@typespec/rest": "next", + "@typespec/streams": "next", + "@typespec/versioning": "next", + "@typespec/xml": "next", "azure-rest-api-specs-eng-tools": "file:eng/tools", "oav": "^3.5.1", "prettier": "~3.3.3", @@ -31,4 +28,4 @@ "npm": ">=9.0.0" }, "private": true -} \ No newline at end of file +} From 884308667bdb37cd55cece866beecf185b4f9ef8 Mon Sep 17 00:00:00 2001 From: Will Temple Date: Mon, 3 Mar 2025 14:51:39 -0500 Subject: [PATCH 15/17] appcomplianceautomation: restore usings incorrectly removed --- .../AppComplianceAutomation.Management/models/models.tsp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/appcomplianceautomation/AppComplianceAutomation.Management/models/models.tsp b/specification/appcomplianceautomation/AppComplianceAutomation.Management/models/models.tsp index 69b4d2fd0cda..b05dfdc43ebf 100644 --- a/specification/appcomplianceautomation/AppComplianceAutomation.Management/models/models.tsp +++ b/specification/appcomplianceautomation/AppComplianceAutomation.Management/models/models.tsp @@ -6,7 +6,9 @@ import "@azure-tools/typespec-client-generator-core"; import "@azure-tools/typespec-azure-core"; import "@typespec/openapi"; +using TypeSpec.Rest; using TypeSpec.Http; +using Azure.ResourceManager; using Azure.ResourceManager.Foundations; using OpenAPI; using Azure.Core; From ee4149ca55df7467b2fd5887a63857e6c63d24c6 Mon Sep 17 00:00:00 2001 From: Will Temple Date: Mon, 3 Mar 2025 14:55:28 -0500 Subject: [PATCH 16/17] batch: remove errant model expr augments --- specification/batch/Azure.Batch/client.tsp | 2 -- 1 file changed, 2 deletions(-) diff --git a/specification/batch/Azure.Batch/client.tsp b/specification/batch/Azure.Batch/client.tsp index 7e45b39dc549..6457e77203e7 100644 --- a/specification/batch/Azure.Batch/client.tsp +++ b/specification/batch/Azure.Batch/client.tsp @@ -314,7 +314,6 @@ interface BatchClient { @@access(Azure.Batch.BatchTaskAddCollectionResult, Access.public, "java"); @@access(Azure.Batch.BatchTask, Access.public, "java"); @@access(Azure.Batch.BatchTaskListSubtasksResult, Access.public, "java"); -@@access(Azure.Batch.BatchTaskFileClientPathContent, Access.public, "java"); @@access(Azure.Batch.BatchNodeFileListResult, Access.public, "java"); @@access(Azure.Batch.BatchNodeUserCreateContent, Access.public, "java"); @@access(Azure.Batch.BatchNodeUserUpdateContent, Access.public, "java"); @@ -329,6 +328,5 @@ interface BatchClient { @@access(Azure.Batch.BatchNodeListResult, Access.public, "java"); @@access(Azure.Batch.BatchNodeVMExtension, Access.public, "java"); @@access(Azure.Batch.BatchNodeVMExtensionListResult, Access.public, "java"); -@@access(Azure.Batch.BatchNodeFileClientPathContent, Access.public, "java"); @@access(Azure.Batch.BatchNodeFileListResult, Access.public, "java"); @@access(Azure.Batch.BatchError, Access.public, "java"); From dfaa0d185fbeea9b1265a2ebd4813b8388b756ff Mon Sep 17 00:00:00 2001 From: Will Temple Date: Mon, 3 Mar 2025 15:00:13 -0500 Subject: [PATCH 17/17] standbypool: update visibility to Lifecycle --- specification/standbypool/StandbyPool.Management/service.tsp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/standbypool/StandbyPool.Management/service.tsp b/specification/standbypool/StandbyPool.Management/service.tsp index 48f922f28c23..b107c06c8e67 100644 --- a/specification/standbypool/StandbyPool.Management/service.tsp +++ b/specification/standbypool/StandbyPool.Management/service.tsp @@ -75,11 +75,11 @@ model PoolResourceStateCount { @doc("Displays StandbyPool status.") model PoolStatus { @doc("Displays the healthy state of the StandbyPool.") - @visibility("read") + @visibility(Lifecycle.Read) code: HealthStateCode; @doc("Displays the StandbyPool health state details.") - @visibility("read") + @visibility(Lifecycle.Read) message?: string; }