diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index a716e16e37a0..deac685c7dc4 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -4092,7 +4092,7 @@ packages: dependencies: semver: 7.3.7 shelljs: 0.8.5 - typescript: 4.9.0-dev.20220902 + typescript: 4.9.0-dev.20220904 dev: false /downlevel-dts/0.4.0: @@ -9095,8 +9095,8 @@ packages: hasBin: true dev: false - /typescript/4.9.0-dev.20220902: - resolution: {integrity: sha512-K1iMNFhcRuYtQxDQD2JHECQ0x24OzwOD09TBFuRsIhnxzOG6XUU01tkKcCYgb//DkNDD6Jy+MpHf8SxzvPCnIA==} + /typescript/4.9.0-dev.20220904: + resolution: {integrity: sha512-zUWjUShDSE1RGYlcSbiHF/VgqEl9mGMw07z6qhsRjtYLyRftM65b4WPk/EziV/TwN3uf8kAJcoyIxuDrxlt8tg==} engines: {node: '>=4.2.0'} hasBin: true dev: false @@ -12912,7 +12912,7 @@ packages: dev: false file:projects/arm-machinelearning.tgz: - resolution: {integrity: sha512-eY4Bn8hJ362vEmSghMORxgehQxZ4a0tPOKi/f2w6XYH56XECbY8zZ/NxlQrJ/skIGhdqc9TaM4ZuPEGAVKrymA==, tarball: file:projects/arm-machinelearning.tgz} + resolution: {integrity: sha512-IsTbhZ74zOxlWHtpugh0Li0v1u57xRejHzKwP5J8JkqWXYBRWWDTFrjCUFlTAK9I688eLZ3sy9uqJmS4kP8EdA==, tarball: file:projects/arm-machinelearning.tgz} name: '@rush-temp/arm-machinelearning' version: 0.0.0 dependencies: @@ -12932,7 +12932,7 @@ packages: rollup: 2.79.0 rollup-plugin-sourcemaps: 0.6.3_rollup@2.79.0 tslib: 2.4.0 - typescript: 4.6.4 + typescript: 4.2.4 uglify-js: 3.16.3 transitivePeerDependencies: - '@types/node' diff --git a/sdk/machinelearning/arm-machinelearning/CHANGELOG.md b/sdk/machinelearning/arm-machinelearning/CHANGELOG.md index e434821420b5..d334d5a4cd57 100644 --- a/sdk/machinelearning/arm-machinelearning/CHANGELOG.md +++ b/sdk/machinelearning/arm-machinelearning/CHANGELOG.md @@ -1,15 +1,23 @@ # Release History + +## 3.0.0 (2022-09-05) + +**Breaking Changes** -## 2.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Interface AzureBlobDatastore no longer has parameter datastoreType + - Interface AzureDataLakeGen1Datastore no longer has parameter datastoreType + - Interface AzureDataLakeGen2Datastore no longer has parameter datastoreType + - Interface AzureFileDatastore no longer has parameter datastoreType + - Interface CommandJob no longer has parameter jobType + - Interface KubernetesOnlineDeployment no longer has parameter endpointComputeType + - Interface ManagedOnlineDeployment no longer has parameter endpointComputeType + - Interface MLTableData no longer has parameter dataType + - Interface PipelineJob no longer has parameter jobType + - Interface SweepJob no longer has parameter jobType + - Interface UriFileDataVersion no longer has parameter dataType + - Interface UriFolderDataVersion no longer has parameter dataType + + ## 2.0.0 (2022-08-05) **Breaking Changes** diff --git a/sdk/machinelearning/arm-machinelearning/_meta.json b/sdk/machinelearning/arm-machinelearning/_meta.json index c1c21962aa74..52248b335606 100644 --- a/sdk/machinelearning/arm-machinelearning/_meta.json +++ b/sdk/machinelearning/arm-machinelearning/_meta.json @@ -1,8 +1,8 @@ { - "commit": "1dd79c416cdccde274113ec03b92b75069fad464", + "commit": "7b305e85aaf847e47e1d4f05ea84d9f435ce9021", "readme": "specification/machinelearningservices/resource-manager/readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\machinelearningservices\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.1.20220727.1 --generate-sample=true", + "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.0", - "use": "@autorest/typescript@6.0.0-rc.1.20220727.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", + "use": "@autorest/typescript@6.0.0-rc.1" } \ No newline at end of file diff --git a/sdk/machinelearning/arm-machinelearning/package.json b/sdk/machinelearning/arm-machinelearning/package.json index 7bc1e4de83f6..e29c35d51a16 100644 --- a/sdk/machinelearning/arm-machinelearning/package.json +++ b/sdk/machinelearning/arm-machinelearning/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AzureMachineLearningWorkspaces.", - "version": "2.0.1", + "version": "3.0.0", "engines": { "node": ">=12.0.0" }, @@ -36,7 +36,7 @@ "mkdirp": "^1.0.4", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", - "typescript": "~4.6.0", + "typescript": "~4.2.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", @@ -109,13 +109,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-machinelearning?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md b/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md index cc8a5d7506a6..06f414fc253e 100644 --- a/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md +++ b/sdk/machinelearning/arm-machinelearning/review/arm-machinelearning.api.md @@ -214,7 +214,6 @@ export interface AutoScaleProperties { export interface AzureBlobDatastore extends DatastoreProperties { accountName?: string; containerName?: string; - datastoreType: "AzureBlob"; endpoint?: string; protocol?: string; serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; @@ -222,7 +221,6 @@ export interface AzureBlobDatastore extends DatastoreProperties { // @public export interface AzureDataLakeGen1Datastore extends DatastoreProperties { - datastoreType: "AzureDataLakeGen1"; serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; storeName: string; } @@ -230,7 +228,6 @@ export interface AzureDataLakeGen1Datastore extends DatastoreProperties { // @public export interface AzureDataLakeGen2Datastore extends DatastoreProperties { accountName: string; - datastoreType: "AzureDataLakeGen2"; endpoint?: string; filesystem: string; protocol?: string; @@ -240,7 +237,6 @@ export interface AzureDataLakeGen2Datastore extends DatastoreProperties { // @public export interface AzureFileDatastore extends DatastoreProperties { accountName: string; - datastoreType: "AzureFile"; endpoint?: string; fileShareName: string; protocol?: string; @@ -741,7 +737,6 @@ export interface CommandJob extends JobBaseProperties { inputs?: { [propertyName: string]: JobInputUnion | null; }; - jobType: "Command"; limits?: CommandJobLimits; outputs?: { [propertyName: string]: JobOutputUnion | null; @@ -884,7 +879,7 @@ export interface Compute { computeType: "AKS" | "Kubernetes" | "AmlCompute" | "ComputeInstance" | "VirtualMachine" | "HDInsight" | "DataFactory" | "Databricks" | "DataLakeAnalytics" | "SynapseSpark"; readonly createdOn?: Date; description?: string; - disableLocalAuth?: boolean; + readonly disableLocalAuth?: boolean; readonly isAttachedCompute?: boolean; readonly modifiedOn?: Date; readonly provisioningErrors?: ErrorResponse[]; @@ -2729,7 +2724,6 @@ export interface Kubernetes extends Compute, KubernetesSchema { // @public export interface KubernetesOnlineDeployment extends OnlineDeploymentProperties { containerResourceRequirements?: ContainerResourceRequirements; - endpointComputeType: "Kubernetes"; } // @public @@ -2818,7 +2812,6 @@ export interface ManagedIdentityAuthTypeWorkspaceConnectionProperties extends Wo // @public export interface ManagedOnlineDeployment extends OnlineDeploymentProperties { - endpointComputeType: "Managed"; } // @public @@ -2849,7 +2842,6 @@ export interface MLFlowModelJobOutput extends AssetJobOutput, JobOutput { // @public export interface MLTableData extends DataVersionBaseProperties { - dataType: "mltable"; referencedUris?: string[]; } @@ -3494,7 +3486,6 @@ export interface PipelineJob extends JobBaseProperties { jobs?: { [propertyName: string]: Record; }; - jobType: "Pipeline"; outputs?: { [propertyName: string]: JobOutputUnion | null; }; @@ -3943,7 +3934,6 @@ export interface SweepJob extends JobBaseProperties { inputs?: { [propertyName: string]: JobInputUnion | null; }; - jobType: "Sweep"; limits?: SweepJobLimits; objective: Objective; outputs?: { @@ -4073,7 +4063,6 @@ export interface UpdateWorkspaceQuotasResult { // @public export interface UriFileDataVersion extends DataVersionBaseProperties { - dataType: "uri_file"; } // @public (undocumented) @@ -4086,7 +4075,6 @@ export interface UriFileJobOutput extends AssetJobOutput, JobOutput { // @public export interface UriFolderDataVersion extends DataVersionBaseProperties { - dataType: "uri_folder"; } // @public (undocumented) diff --git a/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts b/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts index b2a27ed44553..d4feebc838f9 100644 --- a/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts +++ b/sdk/machinelearning/arm-machinelearning/src/azureMachineLearningWorkspaces.ts @@ -104,7 +104,7 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-machinelearning/2.0.1`; + const packageDetails = `azsdk-js-arm-machinelearning/3.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -124,41 +124,34 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient { }; super(optionsWithDefaults); - let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); - bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( + const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName ); - } - if ( - !options || - !options.pipeline || - options.pipeline.getOrderedPolicies().length == 0 || - !bearerTokenAuthenticationPolicyFound - ) { - this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName - }); - this.pipeline.addPolicy( - coreRestPipeline.bearerTokenAuthenticationPolicy({ - credential: credentials, - scopes: `${optionsWithDefaults.credentialScopes}`, - challengeCallbacks: { - authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) - ); + if (!bearerTokenAuthenticationPolicyFound) { + this.pipeline.removePolicy({ + name: coreRestPipeline.bearerTokenAuthenticationPolicyName + }); + this.pipeline.addPolicy( + coreRestPipeline.bearerTokenAuthenticationPolicy({ + scopes: `${optionsWithDefaults.baseUri}/.default`, + challengeCallbacks: { + authorizeRequestOnChallenge: + coreClient.authorizeRequestOnClaimChallenge + } + }) + ); + } } // Parameter assignments this.subscriptionId = subscriptionId; // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-05-01"; + this.apiVersion = options.apiVersion || "2022-10-01"; this.operations = new OperationsImpl(this); this.workspaces = new WorkspacesImpl(this); this.usages = new UsagesImpl(this); diff --git a/sdk/machinelearning/arm-machinelearning/src/models/index.ts b/sdk/machinelearning/arm-machinelearning/src/models/index.ts index aa3cac3b7a87..6408e374aaf0 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/index.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/index.ts @@ -817,8 +817,11 @@ export interface Compute { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly isAttachedCompute?: boolean; - /** Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. */ - disableLocalAuth?: boolean; + /** + * Opt-out of local authentication and ensure customers can use only MSI and AAD exclusively for authentication. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly disableLocalAuth?: boolean; } /** AmlCompute update parameters. */ @@ -3105,17 +3108,12 @@ export interface OnlineDeployment extends TrackedResource { /** Properties specific to a KubernetesOnlineDeployment. */ export interface KubernetesOnlineDeployment extends OnlineDeploymentProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - endpointComputeType: "Kubernetes"; /** The resource requirements for the container (cpu and memory). */ containerResourceRequirements?: ContainerResourceRequirements; } /** Properties specific to a ManagedOnlineDeployment. */ -export interface ManagedOnlineDeployment extends OnlineDeploymentProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - endpointComputeType: "Managed"; -} +export interface ManagedOnlineDeployment extends OnlineDeploymentProperties {} /** Container for code asset versions. */ export interface CodeContainerProperties extends AssetContainer {} @@ -3200,8 +3198,6 @@ export interface ModelVersionProperties extends AssetBase { /** Azure Blob datastore configuration. */ export interface AzureBlobDatastore extends DatastoreProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - datastoreType: "AzureBlob"; /** Storage account name. */ accountName?: string; /** Storage account container name. */ @@ -3216,8 +3212,6 @@ export interface AzureBlobDatastore extends DatastoreProperties { /** Azure Data Lake Gen1 datastore configuration. */ export interface AzureDataLakeGen1Datastore extends DatastoreProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - datastoreType: "AzureDataLakeGen1"; /** Indicates which identity to use to authenticate service data access to customer's storage. */ serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity; /** [Required] Azure Data Lake store name. */ @@ -3226,8 +3220,6 @@ export interface AzureDataLakeGen1Datastore extends DatastoreProperties { /** Azure Data Lake Gen2 datastore configuration. */ export interface AzureDataLakeGen2Datastore extends DatastoreProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - datastoreType: "AzureDataLakeGen2"; /** [Required] Storage account name. */ accountName: string; /** Azure cloud endpoint for the storage account. */ @@ -3242,8 +3234,6 @@ export interface AzureDataLakeGen2Datastore extends DatastoreProperties { /** Azure File datastore configuration. */ export interface AzureFileDatastore extends DatastoreProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - datastoreType: "AzureFile"; /** [Required] Storage account name. */ accountName: string; /** Azure cloud endpoint for the storage account. */ @@ -3258,8 +3248,6 @@ export interface AzureFileDatastore extends DatastoreProperties { /** Command job definition. */ export interface CommandJob extends JobBaseProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - jobType: "Command"; /** ARM resource ID of the code asset. */ codeId?: string; /** [Required] The command to execute on startup of the job. eg. "python train.py" */ @@ -3287,8 +3275,6 @@ export interface CommandJob extends JobBaseProperties { /** Pipeline Job definition: defines generic to MFE attributes. */ export interface PipelineJob extends JobBaseProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - jobType: "Pipeline"; /** Inputs for the pipeline job. */ inputs?: { [propertyName: string]: JobInputUnion | null }; /** Jobs construct the Pipeline Job. */ @@ -3301,8 +3287,6 @@ export interface PipelineJob extends JobBaseProperties { /** Sweep job definition. */ export interface SweepJob extends JobBaseProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - jobType: "Sweep"; /** Early termination policies enable canceling poor-performing runs before they complete */ earlyTermination?: EarlyTerminationPolicyUnion; /** Mapping of input data bindings used in the job. */ @@ -3323,23 +3307,15 @@ export interface SweepJob extends JobBaseProperties { /** MLTable data definition */ export interface MLTableData extends DataVersionBaseProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - dataType: "mltable"; /** Uris referenced in the MLTable definition (required for lineage) */ referencedUris?: string[]; } /** uri-file data version entity */ -export interface UriFileDataVersion extends DataVersionBaseProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - dataType: "uri_file"; -} +export interface UriFileDataVersion extends DataVersionBaseProperties {} /** uri-folder data version entity */ -export interface UriFolderDataVersion extends DataVersionBaseProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - dataType: "uri_folder"; -} +export interface UriFolderDataVersion extends DataVersionBaseProperties {} /** Defines headers for Workspaces_diagnose operation. */ export interface WorkspacesDiagnoseHeaders { diff --git a/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts b/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts index 87bb48c15a67..3c8d49f7978e 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/mappers.ts @@ -1760,6 +1760,7 @@ export const Compute: coreClient.CompositeMapper = { }, disableLocalAuth: { serializedName: "disableLocalAuth", + readOnly: true, type: { name: "Boolean" } @@ -8135,9 +8136,9 @@ export const KubernetesOnlineDeployment: coreClient.CompositeMapper = { type: { name: "Composite", className: "KubernetesOnlineDeployment", - uberParent: "OnlineDeploymentProperties", + uberParent: "EndpointDeploymentPropertiesBase", polymorphicDiscriminator: - OnlineDeploymentProperties.type.polymorphicDiscriminator, + EndpointDeploymentPropertiesBase.type.polymorphicDiscriminator, modelProperties: { ...OnlineDeploymentProperties.type.modelProperties, containerResourceRequirements: { @@ -8156,9 +8157,9 @@ export const ManagedOnlineDeployment: coreClient.CompositeMapper = { type: { name: "Composite", className: "ManagedOnlineDeployment", - uberParent: "OnlineDeploymentProperties", + uberParent: "EndpointDeploymentPropertiesBase", polymorphicDiscriminator: - OnlineDeploymentProperties.type.polymorphicDiscriminator, + EndpointDeploymentPropertiesBase.type.polymorphicDiscriminator, modelProperties: { ...OnlineDeploymentProperties.type.modelProperties } @@ -8262,7 +8263,7 @@ export const DataVersionBaseProperties: coreClient.CompositeMapper = { type: { name: "Composite", className: "DataVersionBaseProperties", - uberParent: "AssetBase", + uberParent: "ResourceBase", polymorphicDiscriminator: { serializedName: "dataType", clientName: "dataType" @@ -8383,8 +8384,8 @@ export const AzureBlobDatastore: coreClient.CompositeMapper = { type: { name: "Composite", className: "AzureBlobDatastore", - uberParent: "DatastoreProperties", - polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, modelProperties: { ...DatastoreProperties.type.modelProperties, accountName: { @@ -8430,8 +8431,8 @@ export const AzureDataLakeGen1Datastore: coreClient.CompositeMapper = { type: { name: "Composite", className: "AzureDataLakeGen1Datastore", - uberParent: "DatastoreProperties", - polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, modelProperties: { ...DatastoreProperties.type.modelProperties, serviceDataAccessAuthIdentity: { @@ -8459,8 +8460,8 @@ export const AzureDataLakeGen2Datastore: coreClient.CompositeMapper = { type: { name: "Composite", className: "AzureDataLakeGen2Datastore", - uberParent: "DatastoreProperties", - polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, modelProperties: { ...DatastoreProperties.type.modelProperties, accountName: { @@ -8512,8 +8513,8 @@ export const AzureFileDatastore: coreClient.CompositeMapper = { type: { name: "Composite", className: "AzureFileDatastore", - uberParent: "DatastoreProperties", - polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator, + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, modelProperties: { ...DatastoreProperties.type.modelProperties, accountName: { @@ -8565,8 +8566,8 @@ export const CommandJob: coreClient.CompositeMapper = { type: { name: "Composite", className: "CommandJob", - uberParent: "JobBaseProperties", - polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, modelProperties: { ...JobBaseProperties.type.modelProperties, codeId: { @@ -8660,8 +8661,8 @@ export const PipelineJob: coreClient.CompositeMapper = { type: { name: "Composite", className: "PipelineJob", - uberParent: "JobBaseProperties", - polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, modelProperties: { ...JobBaseProperties.type.modelProperties, inputs: { @@ -8707,8 +8708,8 @@ export const SweepJob: coreClient.CompositeMapper = { type: { name: "Composite", className: "SweepJob", - uberParent: "JobBaseProperties", - polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator, + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, modelProperties: { ...JobBaseProperties.type.modelProperties, earlyTermination: { @@ -8779,9 +8780,8 @@ export const MLTableData: coreClient.CompositeMapper = { type: { name: "Composite", className: "MLTableData", - uberParent: "DataVersionBaseProperties", - polymorphicDiscriminator: - DataVersionBaseProperties.type.polymorphicDiscriminator, + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, modelProperties: { ...DataVersionBaseProperties.type.modelProperties, referencedUris: { @@ -8805,9 +8805,8 @@ export const UriFileDataVersion: coreClient.CompositeMapper = { type: { name: "Composite", className: "UriFileDataVersion", - uberParent: "DataVersionBaseProperties", - polymorphicDiscriminator: - DataVersionBaseProperties.type.polymorphicDiscriminator, + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, modelProperties: { ...DataVersionBaseProperties.type.modelProperties } @@ -8819,9 +8818,8 @@ export const UriFolderDataVersion: coreClient.CompositeMapper = { type: { name: "Composite", className: "UriFolderDataVersion", - uberParent: "DataVersionBaseProperties", - polymorphicDiscriminator: - DataVersionBaseProperties.type.polymorphicDiscriminator, + uberParent: "ResourceBase", + polymorphicDiscriminator: ResourceBase.type.polymorphicDiscriminator, modelProperties: { ...DataVersionBaseProperties.type.modelProperties } @@ -9379,17 +9377,17 @@ export let discriminators = { "JobInput.literal": LiteralJobInput, "JobLimits.Command": CommandJobLimits, "JobLimits.Sweep": SweepJobLimits, - "OnlineDeploymentProperties.Kubernetes": KubernetesOnlineDeployment, - "OnlineDeploymentProperties.Managed": ManagedOnlineDeployment, - "AssetBase.DataVersionBaseProperties": DataVersionBaseProperties, - "DatastoreProperties.AzureBlob": AzureBlobDatastore, - "DatastoreProperties.AzureDataLakeGen1": AzureDataLakeGen1Datastore, - "DatastoreProperties.AzureDataLakeGen2": AzureDataLakeGen2Datastore, - "DatastoreProperties.AzureFile": AzureFileDatastore, - "JobBaseProperties.Command": CommandJob, - "JobBaseProperties.Pipeline": PipelineJob, - "JobBaseProperties.Sweep": SweepJob, - "DataVersionBaseProperties.mltable": MLTableData, - "DataVersionBaseProperties.uri_file": UriFileDataVersion, - "DataVersionBaseProperties.uri_folder": UriFolderDataVersion + "EndpointDeploymentPropertiesBase.Kubernetes": KubernetesOnlineDeployment, + "EndpointDeploymentPropertiesBase.Managed": ManagedOnlineDeployment, + "ResourceBase.DataVersionBaseProperties": DataVersionBaseProperties, + "ResourceBase.AzureBlob": AzureBlobDatastore, + "ResourceBase.AzureDataLakeGen1": AzureDataLakeGen1Datastore, + "ResourceBase.AzureDataLakeGen2": AzureDataLakeGen2Datastore, + "ResourceBase.AzureFile": AzureFileDatastore, + "ResourceBase.Command": CommandJob, + "ResourceBase.Pipeline": PipelineJob, + "ResourceBase.Sweep": SweepJob, + "ResourceBase.mltable": MLTableData, + "ResourceBase.uri_file": UriFileDataVersion, + "ResourceBase.uri_folder": UriFolderDataVersion }; diff --git a/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts b/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts index 605504c965b2..c480bf0cbe1b 100644 --- a/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts +++ b/sdk/machinelearning/arm-machinelearning/src/models/parameters.ts @@ -70,7 +70,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-05-01", + defaultValue: "2022-10-01", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/machinelearning/arm-machinelearning/test/sampleTest.ts b/sdk/machinelearning/arm-machinelearning/test/sampleTest.ts index fb12ab2c8def..25aeb3ebcc36 100644 --- a/sdk/machinelearning/arm-machinelearning/test/sampleTest.ts +++ b/sdk/machinelearning/arm-machinelearning/test/sampleTest.ts @@ -28,16 +28,16 @@ const recorderOptions: RecorderStartOptions = { describe("My test", () => { let recorder: Recorder; - beforeEach(async function (this: Context) { + beforeEach(async function(this: Context) { recorder = new Recorder(this.currentTest); await recorder.start(recorderOptions); }); - afterEach(async function () { + afterEach(async function() { await recorder.stop(); }); - it("sample test", async function () { + it("sample test", async function() { console.log("Hi, I'm a test!"); }); }); diff --git a/sdk/machinelearning/arm-machinelearning/tsconfig.json b/sdk/machinelearning/arm-machinelearning/tsconfig.json index c068b7a47837..3e6ae96443f3 100644 --- a/sdk/machinelearning/arm-machinelearning/tsconfig.json +++ b/sdk/machinelearning/arm-machinelearning/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-machinelearning": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"