From 3b72bea1b6c586a30df3a619819ff3d9e9f46ff5 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 9 May 2025 21:41:02 +0000 Subject: [PATCH] CodeGen from PR 33231 in Azure/azure-rest-api-specs Merge a9ff87f322997b8254e633e0c6d49ccae6fddb5c into 98b362764645e1068e3c8cdd0e3b7cbcd00f1f48 --- ....ResourceManager.MachineLearning.net8.0.cs | 2 - ...eManager.MachineLearning.netstandard2.0.cs | 2 - .../ArmMachineLearningModelFactory.cs | 4228 ++++++++--------- .../Extensions/MachineLearningExtensions.cs | 324 +- .../MockableMachineLearningArmClient.cs | 96 +- ...bleMachineLearningResourceGroupResource.cs | 88 +- ...ableMachineLearningSubscriptionResource.cs | 132 +- .../MachineLearningWorkspaceResource.cs | 676 +-- .../MachineLearningProvisioningState.cs | 2 +- .../RegistryAcrDetails.Serialization.cs | 45 +- .../Generated/Models/RegistryAcrDetails.cs | 22 +- .../StorageAccountDetails.Serialization.cs | 45 +- .../Generated/Models/StorageAccountDetails.cs | 22 +- .../UserCreatedAcrAccount.Serialization.cs | 177 - .../Generated/Models/UserCreatedAcrAccount.cs | 81 - ...UserCreatedStorageAccount.Serialization.cs | 177 - .../Models/UserCreatedStorageAccount.cs | 81 - .../src/autorest.md | 2 +- ...ample_MachineLearningRegistryCollection.cs | 235 +- .../Sample_MachineLearningRegistryResource.cs | 85 +- ...Sample_MachineLearningWorkspaceResource.cs | 58 +- .../Sample_SubscriptionResourceExtensions.cs | 62 +- sdk/storage/ci.yml | 2 + 23 files changed, 2847 insertions(+), 3797 deletions(-) delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedAcrAccount.Serialization.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedAcrAccount.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedStorageAccount.Serialization.cs delete mode 100644 sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedStorageAccount.cs diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.net8.0.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.net8.0.cs index f6f7c006726f..677866360cad 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.net8.0.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.net8.0.cs @@ -9626,7 +9626,6 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public partial class RegistryAcrDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public RegistryAcrDetails() { } - public Azure.Core.ResourceIdentifier ArmResourceId { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.SystemCreatedAcrAccount SystemCreatedAcrAccount { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.MachineLearning.Models.RegistryAcrDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -10031,7 +10030,6 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public partial class StorageAccountDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public StorageAccountDetails() { } - public Azure.Core.ResourceIdentifier ArmResourceId { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.SystemCreatedStorageAccount SystemCreatedStorageAccount { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.MachineLearning.Models.StorageAccountDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs index f6f7c006726f..677866360cad 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/api/Azure.ResourceManager.MachineLearning.netstandard2.0.cs @@ -9626,7 +9626,6 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public partial class RegistryAcrDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public RegistryAcrDetails() { } - public Azure.Core.ResourceIdentifier ArmResourceId { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.SystemCreatedAcrAccount SystemCreatedAcrAccount { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.MachineLearning.Models.RegistryAcrDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -10031,7 +10030,6 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public partial class StorageAccountDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public StorageAccountDetails() { } - public Azure.Core.ResourceIdentifier ArmResourceId { get { throw null; } set { } } public Azure.ResourceManager.MachineLearning.Models.SystemCreatedStorageAccount SystemCreatedStorageAccount { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.MachineLearning.Models.StorageAccountDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs index c064a17675dd..8605dce3eca8 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs @@ -17,6 +17,37 @@ namespace Azure.ResourceManager.MachineLearning.Models /// Model factory for models. public static partial class ArmMachineLearningModelFactory { + /// Initializes a new instance of . + /// Specifies the resource ID. + /// Region of the AML workspace in the id. + /// Specifies the resource type. + /// An enum describing the unit of usage measurement. + /// The current usage of the resource. + /// The maximum permitted usage of the resource. + /// The name of the type of usage. + /// A new instance for mocking. + public static MachineLearningUsage MachineLearningUsage(string id = null, string amlWorkspaceLocation = null, string usageType = null, MachineLearningUsageUnit? unit = null, long? currentValue = null, long? limit = null, MachineLearningUsageName name = null) + { + return new MachineLearningUsage( + id, + amlWorkspaceLocation, + usageType, + unit, + currentValue, + limit, + name, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The name of the resource. + /// The localized name of the resource. + /// A new instance for mocking. + public static MachineLearningUsageName MachineLearningUsageName(string value = null, string localizedValue = null) + { + return new MachineLearningUsageName(value, localizedValue, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The error object. /// A new instance for mocking. @@ -25,102 +56,108 @@ public static MachineLearningError MachineLearningError(ResponseError error = nu return new MachineLearningError(error, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// The identity of the resource. - /// - /// The sku of the workspace. - /// The immutable id associated with this workspace. - /// The description of this workspace. - /// The friendly name for this workspace. This name in mutable. - /// ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created. - /// ARM id of the application insights associated with this workspace. - /// ARM id of the container registry associated with this workspace. - /// ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created. - /// Url for the discovery service to identify regional endpoints for machine learning experimentation services. - /// The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. - /// The encryption settings of Azure ML workspace. - /// The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service. - /// The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace. - /// Count of private connections in the workspace. - /// The compute name for image build. - /// The flag to indicate whether to allow public access when behind VNet. - /// Whether requests from Public Network are allowed. - /// The list of private endpoint connections in the workspace. - /// Settings for serverless compute created in the workspace. - /// The list of shared private link resources in this workspace. - /// The notebook info of Azure ML workspace. - /// The service managed resource settings. - /// The user assigned identity resource id that represents the workspace identity. - /// The tenant id associated with this workspace. - /// If the storage associated with the workspace has hierarchical namespace(HNS) enabled. - /// The URI associated with this workspace that machine learning flow must point at to set up tracking. - /// Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. - /// Managed Network settings for a machine learning workspace. - /// Settings for feature store type workspace. - /// - /// - /// - /// WorkspaceHub's configuration object. - /// A new instance for mocking. - public static MachineLearningWorkspaceData MachineLearningWorkspaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningSku sku = null, string workspaceId = null, string description = null, string friendlyName = null, string keyVault = null, string applicationInsights = null, string containerRegistry = null, string storageAccount = null, Uri discoveryUri = null, MachineLearningProvisioningState? provisioningState = null, MachineLearningEncryptionSetting encryption = null, bool? isHbiWorkspace = null, string serviceProvisionedResourceGroup = null, int? privateLinkCount = null, string imageBuildCompute = null, bool? allowPublicAccessWhenBehindVnet = null, PublicNetworkAccess? publicNetworkAccessType = null, IEnumerable privateEndpointConnections = null, ServerlessComputeSettings serverlessComputeSettings = null, IEnumerable sharedPrivateLinkResources = null, MachineLearningNotebookResourceInfo notebookInfo = null, int? cosmosDbCollectionsThroughput = null, string primaryUserAssignedIdentity = null, Guid? tenantId = null, bool? isStorageHnsEnabled = null, Uri mlFlowTrackingUri = null, bool? isV1LegacyMode = null, ManagedNetworkSettings managedNetwork = null, FeatureStoreSettings featureStoreSettings = null, IEnumerable associatedWorkspaces = null, bool? enableDataIsolation = null, ResourceIdentifier hubResourceId = null, WorkspaceHubConfig workspaceHubConfig = null) + /// Initializes a new instance of . + /// The name of the virtual machine size. + /// The family name of the virtual machine size. + /// The number of vCPUs supported by the virtual machine size. + /// The number of gPUs supported by the virtual machine size. + /// The OS VHD disk size, in MB, allowed by the virtual machine size. + /// The resource volume size, in MB, allowed by the virtual machine size. + /// The amount of memory, in GB, supported by the virtual machine size. + /// Specifies if the virtual machine size supports low priority VMs. + /// Specifies if the virtual machine size supports premium IO. + /// The estimated price information for using a VM. + /// Specifies the compute types supported by the virtual machine size. + /// A new instance for mocking. + public static MachineLearningVmSize MachineLearningVmSize(string name = null, string family = null, int? vCpus = null, int? gpus = null, int? osVhdSizeMB = null, int? maxResourceVolumeMB = null, double? memoryGB = null, bool? lowPriorityCapable = null, bool? isPremiumIOSupported = null, MachineLearningEstimatedVmPrices estimatedVmPrices = null, IEnumerable supportedComputeTypes = null) { - tags ??= new Dictionary(); - privateEndpointConnections ??= new List(); - sharedPrivateLinkResources ??= new List(); - associatedWorkspaces ??= new List(); + supportedComputeTypes ??= new List(); - return new MachineLearningWorkspaceData( + return new MachineLearningVmSize( + name, + family, + vCpus, + gpus, + osVhdSizeMB, + maxResourceVolumeMB, + memoryGB, + lowPriorityCapable, + isPremiumIOSupported, + estimatedVmPrices, + supportedComputeTypes?.ToList(), + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Three lettered code specifying the currency of the VM price. Example: USD. + /// The unit of time measurement for the specified VM price. Example: OneHour. + /// The list of estimated prices for using a VM of a particular OS type, tier, etc. + /// A new instance for mocking. + public static MachineLearningEstimatedVmPrices MachineLearningEstimatedVmPrices(MachineLearningBillingCurrency billingCurrency = default, MachineLearningUnitOfMeasure unitOfMeasure = default, IEnumerable values = null) + { + values ??= new List(); + + return new MachineLearningEstimatedVmPrices(billingCurrency, unitOfMeasure, values?.ToList(), serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The price charged for using the VM. + /// Operating system type used by the VM. + /// The type of the VM. + /// A new instance for mocking. + public static MachineLearningEstimatedVmPrice MachineLearningEstimatedVmPrice(double retailPrice = default, MachineLearningVmPriceOSType osType = default, MachineLearningVmTier vmTier = default) + { + return new MachineLearningEstimatedVmPrice(retailPrice, osType, vmTier, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Specifies the resource ID. + /// Specifies the resource type. + /// The maximum permitted quota of the resource. + /// An enum describing the unit of quota measurement. + /// Status of update workspace quota. + /// A new instance for mocking. + public static MachineLearningWorkspaceQuotaUpdate MachineLearningWorkspaceQuotaUpdate(string id = null, string updateWorkspaceQuotasType = null, long? limit = null, MachineLearningQuotaUnit? unit = null, MachineLearningWorkspaceQuotaStatus? status = null) + { + return new MachineLearningWorkspaceQuotaUpdate( + id, + updateWorkspaceQuotasType, + limit, + unit, + status, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Specifies the resource ID. + /// Region of the AML workspace in the id. + /// Specifies the resource type. + /// Name of the resource. + /// The maximum permitted quota of the resource. + /// An enum describing the unit of quota measurement. + /// A new instance for mocking. + public static MachineLearningResourceQuota MachineLearningResourceQuota(string id = null, string amlWorkspaceLocation = null, string resourceQuotaType = null, MachineLearningResourceName name = null, long? limit = null, MachineLearningQuotaUnit? unit = null) + { + return new MachineLearningResourceQuota( id, + amlWorkspaceLocation, + resourceQuotaType, name, - resourceType, - systemData, - tags, - location, - identity, - kind, - sku, - workspaceId, - description, - friendlyName, - keyVault, - applicationInsights, - containerRegistry, - storageAccount, - discoveryUri, - provisioningState, - encryption, - isHbiWorkspace, - serviceProvisionedResourceGroup, - privateLinkCount, - imageBuildCompute, - allowPublicAccessWhenBehindVnet, - publicNetworkAccessType, - privateEndpointConnections?.ToList(), - serverlessComputeSettings, - sharedPrivateLinkResources?.ToList(), - notebookInfo, - cosmosDbCollectionsThroughput != null ? new ServiceManagedResourcesSettings(new CosmosDbSettings(cosmosDbCollectionsThroughput, serializedAdditionalRawData: null), serializedAdditionalRawData: null) : null, - primaryUserAssignedIdentity, - tenantId, - isStorageHnsEnabled, - mlFlowTrackingUri, - isV1LegacyMode, - managedNetwork, - featureStoreSettings, - associatedWorkspaces?.ToList(), - enableDataIsolation, - hubResourceId, - workspaceHubConfig, + limit, + unit, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// The name of the resource. + /// The localized name of the resource. + /// A new instance for mocking. + public static MachineLearningResourceName MachineLearningResourceName(string value = null, string localizedValue = null) + { + return new MachineLearningResourceName(value, localizedValue, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. @@ -129,15 +166,17 @@ public static MachineLearningWorkspaceData MachineLearningWorkspaceData(Resource /// The location. /// The identity of the resource. /// The sku of the workspace. - /// The resource of private end point. - /// A collection of information about the state of the connection between service consumer and provider. - /// The provisioning state of the private endpoint connection resource. - /// A new instance for mocking. - public static MachineLearningPrivateEndpointConnectionData MachineLearningPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, MachineLearningSku sku = null, ResourceIdentifier subResourceId = null, MachineLearningPrivateLinkServiceConnectionState connectionState = null, MachineLearningPrivateEndpointConnectionProvisioningState? provisioningState = null) + /// + /// Compute properties + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , and . + /// + /// A new instance for mocking. + public static MachineLearningComputeData MachineLearningComputeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, MachineLearningSku sku = null, MachineLearningComputeProperties properties = null) { tags ??= new Dictionary(); - return new MachineLearningPrivateEndpointConnectionData( + return new MachineLearningComputeData( id, name, resourceType, @@ -146,451 +185,382 @@ public static MachineLearningPrivateEndpointConnectionData MachineLearningPrivat location, identity, sku, - subResourceId != null ? ResourceManagerModelFactory.SubResource(subResourceId) : null, - connectionState, - provisioningState, + properties, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The ARM identifier for Private Endpoint. - /// A new instance for mocking. - public static PrivateEndpointBase PrivateEndpointBase(ResourceIdentifier id = null) + /// Initializes a new instance of . + /// The type of compute. + /// Location for the underlying compute. + /// The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. + /// The description of the Machine Learning compute. + /// The time at which the compute was created. + /// The time at which the compute was last modified. + /// ARM resource id of the underlying compute. + /// Errors during provisioning. + /// Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. + /// Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. + /// A new instance for mocking. + public static MachineLearningComputeProperties MachineLearningComputeProperties(string computeType = null, string computeLocation = null, MachineLearningProvisioningState? provisioningState = null, string description = null, DateTimeOffset? createdOn = null, DateTimeOffset? modifiedOn = null, ResourceIdentifier resourceId = null, IEnumerable provisioningErrors = null, bool? isAttachedCompute = null, bool? disableLocalAuth = null) { - return new PrivateEndpointBase(id, serializedAdditionalRawData: null); - } + provisioningErrors ??= new List(); - /// Initializes a new instance of . - /// - /// the data plane resourceId that used to initialize notebook component. - /// The error that occurs when preparing notebook. - /// A new instance for mocking. - public static MachineLearningNotebookResourceInfo MachineLearningNotebookResourceInfo(string fqdn = null, string resourceId = null, MachineLearningNotebookPreparationError notebookPreparationError = null) - { - return new MachineLearningNotebookResourceInfo(fqdn, resourceId, notebookPreparationError, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// - /// A new instance for mocking. - public static MachineLearningNotebookPreparationError MachineLearningNotebookPreparationError(string errorMessage = null, int? statusCode = null) - { - return new MachineLearningNotebookPreparationError(errorMessage, statusCode, serializedAdditionalRawData: null); + return new UnknownCompute( + computeType == null ? default : new ComputeType(computeType), + computeLocation, + provisioningState, + description, + createdOn, + modifiedOn, + resourceId, + provisioningErrors?.ToList(), + isAttachedCompute, + disableLocalAuth, + serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Isolation mode for the managed network of a machine learning workspace. - /// - /// - /// Dictionary of <OutboundRule> - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . - /// - /// Status of the Provisioning for the managed network of a machine learning workspace. - /// A new instance for mocking. - public static ManagedNetworkSettings ManagedNetworkSettings(IsolationMode? isolationMode = null, string networkId = null, IDictionary outboundRules = null, ManagedNetworkProvisionStatus status = null) + /// Initializes a new instance of . + /// ID of the compute node. + /// Private IP address of the compute node. + /// Public IP address of the compute node. + /// SSH port number of the node. + /// State of the compute node. Values are idle, running, preparing, unusable, leaving and preempted. + /// ID of the Experiment running on the node, if any else null. + /// A new instance for mocking. + public static AmlComputeNodeInformation AmlComputeNodeInformation(string nodeId = null, IPAddress privateIPAddress = null, IPAddress publicIPAddress = null, int? port = null, MachineLearningNodeState? nodeState = null, string runId = null) { - outboundRules ??= new Dictionary(); - - return new ManagedNetworkSettings(isolationMode, networkId, outboundRules, status, serializedAdditionalRawData: null); + return new AmlComputeNodeInformation( + nodeId, + privateIPAddress, + publicIPAddress, + port, + nodeState, + runId, + serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// - /// A new instance for mocking. - public static MachineLearningWorkspaceDiagnoseResult MachineLearningWorkspaceDiagnoseResult(MachineLearningDiagnoseResultValue value = null) + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// [Required] Additional attributes of the entity. + /// A new instance for mocking. + public static MachineLearningCodeContainerData MachineLearningCodeContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningCodeContainerProperties properties = null) { - return new MachineLearningWorkspaceDiagnoseResult(value, serializedAdditionalRawData: null); + return new MachineLearningCodeContainerData( + id, + name, + resourceType, + systemData, + properties, + serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// - /// - /// - /// - /// - /// - /// - /// - /// - /// A new instance for mocking. - public static MachineLearningDiagnoseResultValue MachineLearningDiagnoseResultValue(IEnumerable userDefinedRouteResults = null, IEnumerable networkSecurityRuleResults = null, IEnumerable resourceLockResults = null, IEnumerable dnsResolutionResults = null, IEnumerable storageAccountResults = null, IEnumerable keyVaultResults = null, IEnumerable containerRegistryResults = null, IEnumerable applicationInsightsResults = null, IEnumerable otherResults = null) + /// Initializes a new instance of . + /// The asset description text. + /// Tag dictionary. Tags can be added, removed, and updated. + /// The asset property dictionary. + /// Is the asset archived?. + /// The latest version inside this container. + /// The next auto incremental version. + /// Provisioning state for the code container. + /// A new instance for mocking. + public static MachineLearningCodeContainerProperties MachineLearningCodeContainerProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, RegistryAssetProvisioningState? provisioningState = null) { - userDefinedRouteResults ??= new List(); - networkSecurityRuleResults ??= new List(); - resourceLockResults ??= new List(); - dnsResolutionResults ??= new List(); - storageAccountResults ??= new List(); - keyVaultResults ??= new List(); - containerRegistryResults ??= new List(); - applicationInsightsResults ??= new List(); - otherResults ??= new List(); + tags ??= new Dictionary(); + properties ??= new Dictionary(); - return new MachineLearningDiagnoseResultValue( - userDefinedRouteResults?.ToList(), - networkSecurityRuleResults?.ToList(), - resourceLockResults?.ToList(), - dnsResolutionResults?.ToList(), - storageAccountResults?.ToList(), - keyVaultResults?.ToList(), - containerRegistryResults?.ToList(), - applicationInsightsResults?.ToList(), - otherResults?.ToList(), - serializedAdditionalRawData: null); + return new MachineLearningCodeContainerProperties( + description, + tags, + properties, + serializedAdditionalRawData: null, + isArchived, + latestVersion, + nextVersion, + provisioningState); } - /// Initializes a new instance of . - /// Code for workspace setup error. - /// Level of workspace setup error. - /// Message of workspace setup error. - /// A new instance for mocking. - public static MachineLearningDiagnoseResult MachineLearningDiagnoseResult(string code = null, MachineLearningDiagnoseResultLevel? level = null, string message = null) + /// Initializes a new instance of . + /// The asset description text. + /// Tag dictionary. Tags can be added, removed, and updated. + /// The asset property dictionary. + /// Is the asset archived?. + /// The latest version inside this container. + /// The next auto incremental version. + /// A new instance for mocking. + public static MachineLearningAssetContainer MachineLearningAssetContainer(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null) { - return new MachineLearningDiagnoseResult(code, level, message, serializedAdditionalRawData: null); + tags ??= new Dictionary(); + properties ??= new Dictionary(); + + return new MachineLearningAssetContainer( + description, + tags, + properties, + serializedAdditionalRawData: null, + isArchived, + latestVersion, + nextVersion); } - /// Initializes a new instance of . - /// - /// - /// - /// - /// - /// A new instance for mocking. - public static MachineLearningWorkspaceGetKeysResult MachineLearningWorkspaceGetKeysResult(string userStorageKey = null, string userStorageResourceId = null, string appInsightsInstrumentationKey = null, MachineLearningContainerRegistryCredentials containerRegistryCredentials = null, MachineLearningWorkspaceGetNotebookKeysResult notebookAccessKeys = null) + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// [Required] Additional attributes of the entity. + /// A new instance for mocking. + public static MachineLearningCodeVersionData MachineLearningCodeVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningCodeVersionProperties properties = null) { - return new MachineLearningWorkspaceGetKeysResult( - userStorageKey, - userStorageResourceId, - appInsightsInstrumentationKey, - containerRegistryCredentials, - notebookAccessKeys, + return new MachineLearningCodeVersionData( + id, + name, + resourceType, + systemData, + properties, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// - /// - /// - /// A new instance for mocking. - public static MachineLearningContainerRegistryCredentials MachineLearningContainerRegistryCredentials(AzureLocation? location = null, string username = null, IEnumerable passwords = null) + /// Initializes a new instance of . + /// The asset description text. + /// Tag dictionary. Tags can be added, removed, and updated. + /// The asset property dictionary. + /// Is the asset archived?. + /// If the name version are system generated (anonymous registration). + /// Uri where code is located. + /// Provisioning state for the code version. + /// A new instance for mocking. + public static MachineLearningCodeVersionProperties MachineLearningCodeVersionProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, bool? isAnonymous = null, Uri codeUri = null, RegistryAssetProvisioningState? provisioningState = null) { - passwords ??= new List(); + tags ??= new Dictionary(); + properties ??= new Dictionary(); - return new MachineLearningContainerRegistryCredentials(location, username, passwords?.ToList(), serializedAdditionalRawData: null); + return new MachineLearningCodeVersionProperties( + description, + tags, + properties, + serializedAdditionalRawData: null, + isArchived, + isAnonymous, + codeUri, + provisioningState); } - /// Initializes a new instance of . - /// - /// - /// A new instance for mocking. - public static MachineLearningPasswordDetail MachineLearningPasswordDetail(string name = null, string value = null) + /// Initializes a new instance of . + /// Container level read, write, list SAS. + /// ID for this upload request. + /// TemporaryBlobReference is the only supported type. + /// A new instance for mocking. + public static PendingUploadResponseDto PendingUploadResponseDto(BlobReferenceForConsumptionDto blobReferenceForConsumption = null, string pendingUploadId = null, PendingUploadType? pendingUploadType = null) { - return new MachineLearningPasswordDetail(name, value, serializedAdditionalRawData: null); + return new PendingUploadResponseDto(blobReferenceForConsumption, pendingUploadId, pendingUploadType, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// - /// - /// A new instance for mocking. - public static MachineLearningWorkspaceGetNotebookKeysResult MachineLearningWorkspaceGetNotebookKeysResult(string primaryAccessKey = null, string secondaryAccessKey = null) + /// Initializes a new instance of . + /// + /// Blob URI path for client to upload data. + /// Example: https://blob.windows.core.net/Container/Path + /// + /// Arm ID of the storage account to use. + /// + /// Credential info to access storage account + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + /// A new instance for mocking. + public static BlobReferenceForConsumptionDto BlobReferenceForConsumptionDto(Uri blobUri = null, ResourceIdentifier storageAccountArmId = null, PendingUploadCredentialDto credential = null) { - return new MachineLearningWorkspaceGetNotebookKeysResult(primaryAccessKey, secondaryAccessKey, serializedAdditionalRawData: null); + return new BlobReferenceForConsumptionDto(blobUri, storageAccountArmId, credential, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Specifies the resource ID. - /// Region of the AML workspace in the id. - /// Specifies the resource type. - /// An enum describing the unit of usage measurement. - /// The current usage of the resource. - /// The maximum permitted usage of the resource. - /// The name of the type of usage. - /// A new instance for mocking. - public static MachineLearningUsage MachineLearningUsage(string id = null, string amlWorkspaceLocation = null, string usageType = null, MachineLearningUsageUnit? unit = null, long? currentValue = null, long? limit = null, MachineLearningUsageName name = null) + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// [Required] Additional attributes of the entity. + /// A new instance for mocking. + public static MachineLearningComponentContainerData MachineLearningComponentContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningComponentContainerProperties properties = null) { - return new MachineLearningUsage( + return new MachineLearningComponentContainerData( id, - amlWorkspaceLocation, - usageType, - unit, - currentValue, - limit, name, + resourceType, + systemData, + properties, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The name of the resource. - /// The localized name of the resource. - /// A new instance for mocking. - public static MachineLearningUsageName MachineLearningUsageName(string value = null, string localizedValue = null) + /// Initializes a new instance of . + /// The asset description text. + /// Tag dictionary. Tags can be added, removed, and updated. + /// The asset property dictionary. + /// Is the asset archived?. + /// The latest version inside this container. + /// The next auto incremental version. + /// Provisioning state for the component container. + /// A new instance for mocking. + public static MachineLearningComponentContainerProperties MachineLearningComponentContainerProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, RegistryAssetProvisioningState? provisioningState = null) { - return new MachineLearningUsageName(value, localizedValue, serializedAdditionalRawData: null); + tags ??= new Dictionary(); + properties ??= new Dictionary(); + + return new MachineLearningComponentContainerProperties( + description, + tags, + properties, + serializedAdditionalRawData: null, + isArchived, + latestVersion, + nextVersion, + provisioningState); } - /// Initializes a new instance of . - /// The name of the virtual machine size. - /// The family name of the virtual machine size. - /// The number of vCPUs supported by the virtual machine size. - /// The number of gPUs supported by the virtual machine size. - /// The OS VHD disk size, in MB, allowed by the virtual machine size. - /// The resource volume size, in MB, allowed by the virtual machine size. - /// The amount of memory, in GB, supported by the virtual machine size. - /// Specifies if the virtual machine size supports low priority VMs. - /// Specifies if the virtual machine size supports premium IO. - /// The estimated price information for using a VM. - /// Specifies the compute types supported by the virtual machine size. - /// A new instance for mocking. - public static MachineLearningVmSize MachineLearningVmSize(string name = null, string family = null, int? vCpus = null, int? gpus = null, int? osVhdSizeMB = null, int? maxResourceVolumeMB = null, double? memoryGB = null, bool? lowPriorityCapable = null, bool? isPremiumIOSupported = null, MachineLearningEstimatedVmPrices estimatedVmPrices = null, IEnumerable supportedComputeTypes = null) + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// [Required] Additional attributes of the entity. + /// A new instance for mocking. + public static MachineLearningComponentVersionData MachineLearningComponentVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningComponentVersionProperties properties = null) { - supportedComputeTypes ??= new List(); - - return new MachineLearningVmSize( + return new MachineLearningComponentVersionData( + id, name, - family, - vCpus, - gpus, - osVhdSizeMB, - maxResourceVolumeMB, - memoryGB, - lowPriorityCapable, - isPremiumIOSupported, - estimatedVmPrices, - supportedComputeTypes?.ToList(), + resourceType, + systemData, + properties, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Three lettered code specifying the currency of the VM price. Example: USD. - /// The unit of time measurement for the specified VM price. Example: OneHour. - /// The list of estimated prices for using a VM of a particular OS type, tier, etc. - /// A new instance for mocking. - public static MachineLearningEstimatedVmPrices MachineLearningEstimatedVmPrices(MachineLearningBillingCurrency billingCurrency = default, MachineLearningUnitOfMeasure unitOfMeasure = default, IEnumerable values = null) - { - values ??= new List(); - - return new MachineLearningEstimatedVmPrices(billingCurrency, unitOfMeasure, values?.ToList(), serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The price charged for using the VM. - /// Operating system type used by the VM. - /// The type of the VM. - /// A new instance for mocking. - public static MachineLearningEstimatedVmPrice MachineLearningEstimatedVmPrice(double retailPrice = default, MachineLearningVmPriceOSType osType = default, MachineLearningVmTier vmTier = default) + /// Initializes a new instance of . + /// The asset description text. + /// Tag dictionary. Tags can be added, removed, and updated. + /// The asset property dictionary. + /// Is the asset archived?. + /// If the name version are system generated (anonymous registration). + /// + /// Defines Component definition details. + /// <see href="https://docs.microsoft.com/en-us/azure/machine-learning/reference-yaml-component-command" /> + /// + /// Provisioning state for the component version. + /// A new instance for mocking. + public static MachineLearningComponentVersionProperties MachineLearningComponentVersionProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, bool? isAnonymous = null, BinaryData componentSpec = null, RegistryAssetProvisioningState? provisioningState = null) { - return new MachineLearningEstimatedVmPrice(retailPrice, osType, vmTier, serializedAdditionalRawData: null); - } + tags ??= new Dictionary(); + properties ??= new Dictionary(); - /// Initializes a new instance of . - /// Specifies the resource ID. - /// Specifies the resource type. - /// The maximum permitted quota of the resource. - /// An enum describing the unit of quota measurement. - /// Status of update workspace quota. - /// A new instance for mocking. - public static MachineLearningWorkspaceQuotaUpdate MachineLearningWorkspaceQuotaUpdate(string id = null, string updateWorkspaceQuotasType = null, long? limit = null, MachineLearningQuotaUnit? unit = null, MachineLearningWorkspaceQuotaStatus? status = null) - { - return new MachineLearningWorkspaceQuotaUpdate( - id, - updateWorkspaceQuotasType, - limit, - unit, - status, - serializedAdditionalRawData: null); + return new MachineLearningComponentVersionProperties( + description, + tags, + properties, + serializedAdditionalRawData: null, + isArchived, + isAnonymous, + componentSpec, + provisioningState); } - /// Initializes a new instance of . - /// Specifies the resource ID. - /// Region of the AML workspace in the id. - /// Specifies the resource type. - /// Name of the resource. - /// The maximum permitted quota of the resource. - /// An enum describing the unit of quota measurement. - /// A new instance for mocking. - public static MachineLearningResourceQuota MachineLearningResourceQuota(string id = null, string amlWorkspaceLocation = null, string resourceQuotaType = null, MachineLearningResourceName name = null, long? limit = null, MachineLearningQuotaUnit? unit = null) + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// [Required] Additional attributes of the entity. + /// A new instance for mocking. + public static MachineLearningDataContainerData MachineLearningDataContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningDataContainerProperties properties = null) { - return new MachineLearningResourceQuota( + return new MachineLearningDataContainerData( id, - amlWorkspaceLocation, - resourceQuotaType, name, - limit, - unit, + resourceType, + systemData, + properties, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The name of the resource. - /// The localized name of the resource. - /// A new instance for mocking. - public static MachineLearningResourceName MachineLearningResourceName(string value = null, string localizedValue = null) + /// Initializes a new instance of . + /// The asset description text. + /// Tag dictionary. Tags can be added, removed, and updated. + /// The asset property dictionary. + /// Is the asset archived?. + /// The latest version inside this container. + /// The next auto incremental version. + /// [Required] Specifies the type of data. + /// A new instance for mocking. + public static MachineLearningDataContainerProperties MachineLearningDataContainerProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, MachineLearningDataType dataType = default) { - return new MachineLearningResourceName(value, localizedValue, serializedAdditionalRawData: null); + tags ??= new Dictionary(); + properties ??= new Dictionary(); + + return new MachineLearningDataContainerProperties( + description, + tags, + properties, + serializedAdditionalRawData: null, + isArchived, + latestVersion, + nextVersion, + dataType); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The tags. - /// The location. - /// The identity of the resource. - /// The sku of the workspace. /// - /// Compute properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , and . + /// [Required] Additional attributes of the entity. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . /// - /// A new instance for mocking. - public static MachineLearningComputeData MachineLearningComputeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, MachineLearningSku sku = null, MachineLearningComputeProperties properties = null) + /// A new instance for mocking. + public static MachineLearningDataVersionData MachineLearningDataVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningDataVersionProperties properties = null) { - tags ??= new Dictionary(); - - return new MachineLearningComputeData( + return new MachineLearningDataVersionData( id, name, resourceType, systemData, - tags, - location, - identity, - sku, properties, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The type of compute. - /// Location for the underlying compute. - /// The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. - /// The description of the Machine Learning compute. - /// The time at which the compute was created. - /// The time at which the compute was last modified. - /// ARM resource id of the underlying compute. - /// Errors during provisioning. - /// Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning service provisioned it if false. - /// Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. - /// A new instance for mocking. - public static MachineLearningComputeProperties MachineLearningComputeProperties(string computeType = null, string computeLocation = null, MachineLearningProvisioningState? provisioningState = null, string description = null, DateTimeOffset? createdOn = null, DateTimeOffset? modifiedOn = null, ResourceIdentifier resourceId = null, IEnumerable provisioningErrors = null, bool? isAttachedCompute = null, bool? disableLocalAuth = null) + /// Initializes a new instance of . + /// Blob reference for consumption details. + /// A new instance for mocking. + public static BlobReferenceSasResult BlobReferenceSasResult(GetBlobReferenceForConsumptionDto blobReferenceForConsumption = null) { - provisioningErrors ??= new List(); + return new BlobReferenceSasResult(blobReferenceForConsumption, serializedAdditionalRawData: null); + } - return new UnknownCompute( - computeType == null ? default : new ComputeType(computeType), - computeLocation, - provisioningState, - description, - createdOn, - modifiedOn, - resourceId, - provisioningErrors?.ToList(), - isAttachedCompute, - disableLocalAuth, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// ID of the compute node. - /// Private IP address of the compute node. - /// Public IP address of the compute node. - /// SSH port number of the node. - /// State of the compute node. Values are idle, running, preparing, unusable, leaving and preempted. - /// ID of the Experiment running on the node, if any else null. - /// A new instance for mocking. - public static AmlComputeNodeInformation AmlComputeNodeInformation(string nodeId = null, IPAddress privateIPAddress = null, IPAddress publicIPAddress = null, int? port = null, MachineLearningNodeState? nodeState = null, string runId = null) - { - return new AmlComputeNodeInformation( - nodeId, - privateIPAddress, - publicIPAddress, - port, - nodeState, - runId, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// - /// - /// - /// - /// - /// - /// - /// A new instance for mocking. - public static MachineLearningWorkspaceNotebookAccessTokenResult MachineLearningWorkspaceNotebookAccessTokenResult(string notebookResourceId = null, string hostName = null, string publicDns = null, string accessToken = null, string tokenType = null, int? expiresIn = null, string refreshToken = null, string scope = null) - { - return new MachineLearningWorkspaceNotebookAccessTokenResult( - notebookResourceId, - hostName, - publicDns, - accessToken, - tokenType, - expiresIn, - refreshToken, - scope, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// The identity of the resource. - /// The sku of the workspace. - /// The private link resource group id. - /// The private link resource required member names. - /// The private link resource Private link DNS zone name. - /// A new instance for mocking. - public static MachineLearningPrivateLinkResource MachineLearningPrivateLinkResource(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, MachineLearningSku sku = null, string groupId = null, IEnumerable requiredMembers = null, IEnumerable requiredZoneNames = null) - { - tags ??= new Dictionary(); - requiredMembers ??= new List(); - requiredZoneNames ??= new List(); - - return new MachineLearningPrivateLinkResource( - id, - name, - resourceType, - systemData, - tags, - location, - identity, - sku, - groupId, - requiredMembers?.ToList(), - requiredZoneNames?.ToList(), - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// A new instance for mocking. - public static MachineLearningWorkspaceGetStorageAccountKeysResult MachineLearningWorkspaceGetStorageAccountKeysResult(string userStorageKey = null) + /// Initializes a new instance of . + /// Blob uri, example: https://blob.windows.core.net/Container/Path. + /// The ARM id of the storage account. + /// + /// Credential info to access storage account + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + /// A new instance for mocking. + public static GetBlobReferenceForConsumptionDto GetBlobReferenceForConsumptionDto(Uri blobUri = null, string storageAccountArmId = null, DataReferenceCredential credential = null) { - return new MachineLearningWorkspaceGetStorageAccountKeysResult(userStorageKey, serializedAdditionalRawData: null); + return new GetBlobReferenceForConsumptionDto(blobUri, storageAccountArmId, credential, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , and . - /// - /// A new instance for mocking. - public static MachineLearningWorkspaceConnectionData MachineLearningWorkspaceConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningWorkspaceConnectionProperties properties = null) + /// [Required] Additional attributes of the entity. + /// A new instance for mocking. + public static MachineLearningEnvironmentContainerData MachineLearningEnvironmentContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningEnvironmentContainerProperties properties = null) { - return new MachineLearningWorkspaceConnectionData( + return new MachineLearningEnvironmentContainerData( id, name, resourceType, @@ -599,109 +569,41 @@ public static MachineLearningWorkspaceConnectionData MachineLearningWorkspaceCon serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Authentication type of the connection target. - /// Category of the connection. - /// - /// - /// Group based on connection category. - /// - /// - /// Store user metadata for this connection. - /// - /// Value details of the workspace connection. - /// format for the workspace connection value. - /// A new instance for mocking. - public static MachineLearningWorkspaceConnectionProperties MachineLearningWorkspaceConnectionProperties(string authType = null, MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null) - { - metadata ??= new Dictionary(); - sharedUserList ??= new List(); - - return new UnknownWorkspaceConnectionPropertiesV2( - authType == null ? default : new MachineLearningConnectionAuthType(authType), - category, - createdByWorkspaceArmId, - expiryOn, - group, - isSharedToAll, - target, - metadata, - sharedUserList?.ToList(), - value, - valueFormat, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// A new instance for mocking. - public static MachineLearningFqdnEndpoints MachineLearningFqdnEndpoints(MachineLearningFqdnEndpointsProperties properties = null) - { - return new MachineLearningFqdnEndpoints(properties, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// - /// A new instance for mocking. - public static MachineLearningFqdnEndpointsProperties MachineLearningFqdnEndpointsProperties(string category = null, IEnumerable endpoints = null) - { - endpoints ??= new List(); - - return new MachineLearningFqdnEndpointsProperties(category, endpoints?.ToList(), serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// - /// A new instance for mocking. - public static MachineLearningFqdnEndpoint MachineLearningFqdnEndpoint(string domainName = null, IEnumerable endpointDetails = null) - { - endpointDetails ??= new List(); - - return new MachineLearningFqdnEndpoint(domainName, endpointDetails?.ToList(), serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// A new instance for mocking. - public static MachineLearningFqdnEndpointDetail MachineLearningFqdnEndpointDetail(int? port = null) + /// Initializes a new instance of . + /// The asset description text. + /// Tag dictionary. Tags can be added, removed, and updated. + /// The asset property dictionary. + /// Is the asset archived?. + /// The latest version inside this container. + /// The next auto incremental version. + /// Provisioning state for the environment container. + /// A new instance for mocking. + public static MachineLearningEnvironmentContainerProperties MachineLearningEnvironmentContainerProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, RegistryAssetProvisioningState? provisioningState = null) { - return new MachineLearningFqdnEndpointDetail(port, serializedAdditionalRawData: null); - } + tags ??= new Dictionary(); + properties ??= new Dictionary(); - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// - /// Outbound Rule for the managed network of a machine learning workspace. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . - /// - /// A new instance for mocking. - public static MachineLearningOutboundRuleBasicData MachineLearningOutboundRuleBasicData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningOutboundRule properties = null) - { - return new MachineLearningOutboundRuleBasicData( - id, - name, - resourceType, - systemData, + return new MachineLearningEnvironmentContainerProperties( + description, + tags, properties, - serializedAdditionalRawData: null); + serializedAdditionalRawData: null, + isArchived, + latestVersion, + nextVersion, + provisioningState); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningCodeContainerData MachineLearningCodeContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningCodeContainerProperties properties = null) + /// A new instance for mocking. + public static MachineLearningEnvironmentVersionData MachineLearningEnvironmentVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningEnvironmentVersionProperties properties = null) { - return new MachineLearningCodeContainerData( + return new MachineLearningEnvironmentVersionData( id, name, resourceType, @@ -710,64 +612,64 @@ public static MachineLearningCodeContainerData MachineLearningCodeContainerData( serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The asset description text. /// Tag dictionary. Tags can be added, removed, and updated. /// The asset property dictionary. /// Is the asset archived?. - /// The latest version inside this container. - /// The next auto incremental version. - /// Provisioning state for the code container. - /// A new instance for mocking. - public static MachineLearningCodeContainerProperties MachineLearningCodeContainerProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, RegistryAssetProvisioningState? provisioningState = null) + /// If the name version are system generated (anonymous registration). + /// + /// Environment type is either user managed or curated by the Azure ML service + /// <see href="https://docs.microsoft.com/en-us/azure/machine-learning/resource-curated-environments" /> + /// + /// + /// Name of the image that will be used for the environment. + /// <seealso href="https://docs.microsoft.com/en-us/azure/machine-learning/how-to-deploy-custom-docker-image#use-a-custom-base-image" /> + /// + /// + /// Standard configuration file used by Conda that lets you install any kind of package, including Python, R, and C/C++ packages. + /// <see href="https://repo2docker.readthedocs.io/en/latest/config_files.html#environment-yml-install-a-conda-environment" /> + /// + /// Configuration settings for Docker build context. + /// The OS type of the environment. + /// Defines configuration specific to inference. + /// Defines if image needs to be rebuilt based on base image changes. + /// Provisioning state for the environment version. + /// Stage in the environment lifecycle assigned to this environment. + /// A new instance for mocking. + public static MachineLearningEnvironmentVersionProperties MachineLearningEnvironmentVersionProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, bool? isAnonymous = null, MachineLearningEnvironmentType? environmentType = null, string image = null, string condaFile = null, MachineLearningBuildContext build = null, MachineLearningOperatingSystemType? osType = null, MachineLearningInferenceContainerProperties inferenceConfig = null, AutoRebuildSetting? autoRebuild = null, RegistryAssetProvisioningState? provisioningState = null, string stage = null) { tags ??= new Dictionary(); properties ??= new Dictionary(); - return new MachineLearningCodeContainerProperties( + return new MachineLearningEnvironmentVersionProperties( description, tags, properties, serializedAdditionalRawData: null, isArchived, - latestVersion, - nextVersion, - provisioningState); - } - - /// Initializes a new instance of . - /// The asset description text. - /// Tag dictionary. Tags can be added, removed, and updated. - /// The asset property dictionary. - /// Is the asset archived?. - /// The latest version inside this container. - /// The next auto incremental version. - /// A new instance for mocking. - public static MachineLearningAssetContainer MachineLearningAssetContainer(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null) - { - tags ??= new Dictionary(); - properties ??= new Dictionary(); - - return new MachineLearningAssetContainer( - description, - tags, - properties, - serializedAdditionalRawData: null, - isArchived, - latestVersion, - nextVersion); + isAnonymous, + environmentType, + image, + condaFile, + build, + osType, + inferenceConfig, + autoRebuild, + provisioningState, + stage); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningCodeVersionData MachineLearningCodeVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningCodeVersionProperties properties = null) + /// A new instance for mocking. + public static MachineLearningModelContainerData MachineLearningModelContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningModelContainerProperties properties = null) { - return new MachineLearningCodeVersionData( + return new MachineLearningModelContainerData( id, name, resourceType, @@ -776,68 +678,41 @@ public static MachineLearningCodeVersionData MachineLearningCodeVersionData(Reso serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The asset description text. /// Tag dictionary. Tags can be added, removed, and updated. /// The asset property dictionary. /// Is the asset archived?. - /// If the name version are system generated (anonymous registration). - /// Uri where code is located. - /// Provisioning state for the code version. - /// A new instance for mocking. - public static MachineLearningCodeVersionProperties MachineLearningCodeVersionProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, bool? isAnonymous = null, Uri codeUri = null, RegistryAssetProvisioningState? provisioningState = null) + /// The latest version inside this container. + /// The next auto incremental version. + /// Provisioning state for the model container. + /// A new instance for mocking. + public static MachineLearningModelContainerProperties MachineLearningModelContainerProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, RegistryAssetProvisioningState? provisioningState = null) { tags ??= new Dictionary(); properties ??= new Dictionary(); - return new MachineLearningCodeVersionProperties( + return new MachineLearningModelContainerProperties( description, tags, properties, serializedAdditionalRawData: null, isArchived, - isAnonymous, - codeUri, + latestVersion, + nextVersion, provisioningState); } - /// Initializes a new instance of . - /// Container level read, write, list SAS. - /// ID for this upload request. - /// TemporaryBlobReference is the only supported type. - /// A new instance for mocking. - public static PendingUploadResponseDto PendingUploadResponseDto(BlobReferenceForConsumptionDto blobReferenceForConsumption = null, string pendingUploadId = null, PendingUploadType? pendingUploadType = null) - { - return new PendingUploadResponseDto(blobReferenceForConsumption, pendingUploadId, pendingUploadType, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// - /// Blob URI path for client to upload data. - /// Example: https://blob.windows.core.net/Container/Path - /// - /// Arm ID of the storage account to use. - /// - /// Credential info to access storage account - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// A new instance for mocking. - public static BlobReferenceForConsumptionDto BlobReferenceForConsumptionDto(Uri blobUri = null, ResourceIdentifier storageAccountArmId = null, PendingUploadCredentialDto credential = null) - { - return new BlobReferenceForConsumptionDto(blobUri, storageAccountArmId, credential, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningComponentContainerData MachineLearningComponentContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningComponentContainerProperties properties = null) + /// A new instance for mocking. + public static MachineLearningModelVersionData MachineLearningModelVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningModelVersionProperties properties = null) { - return new MachineLearningComponentContainerData( + return new MachineLearningModelVersionData( id, name, resourceType, @@ -846,134 +721,237 @@ public static MachineLearningComponentContainerData MachineLearningComponentCont serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The asset description text. /// Tag dictionary. Tags can be added, removed, and updated. /// The asset property dictionary. /// Is the asset archived?. - /// The latest version inside this container. - /// The next auto incremental version. - /// Provisioning state for the component container. - /// A new instance for mocking. - public static MachineLearningComponentContainerProperties MachineLearningComponentContainerProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, RegistryAssetProvisioningState? provisioningState = null) + /// If the name version are system generated (anonymous registration). + /// Mapping of model flavors to their properties. + /// The storage format for this entity. Used for NCD. + /// The URI path to the model contents. + /// Name of the training job which produced this model. + /// Provisioning state for the model version. + /// Stage in the model lifecycle assigned to this model. + /// A new instance for mocking. + public static MachineLearningModelVersionProperties MachineLearningModelVersionProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, bool? isAnonymous = null, IDictionary flavors = null, string modelType = null, Uri modelUri = null, string jobName = null, RegistryAssetProvisioningState? provisioningState = null, string stage = null) { tags ??= new Dictionary(); properties ??= new Dictionary(); + flavors ??= new Dictionary(); - return new MachineLearningComponentContainerProperties( + return new MachineLearningModelVersionProperties( description, tags, properties, serializedAdditionalRawData: null, isArchived, - latestVersion, - nextVersion, - provisioningState); + isAnonymous, + flavors, + modelType, + modelUri, + jobName, + provisioningState, + stage); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. + /// The tags. + /// The location. /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningComponentVersionData MachineLearningComponentVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningComponentVersionProperties properties = null) + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. + /// Managed service identity (system assigned and/or user assigned identities). + /// Sku details required for ARM contract for Autoscaling. + /// A new instance for mocking. + public static MachineLearningBatchEndpointData MachineLearningBatchEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, MachineLearningBatchEndpointProperties properties = null, string kind = null, ManagedServiceIdentity identity = null, MachineLearningSku sku = null) { - return new MachineLearningComponentVersionData( + tags ??= new Dictionary(); + + return new MachineLearningBatchEndpointData( id, name, resourceType, systemData, + tags, + location, properties, + kind, + identity, + sku, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The asset description text. - /// Tag dictionary. Tags can be added, removed, and updated. - /// The asset property dictionary. - /// Is the asset archived?. - /// If the name version are system generated (anonymous registration). - /// - /// Defines Component definition details. - /// <see href="https://docs.microsoft.com/en-us/azure/machine-learning/reference-yaml-component-command" /> + /// Initializes a new instance of . + /// Description of the inference endpoint. + /// Property dictionary. Properties can be added, but not removed or altered. + /// Endpoint URI. + /// Endpoint Swagger URI. + /// [Required] Use 'Key' for key based authentication and 'AMLToken' for Azure Machine Learning token-based authentication. 'Key' doesn't expire but 'AMLToken' does. + /// + /// EndpointAuthKeys to set initially on an Endpoint. + /// This property will always be returned as null. AuthKey values must be retrieved using the ListKeys API. /// - /// Provisioning state for the component version. - /// A new instance for mocking. - public static MachineLearningComponentVersionProperties MachineLearningComponentVersionProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, bool? isAnonymous = null, BinaryData componentSpec = null, RegistryAssetProvisioningState? provisioningState = null) + /// Default values for Batch Endpoint. + /// Provisioning state for the endpoint. + /// A new instance for mocking. + public static MachineLearningBatchEndpointProperties MachineLearningBatchEndpointProperties(string description = null, IDictionary properties = null, Uri scoringUri = null, Uri swaggerUri = null, MachineLearningEndpointAuthMode authMode = default, MachineLearningEndpointAuthKeys keys = null, string defaultsDeploymentName = null, MachineLearningEndpointProvisioningState? provisioningState = null) { - tags ??= new Dictionary(); properties ??= new Dictionary(); - return new MachineLearningComponentVersionProperties( + return new MachineLearningBatchEndpointProperties( description, - tags, properties, + scoringUri, + swaggerUri, + authMode, + keys, serializedAdditionalRawData: null, - isArchived, - isAnonymous, - componentSpec, + defaultsDeploymentName != null ? new BatchEndpointDefaults(defaultsDeploymentName, serializedAdditionalRawData: null) : null, provisioningState); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// Description of the inference endpoint. + /// Property dictionary. Properties can be added, but not removed or altered. + /// Endpoint URI. + /// Endpoint Swagger URI. + /// [Required] Use 'Key' for key based authentication and 'AMLToken' for Azure Machine Learning token-based authentication. 'Key' doesn't expire but 'AMLToken' does. + /// + /// EndpointAuthKeys to set initially on an Endpoint. + /// This property will always be returned as null. AuthKey values must be retrieved using the ListKeys API. + /// + /// A new instance for mocking. + public static MachineLearningEndpointProperties MachineLearningEndpointProperties(string description = null, IDictionary properties = null, Uri scoringUri = null, Uri swaggerUri = null, MachineLearningEndpointAuthMode authMode = default, MachineLearningEndpointAuthKeys keys = null) + { + properties ??= new Dictionary(); + + return new MachineLearningEndpointProperties( + description, + properties, + scoringUri, + swaggerUri, + authMode, + keys, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. + /// The tags. + /// The location. /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningDataContainerData MachineLearningDataContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningDataContainerProperties properties = null) + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. + /// Managed service identity (system assigned and/or user assigned identities). + /// Sku details required for ARM contract for Autoscaling. + /// A new instance for mocking. + public static MachineLearningBatchDeploymentData MachineLearningBatchDeploymentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, MachineLearningBatchDeploymentProperties properties = null, string kind = null, ManagedServiceIdentity identity = null, MachineLearningSku sku = null) { - return new MachineLearningDataContainerData( + tags ??= new Dictionary(); + + return new MachineLearningBatchDeploymentData( id, name, resourceType, systemData, - properties, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The asset description text. - /// Tag dictionary. Tags can be added, removed, and updated. - /// The asset property dictionary. - /// Is the asset archived?. - /// The latest version inside this container. - /// The next auto incremental version. - /// [Required] Specifies the type of data. - /// A new instance for mocking. - public static MachineLearningDataContainerProperties MachineLearningDataContainerProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, MachineLearningDataType dataType = default) - { - tags ??= new Dictionary(); - properties ??= new Dictionary(); - - return new MachineLearningDataContainerProperties( - description, tags, + location, properties, - serializedAdditionalRawData: null, - isArchived, - latestVersion, - nextVersion, - dataType); + kind, + identity, + sku, + serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. + /// Initializes a new instance of . + /// Description of the endpoint deployment. + /// Property dictionary. Properties can be added, but not removed or altered. + /// Code configuration for the endpoint deployment. + /// ARM resource ID or AssetId of the environment specification for the endpoint deployment. + /// Environment variables configuration for the deployment. + /// Compute target for batch inference operation. + /// + /// Properties relevant to different deployment types. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + /// + /// Error threshold, if the error count for the entire input goes above this value, + /// the batch inference will be aborted. Range is [-1, int.MaxValue]. + /// For FileDataset, this value is the count of file failures. + /// For TabularDataset, this value is the count of record failures. + /// If set to -1 (the lower bound), all failures during batch inference will be ignored. + /// + /// + /// Retry Settings for the batch inference operation. + /// If not provided, will default to the defaults defined in BatchRetrySettings. + /// + /// + /// Size of the mini-batch passed to each batch invocation. + /// For FileDataset, this is the number of files per mini-batch. + /// For TabularDataset, this is the size of the records in bytes, per mini-batch. + /// + /// Logging level for batch inference operation. + /// + /// Reference to the model asset for the endpoint deployment. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// Indicates maximum number of parallelism per instance. + /// Indicates how the output will be organized. + /// Customized output file name for append_row output action. + /// + /// Indicates compute configuration for the job. + /// If not provided, will default to the defaults defined in ResourceConfiguration. + /// + /// Provisioning state for the endpoint deployment. + /// A new instance for mocking. + public static MachineLearningBatchDeploymentProperties MachineLearningBatchDeploymentProperties(string description = null, IDictionary properties = null, MachineLearningCodeConfiguration codeConfiguration = null, string environmentId = null, IDictionary environmentVariables = null, string compute = null, BatchDeploymentConfiguration deploymentConfiguration = null, int? errorThreshold = null, MachineLearningBatchRetrySettings retrySettings = null, long? miniBatchSize = null, MachineLearningBatchLoggingLevel? loggingLevel = null, MachineLearningAssetReferenceBase model = null, int? maxConcurrencyPerInstance = null, MachineLearningBatchOutputAction? outputAction = null, string outputFileName = null, MachineLearningDeploymentResourceConfiguration resources = null, MachineLearningDeploymentProvisioningState? provisioningState = null) + { + properties ??= new Dictionary(); + environmentVariables ??= new Dictionary(); + + return new MachineLearningBatchDeploymentProperties( + description, + properties, + codeConfiguration, + environmentId, + environmentVariables, + serializedAdditionalRawData: null, + compute, + deploymentConfiguration, + errorThreshold, + retrySettings, + miniBatchSize, + loggingLevel, + model, + maxConcurrencyPerInstance, + outputAction, + outputFileName, + resources, + provisioningState); + } + + /// Initializes a new instance of . + /// The id. + /// The name. /// The resourceType. /// The systemData. /// /// [Required] Additional attributes of the entity. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . /// - /// A new instance for mocking. - public static MachineLearningDataVersionData MachineLearningDataVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningDataVersionProperties properties = null) + /// A new instance for mocking. + public static MachineLearningDatastoreData MachineLearningDatastoreData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningDatastoreProperties properties = null) { - return new MachineLearningDataVersionData( + return new MachineLearningDatastoreData( id, name, resourceType, @@ -982,38 +960,43 @@ public static MachineLearningDataVersionData MachineLearningDataVersionData(Reso serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Blob reference for consumption details. - /// A new instance for mocking. - public static BlobReferenceSasResult BlobReferenceSasResult(GetBlobReferenceForConsumptionDto blobReferenceForConsumption = null) - { - return new BlobReferenceSasResult(blobReferenceForConsumption, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Blob uri, example: https://blob.windows.core.net/Container/Path. - /// The ARM id of the storage account. - /// - /// Credential info to access storage account - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// Initializes a new instance of . + /// The asset description text. + /// Tag dictionary. Tags can be added, removed, and updated. + /// The asset property dictionary. + /// [Required] Storage type backing the datastore. + /// Readonly property to indicate if datastore is the workspace default datastore. + /// + /// [Required] Account credentials. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . /// - /// A new instance for mocking. - public static GetBlobReferenceForConsumptionDto GetBlobReferenceForConsumptionDto(Uri blobUri = null, string storageAccountArmId = null, DataReferenceCredential credential = null) + /// A new instance for mocking. + public static MachineLearningDatastoreProperties MachineLearningDatastoreProperties(string description = null, IDictionary tags = null, IDictionary properties = null, string datastoreType = null, bool? isDefault = null, MachineLearningDatastoreCredentials credentials = null) { - return new GetBlobReferenceForConsumptionDto(blobUri, storageAccountArmId, credential, serializedAdditionalRawData: null); + tags ??= new Dictionary(); + properties ??= new Dictionary(); + + return new MachineLearningDatastoreProperties( + description, + tags, + properties, + serializedAdditionalRawData: null, + datastoreType == null ? default : new DatastoreType(datastoreType), + isDefault, + credentials); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningEnvironmentContainerData MachineLearningEnvironmentContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningEnvironmentContainerProperties properties = null) + /// A new instance for mocking. + public static MachineLearningFeatureSetContainerData MachineLearningFeatureSetContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningFeatureSetContainerProperties properties = null) { - return new MachineLearningEnvironmentContainerData( + return new MachineLearningFeatureSetContainerData( id, name, resourceType, @@ -1022,21 +1005,21 @@ public static MachineLearningEnvironmentContainerData MachineLearningEnvironment serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The asset description text. /// Tag dictionary. Tags can be added, removed, and updated. /// The asset property dictionary. /// Is the asset archived?. /// The latest version inside this container. /// The next auto incremental version. - /// Provisioning state for the environment container. - /// A new instance for mocking. - public static MachineLearningEnvironmentContainerProperties MachineLearningEnvironmentContainerProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, RegistryAssetProvisioningState? provisioningState = null) + /// Provisioning state for the featureset container. + /// A new instance for mocking. + public static MachineLearningFeatureSetContainerProperties MachineLearningFeatureSetContainerProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, RegistryAssetProvisioningState? provisioningState = null) { tags ??= new Dictionary(); properties ??= new Dictionary(); - return new MachineLearningEnvironmentContainerProperties( + return new MachineLearningFeatureSetContainerProperties( description, tags, properties, @@ -1047,16 +1030,16 @@ public static MachineLearningEnvironmentContainerProperties MachineLearningEnvir provisioningState); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningEnvironmentVersionData MachineLearningEnvironmentVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningEnvironmentVersionProperties properties = null) + /// A new instance for mocking. + public static MachineLearningFeatureData MachineLearningFeatureData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningFeatureProperties properties = null) { - return new MachineLearningEnvironmentVersionData( + return new MachineLearningFeatureData( id, name, resourceType, @@ -1065,64 +1048,76 @@ public static MachineLearningEnvironmentVersionData MachineLearningEnvironmentVe serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// [Required] Additional attributes of the entity. + /// A new instance for mocking. + public static MachineLearningFeatureSetVersionData MachineLearningFeatureSetVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningFeatureSetVersionProperties properties = null) + { + return new MachineLearningFeatureSetVersionData( + id, + name, + resourceType, + systemData, + properties, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The asset description text. /// Tag dictionary. Tags can be added, removed, and updated. /// The asset property dictionary. /// Is the asset archived?. /// If the name version are system generated (anonymous registration). - /// - /// Environment type is either user managed or curated by the Azure ML service - /// <see href="https://docs.microsoft.com/en-us/azure/machine-learning/resource-curated-environments" /> - /// - /// - /// Name of the image that will be used for the environment. - /// <seealso href="https://docs.microsoft.com/en-us/azure/machine-learning/how-to-deploy-custom-docker-image#use-a-custom-base-image" /> - /// - /// - /// Standard configuration file used by Conda that lets you install any kind of package, including Python, R, and C/C++ packages. - /// <see href="https://repo2docker.readthedocs.io/en/latest/config_files.html#environment-yml-install-a-conda-environment" /> - /// - /// Configuration settings for Docker build context. - /// The OS type of the environment. - /// Defines configuration specific to inference. - /// Defines if image needs to be rebuilt based on base image changes. - /// Provisioning state for the environment version. - /// Stage in the environment lifecycle assigned to this environment. - /// A new instance for mocking. - public static MachineLearningEnvironmentVersionProperties MachineLearningEnvironmentVersionProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, bool? isAnonymous = null, MachineLearningEnvironmentType? environmentType = null, string image = null, string condaFile = null, MachineLearningBuildContext build = null, MachineLearningOperatingSystemType? osType = null, MachineLearningInferenceContainerProperties inferenceConfig = null, AutoRebuildSetting? autoRebuild = null, RegistryAssetProvisioningState? provisioningState = null, string stage = null) + /// Specifies the feature spec details. + /// Specifies the materialization settings. + /// Specifies the asset stage. + /// Specifies list of entities. + /// Provisioning state for the featureset version container. + /// A new instance for mocking. + public static MachineLearningFeatureSetVersionProperties MachineLearningFeatureSetVersionProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, bool? isAnonymous = null, string specificationPath = null, MaterializationSettings materializationSettings = null, string stage = null, IEnumerable entities = null, RegistryAssetProvisioningState? provisioningState = null) { tags ??= new Dictionary(); properties ??= new Dictionary(); + entities ??= new List(); - return new MachineLearningEnvironmentVersionProperties( + return new MachineLearningFeatureSetVersionProperties( description, tags, properties, serializedAdditionalRawData: null, isArchived, isAnonymous, - environmentType, - image, - condaFile, - build, - osType, - inferenceConfig, - autoRebuild, - provisioningState, - stage); + specificationPath != null ? new FeaturesetSpecification(specificationPath, serializedAdditionalRawData: null) : null, + materializationSettings, + stage, + entities?.ToList(), + provisioningState); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// List of jobs submitted as part of the backfill request. + /// A new instance for mocking. + public static FeaturesetVersionBackfillResponse FeaturesetVersionBackfillResponse(IEnumerable jobIds = null) + { + jobIds ??= new List(); + + return new FeaturesetVersionBackfillResponse(jobIds?.ToList(), serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningModelContainerData MachineLearningModelContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningModelContainerProperties properties = null) + /// A new instance for mocking. + public static MachineLearningFeatureStoreEntityContainerData MachineLearningFeatureStoreEntityContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningFeatureStoreEntityContainerProperties properties = null) { - return new MachineLearningModelContainerData( + return new MachineLearningFeatureStoreEntityContainerData( id, name, resourceType, @@ -1131,21 +1126,21 @@ public static MachineLearningModelContainerData MachineLearningModelContainerDat serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The asset description text. /// Tag dictionary. Tags can be added, removed, and updated. /// The asset property dictionary. /// Is the asset archived?. /// The latest version inside this container. /// The next auto incremental version. - /// Provisioning state for the model container. - /// A new instance for mocking. - public static MachineLearningModelContainerProperties MachineLearningModelContainerProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, RegistryAssetProvisioningState? provisioningState = null) + /// Provisioning state for the featurestore entity container. + /// A new instance for mocking. + public static MachineLearningFeatureStoreEntityContainerProperties MachineLearningFeatureStoreEntityContainerProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, RegistryAssetProvisioningState? provisioningState = null) { tags ??= new Dictionary(); properties ??= new Dictionary(); - return new MachineLearningModelContainerProperties( + return new MachineLearningFeatureStoreEntityContainerProperties( description, tags, properties, @@ -1156,16 +1151,16 @@ public static MachineLearningModelContainerProperties MachineLearningModelContai provisioningState); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningModelVersionData MachineLearningModelVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningModelVersionProperties properties = null) + /// A new instance for mocking. + public static MachineLearningFeaturestoreEntityVersionData MachineLearningFeaturestoreEntityVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningFeatureStoreEntityVersionProperties properties = null) { - return new MachineLearningModelVersionData( + return new MachineLearningFeaturestoreEntityVersionData( id, name, resourceType, @@ -1174,41 +1169,171 @@ public static MachineLearningModelVersionData MachineLearningModelVersionData(Re serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The asset description text. /// Tag dictionary. Tags can be added, removed, and updated. /// The asset property dictionary. /// Is the asset archived?. /// If the name version are system generated (anonymous registration). - /// Mapping of model flavors to their properties. - /// The storage format for this entity. Used for NCD. - /// The URI path to the model contents. - /// Name of the training job which produced this model. - /// Provisioning state for the model version. - /// Stage in the model lifecycle assigned to this model. - /// A new instance for mocking. - public static MachineLearningModelVersionProperties MachineLearningModelVersionProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, bool? isAnonymous = null, IDictionary flavors = null, string modelType = null, Uri modelUri = null, string jobName = null, RegistryAssetProvisioningState? provisioningState = null, string stage = null) + /// Specifies index columns. + /// Specifies the asset stage. + /// Provisioning state for the featurestore entity version. + /// A new instance for mocking. + public static MachineLearningFeatureStoreEntityVersionProperties MachineLearningFeatureStoreEntityVersionProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, bool? isAnonymous = null, IEnumerable indexColumns = null, string stage = null, RegistryAssetProvisioningState? provisioningState = null) { tags ??= new Dictionary(); properties ??= new Dictionary(); - flavors ??= new Dictionary(); + indexColumns ??= new List(); - return new MachineLearningModelVersionProperties( + return new MachineLearningFeatureStoreEntityVersionProperties( description, tags, properties, serializedAdditionalRawData: null, isArchived, isAnonymous, - flavors, - modelType, - modelUri, - jobName, - provisioningState, - stage); + indexColumns?.ToList(), + stage, + provisioningState); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// [Required] Additional attributes of the entity. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// A new instance for mocking. + public static MachineLearningJobData MachineLearningJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningJobProperties properties = null) + { + return new MachineLearningJobData( + id, + name, + resourceType, + systemData, + properties, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The asset description text. + /// Tag dictionary. Tags can be added, removed, and updated. + /// The asset property dictionary. + /// [Required] Specifies the type of job. + /// Display name of job. + /// Status of the job. + /// The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. + /// + /// List of JobEndpoints. + /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject. + /// + /// ARM resource ID of the compute resource. + /// Is the asset archived?. + /// + /// Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. + /// Defaults to AmlToken if null. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// ARM resource ID of the component resource. + /// Notification setting for the job. + /// A new instance for mocking. + public static MachineLearningJobProperties MachineLearningJobProperties(string description = null, IDictionary tags = null, IDictionary properties = null, string jobType = null, string displayName = null, MachineLearningJobStatus? status = null, string experimentName = null, IDictionary services = null, ResourceIdentifier computeId = null, bool? isArchived = null, MachineLearningIdentityConfiguration identity = null, ResourceIdentifier componentId = null, NotificationSetting notificationSetting = null) + { + tags ??= new Dictionary(); + properties ??= new Dictionary(); + services ??= new Dictionary(); + + return new MachineLearningJobProperties( + description, + tags, + properties, + serializedAdditionalRawData: null, + jobType == null ? default : new JobType(jobType), + displayName, + status, + experimentName, + services, + computeId, + isArchived, + identity, + componentId, + notificationSetting); + } + + /// Initializes a new instance of . + /// Endpoint type. + /// Port for endpoint. + /// Url for endpoint. + /// Status of endpoint. + /// Any error in the service. + /// Additional properties to set on the endpoint. + /// + /// Nodes that user would like to start the service on. + /// If Nodes is not set or set to null, the service will only be started on leader node. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + /// A new instance for mocking. + public static MachineLearningJobService MachineLearningJobService(string jobServiceType = null, int? port = null, string endpoint = null, string status = null, string errorMessage = null, IDictionary properties = null, JobNodes nodes = null) + { + properties ??= new Dictionary(); + + return new MachineLearningJobService( + jobServiceType, + port, + endpoint, + status, + errorMessage, + properties, + nodes, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// [Required] Additional attributes of the entity. + /// A new instance for mocking. + public static MachineLearningMarketplaceSubscriptionData MachineLearningMarketplaceSubscriptionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningMarketplaceSubscriptionProperties properties = null) + { + return new MachineLearningMarketplaceSubscriptionData( + id, + name, + resourceType, + systemData, + properties, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// [Required] Target Marketplace Model ID to create a Marketplace Subscription for. + /// Marketplace Plan associated with the Marketplace Subscription. + /// Current status of the Marketplace Subscription. + /// Provisioning State of the Marketplace Subscription. + /// A new instance for mocking. + public static MachineLearningMarketplaceSubscriptionProperties MachineLearningMarketplaceSubscriptionProperties(string modelId = null, MachineLearningMarketplacePlan marketplacePlan = null, MarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = null, MarketplaceSubscriptionProvisioningState? provisioningState = null) + { + return new MachineLearningMarketplaceSubscriptionProperties(modelId, marketplacePlan, marketplaceSubscriptionStatus, provisioningState, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The identifying name of the Publisher of the Marketplace Plan. + /// The identifying name of the Offer of the Marketplace Plan. + /// The identifying name of the Plan of the Marketplace Plan. + /// A new instance for mocking. + public static MachineLearningMarketplacePlan MachineLearningMarketplacePlan(string publisherId = null, string offerId = null, string planId = null) + { + return new MachineLearningMarketplacePlan(publisherId, offerId, planId, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. @@ -1219,12 +1344,12 @@ public static MachineLearningModelVersionProperties MachineLearningModelVersionP /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. /// Managed service identity (system assigned and/or user assigned identities). /// Sku details required for ARM contract for Autoscaling. - /// A new instance for mocking. - public static MachineLearningBatchEndpointData MachineLearningBatchEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, MachineLearningBatchEndpointProperties properties = null, string kind = null, ManagedServiceIdentity identity = null, MachineLearningSku sku = null) + /// A new instance for mocking. + public static MachineLearningOnlineEndpointData MachineLearningOnlineEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, MachineLearningOnlineEndpointProperties properties = null, string kind = null, ManagedServiceIdentity identity = null, MachineLearningSku sku = null) { tags ??= new Dictionary(); - return new MachineLearningBatchEndpointData( + return new MachineLearningOnlineEndpointData( id, name, resourceType, @@ -1238,7 +1363,7 @@ public static MachineLearningBatchEndpointData MachineLearningBatchEndpointData( serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// Description of the inference endpoint. /// Property dictionary. Properties can be added, but not removed or altered. /// Endpoint URI. @@ -1248,67 +1373,57 @@ public static MachineLearningBatchEndpointData MachineLearningBatchEndpointData( /// EndpointAuthKeys to set initially on an Endpoint. /// This property will always be returned as null. AuthKey values must be retrieved using the ListKeys API. /// - /// Default values for Batch Endpoint. /// Provisioning state for the endpoint. - /// A new instance for mocking. - public static MachineLearningBatchEndpointProperties MachineLearningBatchEndpointProperties(string description = null, IDictionary properties = null, Uri scoringUri = null, Uri swaggerUri = null, MachineLearningEndpointAuthMode authMode = default, MachineLearningEndpointAuthKeys keys = null, string defaultsDeploymentName = null, MachineLearningEndpointProvisioningState? provisioningState = null) - { - properties ??= new Dictionary(); - - return new MachineLearningBatchEndpointProperties( - description, - properties, - scoringUri, - swaggerUri, - authMode, - keys, - serializedAdditionalRawData: null, - defaultsDeploymentName != null ? new BatchEndpointDefaults(defaultsDeploymentName, serializedAdditionalRawData: null) : null, - provisioningState); - } - - /// Initializes a new instance of . - /// Description of the inference endpoint. - /// Property dictionary. Properties can be added, but not removed or altered. - /// Endpoint URI. - /// Endpoint Swagger URI. - /// [Required] Use 'Key' for key based authentication and 'AMLToken' for Azure Machine Learning token-based authentication. 'Key' doesn't expire but 'AMLToken' does. - /// - /// EndpointAuthKeys to set initially on an Endpoint. - /// This property will always be returned as null. AuthKey values must be retrieved using the ListKeys API. + /// + /// ARM resource ID of the compute if it exists. + /// optional /// - /// A new instance for mocking. - public static MachineLearningEndpointProperties MachineLearningEndpointProperties(string description = null, IDictionary properties = null, Uri scoringUri = null, Uri swaggerUri = null, MachineLearningEndpointAuthMode authMode = default, MachineLearningEndpointAuthKeys keys = null) + /// Set to "Enabled" for endpoints that should allow public access when Private Link is enabled. + /// Percentage of traffic from endpoint to divert to each deployment. Traffic values need to sum to 100. + /// Percentage of traffic to be mirrored to each deployment without using returned scoring. Traffic values need to sum to utmost 50. + /// A new instance for mocking. + public static MachineLearningOnlineEndpointProperties MachineLearningOnlineEndpointProperties(string description = null, IDictionary properties = null, Uri scoringUri = null, Uri swaggerUri = null, MachineLearningEndpointAuthMode authMode = default, MachineLearningEndpointAuthKeys keys = null, MachineLearningEndpointProvisioningState? provisioningState = null, string compute = null, MachineLearningPublicNetworkAccessType? publicNetworkAccess = null, IDictionary traffic = null, IDictionary mirrorTraffic = null) { properties ??= new Dictionary(); + traffic ??= new Dictionary(); + mirrorTraffic ??= new Dictionary(); - return new MachineLearningEndpointProperties( + return new MachineLearningOnlineEndpointProperties( description, properties, scoringUri, swaggerUri, authMode, keys, - serializedAdditionalRawData: null); + serializedAdditionalRawData: null, + provisioningState, + compute, + publicNetworkAccess, + traffic, + mirrorTraffic); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// The tags. /// The location. - /// [Required] Additional attributes of the entity. + /// + /// [Required] Additional attributes of the entity. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. /// Managed service identity (system assigned and/or user assigned identities). /// Sku details required for ARM contract for Autoscaling. - /// A new instance for mocking. - public static MachineLearningBatchDeploymentData MachineLearningBatchDeploymentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, MachineLearningBatchDeploymentProperties properties = null, string kind = null, ManagedServiceIdentity identity = null, MachineLearningSku sku = null) + /// A new instance for mocking. + public static MachineLearningOnlineDeploymentData MachineLearningOnlineDeploymentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, MachineLearningOnlineDeploymentProperties properties = null, string kind = null, ManagedServiceIdentity identity = null, MachineLearningSku sku = null) { tags ??= new Dictionary(); - return new MachineLearningBatchDeploymentData( + return new MachineLearningOnlineDeploymentData( id, name, resourceType, @@ -1322,134 +1437,126 @@ public static MachineLearningBatchDeploymentData MachineLearningBatchDeploymentD serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// Description of the endpoint deployment. /// Property dictionary. Properties can be added, but not removed or altered. /// Code configuration for the endpoint deployment. /// ARM resource ID or AssetId of the environment specification for the endpoint deployment. /// Environment variables configuration for the deployment. - /// Compute target for batch inference operation. - /// - /// Properties relevant to different deployment types. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// - /// Error threshold, if the error count for the entire input goes above this value, - /// the batch inference will be aborted. Range is [-1, int.MaxValue]. - /// For FileDataset, this value is the count of file failures. - /// For TabularDataset, this value is the count of record failures. - /// If set to -1 (the lower bound), all failures during batch inference will be ignored. - /// - /// - /// Retry Settings for the batch inference operation. - /// If not provided, will default to the defaults defined in BatchRetrySettings. - /// - /// - /// Size of the mini-batch passed to each batch invocation. - /// For FileDataset, this is the number of files per mini-batch. - /// For TabularDataset, this is the size of the records in bytes, per mini-batch. - /// - /// Logging level for batch inference operation. - /// - /// Reference to the model asset for the endpoint deployment. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . - /// - /// Indicates maximum number of parallelism per instance. - /// Indicates how the output will be organized. - /// Customized output file name for append_row output action. - /// - /// Indicates compute configuration for the job. - /// If not provided, will default to the defaults defined in ResourceConfiguration. + /// [Required] The compute type of the endpoint. + /// + /// Scale settings for the deployment. + /// If it is null or not provided, + /// it defaults to TargetUtilizationScaleSettings for KubernetesOnlineDeployment + /// and to DefaultScaleSettings for ManagedOnlineDeployment. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . /// + /// Request settings for the deployment. + /// The path to mount the model in custom container. + /// If true, enables Application Insights logging. + /// Liveness probe monitors the health of the container regularly. + /// Readiness probe validates if the container is ready to serve traffic. The properties and defaults are the same as liveness probe. /// Provisioning state for the endpoint deployment. - /// A new instance for mocking. - public static MachineLearningBatchDeploymentProperties MachineLearningBatchDeploymentProperties(string description = null, IDictionary properties = null, MachineLearningCodeConfiguration codeConfiguration = null, string environmentId = null, IDictionary environmentVariables = null, string compute = null, BatchDeploymentConfiguration deploymentConfiguration = null, int? errorThreshold = null, MachineLearningBatchRetrySettings retrySettings = null, long? miniBatchSize = null, MachineLearningBatchLoggingLevel? loggingLevel = null, MachineLearningAssetReferenceBase model = null, int? maxConcurrencyPerInstance = null, MachineLearningBatchOutputAction? outputAction = null, string outputFileName = null, MachineLearningDeploymentResourceConfiguration resources = null, MachineLearningDeploymentProvisioningState? provisioningState = null) + /// Compute instance type. + /// The URI path to the model. + /// If Enabled, allow egress public network access. If Disabled, this will create secure egress. Default: Enabled. + /// The mdc configuration, we disable mdc when it's null. + /// A new instance for mocking. + public static MachineLearningOnlineDeploymentProperties MachineLearningOnlineDeploymentProperties(string description = null, IDictionary properties = null, MachineLearningCodeConfiguration codeConfiguration = null, string environmentId = null, IDictionary environmentVariables = null, string endpointComputeType = null, MachineLearningOnlineScaleSettings scaleSettings = null, MachineLearningOnlineRequestSettings requestSettings = null, string modelMountPath = null, bool? appInsightsEnabled = null, MachineLearningProbeSettings livenessProbe = null, MachineLearningProbeSettings readinessProbe = null, MachineLearningDeploymentProvisioningState? provisioningState = null, string instanceType = null, string model = null, MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = null, DataCollector dataCollector = null) { properties ??= new Dictionary(); environmentVariables ??= new Dictionary(); - return new MachineLearningBatchDeploymentProperties( + return new MachineLearningOnlineDeploymentProperties( description, properties, codeConfiguration, environmentId, environmentVariables, serializedAdditionalRawData: null, - compute, - deploymentConfiguration, - errorThreshold, - retrySettings, - miniBatchSize, - loggingLevel, + endpointComputeType == null ? default : new MachineLearningEndpointComputeType(endpointComputeType), + scaleSettings, + requestSettings, + modelMountPath, + appInsightsEnabled, + livenessProbe, + readinessProbe, + provisioningState, + instanceType, model, - maxConcurrencyPerInstance, - outputAction, - outputFileName, - resources, - provisioningState); + egressPublicNetworkAccess, + dataCollector); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// - /// [Required] Additional attributes of the entity. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . - /// - /// A new instance for mocking. - public static MachineLearningDatastoreData MachineLearningDatastoreData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningDatastoreProperties properties = null) + /// Initializes a new instance of . + /// The retrieved online deployment logs. + /// A new instance for mocking. + public static MachineLearningDeploymentLogs MachineLearningDeploymentLogs(string content = null) { - return new MachineLearningDatastoreData( - id, - name, - resourceType, - systemData, - properties, - serializedAdditionalRawData: null); + return new MachineLearningDeploymentLogs(content, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The asset description text. - /// Tag dictionary. Tags can be added, removed, and updated. - /// The asset property dictionary. - /// [Required] Storage type backing the datastore. - /// Readonly property to indicate if datastore is the workspace default datastore. - /// - /// [Required] Account credentials. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . - /// - /// A new instance for mocking. - public static MachineLearningDatastoreProperties MachineLearningDatastoreProperties(string description = null, IDictionary tags = null, IDictionary properties = null, string datastoreType = null, bool? isDefault = null, MachineLearningDatastoreCredentials credentials = null) + /// Initializes a new instance of . + /// The resource type name. + /// Gets or sets the Sku. + /// Gets or sets the Sku Capacity. + /// A new instance for mocking. + public static MachineLearningSkuDetail MachineLearningSkuDetail(string resourceType = null, MachineLearningSkuSetting sku = null, MachineLearningSkuCapacity capacity = null) { - tags ??= new Dictionary(); - properties ??= new Dictionary(); + return new MachineLearningSkuDetail(resourceType, sku, capacity, serializedAdditionalRawData: null); + } - return new MachineLearningDatastoreProperties( - description, - tags, - properties, - serializedAdditionalRawData: null, - datastoreType == null ? default : new DatastoreType(datastoreType), - isDefault, - credentials); + /// Initializes a new instance of . + /// [Required] The name of the SKU. Ex - P3. It is typically a letter+number code. + /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. + /// A new instance for mocking. + public static MachineLearningSkuSetting MachineLearningSkuSetting(string name = null, MachineLearningSkuTier? tier = null) + { + return new MachineLearningSkuSetting(name, tier, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// Gets or sets the minimum. + /// Gets or sets the maximum. + /// Gets or sets the default capacity. + /// Gets or sets the type of the scale. + /// A new instance for mocking. + public static MachineLearningSkuCapacity MachineLearningSkuCapacity(int? minimum = null, int? maximum = null, int? @default = null, MachineLearningSkuScaleType? scaleType = null) + { + return new MachineLearningSkuCapacity(minimum, maximum, @default, scaleType, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// [Required] Specification for which type of key to generate. Primary or Secondary. + /// The value the key is set to. + /// A new instance for mocking. + public static MachineLearningEndpointKeyRegenerateContent MachineLearningEndpointKeyRegenerateContent(MachineLearningKeyType keyType = default, string keyValue = null) + { + return new MachineLearningEndpointKeyRegenerateContent(keyType, keyValue, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Access token for endpoint authentication. + /// Access token type. + /// Access token expiry time (UTC). + /// Refresh access token after time (UTC). + /// A new instance for mocking. + public static MachineLearningEndpointAuthToken MachineLearningEndpointAuthToken(string accessToken = null, string tokenType = null, DateTimeOffset? expireOn = null, DateTimeOffset? refreshOn = null) + { + return new MachineLearningEndpointAuthToken(accessToken, tokenType, expireOn, refreshOn, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningFeatureSetContainerData MachineLearningFeatureSetContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningFeatureSetContainerProperties properties = null) + /// A new instance for mocking. + public static MachineLearningScheduleData MachineLearningScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningScheduleProperties properties = null) { - return new MachineLearningFeatureSetContainerData( + return new MachineLearningScheduleData( id, name, resourceType, @@ -1458,558 +1565,615 @@ public static MachineLearningFeatureSetContainerData MachineLearningFeatureSetCo serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The asset description text. /// Tag dictionary. Tags can be added, removed, and updated. /// The asset property dictionary. - /// Is the asset archived?. - /// The latest version inside this container. - /// The next auto incremental version. - /// Provisioning state for the featureset container. - /// A new instance for mocking. - public static MachineLearningFeatureSetContainerProperties MachineLearningFeatureSetContainerProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, RegistryAssetProvisioningState? provisioningState = null) + /// Display name of schedule. + /// Is the schedule enabled?. + /// + /// [Required] Specifies the trigger details + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// + /// [Required] Specifies the action of the schedule + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// Provisioning state for the schedule. + /// A new instance for mocking. + public static MachineLearningScheduleProperties MachineLearningScheduleProperties(string description = null, IDictionary tags = null, IDictionary properties = null, string displayName = null, bool? isEnabled = null, MachineLearningTriggerBase trigger = null, MachineLearningScheduleAction action = null, MachineLearningScheduleProvisioningStatus? provisioningState = null) { tags ??= new Dictionary(); properties ??= new Dictionary(); - return new MachineLearningFeatureSetContainerProperties( + return new MachineLearningScheduleProperties( description, tags, properties, serializedAdditionalRawData: null, - isArchived, - latestVersion, - nextVersion, + displayName, + isEnabled, + trigger, + action, provisioningState); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. + /// The tags. + /// The location. /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningFeatureData MachineLearningFeatureData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningFeatureProperties properties = null) + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. + /// Managed service identity (system assigned and/or user assigned identities). + /// Sku details required for ARM contract for Autoscaling. + /// A new instance for mocking. + public static MachineLearningServerlessEndpointData MachineLearningServerlessEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ServerlessEndpointProperties properties = null, string kind = null, ManagedServiceIdentity identity = null, MachineLearningSku sku = null) { - return new MachineLearningFeatureData( + tags ??= new Dictionary(); + + return new MachineLearningServerlessEndpointData( id, name, resourceType, systemData, + tags, + location, properties, + kind, + identity, + sku, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningFeatureSetVersionData MachineLearningFeatureSetVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningFeatureSetVersionProperties properties = null) + /// Initializes a new instance of . + /// The model settings (model id) for the model being serviced on the ServerlessEndpoint. + /// [Required] Specifies the authentication mode for the Serverless endpoint. + /// The inference uri to target when making requests against the serverless endpoint. + /// Provisioning state for the endpoint. + /// The current state of the ServerlessEndpoint. + /// The MarketplaceSubscription Azure ID associated to this ServerlessEndpoint. + /// Specifies the content safety options. If omitted, the default content safety settings will be configured. + /// A new instance for mocking. + public static ServerlessEndpointProperties ServerlessEndpointProperties(string modelId = null, ServerlessInferenceEndpointAuthMode authMode = default, ServerlessInferenceEndpoint inferenceEndpoint = null, MachineLearningEndpointProvisioningState? provisioningState = null, ServerlessEndpointState? endpointState = null, string marketplaceSubscriptionId = null, ContentSafetyStatus? contentSafetyStatus = null) { - return new MachineLearningFeatureSetVersionData( - id, - name, - resourceType, - systemData, - properties, + return new ServerlessEndpointProperties( + modelId != null ? new ModelSettings(modelId, serializedAdditionalRawData: null) : null, + authMode, + inferenceEndpoint, + provisioningState, + endpointState, + marketplaceSubscriptionId, + contentSafetyStatus.HasValue ? new ContentSafety(contentSafetyStatus.Value, serializedAdditionalRawData: null) : null, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The asset description text. - /// Tag dictionary. Tags can be added, removed, and updated. - /// The asset property dictionary. - /// Is the asset archived?. - /// If the name version are system generated (anonymous registration). - /// Specifies the feature spec details. - /// Specifies the materialization settings. - /// Specifies the asset stage. - /// Specifies list of entities. - /// Provisioning state for the featureset version container. - /// A new instance for mocking. - public static MachineLearningFeatureSetVersionProperties MachineLearningFeatureSetVersionProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, bool? isAnonymous = null, string specificationPath = null, MaterializationSettings materializationSettings = null, string stage = null, IEnumerable entities = null, RegistryAssetProvisioningState? provisioningState = null) - { - tags ??= new Dictionary(); - properties ??= new Dictionary(); - entities ??= new List(); - - return new MachineLearningFeatureSetVersionProperties( - description, - tags, - properties, - serializedAdditionalRawData: null, - isArchived, - isAnonymous, - specificationPath != null ? new FeaturesetSpecification(specificationPath, serializedAdditionalRawData: null) : null, - materializationSettings, - stage, - entities?.ToList(), - provisioningState); - } - - /// Initializes a new instance of . - /// List of jobs submitted as part of the backfill request. - /// A new instance for mocking. - public static FeaturesetVersionBackfillResponse FeaturesetVersionBackfillResponse(IEnumerable jobIds = null) + /// Initializes a new instance of . + /// [Required] The inference uri to target when making requests against the Serverless Endpoint. + /// Specifies any required headers to target this serverless endpoint. + /// A new instance for mocking. + public static ServerlessInferenceEndpoint ServerlessInferenceEndpoint(Uri uri = null, IReadOnlyDictionary headers = null) { - jobIds ??= new List(); + headers ??= new Dictionary(); - return new FeaturesetVersionBackfillResponse(jobIds?.ToList(), serializedAdditionalRawData: null); + return new ServerlessInferenceEndpoint(uri, headers, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningFeatureStoreEntityContainerData MachineLearningFeatureStoreEntityContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningFeatureStoreEntityContainerProperties properties = null) + /// The tags. + /// The location. + /// Managed service identity (system assigned and/or user assigned identities). + /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. + /// Sku details required for ARM contract for Autoscaling. + /// Discovery URL for the Registry. + /// IntellectualPropertyPublisher for the registry. + /// ResourceId of the managed RG if the registry has system created resources. + /// MLFlow Registry URI for the Registry. + /// Private endpoint connections info used for pending connections in private link portal. + /// + /// Is the Registry accessible from the internet? + /// Possible values: "Enabled" or "Disabled" + /// + /// Details of each region the registry is in. + /// A new instance for mocking. + public static MachineLearningRegistryData MachineLearningRegistryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningSku sku = null, Uri discoveryUri = null, string intellectualPropertyPublisher = null, ResourceIdentifier managedResourceId = null, Uri mlFlowRegistryUri = null, IEnumerable registryPrivateEndpointConnections = null, string publicNetworkAccess = null, IEnumerable regionDetails = null) { - return new MachineLearningFeatureStoreEntityContainerData( + tags ??= new Dictionary(); + registryPrivateEndpointConnections ??= new List(); + regionDetails ??= new List(); + + return new MachineLearningRegistryData( id, name, resourceType, systemData, - properties, + tags, + location, + identity, + kind, + sku, + discoveryUri, + intellectualPropertyPublisher, + managedResourceId != null ? new ArmResourceId(managedResourceId, serializedAdditionalRawData: null) : null, + mlFlowRegistryUri, + registryPrivateEndpointConnections?.ToList(), + publicNetworkAccess, + regionDetails?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The asset description text. - /// Tag dictionary. Tags can be added, removed, and updated. - /// The asset property dictionary. - /// Is the asset archived?. - /// The latest version inside this container. - /// The next auto incremental version. - /// Provisioning state for the featurestore entity container. - /// A new instance for mocking. - public static MachineLearningFeatureStoreEntityContainerProperties MachineLearningFeatureStoreEntityContainerProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, string latestVersion = null, string nextVersion = null, RegistryAssetProvisioningState? provisioningState = null) + /// Initializes a new instance of . + /// The ARM identifier for Private Endpoint. + /// The subnetId that the private endpoint is connected to. + /// A new instance for mocking. + public static RegistryPrivateEndpoint RegistryPrivateEndpoint(ResourceIdentifier id = null, ResourceIdentifier subnetArmId = null) { - tags ??= new Dictionary(); - properties ??= new Dictionary(); + return new RegistryPrivateEndpoint(id, serializedAdditionalRawData: null, subnetArmId); + } - return new MachineLearningFeatureStoreEntityContainerProperties( - description, - tags, - properties, - serializedAdditionalRawData: null, - isArchived, - latestVersion, - nextVersion, - provisioningState); + /// Initializes a new instance of . + /// The ARM identifier for Private Endpoint. + /// A new instance for mocking. + public static PrivateEndpointBase PrivateEndpointBase(ResourceIdentifier id = null) + { + return new PrivateEndpointBase(id, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// Specifies the feature ID. + /// Specifies the feature name. + /// Describes the feature for user experience. + /// A new instance for mocking. + public static MachineLearningUserFeature MachineLearningUserFeature(string id = null, string displayName = null, string description = null) + { + return new MachineLearningUserFeature(id, displayName, description, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningFeaturestoreEntityVersionData MachineLearningFeaturestoreEntityVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningFeatureStoreEntityVersionProperties properties = null) + /// The tags. + /// The location. + /// The identity of the resource. + /// + /// The sku of the workspace. + /// The immutable id associated with this workspace. + /// The description of this workspace. + /// The friendly name for this workspace. This name in mutable. + /// ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created. + /// ARM id of the application insights associated with this workspace. + /// ARM id of the container registry associated with this workspace. + /// ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created. + /// Url for the discovery service to identify regional endpoints for machine learning experimentation services. + /// The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. + /// The encryption settings of Azure ML workspace. + /// The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service. + /// The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace. + /// Count of private connections in the workspace. + /// The compute name for image build. + /// The flag to indicate whether to allow public access when behind VNet. + /// Whether requests from Public Network are allowed. + /// The list of private endpoint connections in the workspace. + /// Settings for serverless compute created in the workspace. + /// The list of shared private link resources in this workspace. + /// The notebook info of Azure ML workspace. + /// The service managed resource settings. + /// The user assigned identity resource id that represents the workspace identity. + /// The tenant id associated with this workspace. + /// If the storage associated with the workspace has hierarchical namespace(HNS) enabled. + /// The URI associated with this workspace that machine learning flow must point at to set up tracking. + /// Enabling v1_legacy_mode may prevent you from using features provided by the v2 API. + /// Managed Network settings for a machine learning workspace. + /// Settings for feature store type workspace. + /// + /// + /// + /// WorkspaceHub's configuration object. + /// A new instance for mocking. + public static MachineLearningWorkspaceData MachineLearningWorkspaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningSku sku = null, string workspaceId = null, string description = null, string friendlyName = null, string keyVault = null, string applicationInsights = null, string containerRegistry = null, string storageAccount = null, Uri discoveryUri = null, MachineLearningProvisioningState? provisioningState = null, MachineLearningEncryptionSetting encryption = null, bool? isHbiWorkspace = null, string serviceProvisionedResourceGroup = null, int? privateLinkCount = null, string imageBuildCompute = null, bool? allowPublicAccessWhenBehindVnet = null, PublicNetworkAccess? publicNetworkAccessType = null, IEnumerable privateEndpointConnections = null, ServerlessComputeSettings serverlessComputeSettings = null, IEnumerable sharedPrivateLinkResources = null, MachineLearningNotebookResourceInfo notebookInfo = null, int? cosmosDbCollectionsThroughput = null, string primaryUserAssignedIdentity = null, Guid? tenantId = null, bool? isStorageHnsEnabled = null, Uri mlFlowTrackingUri = null, bool? isV1LegacyMode = null, ManagedNetworkSettings managedNetwork = null, FeatureStoreSettings featureStoreSettings = null, IEnumerable associatedWorkspaces = null, bool? enableDataIsolation = null, ResourceIdentifier hubResourceId = null, WorkspaceHubConfig workspaceHubConfig = null) { - return new MachineLearningFeaturestoreEntityVersionData( + tags ??= new Dictionary(); + privateEndpointConnections ??= new List(); + sharedPrivateLinkResources ??= new List(); + associatedWorkspaces ??= new List(); + + return new MachineLearningWorkspaceData( id, name, resourceType, systemData, - properties, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The asset description text. - /// Tag dictionary. Tags can be added, removed, and updated. - /// The asset property dictionary. - /// Is the asset archived?. - /// If the name version are system generated (anonymous registration). - /// Specifies index columns. - /// Specifies the asset stage. - /// Provisioning state for the featurestore entity version. - /// A new instance for mocking. - public static MachineLearningFeatureStoreEntityVersionProperties MachineLearningFeatureStoreEntityVersionProperties(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isArchived = null, bool? isAnonymous = null, IEnumerable indexColumns = null, string stage = null, RegistryAssetProvisioningState? provisioningState = null) - { - tags ??= new Dictionary(); - properties ??= new Dictionary(); - indexColumns ??= new List(); - - return new MachineLearningFeatureStoreEntityVersionProperties( - description, tags, - properties, - serializedAdditionalRawData: null, - isArchived, - isAnonymous, - indexColumns?.ToList(), - stage, - provisioningState); + location, + identity, + kind, + sku, + workspaceId, + description, + friendlyName, + keyVault, + applicationInsights, + containerRegistry, + storageAccount, + discoveryUri, + provisioningState, + encryption, + isHbiWorkspace, + serviceProvisionedResourceGroup, + privateLinkCount, + imageBuildCompute, + allowPublicAccessWhenBehindVnet, + publicNetworkAccessType, + privateEndpointConnections?.ToList(), + serverlessComputeSettings, + sharedPrivateLinkResources?.ToList(), + notebookInfo, + cosmosDbCollectionsThroughput != null ? new ServiceManagedResourcesSettings(new CosmosDbSettings(cosmosDbCollectionsThroughput, serializedAdditionalRawData: null), serializedAdditionalRawData: null) : null, + primaryUserAssignedIdentity, + tenantId, + isStorageHnsEnabled, + mlFlowTrackingUri, + isV1LegacyMode, + managedNetwork, + featureStoreSettings, + associatedWorkspaces?.ToList(), + enableDataIsolation, + hubResourceId, + workspaceHubConfig, + serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// - /// [Required] Additional attributes of the entity. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . - /// - /// A new instance for mocking. - public static MachineLearningJobData MachineLearningJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningJobProperties properties = null) + /// The tags. + /// The location. + /// The identity of the resource. + /// The sku of the workspace. + /// The resource of private end point. + /// A collection of information about the state of the connection between service consumer and provider. + /// The provisioning state of the private endpoint connection resource. + /// A new instance for mocking. + public static MachineLearningPrivateEndpointConnectionData MachineLearningPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, MachineLearningSku sku = null, ResourceIdentifier subResourceId = null, MachineLearningPrivateLinkServiceConnectionState connectionState = null, MachineLearningPrivateEndpointConnectionProvisioningState? provisioningState = null) { - return new MachineLearningJobData( + tags ??= new Dictionary(); + + return new MachineLearningPrivateEndpointConnectionData( id, name, resourceType, systemData, - properties, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The asset description text. - /// Tag dictionary. Tags can be added, removed, and updated. - /// The asset property dictionary. - /// [Required] Specifies the type of job. - /// Display name of job. - /// Status of the job. - /// The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. - /// - /// List of JobEndpoints. - /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject. - /// - /// ARM resource ID of the compute resource. - /// Is the asset archived?. - /// - /// Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. - /// Defaults to AmlToken if null. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . - /// - /// ARM resource ID of the component resource. - /// Notification setting for the job. - /// A new instance for mocking. - public static MachineLearningJobProperties MachineLearningJobProperties(string description = null, IDictionary tags = null, IDictionary properties = null, string jobType = null, string displayName = null, MachineLearningJobStatus? status = null, string experimentName = null, IDictionary services = null, ResourceIdentifier computeId = null, bool? isArchived = null, MachineLearningIdentityConfiguration identity = null, ResourceIdentifier componentId = null, NotificationSetting notificationSetting = null) - { - tags ??= new Dictionary(); - properties ??= new Dictionary(); - services ??= new Dictionary(); - - return new MachineLearningJobProperties( - description, tags, - properties, - serializedAdditionalRawData: null, - jobType == null ? default : new JobType(jobType), - displayName, - status, - experimentName, - services, - computeId, - isArchived, + location, identity, - componentId, - notificationSetting); + sku, + subResourceId != null ? ResourceManagerModelFactory.SubResource(subResourceId) : null, + connectionState, + provisioningState, + serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Endpoint type. - /// Port for endpoint. - /// Url for endpoint. - /// Status of endpoint. - /// Any error in the service. - /// Additional properties to set on the endpoint. - /// - /// Nodes that user would like to start the service on. - /// If Nodes is not set or set to null, the service will only be started on leader node. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . + /// Initializes a new instance of . + /// + /// the data plane resourceId that used to initialize notebook component. + /// The error that occurs when preparing notebook. + /// A new instance for mocking. + public static MachineLearningNotebookResourceInfo MachineLearningNotebookResourceInfo(string fqdn = null, string resourceId = null, MachineLearningNotebookPreparationError notebookPreparationError = null) + { + return new MachineLearningNotebookResourceInfo(fqdn, resourceId, notebookPreparationError, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// + /// A new instance for mocking. + public static MachineLearningNotebookPreparationError MachineLearningNotebookPreparationError(string errorMessage = null, int? statusCode = null) + { + return new MachineLearningNotebookPreparationError(errorMessage, statusCode, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Isolation mode for the managed network of a machine learning workspace. + /// + /// + /// Dictionary of <OutboundRule> + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . /// - /// A new instance for mocking. - public static MachineLearningJobService MachineLearningJobService(string jobServiceType = null, int? port = null, string endpoint = null, string status = null, string errorMessage = null, IDictionary properties = null, JobNodes nodes = null) + /// Status of the Provisioning for the managed network of a machine learning workspace. + /// A new instance for mocking. + public static ManagedNetworkSettings ManagedNetworkSettings(IsolationMode? isolationMode = null, string networkId = null, IDictionary outboundRules = null, ManagedNetworkProvisionStatus status = null) { - properties ??= new Dictionary(); + outboundRules ??= new Dictionary(); - return new MachineLearningJobService( - jobServiceType, - port, - endpoint, - status, - errorMessage, - properties, - nodes, + return new ManagedNetworkSettings(isolationMode, networkId, outboundRules, status, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// A new instance for mocking. + public static MachineLearningWorkspaceDiagnoseResult MachineLearningWorkspaceDiagnoseResult(MachineLearningDiagnoseResultValue value = null) + { + return new MachineLearningWorkspaceDiagnoseResult(value, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// A new instance for mocking. + public static MachineLearningDiagnoseResultValue MachineLearningDiagnoseResultValue(IEnumerable userDefinedRouteResults = null, IEnumerable networkSecurityRuleResults = null, IEnumerable resourceLockResults = null, IEnumerable dnsResolutionResults = null, IEnumerable storageAccountResults = null, IEnumerable keyVaultResults = null, IEnumerable containerRegistryResults = null, IEnumerable applicationInsightsResults = null, IEnumerable otherResults = null) + { + userDefinedRouteResults ??= new List(); + networkSecurityRuleResults ??= new List(); + resourceLockResults ??= new List(); + dnsResolutionResults ??= new List(); + storageAccountResults ??= new List(); + keyVaultResults ??= new List(); + containerRegistryResults ??= new List(); + applicationInsightsResults ??= new List(); + otherResults ??= new List(); + + return new MachineLearningDiagnoseResultValue( + userDefinedRouteResults?.ToList(), + networkSecurityRuleResults?.ToList(), + resourceLockResults?.ToList(), + dnsResolutionResults?.ToList(), + storageAccountResults?.ToList(), + keyVaultResults?.ToList(), + containerRegistryResults?.ToList(), + applicationInsightsResults?.ToList(), + otherResults?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningMarketplaceSubscriptionData MachineLearningMarketplaceSubscriptionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningMarketplaceSubscriptionProperties properties = null) + /// Initializes a new instance of . + /// Code for workspace setup error. + /// Level of workspace setup error. + /// Message of workspace setup error. + /// A new instance for mocking. + public static MachineLearningDiagnoseResult MachineLearningDiagnoseResult(string code = null, MachineLearningDiagnoseResultLevel? level = null, string message = null) { - return new MachineLearningMarketplaceSubscriptionData( - id, - name, - resourceType, - systemData, - properties, + return new MachineLearningDiagnoseResult(code, level, message, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// + /// + /// + /// + /// A new instance for mocking. + public static MachineLearningWorkspaceGetKeysResult MachineLearningWorkspaceGetKeysResult(string userStorageKey = null, string userStorageResourceId = null, string appInsightsInstrumentationKey = null, MachineLearningContainerRegistryCredentials containerRegistryCredentials = null, MachineLearningWorkspaceGetNotebookKeysResult notebookAccessKeys = null) + { + return new MachineLearningWorkspaceGetKeysResult( + userStorageKey, + userStorageResourceId, + appInsightsInstrumentationKey, + containerRegistryCredentials, + notebookAccessKeys, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// [Required] Target Marketplace Model ID to create a Marketplace Subscription for. - /// Marketplace Plan associated with the Marketplace Subscription. - /// Current status of the Marketplace Subscription. - /// Provisioning State of the Marketplace Subscription. - /// A new instance for mocking. - public static MachineLearningMarketplaceSubscriptionProperties MachineLearningMarketplaceSubscriptionProperties(string modelId = null, MachineLearningMarketplacePlan marketplacePlan = null, MarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = null, MarketplaceSubscriptionProvisioningState? provisioningState = null) + /// Initializes a new instance of . + /// + /// + /// + /// A new instance for mocking. + public static MachineLearningContainerRegistryCredentials MachineLearningContainerRegistryCredentials(AzureLocation? location = null, string username = null, IEnumerable passwords = null) { - return new MachineLearningMarketplaceSubscriptionProperties(modelId, marketplacePlan, marketplaceSubscriptionStatus, provisioningState, serializedAdditionalRawData: null); + passwords ??= new List(); + + return new MachineLearningContainerRegistryCredentials(location, username, passwords?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The identifying name of the Publisher of the Marketplace Plan. - /// The identifying name of the Offer of the Marketplace Plan. - /// The identifying name of the Plan of the Marketplace Plan. - /// A new instance for mocking. - public static MachineLearningMarketplacePlan MachineLearningMarketplacePlan(string publisherId = null, string offerId = null, string planId = null) + /// Initializes a new instance of . + /// + /// + /// A new instance for mocking. + public static MachineLearningPasswordDetail MachineLearningPasswordDetail(string name = null, string value = null) { - return new MachineLearningMarketplacePlan(publisherId, offerId, planId, serializedAdditionalRawData: null); + return new MachineLearningPasswordDetail(name, value, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// + /// + /// A new instance for mocking. + public static MachineLearningWorkspaceGetNotebookKeysResult MachineLearningWorkspaceGetNotebookKeysResult(string primaryAccessKey = null, string secondaryAccessKey = null) + { + return new MachineLearningWorkspaceGetNotebookKeysResult(primaryAccessKey, secondaryAccessKey, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// + /// + /// + /// + /// + /// + /// + /// A new instance for mocking. + public static MachineLearningWorkspaceNotebookAccessTokenResult MachineLearningWorkspaceNotebookAccessTokenResult(string notebookResourceId = null, string hostName = null, string publicDns = null, string accessToken = null, string tokenType = null, int? expiresIn = null, string refreshToken = null, string scope = null) + { + return new MachineLearningWorkspaceNotebookAccessTokenResult( + notebookResourceId, + hostName, + publicDns, + accessToken, + tokenType, + expiresIn, + refreshToken, + scope, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// The tags. /// The location. - /// [Required] Additional attributes of the entity. - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. - /// Managed service identity (system assigned and/or user assigned identities). - /// Sku details required for ARM contract for Autoscaling. - /// A new instance for mocking. - public static MachineLearningOnlineEndpointData MachineLearningOnlineEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, MachineLearningOnlineEndpointProperties properties = null, string kind = null, ManagedServiceIdentity identity = null, MachineLearningSku sku = null) - { - tags ??= new Dictionary(); + /// The identity of the resource. + /// The sku of the workspace. + /// The private link resource group id. + /// The private link resource required member names. + /// The private link resource Private link DNS zone name. + /// A new instance for mocking. + public static MachineLearningPrivateLinkResource MachineLearningPrivateLinkResource(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, MachineLearningSku sku = null, string groupId = null, IEnumerable requiredMembers = null, IEnumerable requiredZoneNames = null) + { + tags ??= new Dictionary(); + requiredMembers ??= new List(); + requiredZoneNames ??= new List(); - return new MachineLearningOnlineEndpointData( + return new MachineLearningPrivateLinkResource( id, name, resourceType, systemData, tags, location, - properties, - kind, identity, sku, + groupId, + requiredMembers?.ToList(), + requiredZoneNames?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Description of the inference endpoint. - /// Property dictionary. Properties can be added, but not removed or altered. - /// Endpoint URI. - /// Endpoint Swagger URI. - /// [Required] Use 'Key' for key based authentication and 'AMLToken' for Azure Machine Learning token-based authentication. 'Key' doesn't expire but 'AMLToken' does. - /// - /// EndpointAuthKeys to set initially on an Endpoint. - /// This property will always be returned as null. AuthKey values must be retrieved using the ListKeys API. - /// - /// Provisioning state for the endpoint. - /// - /// ARM resource ID of the compute if it exists. - /// optional - /// - /// Set to "Enabled" for endpoints that should allow public access when Private Link is enabled. - /// Percentage of traffic from endpoint to divert to each deployment. Traffic values need to sum to 100. - /// Percentage of traffic to be mirrored to each deployment without using returned scoring. Traffic values need to sum to utmost 50. - /// A new instance for mocking. - public static MachineLearningOnlineEndpointProperties MachineLearningOnlineEndpointProperties(string description = null, IDictionary properties = null, Uri scoringUri = null, Uri swaggerUri = null, MachineLearningEndpointAuthMode authMode = default, MachineLearningEndpointAuthKeys keys = null, MachineLearningEndpointProvisioningState? provisioningState = null, string compute = null, MachineLearningPublicNetworkAccessType? publicNetworkAccess = null, IDictionary traffic = null, IDictionary mirrorTraffic = null) + /// Initializes a new instance of . + /// + /// A new instance for mocking. + public static MachineLearningWorkspaceGetStorageAccountKeysResult MachineLearningWorkspaceGetStorageAccountKeysResult(string userStorageKey = null) { - properties ??= new Dictionary(); - traffic ??= new Dictionary(); - mirrorTraffic ??= new Dictionary(); - - return new MachineLearningOnlineEndpointProperties( - description, - properties, - scoringUri, - swaggerUri, - authMode, - keys, - serializedAdditionalRawData: null, - provisioningState, - compute, - publicNetworkAccess, - traffic, - mirrorTraffic); + return new MachineLearningWorkspaceGetStorageAccountKeysResult(userStorageKey, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// The tags. - /// The location. /// - /// [Required] Additional attributes of the entity. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , and . /// - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. - /// Managed service identity (system assigned and/or user assigned identities). - /// Sku details required for ARM contract for Autoscaling. - /// A new instance for mocking. - public static MachineLearningOnlineDeploymentData MachineLearningOnlineDeploymentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, MachineLearningOnlineDeploymentProperties properties = null, string kind = null, ManagedServiceIdentity identity = null, MachineLearningSku sku = null) + /// A new instance for mocking. + public static MachineLearningWorkspaceConnectionData MachineLearningWorkspaceConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningWorkspaceConnectionProperties properties = null) { - tags ??= new Dictionary(); - - return new MachineLearningOnlineDeploymentData( + return new MachineLearningWorkspaceConnectionData( id, name, resourceType, systemData, - tags, - location, properties, - kind, - identity, - sku, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Description of the endpoint deployment. - /// Property dictionary. Properties can be added, but not removed or altered. - /// Code configuration for the endpoint deployment. - /// ARM resource ID or AssetId of the environment specification for the endpoint deployment. - /// Environment variables configuration for the deployment. - /// [Required] The compute type of the endpoint. - /// - /// Scale settings for the deployment. - /// If it is null or not provided, - /// it defaults to TargetUtilizationScaleSettings for KubernetesOnlineDeployment - /// and to DefaultScaleSettings for ManagedOnlineDeployment. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - /// Request settings for the deployment. - /// The path to mount the model in custom container. - /// If true, enables Application Insights logging. - /// Liveness probe monitors the health of the container regularly. - /// Readiness probe validates if the container is ready to serve traffic. The properties and defaults are the same as liveness probe. - /// Provisioning state for the endpoint deployment. - /// Compute instance type. - /// The URI path to the model. - /// If Enabled, allow egress public network access. If Disabled, this will create secure egress. Default: Enabled. - /// The mdc configuration, we disable mdc when it's null. - /// A new instance for mocking. - public static MachineLearningOnlineDeploymentProperties MachineLearningOnlineDeploymentProperties(string description = null, IDictionary properties = null, MachineLearningCodeConfiguration codeConfiguration = null, string environmentId = null, IDictionary environmentVariables = null, string endpointComputeType = null, MachineLearningOnlineScaleSettings scaleSettings = null, MachineLearningOnlineRequestSettings requestSettings = null, string modelMountPath = null, bool? appInsightsEnabled = null, MachineLearningProbeSettings livenessProbe = null, MachineLearningProbeSettings readinessProbe = null, MachineLearningDeploymentProvisioningState? provisioningState = null, string instanceType = null, string model = null, MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = null, DataCollector dataCollector = null) + /// Initializes a new instance of . + /// Authentication type of the connection target. + /// Category of the connection. + /// + /// + /// Group based on connection category. + /// + /// + /// Store user metadata for this connection. + /// + /// Value details of the workspace connection. + /// format for the workspace connection value. + /// A new instance for mocking. + public static MachineLearningWorkspaceConnectionProperties MachineLearningWorkspaceConnectionProperties(string authType = null, MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null) { - properties ??= new Dictionary(); - environmentVariables ??= new Dictionary(); + metadata ??= new Dictionary(); + sharedUserList ??= new List(); - return new MachineLearningOnlineDeploymentProperties( - description, - properties, - codeConfiguration, - environmentId, - environmentVariables, - serializedAdditionalRawData: null, - endpointComputeType == null ? default : new MachineLearningEndpointComputeType(endpointComputeType), - scaleSettings, - requestSettings, - modelMountPath, - appInsightsEnabled, - livenessProbe, - readinessProbe, - provisioningState, - instanceType, - model, - egressPublicNetworkAccess, - dataCollector); + return new UnknownWorkspaceConnectionPropertiesV2( + authType == null ? default : new MachineLearningConnectionAuthType(authType), + category, + createdByWorkspaceArmId, + expiryOn, + group, + isSharedToAll, + target, + metadata, + sharedUserList?.ToList(), + value, + valueFormat, + serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The retrieved online deployment logs. - /// A new instance for mocking. - public static MachineLearningDeploymentLogs MachineLearningDeploymentLogs(string content = null) + /// Initializes a new instance of . + /// + /// A new instance for mocking. + public static MachineLearningFqdnEndpoints MachineLearningFqdnEndpoints(MachineLearningFqdnEndpointsProperties properties = null) { - return new MachineLearningDeploymentLogs(content, serializedAdditionalRawData: null); + return new MachineLearningFqdnEndpoints(properties, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The resource type name. - /// Gets or sets the Sku. - /// Gets or sets the Sku Capacity. - /// A new instance for mocking. - public static MachineLearningSkuDetail MachineLearningSkuDetail(string resourceType = null, MachineLearningSkuSetting sku = null, MachineLearningSkuCapacity capacity = null) + /// Initializes a new instance of . + /// + /// + /// A new instance for mocking. + public static MachineLearningFqdnEndpointsProperties MachineLearningFqdnEndpointsProperties(string category = null, IEnumerable endpoints = null) { - return new MachineLearningSkuDetail(resourceType, sku, capacity, serializedAdditionalRawData: null); - } + endpoints ??= new List(); - /// Initializes a new instance of . - /// [Required] The name of the SKU. Ex - P3. It is typically a letter+number code. - /// This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. - /// A new instance for mocking. - public static MachineLearningSkuSetting MachineLearningSkuSetting(string name = null, MachineLearningSkuTier? tier = null) - { - return new MachineLearningSkuSetting(name, tier, serializedAdditionalRawData: null); + return new MachineLearningFqdnEndpointsProperties(category, endpoints?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Gets or sets the minimum. - /// Gets or sets the maximum. - /// Gets or sets the default capacity. - /// Gets or sets the type of the scale. - /// A new instance for mocking. - public static MachineLearningSkuCapacity MachineLearningSkuCapacity(int? minimum = null, int? maximum = null, int? @default = null, MachineLearningSkuScaleType? scaleType = null) + /// Initializes a new instance of . + /// + /// + /// A new instance for mocking. + public static MachineLearningFqdnEndpoint MachineLearningFqdnEndpoint(string domainName = null, IEnumerable endpointDetails = null) { - return new MachineLearningSkuCapacity(minimum, maximum, @default, scaleType, serializedAdditionalRawData: null); - } + endpointDetails ??= new List(); - /// Initializes a new instance of . - /// [Required] Specification for which type of key to generate. Primary or Secondary. - /// The value the key is set to. - /// A new instance for mocking. - public static MachineLearningEndpointKeyRegenerateContent MachineLearningEndpointKeyRegenerateContent(MachineLearningKeyType keyType = default, string keyValue = null) - { - return new MachineLearningEndpointKeyRegenerateContent(keyType, keyValue, serializedAdditionalRawData: null); + return new MachineLearningFqdnEndpoint(domainName, endpointDetails?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Access token for endpoint authentication. - /// Access token type. - /// Access token expiry time (UTC). - /// Refresh access token after time (UTC). - /// A new instance for mocking. - public static MachineLearningEndpointAuthToken MachineLearningEndpointAuthToken(string accessToken = null, string tokenType = null, DateTimeOffset? expireOn = null, DateTimeOffset? refreshOn = null) + /// Initializes a new instance of . + /// + /// A new instance for mocking. + public static MachineLearningFqdnEndpointDetail MachineLearningFqdnEndpointDetail(int? port = null) { - return new MachineLearningEndpointAuthToken(accessToken, tokenType, expireOn, refreshOn, serializedAdditionalRawData: null); + return new MachineLearningFqdnEndpointDetail(port, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// [Required] Additional attributes of the entity. - /// A new instance for mocking. - public static MachineLearningScheduleData MachineLearningScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningScheduleProperties properties = null) + /// + /// Outbound Rule for the managed network of a machine learning workspace. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// A new instance for mocking. + public static MachineLearningOutboundRuleBasicData MachineLearningOutboundRuleBasicData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningOutboundRule properties = null) { - return new MachineLearningScheduleData( + return new MachineLearningOutboundRuleBasicData( id, name, resourceType, @@ -2018,170 +2182,6 @@ public static MachineLearningScheduleData MachineLearningScheduleData(ResourceId serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The asset description text. - /// Tag dictionary. Tags can be added, removed, and updated. - /// The asset property dictionary. - /// Display name of schedule. - /// Is the schedule enabled?. - /// - /// [Required] Specifies the trigger details - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - /// - /// [Required] Specifies the action of the schedule - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . - /// - /// Provisioning state for the schedule. - /// A new instance for mocking. - public static MachineLearningScheduleProperties MachineLearningScheduleProperties(string description = null, IDictionary tags = null, IDictionary properties = null, string displayName = null, bool? isEnabled = null, MachineLearningTriggerBase trigger = null, MachineLearningScheduleAction action = null, MachineLearningScheduleProvisioningStatus? provisioningState = null) - { - tags ??= new Dictionary(); - properties ??= new Dictionary(); - - return new MachineLearningScheduleProperties( - description, - tags, - properties, - serializedAdditionalRawData: null, - displayName, - isEnabled, - trigger, - action, - provisioningState); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// [Required] Additional attributes of the entity. - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. - /// Managed service identity (system assigned and/or user assigned identities). - /// Sku details required for ARM contract for Autoscaling. - /// A new instance for mocking. - public static MachineLearningServerlessEndpointData MachineLearningServerlessEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ServerlessEndpointProperties properties = null, string kind = null, ManagedServiceIdentity identity = null, MachineLearningSku sku = null) - { - tags ??= new Dictionary(); - - return new MachineLearningServerlessEndpointData( - id, - name, - resourceType, - systemData, - tags, - location, - properties, - kind, - identity, - sku, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The model settings (model id) for the model being serviced on the ServerlessEndpoint. - /// [Required] Specifies the authentication mode for the Serverless endpoint. - /// The inference uri to target when making requests against the serverless endpoint. - /// Provisioning state for the endpoint. - /// The current state of the ServerlessEndpoint. - /// The MarketplaceSubscription Azure ID associated to this ServerlessEndpoint. - /// Specifies the content safety options. If omitted, the default content safety settings will be configured. - /// A new instance for mocking. - public static ServerlessEndpointProperties ServerlessEndpointProperties(string modelId = null, ServerlessInferenceEndpointAuthMode authMode = default, ServerlessInferenceEndpoint inferenceEndpoint = null, MachineLearningEndpointProvisioningState? provisioningState = null, ServerlessEndpointState? endpointState = null, string marketplaceSubscriptionId = null, ContentSafetyStatus? contentSafetyStatus = null) - { - return new ServerlessEndpointProperties( - modelId != null ? new ModelSettings(modelId, serializedAdditionalRawData: null) : null, - authMode, - inferenceEndpoint, - provisioningState, - endpointState, - marketplaceSubscriptionId, - contentSafetyStatus.HasValue ? new ContentSafety(contentSafetyStatus.Value, serializedAdditionalRawData: null) : null, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// [Required] The inference uri to target when making requests against the Serverless Endpoint. - /// Specifies any required headers to target this serverless endpoint. - /// A new instance for mocking. - public static ServerlessInferenceEndpoint ServerlessInferenceEndpoint(Uri uri = null, IReadOnlyDictionary headers = null) - { - headers ??= new Dictionary(); - - return new ServerlessInferenceEndpoint(uri, headers, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// The location. - /// Managed service identity (system assigned and/or user assigned identities). - /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. - /// Sku details required for ARM contract for Autoscaling. - /// Discovery URL for the Registry. - /// IntellectualPropertyPublisher for the registry. - /// ResourceId of the managed RG if the registry has system created resources. - /// MLFlow Registry URI for the Registry. - /// Private endpoint connections info used for pending connections in private link portal. - /// - /// Is the Registry accessible from the internet? - /// Possible values: "Enabled" or "Disabled" - /// - /// Details of each region the registry is in. - /// A new instance for mocking. - public static MachineLearningRegistryData MachineLearningRegistryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningSku sku = null, Uri discoveryUri = null, string intellectualPropertyPublisher = null, ResourceIdentifier managedResourceId = null, Uri mlFlowRegistryUri = null, IEnumerable registryPrivateEndpointConnections = null, string publicNetworkAccess = null, IEnumerable regionDetails = null) - { - tags ??= new Dictionary(); - registryPrivateEndpointConnections ??= new List(); - regionDetails ??= new List(); - - return new MachineLearningRegistryData( - id, - name, - resourceType, - systemData, - tags, - location, - identity, - kind, - sku, - discoveryUri, - intellectualPropertyPublisher, - managedResourceId != null ? new ArmResourceId(managedResourceId, serializedAdditionalRawData: null) : null, - mlFlowRegistryUri, - registryPrivateEndpointConnections?.ToList(), - publicNetworkAccess, - regionDetails?.ToList(), - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The ARM identifier for Private Endpoint. - /// The subnetId that the private endpoint is connected to. - /// A new instance for mocking. - public static RegistryPrivateEndpoint RegistryPrivateEndpoint(ResourceIdentifier id = null, ResourceIdentifier subnetArmId = null) - { - return new RegistryPrivateEndpoint(id, serializedAdditionalRawData: null, subnetArmId); - } - - /// Initializes a new instance of . - /// Specifies the feature ID. - /// Specifies the feature name. - /// Describes the feature for user experience. - /// A new instance for mocking. - public static MachineLearningUserFeature MachineLearningUserFeature(string id = null, string displayName = null, string description = null) - { - return new MachineLearningUserFeature(id, displayName, description, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// Location for the underlying compute. /// The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. @@ -2770,659 +2770,231 @@ public static MachineLearningDatabricksComputeSecrets MachineLearningDatabricksC return new MachineLearningDatabricksComputeSecrets(ComputeType.Databricks, serializedAdditionalRawData: null, databricksAccessToken); } - /// Initializes a new instance of . - /// The action enum for networking rule. - /// Optional, if provided, the ServiceTag property will be ignored. - /// - /// - /// - /// A new instance for mocking. - public static ServiceTagDestination ServiceTagDestination(NetworkingRuleAction? action = null, IEnumerable addressPrefixes = null, string portRanges = null, string protocol = null, string serviceTag = null) + /// Initializes a new instance of . + /// The asset description text. + /// Tag dictionary. Tags can be added, removed, and updated. + /// The asset property dictionary. + /// Display name of job. + /// Status of the job. + /// The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. + /// + /// List of JobEndpoints. + /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject. + /// + /// ARM resource ID of the compute resource. + /// Is the asset archived?. + /// + /// Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. + /// Defaults to AmlToken if null. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// ARM resource ID of the component resource. + /// Notification setting for the job. + /// Compute Resource configuration for the job. + /// + /// The ARM resource ID of the Environment specification for the job. + /// This is optional value to provide, if not provided, AutoML will default this to Production AutoML curated environment version when running the job. + /// + /// Environment variables included in the job. + /// + /// [Required] This represents scenario which can be one of Tables/NLP/Image + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , and . + /// + /// + /// Mapping of output data bindings used in the job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . + /// + /// Queue settings for the job. + /// A new instance for mocking. + public static AutoMLJob AutoMLJob(string description = null, IDictionary tags = null, IDictionary properties = null, string displayName = null, MachineLearningJobStatus? status = null, string experimentName = null, IDictionary services = null, ResourceIdentifier computeId = null, bool? isArchived = null, MachineLearningIdentityConfiguration identity = null, ResourceIdentifier componentId = null, NotificationSetting notificationSetting = null, MachineLearningJobResourceConfiguration resources = null, string environmentId = null, IDictionary environmentVariables = null, AutoMLVertical taskDetails = null, IDictionary outputs = null, JobTier? queueJobTier = null) { - addressPrefixes ??= new List(); + tags ??= new Dictionary(); + properties ??= new Dictionary(); + services ??= new Dictionary(); + environmentVariables ??= new Dictionary(); + outputs ??= new Dictionary(); - return new ServiceTagDestination( - action, - addressPrefixes?.ToList(), - portRanges, - protocol, - serviceTag, - serializedAdditionalRawData: null); + return new AutoMLJob( + description, + tags, + properties, + serializedAdditionalRawData: null, + JobType.AutoML, + displayName, + status, + experimentName, + services, + computeId, + isArchived, + identity, + componentId, + notificationSetting, + resources, + environmentId, + environmentVariables, + taskDetails, + outputs, + queueJobTier != null ? new JobQueueSettings(queueJobTier, serializedAdditionalRawData: null) : null); } - /// Initializes a new instance of . - /// Category of the connection. - /// - /// - /// Group based on connection category. - /// - /// - /// Store user metadata for this connection. - /// - /// Value details of the workspace connection. - /// format for the workspace connection value. - /// - /// A new instance for mocking. - public static MachineLearningPatAuthTypeWorkspaceConnection MachineLearningPatAuthTypeWorkspaceConnection(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null, string credentialsPat = null) - { - metadata ??= new Dictionary(); - sharedUserList ??= new List(); - - return new MachineLearningPatAuthTypeWorkspaceConnection( - MachineLearningConnectionAuthType.Pat, - category, - createdByWorkspaceArmId, - expiryOn, - group, - isSharedToAll, - target, - metadata, - sharedUserList?.ToList(), - value, - valueFormat, - serializedAdditionalRawData: null, - credentialsPat != null ? new WorkspaceConnectionPersonalAccessToken(credentialsPat, serializedAdditionalRawData: null) : null); - } - - /// Initializes a new instance of . - /// Category of the connection. - /// - /// - /// Group based on connection category. - /// - /// - /// Store user metadata for this connection. - /// - /// Value details of the workspace connection. - /// format for the workspace connection value. - /// - /// A new instance for mocking. - public static MachineLearningSasAuthTypeWorkspaceConnection MachineLearningSasAuthTypeWorkspaceConnection(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null, string credentialsSas = null) + /// Initializes a new instance of . + /// The asset description text. + /// Tag dictionary. Tags can be added, removed, and updated. + /// The asset property dictionary. + /// Readonly property to indicate if datastore is the workspace default datastore. + /// + /// [Required] Account credentials. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Storage account name. + /// Storage account container name. + /// Azure cloud endpoint for the storage account. + /// Protocol used to communicate with the storage account. + /// Indicates which identity to use to authenticate service data access to customer's storage. + /// Azure Subscription Id. + /// Azure Resource Group name. + /// A new instance for mocking. + public static MachineLearningAzureBlobDatastore MachineLearningAzureBlobDatastore(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isDefault = null, MachineLearningDatastoreCredentials credentials = null, string accountName = null, string containerName = null, string endpoint = null, string protocol = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null, string subscriptionId = null, string resourceGroup = null) { - metadata ??= new Dictionary(); - sharedUserList ??= new List(); + tags ??= new Dictionary(); + properties ??= new Dictionary(); - return new MachineLearningSasAuthTypeWorkspaceConnection( - MachineLearningConnectionAuthType.Sas, - category, - createdByWorkspaceArmId, - expiryOn, - group, - isSharedToAll, - target, - metadata, - sharedUserList?.ToList(), - value, - valueFormat, + return new MachineLearningAzureBlobDatastore( + description, + tags, + properties, serializedAdditionalRawData: null, - credentialsSas != null ? new WorkspaceConnectionSharedAccessSignature(credentialsSas, serializedAdditionalRawData: null) : null); + DatastoreType.AzureBlob, + isDefault, + credentials, + accountName, + containerName, + endpoint, + protocol, + serviceDataAccessAuthIdentity, + subscriptionId, + resourceGroup); } - /// Initializes a new instance of . - /// Category of the connection. - /// - /// - /// Group based on connection category. - /// - /// - /// Store user metadata for this connection. - /// - /// Value details of the workspace connection. - /// format for the workspace connection value. - /// - /// A new instance for mocking. - public static MachineLearningUsernamePasswordAuthTypeWorkspaceConnection MachineLearningUsernamePasswordAuthTypeWorkspaceConnection(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null, MachineLearningWorkspaceConnectionUsernamePassword credentials = null) + /// Initializes a new instance of . + /// The asset description text. + /// Tag dictionary. Tags can be added, removed, and updated. + /// The asset property dictionary. + /// Readonly property to indicate if datastore is the workspace default datastore. + /// + /// [Required] Account credentials. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// [Required] Azure Data Lake store name. + /// Indicates which identity to use to authenticate service data access to customer's storage. + /// Azure Subscription Id. + /// Azure Resource Group name. + /// A new instance for mocking. + public static MachineLearningAzureDataLakeGen1Datastore MachineLearningAzureDataLakeGen1Datastore(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isDefault = null, MachineLearningDatastoreCredentials credentials = null, string storeName = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null, string subscriptionId = null, string resourceGroup = null) { - metadata ??= new Dictionary(); - sharedUserList ??= new List(); + tags ??= new Dictionary(); + properties ??= new Dictionary(); - return new MachineLearningUsernamePasswordAuthTypeWorkspaceConnection( - MachineLearningConnectionAuthType.UsernamePassword, - category, - createdByWorkspaceArmId, - expiryOn, - group, - isSharedToAll, - target, - metadata, - sharedUserList?.ToList(), - value, - valueFormat, + return new MachineLearningAzureDataLakeGen1Datastore( + description, + tags, + properties, serializedAdditionalRawData: null, - credentials); + DatastoreType.AzureDataLakeGen1, + isDefault, + credentials, + storeName, + serviceDataAccessAuthIdentity, + subscriptionId, + resourceGroup); } - /// Initializes a new instance of . - /// Category of the connection. - /// - /// - /// Group based on connection category. - /// - /// - /// Store user metadata for this connection. - /// - /// Value details of the workspace connection. - /// format for the workspace connection value. - /// A new instance for mocking. - public static MachineLearningNoneAuthTypeWorkspaceConnection MachineLearningNoneAuthTypeWorkspaceConnection(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null) + /// Initializes a new instance of . + /// The asset description text. + /// Tag dictionary. Tags can be added, removed, and updated. + /// The asset property dictionary. + /// Readonly property to indicate if datastore is the workspace default datastore. + /// + /// [Required] Account credentials. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// [Required] The name of the Data Lake Gen2 filesystem. + /// [Required] Storage account name. + /// Azure cloud endpoint for the storage account. + /// Protocol used to communicate with the storage account. + /// Indicates which identity to use to authenticate service data access to customer's storage. + /// Azure Subscription Id. + /// Azure Resource Group name. + /// A new instance for mocking. + public static MachineLearningAzureDataLakeGen2Datastore MachineLearningAzureDataLakeGen2Datastore(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isDefault = null, MachineLearningDatastoreCredentials credentials = null, string filesystem = null, string accountName = null, string endpoint = null, string protocol = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null, string subscriptionId = null, string resourceGroup = null) { - metadata ??= new Dictionary(); - sharedUserList ??= new List(); + tags ??= new Dictionary(); + properties ??= new Dictionary(); - return new MachineLearningNoneAuthTypeWorkspaceConnection( - MachineLearningConnectionAuthType.None, - category, - createdByWorkspaceArmId, - expiryOn, - group, - isSharedToAll, - target, - metadata, - sharedUserList?.ToList(), - value, - valueFormat, - serializedAdditionalRawData: null); + return new MachineLearningAzureDataLakeGen2Datastore( + description, + tags, + properties, + serializedAdditionalRawData: null, + DatastoreType.AzureDataLakeGen2, + isDefault, + credentials, + filesystem, + accountName, + endpoint, + protocol, + serviceDataAccessAuthIdentity, + subscriptionId, + resourceGroup); } - /// Initializes a new instance of . - /// Category of the connection. - /// - /// - /// Group based on connection category. - /// - /// - /// Store user metadata for this connection. - /// - /// Value details of the workspace connection. - /// format for the workspace connection value. - /// - /// A new instance for mocking. - public static MachineLearningManagedIdentityAuthTypeWorkspaceConnection MachineLearningManagedIdentityAuthTypeWorkspaceConnection(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null, MachineLearningWorkspaceConnectionManagedIdentity credentials = null) + /// Initializes a new instance of . + /// The asset description text. + /// Tag dictionary. Tags can be added, removed, and updated. + /// The asset property dictionary. + /// Readonly property to indicate if datastore is the workspace default datastore. + /// + /// [Required] Account credentials. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// [Required] Storage account name. + /// [Required] The name of the Azure file share that the datastore points to. + /// Azure cloud endpoint for the storage account. + /// Protocol used to communicate with the storage account. + /// Indicates which identity to use to authenticate service data access to customer's storage. + /// Azure Subscription Id. + /// Azure Resource Group name. + /// A new instance for mocking. + public static MachineLearningAzureFileDatastore MachineLearningAzureFileDatastore(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isDefault = null, MachineLearningDatastoreCredentials credentials = null, string accountName = null, string fileShareName = null, string endpoint = null, string protocol = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null, string subscriptionId = null, string resourceGroup = null) { - metadata ??= new Dictionary(); - sharedUserList ??= new List(); + tags ??= new Dictionary(); + properties ??= new Dictionary(); - return new MachineLearningManagedIdentityAuthTypeWorkspaceConnection( - MachineLearningConnectionAuthType.ManagedIdentity, - category, - createdByWorkspaceArmId, - expiryOn, - group, - isSharedToAll, - target, - metadata, - sharedUserList?.ToList(), - value, - valueFormat, + return new MachineLearningAzureFileDatastore( + description, + tags, + properties, serializedAdditionalRawData: null, - credentials); - } - - /// Initializes a new instance of . - /// Category of the connection. - /// - /// - /// Group based on connection category. - /// - /// - /// Store user metadata for this connection. - /// - /// Value details of the workspace connection. - /// format for the workspace connection value. - /// A new instance for mocking. - public static AadAuthTypeWorkspaceConnectionProperties AadAuthTypeWorkspaceConnectionProperties(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null) - { - metadata ??= new Dictionary(); - sharedUserList ??= new List(); - - return new AadAuthTypeWorkspaceConnectionProperties( - MachineLearningConnectionAuthType.Aad, - category, - createdByWorkspaceArmId, - expiryOn, - group, - isSharedToAll, - target, - metadata, - sharedUserList?.ToList(), - value, - valueFormat, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Category of the connection. - /// - /// - /// Group based on connection category. - /// - /// - /// Store user metadata for this connection. - /// - /// Value details of the workspace connection. - /// format for the workspace connection value. - /// - /// A new instance for mocking. - public static AccessKeyAuthTypeWorkspaceConnectionProperties AccessKeyAuthTypeWorkspaceConnectionProperties(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null, WorkspaceConnectionAccessKey credentials = null) - { - metadata ??= new Dictionary(); - sharedUserList ??= new List(); - - return new AccessKeyAuthTypeWorkspaceConnectionProperties( - MachineLearningConnectionAuthType.AccessKey, - category, - createdByWorkspaceArmId, - expiryOn, - group, - isSharedToAll, - target, - metadata, - sharedUserList?.ToList(), - value, - valueFormat, - serializedAdditionalRawData: null, - credentials); - } - - /// Initializes a new instance of . - /// Category of the connection. - /// - /// - /// Group based on connection category. - /// - /// - /// Store user metadata for this connection. - /// - /// Value details of the workspace connection. - /// format for the workspace connection value. - /// - /// A new instance for mocking. - public static AccountKeyAuthTypeWorkspaceConnectionProperties AccountKeyAuthTypeWorkspaceConnectionProperties(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null, string credentialsKey = null) - { - metadata ??= new Dictionary(); - sharedUserList ??= new List(); - - return new AccountKeyAuthTypeWorkspaceConnectionProperties( - MachineLearningConnectionAuthType.AccountKey, - category, - createdByWorkspaceArmId, - expiryOn, - group, - isSharedToAll, - target, - metadata, - sharedUserList?.ToList(), - value, - valueFormat, - serializedAdditionalRawData: null, - credentialsKey != null ? new WorkspaceConnectionAccountKey(credentialsKey, serializedAdditionalRawData: null) : null); - } - - /// Initializes a new instance of . - /// Category of the connection. - /// - /// - /// Group based on connection category. - /// - /// - /// Store user metadata for this connection. - /// - /// Value details of the workspace connection. - /// format for the workspace connection value. - /// Api key object for workspace connection credential. - /// A new instance for mocking. - public static ApiKeyAuthWorkspaceConnectionProperties ApiKeyAuthWorkspaceConnectionProperties(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null, string credentialsKey = null) - { - metadata ??= new Dictionary(); - sharedUserList ??= new List(); - - return new ApiKeyAuthWorkspaceConnectionProperties( - MachineLearningConnectionAuthType.ApiKey, - category, - createdByWorkspaceArmId, - expiryOn, - group, - isSharedToAll, - target, - metadata, - sharedUserList?.ToList(), - value, - valueFormat, - serializedAdditionalRawData: null, - credentialsKey != null ? new WorkspaceConnectionApiKey(credentialsKey, serializedAdditionalRawData: null) : null); - } - - /// Initializes a new instance of . - /// Category of the connection. - /// - /// - /// Group based on connection category. - /// - /// - /// Store user metadata for this connection. - /// - /// Value details of the workspace connection. - /// format for the workspace connection value. - /// Custom Keys credential object. - /// A new instance for mocking. - public static CustomKeysWorkspaceConnectionProperties CustomKeysWorkspaceConnectionProperties(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null, IDictionary credentialsKeys = null) - { - metadata ??= new Dictionary(); - sharedUserList ??= new List(); - credentialsKeys ??= new Dictionary(); - - return new CustomKeysWorkspaceConnectionProperties( - MachineLearningConnectionAuthType.CustomKeys, - category, - createdByWorkspaceArmId, - expiryOn, - group, - isSharedToAll, - target, - metadata, - sharedUserList?.ToList(), - value, - valueFormat, - serializedAdditionalRawData: null, - credentialsKeys != null ? new CustomKeys(credentialsKeys, serializedAdditionalRawData: null) : null); - } - - /// Initializes a new instance of . - /// Category of the connection. - /// - /// - /// Group based on connection category. - /// - /// - /// Store user metadata for this connection. - /// - /// Value details of the workspace connection. - /// format for the workspace connection value. - /// - /// ClientId and ClientSecret are required. Other properties are optional - /// depending on each OAuth2 provider's implementation. - /// - /// A new instance for mocking. - public static OAuth2AuthTypeWorkspaceConnectionProperties OAuth2AuthTypeWorkspaceConnectionProperties(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null, WorkspaceConnectionOAuth2 credentials = null) - { - metadata ??= new Dictionary(); - sharedUserList ??= new List(); - - return new OAuth2AuthTypeWorkspaceConnectionProperties( - MachineLearningConnectionAuthType.OAuth2, - category, - createdByWorkspaceArmId, - expiryOn, - group, - isSharedToAll, - target, - metadata, - sharedUserList?.ToList(), - value, - valueFormat, - serializedAdditionalRawData: null, - credentials); - } - - /// Initializes a new instance of . - /// Category of the connection. - /// - /// - /// Group based on connection category. - /// - /// - /// Store user metadata for this connection. - /// - /// Value details of the workspace connection. - /// format for the workspace connection value. - /// - /// A new instance for mocking. - public static ServicePrincipalAuthTypeWorkspaceConnectionProperties ServicePrincipalAuthTypeWorkspaceConnectionProperties(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null, WorkspaceConnectionServicePrincipal credentials = null) - { - metadata ??= new Dictionary(); - sharedUserList ??= new List(); - - return new ServicePrincipalAuthTypeWorkspaceConnectionProperties( - MachineLearningConnectionAuthType.ServicePrincipal, - category, - createdByWorkspaceArmId, - expiryOn, - group, - isSharedToAll, - target, - metadata, - sharedUserList?.ToList(), - value, - valueFormat, - serializedAdditionalRawData: null, - credentials); + DatastoreType.AzureFile, + isDefault, + credentials, + accountName, + fileShareName, + endpoint, + protocol, + serviceDataAccessAuthIdentity, + subscriptionId, + resourceGroup); } - /// Initializes a new instance of . - /// The asset description text. - /// Tag dictionary. Tags can be added, removed, and updated. - /// The asset property dictionary. - /// Display name of job. - /// Status of the job. - /// The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment. - /// - /// List of JobEndpoints. - /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject. - /// - /// ARM resource ID of the compute resource. - /// Is the asset archived?. - /// - /// Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. - /// Defaults to AmlToken if null. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , and . - /// - /// ARM resource ID of the component resource. - /// Notification setting for the job. - /// Compute Resource configuration for the job. - /// - /// The ARM resource ID of the Environment specification for the job. - /// This is optional value to provide, if not provided, AutoML will default this to Production AutoML curated environment version when running the job. - /// - /// Environment variables included in the job. - /// - /// [Required] This represents scenario which can be one of Tables/NLP/Image - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , and . - /// - /// - /// Mapping of output data bindings used in the job. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , and . - /// - /// Queue settings for the job. - /// A new instance for mocking. - public static AutoMLJob AutoMLJob(string description = null, IDictionary tags = null, IDictionary properties = null, string displayName = null, MachineLearningJobStatus? status = null, string experimentName = null, IDictionary services = null, ResourceIdentifier computeId = null, bool? isArchived = null, MachineLearningIdentityConfiguration identity = null, ResourceIdentifier componentId = null, NotificationSetting notificationSetting = null, MachineLearningJobResourceConfiguration resources = null, string environmentId = null, IDictionary environmentVariables = null, AutoMLVertical taskDetails = null, IDictionary outputs = null, JobTier? queueJobTier = null) - { - tags ??= new Dictionary(); - properties ??= new Dictionary(); - services ??= new Dictionary(); - environmentVariables ??= new Dictionary(); - outputs ??= new Dictionary(); - - return new AutoMLJob( - description, - tags, - properties, - serializedAdditionalRawData: null, - JobType.AutoML, - displayName, - status, - experimentName, - services, - computeId, - isArchived, - identity, - componentId, - notificationSetting, - resources, - environmentId, - environmentVariables, - taskDetails, - outputs, - queueJobTier != null ? new JobQueueSettings(queueJobTier, serializedAdditionalRawData: null) : null); - } - - /// Initializes a new instance of . - /// The asset description text. - /// Tag dictionary. Tags can be added, removed, and updated. - /// The asset property dictionary. - /// Readonly property to indicate if datastore is the workspace default datastore. - /// - /// [Required] Account credentials. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . - /// - /// Storage account name. - /// Storage account container name. - /// Azure cloud endpoint for the storage account. - /// Protocol used to communicate with the storage account. - /// Indicates which identity to use to authenticate service data access to customer's storage. - /// Azure Subscription Id. - /// Azure Resource Group name. - /// A new instance for mocking. - public static MachineLearningAzureBlobDatastore MachineLearningAzureBlobDatastore(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isDefault = null, MachineLearningDatastoreCredentials credentials = null, string accountName = null, string containerName = null, string endpoint = null, string protocol = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null, string subscriptionId = null, string resourceGroup = null) - { - tags ??= new Dictionary(); - properties ??= new Dictionary(); - - return new MachineLearningAzureBlobDatastore( - description, - tags, - properties, - serializedAdditionalRawData: null, - DatastoreType.AzureBlob, - isDefault, - credentials, - accountName, - containerName, - endpoint, - protocol, - serviceDataAccessAuthIdentity, - subscriptionId, - resourceGroup); - } - - /// Initializes a new instance of . - /// The asset description text. - /// Tag dictionary. Tags can be added, removed, and updated. - /// The asset property dictionary. - /// Readonly property to indicate if datastore is the workspace default datastore. - /// - /// [Required] Account credentials. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . - /// - /// [Required] Azure Data Lake store name. - /// Indicates which identity to use to authenticate service data access to customer's storage. - /// Azure Subscription Id. - /// Azure Resource Group name. - /// A new instance for mocking. - public static MachineLearningAzureDataLakeGen1Datastore MachineLearningAzureDataLakeGen1Datastore(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isDefault = null, MachineLearningDatastoreCredentials credentials = null, string storeName = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null, string subscriptionId = null, string resourceGroup = null) - { - tags ??= new Dictionary(); - properties ??= new Dictionary(); - - return new MachineLearningAzureDataLakeGen1Datastore( - description, - tags, - properties, - serializedAdditionalRawData: null, - DatastoreType.AzureDataLakeGen1, - isDefault, - credentials, - storeName, - serviceDataAccessAuthIdentity, - subscriptionId, - resourceGroup); - } - - /// Initializes a new instance of . - /// The asset description text. - /// Tag dictionary. Tags can be added, removed, and updated. - /// The asset property dictionary. - /// Readonly property to indicate if datastore is the workspace default datastore. - /// - /// [Required] Account credentials. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . - /// - /// [Required] The name of the Data Lake Gen2 filesystem. - /// [Required] Storage account name. - /// Azure cloud endpoint for the storage account. - /// Protocol used to communicate with the storage account. - /// Indicates which identity to use to authenticate service data access to customer's storage. - /// Azure Subscription Id. - /// Azure Resource Group name. - /// A new instance for mocking. - public static MachineLearningAzureDataLakeGen2Datastore MachineLearningAzureDataLakeGen2Datastore(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isDefault = null, MachineLearningDatastoreCredentials credentials = null, string filesystem = null, string accountName = null, string endpoint = null, string protocol = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null, string subscriptionId = null, string resourceGroup = null) - { - tags ??= new Dictionary(); - properties ??= new Dictionary(); - - return new MachineLearningAzureDataLakeGen2Datastore( - description, - tags, - properties, - serializedAdditionalRawData: null, - DatastoreType.AzureDataLakeGen2, - isDefault, - credentials, - filesystem, - accountName, - endpoint, - protocol, - serviceDataAccessAuthIdentity, - subscriptionId, - resourceGroup); - } - - /// Initializes a new instance of . - /// The asset description text. - /// Tag dictionary. Tags can be added, removed, and updated. - /// The asset property dictionary. - /// Readonly property to indicate if datastore is the workspace default datastore. - /// - /// [Required] Account credentials. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , and . - /// - /// [Required] Storage account name. - /// [Required] The name of the Azure file share that the datastore points to. - /// Azure cloud endpoint for the storage account. - /// Protocol used to communicate with the storage account. - /// Indicates which identity to use to authenticate service data access to customer's storage. - /// Azure Subscription Id. - /// Azure Resource Group name. - /// A new instance for mocking. - public static MachineLearningAzureFileDatastore MachineLearningAzureFileDatastore(string description = null, IDictionary tags = null, IDictionary properties = null, bool? isDefault = null, MachineLearningDatastoreCredentials credentials = null, string accountName = null, string fileShareName = null, string endpoint = null, string protocol = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null, string subscriptionId = null, string resourceGroup = null) - { - tags ??= new Dictionary(); - properties ??= new Dictionary(); - - return new MachineLearningAzureFileDatastore( - description, - tags, - properties, - serializedAdditionalRawData: null, - DatastoreType.AzureFile, - isDefault, - credentials, - accountName, - fileShareName, - endpoint, - protocol, - serviceDataAccessAuthIdentity, - subscriptionId, - resourceGroup); - } - - /// Initializes a new instance of . + /// Initializes a new instance of . /// The asset description text. /// Tag dictionary. Tags can be added, removed, and updated. /// The asset property dictionary. @@ -3987,5 +3559,433 @@ public static TextNer TextNer(MachineLearningLogVerbosity? logVerbosity = null, featurizationDatasetLanguage != null ? new NlpVerticalFeaturizationSettings(featurizationDatasetLanguage, serializedAdditionalRawData: null) : null, validationData); } + + /// Initializes a new instance of . + /// The action enum for networking rule. + /// Optional, if provided, the ServiceTag property will be ignored. + /// + /// + /// + /// A new instance for mocking. + public static ServiceTagDestination ServiceTagDestination(NetworkingRuleAction? action = null, IEnumerable addressPrefixes = null, string portRanges = null, string protocol = null, string serviceTag = null) + { + addressPrefixes ??= new List(); + + return new ServiceTagDestination( + action, + addressPrefixes?.ToList(), + portRanges, + protocol, + serviceTag, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Category of the connection. + /// + /// + /// Group based on connection category. + /// + /// + /// Store user metadata for this connection. + /// + /// Value details of the workspace connection. + /// format for the workspace connection value. + /// + /// A new instance for mocking. + public static MachineLearningPatAuthTypeWorkspaceConnection MachineLearningPatAuthTypeWorkspaceConnection(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null, string credentialsPat = null) + { + metadata ??= new Dictionary(); + sharedUserList ??= new List(); + + return new MachineLearningPatAuthTypeWorkspaceConnection( + MachineLearningConnectionAuthType.Pat, + category, + createdByWorkspaceArmId, + expiryOn, + group, + isSharedToAll, + target, + metadata, + sharedUserList?.ToList(), + value, + valueFormat, + serializedAdditionalRawData: null, + credentialsPat != null ? new WorkspaceConnectionPersonalAccessToken(credentialsPat, serializedAdditionalRawData: null) : null); + } + + /// Initializes a new instance of . + /// Category of the connection. + /// + /// + /// Group based on connection category. + /// + /// + /// Store user metadata for this connection. + /// + /// Value details of the workspace connection. + /// format for the workspace connection value. + /// + /// A new instance for mocking. + public static MachineLearningSasAuthTypeWorkspaceConnection MachineLearningSasAuthTypeWorkspaceConnection(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null, string credentialsSas = null) + { + metadata ??= new Dictionary(); + sharedUserList ??= new List(); + + return new MachineLearningSasAuthTypeWorkspaceConnection( + MachineLearningConnectionAuthType.Sas, + category, + createdByWorkspaceArmId, + expiryOn, + group, + isSharedToAll, + target, + metadata, + sharedUserList?.ToList(), + value, + valueFormat, + serializedAdditionalRawData: null, + credentialsSas != null ? new WorkspaceConnectionSharedAccessSignature(credentialsSas, serializedAdditionalRawData: null) : null); + } + + /// Initializes a new instance of . + /// Category of the connection. + /// + /// + /// Group based on connection category. + /// + /// + /// Store user metadata for this connection. + /// + /// Value details of the workspace connection. + /// format for the workspace connection value. + /// + /// A new instance for mocking. + public static MachineLearningUsernamePasswordAuthTypeWorkspaceConnection MachineLearningUsernamePasswordAuthTypeWorkspaceConnection(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null, MachineLearningWorkspaceConnectionUsernamePassword credentials = null) + { + metadata ??= new Dictionary(); + sharedUserList ??= new List(); + + return new MachineLearningUsernamePasswordAuthTypeWorkspaceConnection( + MachineLearningConnectionAuthType.UsernamePassword, + category, + createdByWorkspaceArmId, + expiryOn, + group, + isSharedToAll, + target, + metadata, + sharedUserList?.ToList(), + value, + valueFormat, + serializedAdditionalRawData: null, + credentials); + } + + /// Initializes a new instance of . + /// Category of the connection. + /// + /// + /// Group based on connection category. + /// + /// + /// Store user metadata for this connection. + /// + /// Value details of the workspace connection. + /// format for the workspace connection value. + /// A new instance for mocking. + public static MachineLearningNoneAuthTypeWorkspaceConnection MachineLearningNoneAuthTypeWorkspaceConnection(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null) + { + metadata ??= new Dictionary(); + sharedUserList ??= new List(); + + return new MachineLearningNoneAuthTypeWorkspaceConnection( + MachineLearningConnectionAuthType.None, + category, + createdByWorkspaceArmId, + expiryOn, + group, + isSharedToAll, + target, + metadata, + sharedUserList?.ToList(), + value, + valueFormat, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Category of the connection. + /// + /// + /// Group based on connection category. + /// + /// + /// Store user metadata for this connection. + /// + /// Value details of the workspace connection. + /// format for the workspace connection value. + /// + /// A new instance for mocking. + public static MachineLearningManagedIdentityAuthTypeWorkspaceConnection MachineLearningManagedIdentityAuthTypeWorkspaceConnection(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null, MachineLearningWorkspaceConnectionManagedIdentity credentials = null) + { + metadata ??= new Dictionary(); + sharedUserList ??= new List(); + + return new MachineLearningManagedIdentityAuthTypeWorkspaceConnection( + MachineLearningConnectionAuthType.ManagedIdentity, + category, + createdByWorkspaceArmId, + expiryOn, + group, + isSharedToAll, + target, + metadata, + sharedUserList?.ToList(), + value, + valueFormat, + serializedAdditionalRawData: null, + credentials); + } + + /// Initializes a new instance of . + /// Category of the connection. + /// + /// + /// Group based on connection category. + /// + /// + /// Store user metadata for this connection. + /// + /// Value details of the workspace connection. + /// format for the workspace connection value. + /// A new instance for mocking. + public static AadAuthTypeWorkspaceConnectionProperties AadAuthTypeWorkspaceConnectionProperties(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null) + { + metadata ??= new Dictionary(); + sharedUserList ??= new List(); + + return new AadAuthTypeWorkspaceConnectionProperties( + MachineLearningConnectionAuthType.Aad, + category, + createdByWorkspaceArmId, + expiryOn, + group, + isSharedToAll, + target, + metadata, + sharedUserList?.ToList(), + value, + valueFormat, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Category of the connection. + /// + /// + /// Group based on connection category. + /// + /// + /// Store user metadata for this connection. + /// + /// Value details of the workspace connection. + /// format for the workspace connection value. + /// + /// A new instance for mocking. + public static AccessKeyAuthTypeWorkspaceConnectionProperties AccessKeyAuthTypeWorkspaceConnectionProperties(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null, WorkspaceConnectionAccessKey credentials = null) + { + metadata ??= new Dictionary(); + sharedUserList ??= new List(); + + return new AccessKeyAuthTypeWorkspaceConnectionProperties( + MachineLearningConnectionAuthType.AccessKey, + category, + createdByWorkspaceArmId, + expiryOn, + group, + isSharedToAll, + target, + metadata, + sharedUserList?.ToList(), + value, + valueFormat, + serializedAdditionalRawData: null, + credentials); + } + + /// Initializes a new instance of . + /// Category of the connection. + /// + /// + /// Group based on connection category. + /// + /// + /// Store user metadata for this connection. + /// + /// Value details of the workspace connection. + /// format for the workspace connection value. + /// + /// A new instance for mocking. + public static AccountKeyAuthTypeWorkspaceConnectionProperties AccountKeyAuthTypeWorkspaceConnectionProperties(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null, string credentialsKey = null) + { + metadata ??= new Dictionary(); + sharedUserList ??= new List(); + + return new AccountKeyAuthTypeWorkspaceConnectionProperties( + MachineLearningConnectionAuthType.AccountKey, + category, + createdByWorkspaceArmId, + expiryOn, + group, + isSharedToAll, + target, + metadata, + sharedUserList?.ToList(), + value, + valueFormat, + serializedAdditionalRawData: null, + credentialsKey != null ? new WorkspaceConnectionAccountKey(credentialsKey, serializedAdditionalRawData: null) : null); + } + + /// Initializes a new instance of . + /// Category of the connection. + /// + /// + /// Group based on connection category. + /// + /// + /// Store user metadata for this connection. + /// + /// Value details of the workspace connection. + /// format for the workspace connection value. + /// Api key object for workspace connection credential. + /// A new instance for mocking. + public static ApiKeyAuthWorkspaceConnectionProperties ApiKeyAuthWorkspaceConnectionProperties(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null, string credentialsKey = null) + { + metadata ??= new Dictionary(); + sharedUserList ??= new List(); + + return new ApiKeyAuthWorkspaceConnectionProperties( + MachineLearningConnectionAuthType.ApiKey, + category, + createdByWorkspaceArmId, + expiryOn, + group, + isSharedToAll, + target, + metadata, + sharedUserList?.ToList(), + value, + valueFormat, + serializedAdditionalRawData: null, + credentialsKey != null ? new WorkspaceConnectionApiKey(credentialsKey, serializedAdditionalRawData: null) : null); + } + + /// Initializes a new instance of . + /// Category of the connection. + /// + /// + /// Group based on connection category. + /// + /// + /// Store user metadata for this connection. + /// + /// Value details of the workspace connection. + /// format for the workspace connection value. + /// Custom Keys credential object. + /// A new instance for mocking. + public static CustomKeysWorkspaceConnectionProperties CustomKeysWorkspaceConnectionProperties(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null, IDictionary credentialsKeys = null) + { + metadata ??= new Dictionary(); + sharedUserList ??= new List(); + credentialsKeys ??= new Dictionary(); + + return new CustomKeysWorkspaceConnectionProperties( + MachineLearningConnectionAuthType.CustomKeys, + category, + createdByWorkspaceArmId, + expiryOn, + group, + isSharedToAll, + target, + metadata, + sharedUserList?.ToList(), + value, + valueFormat, + serializedAdditionalRawData: null, + credentialsKeys != null ? new CustomKeys(credentialsKeys, serializedAdditionalRawData: null) : null); + } + + /// Initializes a new instance of . + /// Category of the connection. + /// + /// + /// Group based on connection category. + /// + /// + /// Store user metadata for this connection. + /// + /// Value details of the workspace connection. + /// format for the workspace connection value. + /// + /// ClientId and ClientSecret are required. Other properties are optional + /// depending on each OAuth2 provider's implementation. + /// + /// A new instance for mocking. + public static OAuth2AuthTypeWorkspaceConnectionProperties OAuth2AuthTypeWorkspaceConnectionProperties(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null, WorkspaceConnectionOAuth2 credentials = null) + { + metadata ??= new Dictionary(); + sharedUserList ??= new List(); + + return new OAuth2AuthTypeWorkspaceConnectionProperties( + MachineLearningConnectionAuthType.OAuth2, + category, + createdByWorkspaceArmId, + expiryOn, + group, + isSharedToAll, + target, + metadata, + sharedUserList?.ToList(), + value, + valueFormat, + serializedAdditionalRawData: null, + credentials); + } + + /// Initializes a new instance of . + /// Category of the connection. + /// + /// + /// Group based on connection category. + /// + /// + /// Store user metadata for this connection. + /// + /// Value details of the workspace connection. + /// format for the workspace connection value. + /// + /// A new instance for mocking. + public static ServicePrincipalAuthTypeWorkspaceConnectionProperties ServicePrincipalAuthTypeWorkspaceConnectionProperties(MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, DateTimeOffset? expiryOn = null, WorkspaceConnectionGroup? group = null, bool? isSharedToAll = null, string target = null, IDictionary metadata = null, IEnumerable sharedUserList = null, string value = null, MachineLearningValueFormat? valueFormat = null, WorkspaceConnectionServicePrincipal credentials = null) + { + metadata ??= new Dictionary(); + sharedUserList ??= new List(); + + return new ServicePrincipalAuthTypeWorkspaceConnectionProperties( + MachineLearningConnectionAuthType.ServicePrincipal, + category, + createdByWorkspaceArmId, + expiryOn, + group, + isSharedToAll, + target, + metadata, + sharedUserList?.ToList(), + value, + valueFormat, + serializedAdditionalRawData: null, + credentials); + } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MachineLearningExtensions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MachineLearningExtensions.cs index fd68dba2933b..95387b21db26 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MachineLearningExtensions.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MachineLearningExtensions.cs @@ -33,25 +33,6 @@ private static MockableMachineLearningSubscriptionResource GetMockableMachineLea return resource.GetCachedClient(client => new MockableMachineLearningSubscriptionResource(client, resource.Id)); } - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// is null. - /// Returns a object. - public static MachineLearningWorkspaceResource GetMachineLearningWorkspaceResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableMachineLearningArmClient(client).GetMachineLearningWorkspaceResource(id); - } - /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. /// You can use to create a from its components. @@ -71,63 +52,6 @@ public static MachineLearningComputeResource GetMachineLearningComputeResource(t return GetMockableMachineLearningArmClient(client).GetMachineLearningComputeResource(id); } - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// is null. - /// Returns a object. - public static MachineLearningPrivateEndpointConnectionResource GetMachineLearningPrivateEndpointConnectionResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableMachineLearningArmClient(client).GetMachineLearningPrivateEndpointConnectionResource(id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// is null. - /// Returns a object. - public static MachineLearningWorkspaceConnectionResource GetMachineLearningWorkspaceConnectionResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableMachineLearningArmClient(client).GetMachineLearningWorkspaceConnectionResource(id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// is null. - /// Returns a object. - public static MachineLearningOutboundRuleBasicResource GetMachineLearningOutboundRuleBasicResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableMachineLearningArmClient(client).GetMachineLearningOutboundRuleBasicResource(id); - } - /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. /// You can use to create a from its components. @@ -794,96 +718,79 @@ public static MachineLearningRegistryResource GetMachineLearningRegistryResource } /// - /// Gets a collection of MachineLearningWorkspaceResources in the ResourceGroupResource. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// - /// The instance the method will execute against. - /// is null. - /// An object representing collection of MachineLearningWorkspaceResources and their operations over a MachineLearningWorkspaceResource. - public static MachineLearningWorkspaceCollection GetMachineLearningWorkspaces(this ResourceGroupResource resourceGroupResource) + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static MachineLearningWorkspaceResource GetMachineLearningWorkspaceResource(this ArmClient client, ResourceIdentifier id) { - Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); + Argument.AssertNotNull(client, nameof(client)); - return GetMockableMachineLearningResourceGroupResource(resourceGroupResource).GetMachineLearningWorkspaces(); + return GetMockableMachineLearningArmClient(client).GetMachineLearningWorkspaceResource(id); } /// - /// Gets the properties of the specified machine learning workspace. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName} - /// - /// - /// Operation Id - /// Workspaces_Get - /// - /// - /// Default Api Version - /// 2024-04-01 - /// - /// - /// Resource - /// - /// - /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// - /// The instance the method will execute against. - /// Name of Azure Machine Learning workspace. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public static async Task> GetMachineLearningWorkspaceAsync(this ResourceGroupResource resourceGroupResource, string workspaceName, CancellationToken cancellationToken = default) + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static MachineLearningPrivateEndpointConnectionResource GetMachineLearningPrivateEndpointConnectionResource(this ArmClient client, ResourceIdentifier id) { - Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); + Argument.AssertNotNull(client, nameof(client)); - return await GetMockableMachineLearningResourceGroupResource(resourceGroupResource).GetMachineLearningWorkspaceAsync(workspaceName, cancellationToken).ConfigureAwait(false); + return GetMockableMachineLearningArmClient(client).GetMachineLearningPrivateEndpointConnectionResource(id); } /// - /// Gets the properties of the specified machine learning workspace. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName} - /// - /// - /// Operation Id - /// Workspaces_Get - /// - /// - /// Default Api Version - /// 2024-04-01 - /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// - /// Resource - /// + /// Mocking + /// To mock this method, please mock instead. /// - /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static MachineLearningWorkspaceConnectionResource GetMachineLearningWorkspaceConnectionResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableMachineLearningArmClient(client).GetMachineLearningWorkspaceConnectionResource(id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// - /// The instance the method will execute against. - /// Name of Azure Machine Learning workspace. - /// The cancellation token to use. - /// or is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public static Response GetMachineLearningWorkspace(this ResourceGroupResource resourceGroupResource, string workspaceName, CancellationToken cancellationToken = default) + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static MachineLearningOutboundRuleBasicResource GetMachineLearningOutboundRuleBasicResource(this ArmClient client, ResourceIdentifier id) { - Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); + Argument.AssertNotNull(client, nameof(client)); - return GetMockableMachineLearningResourceGroupResource(resourceGroupResource).GetMachineLearningWorkspace(workspaceName, cancellationToken); + return GetMockableMachineLearningArmClient(client).GetMachineLearningOutboundRuleBasicResource(id); } /// @@ -980,15 +887,32 @@ public static Response GetMachineLearningRegist } /// - /// Lists all the available machine learning workspaces under the specified subscription. + /// Gets a collection of MachineLearningWorkspaceResources in the ResourceGroupResource. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// is null. + /// An object representing collection of MachineLearningWorkspaceResources and their operations over a MachineLearningWorkspaceResource. + public static MachineLearningWorkspaceCollection GetMachineLearningWorkspaces(this ResourceGroupResource resourceGroupResource) + { + Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); + + return GetMockableMachineLearningResourceGroupResource(resourceGroupResource).GetMachineLearningWorkspaces(); + } + + /// + /// Gets the properties of the specified machine learning workspace. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName} /// /// /// Operation Id - /// Workspaces_ListBySubscription + /// Workspaces_Get /// /// /// Default Api Version @@ -1001,31 +925,32 @@ public static Response GetMachineLearningRegist /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// - /// The instance the method will execute against. - /// Continuation token for pagination. + /// The instance the method will execute against. + /// Name of Azure Machine Learning workspace. /// The cancellation token to use. - /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetMachineLearningWorkspacesAsync(this SubscriptionResource subscriptionResource, string skip = null, CancellationToken cancellationToken = default) + /// or is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public static async Task> GetMachineLearningWorkspaceAsync(this ResourceGroupResource resourceGroupResource, string workspaceName, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); + Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return GetMockableMachineLearningSubscriptionResource(subscriptionResource).GetMachineLearningWorkspacesAsync(skip, cancellationToken); + return await GetMockableMachineLearningResourceGroupResource(resourceGroupResource).GetMachineLearningWorkspaceAsync(workspaceName, cancellationToken).ConfigureAwait(false); } /// - /// Lists all the available machine learning workspaces under the specified subscription. + /// Gets the properties of the specified machine learning workspace. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName} /// /// /// Operation Id - /// Workspaces_ListBySubscription + /// Workspaces_Get /// /// /// Default Api Version @@ -1038,19 +963,20 @@ public static AsyncPageable GetMachineLearning /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// - /// The instance the method will execute against. - /// Continuation token for pagination. + /// The instance the method will execute against. + /// Name of Azure Machine Learning workspace. /// The cancellation token to use. - /// is null. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetMachineLearningWorkspaces(this SubscriptionResource subscriptionResource, string skip = null, CancellationToken cancellationToken = default) + /// or is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public static Response GetMachineLearningWorkspace(this ResourceGroupResource resourceGroupResource, string workspaceName, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); + Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource)); - return GetMockableMachineLearningSubscriptionResource(subscriptionResource).GetMachineLearningWorkspaces(skip, cancellationToken); + return GetMockableMachineLearningResourceGroupResource(resourceGroupResource).GetMachineLearningWorkspace(workspaceName, cancellationToken); } /// @@ -1390,5 +1316,79 @@ public static Pageable GetMachineLearningRegist return GetMockableMachineLearningSubscriptionResource(subscriptionResource).GetMachineLearningRegistries(cancellationToken); } + + /// + /// Lists all the available machine learning workspaces under the specified subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces + /// + /// + /// Operation Id + /// Workspaces_ListBySubscription + /// + /// + /// Default Api Version + /// 2024-04-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// Continuation token for pagination. + /// The cancellation token to use. + /// is null. + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetMachineLearningWorkspacesAsync(this SubscriptionResource subscriptionResource, string skip = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); + + return GetMockableMachineLearningSubscriptionResource(subscriptionResource).GetMachineLearningWorkspacesAsync(skip, cancellationToken); + } + + /// + /// Lists all the available machine learning workspaces under the specified subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces + /// + /// + /// Operation Id + /// Workspaces_ListBySubscription + /// + /// + /// Default Api Version + /// 2024-04-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// Continuation token for pagination. + /// The cancellation token to use. + /// is null. + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetMachineLearningWorkspaces(this SubscriptionResource subscriptionResource, string skip = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource)); + + return GetMockableMachineLearningSubscriptionResource(subscriptionResource).GetMachineLearningWorkspaces(skip, cancellationToken); + } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MockableMachineLearningArmClient.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MockableMachineLearningArmClient.cs index 71905cf28aa8..230d7493ddad 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MockableMachineLearningArmClient.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MockableMachineLearningArmClient.cs @@ -34,18 +34,6 @@ private string GetApiVersionOrNull(ResourceType resourceType) return apiVersion; } - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual MachineLearningWorkspaceResource GetMachineLearningWorkspaceResource(ResourceIdentifier id) - { - MachineLearningWorkspaceResource.ValidateResourceId(id); - return new MachineLearningWorkspaceResource(Client, id); - } - /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. /// You can use to create a from its components. @@ -58,42 +46,6 @@ public virtual MachineLearningComputeResource GetMachineLearningComputeResource( return new MachineLearningComputeResource(Client, id); } - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual MachineLearningPrivateEndpointConnectionResource GetMachineLearningPrivateEndpointConnectionResource(ResourceIdentifier id) - { - MachineLearningPrivateEndpointConnectionResource.ValidateResourceId(id); - return new MachineLearningPrivateEndpointConnectionResource(Client, id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual MachineLearningWorkspaceConnectionResource GetMachineLearningWorkspaceConnectionResource(ResourceIdentifier id) - { - MachineLearningWorkspaceConnectionResource.ValidateResourceId(id); - return new MachineLearningWorkspaceConnectionResource(Client, id); - } - - /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual MachineLearningOutboundRuleBasicResource GetMachineLearningOutboundRuleBasicResource(ResourceIdentifier id) - { - MachineLearningOutboundRuleBasicResource.ValidateResourceId(id); - return new MachineLearningOutboundRuleBasicResource(Client, id); - } - /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. /// You can use to create a from its components. @@ -513,5 +465,53 @@ public virtual MachineLearningRegistryResource GetMachineLearningRegistryResourc MachineLearningRegistryResource.ValidateResourceId(id); return new MachineLearningRegistryResource(Client, id); } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual MachineLearningWorkspaceResource GetMachineLearningWorkspaceResource(ResourceIdentifier id) + { + MachineLearningWorkspaceResource.ValidateResourceId(id); + return new MachineLearningWorkspaceResource(Client, id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual MachineLearningPrivateEndpointConnectionResource GetMachineLearningPrivateEndpointConnectionResource(ResourceIdentifier id) + { + MachineLearningPrivateEndpointConnectionResource.ValidateResourceId(id); + return new MachineLearningPrivateEndpointConnectionResource(Client, id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual MachineLearningWorkspaceConnectionResource GetMachineLearningWorkspaceConnectionResource(ResourceIdentifier id) + { + MachineLearningWorkspaceConnectionResource.ValidateResourceId(id); + return new MachineLearningWorkspaceConnectionResource(Client, id); + } + + /// + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual MachineLearningOutboundRuleBasicResource GetMachineLearningOutboundRuleBasicResource(ResourceIdentifier id) + { + MachineLearningOutboundRuleBasicResource.ValidateResourceId(id); + return new MachineLearningOutboundRuleBasicResource(Client, id); + } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MockableMachineLearningResourceGroupResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MockableMachineLearningResourceGroupResource.cs index f76739261ead..1a6069824a86 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MockableMachineLearningResourceGroupResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MockableMachineLearningResourceGroupResource.cs @@ -33,23 +33,23 @@ private string GetApiVersionOrNull(ResourceType resourceType) return apiVersion; } - /// Gets a collection of MachineLearningWorkspaceResources in the ResourceGroupResource. - /// An object representing collection of MachineLearningWorkspaceResources and their operations over a MachineLearningWorkspaceResource. - public virtual MachineLearningWorkspaceCollection GetMachineLearningWorkspaces() + /// Gets a collection of MachineLearningRegistryResources in the ResourceGroupResource. + /// An object representing collection of MachineLearningRegistryResources and their operations over a MachineLearningRegistryResource. + public virtual MachineLearningRegistryCollection GetMachineLearningRegistries() { - return GetCachedClient(client => new MachineLearningWorkspaceCollection(client, Id)); + return GetCachedClient(client => new MachineLearningRegistryCollection(client, Id)); } /// - /// Gets the properties of the specified machine learning workspace. + /// Get registry /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} /// /// /// Operation Id - /// Workspaces_Get + /// Registries_Get /// /// /// Default Api Version @@ -57,30 +57,30 @@ public virtual MachineLearningWorkspaceCollection GetMachineLearningWorkspaces() /// /// /// Resource - /// + /// /// /// /// - /// Name of Azure Machine Learning workspace. + /// Name of Azure Machine Learning registry. This is case-insensitive. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetMachineLearningWorkspaceAsync(string workspaceName, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningRegistryAsync(string registryName, CancellationToken cancellationToken = default) { - return await GetMachineLearningWorkspaces().GetAsync(workspaceName, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningRegistries().GetAsync(registryName, cancellationToken).ConfigureAwait(false); } /// - /// Gets the properties of the specified machine learning workspace. + /// Get registry /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} /// /// /// Operation Id - /// Workspaces_Get + /// Registries_Get /// /// /// Default Api Version @@ -88,37 +88,37 @@ public virtual async Task> GetMachine /// /// /// Resource - /// + /// /// /// /// - /// Name of Azure Machine Learning workspace. + /// Name of Azure Machine Learning registry. This is case-insensitive. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetMachineLearningWorkspace(string workspaceName, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningRegistry(string registryName, CancellationToken cancellationToken = default) { - return GetMachineLearningWorkspaces().Get(workspaceName, cancellationToken); + return GetMachineLearningRegistries().Get(registryName, cancellationToken); } - /// Gets a collection of MachineLearningRegistryResources in the ResourceGroupResource. - /// An object representing collection of MachineLearningRegistryResources and their operations over a MachineLearningRegistryResource. - public virtual MachineLearningRegistryCollection GetMachineLearningRegistries() + /// Gets a collection of MachineLearningWorkspaceResources in the ResourceGroupResource. + /// An object representing collection of MachineLearningWorkspaceResources and their operations over a MachineLearningWorkspaceResource. + public virtual MachineLearningWorkspaceCollection GetMachineLearningWorkspaces() { - return GetCachedClient(client => new MachineLearningRegistryCollection(client, Id)); + return GetCachedClient(client => new MachineLearningWorkspaceCollection(client, Id)); } /// - /// Get registry + /// Gets the properties of the specified machine learning workspace. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName} /// /// /// Operation Id - /// Registries_Get + /// Workspaces_Get /// /// /// Default Api Version @@ -126,30 +126,30 @@ public virtual MachineLearningRegistryCollection GetMachineLearningRegistries() /// /// /// Resource - /// + /// /// /// /// - /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Name of Azure Machine Learning workspace. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetMachineLearningRegistryAsync(string registryName, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningWorkspaceAsync(string workspaceName, CancellationToken cancellationToken = default) { - return await GetMachineLearningRegistries().GetAsync(registryName, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningWorkspaces().GetAsync(workspaceName, cancellationToken).ConfigureAwait(false); } /// - /// Get registry + /// Gets the properties of the specified machine learning workspace. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName} /// /// /// Operation Id - /// Registries_Get + /// Workspaces_Get /// /// /// Default Api Version @@ -157,18 +157,18 @@ public virtual async Task> GetMachineL /// /// /// Resource - /// + /// /// /// /// - /// Name of Azure Machine Learning registry. This is case-insensitive. + /// Name of Azure Machine Learning workspace. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetMachineLearningRegistry(string registryName, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningWorkspace(string workspaceName, CancellationToken cancellationToken = default) { - return GetMachineLearningRegistries().Get(registryName, cancellationToken); + return GetMachineLearningWorkspaces().Get(workspaceName, cancellationToken); } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MockableMachineLearningSubscriptionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MockableMachineLearningSubscriptionResource.cs index 776af233036b..f467ddf1d8e9 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MockableMachineLearningSubscriptionResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Extensions/MockableMachineLearningSubscriptionResource.cs @@ -17,8 +17,6 @@ namespace Azure.ResourceManager.MachineLearning.Mocking /// A class to add extension methods to SubscriptionResource. public partial class MockableMachineLearningSubscriptionResource : ArmResource { - private ClientDiagnostics _machineLearningWorkspaceWorkspacesClientDiagnostics; - private WorkspacesRestOperations _machineLearningWorkspaceWorkspacesRestClient; private ClientDiagnostics _usagesClientDiagnostics; private UsagesRestOperations _usagesRestClient; private ClientDiagnostics _virtualMachineSizesClientDiagnostics; @@ -27,6 +25,8 @@ public partial class MockableMachineLearningSubscriptionResource : ArmResource private QuotasRestOperations _quotasRestClient; private ClientDiagnostics _machineLearningRegistryRegistriesClientDiagnostics; private RegistriesRestOperations _machineLearningRegistryRegistriesRestClient; + private ClientDiagnostics _machineLearningWorkspaceWorkspacesClientDiagnostics; + private WorkspacesRestOperations _machineLearningWorkspaceWorkspacesRestClient; /// Initializes a new instance of the class for mocking. protected MockableMachineLearningSubscriptionResource() @@ -40,8 +40,6 @@ internal MockableMachineLearningSubscriptionResource(ArmClient client, ResourceI { } - private ClientDiagnostics MachineLearningWorkspaceWorkspacesClientDiagnostics => _machineLearningWorkspaceWorkspacesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningWorkspaceResource.ResourceType.Namespace, Diagnostics); - private WorkspacesRestOperations MachineLearningWorkspaceWorkspacesRestClient => _machineLearningWorkspaceWorkspacesRestClient ??= new WorkspacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(MachineLearningWorkspaceResource.ResourceType)); private ClientDiagnostics UsagesClientDiagnostics => _usagesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ProviderConstants.DefaultProviderNamespace, Diagnostics); private UsagesRestOperations UsagesRestClient => _usagesRestClient ??= new UsagesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics VirtualMachineSizesClientDiagnostics => _virtualMachineSizesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ProviderConstants.DefaultProviderNamespace, Diagnostics); @@ -50,6 +48,8 @@ internal MockableMachineLearningSubscriptionResource(ArmClient client, ResourceI private QuotasRestOperations QuotasRestClient => _quotasRestClient ??= new QuotasRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics MachineLearningRegistryRegistriesClientDiagnostics => _machineLearningRegistryRegistriesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningRegistryResource.ResourceType.Namespace, Diagnostics); private RegistriesRestOperations MachineLearningRegistryRegistriesRestClient => _machineLearningRegistryRegistriesRestClient ??= new RegistriesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(MachineLearningRegistryResource.ResourceType)); + private ClientDiagnostics MachineLearningWorkspaceWorkspacesClientDiagnostics => _machineLearningWorkspaceWorkspacesClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.MachineLearning", MachineLearningWorkspaceResource.ResourceType.Namespace, Diagnostics); + private WorkspacesRestOperations MachineLearningWorkspaceWorkspacesRestClient => _machineLearningWorkspaceWorkspacesRestClient ??= new WorkspacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(MachineLearningWorkspaceResource.ResourceType)); private string GetApiVersionOrNull(ResourceType resourceType) { @@ -57,68 +57,6 @@ private string GetApiVersionOrNull(ResourceType resourceType) return apiVersion; } - /// - /// Lists all the available machine learning workspaces under the specified subscription. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces - /// - /// - /// Operation Id - /// Workspaces_ListBySubscription - /// - /// - /// Default Api Version - /// 2024-04-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Continuation token for pagination. - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetMachineLearningWorkspacesAsync(string skip = null, CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => MachineLearningWorkspaceWorkspacesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, skip); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => MachineLearningWorkspaceWorkspacesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, skip); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningWorkspaceResource(Client, MachineLearningWorkspaceData.DeserializeMachineLearningWorkspaceData(e)), MachineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, "MockableMachineLearningSubscriptionResource.GetMachineLearningWorkspaces", "value", "nextLink", cancellationToken); - } - - /// - /// Lists all the available machine learning workspaces under the specified subscription. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces - /// - /// - /// Operation Id - /// Workspaces_ListBySubscription - /// - /// - /// Default Api Version - /// 2024-04-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Continuation token for pagination. - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetMachineLearningWorkspaces(string skip = null, CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => MachineLearningWorkspaceWorkspacesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, skip); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => MachineLearningWorkspaceWorkspacesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, skip); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningWorkspaceResource(Client, MachineLearningWorkspaceData.DeserializeMachineLearningWorkspaceData(e)), MachineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, "MockableMachineLearningSubscriptionResource.GetMachineLearningWorkspaces", "value", "nextLink", cancellationToken); - } - /// /// Gets the current usage information as well as limits for AML resources for given subscription and location. /// @@ -398,5 +336,67 @@ public virtual Pageable GetMachineLearningRegis HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => MachineLearningRegistryRegistriesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId); return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningRegistryResource(Client, MachineLearningRegistryData.DeserializeMachineLearningRegistryData(e)), MachineLearningRegistryRegistriesClientDiagnostics, Pipeline, "MockableMachineLearningSubscriptionResource.GetMachineLearningRegistries", "value", "nextLink", cancellationToken); } + + /// + /// Lists all the available machine learning workspaces under the specified subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces + /// + /// + /// Operation Id + /// Workspaces_ListBySubscription + /// + /// + /// Default Api Version + /// 2024-04-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Continuation token for pagination. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetMachineLearningWorkspacesAsync(string skip = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => MachineLearningWorkspaceWorkspacesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, skip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => MachineLearningWorkspaceWorkspacesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, skip); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new MachineLearningWorkspaceResource(Client, MachineLearningWorkspaceData.DeserializeMachineLearningWorkspaceData(e)), MachineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, "MockableMachineLearningSubscriptionResource.GetMachineLearningWorkspaces", "value", "nextLink", cancellationToken); + } + + /// + /// Lists all the available machine learning workspaces under the specified subscription. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces + /// + /// + /// Operation Id + /// Workspaces_ListBySubscription + /// + /// + /// Default Api Version + /// 2024-04-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Continuation token for pagination. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetMachineLearningWorkspaces(string skip = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => MachineLearningWorkspaceWorkspacesRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId, skip); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => MachineLearningWorkspaceWorkspacesRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId, skip); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new MachineLearningWorkspaceResource(Client, MachineLearningWorkspaceData.DeserializeMachineLearningWorkspaceData(e)), MachineLearningWorkspaceWorkspacesClientDiagnostics, Pipeline, "MockableMachineLearningSubscriptionResource.GetMachineLearningWorkspaces", "value", "nextLink", cancellationToken); + } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceResource.cs index 8139893a5479..7b7d9a9c7f1a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/MachineLearningWorkspaceResource.cs @@ -38,12 +38,12 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, private readonly ClientDiagnostics _machineLearningWorkspaceWorkspacesClientDiagnostics; private readonly WorkspacesRestOperations _machineLearningWorkspaceWorkspacesRestClient; + private readonly ClientDiagnostics _workspaceFeaturesClientDiagnostics; + private readonly WorkspaceFeaturesRestOperations _workspaceFeaturesRestClient; private readonly ClientDiagnostics _privateLinkResourcesClientDiagnostics; private readonly PrivateLinkResourcesRestOperations _privateLinkResourcesRestClient; private readonly ClientDiagnostics _managedNetworkProvisionsClientDiagnostics; private readonly ManagedNetworkProvisionsRestOperations _managedNetworkProvisionsRestClient; - private readonly ClientDiagnostics _workspaceFeaturesClientDiagnostics; - private readonly WorkspaceFeaturesRestOperations _workspaceFeaturesRestClient; private readonly MachineLearningWorkspaceData _data; /// Gets the resource type for the operations. @@ -71,12 +71,12 @@ internal MachineLearningWorkspaceResource(ArmClient client, ResourceIdentifier i _machineLearningWorkspaceWorkspacesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ResourceType.Namespace, Diagnostics); TryGetApiVersion(ResourceType, out string machineLearningWorkspaceWorkspacesApiVersion); _machineLearningWorkspaceWorkspacesRestClient = new WorkspacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, machineLearningWorkspaceWorkspacesApiVersion); + _workspaceFeaturesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ProviderConstants.DefaultProviderNamespace, Diagnostics); + _workspaceFeaturesRestClient = new WorkspaceFeaturesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _privateLinkResourcesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ProviderConstants.DefaultProviderNamespace, Diagnostics); _privateLinkResourcesRestClient = new PrivateLinkResourcesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _managedNetworkProvisionsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ProviderConstants.DefaultProviderNamespace, Diagnostics); _managedNetworkProvisionsRestClient = new ManagedNetworkProvisionsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - _workspaceFeaturesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.MachineLearning", ProviderConstants.DefaultProviderNamespace, Diagnostics); - _workspaceFeaturesRestClient = new WorkspaceFeaturesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); #if DEBUG ValidateResourceId(Id); #endif @@ -172,211 +172,6 @@ public virtual Response GetMachineLearningComput return GetMachineLearningComputes().Get(computeName, cancellationToken); } - /// Gets a collection of MachineLearningPrivateEndpointConnectionResources in the MachineLearningWorkspace. - /// An object representing collection of MachineLearningPrivateEndpointConnectionResources and their operations over a MachineLearningPrivateEndpointConnectionResource. - public virtual MachineLearningPrivateEndpointConnectionCollection GetMachineLearningPrivateEndpointConnections() - { - return GetCachedClient(client => new MachineLearningPrivateEndpointConnectionCollection(client, Id)); - } - - /// - /// Gets the specified private endpoint connection associated with the workspace. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName} - /// - /// - /// Operation Id - /// PrivateEndpointConnections_Get - /// - /// - /// Default Api Version - /// 2024-04-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the private endpoint connection associated with the workspace. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetMachineLearningPrivateEndpointConnectionAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) - { - return await GetMachineLearningPrivateEndpointConnections().GetAsync(privateEndpointConnectionName, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the specified private endpoint connection associated with the workspace. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName} - /// - /// - /// Operation Id - /// PrivateEndpointConnections_Get - /// - /// - /// Default Api Version - /// 2024-04-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the private endpoint connection associated with the workspace. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetMachineLearningPrivateEndpointConnection(string privateEndpointConnectionName, CancellationToken cancellationToken = default) - { - return GetMachineLearningPrivateEndpointConnections().Get(privateEndpointConnectionName, cancellationToken); - } - - /// Gets a collection of MachineLearningWorkspaceConnectionResources in the MachineLearningWorkspace. - /// An object representing collection of MachineLearningWorkspaceConnectionResources and their operations over a MachineLearningWorkspaceConnectionResource. - public virtual MachineLearningWorkspaceConnectionCollection GetMachineLearningWorkspaceConnections() - { - return GetCachedClient(client => new MachineLearningWorkspaceConnectionCollection(client, Id)); - } - - /// - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName} - /// - /// - /// Operation Id - /// WorkspaceConnections_Get - /// - /// - /// Default Api Version - /// 2024-04-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Friendly name of the workspace connection. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetMachineLearningWorkspaceConnectionAsync(string connectionName, CancellationToken cancellationToken = default) - { - return await GetMachineLearningWorkspaceConnections().GetAsync(connectionName, cancellationToken).ConfigureAwait(false); - } - - /// - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName} - /// - /// - /// Operation Id - /// WorkspaceConnections_Get - /// - /// - /// Default Api Version - /// 2024-04-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Friendly name of the workspace connection. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetMachineLearningWorkspaceConnection(string connectionName, CancellationToken cancellationToken = default) - { - return GetMachineLearningWorkspaceConnections().Get(connectionName, cancellationToken); - } - - /// Gets a collection of MachineLearningOutboundRuleBasicResources in the MachineLearningWorkspace. - /// An object representing collection of MachineLearningOutboundRuleBasicResources and their operations over a MachineLearningOutboundRuleBasicResource. - public virtual MachineLearningOutboundRuleBasicCollection GetMachineLearningOutboundRuleBasics() - { - return GetCachedClient(client => new MachineLearningOutboundRuleBasicCollection(client, Id)); - } - - /// - /// Gets an outbound rule from the managed network of a machine learning workspace. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName} - /// - /// - /// Operation Id - /// ManagedNetworkSettingsRule_Get - /// - /// - /// Default Api Version - /// 2024-04-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the workspace managed network outbound rule. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetMachineLearningOutboundRuleBasicAsync(string ruleName, CancellationToken cancellationToken = default) - { - return await GetMachineLearningOutboundRuleBasics().GetAsync(ruleName, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets an outbound rule from the managed network of a machine learning workspace. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName} - /// - /// - /// Operation Id - /// ManagedNetworkSettingsRule_Get - /// - /// - /// Default Api Version - /// 2024-04-01 - /// - /// - /// Resource - /// - /// - /// - /// - /// Name of the workspace managed network outbound rule. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetMachineLearningOutboundRuleBasic(string ruleName, CancellationToken cancellationToken = default) - { - return GetMachineLearningOutboundRuleBasics().Get(ruleName, cancellationToken); - } - /// Gets a collection of MachineLearningCodeContainerResources in the MachineLearningWorkspace. /// An object representing collection of MachineLearningCodeContainerResources and their operations over a MachineLearningCodeContainerResource. public virtual MachineLearningCodeContainerCollection GetMachineLearningCodeContainers() @@ -1091,30 +886,237 @@ public virtual MachineLearningMarketplaceSubscriptionCollection GetMachineLearni /// /// /// Resource - /// + /// + /// + /// + /// + /// Container name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetMachineLearningMarketplaceSubscriptionAsync(string name, CancellationToken cancellationToken = default) + { + return await GetMachineLearningMarketplaceSubscriptions().GetAsync(name, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get container. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/marketplaceSubscriptions/{name} + /// + /// + /// Operation Id + /// MarketplaceSubscriptions_Get + /// + /// + /// Default Api Version + /// 2024-04-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Container name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetMachineLearningMarketplaceSubscription(string name, CancellationToken cancellationToken = default) + { + return GetMachineLearningMarketplaceSubscriptions().Get(name, cancellationToken); + } + + /// Gets a collection of MachineLearningOnlineEndpointResources in the MachineLearningWorkspace. + /// An object representing collection of MachineLearningOnlineEndpointResources and their operations over a MachineLearningOnlineEndpointResource. + public virtual MachineLearningOnlineEndpointCollection GetMachineLearningOnlineEndpoints() + { + return GetCachedClient(client => new MachineLearningOnlineEndpointCollection(client, Id)); + } + + /// + /// Get Online Endpoint. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName} + /// + /// + /// Operation Id + /// OnlineEndpoints_Get + /// + /// + /// Default Api Version + /// 2024-04-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Online Endpoint name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetMachineLearningOnlineEndpointAsync(string endpointName, CancellationToken cancellationToken = default) + { + return await GetMachineLearningOnlineEndpoints().GetAsync(endpointName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get Online Endpoint. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName} + /// + /// + /// Operation Id + /// OnlineEndpoints_Get + /// + /// + /// Default Api Version + /// 2024-04-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Online Endpoint name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetMachineLearningOnlineEndpoint(string endpointName, CancellationToken cancellationToken = default) + { + return GetMachineLearningOnlineEndpoints().Get(endpointName, cancellationToken); + } + + /// Gets a collection of MachineLearningScheduleResources in the MachineLearningWorkspace. + /// An object representing collection of MachineLearningScheduleResources and their operations over a MachineLearningScheduleResource. + public virtual MachineLearningScheduleCollection GetMachineLearningSchedules() + { + return GetCachedClient(client => new MachineLearningScheduleCollection(client, Id)); + } + + /// + /// Get schedule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/schedules/{name} + /// + /// + /// Operation Id + /// Schedules_Get + /// + /// + /// Default Api Version + /// 2024-04-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Schedule name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetMachineLearningScheduleAsync(string name, CancellationToken cancellationToken = default) + { + return await GetMachineLearningSchedules().GetAsync(name, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get schedule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/schedules/{name} + /// + /// + /// Operation Id + /// Schedules_Get + /// + /// + /// Default Api Version + /// 2024-04-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Schedule name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetMachineLearningSchedule(string name, CancellationToken cancellationToken = default) + { + return GetMachineLearningSchedules().Get(name, cancellationToken); + } + + /// Gets a collection of MachineLearningServerlessEndpointResources in the MachineLearningWorkspace. + /// An object representing collection of MachineLearningServerlessEndpointResources and their operations over a MachineLearningServerlessEndpointResource. + public virtual MachineLearningServerlessEndpointCollection GetMachineLearningServerlessEndpoints() + { + return GetCachedClient(client => new MachineLearningServerlessEndpointCollection(client, Id)); + } + + /// + /// Get Serverless Endpoint. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints/{name} + /// + /// + /// Operation Id + /// ServerlessEndpoints_Get + /// + /// + /// Default Api Version + /// 2024-04-01 + /// + /// + /// Resource + /// /// /// /// - /// Container name. + /// Serverless Endpoint name. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetMachineLearningMarketplaceSubscriptionAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningServerlessEndpointAsync(string name, CancellationToken cancellationToken = default) { - return await GetMachineLearningMarketplaceSubscriptions().GetAsync(name, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningServerlessEndpoints().GetAsync(name, cancellationToken).ConfigureAwait(false); } /// - /// Get container. + /// Get Serverless Endpoint. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/marketplaceSubscriptions/{name} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints/{name} /// /// /// Operation Id - /// MarketplaceSubscriptions_Get + /// ServerlessEndpoints_Get /// /// /// Default Api Version @@ -1122,37 +1124,37 @@ public virtual async Task /// /// Resource - /// + /// /// /// /// - /// Container name. + /// Serverless Endpoint name. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetMachineLearningMarketplaceSubscription(string name, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningServerlessEndpoint(string name, CancellationToken cancellationToken = default) { - return GetMachineLearningMarketplaceSubscriptions().Get(name, cancellationToken); + return GetMachineLearningServerlessEndpoints().Get(name, cancellationToken); } - /// Gets a collection of MachineLearningOnlineEndpointResources in the MachineLearningWorkspace. - /// An object representing collection of MachineLearningOnlineEndpointResources and their operations over a MachineLearningOnlineEndpointResource. - public virtual MachineLearningOnlineEndpointCollection GetMachineLearningOnlineEndpoints() + /// Gets a collection of MachineLearningPrivateEndpointConnectionResources in the MachineLearningWorkspace. + /// An object representing collection of MachineLearningPrivateEndpointConnectionResources and their operations over a MachineLearningPrivateEndpointConnectionResource. + public virtual MachineLearningPrivateEndpointConnectionCollection GetMachineLearningPrivateEndpointConnections() { - return GetCachedClient(client => new MachineLearningOnlineEndpointCollection(client, Id)); + return GetCachedClient(client => new MachineLearningPrivateEndpointConnectionCollection(client, Id)); } /// - /// Get Online Endpoint. + /// Gets the specified private endpoint connection associated with the workspace. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName} /// /// /// Operation Id - /// OnlineEndpoints_Get + /// PrivateEndpointConnections_Get /// /// /// Default Api Version @@ -1160,30 +1162,30 @@ public virtual MachineLearningOnlineEndpointCollection GetMachineLearningOnlineE /// /// /// Resource - /// + /// /// /// /// - /// Online Endpoint name. + /// The name of the private endpoint connection associated with the workspace. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetMachineLearningOnlineEndpointAsync(string endpointName, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningPrivateEndpointConnectionAsync(string privateEndpointConnectionName, CancellationToken cancellationToken = default) { - return await GetMachineLearningOnlineEndpoints().GetAsync(endpointName, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningPrivateEndpointConnections().GetAsync(privateEndpointConnectionName, cancellationToken).ConfigureAwait(false); } /// - /// Get Online Endpoint. + /// Gets the specified private endpoint connection associated with the workspace. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName} /// /// /// Operation Id - /// OnlineEndpoints_Get + /// PrivateEndpointConnections_Get /// /// /// Default Api Version @@ -1191,37 +1193,36 @@ public virtual async Task> GetMa /// /// /// Resource - /// + /// /// /// /// - /// Online Endpoint name. + /// The name of the private endpoint connection associated with the workspace. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetMachineLearningOnlineEndpoint(string endpointName, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningPrivateEndpointConnection(string privateEndpointConnectionName, CancellationToken cancellationToken = default) { - return GetMachineLearningOnlineEndpoints().Get(endpointName, cancellationToken); + return GetMachineLearningPrivateEndpointConnections().Get(privateEndpointConnectionName, cancellationToken); } - /// Gets a collection of MachineLearningScheduleResources in the MachineLearningWorkspace. - /// An object representing collection of MachineLearningScheduleResources and their operations over a MachineLearningScheduleResource. - public virtual MachineLearningScheduleCollection GetMachineLearningSchedules() + /// Gets a collection of MachineLearningWorkspaceConnectionResources in the MachineLearningWorkspace. + /// An object representing collection of MachineLearningWorkspaceConnectionResources and their operations over a MachineLearningWorkspaceConnectionResource. + public virtual MachineLearningWorkspaceConnectionCollection GetMachineLearningWorkspaceConnections() { - return GetCachedClient(client => new MachineLearningScheduleCollection(client, Id)); + return GetCachedClient(client => new MachineLearningWorkspaceConnectionCollection(client, Id)); } /// - /// Get schedule. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/schedules/{name} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName} /// /// /// Operation Id - /// Schedules_Get + /// WorkspaceConnections_Get /// /// /// Default Api Version @@ -1229,30 +1230,29 @@ public virtual MachineLearningScheduleCollection GetMachineLearningSchedules() /// /// /// Resource - /// + /// /// /// /// - /// Schedule name. + /// Friendly name of the workspace connection. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetMachineLearningScheduleAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningWorkspaceConnectionAsync(string connectionName, CancellationToken cancellationToken = default) { - return await GetMachineLearningSchedules().GetAsync(name, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningWorkspaceConnections().GetAsync(connectionName, cancellationToken).ConfigureAwait(false); } /// - /// Get schedule. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/schedules/{name} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName} /// /// /// Operation Id - /// Schedules_Get + /// WorkspaceConnections_Get /// /// /// Default Api Version @@ -1260,37 +1260,37 @@ public virtual async Task> GetMachineL /// /// /// Resource - /// + /// /// /// /// - /// Schedule name. + /// Friendly name of the workspace connection. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetMachineLearningSchedule(string name, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningWorkspaceConnection(string connectionName, CancellationToken cancellationToken = default) { - return GetMachineLearningSchedules().Get(name, cancellationToken); + return GetMachineLearningWorkspaceConnections().Get(connectionName, cancellationToken); } - /// Gets a collection of MachineLearningServerlessEndpointResources in the MachineLearningWorkspace. - /// An object representing collection of MachineLearningServerlessEndpointResources and their operations over a MachineLearningServerlessEndpointResource. - public virtual MachineLearningServerlessEndpointCollection GetMachineLearningServerlessEndpoints() + /// Gets a collection of MachineLearningOutboundRuleBasicResources in the MachineLearningWorkspace. + /// An object representing collection of MachineLearningOutboundRuleBasicResources and their operations over a MachineLearningOutboundRuleBasicResource. + public virtual MachineLearningOutboundRuleBasicCollection GetMachineLearningOutboundRuleBasics() { - return GetCachedClient(client => new MachineLearningServerlessEndpointCollection(client, Id)); + return GetCachedClient(client => new MachineLearningOutboundRuleBasicCollection(client, Id)); } /// - /// Get Serverless Endpoint. + /// Gets an outbound rule from the managed network of a machine learning workspace. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints/{name} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName} /// /// /// Operation Id - /// ServerlessEndpoints_Get + /// ManagedNetworkSettingsRule_Get /// /// /// Default Api Version @@ -1298,30 +1298,30 @@ public virtual MachineLearningServerlessEndpointCollection GetMachineLearningSer /// /// /// Resource - /// + /// /// /// /// - /// Serverless Endpoint name. + /// Name of the workspace managed network outbound rule. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetMachineLearningServerlessEndpointAsync(string name, CancellationToken cancellationToken = default) + public virtual async Task> GetMachineLearningOutboundRuleBasicAsync(string ruleName, CancellationToken cancellationToken = default) { - return await GetMachineLearningServerlessEndpoints().GetAsync(name, cancellationToken).ConfigureAwait(false); + return await GetMachineLearningOutboundRuleBasics().GetAsync(ruleName, cancellationToken).ConfigureAwait(false); } /// - /// Get Serverless Endpoint. + /// Gets an outbound rule from the managed network of a machine learning workspace. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/serverlessEndpoints/{name} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundRules/{ruleName} /// /// /// Operation Id - /// ServerlessEndpoints_Get + /// ManagedNetworkSettingsRule_Get /// /// /// Default Api Version @@ -1329,18 +1329,18 @@ public virtual async Task> G /// /// /// Resource - /// + /// /// /// /// - /// Serverless Endpoint name. + /// Name of the workspace managed network outbound rule. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetMachineLearningServerlessEndpoint(string name, CancellationToken cancellationToken = default) + public virtual Response GetMachineLearningOutboundRuleBasic(string ruleName, CancellationToken cancellationToken = default) { - return GetMachineLearningServerlessEndpoints().Get(name, cancellationToken); + return GetMachineLearningOutboundRuleBasics().Get(ruleName, cancellationToken); } /// @@ -1601,6 +1601,58 @@ public virtual ArmOperation Update(WaitUntil w } } + /// + /// Lists all enabled features for a workspace + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/features + /// + /// + /// Operation Id + /// WorkspaceFeatures_List + /// + /// + /// Default Api Version + /// 2024-04-01 + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetWorkspaceFeaturesAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceFeaturesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceFeaturesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => MachineLearningUserFeature.DeserializeMachineLearningUserFeature(e), _workspaceFeaturesClientDiagnostics, Pipeline, "MachineLearningWorkspaceResource.GetWorkspaceFeatures", "value", "nextLink", cancellationToken); + } + + /// + /// Lists all enabled features for a workspace + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/features + /// + /// + /// Operation Id + /// WorkspaceFeatures_List + /// + /// + /// Default Api Version + /// 2024-04-01 + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetWorkspaceFeatures(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceFeaturesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceFeaturesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => MachineLearningUserFeature.DeserializeMachineLearningUserFeature(e), _workspaceFeaturesClientDiagnostics, Pipeline, "MachineLearningWorkspaceResource.GetWorkspaceFeatures", "value", "nextLink", cancellationToken); + } + /// /// Diagnose workspace setup issue. /// @@ -2345,58 +2397,6 @@ public virtual ArmOperation ProvisionManagedNetwo } } - /// - /// Lists all enabled features for a workspace - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/features - /// - /// - /// Operation Id - /// WorkspaceFeatures_List - /// - /// - /// Default Api Version - /// 2024-04-01 - /// - /// - /// - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetWorkspaceFeaturesAsync(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceFeaturesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceFeaturesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => MachineLearningUserFeature.DeserializeMachineLearningUserFeature(e), _workspaceFeaturesClientDiagnostics, Pipeline, "MachineLearningWorkspaceResource.GetWorkspaceFeatures", "value", "nextLink", cancellationToken); - } - - /// - /// Lists all enabled features for a workspace - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/features - /// - /// - /// Operation Id - /// WorkspaceFeatures_List - /// - /// - /// Default Api Version - /// 2024-04-01 - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetWorkspaceFeatures(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _workspaceFeaturesRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _workspaceFeaturesRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => MachineLearningUserFeature.DeserializeMachineLearningUserFeature(e), _workspaceFeaturesClientDiagnostics, Pipeline, "MachineLearningWorkspaceResource.GetWorkspaceFeatures", "value", "nextLink", cancellationToken); - } - /// /// Add a tag to the current resource. /// diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningProvisioningState.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningProvisioningState.cs index 3ffe6c444aba..3973b99cf78a 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningProvisioningState.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/MachineLearningProvisioningState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.MachineLearning.Models { - /// The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. + /// The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed. public readonly partial struct MachineLearningProvisioningState : IEquatable { private readonly string _value; diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryAcrDetails.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryAcrDetails.Serialization.cs index 3e580e40f46f..647c9e794b0e 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryAcrDetails.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryAcrDetails.Serialization.cs @@ -47,18 +47,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WriteNull("systemCreatedAcrAccount"); } } - if (Optional.IsDefined(UserCreatedAcrAccount)) - { - if (UserCreatedAcrAccount != null) - { - writer.WritePropertyName("userCreatedAcrAccount"u8); - writer.WriteObjectValue(UserCreatedAcrAccount, options); - } - else - { - writer.WriteNull("userCreatedAcrAccount"); - } - } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -97,7 +85,6 @@ internal static RegistryAcrDetails DeserializeRegistryAcrDetails(JsonElement ele return null; } SystemCreatedAcrAccount systemCreatedAcrAccount = default; - UserCreatedAcrAccount userCreatedAcrAccount = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -112,23 +99,13 @@ internal static RegistryAcrDetails DeserializeRegistryAcrDetails(JsonElement ele systemCreatedAcrAccount = SystemCreatedAcrAccount.DeserializeSystemCreatedAcrAccount(property.Value, options); continue; } - if (property.NameEquals("userCreatedAcrAccount"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - userCreatedAcrAccount = null; - continue; - } - userCreatedAcrAccount = UserCreatedAcrAccount.DeserializeUserCreatedAcrAccount(property.Value, options); - continue; - } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new RegistryAcrDetails(systemCreatedAcrAccount, userCreatedAcrAccount, serializedAdditionalRawData); + return new RegistryAcrDetails(systemCreatedAcrAccount, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -157,26 +134,6 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue("ArmResourceId", out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" userCreatedAcrAccount: "); - builder.AppendLine("{"); - builder.AppendLine(" armResourceId: {"); - builder.Append(" resourceId: "); - builder.AppendLine(propertyOverride); - builder.AppendLine(" }"); - builder.AppendLine(" }"); - } - else - { - if (Optional.IsDefined(UserCreatedAcrAccount)) - { - builder.Append(" userCreatedAcrAccount: "); - BicepSerializationHelpers.AppendChildObject(builder, UserCreatedAcrAccount, options, 2, false, " userCreatedAcrAccount: "); - } - } - builder.AppendLine("}"); return BinaryData.FromString(builder.ToString()); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryAcrDetails.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryAcrDetails.cs index 282c0fa695a2..2b28f2c27ed0 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryAcrDetails.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/RegistryAcrDetails.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.ResourceManager.MachineLearning.Models { @@ -53,34 +52,15 @@ public RegistryAcrDetails() /// Initializes a new instance of . /// Details of system created ACR account to be used for the Registry. - /// Details of user created ACR account to be used for the Registry. /// Keeps track of any properties unknown to the library. - internal RegistryAcrDetails(SystemCreatedAcrAccount systemCreatedAcrAccount, UserCreatedAcrAccount userCreatedAcrAccount, IDictionary serializedAdditionalRawData) + internal RegistryAcrDetails(SystemCreatedAcrAccount systemCreatedAcrAccount, IDictionary serializedAdditionalRawData) { SystemCreatedAcrAccount = systemCreatedAcrAccount; - UserCreatedAcrAccount = userCreatedAcrAccount; _serializedAdditionalRawData = serializedAdditionalRawData; } /// Details of system created ACR account to be used for the Registry. [WirePath("systemCreatedAcrAccount")] public SystemCreatedAcrAccount SystemCreatedAcrAccount { get; set; } - /// Details of user created ACR account to be used for the Registry. - internal UserCreatedAcrAccount UserCreatedAcrAccount { get; set; } - /// - /// Arm ResourceId is in the format "/subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Storage/storageAccounts/{StorageAccountName}" - /// or "/subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{AcrName}" - /// - [WirePath("userCreatedAcrAccount.armResourceId.resourceId")] - public ResourceIdentifier ArmResourceId - { - get => UserCreatedAcrAccount is null ? default : UserCreatedAcrAccount.ArmResourceId; - set - { - if (UserCreatedAcrAccount is null) - UserCreatedAcrAccount = new UserCreatedAcrAccount(); - UserCreatedAcrAccount.ArmResourceId = value; - } - } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.Serialization.cs index 956ddc737f8b..fd1b037826b1 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.Serialization.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.Serialization.cs @@ -47,18 +47,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WriteNull("systemCreatedStorageAccount"); } } - if (Optional.IsDefined(UserCreatedStorageAccount)) - { - if (UserCreatedStorageAccount != null) - { - writer.WritePropertyName("userCreatedStorageAccount"u8); - writer.WriteObjectValue(UserCreatedStorageAccount, options); - } - else - { - writer.WriteNull("userCreatedStorageAccount"); - } - } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -97,7 +85,6 @@ internal static StorageAccountDetails DeserializeStorageAccountDetails(JsonEleme return null; } SystemCreatedStorageAccount systemCreatedStorageAccount = default; - UserCreatedStorageAccount userCreatedStorageAccount = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -112,23 +99,13 @@ internal static StorageAccountDetails DeserializeStorageAccountDetails(JsonEleme systemCreatedStorageAccount = SystemCreatedStorageAccount.DeserializeSystemCreatedStorageAccount(property.Value, options); continue; } - if (property.NameEquals("userCreatedStorageAccount"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - userCreatedStorageAccount = null; - continue; - } - userCreatedStorageAccount = UserCreatedStorageAccount.DeserializeUserCreatedStorageAccount(property.Value, options); - continue; - } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new StorageAccountDetails(systemCreatedStorageAccount, userCreatedStorageAccount, serializedAdditionalRawData); + return new StorageAccountDetails(systemCreatedStorageAccount, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -157,26 +134,6 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue("ArmResourceId", out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" userCreatedStorageAccount: "); - builder.AppendLine("{"); - builder.AppendLine(" armResourceId: {"); - builder.Append(" resourceId: "); - builder.AppendLine(propertyOverride); - builder.AppendLine(" }"); - builder.AppendLine(" }"); - } - else - { - if (Optional.IsDefined(UserCreatedStorageAccount)) - { - builder.Append(" userCreatedStorageAccount: "); - BicepSerializationHelpers.AppendChildObject(builder, UserCreatedStorageAccount, options, 2, false, " userCreatedStorageAccount: "); - } - } - builder.AppendLine("}"); return BinaryData.FromString(builder.ToString()); } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.cs index 0be556527be5..5db0d1fedb23 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/StorageAccountDetails.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.Core; namespace Azure.ResourceManager.MachineLearning.Models { @@ -53,34 +52,15 @@ public StorageAccountDetails() /// Initializes a new instance of . /// Details of system created storage account to be used for the registry. - /// Details of user created storage account to be used for the registry. /// Keeps track of any properties unknown to the library. - internal StorageAccountDetails(SystemCreatedStorageAccount systemCreatedStorageAccount, UserCreatedStorageAccount userCreatedStorageAccount, IDictionary serializedAdditionalRawData) + internal StorageAccountDetails(SystemCreatedStorageAccount systemCreatedStorageAccount, IDictionary serializedAdditionalRawData) { SystemCreatedStorageAccount = systemCreatedStorageAccount; - UserCreatedStorageAccount = userCreatedStorageAccount; _serializedAdditionalRawData = serializedAdditionalRawData; } /// Details of system created storage account to be used for the registry. [WirePath("systemCreatedStorageAccount")] public SystemCreatedStorageAccount SystemCreatedStorageAccount { get; set; } - /// Details of user created storage account to be used for the registry. - internal UserCreatedStorageAccount UserCreatedStorageAccount { get; set; } - /// - /// Arm ResourceId is in the format "/subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Storage/storageAccounts/{StorageAccountName}" - /// or "/subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{AcrName}" - /// - [WirePath("userCreatedStorageAccount.armResourceId.resourceId")] - public ResourceIdentifier ArmResourceId - { - get => UserCreatedStorageAccount is null ? default : UserCreatedStorageAccount.ArmResourceId; - set - { - if (UserCreatedStorageAccount is null) - UserCreatedStorageAccount = new UserCreatedStorageAccount(); - UserCreatedStorageAccount.ArmResourceId = value; - } - } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedAcrAccount.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedAcrAccount.Serialization.cs deleted file mode 100644 index 51c0607e0d1a..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedAcrAccount.Serialization.cs +++ /dev/null @@ -1,177 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - internal partial class UserCreatedAcrAccount : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(UserCreatedAcrAccount)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(ArmResourceIdentifier)) - { - if (ArmResourceIdentifier != null) - { - writer.WritePropertyName("armResourceId"u8); - writer.WriteObjectValue(ArmResourceIdentifier, options); - } - else - { - writer.WriteNull("armResourceId"); - } - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - UserCreatedAcrAccount IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(UserCreatedAcrAccount)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeUserCreatedAcrAccount(document.RootElement, options); - } - - internal static UserCreatedAcrAccount DeserializeUserCreatedAcrAccount(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - ArmResourceId armResourceId = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("armResourceId"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - armResourceId = null; - continue; - } - armResourceId = Models.ArmResourceId.DeserializeArmResourceId(property.Value, options); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new UserCreatedAcrAccount(armResourceId, serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue("ArmResourceId", out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" armResourceId: "); - builder.AppendLine("{"); - builder.Append(" resourceId: "); - builder.AppendLine(propertyOverride); - builder.AppendLine(" }"); - } - else - { - if (Optional.IsDefined(ArmResourceIdentifier)) - { - builder.Append(" armResourceId: "); - BicepSerializationHelpers.AppendChildObject(builder, ArmResourceIdentifier, options, 2, false, " armResourceId: "); - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerMachineLearningContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(UserCreatedAcrAccount)} does not support writing '{options.Format}' format."); - } - } - - UserCreatedAcrAccount IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeUserCreatedAcrAccount(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(UserCreatedAcrAccount)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedAcrAccount.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedAcrAccount.cs deleted file mode 100644 index 5c3984898162..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedAcrAccount.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// The UserCreatedAcrAccount. - internal partial class UserCreatedAcrAccount - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public UserCreatedAcrAccount() - { - } - - /// Initializes a new instance of . - /// ARM ResourceId of a resource. - /// Keeps track of any properties unknown to the library. - internal UserCreatedAcrAccount(ArmResourceId armResourceIdentifier, IDictionary serializedAdditionalRawData) - { - ArmResourceIdentifier = armResourceIdentifier; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// ARM ResourceId of a resource. - internal ArmResourceId ArmResourceIdentifier { get; set; } - /// - /// Arm ResourceId is in the format "/subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Storage/storageAccounts/{StorageAccountName}" - /// or "/subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{AcrName}" - /// - [WirePath("armResourceId.resourceId")] - public ResourceIdentifier ArmResourceId - { - get => ArmResourceIdentifier is null ? default : ArmResourceIdentifier.ResourceId; - set - { - if (ArmResourceIdentifier is null) - ArmResourceIdentifier = new ArmResourceId(); - ArmResourceIdentifier.ResourceId = value; - } - } - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedStorageAccount.Serialization.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedStorageAccount.Serialization.cs deleted file mode 100644 index 7d59ce7bfbd5..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedStorageAccount.Serialization.cs +++ /dev/null @@ -1,177 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - internal partial class UserCreatedStorageAccount : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(UserCreatedStorageAccount)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(ArmResourceIdentifier)) - { - if (ArmResourceIdentifier != null) - { - writer.WritePropertyName("armResourceId"u8); - writer.WriteObjectValue(ArmResourceIdentifier, options); - } - else - { - writer.WriteNull("armResourceId"); - } - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - UserCreatedStorageAccount IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(UserCreatedStorageAccount)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeUserCreatedStorageAccount(document.RootElement, options); - } - - internal static UserCreatedStorageAccount DeserializeUserCreatedStorageAccount(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - ArmResourceId armResourceId = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("armResourceId"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - armResourceId = null; - continue; - } - armResourceId = Models.ArmResourceId.DeserializeArmResourceId(property.Value, options); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new UserCreatedStorageAccount(armResourceId, serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue("ArmResourceId", out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" armResourceId: "); - builder.AppendLine("{"); - builder.Append(" resourceId: "); - builder.AppendLine(propertyOverride); - builder.AppendLine(" }"); - } - else - { - if (Optional.IsDefined(ArmResourceIdentifier)) - { - builder.Append(" armResourceId: "); - BicepSerializationHelpers.AppendChildObject(builder, ArmResourceIdentifier, options, 2, false, " armResourceId: "); - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options, AzureResourceManagerMachineLearningContext.Default); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(UserCreatedStorageAccount)} does not support writing '{options.Format}' format."); - } - } - - UserCreatedStorageAccount IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeUserCreatedStorageAccount(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(UserCreatedStorageAccount)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedStorageAccount.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedStorageAccount.cs deleted file mode 100644 index d89690c1ba79..000000000000 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/Models/UserCreatedStorageAccount.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.MachineLearning.Models -{ - /// The UserCreatedStorageAccount. - internal partial class UserCreatedStorageAccount - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public UserCreatedStorageAccount() - { - } - - /// Initializes a new instance of . - /// ARM ResourceId of a resource. - /// Keeps track of any properties unknown to the library. - internal UserCreatedStorageAccount(ArmResourceId armResourceIdentifier, IDictionary serializedAdditionalRawData) - { - ArmResourceIdentifier = armResourceIdentifier; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// ARM ResourceId of a resource. - internal ArmResourceId ArmResourceIdentifier { get; set; } - /// - /// Arm ResourceId is in the format "/subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Storage/storageAccounts/{StorageAccountName}" - /// or "/subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{AcrName}" - /// - [WirePath("armResourceId.resourceId")] - public ResourceIdentifier ArmResourceId - { - get => ArmResourceIdentifier is null ? default : ArmResourceIdentifier.ResourceId; - set - { - if (ArmResourceIdentifier is null) - ArmResourceIdentifier = new ArmResourceId(); - ArmResourceIdentifier.ResourceId = value; - } - } - } -} diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md index 4082499b8022..31f8f370cf75 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/autorest.md @@ -7,7 +7,7 @@ Run `dotnet build /t:GenerateCode` to generate code. azure-arm: true library-name: MachineLearning namespace: Azure.ResourceManager.MachineLearning -require: https://github.com/Azure/azure-rest-api-specs/blob/edb7904bfead536c7aa9716d44dba15bdabd0b00/specification/machinelearningservices/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md tag: package-2024-04 output-folder: $(this-folder)/Generated clear-output-folder: true diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/tests/Generated/Samples/Sample_MachineLearningRegistryCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/tests/Generated/Samples/Sample_MachineLearningRegistryCollection.cs index dfe8d16d363d..1b008c8d0a26 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/tests/Generated/Samples/Sample_MachineLearningRegistryCollection.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/tests/Generated/Samples/Sample_MachineLearningRegistryCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_MachineLearningRegistryCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateRegistryWithSystemCreatedAccounts() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/createOrUpdate-SystemCreated.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/createOrUpdate.json // this example is just showing the usage of "Registries_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -117,131 +117,11 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryWithSystemCreatedAccounts Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - [Test] - [Ignore("Only validating compilation of examples")] - public async Task CreateOrUpdate_CreateOrUpdateRegistryWithUserCreatedAccounts() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/createOrUpdate-UserCreated.json - // this example is just showing the usage of "Registries_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "test-rg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this MachineLearningRegistryResource - MachineLearningRegistryCollection collection = resourceGroupResource.GetMachineLearningRegistries(); - - // invoke the operation - string registryName = "string"; - MachineLearningRegistryData data = new MachineLearningRegistryData(new AzureLocation("string")) - { - Identity = new ManagedServiceIdentity("None") - { - UserAssignedIdentities = -{ -[new ResourceIdentifier("string")] = new UserAssignedIdentity() -}, - }, - Kind = "string", - Sku = new MachineLearningSku("string") - { - Tier = MachineLearningSkuTier.Free, - Size = "string", - Family = "string", - Capacity = 1, - }, - DiscoveryUri = new Uri("string"), - IntellectualPropertyPublisher = "string", - ManagedResourceId = new ResourceIdentifier("string"), - MlFlowRegistryUri = new Uri("string"), - RegistryPrivateEndpointConnections = {new RegistryPrivateEndpointConnection -{ -Id = new ResourceIdentifier("string"), -Location = new AzureLocation("string"), -GroupIds = {"string"}, -PrivateEndpoint = new RegistryPrivateEndpoint -{ -SubnetArmId = new ResourceIdentifier("string"), -}, -RegistryPrivateLinkServiceConnectionState = new RegistryPrivateLinkServiceConnectionState -{ -ActionsRequired = "string", -Description = "string", -Status = EndpointServiceConnectionStatus.Approved, -}, -ProvisioningState = "string", -}}, - PublicNetworkAccess = "string", - RegionDetails = {new RegistryRegionArmDetails -{ -AcrDetails = {new RegistryAcrDetails -{ -ArmResourceId = new ResourceIdentifier("string"), -}}, -Location = new AzureLocation("string"), -StorageAccountDetails = {new StorageAccountDetails -{ -ArmResourceId = new ResourceIdentifier("string"), -}}, -}}, - Tags = { }, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, registryName, data); - MachineLearningRegistryResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - MachineLearningRegistryData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - [Test] [Ignore("Only validating compilation of examples")] public async Task Get_GetRegistryWithSystemCreatedAccounts() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/get-SystemCreated.json - // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "test-rg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this MachineLearningRegistryResource - MachineLearningRegistryCollection collection = resourceGroupResource.GetMachineLearningRegistries(); - - // invoke the operation - string registryName = "string"; - MachineLearningRegistryResource result = await collection.GetAsync(registryName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - MachineLearningRegistryData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Get_GetRegistryWithUserCreatedAccounts() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/get-UserCreated.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/get.json // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -274,42 +154,7 @@ public async Task Get_GetRegistryWithUserCreatedAccounts() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListRegistriesWithSystemCreatedAccounts() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/list-SystemCreated.json - // this example is just showing the usage of "Registries_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "test-rg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this MachineLearningRegistryResource - MachineLearningRegistryCollection collection = resourceGroupResource.GetMachineLearningRegistries(); - - // invoke the operation and iterate over the result - await foreach (MachineLearningRegistryResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - MachineLearningRegistryData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine("Succeeded"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetAll_ListRegistriesWithUserCreatedAccounts() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/list-UserCreated.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/list.json // this example is just showing the usage of "Registries_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -344,36 +189,7 @@ public async Task GetAll_ListRegistriesWithUserCreatedAccounts() [Ignore("Only validating compilation of examples")] public async Task Exists_GetRegistryWithSystemCreatedAccounts() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/get-SystemCreated.json - // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "test-rg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this MachineLearningRegistryResource - MachineLearningRegistryCollection collection = resourceGroupResource.GetMachineLearningRegistries(); - - // invoke the operation - string registryName = "string"; - bool result = await collection.ExistsAsync(registryName); - - Console.WriteLine($"Succeeded: {result}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Exists_GetRegistryWithUserCreatedAccounts() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/get-UserCreated.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/get.json // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -402,48 +218,7 @@ public async Task Exists_GetRegistryWithUserCreatedAccounts() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetRegistryWithSystemCreatedAccounts() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/get-SystemCreated.json - // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "test-rg"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this MachineLearningRegistryResource - MachineLearningRegistryCollection collection = resourceGroupResource.GetMachineLearningRegistries(); - - // invoke the operation - string registryName = "string"; - NullableResponse response = await collection.GetIfExistsAsync(registryName); - MachineLearningRegistryResource result = response.HasValue ? response.Value : null; - - if (result == null) - { - Console.WriteLine("Succeeded with null as result"); - } - else - { - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - MachineLearningRegistryData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetIfExists_GetRegistryWithUserCreatedAccounts() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/get-UserCreated.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/get.json // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/tests/Generated/Samples/Sample_MachineLearningRegistryResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/tests/Generated/Samples/Sample_MachineLearningRegistryResource.cs index ed2dd8908962..d205d3afe454 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/tests/Generated/Samples/Sample_MachineLearningRegistryResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/tests/Generated/Samples/Sample_MachineLearningRegistryResource.cs @@ -21,37 +21,7 @@ public partial class Sample_MachineLearningRegistryResource [Ignore("Only validating compilation of examples")] public async Task Get_GetRegistryWithSystemCreatedAccounts() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/get-SystemCreated.json - // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this MachineLearningRegistryResource created on azure - // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "test-rg"; - string registryName = "string"; - ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - - // invoke the operation - MachineLearningRegistryResource result = await machineLearningRegistry.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - MachineLearningRegistryData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Get_GetRegistryWithUserCreatedAccounts() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/get-UserCreated.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/get.json // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -107,7 +77,7 @@ public async Task Delete_DeleteRegistry() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateRegistryWithSystemCreatedAccounts() { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/update-SystemCreated.json + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/update.json // this example is just showing the usage of "Registries_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -152,55 +122,6 @@ public async Task Update_UpdateRegistryWithSystemCreatedAccounts() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - [Test] - [Ignore("Only validating compilation of examples")] - public async Task Update_UpdateRegistryWithUserCreatedAccounts() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Registries/update-UserCreated.json - // this example is just showing the usage of "Registries_Update" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this MachineLearningRegistryResource created on azure - // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - string resourceGroupName = "test-rg"; - string registryName = "string"; - ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName); - MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId); - - // invoke the operation - MachineLearningRegistryPatch patch = new MachineLearningRegistryPatch - { - Identity = new ManagedServiceIdentity("UserAssigned") - { - UserAssignedIdentities = -{ -[new ResourceIdentifier("string")] = new UserAssignedIdentity() -}, - }, - Sku = new MachineLearningSkuPatch - { - Name = "string", - Tier = MachineLearningSkuTier.Basic, - Size = "string", - Family = "string", - Capacity = 1, - }, - Tags = { }, - }; - MachineLearningRegistryResource result = await machineLearningRegistry.UpdateAsync(patch); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - MachineLearningRegistryData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - [Test] [Ignore("Only validating compilation of examples")] public async Task GetBlobReferenceSasRegistryDataReference_GetBlobReferenceSASDataReference() @@ -304,7 +225,6 @@ public async Task RemoveRegions_RemoveRegionsFromRegistry() AcrAccountSku = "string", ArmResourceId = new ResourceIdentifier("string"), }, -ArmResourceId = new ResourceIdentifier("string"), }}, Location = new AzureLocation("string"), StorageAccountDetails = {new StorageAccountDetails @@ -317,7 +237,6 @@ public async Task RemoveRegions_RemoveRegionsFromRegistry() StorageAccountName = "string", StorageAccountType = "string", }, -ArmResourceId = new ResourceIdentifier("string"), }}, }}, Tags = { }, diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/tests/Generated/Samples/Sample_MachineLearningWorkspaceResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/tests/Generated/Samples/Sample_MachineLearningWorkspaceResource.cs index b027872ad57b..f36b1c69c7ff 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/tests/Generated/Samples/Sample_MachineLearningWorkspaceResource.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/tests/Generated/Samples/Sample_MachineLearningWorkspaceResource.cs @@ -109,6 +109,35 @@ public async Task Update_UpdateWorkspace() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetWorkspaceFeatures_ListWorkspaceFeatures() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/WorkspaceFeature/list.json + // this example is just showing the usage of "WorkspaceFeatures_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this MachineLearningWorkspaceResource created on azure + // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "myResourceGroup"; + string workspaceName = "testworkspace"; + ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); + MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); + + // invoke the operation and iterate over the result + await foreach (MachineLearningUserFeature item in machineLearningWorkspace.GetWorkspaceFeaturesAsync()) + { + Console.WriteLine($"Succeeded: {item}"); + } + + Console.WriteLine("Succeeded"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task Diagnose_DiagnoseWorkspace() @@ -396,34 +425,5 @@ public async Task ProvisionManagedNetworkManagedNetworkProvision_ProvisionManage Console.WriteLine($"Succeeded: {result}"); } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetWorkspaceFeatures_ListWorkspaceFeatures() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/WorkspaceFeature/list.json - // this example is just showing the usage of "WorkspaceFeatures_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this MachineLearningWorkspaceResource created on azure - // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource - string subscriptionId = "00000000-0000-0000-0000-000000000000"; - string resourceGroupName = "myResourceGroup"; - string workspaceName = "testworkspace"; - ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); - MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId); - - // invoke the operation and iterate over the result - await foreach (MachineLearningUserFeature item in machineLearningWorkspace.GetWorkspaceFeaturesAsync()) - { - Console.WriteLine($"Succeeded: {item}"); - } - - Console.WriteLine("Succeeded"); - } } } diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 1a10c85e1ff3..f2fe72ba41ad 100644 --- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -17,37 +17,6 @@ namespace Azure.ResourceManager.MachineLearning.Samples { public partial class Sample_SubscriptionResourceExtensions { - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetMachineLearningWorkspaces_GetWorkspacesBySubscription() - { - // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/listBySubscription.json - // this example is just showing the usage of "Workspaces_ListBySubscription" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this SubscriptionResource created on azure - // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource - string subscriptionId = "00000000-1111-2222-3333-444444444444"; - ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); - SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); - - // invoke the operation and iterate over the result - await foreach (MachineLearningWorkspaceResource item in subscriptionResource.GetMachineLearningWorkspacesAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - MachineLearningWorkspaceData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine("Succeeded"); - } - [Test] [Ignore("Only validating compilation of examples")] public async Task GetMachineLearningUsages_ListUsages() @@ -206,5 +175,36 @@ public async Task GetMachineLearningRegistries_ListRegistriesBySubscription() Console.WriteLine("Succeeded"); } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetMachineLearningWorkspaces_GetWorkspacesBySubscription() + { + // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/Workspace/listBySubscription.json + // this example is just showing the usage of "Workspaces_ListBySubscription" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResource created on azure + // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource + string subscriptionId = "00000000-1111-2222-3333-444444444444"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // invoke the operation and iterate over the result + await foreach (MachineLearningWorkspaceResource item in subscriptionResource.GetMachineLearningWorkspacesAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + MachineLearningWorkspaceData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine("Succeeded"); + } } } diff --git a/sdk/storage/ci.yml b/sdk/storage/ci.yml index 2ca0501b60bd..4e749e6b85b1 100644 --- a/sdk/storage/ci.yml +++ b/sdk/storage/ci.yml @@ -12,6 +12,8 @@ trigger: - sdk/storage/Azure.Storage.DataMovement/ - sdk/storage/Azure.Storage.DataMovement.Blobs/ - sdk/storage/Azure.Storage.DataMovement.Files/ + exclude: + - sdk/storage/Azure.ResourceManager.Storage/ - sdk/storage/Azure.Storage.DataMovement.Blobs.Files.Shares/ exclude: - sdk/storage/Azure.ResourceManager.Storage/