@azure/arm-machinelearning 1.0.0 → 2.0.1-alpha.20220822.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist/index.js +56 -51
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/azureMachineLearningWorkspaces.d.ts.map +1 -1
- package/dist-esm/src/azureMachineLearningWorkspaces.js +18 -13
- package/dist-esm/src/azureMachineLearningWorkspaces.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +24 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +13 -13
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +38 -38
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/package.json +5 -5
- package/review/arm-machinelearning.api.md +12 -0
- package/src/azureMachineLearningWorkspaces.ts +23 -16
- package/src/models/index.ts +30 -3
- package/src/models/mappers.ts +41 -38
- package/types/arm-machinelearning.d.ts +24 -0
- package/dist-esm/samples-dev/workspaceSkusListSample.d.ts +0 -2
- package/dist-esm/samples-dev/workspaceSkusListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/workspaceSkusListSample.js +0 -43
- package/dist-esm/samples-dev/workspaceSkusListSample.js.map +0 -1
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for AzureMachineLearningWorkspaces.",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "2.0.1-alpha.20220822.3",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=12.0.0"
|
|
9
9
|
},
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"mkdirp": "^1.0.4",
|
|
37
37
|
"rollup": "^2.66.1",
|
|
38
38
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
39
|
-
"typescript": "~4.
|
|
39
|
+
"typescript": "~4.6.0",
|
|
40
40
|
"uglify-js": "^3.4.9",
|
|
41
41
|
"rimraf": "^3.0.0",
|
|
42
42
|
"@azure/identity": "^2.0.1",
|
|
43
43
|
"@azure-tools/test-recorder": "^2.0.0",
|
|
44
|
-
"@azure-tools/test-credential": "
|
|
44
|
+
"@azure-tools/test-credential": ">=1.0.0-alpha <1.0.0-alphb",
|
|
45
45
|
"mocha": "^7.1.1",
|
|
46
46
|
"@types/chai": "^4.2.8",
|
|
47
47
|
"chai": "^4.2.0",
|
|
48
48
|
"cross-env": "^7.0.2",
|
|
49
|
-
"@azure/dev-tool": "
|
|
49
|
+
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb"
|
|
50
50
|
},
|
|
51
51
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/machinelearning/arm-machinelearning",
|
|
52
52
|
"repository": {
|
|
@@ -118,4 +118,4 @@
|
|
|
118
118
|
"disableDocsMs": true,
|
|
119
119
|
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-machinelearning?view=azure-node-preview"
|
|
120
120
|
}
|
|
121
|
-
}
|
|
121
|
+
}
|
|
@@ -214,6 +214,7 @@ export interface AutoScaleProperties {
|
|
|
214
214
|
export interface AzureBlobDatastore extends DatastoreProperties {
|
|
215
215
|
accountName?: string;
|
|
216
216
|
containerName?: string;
|
|
217
|
+
datastoreType: "AzureBlob";
|
|
217
218
|
endpoint?: string;
|
|
218
219
|
protocol?: string;
|
|
219
220
|
serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity;
|
|
@@ -221,6 +222,7 @@ export interface AzureBlobDatastore extends DatastoreProperties {
|
|
|
221
222
|
|
|
222
223
|
// @public
|
|
223
224
|
export interface AzureDataLakeGen1Datastore extends DatastoreProperties {
|
|
225
|
+
datastoreType: "AzureDataLakeGen1";
|
|
224
226
|
serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity;
|
|
225
227
|
storeName: string;
|
|
226
228
|
}
|
|
@@ -228,6 +230,7 @@ export interface AzureDataLakeGen1Datastore extends DatastoreProperties {
|
|
|
228
230
|
// @public
|
|
229
231
|
export interface AzureDataLakeGen2Datastore extends DatastoreProperties {
|
|
230
232
|
accountName: string;
|
|
233
|
+
datastoreType: "AzureDataLakeGen2";
|
|
231
234
|
endpoint?: string;
|
|
232
235
|
filesystem: string;
|
|
233
236
|
protocol?: string;
|
|
@@ -237,6 +240,7 @@ export interface AzureDataLakeGen2Datastore extends DatastoreProperties {
|
|
|
237
240
|
// @public
|
|
238
241
|
export interface AzureFileDatastore extends DatastoreProperties {
|
|
239
242
|
accountName: string;
|
|
243
|
+
datastoreType: "AzureFile";
|
|
240
244
|
endpoint?: string;
|
|
241
245
|
fileShareName: string;
|
|
242
246
|
protocol?: string;
|
|
@@ -737,6 +741,7 @@ export interface CommandJob extends JobBaseProperties {
|
|
|
737
741
|
inputs?: {
|
|
738
742
|
[propertyName: string]: JobInputUnion | null;
|
|
739
743
|
};
|
|
744
|
+
jobType: "Command";
|
|
740
745
|
limits?: CommandJobLimits;
|
|
741
746
|
outputs?: {
|
|
742
747
|
[propertyName: string]: JobOutputUnion | null;
|
|
@@ -2724,6 +2729,7 @@ export interface Kubernetes extends Compute, KubernetesSchema {
|
|
|
2724
2729
|
// @public
|
|
2725
2730
|
export interface KubernetesOnlineDeployment extends OnlineDeploymentProperties {
|
|
2726
2731
|
containerResourceRequirements?: ContainerResourceRequirements;
|
|
2732
|
+
endpointComputeType: "Kubernetes";
|
|
2727
2733
|
}
|
|
2728
2734
|
|
|
2729
2735
|
// @public
|
|
@@ -2812,6 +2818,7 @@ export interface ManagedIdentityAuthTypeWorkspaceConnectionProperties extends Wo
|
|
|
2812
2818
|
|
|
2813
2819
|
// @public
|
|
2814
2820
|
export interface ManagedOnlineDeployment extends OnlineDeploymentProperties {
|
|
2821
|
+
endpointComputeType: "Managed";
|
|
2815
2822
|
}
|
|
2816
2823
|
|
|
2817
2824
|
// @public
|
|
@@ -2842,6 +2849,7 @@ export interface MLFlowModelJobOutput extends AssetJobOutput, JobOutput {
|
|
|
2842
2849
|
|
|
2843
2850
|
// @public
|
|
2844
2851
|
export interface MLTableData extends DataVersionBaseProperties {
|
|
2852
|
+
dataType: "mltable";
|
|
2845
2853
|
referencedUris?: string[];
|
|
2846
2854
|
}
|
|
2847
2855
|
|
|
@@ -3486,6 +3494,7 @@ export interface PipelineJob extends JobBaseProperties {
|
|
|
3486
3494
|
jobs?: {
|
|
3487
3495
|
[propertyName: string]: Record<string, unknown>;
|
|
3488
3496
|
};
|
|
3497
|
+
jobType: "Pipeline";
|
|
3489
3498
|
outputs?: {
|
|
3490
3499
|
[propertyName: string]: JobOutputUnion | null;
|
|
3491
3500
|
};
|
|
@@ -3934,6 +3943,7 @@ export interface SweepJob extends JobBaseProperties {
|
|
|
3934
3943
|
inputs?: {
|
|
3935
3944
|
[propertyName: string]: JobInputUnion | null;
|
|
3936
3945
|
};
|
|
3946
|
+
jobType: "Sweep";
|
|
3937
3947
|
limits?: SweepJobLimits;
|
|
3938
3948
|
objective: Objective;
|
|
3939
3949
|
outputs?: {
|
|
@@ -4063,6 +4073,7 @@ export interface UpdateWorkspaceQuotasResult {
|
|
|
4063
4073
|
|
|
4064
4074
|
// @public
|
|
4065
4075
|
export interface UriFileDataVersion extends DataVersionBaseProperties {
|
|
4076
|
+
dataType: "uri_file";
|
|
4066
4077
|
}
|
|
4067
4078
|
|
|
4068
4079
|
// @public (undocumented)
|
|
@@ -4075,6 +4086,7 @@ export interface UriFileJobOutput extends AssetJobOutput, JobOutput {
|
|
|
4075
4086
|
|
|
4076
4087
|
// @public
|
|
4077
4088
|
export interface UriFolderDataVersion extends DataVersionBaseProperties {
|
|
4089
|
+
dataType: "uri_folder";
|
|
4078
4090
|
}
|
|
4079
4091
|
|
|
4080
4092
|
// @public (undocumented)
|
|
@@ -104,7 +104,7 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient {
|
|
|
104
104
|
credential: credentials
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
const packageDetails = `azsdk-js-arm-machinelearning/
|
|
107
|
+
const packageDetails = `azsdk-js-arm-machinelearning/2.0.1`;
|
|
108
108
|
const userAgentPrefix =
|
|
109
109
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
110
110
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -124,27 +124,34 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient {
|
|
|
124
124
|
};
|
|
125
125
|
super(optionsWithDefaults);
|
|
126
126
|
|
|
127
|
+
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
127
128
|
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
128
129
|
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
|
129
|
-
|
|
130
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
130
131
|
(pipelinePolicy) =>
|
|
131
132
|
pipelinePolicy.name ===
|
|
132
133
|
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
133
134
|
);
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
135
|
+
}
|
|
136
|
+
if (
|
|
137
|
+
!options ||
|
|
138
|
+
!options.pipeline ||
|
|
139
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
140
|
+
!bearerTokenAuthenticationPolicyFound
|
|
141
|
+
) {
|
|
142
|
+
this.pipeline.removePolicy({
|
|
143
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
144
|
+
});
|
|
145
|
+
this.pipeline.addPolicy(
|
|
146
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
147
|
+
credential: credentials,
|
|
148
|
+
scopes: `${optionsWithDefaults.credentialScopes}`,
|
|
149
|
+
challengeCallbacks: {
|
|
150
|
+
authorizeRequestOnChallenge:
|
|
151
|
+
coreClient.authorizeRequestOnClaimChallenge
|
|
152
|
+
}
|
|
153
|
+
})
|
|
154
|
+
);
|
|
148
155
|
}
|
|
149
156
|
// Parameter assignments
|
|
150
157
|
this.subscriptionId = subscriptionId;
|
package/src/models/index.ts
CHANGED
|
@@ -3105,12 +3105,17 @@ export interface OnlineDeployment extends TrackedResource {
|
|
|
3105
3105
|
|
|
3106
3106
|
/** Properties specific to a KubernetesOnlineDeployment. */
|
|
3107
3107
|
export interface KubernetesOnlineDeployment extends OnlineDeploymentProperties {
|
|
3108
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
3109
|
+
endpointComputeType: "Kubernetes";
|
|
3108
3110
|
/** The resource requirements for the container (cpu and memory). */
|
|
3109
3111
|
containerResourceRequirements?: ContainerResourceRequirements;
|
|
3110
3112
|
}
|
|
3111
3113
|
|
|
3112
3114
|
/** Properties specific to a ManagedOnlineDeployment. */
|
|
3113
|
-
export interface ManagedOnlineDeployment extends OnlineDeploymentProperties {
|
|
3115
|
+
export interface ManagedOnlineDeployment extends OnlineDeploymentProperties {
|
|
3116
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
3117
|
+
endpointComputeType: "Managed";
|
|
3118
|
+
}
|
|
3114
3119
|
|
|
3115
3120
|
/** Container for code asset versions. */
|
|
3116
3121
|
export interface CodeContainerProperties extends AssetContainer {}
|
|
@@ -3195,6 +3200,8 @@ export interface ModelVersionProperties extends AssetBase {
|
|
|
3195
3200
|
|
|
3196
3201
|
/** Azure Blob datastore configuration. */
|
|
3197
3202
|
export interface AzureBlobDatastore extends DatastoreProperties {
|
|
3203
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
3204
|
+
datastoreType: "AzureBlob";
|
|
3198
3205
|
/** Storage account name. */
|
|
3199
3206
|
accountName?: string;
|
|
3200
3207
|
/** Storage account container name. */
|
|
@@ -3209,6 +3216,8 @@ export interface AzureBlobDatastore extends DatastoreProperties {
|
|
|
3209
3216
|
|
|
3210
3217
|
/** Azure Data Lake Gen1 datastore configuration. */
|
|
3211
3218
|
export interface AzureDataLakeGen1Datastore extends DatastoreProperties {
|
|
3219
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
3220
|
+
datastoreType: "AzureDataLakeGen1";
|
|
3212
3221
|
/** Indicates which identity to use to authenticate service data access to customer's storage. */
|
|
3213
3222
|
serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity;
|
|
3214
3223
|
/** [Required] Azure Data Lake store name. */
|
|
@@ -3217,6 +3226,8 @@ export interface AzureDataLakeGen1Datastore extends DatastoreProperties {
|
|
|
3217
3226
|
|
|
3218
3227
|
/** Azure Data Lake Gen2 datastore configuration. */
|
|
3219
3228
|
export interface AzureDataLakeGen2Datastore extends DatastoreProperties {
|
|
3229
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
3230
|
+
datastoreType: "AzureDataLakeGen2";
|
|
3220
3231
|
/** [Required] Storage account name. */
|
|
3221
3232
|
accountName: string;
|
|
3222
3233
|
/** Azure cloud endpoint for the storage account. */
|
|
@@ -3231,6 +3242,8 @@ export interface AzureDataLakeGen2Datastore extends DatastoreProperties {
|
|
|
3231
3242
|
|
|
3232
3243
|
/** Azure File datastore configuration. */
|
|
3233
3244
|
export interface AzureFileDatastore extends DatastoreProperties {
|
|
3245
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
3246
|
+
datastoreType: "AzureFile";
|
|
3234
3247
|
/** [Required] Storage account name. */
|
|
3235
3248
|
accountName: string;
|
|
3236
3249
|
/** Azure cloud endpoint for the storage account. */
|
|
@@ -3245,6 +3258,8 @@ export interface AzureFileDatastore extends DatastoreProperties {
|
|
|
3245
3258
|
|
|
3246
3259
|
/** Command job definition. */
|
|
3247
3260
|
export interface CommandJob extends JobBaseProperties {
|
|
3261
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
3262
|
+
jobType: "Command";
|
|
3248
3263
|
/** ARM resource ID of the code asset. */
|
|
3249
3264
|
codeId?: string;
|
|
3250
3265
|
/** [Required] The command to execute on startup of the job. eg. "python train.py" */
|
|
@@ -3272,6 +3287,8 @@ export interface CommandJob extends JobBaseProperties {
|
|
|
3272
3287
|
|
|
3273
3288
|
/** Pipeline Job definition: defines generic to MFE attributes. */
|
|
3274
3289
|
export interface PipelineJob extends JobBaseProperties {
|
|
3290
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
3291
|
+
jobType: "Pipeline";
|
|
3275
3292
|
/** Inputs for the pipeline job. */
|
|
3276
3293
|
inputs?: { [propertyName: string]: JobInputUnion | null };
|
|
3277
3294
|
/** Jobs construct the Pipeline Job. */
|
|
@@ -3284,6 +3301,8 @@ export interface PipelineJob extends JobBaseProperties {
|
|
|
3284
3301
|
|
|
3285
3302
|
/** Sweep job definition. */
|
|
3286
3303
|
export interface SweepJob extends JobBaseProperties {
|
|
3304
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
3305
|
+
jobType: "Sweep";
|
|
3287
3306
|
/** Early termination policies enable canceling poor-performing runs before they complete */
|
|
3288
3307
|
earlyTermination?: EarlyTerminationPolicyUnion;
|
|
3289
3308
|
/** Mapping of input data bindings used in the job. */
|
|
@@ -3304,15 +3323,23 @@ export interface SweepJob extends JobBaseProperties {
|
|
|
3304
3323
|
|
|
3305
3324
|
/** MLTable data definition */
|
|
3306
3325
|
export interface MLTableData extends DataVersionBaseProperties {
|
|
3326
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
3327
|
+
dataType: "mltable";
|
|
3307
3328
|
/** Uris referenced in the MLTable definition (required for lineage) */
|
|
3308
3329
|
referencedUris?: string[];
|
|
3309
3330
|
}
|
|
3310
3331
|
|
|
3311
3332
|
/** uri-file data version entity */
|
|
3312
|
-
export interface UriFileDataVersion extends DataVersionBaseProperties {
|
|
3333
|
+
export interface UriFileDataVersion extends DataVersionBaseProperties {
|
|
3334
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
3335
|
+
dataType: "uri_file";
|
|
3336
|
+
}
|
|
3313
3337
|
|
|
3314
3338
|
/** uri-folder data version entity */
|
|
3315
|
-
export interface UriFolderDataVersion extends DataVersionBaseProperties {
|
|
3339
|
+
export interface UriFolderDataVersion extends DataVersionBaseProperties {
|
|
3340
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
3341
|
+
dataType: "uri_folder";
|
|
3342
|
+
}
|
|
3316
3343
|
|
|
3317
3344
|
/** Defines headers for Workspaces_diagnose operation. */
|
|
3318
3345
|
export interface WorkspacesDiagnoseHeaders {
|
package/src/models/mappers.ts
CHANGED
|
@@ -8135,9 +8135,9 @@ export const KubernetesOnlineDeployment: coreClient.CompositeMapper = {
|
|
|
8135
8135
|
type: {
|
|
8136
8136
|
name: "Composite",
|
|
8137
8137
|
className: "KubernetesOnlineDeployment",
|
|
8138
|
-
uberParent: "
|
|
8138
|
+
uberParent: "OnlineDeploymentProperties",
|
|
8139
8139
|
polymorphicDiscriminator:
|
|
8140
|
-
|
|
8140
|
+
OnlineDeploymentProperties.type.polymorphicDiscriminator,
|
|
8141
8141
|
modelProperties: {
|
|
8142
8142
|
...OnlineDeploymentProperties.type.modelProperties,
|
|
8143
8143
|
containerResourceRequirements: {
|
|
@@ -8156,9 +8156,9 @@ export const ManagedOnlineDeployment: coreClient.CompositeMapper = {
|
|
|
8156
8156
|
type: {
|
|
8157
8157
|
name: "Composite",
|
|
8158
8158
|
className: "ManagedOnlineDeployment",
|
|
8159
|
-
uberParent: "
|
|
8159
|
+
uberParent: "OnlineDeploymentProperties",
|
|
8160
8160
|
polymorphicDiscriminator:
|
|
8161
|
-
|
|
8161
|
+
OnlineDeploymentProperties.type.polymorphicDiscriminator,
|
|
8162
8162
|
modelProperties: {
|
|
8163
8163
|
...OnlineDeploymentProperties.type.modelProperties
|
|
8164
8164
|
}
|
|
@@ -8262,7 +8262,7 @@ export const DataVersionBaseProperties: coreClient.CompositeMapper = {
|
|
|
8262
8262
|
type: {
|
|
8263
8263
|
name: "Composite",
|
|
8264
8264
|
className: "DataVersionBaseProperties",
|
|
8265
|
-
uberParent: "
|
|
8265
|
+
uberParent: "AssetBase",
|
|
8266
8266
|
polymorphicDiscriminator: {
|
|
8267
8267
|
serializedName: "dataType",
|
|
8268
8268
|
clientName: "dataType"
|
|
@@ -8383,8 +8383,8 @@ export const AzureBlobDatastore: coreClient.CompositeMapper = {
|
|
|
8383
8383
|
type: {
|
|
8384
8384
|
name: "Composite",
|
|
8385
8385
|
className: "AzureBlobDatastore",
|
|
8386
|
-
uberParent: "
|
|
8387
|
-
polymorphicDiscriminator:
|
|
8386
|
+
uberParent: "DatastoreProperties",
|
|
8387
|
+
polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator,
|
|
8388
8388
|
modelProperties: {
|
|
8389
8389
|
...DatastoreProperties.type.modelProperties,
|
|
8390
8390
|
accountName: {
|
|
@@ -8430,8 +8430,8 @@ export const AzureDataLakeGen1Datastore: coreClient.CompositeMapper = {
|
|
|
8430
8430
|
type: {
|
|
8431
8431
|
name: "Composite",
|
|
8432
8432
|
className: "AzureDataLakeGen1Datastore",
|
|
8433
|
-
uberParent: "
|
|
8434
|
-
polymorphicDiscriminator:
|
|
8433
|
+
uberParent: "DatastoreProperties",
|
|
8434
|
+
polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator,
|
|
8435
8435
|
modelProperties: {
|
|
8436
8436
|
...DatastoreProperties.type.modelProperties,
|
|
8437
8437
|
serviceDataAccessAuthIdentity: {
|
|
@@ -8459,8 +8459,8 @@ export const AzureDataLakeGen2Datastore: coreClient.CompositeMapper = {
|
|
|
8459
8459
|
type: {
|
|
8460
8460
|
name: "Composite",
|
|
8461
8461
|
className: "AzureDataLakeGen2Datastore",
|
|
8462
|
-
uberParent: "
|
|
8463
|
-
polymorphicDiscriminator:
|
|
8462
|
+
uberParent: "DatastoreProperties",
|
|
8463
|
+
polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator,
|
|
8464
8464
|
modelProperties: {
|
|
8465
8465
|
...DatastoreProperties.type.modelProperties,
|
|
8466
8466
|
accountName: {
|
|
@@ -8512,8 +8512,8 @@ export const AzureFileDatastore: coreClient.CompositeMapper = {
|
|
|
8512
8512
|
type: {
|
|
8513
8513
|
name: "Composite",
|
|
8514
8514
|
className: "AzureFileDatastore",
|
|
8515
|
-
uberParent: "
|
|
8516
|
-
polymorphicDiscriminator:
|
|
8515
|
+
uberParent: "DatastoreProperties",
|
|
8516
|
+
polymorphicDiscriminator: DatastoreProperties.type.polymorphicDiscriminator,
|
|
8517
8517
|
modelProperties: {
|
|
8518
8518
|
...DatastoreProperties.type.modelProperties,
|
|
8519
8519
|
accountName: {
|
|
@@ -8565,8 +8565,8 @@ export const CommandJob: coreClient.CompositeMapper = {
|
|
|
8565
8565
|
type: {
|
|
8566
8566
|
name: "Composite",
|
|
8567
8567
|
className: "CommandJob",
|
|
8568
|
-
uberParent: "
|
|
8569
|
-
polymorphicDiscriminator:
|
|
8568
|
+
uberParent: "JobBaseProperties",
|
|
8569
|
+
polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator,
|
|
8570
8570
|
modelProperties: {
|
|
8571
8571
|
...JobBaseProperties.type.modelProperties,
|
|
8572
8572
|
codeId: {
|
|
@@ -8660,8 +8660,8 @@ export const PipelineJob: coreClient.CompositeMapper = {
|
|
|
8660
8660
|
type: {
|
|
8661
8661
|
name: "Composite",
|
|
8662
8662
|
className: "PipelineJob",
|
|
8663
|
-
uberParent: "
|
|
8664
|
-
polymorphicDiscriminator:
|
|
8663
|
+
uberParent: "JobBaseProperties",
|
|
8664
|
+
polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator,
|
|
8665
8665
|
modelProperties: {
|
|
8666
8666
|
...JobBaseProperties.type.modelProperties,
|
|
8667
8667
|
inputs: {
|
|
@@ -8707,8 +8707,8 @@ export const SweepJob: coreClient.CompositeMapper = {
|
|
|
8707
8707
|
type: {
|
|
8708
8708
|
name: "Composite",
|
|
8709
8709
|
className: "SweepJob",
|
|
8710
|
-
uberParent: "
|
|
8711
|
-
polymorphicDiscriminator:
|
|
8710
|
+
uberParent: "JobBaseProperties",
|
|
8711
|
+
polymorphicDiscriminator: JobBaseProperties.type.polymorphicDiscriminator,
|
|
8712
8712
|
modelProperties: {
|
|
8713
8713
|
...JobBaseProperties.type.modelProperties,
|
|
8714
8714
|
earlyTermination: {
|
|
@@ -8779,8 +8779,9 @@ export const MLTableData: coreClient.CompositeMapper = {
|
|
|
8779
8779
|
type: {
|
|
8780
8780
|
name: "Composite",
|
|
8781
8781
|
className: "MLTableData",
|
|
8782
|
-
uberParent: "
|
|
8783
|
-
polymorphicDiscriminator:
|
|
8782
|
+
uberParent: "DataVersionBaseProperties",
|
|
8783
|
+
polymorphicDiscriminator:
|
|
8784
|
+
DataVersionBaseProperties.type.polymorphicDiscriminator,
|
|
8784
8785
|
modelProperties: {
|
|
8785
8786
|
...DataVersionBaseProperties.type.modelProperties,
|
|
8786
8787
|
referencedUris: {
|
|
@@ -8804,8 +8805,9 @@ export const UriFileDataVersion: coreClient.CompositeMapper = {
|
|
|
8804
8805
|
type: {
|
|
8805
8806
|
name: "Composite",
|
|
8806
8807
|
className: "UriFileDataVersion",
|
|
8807
|
-
uberParent: "
|
|
8808
|
-
polymorphicDiscriminator:
|
|
8808
|
+
uberParent: "DataVersionBaseProperties",
|
|
8809
|
+
polymorphicDiscriminator:
|
|
8810
|
+
DataVersionBaseProperties.type.polymorphicDiscriminator,
|
|
8809
8811
|
modelProperties: {
|
|
8810
8812
|
...DataVersionBaseProperties.type.modelProperties
|
|
8811
8813
|
}
|
|
@@ -8817,8 +8819,9 @@ export const UriFolderDataVersion: coreClient.CompositeMapper = {
|
|
|
8817
8819
|
type: {
|
|
8818
8820
|
name: "Composite",
|
|
8819
8821
|
className: "UriFolderDataVersion",
|
|
8820
|
-
uberParent: "
|
|
8821
|
-
polymorphicDiscriminator:
|
|
8822
|
+
uberParent: "DataVersionBaseProperties",
|
|
8823
|
+
polymorphicDiscriminator:
|
|
8824
|
+
DataVersionBaseProperties.type.polymorphicDiscriminator,
|
|
8822
8825
|
modelProperties: {
|
|
8823
8826
|
...DataVersionBaseProperties.type.modelProperties
|
|
8824
8827
|
}
|
|
@@ -9376,17 +9379,17 @@ export let discriminators = {
|
|
|
9376
9379
|
"JobInput.literal": LiteralJobInput,
|
|
9377
9380
|
"JobLimits.Command": CommandJobLimits,
|
|
9378
9381
|
"JobLimits.Sweep": SweepJobLimits,
|
|
9379
|
-
"
|
|
9380
|
-
"
|
|
9381
|
-
"
|
|
9382
|
-
"
|
|
9383
|
-
"
|
|
9384
|
-
"
|
|
9385
|
-
"
|
|
9386
|
-
"
|
|
9387
|
-
"
|
|
9388
|
-
"
|
|
9389
|
-
"
|
|
9390
|
-
"
|
|
9391
|
-
"
|
|
9382
|
+
"OnlineDeploymentProperties.Kubernetes": KubernetesOnlineDeployment,
|
|
9383
|
+
"OnlineDeploymentProperties.Managed": ManagedOnlineDeployment,
|
|
9384
|
+
"AssetBase.DataVersionBaseProperties": DataVersionBaseProperties,
|
|
9385
|
+
"DatastoreProperties.AzureBlob": AzureBlobDatastore,
|
|
9386
|
+
"DatastoreProperties.AzureDataLakeGen1": AzureDataLakeGen1Datastore,
|
|
9387
|
+
"DatastoreProperties.AzureDataLakeGen2": AzureDataLakeGen2Datastore,
|
|
9388
|
+
"DatastoreProperties.AzureFile": AzureFileDatastore,
|
|
9389
|
+
"JobBaseProperties.Command": CommandJob,
|
|
9390
|
+
"JobBaseProperties.Pipeline": PipelineJob,
|
|
9391
|
+
"JobBaseProperties.Sweep": SweepJob,
|
|
9392
|
+
"DataVersionBaseProperties.mltable": MLTableData,
|
|
9393
|
+
"DataVersionBaseProperties.uri_file": UriFileDataVersion,
|
|
9394
|
+
"DataVersionBaseProperties.uri_folder": UriFolderDataVersion
|
|
9392
9395
|
};
|
|
@@ -344,6 +344,8 @@ export declare interface AutoScaleProperties {
|
|
|
344
344
|
|
|
345
345
|
/** Azure Blob datastore configuration. */
|
|
346
346
|
export declare interface AzureBlobDatastore extends DatastoreProperties {
|
|
347
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
348
|
+
datastoreType: "AzureBlob";
|
|
347
349
|
/** Storage account name. */
|
|
348
350
|
accountName?: string;
|
|
349
351
|
/** Storage account container name. */
|
|
@@ -358,6 +360,8 @@ export declare interface AzureBlobDatastore extends DatastoreProperties {
|
|
|
358
360
|
|
|
359
361
|
/** Azure Data Lake Gen1 datastore configuration. */
|
|
360
362
|
export declare interface AzureDataLakeGen1Datastore extends DatastoreProperties {
|
|
363
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
364
|
+
datastoreType: "AzureDataLakeGen1";
|
|
361
365
|
/** Indicates which identity to use to authenticate service data access to customer's storage. */
|
|
362
366
|
serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity;
|
|
363
367
|
/** [Required] Azure Data Lake store name. */
|
|
@@ -366,6 +370,8 @@ export declare interface AzureDataLakeGen1Datastore extends DatastoreProperties
|
|
|
366
370
|
|
|
367
371
|
/** Azure Data Lake Gen2 datastore configuration. */
|
|
368
372
|
export declare interface AzureDataLakeGen2Datastore extends DatastoreProperties {
|
|
373
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
374
|
+
datastoreType: "AzureDataLakeGen2";
|
|
369
375
|
/** [Required] Storage account name. */
|
|
370
376
|
accountName: string;
|
|
371
377
|
/** Azure cloud endpoint for the storage account. */
|
|
@@ -380,6 +386,8 @@ export declare interface AzureDataLakeGen2Datastore extends DatastoreProperties
|
|
|
380
386
|
|
|
381
387
|
/** Azure File datastore configuration. */
|
|
382
388
|
export declare interface AzureFileDatastore extends DatastoreProperties {
|
|
389
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
390
|
+
datastoreType: "AzureFile";
|
|
383
391
|
/** [Required] Storage account name. */
|
|
384
392
|
accountName: string;
|
|
385
393
|
/** Azure cloud endpoint for the storage account. */
|
|
@@ -1215,6 +1223,8 @@ export declare type CodeVersionsListResponse = CodeVersionResourceArmPaginatedRe
|
|
|
1215
1223
|
|
|
1216
1224
|
/** Command job definition. */
|
|
1217
1225
|
export declare interface CommandJob extends JobBaseProperties {
|
|
1226
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
1227
|
+
jobType: "Command";
|
|
1218
1228
|
/** ARM resource ID of the code asset. */
|
|
1219
1229
|
codeId?: string;
|
|
1220
1230
|
/** [Required] The command to execute on startup of the job. eg. "python train.py" */
|
|
@@ -4608,6 +4618,8 @@ export declare interface Kubernetes extends Compute, KubernetesSchema {
|
|
|
4608
4618
|
|
|
4609
4619
|
/** Properties specific to a KubernetesOnlineDeployment. */
|
|
4610
4620
|
export declare interface KubernetesOnlineDeployment extends OnlineDeploymentProperties {
|
|
4621
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
4622
|
+
endpointComputeType: "Kubernetes";
|
|
4611
4623
|
/** The resource requirements for the container (cpu and memory). */
|
|
4612
4624
|
containerResourceRequirements?: ContainerResourceRequirements;
|
|
4613
4625
|
}
|
|
@@ -4756,6 +4768,8 @@ export declare interface ManagedIdentityAuthTypeWorkspaceConnectionProperties ex
|
|
|
4756
4768
|
|
|
4757
4769
|
/** Properties specific to a ManagedOnlineDeployment. */
|
|
4758
4770
|
export declare interface ManagedOnlineDeployment extends OnlineDeploymentProperties {
|
|
4771
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
4772
|
+
endpointComputeType: "Managed";
|
|
4759
4773
|
}
|
|
4760
4774
|
|
|
4761
4775
|
/** Managed service identity (system assigned and/or user assigned identities) */
|
|
@@ -4804,6 +4818,8 @@ export declare interface MLFlowModelJobOutput extends AssetJobOutput, JobOutput
|
|
|
4804
4818
|
|
|
4805
4819
|
/** MLTable data definition */
|
|
4806
4820
|
export declare interface MLTableData extends DataVersionBaseProperties {
|
|
4821
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
4822
|
+
dataType: "mltable";
|
|
4807
4823
|
/** Uris referenced in the MLTable definition (required for lineage) */
|
|
4808
4824
|
referencedUris?: string[];
|
|
4809
4825
|
}
|
|
@@ -5963,6 +5979,8 @@ export declare interface PersonalComputeInstanceSettings {
|
|
|
5963
5979
|
|
|
5964
5980
|
/** Pipeline Job definition: defines generic to MFE attributes. */
|
|
5965
5981
|
export declare interface PipelineJob extends JobBaseProperties {
|
|
5982
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
5983
|
+
jobType: "Pipeline";
|
|
5966
5984
|
/** Inputs for the pipeline job. */
|
|
5967
5985
|
inputs?: {
|
|
5968
5986
|
[propertyName: string]: JobInputUnion | null;
|
|
@@ -6795,6 +6813,8 @@ export declare type StorageAccountType = string;
|
|
|
6795
6813
|
|
|
6796
6814
|
/** Sweep job definition. */
|
|
6797
6815
|
export declare interface SweepJob extends JobBaseProperties {
|
|
6816
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
6817
|
+
jobType: "Sweep";
|
|
6798
6818
|
/** Early termination policies enable canceling poor-performing runs before they complete */
|
|
6799
6819
|
earlyTermination?: EarlyTerminationPolicyUnion;
|
|
6800
6820
|
/** Mapping of input data bindings used in the job. */
|
|
@@ -7017,6 +7037,8 @@ export declare interface UpdateWorkspaceQuotasResult {
|
|
|
7017
7037
|
|
|
7018
7038
|
/** uri-file data version entity */
|
|
7019
7039
|
export declare interface UriFileDataVersion extends DataVersionBaseProperties {
|
|
7040
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
7041
|
+
dataType: "uri_file";
|
|
7020
7042
|
}
|
|
7021
7043
|
|
|
7022
7044
|
export declare interface UriFileJobInput extends AssetJobInput, JobInput {
|
|
@@ -7027,6 +7049,8 @@ export declare interface UriFileJobOutput extends AssetJobOutput, JobOutput {
|
|
|
7027
7049
|
|
|
7028
7050
|
/** uri-folder data version entity */
|
|
7029
7051
|
export declare interface UriFolderDataVersion extends DataVersionBaseProperties {
|
|
7052
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
7053
|
+
dataType: "uri_folder";
|
|
7030
7054
|
}
|
|
7031
7055
|
|
|
7032
7056
|
export declare interface UriFolderJobInput extends AssetJobInput, JobInput {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workspaceSkusListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/workspaceSkusListSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
import { AzureMachineLearningWorkspaces } from "@azure/arm-machinelearning";
|
|
12
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to Lists all skus with associated features
|
|
15
|
-
*
|
|
16
|
-
* @summary Lists all skus with associated features
|
|
17
|
-
* x-ms-original-file: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2021-07-01/examples/WorkspaceSku/list.json
|
|
18
|
-
*/
|
|
19
|
-
function listSkus() {
|
|
20
|
-
var e_1, _a;
|
|
21
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const subscriptionId = "{subscription-id}";
|
|
23
|
-
const credential = new DefaultAzureCredential();
|
|
24
|
-
const client = new AzureMachineLearningWorkspaces(credential, subscriptionId);
|
|
25
|
-
const resArray = new Array();
|
|
26
|
-
try {
|
|
27
|
-
for (var _b = __asyncValues(client.workspaces.listBySubscription()), _c; _c = yield _b.next(), !_c.done;) {
|
|
28
|
-
let item = _c.value;
|
|
29
|
-
resArray.push(item);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
33
|
-
finally {
|
|
34
|
-
try {
|
|
35
|
-
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
36
|
-
}
|
|
37
|
-
finally { if (e_1) throw e_1.error; }
|
|
38
|
-
}
|
|
39
|
-
console.log(resArray);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
listSkus().catch(console.error);
|
|
43
|
-
//# sourceMappingURL=workspaceSkusListSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workspaceSkusListSample.js","sourceRoot":"","sources":["../../samples-dev/workspaceSkusListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,QAAQ;;;QACrB,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,IAAA;gBAAlD,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,QAAQ,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|