Skip to content

Commit

Permalink
Updated resource properties in hpcworkbench resource provider (#5174)
Browse files Browse the repository at this point in the history
* Updated properties in hpcworkbench resource provider

* Fixing spellcheck error

* Updated consortium properties

* Resolved comments

* Resolved validation errors

* Removed sku from hpcworkbench

* fixed prettier

* Fixed validation errors and created a sku object

* Removed FileUploadParameter from chamber

* Added file upload parameters definition

* Updated examples

* Added sku in instance properties
  • Loading branch information
sabherwalshruti authored Nov 3, 2021
1 parent 0b90d38 commit cc722e2
Show file tree
Hide file tree
Showing 9 changed files with 83 additions and 124 deletions.
3 changes: 3 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1664,6 +1664,9 @@ sesparse
cadl
graphservice
lmhostid
OTDS
Otds
Oidc
Burstable
phpworkloads
collectiondetails
Original file line number Diff line number Diff line change
Expand Up @@ -502,12 +502,8 @@
"AccessProfilePropertiesFormat": {
"type": "object",
"properties": {
"sku": {
"$ref": "./hpcworkbench.json#/definitions/Sku",
"description": "Gets or sets the SKU."
},
"consortiumName": {
"description": "Gets or sets the consortium name.",
"consortiumId": {
"description": "Gets or sets the consortiumId.",
"type": "string"
},
"provisioningState": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -647,18 +647,6 @@
}
},
"definitions": {
"FileUploadParameters": {
"description": "File Upload Parameters DTO.",
"type": "object",
"properties": {
"fileSize": {
"format": "int64",
"description": "Gets or sets the size of the file being uploaded.",
"type": "integer",
"example": 1073741824
}
}
},
"ChamberPageableList": {
"description": "Microsoft.Sdw.Core.ResourceMetadata.PageableList implementation specific to pageable lists of Microsoft.Sdw.Core.ResourceMetadata.AzureResource`1.",
"type": "object",
Expand All @@ -676,6 +664,18 @@
}
}
},
"FileUploadParameters": {
"description": "File Upload Parameters DTO.",
"type": "object",
"properties": {
"fileSize": {
"format": "int64",
"description": "Gets or sets the size of the file being uploaded.",
"type": "integer",
"example": 1073741824
}
}
},
"Ansys": {
"type": "object",
"description": "Ansys Common Licensing.",
Expand All @@ -685,13 +685,10 @@
"description": "Switch to show if License Service is activated."
},
"server": {
"type": "array",
"description": "License Service server.",
"items": {
"type": "string"
}
"type": "string",
"description": "License Service server."
},
"lmhostid": {
"lmhostId": {
"type": "array",
"description": "Unique identifier of HPC Workbench chamber license servers used by FlexNet Licensing Service.",
"items": {
Expand All @@ -709,13 +706,10 @@
"description": "Switch to show if License Service is activated."
},
"server": {
"type": "array",
"description": "License Service server.",
"items": {
"type": "string"
}
"type": "string",
"description": "License Service server."
},
"lmhostid": {
"lmhostId": {
"type": "array",
"description": "Unique identifier of HPC Workbench chamber license servers used by FlexNet Licensing Service.",
"items": {
Expand All @@ -740,13 +734,10 @@
"description": "Switch to show if License Service is activated"
},
"server": {
"type": "array",
"description": "License Service server.",
"items": {
"type": "string"
}
"type": "string",
"description": "License Service server."
},
"lmhostid": {
"lmhostId": {
"type": "array",
"description": "Unique identifier of HPC Workbench chamber license servers used by FlexNet Licensing Service.",
"items": {
Expand All @@ -764,11 +755,8 @@
"description": "Switch to show if License Service is activated."
},
"server": {
"type": "array",
"description": "License Service server.",
"items": {
"type": "string"
}
"type": "string",
"description": "License Service server."
},
"vmUuid": {
"type": "array",
Expand All @@ -782,17 +770,6 @@
"ChamberPropertiesFormat": {
"type": "object",
"properties": {
"sku": {
"$ref": "./hpcworkbench.json#/definitions/Sku",
"description": "Gets or sets the SKU."
},
"zones": {
"description": "Gets or sets the Zones.",
"type": "array",
"items": {
"type": "string"
}
},
"licenseServices": {
"description": "Gets or sets the license services for each EDA vendor.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,14 @@
"licenseActivated": {
"description": "The license activated.",
"type": "boolean"
},
"replyUrlEtx": {
"description": "The reply URL of ETX Server for Azure AD app.",
"type": "string"
},
"replyUrlOtds": {
"description": "The reply URL of OTDS for Azure AD app.",
"type": "string"
}
},
"description": "Etx properties."
Expand Down Expand Up @@ -662,6 +670,19 @@
}
}
},
"NetworkAcls": {
"type": "object",
"description": "Access configuration properties.",
"properties": {
"allowedAddressSpaces": {
"type": "array",
"description": "Gets or sets the AllowedAddressSpaces.",
"items": {
"type": "string"
}
}
}
},
"ConsortiumPageableList": {
"description": "Microsoft.Sdw.Core.ResourceMetadata.PageableList implementation specific to pageable lists of Microsoft.Sdw.Core.ResourceMetadata.AzureResource`1.",
"type": "object",
Expand All @@ -682,58 +703,6 @@
"ConsortiumPropertiesFormat": {
"type": "object",
"properties": {
"sku": {
"description": "Gets or sets the SKU.",
"type": "string"
},
"kind": {
"description": "Gets or sets the Kind.",
"type": "string"
},
"managedBy": {
"description": "Gets or sets the Managed By value.",
"type": "string"
},
"zones": {
"description": "Gets or sets the Zones.",
"type": "array",
"items": {
"type": "string"
}
},
"plan": {
"description": "Gets or sets the Plan.",
"type": "object"
},
"identity": {
"description": "Gets or sets the Identity.",
"type": "object"
},
"vmSize": {
"description": "Gets or sets the VmSize.",
"type": "string"
},
"licenseKey": {
"x-ms-secret": true,
"description": "Value of License Key",
"readOnly": true,
"type": "string"
},
"allowedPublicIps": {
"description": "Gets or sets the AllowedPublicIps.",
"type": "array",
"items": {
"type": "string"
}
},
"gatewayVnetId": {
"description": "Specifies the resource id of the gateway vnet.",
"type": "string"
},
"userInterfaceMode": {
"description": "Gets or sets the UserInterfaceMode.",
"type": "string"
},
"accessConfigurations": {
"type": "object",
"items": {
Expand All @@ -748,6 +717,13 @@
},
"description": "Gets or sets the Remote Desktop."
},
"networkAcls": {
"type": "object",
"items": {
"$ref": "#/definitions/NetworkAcls"
},
"description": "Specifies set of source IP address ranges to allow access the HPC Workbench instance."
},
"provisioningState": {
"$ref": "./hpcworkbench.json#/definitions/ProvisioningState",
"description": "Gets the status of the consortium at the time the operation was called"
Expand Down Expand Up @@ -777,7 +753,8 @@
"description": "License Key Parameters",
"properties": {
"licenseKey": {
"description": "Gets or sets LicenseKey",
"x-ms-secret": true,
"description": "Value of License Key",
"type": "string"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"properties": {
"location": "Central US",
"properties": {
"consortiumName": "test-consortium"
"consortiumId": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/resourceGroup/providers/Microsoft.HpcWorkbench/instances/test-instance/consortiums/test-consortium"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"properties": {
"location": "Central US",
"properties": {
"consortiumName": "test-consortium"
"consortiumId": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/resourceGroup/providers/Microsoft.HpcWorkbench/instances/test-instance/consortiums/test-consortium"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"properties": {
"location": "Central US",
"properties": {
"consortiumName": "test-consortium"
"consortiumId": "/subscriptions/d9f252e3-8046-4707-bfbd-e5b9e6011e07/resourceGroups/resourceGroup/providers/Microsoft.HpcWorkbench/instances/test-instance/consortiums/test-consortium"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,8 @@
},
"Resource": {
"type": "object",
"description": "Common resource representation.",
"x-ms-azure-resource": true,
"properties": {
"id": {
"readOnly": true,
Expand Down Expand Up @@ -515,23 +517,26 @@
"description": "system data",
"title": "system data",
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData"
},
"sku": {
"type": "string",
"description": "Name of SKU.",
"$ref": "#/definitions/Sku"
}
},
"description": "Common resource representation.",
"x-ms-azure-resource": true
}
},
"CidrBlock": {
"description": "this is an extension of IPAddress which includes logic related to Classes Interdomain Routing (CIDR) formatted IP Addresses. \r\nE.g. 192.168.0.0/24, most people's default class C RFC 1918 IP space for their home router",
"type": "string"
},
"AppOpenIdClient": {
"AppOidc": {
"type": "object",
"properties": {
"clientId": {
"type": "string",
"description": "Client Id"
},
"clientSecret": {
"secretUri": {
"type": "string",
"description": "Client secret"
}
Expand All @@ -540,19 +545,16 @@
"InstancePropertiesFormat": {
"type": "object",
"properties": {
"sku": {
"type": "string",
"description": "Sku of the instance."
},
"environment": {
"type": "string",
"description": "Environment of the instance."
},
"instanceAddressSpace": {
"addressSpace": {
"$ref": "#/definitions/CidrBlock"
},
"appOpenIdClient": {
"$ref": "#/definitions/AppOpenIdClient"
"appOidc": {
"$ref": "#/definitions/AppOidc"
},
"sku": {
"type": "string",
"description": "Name of SKU.",
"$ref": "#/definitions/Sku"
},
"provisioningState": {
"$ref": "#/definitions/ProvisioningState",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,10 @@
"status": {
"description": "Gets or sets the status.",
"type": "string"
},
"privateIP": {
"description": "Gets or sets the private IpAddress of workload.",
"type": "string"
}
}
},
Expand Down

0 comments on commit cc722e2

Please sign in to comment.