Skip to content

Commit cddb8f0

Browse files
authored
[Do Not Merge][Really To Review] add a new apis (#10756)
* Add Identity to createWorkpace example * change for getTransitivePEUsages * update * prettier code * add another new endpoint * address comments
1 parent 7e631da commit cddb8f0

File tree

4 files changed

+214
-0
lines changed

4 files changed

+214
-0
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,6 +1684,7 @@ tráfico
16841684
transcoding
16851685
transcodes
16861686
transcriptmoderationresult
1687+
transitivepeusages
16871688
translatortext
16881689
trendingtopics
16891690
triggeredwebjobs
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"location": "eastus",
5+
"api-version": "2020-09-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
13+
"transitivePrivateEndpointsUsage": {
14+
"totalUsage": 0
15+
},
16+
"transitivePrivateEndpointsQuota": 0,
17+
"privateDnsZonesUsage": {
18+
"totalUsage": 0
19+
},
20+
"privateDnsZonesQuota": 0
21+
}
22+
]
23+
}
24+
}
25+
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
4+
"resourceGroupName": "testrg123",
5+
"workspaceName": "workspaces123",
6+
"api-version": "2020-09-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"primaryAccessKey": "vBvVhYgAGtUSewVCUv3w95p4/q5Yrsnw",
12+
"secondaryAccessKey": "0KARRQoQHSUq1yViPWg7YFernOS"
13+
}
14+
}
15+
}
16+
}

specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2020-09-01-preview/machineLearningServices.json

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,48 @@
349349
}
350350
}
351351
},
352+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookKeys": {
353+
"post": {
354+
"tags": [
355+
"Workspaces"
356+
],
357+
"description": "Lists notebook keys associated with this workspace. The notebook keys are used for loading notebook components, which a reader should have access to. So make it a Get, not Post call",
358+
"operationId": "Workspaces_ListNotebookKeys",
359+
"x-ms-examples": {
360+
"List Workspace Keys": {
361+
"$ref": "./examples/listWorkspaceNotebookKeys.json"
362+
}
363+
},
364+
"parameters": [
365+
{
366+
"$ref": "#/parameters/APIVersionParameter"
367+
},
368+
{
369+
"$ref": "#/parameters/SubscriptionIdParameter"
370+
},
371+
{
372+
"$ref": "#/parameters/ResourceGroupNameParameter"
373+
},
374+
{
375+
"$ref": "#/parameters/WorkspaceNameParameter"
376+
}
377+
],
378+
"responses": {
379+
"200": {
380+
"description": "The request was successful; the request was well-formed and received properly.",
381+
"schema": {
382+
"$ref": "#/definitions/NotebookListCredentialsResult"
383+
}
384+
},
385+
"default": {
386+
"description": "Error response describing why the operation failed",
387+
"schema": {
388+
"$ref": "#/definitions/MachineLearningServiceError"
389+
}
390+
}
391+
}
392+
}
393+
},
352394
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listKeys": {
353395
"post": {
354396
"tags": [
@@ -430,6 +472,53 @@
430472
}
431473
}
432474
},
475+
"/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/transitivepeusages": {
476+
"get": {
477+
"tags": [
478+
"TransitivePEUsage"
479+
],
480+
"operationId": "TransitivePEUsage_Get",
481+
"description": "Gets the current transitive private endpoint usage information as well as limits for AML resources for given subscription and location.",
482+
"parameters": [
483+
{
484+
"$ref": "#/parameters/APIVersionParameter"
485+
},
486+
{
487+
"$ref": "#/parameters/SubscriptionIdParameter"
488+
},
489+
{
490+
"name": "location",
491+
"in": "path",
492+
"required": true,
493+
"type": "string",
494+
"description": "The location for which resource usage is queried.",
495+
"pattern": "^[-\\w\\._]+$"
496+
}
497+
],
498+
"responses": {
499+
"200": {
500+
"description": "OK",
501+
"schema": {
502+
"$ref": "#/definitions/ListTransitivePEUsagesResult"
503+
}
504+
},
505+
"default": {
506+
"description": "Error response describing why the request failed.",
507+
"schema": {
508+
"$ref": "#/definitions/MachineLearningServiceError"
509+
}
510+
}
511+
},
512+
"x-ms-examples": {
513+
"Get Transitive PE Usages": {
514+
"$ref": "./examples/getTransitivePEUsages.json"
515+
}
516+
},
517+
"x-ms-pageable": {
518+
"nextLinkName": null
519+
}
520+
}
521+
},
433522
"/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/usages": {
434523
"get": {
435524
"tags": [
@@ -2291,6 +2380,77 @@
22912380
},
22922381
"description": "Describes AML Resource Usage."
22932382
},
2383+
"TransitivePEUsage": {
2384+
"type": "object",
2385+
"properties": {
2386+
"totalUsage": {
2387+
"readOnly": true,
2388+
"format": "int32",
2389+
"type": "integer"
2390+
}
2391+
}
2392+
},
2393+
"PrivateDNSZoneUsage": {
2394+
"type": "object",
2395+
"properties": {
2396+
"totalUsage": {
2397+
"readOnly": true,
2398+
"format": "int32",
2399+
"type": "integer"
2400+
}
2401+
}
2402+
},
2403+
"TransitivePEUsagesResult": {
2404+
"type": "object",
2405+
"description": "The transitive private endpoint usage in this location",
2406+
"properties": {
2407+
"subscriptionId": {
2408+
"readOnly": true,
2409+
"type": "string",
2410+
"description": "Subscription id that the transitive private endpoint usage is measured."
2411+
},
2412+
"transitivePrivateEndpointsUsage": {
2413+
"readOnly": true,
2414+
"description": "Transitive private endpoint usage",
2415+
"$ref": "#/definitions/TransitivePEUsage"
2416+
},
2417+
"transitivePrivateEndpointsQuota": {
2418+
"readOnly": true,
2419+
"description": "Transitive private endpoint quota that currently set",
2420+
"format": "int32",
2421+
"type": "integer"
2422+
},
2423+
"privateDnsZonesUsage": {
2424+
"readOnly": true,
2425+
"description": "Private DNS zone usage",
2426+
"$ref": "#/definitions/PrivateDNSZoneUsage"
2427+
},
2428+
"privateDnsZonesQuota": {
2429+
"readOnly": true,
2430+
"description": "Private Dns Zones quota that currently set",
2431+
"format": "int32",
2432+
"type": "integer"
2433+
}
2434+
}
2435+
},
2436+
"ListTransitivePEUsagesResult": {
2437+
"properties": {
2438+
"value": {
2439+
"readOnly": true,
2440+
"type": "array",
2441+
"items": {
2442+
"$ref": "#/definitions/TransitivePEUsagesResult"
2443+
},
2444+
"description": "The list of transitive private endpoint usages."
2445+
},
2446+
"nextLink": {
2447+
"readOnly": true,
2448+
"type": "string",
2449+
"description": "The URI to fetch the next page of transitive private endpoint usages information. Call ListNext() with this to fetch the next page of AML resource usage information."
2450+
}
2451+
},
2452+
"description": "The List transitive private endpoint usages operation response."
2453+
},
22942454
"ListUsagesResult": {
22952455
"properties": {
22962456
"value": {
@@ -2798,6 +2958,17 @@
27982958
"description": "Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet.",
27992959
"x-ms-azure-resource": true
28002960
},
2961+
"NotebookListCredentialsResult": {
2962+
"type": "object",
2963+
"properties": {
2964+
"primaryAccessKey": {
2965+
"type": "string"
2966+
},
2967+
"secondaryAccessKey": {
2968+
"type": "string"
2969+
}
2970+
}
2971+
},
28012972
"ListWorkspaceKeysResult": {
28022973
"type": "object",
28032974
"properties": {

0 commit comments

Comments
 (0)