forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
databricks: switching
parameters
to be a proper struct (Azure#7872)
* databricks: switching `parameters` to be a proper struct * removing the unused required field * linting * DataBricks: matching the Swagger to the API request/response * Refactor nexamples/WorkspaceCreateParameters.json - > examples/WorkspaceCreateWithParameters.json * prettier * Update 201 body * Update resourceTags * DataBricks: fixing the parameter types
- Loading branch information
1 parent
d55a706
commit 2d01cc4
Showing
5 changed files
with
357 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
155 changes: 155 additions & 0 deletions
155
...anager/Microsoft.Databricks/stable/2018-04-01/examples/WorkspaceCreateWithParameters.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg", | ||
"workspaceName": "myWorkspace", | ||
"api-version": "2018-04-01", | ||
"parameters": { | ||
"properties": { | ||
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG" | ||
}, | ||
"location": "westus" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Databricks/workspaces/myWorkspace", | ||
"type": "Microsoft.Databricks/workspaces", | ||
"location": "East US 2", | ||
"tags": null, | ||
"sku": { | ||
"name": "skuName" | ||
}, | ||
"properties": { | ||
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", | ||
"parameters": { | ||
"amlWorkspaceId": { | ||
"type": "String", | ||
"value": "11112222-3333-4444-5555-666677778888" | ||
}, | ||
"customPrivateSubnetName": { | ||
"type": "String", | ||
"value": "PrivateBob" | ||
}, | ||
"customPublicSubnetName": { | ||
"type": "String", | ||
"value": "PublicSarah" | ||
}, | ||
"customVirtualNetworkId": { | ||
"type": "String", | ||
"value": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/myNetwork" | ||
}, | ||
"enableNoPublicIp": { | ||
"type": "Bool", | ||
"value": true | ||
}, | ||
"loadBalancerBackendPoolName": { | ||
"type": "String", | ||
"value": "CustomBackendAddressPool" | ||
}, | ||
"loadBalancerId": { | ||
"type": "String", | ||
"value": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Network/loadBalancers/lb1" | ||
}, | ||
"relayNamespaceName": { | ||
"type": "String", | ||
"value": "test" | ||
}, | ||
"resourceTags": { | ||
"type": "Object", | ||
"value": { | ||
"hello": "world" | ||
} | ||
}, | ||
"storageAccountName": { | ||
"type": "String", | ||
"value": "mysa999" | ||
}, | ||
"storageAccountSkuName": { | ||
"type": "String", | ||
"value": "Standard_GRS" | ||
}, | ||
"vnetAddressPrefix": { | ||
"type": "String", | ||
"value": "10.139" | ||
} | ||
}, | ||
"provisioningState": "Created", | ||
"uiDefinitionUri": "https://path/to/workspaceCreateUiDefinition.json" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"headers": {}, | ||
"body": { | ||
"name": "myWorkspace", | ||
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Databricks/workspaces/myWorkspace", | ||
"type": "Microsoft.Databricks/workspaces", | ||
"location": "East US 2", | ||
"tags": null, | ||
"sku": { | ||
"name": "skuName" | ||
}, | ||
"properties": { | ||
"managedResourceGroupId": "/subscriptions/subid/resourceGroups/myManagedRG", | ||
"parameters": { | ||
"amlWorkspaceId": { | ||
"type": "String", | ||
"value": "11112222-3333-4444-5555-666677778888" | ||
}, | ||
"customPrivateSubnetName": { | ||
"type": "String", | ||
"value": "PrivateBob" | ||
}, | ||
"customPublicSubnetName": { | ||
"type": "String", | ||
"value": "PublicSarah" | ||
}, | ||
"customVirtualNetworkId": { | ||
"type": "String", | ||
"value": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/myNetwork" | ||
}, | ||
"enableNoPublicIp": { | ||
"type": "Bool", | ||
"value": true | ||
}, | ||
"loadBalancerBackendPoolName": { | ||
"type": "String", | ||
"value": "CustomBackendAddressPool" | ||
}, | ||
"loadBalancerId": { | ||
"type": "String", | ||
"value": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Network/loadBalancers/lb1" | ||
}, | ||
"relayNamespaceName": { | ||
"type": "String", | ||
"value": "test" | ||
}, | ||
"resourceTags": { | ||
"type": "Object", | ||
"value": { | ||
"hello": "world" | ||
} | ||
}, | ||
"storageAccountName": { | ||
"type": "String", | ||
"value": "mysa999" | ||
}, | ||
"storageAccountSkuName": { | ||
"type": "String", | ||
"value": "Standard_GRS" | ||
}, | ||
"vnetAddressPrefix": { | ||
"type": "String", | ||
"value": "10.139" | ||
} | ||
}, | ||
"provisioningState": "Created", | ||
"uiDefinitionUri": "https://path/to/workspaceCreateUiDefinition.json" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.