Skip to content

Commit

Permalink
Update workspaceRP swagger with automation result (#24333)
Browse files Browse the repository at this point in the history
* Update workspace rp swagger with automation result

rename pe definition to avoid conflict

fix

update PE name

Update connection credential

hide armid

fix more things

Fix enum issue

fix polymorphism

Update examples

Update body name and example

fix more issue

update response body

Fix

Revert "file change"

This reverts commit 4a1fdccf6eb22e1dda82d3acce8065fae171f422.

file change

Update swagger

fix errors

update format

add example for connetion list secrets api

run prettier

* Fixing more issue

* revert custom-words

* run prettier

* Update securityDefinitions

* Revert operation id

* Update description and summary.

* fix prettier issue and add description

* remove redundent object definition

* fixing swagger issue

revert PaginationParameter

* Revert back to old file with only reorder for better compare

* Revert "Revert back to old file with only reorder for better compare"

This reverts commit 8feb7d8.

* Revert connection v2 tag issue

* Add back delete op for network rule

* Add back example for the removed API

* Suppress header check caused by old design

* fix delete rule in path

* Update example error

* Update delete rule api and remove suppression
  • Loading branch information
ZhidaLiu authored Jun 14, 2023
1 parent cbf6b2d commit 513739d
Show file tree
Hide file tree
Showing 13 changed files with 2,372 additions and 1,929 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"workspaceName": "aml-workspace-name",
"ruleName": "some_string",
"api-version": "2023-06-01-preview",
"parameters": {
"body": {
"properties": {
"type": "FQDN",
"destination": "some_string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"resourceGroupName": "test-rg",
"workspaceName": "aml-workspace-name",
"api-version": "2023-06-01-preview",
"parameters": {
"body": {
"includeSpark": false
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"privateEndpointConnectionName": "{privateEndpointConnectionName}",
"api-version": "2023-06-01-preview",
"monitor": "true",
"properties": {
"body": {
"properties": {
"privateLinkServiceConnectionState": {
"status": "Approved",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"resourceGroupName": "workspace-1234",
"workspaceName": "testworkspace",
"api-version": "2023-06-01-preview",
"parameters": {
"body": {
"location": "eastus2euap",
"identity": {
"type": "SystemAssigned,UserAssigned",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"resourceGroupName": "workspace-1234",
"workspaceName": "testworkspace",
"api-version": "2023-06-01-preview",
"parameters": {
"body": {
"value": {
"udr": {},
"nsg": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"200": {
"body": {
"userStorageKey": null,
"userStorageResourceId": "/subscriptions/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/resourceGroups/ragargeastus2euap/providers/Microsoft.Storage/storageAccounts/testdemoworkazashomr",
"userStorageArmId": "/subscriptions/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/resourceGroups/ragargeastus2euap/providers/Microsoft.Storage/storageAccounts/testdemoworkazashomr",
"appInsightsInstrumentationKey": null,
"containerRegistryCredentials": {
"location": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"resourceGroupName": "workspace-1234",
"workspaceName": "testworkspace",
"api-version": "2023-06-01-preview",
"parameters": {
"body": {
"properties": {
"friendlyName": "New friendly name",
"description": "new description",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"workspaceName": "workspace-1",
"connectionName": "connection-1",
"api-version": "2023-06-01-preview",
"parameters": {
"body": {
"properties": {
"category": "ContainerRegistry",
"expiryTime": "2024-03-15T14:30:00Z",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "test-rg",
"workspaceName": "aml-workspace-name",
"connectionName": "some_string",
"api-version": "2023-06-01-preview"
},
"responses": {
"200": {
"headers": {},
"body": {
"id": "some_string",
"name": "some_string",
"type": "some_string",
"properties": {
"authType": "AccessKey",
"credentials": {
"accessKeyId": "some_string",
"secretAccessKey": "some_string"
},
"category": "CustomKeys",
"expiryTime": "2020-01-01T00:00:00Z",
"target": "some_string",
"metadata": {}
},
"systemData": {
"createdAt": "2020-01-01T00:00:00Z",
"createdBy": "some_string",
"createdByType": "ManagedIdentity",
"lastModifiedAt": "2020-01-01T00:00:00Z",
"lastModifiedBy": "some_string",
"lastModifiedByType": "User"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "test-rg",
"workspaceName": "aml-workspace-name",
"connectionName": "some_string",
"api-version": "2023-06-01-preview",
"body": {
"properties": {
"authType": "AccessKey",
"credentials": {
"accessKeyId": "some_string",
"secretAccessKey": "some_string"
},
"category": "ADLSGen2",
"expiryTime": "2020-01-01T00:00:00Z",
"target": "some_string",
"metadata": {}
}
}
},
"responses": {
"200": {
"headers": {},
"body": {
"id": "some_string",
"name": "some_string",
"type": "some_string",
"properties": {
"authType": "AccessKey",
"credentials": {
"accessKeyId": "some_string",
"secretAccessKey": "some_string"
},
"category": "ADLSGen2",
"expiryTime": "2020-01-01T00:00:00Z",
"target": "some_string",
"metadata": {}
},
"systemData": {
"createdAt": "2020-01-01T00:00:00Z",
"createdBy": "some_string",
"createdByType": "ManagedIdentity",
"lastModifiedAt": "2020-01-01T00:00:00Z",
"lastModifiedBy": "some_string",
"lastModifiedByType": "Application"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1255,84 +1255,6 @@
},
"description": "Quota update parameters."
},
"DiagnoseRequestProperties": {
"type": "object",
"properties": {
"udr": {
"description": "Setting for diagnosing user defined routing",
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"nsg": {
"description": "Setting for diagnosing network security group",
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"resourceLock": {
"description": "Setting for diagnosing resource lock",
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"dnsResolution": {
"description": "Setting for diagnosing dns resolution",
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"storageAccount": {
"description": "Setting for diagnosing dependent storage account",
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"keyVault": {
"description": "Setting for diagnosing dependent key vault",
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"containerRegistry": {
"description": "Setting for diagnosing dependent container registry",
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"applicationInsights": {
"description": "Setting for diagnosing dependent application insights",
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"others": {
"description": "Setting for diagnosing unclassified category of problems",
"type": "object",
"additionalProperties": {
"type": "object"
}
}
}
},
"DiagnoseWorkspaceParameters": {
"type": "object",
"description": "Parameters to diagnose a workspace",
"properties": {
"value": {
"description": "Value of Parameters",
"$ref": "#/definitions/DiagnoseRequestProperties"
}
}
},
"UpdateWorkspaceQuotasResult": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit 513739d

Please sign in to comment.