-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[Hub Generated] Publish private branch 'RPSaaSMaster' #21518
Changes from 27 commits
a3555ec
bc64b96
e58cc5a
2ca2cef
4762484
7145849
7339054
7e5b621
0c406b2
84073cc
2353f42
4d7f8af
72cb9bd
834ad78
30a47a9
7b0bb9a
cda01c2
96d45bb
7c71b49
78f385f
e2e33ff
a583043
c876df9
46a0a28
467e644
e2dd92e
2c38812
3933dd1
0dc5b5f
70be8e1
27781a7
3884b95
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1718,6 +1718,7 @@ qnormal | |
qos | ||
Qssw | ||
Queretaro | ||
Qumulo.Storage | ||
querylogs | ||
querypool | ||
querystring | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
examples/ | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,178 @@ | ||
import "@cadl-lang/rest"; | ||
import "@azure-tools/cadl-autorest"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could you add an 'examples' folder in this folder, which should contain the subfolder for each api-version, e.g. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jianyexi - Provided cadl-project.yaml has issue at Location: specification/liftrqumulo/Qumulo.Management/cadl-project.yaml#L1 Please suggest the right value |
||
import "@cadl-lang/versioning"; | ||
import "@azure-tools/cadl-azure-resource-manager"; | ||
import "@azure-tools/cadl-providerhub"; | ||
|
||
using Cadl.Versioning; | ||
using Azure.ResourceManager; | ||
using Cadl.Http; | ||
using Cadl.Rest; | ||
|
||
@armProviderNamespace | ||
@service({title:"Qumulo.Storage"}) | ||
@versionedDependency([[Versions.v2022_06_27_preview,Azure.ResourceManager.Versions.v1_0_Preview_1], [Versions.v2022_10_12_preview,Azure.ResourceManager.Versions.v1_0_Preview_1]]) | ||
@versioned(Versions) | ||
namespace Qumulo.Storage; | ||
|
||
@doc("Storage Sku") | ||
enum StorageSku { | ||
|
||
@doc("Standard Storage Sku") | ||
"Standard", | ||
|
||
@doc("Performance Storage Sku") | ||
"Performance" | ||
} | ||
|
||
enum Versions { | ||
v2022_06_27_preview: "2022-06-27-preview", | ||
v2022_10_12_preview: "2022-10-12-preview", | ||
} | ||
|
||
@doc("Qumulo File System resource") | ||
model FileSystemResource is TrackedResource<FileSystemResourceProperties> { | ||
|
||
@key("fileSystemName") | ||
@segment("fileSystems") | ||
|
||
@doc("Name of the storage resource") | ||
name: string; | ||
|
||
...ManagedServiceIdentity | ||
} | ||
|
||
@armResourceOperations | ||
interface FileSystems extends ResourceOperations<FileSystemResource,FileSystemResourceProperties> { | ||
} | ||
|
||
@doc("Properties specific to the Qumulo File System resource") | ||
model FileSystemResourceProperties { | ||
|
||
@doc("Azure Subscription Id") | ||
subscriptionId: string; | ||
|
||
@doc("Marketplace details") | ||
marketplaceDetails? : MarketplaceDetails; | ||
|
||
@doc("Provisioning State of the resource") | ||
provisioningState: ProvisioningState; | ||
|
||
@doc("User Details") | ||
userDetails: UserDetails; | ||
|
||
@doc("Company Details") | ||
companyDetails: CompanyDetails; | ||
|
||
@doc("Delegated subnet id for Vnet injection") | ||
delegatedSubnetId: string; | ||
|
||
@doc("Qumulo admin dashboard Url") | ||
clusterLoginUrl: string; | ||
|
||
@doc("List of eNIC IPs") | ||
privateIPs: string[]; | ||
|
||
@added(Versions.v2022_10_12_preview) | ||
@doc("Initial administrator password of the resource") | ||
@secret | ||
adminPassword: string; | ||
|
||
@added(Versions.v2022_10_12_preview) | ||
@doc("Storage capacity in TB") | ||
initialCapacity: int32; | ||
|
||
@added(Versions.v2022_10_12_preview) | ||
@doc("Availability zone") | ||
availabilityZone: string; | ||
|
||
@added(Versions.v2022_10_12_preview) | ||
@doc("Storage Sku") | ||
storageSku: StorageSku; | ||
} | ||
|
||
@doc("MarketplaceDetails of Qumulo FileSystem resource") | ||
model MarketplaceDetails{ | ||
@doc("Marketplace Subscription Id") | ||
marketplaceSubscriptionId: string; | ||
|
||
@doc("Plan Id") | ||
planId: string; | ||
|
||
@doc("Offer Id") | ||
offerId: string; | ||
|
||
@doc("Publisher Id") | ||
publisherId: string; | ||
|
||
@doc("Marketplace subscription status") | ||
marketplaceSubscriptionStatus: MarketplaceSubscriptionStatus; | ||
} | ||
|
||
@doc("User Details of Qumulo FileSystem resource") | ||
model UserDetails{ | ||
|
||
@doc("First name") | ||
firstName?: string; | ||
|
||
@doc("Last name") | ||
lastName?: string; | ||
|
||
@doc("User Email") | ||
email: string; | ||
|
||
@doc("Alternate Email address") | ||
alternateEmail?: string; | ||
|
||
@doc("UPN of user") | ||
upn: string; | ||
|
||
@doc("Address of user") | ||
address?: string; | ||
|
||
@doc("Contact phone number") | ||
contactPhoneNumber?: string; | ||
} | ||
|
||
@doc("Company details of Qumulo FileSystem resource") | ||
model CompanyDetails{ | ||
|
||
@doc("Company name") | ||
companyName: string; | ||
|
||
@doc("Office Address") | ||
officeAddress?: string; | ||
|
||
@doc("Country of operation") | ||
country: string; | ||
|
||
@doc("Domain of the company") | ||
domain: string; | ||
|
||
@doc("Business of the company") | ||
business?: string; | ||
|
||
@doc("Number of Employees") | ||
numberOfEmployees: int32; | ||
} | ||
|
||
@doc("Marketplace subscription status of the storage resource") | ||
enum MarketplaceSubscriptionStatus{ | ||
"PendingFulfillmentStart", | ||
"Subscribed", | ||
"Suspended", | ||
"Unsubscribed", | ||
} | ||
|
||
@doc("Provisioning State of the storage resource") | ||
enum ProvisioningState { | ||
"Accepted", | ||
"Creating", | ||
"Updating", | ||
"Deleting", | ||
"Succeeded", | ||
"Failed", | ||
"Canceled", | ||
"Deleted", | ||
"NotSpecified" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "cadl", | ||
"version": "1.0.0", | ||
"description": "npm packages required to run cadl", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"dependencies": { | ||
"@azure-tools/cadl-autorest": "^0.16.0", | ||
"@azure-tools/cadl-azure-core": "^0.3.0", | ||
"@azure-tools/cadl-azure-resource-manager": "^0.6.0", | ||
"@azure-tools/cadl-providerhub": "^0.17.0", | ||
"@azure-tools/cadl-providerhub-controller": "^0.12.0", | ||
"@cadl-lang/openapi": "^0.9.0", | ||
"@cadl-lang/openapi3": "^0.11.0", | ||
"@cadl-lang/rest": "^0.14.0", | ||
"@cadl-lang/versioning": "^0.5.0" | ||
}, | ||
"devDependencies": {} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also needs a cadl-project.yaml to add the configuration which is needed by cadl-autorest, see the sample PR: https://github.com/Azure/azure-rest-api-specs/pull/21722/files