Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Do Not Merge][Really To Review] add a new apis #10756

Merged
merged 12 commits into from
Sep 23, 2020
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1621,6 +1621,7 @@ tráfico
transcoding
transcodes
transcriptmoderationresult
transitivepeusages
translatortext
trendingtopics
triggeredwebjobs
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"location": "eastus",
"api-version": "2020-09-01-preview"
},
"responses": {
"200": {
"body": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"transitivePrivateEndpointsUsage": {
"totalUsage": 0
},
"transitivePrivateEndpointsQuota": 0,
"privateDnsZonesUsage": {
"totalUsage": 0
},
"privateDnsZonesQuota": 0
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"parameters": {
"subscriptionId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"resourceGroupName": "testrg123",
"workspaceName": "workspaces123",
"api-version": "2020-09-01-preview"
},
"responses": {
"200": {
"body": {
"primaryAccessKey": "vBvVhYgAGtUSewVCUv3w95p4/q5Yrsnw",
"secondaryAccessKey": "0KARRQoQHSUq1yViPWg7YFernOS"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,48 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookKeys": {
"get": {
zhaomuzhi marked this conversation as resolved.
Show resolved Hide resolved
"tags": [
"Workspaces"
],
"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",
"operationId": "Workspaces_ListNotebookKeys",
"x-ms-examples": {
"List Workspace Keys": {
"$ref": "./examples/listWorkspaceNotebookKeys.json"
}
},
"parameters": [
{
"$ref": "#/parameters/APIVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/WorkspaceNameParameter"
}
],
"responses": {
"200": {
"description": "The request was successful; the request was well-formed and received properly.",
"schema": {
"$ref": "#/definitions/NotebookListCredentialsResult"
}
},
"default": {
"description": "Error response describing why the operation failed",
"schema": {
"$ref": "#/definitions/MachineLearningServiceError"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listKeys": {
"post": {
"tags": [
Expand Down Expand Up @@ -430,6 +472,50 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/transitivepeusages": {
"get": {
"tags": [
"TransitivePEUsage"
],
"operationId": "TransitivePEUsage_Get",
"description": "Gets the current transitive private endpoint usage information as well as limits for AML resources for given subscription and location.",
"parameters": [
{
"$ref": "#/parameters/APIVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"name": "location",
"in": "path",
"required": true,
"type": "string",
"description": "The location for which resource usage is queried.",
"pattern": "^[-\\w\\._]+$"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/TransitivePEUsagesResult"
zhaomuzhi marked this conversation as resolved.
Show resolved Hide resolved
}
},
"default": {
"description": "Error response describing why the request failed.",
"schema": {
"$ref": "#/definitions/MachineLearningServiceError"
}
}
},
"x-ms-examples": {
"Get Transitive PE Usages": {
"$ref": "./examples/getTransitivePEUsages.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/locations/{location}/usages": {
"get": {
"tags": [
Expand Down Expand Up @@ -2148,6 +2234,59 @@
},
"description": "Describes AML Resource Usage."
},
"TransitivePEUsage": {
"type": "object",
"properties": {
"totalUsage": {
"readOnly": true,
"format": "int32",
"type": "integer"
}
}
},
"PrivateDNSZoneUsage": {
"type": "object",
"properties": {
"totalUsage": {
"readOnly": true,
"format": "int32",
"type": "integer"
}
}
},
"TransitivePEUsagesResult": {
"type": "object",
"description": "The transitive private endpoint usage in this location",
"properties": {
"subscriptionId": {
"readOnly": true,
"type": "string",
"description": "Subscription id that the transitive private endpoint usage is measured."
},
"transitivePrivateEndpointsUsage": {
"readOnly": true,
"description": "Transitive private endpoint usage",
"$ref": "#/definitions/TransitivePEUsage"
},
"transitivePrivateEndpointsQuota": {
"readOnly": true,
"description": "Transitive private endpoint quota that currently set",
"format": "int32",
"type": "integer"
},
"privateDnsZonesUsage": {
"readOnly": true,
"description": "Private DNS zone usage",
"$ref": "#/definitions/PrivateDNSZoneUsage"
},
"privateDnsZonesQuota": {
"readOnly": true,
"description": "Private Dns Zones quota that currently set",
"format": "int32",
"type": "integer"
}
}
},
"ListUsagesResult": {
"properties": {
"value": {
Expand Down Expand Up @@ -2646,6 +2785,17 @@
"description": "Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet.",
"x-ms-azure-resource": true
},
"NotebookListCredentialsResult": {
"type": "object",
"properties": {
"primaryAccessKey": {
"type": "string"
},
"secondaryAccessKey": {
"type": "string"
}
}
},
"ListWorkspaceKeysResult": {
"type": "object",
"properties": {
Expand Down