[mgmt] qumulo release (#30440)
https://github.com/Azure/sdk-release-request/issues/5326 breaking caused by https://github.com/Azure/azure-rest-api-specs/pull/29673
This commit is contained in:
Родитель
df20dc9902
Коммит
8136945bf9
|
@ -10427,7 +10427,7 @@ packages:
|
|||
resolve-import: 1.4.6
|
||||
rimraf: 5.0.9
|
||||
sync-content: 1.0.2
|
||||
typescript: 5.5.3
|
||||
typescript: 5.5.4
|
||||
walk-up-path: 3.0.1
|
||||
dev: false
|
||||
|
||||
|
@ -17298,7 +17298,7 @@ packages:
|
|||
dev: false
|
||||
|
||||
file:projects/arm-qumulo.tgz:
|
||||
resolution: {integrity: sha512-sk4BG9dwLB3VKSx0RY7+mmxn9Je+xB+o7FnMR2tp86iWpJAt8epMALif9XApWGDwtRWID0BL4pLL3iCSge22yQ==, tarball: file:projects/arm-qumulo.tgz}
|
||||
resolution: {integrity: sha512-16kffyI39XON8XY0eZ8FV4msa7hdHziR5iXUAOOcVXnhrlyWeIeZ8BAWNRxdwfSRDIrnWzDx+aJTQnVRKL3E2Q==, tarball: file:projects/arm-qumulo.tgz}
|
||||
name: '@rush-temp/arm-qumulo'
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
|
@ -17317,9 +17317,10 @@ packages:
|
|||
mkdirp: 3.0.1
|
||||
mocha: 10.6.0
|
||||
rimraf: 5.0.9
|
||||
ts-node: 10.9.2(@types/node@18.19.40)(typescript@5.5.3)
|
||||
ts-node: 10.9.2(@types/node@18.19.40)(typescript@5.4.5)
|
||||
tslib: 2.6.3
|
||||
typescript: 5.5.3
|
||||
tsx: 4.16.2
|
||||
typescript: 5.4.5
|
||||
uglify-js: 3.18.0
|
||||
transitivePeerDependencies:
|
||||
- '@swc/core'
|
||||
|
|
|
@ -1,15 +1,24 @@
|
|||
# Release History
|
||||
|
||||
## 1.0.1 (Unreleased)
|
||||
|
||||
|
||||
## 2.0.0 (2024-07-17)
|
||||
|
||||
### Features Added
|
||||
|
||||
- Added Interface FileSystemsCreateOrUpdateHeaders
|
||||
- Added Interface FileSystemsDeleteHeaders
|
||||
- Added Type Alias FileSystemsDeleteResponse
|
||||
- Interface MarketplaceDetails has a new optional parameter termUnit
|
||||
- Added Enum KnownMarketplaceSubscriptionStatus
|
||||
- Added Enum KnownProvisioningState
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
### Bugs Fixed
|
||||
|
||||
### Other Changes
|
||||
|
||||
- Interface FileSystemResource no longer has parameter initialCapacity
|
||||
- Interface FileSystemResourceUpdateProperties no longer has parameter clusterLoginUrl
|
||||
- Interface FileSystemResourceUpdateProperties no longer has parameter privateIPs
|
||||
- Type of parameter storageSku of interface FileSystemResource is changed from StorageSku to string
|
||||
|
||||
|
||||
## 1.0.0 (2023-05-29)
|
||||
|
||||
The package of @azure/arm-qumulo is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
|
||||
The package of @azure/arm-qumulo is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2023 Microsoft
|
||||
Copyright (c) 2024 Microsoft
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"commit": "be02493774ad6450166fa3383c109027658567b4",
|
||||
"commit": "928047803788f7377fa003a26ba2bdc2e0fcccc0",
|
||||
"readme": "specification/liftrqumulo/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\liftrqumulo\\resource-manager\\readme.md --use=@autorest/typescript@6.0.2 --generate-sample=true",
|
||||
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\liftrqumulo\\resource-manager\\readme.md --use=@autorest/typescript@6.0.23 --generate-sample=true",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.0",
|
||||
"use": "@autorest/typescript@6.0.2"
|
||||
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.11",
|
||||
"use": "@autorest/typescript@6.0.23"
|
||||
}
|
|
@ -2,5 +2,5 @@
|
|||
"AssetsRepo": "Azure/azure-sdk-assets",
|
||||
"AssetsRepoPrefixPath": "js",
|
||||
"TagPrefix": "js/liftrqumulo/arm-qumulo",
|
||||
"Tag": "js/liftrqumulo/arm-qumulo_169c4057e4"
|
||||
"Tag": "js/liftrqumulo/arm-qumulo_fb4019299b"
|
||||
}
|
||||
|
|
|
@ -3,17 +3,17 @@
|
|||
"sdk-type": "mgmt",
|
||||
"author": "Microsoft Corporation",
|
||||
"description": "A generated SDK for QumuloStorage.",
|
||||
"version": "1.0.1",
|
||||
"version": "2.0.0",
|
||||
"engines": {
|
||||
"node": ">=18.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@azure/core-lro": "^2.5.3",
|
||||
"@azure/core-lro": "^2.5.4",
|
||||
"@azure/abort-controller": "^1.0.0",
|
||||
"@azure/core-paging": "^1.2.0",
|
||||
"@azure/core-client": "^1.7.0",
|
||||
"@azure/core-auth": "^1.3.0",
|
||||
"@azure/core-rest-pipeline": "^1.8.0",
|
||||
"@azure/core-auth": "^1.6.0",
|
||||
"@azure/core-rest-pipeline": "^1.14.0",
|
||||
"tslib": "^2.2.0"
|
||||
},
|
||||
"keywords": [
|
||||
|
@ -30,21 +30,22 @@
|
|||
"devDependencies": {
|
||||
"@microsoft/api-extractor": "^7.31.1",
|
||||
"mkdirp": "^3.0.1",
|
||||
"typescript": "~5.5.3",
|
||||
"typescript": "~5.4.5",
|
||||
"uglify-js": "^3.4.9",
|
||||
"rimraf": "^5.0.5",
|
||||
"rimraf": "^5.0.0",
|
||||
"dotenv": "^16.0.0",
|
||||
"@azure/dev-tool": "^1.0.0",
|
||||
"@azure/identity": "^4.0.1",
|
||||
"@azure-tools/test-recorder": "^3.0.0",
|
||||
"@azure-tools/test-credential": "^1.0.0",
|
||||
"@azure-tools/test-credential": "^1.1.0",
|
||||
"mocha": "^10.0.0",
|
||||
"@types/mocha": "^10.0.0",
|
||||
"tsx": "^4.7.1",
|
||||
"@types/chai": "^4.2.8",
|
||||
"chai": "^4.2.0",
|
||||
"cross-env": "^7.0.2",
|
||||
"@types/node": "^18.0.0",
|
||||
"@azure/dev-tool": "^1.0.0",
|
||||
"ts-node": "^10.0.0",
|
||||
"@types/mocha": "^10.0.0"
|
||||
"ts-node": "^10.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -77,7 +78,6 @@
|
|||
"pack": "npm pack 2>&1",
|
||||
"extract-api": "dev-tool run extract-api",
|
||||
"lint": "echo skipped",
|
||||
"audit": "echo skipped",
|
||||
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
||||
"build:node": "echo skipped",
|
||||
"build:browser": "echo skipped",
|
||||
|
@ -115,4 +115,4 @@
|
|||
"disableDocsMs": true,
|
||||
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-qumulo?view=azure-node-preview"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -38,17 +38,16 @@ export interface ErrorResponse {
|
|||
|
||||
// @public
|
||||
export interface FileSystemResource extends TrackedResource {
|
||||
adminPassword: string;
|
||||
adminPassword?: string;
|
||||
availabilityZone?: string;
|
||||
clusterLoginUrl?: string;
|
||||
delegatedSubnetId: string;
|
||||
delegatedSubnetId?: string;
|
||||
identity?: ManagedServiceIdentity;
|
||||
initialCapacity: number;
|
||||
marketplaceDetails: MarketplaceDetails;
|
||||
marketplaceDetails?: MarketplaceDetails;
|
||||
privateIPs?: string[];
|
||||
readonly provisioningState?: ProvisioningState;
|
||||
storageSku: StorageSku;
|
||||
userDetails: UserDetails;
|
||||
storageSku?: string;
|
||||
userDetails?: UserDetails;
|
||||
}
|
||||
|
||||
// @public
|
||||
|
@ -68,10 +67,8 @@ export interface FileSystemResourceUpdate {
|
|||
|
||||
// @public
|
||||
export interface FileSystemResourceUpdateProperties {
|
||||
clusterLoginUrl?: string;
|
||||
delegatedSubnetId?: string;
|
||||
marketplaceDetails?: MarketplaceDetails;
|
||||
privateIPs?: string[];
|
||||
userDetails?: UserDetails;
|
||||
}
|
||||
|
||||
|
@ -79,14 +76,20 @@ export interface FileSystemResourceUpdateProperties {
|
|||
export interface FileSystems {
|
||||
beginCreateOrUpdate(resourceGroupName: string, fileSystemName: string, resource: FileSystemResource, options?: FileSystemsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<FileSystemsCreateOrUpdateResponse>, FileSystemsCreateOrUpdateResponse>>;
|
||||
beginCreateOrUpdateAndWait(resourceGroupName: string, fileSystemName: string, resource: FileSystemResource, options?: FileSystemsCreateOrUpdateOptionalParams): Promise<FileSystemsCreateOrUpdateResponse>;
|
||||
beginDelete(resourceGroupName: string, fileSystemName: string, options?: FileSystemsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
||||
beginDeleteAndWait(resourceGroupName: string, fileSystemName: string, options?: FileSystemsDeleteOptionalParams): Promise<void>;
|
||||
beginDelete(resourceGroupName: string, fileSystemName: string, options?: FileSystemsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<FileSystemsDeleteResponse>, FileSystemsDeleteResponse>>;
|
||||
beginDeleteAndWait(resourceGroupName: string, fileSystemName: string, options?: FileSystemsDeleteOptionalParams): Promise<FileSystemsDeleteResponse>;
|
||||
get(resourceGroupName: string, fileSystemName: string, options?: FileSystemsGetOptionalParams): Promise<FileSystemsGetResponse>;
|
||||
listByResourceGroup(resourceGroupName: string, options?: FileSystemsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<FileSystemResource>;
|
||||
listBySubscription(options?: FileSystemsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<FileSystemResource>;
|
||||
update(resourceGroupName: string, fileSystemName: string, properties: FileSystemResourceUpdate, options?: FileSystemsUpdateOptionalParams): Promise<FileSystemsUpdateResponse>;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface FileSystemsCreateOrUpdateHeaders {
|
||||
azureAsyncOperation?: string;
|
||||
retryAfter?: number;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface FileSystemsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
|
||||
resumeFrom?: string;
|
||||
|
@ -96,12 +99,22 @@ export interface FileSystemsCreateOrUpdateOptionalParams extends coreClient.Oper
|
|||
// @public
|
||||
export type FileSystemsCreateOrUpdateResponse = FileSystemResource;
|
||||
|
||||
// @public
|
||||
export interface FileSystemsDeleteHeaders {
|
||||
azureAsyncOperation?: string;
|
||||
location?: string;
|
||||
retryAfter?: number;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface FileSystemsDeleteOptionalParams extends coreClient.OperationOptions {
|
||||
resumeFrom?: string;
|
||||
updateIntervalInMs?: number;
|
||||
}
|
||||
|
||||
// @public
|
||||
export type FileSystemsDeleteResponse = FileSystemsDeleteHeaders;
|
||||
|
||||
// @public
|
||||
export interface FileSystemsGetOptionalParams extends coreClient.OperationOptions {
|
||||
}
|
||||
|
@ -164,10 +177,18 @@ export enum KnownCreatedByType {
|
|||
export enum KnownManagedServiceIdentityType {
|
||||
None = "None",
|
||||
SystemAssigned = "SystemAssigned",
|
||||
SystemAssignedUserAssigned = "SystemAssigned, UserAssigned",
|
||||
SystemAssignedUserAssigned = "SystemAssigned,UserAssigned",
|
||||
UserAssigned = "UserAssigned"
|
||||
}
|
||||
|
||||
// @public
|
||||
export enum KnownMarketplaceSubscriptionStatus {
|
||||
PendingFulfillmentStart = "PendingFulfillmentStart",
|
||||
Subscribed = "Subscribed",
|
||||
Suspended = "Suspended",
|
||||
Unsubscribed = "Unsubscribed"
|
||||
}
|
||||
|
||||
// @public
|
||||
export enum KnownOrigin {
|
||||
System = "system",
|
||||
|
@ -175,6 +196,18 @@ export enum KnownOrigin {
|
|||
UserSystem = "user,system"
|
||||
}
|
||||
|
||||
// @public
|
||||
export enum KnownProvisioningState {
|
||||
Accepted = "Accepted",
|
||||
Canceled = "Canceled",
|
||||
Creating = "Creating",
|
||||
Deleted = "Deleted",
|
||||
Deleting = "Deleting",
|
||||
Failed = "Failed",
|
||||
Succeeded = "Succeeded",
|
||||
Updating = "Updating"
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface ManagedServiceIdentity {
|
||||
readonly principalId?: string;
|
||||
|
@ -194,11 +227,12 @@ export interface MarketplaceDetails {
|
|||
readonly marketplaceSubscriptionStatus?: MarketplaceSubscriptionStatus;
|
||||
offerId: string;
|
||||
planId: string;
|
||||
publisherId: string;
|
||||
publisherId?: string;
|
||||
termUnit?: string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export type MarketplaceSubscriptionStatus = "PendingFulfillmentStart" | "Subscribed" | "Suspended" | "Unsubscribed";
|
||||
export type MarketplaceSubscriptionStatus = string;
|
||||
|
||||
// @public
|
||||
export interface Operation {
|
||||
|
@ -246,7 +280,7 @@ export type OperationsListResponse = OperationListResult;
|
|||
export type Origin = string;
|
||||
|
||||
// @public
|
||||
export type ProvisioningState = "Accepted" | "Creating" | "Updating" | "Deleting" | "Succeeded" | "Failed" | "Canceled" | "Deleted" | "NotSpecified";
|
||||
export type ProvisioningState = string;
|
||||
|
||||
// @public (undocumented)
|
||||
export class QumuloStorage extends coreClient.ServiceClient {
|
||||
|
@ -278,9 +312,6 @@ export interface Resource {
|
|||
readonly type?: string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export type StorageSku = "Standard" | "Performance";
|
||||
|
||||
// @public
|
||||
export interface SystemData {
|
||||
createdAt?: Date;
|
||||
|
|
|
@ -18,41 +18,41 @@ dotenv.config();
|
|||
* This sample demonstrates how to Create a FileSystemResource
|
||||
*
|
||||
* @summary Create a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2022-10-12/examples/FileSystems_CreateOrUpdate_MaximumSet_Gen.json
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_CreateOrUpdate_MaximumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsCreateOrUpdateMaximumSetGen() {
|
||||
async function fileSystemsCreateOrUpdate() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "ulseeqylxb";
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] ||
|
||||
"382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const resourceGroupName =
|
||||
process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const fileSystemName = "nauwwbfoqehgbhdsmkewoboyxeqg";
|
||||
const fileSystemName = "hfcmtgaes";
|
||||
const resource: FileSystemResource = {
|
||||
adminPassword: "ekceujoecaashtjlsgcymnrdozk",
|
||||
availabilityZone: "maseyqhlnhoiwbabcqabtedbjpip",
|
||||
clusterLoginUrl: "jjqhgevy",
|
||||
delegatedSubnetId: "neqctctqdmjezfgt",
|
||||
identity: { type: "None", userAssignedIdentities: { key4522: {} } },
|
||||
initialCapacity: 9,
|
||||
location: "przdlsmlzsszphnixq",
|
||||
adminPassword: "fakeTestSecretPlaceholder",
|
||||
availabilityZone: "eqdvbdiuwmhhzqzmksmwllpddqquwt",
|
||||
clusterLoginUrl: "ykaynsjvhihdthkkvvodjrgc",
|
||||
delegatedSubnetId: "jykmxrf",
|
||||
identity: { type: "None", userAssignedIdentities: { key7679: {} } },
|
||||
location: "pnb",
|
||||
marketplaceDetails: {
|
||||
marketplaceSubscriptionId: "ujrcqvxfnhxxheoth",
|
||||
marketplaceSubscriptionId: "xaqtkloiyovmexqhn",
|
||||
marketplaceSubscriptionStatus: "PendingFulfillmentStart",
|
||||
offerId: "eiyhbmpwgezcmzrrfoiskuxlcvwojf",
|
||||
planId: "x",
|
||||
publisherId: "wfmokfdjbwpjhz"
|
||||
offerId: "s",
|
||||
planId: "fwtpz",
|
||||
publisherId: "czxcfrwodazyaft",
|
||||
termUnit: "cfwwczmygsimcyvoclcw",
|
||||
},
|
||||
privateIPs: ["kslguxrwbwkrj"],
|
||||
provisioningState: "Accepted",
|
||||
storageSku: "Standard",
|
||||
tags: { key6565: "cgdhmupta" },
|
||||
userDetails: { email: "viptslwulnpaupfljvnjeq" }
|
||||
privateIPs: ["gzken"],
|
||||
storageSku: "yhyzby",
|
||||
tags: { key7090: "rurrdiaqp" },
|
||||
userDetails: { email: "aqsnzyroo" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
fileSystemName,
|
||||
resource
|
||||
resource,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ async function fileSystemsCreateOrUpdateMaximumSetGen() {
|
|||
* This sample demonstrates how to Create a FileSystemResource
|
||||
*
|
||||
* @summary Create a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2022-10-12/examples/FileSystems_CreateOrUpdate_MinimumSet_Gen.json
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_CreateOrUpdate_MinimumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsCreateOrUpdateMinimumSetGen() {
|
||||
const subscriptionId =
|
||||
|
@ -70,33 +70,30 @@ async function fileSystemsCreateOrUpdateMinimumSetGen() {
|
|||
process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const fileSystemName = "aaaaaaaa";
|
||||
const resource: FileSystemResource = {
|
||||
adminPassword: "ekceujoecaashtjlsgcymnrdozk",
|
||||
adminPassword: "fakeTestSecretPlaceholder",
|
||||
delegatedSubnetId: "aaaaaaaaaa",
|
||||
initialCapacity: 9,
|
||||
location: "aaaaaaaaaaaaaaaaaaaaaaaaa",
|
||||
marketplaceDetails: {
|
||||
marketplaceSubscriptionId: "aaaaaaaaaaaaa",
|
||||
marketplaceSubscriptionStatus: "PendingFulfillmentStart",
|
||||
offerId: "aaaaaaaaaaaaaaaaaaaaaaaaa",
|
||||
planId: "aaaaaa",
|
||||
publisherId: "aa"
|
||||
},
|
||||
provisioningState: "Accepted",
|
||||
storageSku: "Standard",
|
||||
userDetails: { email: "viptslwulnpaupfljvnjeq" }
|
||||
userDetails: { email: "viptslwulnpaupfljvnjeq" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
fileSystemName,
|
||||
resource
|
||||
resource,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
fileSystemsCreateOrUpdateMaximumSetGen();
|
||||
fileSystemsCreateOrUpdate();
|
||||
fileSystemsCreateOrUpdateMinimumSetGen();
|
||||
}
|
||||
|
||||
|
|
|
@ -18,19 +18,20 @@ dotenv.config();
|
|||
* This sample demonstrates how to Delete a FileSystemResource
|
||||
*
|
||||
* @summary Delete a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2022-10-12/examples/FileSystems_Delete_MaximumSet_Gen.json
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Delete_MaximumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsDeleteMaximumSetGen() {
|
||||
async function fileSystemsDelete() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "ulseeqylxb";
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] ||
|
||||
"382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const resourceGroupName =
|
||||
process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const fileSystemName = "nauwwbfoqehgbhdsmkewoboyxeqg";
|
||||
const fileSystemName = "xoschzkccroahrykedlvbbnsddq";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
fileSystemName
|
||||
fileSystemName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -39,25 +40,26 @@ async function fileSystemsDeleteMaximumSetGen() {
|
|||
* This sample demonstrates how to Delete a FileSystemResource
|
||||
*
|
||||
* @summary Delete a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2022-10-12/examples/FileSystems_Delete_MinimumSet_Gen.json
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Delete_MinimumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsDeleteMinimumSetGen() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "ulseeqylxb";
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] ||
|
||||
"382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const resourceGroupName =
|
||||
process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const fileSystemName = "nauwwbfoqehgbhdsmkewoboyxeqg";
|
||||
const fileSystemName = "jgtskkiplquyrlkaxvhdg";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
fileSystemName
|
||||
fileSystemName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
fileSystemsDeleteMaximumSetGen();
|
||||
fileSystemsDelete();
|
||||
fileSystemsDeleteMinimumSetGen();
|
||||
}
|
||||
|
||||
|
|
|
@ -18,19 +18,20 @@ dotenv.config();
|
|||
* This sample demonstrates how to Get a FileSystemResource
|
||||
*
|
||||
* @summary Get a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2022-10-12/examples/FileSystems_Get_MaximumSet_Gen.json
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Get_MaximumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsGetMaximumSetGen() {
|
||||
async function fileSystemsGet() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "ulseeqylxb";
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] ||
|
||||
"382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const resourceGroupName =
|
||||
process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const fileSystemName = "nauwwbfoqehgbhdsmkewoboyxeqg";
|
||||
const fileSystemName = "sihbehcisdqtqqyfiewiiaphgh";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.get(
|
||||
resourceGroupName,
|
||||
fileSystemName
|
||||
fileSystemName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -39,7 +40,7 @@ async function fileSystemsGetMaximumSetGen() {
|
|||
* This sample demonstrates how to Get a FileSystemResource
|
||||
*
|
||||
* @summary Get a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2022-10-12/examples/FileSystems_Get_MinimumSet_Gen.json
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Get_MinimumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsGetMinimumSetGen() {
|
||||
const subscriptionId =
|
||||
|
@ -51,13 +52,13 @@ async function fileSystemsGetMinimumSetGen() {
|
|||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.get(
|
||||
resourceGroupName,
|
||||
fileSystemName
|
||||
fileSystemName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
fileSystemsGetMaximumSetGen();
|
||||
fileSystemsGet();
|
||||
fileSystemsGetMinimumSetGen();
|
||||
}
|
||||
|
||||
|
|
|
@ -18,18 +18,19 @@ dotenv.config();
|
|||
* This sample demonstrates how to List FileSystemResource resources by resource group
|
||||
*
|
||||
* @summary List FileSystemResource resources by resource group
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2022-10-12/examples/FileSystems_ListByResourceGroup_MaximumSet_Gen.json
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_ListByResourceGroup_MaximumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsListByResourceGroupMaximumSetGen() {
|
||||
async function fileSystemsListByResourceGroup() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "ulseeqylxb";
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] ||
|
||||
"382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const resourceGroupName =
|
||||
process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fileSystems.listByResourceGroup(
|
||||
resourceGroupName
|
||||
resourceGroupName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
|
@ -40,7 +41,7 @@ async function fileSystemsListByResourceGroupMaximumSetGen() {
|
|||
* This sample demonstrates how to List FileSystemResource resources by resource group
|
||||
*
|
||||
* @summary List FileSystemResource resources by resource group
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2022-10-12/examples/FileSystems_ListByResourceGroup_MinimumSet_Gen.json
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_ListByResourceGroup_MinimumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsListByResourceGroupMinimumSetGen() {
|
||||
const subscriptionId =
|
||||
|
@ -51,7 +52,7 @@ async function fileSystemsListByResourceGroupMinimumSetGen() {
|
|||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fileSystems.listByResourceGroup(
|
||||
resourceGroupName
|
||||
resourceGroupName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
|
@ -59,7 +60,7 @@ async function fileSystemsListByResourceGroupMinimumSetGen() {
|
|||
}
|
||||
|
||||
async function main() {
|
||||
fileSystemsListByResourceGroupMaximumSetGen();
|
||||
fileSystemsListByResourceGroup();
|
||||
fileSystemsListByResourceGroupMinimumSetGen();
|
||||
}
|
||||
|
||||
|
|
|
@ -18,11 +18,12 @@ dotenv.config();
|
|||
* This sample demonstrates how to List FileSystemResource resources by subscription ID
|
||||
*
|
||||
* @summary List FileSystemResource resources by subscription ID
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2022-10-12/examples/FileSystems_ListBySubscription_MaximumSet_Gen.json
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_ListBySubscription_MaximumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsListBySubscriptionMaximumSetGen() {
|
||||
async function fileSystemsListBySubscription() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "ulseeqylxb";
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] ||
|
||||
"382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
|
@ -36,7 +37,7 @@ async function fileSystemsListBySubscriptionMaximumSetGen() {
|
|||
* This sample demonstrates how to List FileSystemResource resources by subscription ID
|
||||
*
|
||||
* @summary List FileSystemResource resources by subscription ID
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2022-10-12/examples/FileSystems_ListBySubscription_MinimumSet_Gen.json
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_ListBySubscription_MinimumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsListBySubscriptionMinimumSetGen() {
|
||||
const subscriptionId =
|
||||
|
@ -51,7 +52,7 @@ async function fileSystemsListBySubscriptionMinimumSetGen() {
|
|||
}
|
||||
|
||||
async function main() {
|
||||
fileSystemsListBySubscriptionMaximumSetGen();
|
||||
fileSystemsListBySubscription();
|
||||
fileSystemsListBySubscriptionMinimumSetGen();
|
||||
}
|
||||
|
||||
|
|
|
@ -18,37 +18,37 @@ dotenv.config();
|
|||
* This sample demonstrates how to Update a FileSystemResource
|
||||
*
|
||||
* @summary Update a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2022-10-12/examples/FileSystems_Update_MaximumSet_Gen.json
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Update_MaximumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsUpdateMaximumSetGen() {
|
||||
async function fileSystemsUpdate() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "ulseeqylxb";
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] ||
|
||||
"382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const resourceGroupName =
|
||||
process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const fileSystemName = "nauwwbfoqehgbhdsmkewoboyxeqg";
|
||||
const fileSystemName = "ahpixnvykleksjlr";
|
||||
const properties: FileSystemResourceUpdate = {
|
||||
identity: { type: "None", userAssignedIdentities: { key4522: {} } },
|
||||
identity: { type: "None", userAssignedIdentities: { key7679: {} } },
|
||||
properties: {
|
||||
clusterLoginUrl: "adabmuthwrbjshzfbo",
|
||||
delegatedSubnetId: "vjfirtaljehawmflyfianw",
|
||||
delegatedSubnetId: "bqaryqsjlackxphpmzffgoqsvm",
|
||||
marketplaceDetails: {
|
||||
marketplaceSubscriptionId: "ujrcqvxfnhxxheoth",
|
||||
marketplaceSubscriptionId: "xaqtkloiyovmexqhn",
|
||||
marketplaceSubscriptionStatus: "PendingFulfillmentStart",
|
||||
offerId: "eiyhbmpwgezcmzrrfoiskuxlcvwojf",
|
||||
planId: "x",
|
||||
publisherId: "wfmokfdjbwpjhz"
|
||||
offerId: "s",
|
||||
planId: "fwtpz",
|
||||
publisherId: "czxcfrwodazyaft",
|
||||
termUnit: "cfwwczmygsimcyvoclcw",
|
||||
},
|
||||
privateIPs: ["eugjqbaoucgjsopzfrq"],
|
||||
userDetails: { email: "aa" }
|
||||
userDetails: { email: "aqsnzyroo" },
|
||||
},
|
||||
tags: { key7534: "jsgqvqbagquvxowbrkanyhzvo" }
|
||||
tags: { key357: "ztkkvhfia" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.update(
|
||||
resourceGroupName,
|
||||
fileSystemName,
|
||||
properties
|
||||
properties,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ async function fileSystemsUpdateMaximumSetGen() {
|
|||
* This sample demonstrates how to Update a FileSystemResource
|
||||
*
|
||||
* @summary Update a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2022-10-12/examples/FileSystems_Update_MinimumSet_Gen.json
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Update_MinimumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsUpdateMinimumSetGen() {
|
||||
const subscriptionId =
|
||||
|
@ -71,13 +71,13 @@ async function fileSystemsUpdateMinimumSetGen() {
|
|||
const result = await client.fileSystems.update(
|
||||
resourceGroupName,
|
||||
fileSystemName,
|
||||
properties
|
||||
properties,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
fileSystemsUpdateMaximumSetGen();
|
||||
fileSystemsUpdate();
|
||||
fileSystemsUpdateMinimumSetGen();
|
||||
}
|
||||
|
||||
|
|
|
@ -18,9 +18,9 @@ dotenv.config();
|
|||
* This sample demonstrates how to List the operations for the provider
|
||||
*
|
||||
* @summary List the operations for the provider
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2022-10-12/examples/Operations_List_MaximumSet_Gen.json
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/Operations_List_MaximumSet_Gen.json
|
||||
*/
|
||||
async function operationsListMaximumSetGen() {
|
||||
async function operationsList() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
|
@ -37,7 +37,7 @@ async function operationsListMaximumSetGen() {
|
|||
* This sample demonstrates how to List the operations for the provider
|
||||
*
|
||||
* @summary List the operations for the provider
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2022-10-12/examples/Operations_List_MinimumSet_Gen.json
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/Operations_List_MinimumSet_Gen.json
|
||||
*/
|
||||
async function operationsListMinimumSetGen() {
|
||||
const subscriptionId =
|
||||
|
@ -53,7 +53,7 @@ async function operationsListMinimumSetGen() {
|
|||
}
|
||||
|
||||
async function main() {
|
||||
operationsListMaximumSetGen();
|
||||
operationsList();
|
||||
operationsListMinimumSetGen();
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,62 @@
|
|||
# client library samples for JavaScript
|
||||
|
||||
These sample programs show how to use the JavaScript client libraries for in some common scenarios.
|
||||
|
||||
| **File Name** | **Description** |
|
||||
| ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| [fileSystemsCreateOrUpdateSample.js][filesystemscreateorupdatesample] | Create a FileSystemResource x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_CreateOrUpdate_MaximumSet_Gen.json |
|
||||
| [fileSystemsDeleteSample.js][filesystemsdeletesample] | Delete a FileSystemResource x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Delete_MaximumSet_Gen.json |
|
||||
| [fileSystemsGetSample.js][filesystemsgetsample] | Get a FileSystemResource x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Get_MaximumSet_Gen.json |
|
||||
| [fileSystemsListByResourceGroupSample.js][filesystemslistbyresourcegroupsample] | List FileSystemResource resources by resource group x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_ListByResourceGroup_MaximumSet_Gen.json |
|
||||
| [fileSystemsListBySubscriptionSample.js][filesystemslistbysubscriptionsample] | List FileSystemResource resources by subscription ID x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_ListBySubscription_MaximumSet_Gen.json |
|
||||
| [fileSystemsUpdateSample.js][filesystemsupdatesample] | Update a FileSystemResource x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Update_MaximumSet_Gen.json |
|
||||
| [operationsListSample.js][operationslistsample] | List the operations for the provider x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/Operations_List_MaximumSet_Gen.json |
|
||||
|
||||
## Prerequisites
|
||||
|
||||
The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule).
|
||||
|
||||
You need [an Azure subscription][freesub] to run these sample programs.
|
||||
|
||||
Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function.
|
||||
|
||||
Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package].
|
||||
|
||||
## Setup
|
||||
|
||||
To run the samples using the published version of the package:
|
||||
|
||||
1. Install the dependencies using `npm`:
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically.
|
||||
|
||||
3. Run whichever samples you like (note that some samples may require additional setup, see the table above):
|
||||
|
||||
```bash
|
||||
node fileSystemsCreateOrUpdateSample.js
|
||||
```
|
||||
|
||||
Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform):
|
||||
|
||||
```bash
|
||||
npx cross-env LIFTRQUMULO_SUBSCRIPTION_ID="<liftrqumulo subscription id>" LIFTRQUMULO_RESOURCE_GROUP="<liftrqumulo resource group>" node fileSystemsCreateOrUpdateSample.js
|
||||
```
|
||||
|
||||
## Next Steps
|
||||
|
||||
Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.
|
||||
|
||||
[filesystemscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/liftrqumulo/arm-qumulo/samples/v2/javascript/fileSystemsCreateOrUpdateSample.js
|
||||
[filesystemsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/liftrqumulo/arm-qumulo/samples/v2/javascript/fileSystemsDeleteSample.js
|
||||
[filesystemsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/liftrqumulo/arm-qumulo/samples/v2/javascript/fileSystemsGetSample.js
|
||||
[filesystemslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/liftrqumulo/arm-qumulo/samples/v2/javascript/fileSystemsListByResourceGroupSample.js
|
||||
[filesystemslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/liftrqumulo/arm-qumulo/samples/v2/javascript/fileSystemsListBySubscriptionSample.js
|
||||
[filesystemsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/liftrqumulo/arm-qumulo/samples/v2/javascript/fileSystemsUpdateSample.js
|
||||
[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/liftrqumulo/arm-qumulo/samples/v2/javascript/operationsListSample.js
|
||||
[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-qumulo?view=azure-node-preview
|
||||
[freesub]: https://azure.microsoft.com/free/
|
||||
[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/liftrqumulo/arm-qumulo/README.md
|
|
@ -0,0 +1,94 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { QumuloStorage } = require("@azure/arm-qumulo");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a FileSystemResource
|
||||
*
|
||||
* @summary Create a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_CreateOrUpdate_MaximumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsCreateOrUpdate() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const resourceGroupName = process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const fileSystemName = "hfcmtgaes";
|
||||
const resource = {
|
||||
adminPassword: "fakeTestSecretPlaceholder",
|
||||
availabilityZone: "eqdvbdiuwmhhzqzmksmwllpddqquwt",
|
||||
clusterLoginUrl: "ykaynsjvhihdthkkvvodjrgc",
|
||||
delegatedSubnetId: "jykmxrf",
|
||||
identity: { type: "None", userAssignedIdentities: { key7679: {} } },
|
||||
location: "pnb",
|
||||
marketplaceDetails: {
|
||||
marketplaceSubscriptionId: "xaqtkloiyovmexqhn",
|
||||
marketplaceSubscriptionStatus: "PendingFulfillmentStart",
|
||||
offerId: "s",
|
||||
planId: "fwtpz",
|
||||
publisherId: "czxcfrwodazyaft",
|
||||
termUnit: "cfwwczmygsimcyvoclcw",
|
||||
},
|
||||
privateIPs: ["gzken"],
|
||||
storageSku: "yhyzby",
|
||||
tags: { key7090: "rurrdiaqp" },
|
||||
userDetails: { email: "aqsnzyroo" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
fileSystemName,
|
||||
resource,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a FileSystemResource
|
||||
*
|
||||
* @summary Create a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_CreateOrUpdate_MinimumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsCreateOrUpdateMinimumSetGen() {
|
||||
const subscriptionId = process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "aaaaaaaaaaaaaaaaaaaaaaaa";
|
||||
const resourceGroupName = process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const fileSystemName = "aaaaaaaa";
|
||||
const resource = {
|
||||
adminPassword: "fakeTestSecretPlaceholder",
|
||||
delegatedSubnetId: "aaaaaaaaaa",
|
||||
location: "aaaaaaaaaaaaaaaaaaaaaaaaa",
|
||||
marketplaceDetails: {
|
||||
marketplaceSubscriptionId: "aaaaaaaaaaaaa",
|
||||
marketplaceSubscriptionStatus: "PendingFulfillmentStart",
|
||||
offerId: "aaaaaaaaaaaaaaaaaaaaaaaaa",
|
||||
planId: "aaaaaa",
|
||||
},
|
||||
storageSku: "Standard",
|
||||
userDetails: { email: "viptslwulnpaupfljvnjeq" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
fileSystemName,
|
||||
resource,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
fileSystemsCreateOrUpdate();
|
||||
fileSystemsCreateOrUpdateMinimumSetGen();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,54 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { QumuloStorage } = require("@azure/arm-qumulo");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Delete a FileSystemResource
|
||||
*
|
||||
* @summary Delete a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Delete_MaximumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsDelete() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const resourceGroupName = process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const fileSystemName = "xoschzkccroahrykedlvbbnsddq";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.beginDeleteAndWait(resourceGroupName, fileSystemName);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Delete a FileSystemResource
|
||||
*
|
||||
* @summary Delete a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Delete_MinimumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsDeleteMinimumSetGen() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const resourceGroupName = process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const fileSystemName = "jgtskkiplquyrlkaxvhdg";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.beginDeleteAndWait(resourceGroupName, fileSystemName);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
fileSystemsDelete();
|
||||
fileSystemsDeleteMinimumSetGen();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,53 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { QumuloStorage } = require("@azure/arm-qumulo");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get a FileSystemResource
|
||||
*
|
||||
* @summary Get a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Get_MaximumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsGet() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const resourceGroupName = process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const fileSystemName = "sihbehcisdqtqqyfiewiiaphgh";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.get(resourceGroupName, fileSystemName);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get a FileSystemResource
|
||||
*
|
||||
* @summary Get a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Get_MinimumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsGetMinimumSetGen() {
|
||||
const subscriptionId = process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "aaaaaaa";
|
||||
const resourceGroupName = process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const fileSystemName = "aaaaaaaaaaaaaaaaa";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.get(resourceGroupName, fileSystemName);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
fileSystemsGet();
|
||||
fileSystemsGetMinimumSetGen();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,57 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { QumuloStorage } = require("@azure/arm-qumulo");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List FileSystemResource resources by resource group
|
||||
*
|
||||
* @summary List FileSystemResource resources by resource group
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_ListByResourceGroup_MaximumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsListByResourceGroup() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const resourceGroupName = process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fileSystems.listByResourceGroup(resourceGroupName)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List FileSystemResource resources by resource group
|
||||
*
|
||||
* @summary List FileSystemResource resources by resource group
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_ListByResourceGroup_MinimumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsListByResourceGroupMinimumSetGen() {
|
||||
const subscriptionId = process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "aaaaaaa";
|
||||
const resourceGroupName = process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fileSystems.listByResourceGroup(resourceGroupName)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
fileSystemsListByResourceGroup();
|
||||
fileSystemsListByResourceGroupMinimumSetGen();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,55 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { QumuloStorage } = require("@azure/arm-qumulo");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List FileSystemResource resources by subscription ID
|
||||
*
|
||||
* @summary List FileSystemResource resources by subscription ID
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_ListBySubscription_MaximumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsListBySubscription() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fileSystems.listBySubscription()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List FileSystemResource resources by subscription ID
|
||||
*
|
||||
* @summary List FileSystemResource resources by subscription ID
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_ListBySubscription_MinimumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsListBySubscriptionMinimumSetGen() {
|
||||
const subscriptionId = process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "aaaaaaa";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fileSystems.listBySubscription()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
fileSystemsListBySubscription();
|
||||
fileSystemsListBySubscriptionMinimumSetGen();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,70 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { QumuloStorage } = require("@azure/arm-qumulo");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Update a FileSystemResource
|
||||
*
|
||||
* @summary Update a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Update_MaximumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsUpdate() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const resourceGroupName = process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const fileSystemName = "ahpixnvykleksjlr";
|
||||
const properties = {
|
||||
identity: { type: "None", userAssignedIdentities: { key7679: {} } },
|
||||
properties: {
|
||||
delegatedSubnetId: "bqaryqsjlackxphpmzffgoqsvm",
|
||||
marketplaceDetails: {
|
||||
marketplaceSubscriptionId: "xaqtkloiyovmexqhn",
|
||||
marketplaceSubscriptionStatus: "PendingFulfillmentStart",
|
||||
offerId: "s",
|
||||
planId: "fwtpz",
|
||||
publisherId: "czxcfrwodazyaft",
|
||||
termUnit: "cfwwczmygsimcyvoclcw",
|
||||
},
|
||||
userDetails: { email: "aqsnzyroo" },
|
||||
},
|
||||
tags: { key357: "ztkkvhfia" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.update(resourceGroupName, fileSystemName, properties);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Update a FileSystemResource
|
||||
*
|
||||
* @summary Update a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Update_MinimumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsUpdateMinimumSetGen() {
|
||||
const subscriptionId = process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "aaaaaaa";
|
||||
const resourceGroupName = process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const fileSystemName = "aaaaaaaaaaaaaaaaa";
|
||||
const properties = {};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.update(resourceGroupName, fileSystemName, properties);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
fileSystemsUpdate();
|
||||
fileSystemsUpdateMinimumSetGen();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,56 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { QumuloStorage } = require("@azure/arm-qumulo");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List the operations for the provider
|
||||
*
|
||||
* @summary List the operations for the provider
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/Operations_List_MaximumSet_Gen.json
|
||||
*/
|
||||
async function operationsList() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.operations.list()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List the operations for the provider
|
||||
*
|
||||
* @summary List the operations for the provider
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/Operations_List_MinimumSet_Gen.json
|
||||
*/
|
||||
async function operationsListMinimumSetGen() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.operations.list()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
operationsList();
|
||||
operationsListMinimumSetGen();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"name": "@azure-samples/arm-qumulo-js",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"description": " client library samples for JavaScript",
|
||||
"engines": {
|
||||
"node": ">=18.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Azure/azure-sdk-for-js.git",
|
||||
"directory": "sdk/liftrqumulo/arm-qumulo"
|
||||
},
|
||||
"keywords": [
|
||||
"node",
|
||||
"azure",
|
||||
"typescript",
|
||||
"browser",
|
||||
"isomorphic"
|
||||
],
|
||||
"author": "Microsoft Corporation",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
||||
},
|
||||
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/liftrqumulo/arm-qumulo",
|
||||
"dependencies": {
|
||||
"@azure/arm-qumulo": "latest",
|
||||
"dotenv": "latest",
|
||||
"@azure/identity": "^4.0.1"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
# App registration secret for AAD authentication
|
||||
AZURE_CLIENT_SECRET=
|
||||
AZURE_CLIENT_ID=
|
||||
AZURE_TENANT_ID=
|
|
@ -0,0 +1,75 @@
|
|||
# client library samples for TypeScript
|
||||
|
||||
These sample programs show how to use the TypeScript client libraries for in some common scenarios.
|
||||
|
||||
| **File Name** | **Description** |
|
||||
| ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| [fileSystemsCreateOrUpdateSample.ts][filesystemscreateorupdatesample] | Create a FileSystemResource x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_CreateOrUpdate_MaximumSet_Gen.json |
|
||||
| [fileSystemsDeleteSample.ts][filesystemsdeletesample] | Delete a FileSystemResource x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Delete_MaximumSet_Gen.json |
|
||||
| [fileSystemsGetSample.ts][filesystemsgetsample] | Get a FileSystemResource x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Get_MaximumSet_Gen.json |
|
||||
| [fileSystemsListByResourceGroupSample.ts][filesystemslistbyresourcegroupsample] | List FileSystemResource resources by resource group x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_ListByResourceGroup_MaximumSet_Gen.json |
|
||||
| [fileSystemsListBySubscriptionSample.ts][filesystemslistbysubscriptionsample] | List FileSystemResource resources by subscription ID x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_ListBySubscription_MaximumSet_Gen.json |
|
||||
| [fileSystemsUpdateSample.ts][filesystemsupdatesample] | Update a FileSystemResource x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Update_MaximumSet_Gen.json |
|
||||
| [operationsListSample.ts][operationslistsample] | List the operations for the provider x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/Operations_List_MaximumSet_Gen.json |
|
||||
|
||||
## Prerequisites
|
||||
|
||||
The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule).
|
||||
|
||||
Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using:
|
||||
|
||||
```bash
|
||||
npm install -g typescript
|
||||
```
|
||||
|
||||
You need [an Azure subscription][freesub] to run these sample programs.
|
||||
|
||||
Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function.
|
||||
|
||||
Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package].
|
||||
|
||||
## Setup
|
||||
|
||||
To run the samples using the published version of the package:
|
||||
|
||||
1. Install the dependencies using `npm`:
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
2. Compile the samples:
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically.
|
||||
|
||||
4. Run whichever samples you like (note that some samples may require additional setup, see the table above):
|
||||
|
||||
```bash
|
||||
node dist/fileSystemsCreateOrUpdateSample.js
|
||||
```
|
||||
|
||||
Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform):
|
||||
|
||||
```bash
|
||||
npx cross-env LIFTRQUMULO_SUBSCRIPTION_ID="<liftrqumulo subscription id>" LIFTRQUMULO_RESOURCE_GROUP="<liftrqumulo resource group>" node dist/fileSystemsCreateOrUpdateSample.js
|
||||
```
|
||||
|
||||
## Next Steps
|
||||
|
||||
Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.
|
||||
|
||||
[filesystemscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/liftrqumulo/arm-qumulo/samples/v2/typescript/src/fileSystemsCreateOrUpdateSample.ts
|
||||
[filesystemsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/liftrqumulo/arm-qumulo/samples/v2/typescript/src/fileSystemsDeleteSample.ts
|
||||
[filesystemsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/liftrqumulo/arm-qumulo/samples/v2/typescript/src/fileSystemsGetSample.ts
|
||||
[filesystemslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/liftrqumulo/arm-qumulo/samples/v2/typescript/src/fileSystemsListByResourceGroupSample.ts
|
||||
[filesystemslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/liftrqumulo/arm-qumulo/samples/v2/typescript/src/fileSystemsListBySubscriptionSample.ts
|
||||
[filesystemsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/liftrqumulo/arm-qumulo/samples/v2/typescript/src/fileSystemsUpdateSample.ts
|
||||
[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/liftrqumulo/arm-qumulo/samples/v2/typescript/src/operationsListSample.ts
|
||||
[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-qumulo?view=azure-node-preview
|
||||
[freesub]: https://azure.microsoft.com/free/
|
||||
[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/liftrqumulo/arm-qumulo/README.md
|
||||
[typescript]: https://www.typescriptlang.org/docs/home.html
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"name": "@azure-samples/arm-qumulo-ts",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"description": " client library samples for TypeScript",
|
||||
"engines": {
|
||||
"node": ">=18.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"prebuild": "rimraf dist/"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Azure/azure-sdk-for-js.git",
|
||||
"directory": "sdk/liftrqumulo/arm-qumulo"
|
||||
},
|
||||
"keywords": [
|
||||
"node",
|
||||
"azure",
|
||||
"typescript",
|
||||
"browser",
|
||||
"isomorphic"
|
||||
],
|
||||
"author": "Microsoft Corporation",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
||||
},
|
||||
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/liftrqumulo/arm-qumulo",
|
||||
"dependencies": {
|
||||
"@azure/arm-qumulo": "latest",
|
||||
"dotenv": "latest",
|
||||
"@azure/identity": "^4.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^18.0.0",
|
||||
"typescript": "~5.5.3",
|
||||
"rimraf": "latest"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
# App registration secret for AAD authentication
|
||||
AZURE_CLIENT_SECRET=
|
||||
AZURE_CLIENT_ID=
|
||||
AZURE_TENANT_ID=
|
|
@ -0,0 +1,100 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { FileSystemResource, QumuloStorage } from "@azure/arm-qumulo";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a FileSystemResource
|
||||
*
|
||||
* @summary Create a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_CreateOrUpdate_MaximumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsCreateOrUpdate() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] ||
|
||||
"382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const resourceGroupName =
|
||||
process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const fileSystemName = "hfcmtgaes";
|
||||
const resource: FileSystemResource = {
|
||||
adminPassword: "fakeTestSecretPlaceholder",
|
||||
availabilityZone: "eqdvbdiuwmhhzqzmksmwllpddqquwt",
|
||||
clusterLoginUrl: "ykaynsjvhihdthkkvvodjrgc",
|
||||
delegatedSubnetId: "jykmxrf",
|
||||
identity: { type: "None", userAssignedIdentities: { key7679: {} } },
|
||||
location: "pnb",
|
||||
marketplaceDetails: {
|
||||
marketplaceSubscriptionId: "xaqtkloiyovmexqhn",
|
||||
marketplaceSubscriptionStatus: "PendingFulfillmentStart",
|
||||
offerId: "s",
|
||||
planId: "fwtpz",
|
||||
publisherId: "czxcfrwodazyaft",
|
||||
termUnit: "cfwwczmygsimcyvoclcw",
|
||||
},
|
||||
privateIPs: ["gzken"],
|
||||
storageSku: "yhyzby",
|
||||
tags: { key7090: "rurrdiaqp" },
|
||||
userDetails: { email: "aqsnzyroo" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
fileSystemName,
|
||||
resource,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a FileSystemResource
|
||||
*
|
||||
* @summary Create a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_CreateOrUpdate_MinimumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsCreateOrUpdateMinimumSetGen() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "aaaaaaaaaaaaaaaaaaaaaaaa";
|
||||
const resourceGroupName =
|
||||
process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const fileSystemName = "aaaaaaaa";
|
||||
const resource: FileSystemResource = {
|
||||
adminPassword: "fakeTestSecretPlaceholder",
|
||||
delegatedSubnetId: "aaaaaaaaaa",
|
||||
location: "aaaaaaaaaaaaaaaaaaaaaaaaa",
|
||||
marketplaceDetails: {
|
||||
marketplaceSubscriptionId: "aaaaaaaaaaaaa",
|
||||
marketplaceSubscriptionStatus: "PendingFulfillmentStart",
|
||||
offerId: "aaaaaaaaaaaaaaaaaaaaaaaaa",
|
||||
planId: "aaaaaa",
|
||||
},
|
||||
storageSku: "Standard",
|
||||
userDetails: { email: "viptslwulnpaupfljvnjeq" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
fileSystemName,
|
||||
resource,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
fileSystemsCreateOrUpdate();
|
||||
fileSystemsCreateOrUpdateMinimumSetGen();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,66 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { QumuloStorage } from "@azure/arm-qumulo";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Delete a FileSystemResource
|
||||
*
|
||||
* @summary Delete a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Delete_MaximumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsDelete() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] ||
|
||||
"382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const resourceGroupName =
|
||||
process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const fileSystemName = "xoschzkccroahrykedlvbbnsddq";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
fileSystemName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Delete a FileSystemResource
|
||||
*
|
||||
* @summary Delete a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Delete_MinimumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsDeleteMinimumSetGen() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] ||
|
||||
"382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const resourceGroupName =
|
||||
process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const fileSystemName = "jgtskkiplquyrlkaxvhdg";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
fileSystemName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
fileSystemsDelete();
|
||||
fileSystemsDeleteMinimumSetGen();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,65 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { QumuloStorage } from "@azure/arm-qumulo";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get a FileSystemResource
|
||||
*
|
||||
* @summary Get a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Get_MaximumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsGet() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] ||
|
||||
"382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const resourceGroupName =
|
||||
process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const fileSystemName = "sihbehcisdqtqqyfiewiiaphgh";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.get(
|
||||
resourceGroupName,
|
||||
fileSystemName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get a FileSystemResource
|
||||
*
|
||||
* @summary Get a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Get_MinimumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsGetMinimumSetGen() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "aaaaaaa";
|
||||
const resourceGroupName =
|
||||
process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const fileSystemName = "aaaaaaaaaaaaaaaaa";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.get(
|
||||
resourceGroupName,
|
||||
fileSystemName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
fileSystemsGet();
|
||||
fileSystemsGetMinimumSetGen();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,67 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { QumuloStorage } from "@azure/arm-qumulo";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List FileSystemResource resources by resource group
|
||||
*
|
||||
* @summary List FileSystemResource resources by resource group
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_ListByResourceGroup_MaximumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsListByResourceGroup() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] ||
|
||||
"382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const resourceGroupName =
|
||||
process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fileSystems.listByResourceGroup(
|
||||
resourceGroupName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List FileSystemResource resources by resource group
|
||||
*
|
||||
* @summary List FileSystemResource resources by resource group
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_ListByResourceGroup_MinimumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsListByResourceGroupMinimumSetGen() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "aaaaaaa";
|
||||
const resourceGroupName =
|
||||
process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fileSystems.listByResourceGroup(
|
||||
resourceGroupName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
fileSystemsListByResourceGroup();
|
||||
fileSystemsListByResourceGroupMinimumSetGen();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,59 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { QumuloStorage } from "@azure/arm-qumulo";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List FileSystemResource resources by subscription ID
|
||||
*
|
||||
* @summary List FileSystemResource resources by subscription ID
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_ListBySubscription_MaximumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsListBySubscription() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] ||
|
||||
"382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fileSystems.listBySubscription()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List FileSystemResource resources by subscription ID
|
||||
*
|
||||
* @summary List FileSystemResource resources by subscription ID
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_ListBySubscription_MinimumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsListBySubscriptionMinimumSetGen() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "aaaaaaa";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fileSystems.listBySubscription()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
fileSystemsListBySubscription();
|
||||
fileSystemsListBySubscriptionMinimumSetGen();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,84 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { FileSystemResourceUpdate, QumuloStorage } from "@azure/arm-qumulo";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Update a FileSystemResource
|
||||
*
|
||||
* @summary Update a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Update_MaximumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsUpdate() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] ||
|
||||
"382E8C7A-AC80-4D70-8580-EFE99537B9B7";
|
||||
const resourceGroupName =
|
||||
process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const fileSystemName = "ahpixnvykleksjlr";
|
||||
const properties: FileSystemResourceUpdate = {
|
||||
identity: { type: "None", userAssignedIdentities: { key7679: {} } },
|
||||
properties: {
|
||||
delegatedSubnetId: "bqaryqsjlackxphpmzffgoqsvm",
|
||||
marketplaceDetails: {
|
||||
marketplaceSubscriptionId: "xaqtkloiyovmexqhn",
|
||||
marketplaceSubscriptionStatus: "PendingFulfillmentStart",
|
||||
offerId: "s",
|
||||
planId: "fwtpz",
|
||||
publisherId: "czxcfrwodazyaft",
|
||||
termUnit: "cfwwczmygsimcyvoclcw",
|
||||
},
|
||||
userDetails: { email: "aqsnzyroo" },
|
||||
},
|
||||
tags: { key357: "ztkkvhfia" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.update(
|
||||
resourceGroupName,
|
||||
fileSystemName,
|
||||
properties,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Update a FileSystemResource
|
||||
*
|
||||
* @summary Update a FileSystemResource
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/FileSystems_Update_MinimumSet_Gen.json
|
||||
*/
|
||||
async function fileSystemsUpdateMinimumSetGen() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] || "aaaaaaa";
|
||||
const resourceGroupName =
|
||||
process.env["LIFTRQUMULO_RESOURCE_GROUP"] || "rgQumulo";
|
||||
const fileSystemName = "aaaaaaaaaaaaaaaaa";
|
||||
const properties: FileSystemResourceUpdate = {};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const result = await client.fileSystems.update(
|
||||
resourceGroupName,
|
||||
fileSystemName,
|
||||
properties,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
fileSystemsUpdate();
|
||||
fileSystemsUpdateMinimumSetGen();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,60 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { QumuloStorage } from "@azure/arm-qumulo";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List the operations for the provider
|
||||
*
|
||||
* @summary List the operations for the provider
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/Operations_List_MaximumSet_Gen.json
|
||||
*/
|
||||
async function operationsList() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.operations.list()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List the operations for the provider
|
||||
*
|
||||
* @summary List the operations for the provider
|
||||
* x-ms-original-file: specification/liftrqumulo/resource-manager/Qumulo.Storage/stable/2024-06-19/examples/Operations_List_MinimumSet_Gen.json
|
||||
*/
|
||||
async function operationsListMinimumSetGen() {
|
||||
const subscriptionId =
|
||||
process.env["LIFTRQUMULO_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new QumuloStorage(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.operations.list()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
operationsList();
|
||||
operationsListMinimumSetGen();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"strict": true,
|
||||
"alwaysStrict": true,
|
||||
"outDir": "dist",
|
||||
"rootDir": "src"
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts"
|
||||
]
|
||||
}
|
|
@ -28,15 +28,15 @@ export function createLroSpec<T>(inputs: {
|
|||
sendInitialRequest: () => sendOperationFn(args, spec),
|
||||
sendPollRequest: (
|
||||
path: string,
|
||||
options?: { abortSignal?: AbortSignalLike }
|
||||
options?: { abortSignal?: AbortSignalLike },
|
||||
) => {
|
||||
const { requestBody, ...restSpec } = spec;
|
||||
return sendOperationFn(args, {
|
||||
...restSpec,
|
||||
httpMethod: "GET",
|
||||
path,
|
||||
abortSignal: options?.abortSignal
|
||||
abortSignal: options?.abortSignal,
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
@ -138,7 +138,9 @@ export interface MarketplaceDetails {
|
|||
/** Offer Id */
|
||||
offerId: string;
|
||||
/** Publisher Id */
|
||||
publisherId: string;
|
||||
publisherId?: string;
|
||||
/** Term Unit */
|
||||
termUnit?: string;
|
||||
/**
|
||||
* Marketplace subscription status
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
|
@ -242,10 +244,6 @@ export interface FileSystemResourceUpdateProperties {
|
|||
userDetails?: UserDetails;
|
||||
/** Delegated subnet id for Vnet injection */
|
||||
delegatedSubnetId?: string;
|
||||
/** File system Id of the resource */
|
||||
clusterLoginUrl?: string;
|
||||
/** Private IPs of the resource */
|
||||
privateIPs?: string[];
|
||||
}
|
||||
|
||||
/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
|
||||
|
@ -256,35 +254,51 @@ export interface TrackedResource extends Resource {
|
|||
location: string;
|
||||
}
|
||||
|
||||
/** A FileSystem Resource by Qumulo */
|
||||
/** Concrete tracked resource types can be created by aliasing this type using a specific property type. */
|
||||
export interface FileSystemResource extends TrackedResource {
|
||||
/** The managed service identities assigned to this resource. */
|
||||
identity?: ManagedServiceIdentity;
|
||||
/** Marketplace details */
|
||||
marketplaceDetails: MarketplaceDetails;
|
||||
marketplaceDetails?: MarketplaceDetails;
|
||||
/**
|
||||
* Provisioning State of the resource
|
||||
* NOTE: This property will not be serialized. It can only be populated by the server.
|
||||
*/
|
||||
readonly provisioningState?: ProvisioningState;
|
||||
/** Storage Sku */
|
||||
storageSku: StorageSku;
|
||||
storageSku?: string;
|
||||
/** User Details */
|
||||
userDetails: UserDetails;
|
||||
userDetails?: UserDetails;
|
||||
/** Delegated subnet id for Vnet injection */
|
||||
delegatedSubnetId: string;
|
||||
delegatedSubnetId?: string;
|
||||
/** File system Id of the resource */
|
||||
clusterLoginUrl?: string;
|
||||
/** Private IPs of the resource */
|
||||
privateIPs?: string[];
|
||||
/** Initial administrator password of the resource */
|
||||
adminPassword: string;
|
||||
/** Storage capacity in TB */
|
||||
initialCapacity: number;
|
||||
adminPassword?: string;
|
||||
/** Availability zone */
|
||||
availabilityZone?: string;
|
||||
}
|
||||
|
||||
/** Defines headers for FileSystems_createOrUpdate operation. */
|
||||
export interface FileSystemsCreateOrUpdateHeaders {
|
||||
/** A link to the status monitor */
|
||||
azureAsyncOperation?: string;
|
||||
/** The Retry-After header can indicate how long the client should wait before polling the operation status. */
|
||||
retryAfter?: number;
|
||||
}
|
||||
|
||||
/** Defines headers for FileSystems_delete operation. */
|
||||
export interface FileSystemsDeleteHeaders {
|
||||
/** A link to the status monitor */
|
||||
azureAsyncOperation?: string;
|
||||
/** The Location header contains the URL where the status of the long running operation can be checked. */
|
||||
location?: string;
|
||||
/** The Retry-After header can indicate how long the client should wait before polling the operation status. */
|
||||
retryAfter?: number;
|
||||
}
|
||||
|
||||
/** Known values of {@link Origin} that the service accepts. */
|
||||
export enum KnownOrigin {
|
||||
/** User */
|
||||
|
@ -292,7 +306,7 @@ export enum KnownOrigin {
|
|||
/** System */
|
||||
System = "system",
|
||||
/** UserSystem */
|
||||
UserSystem = "user,system"
|
||||
UserSystem = "user,system",
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -309,7 +323,7 @@ export type Origin = string;
|
|||
/** Known values of {@link ActionType} that the service accepts. */
|
||||
export enum KnownActionType {
|
||||
/** Internal */
|
||||
Internal = "Internal"
|
||||
Internal = "Internal",
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -321,6 +335,66 @@ export enum KnownActionType {
|
|||
*/
|
||||
export type ActionType = string;
|
||||
|
||||
/** Known values of {@link MarketplaceSubscriptionStatus} that the service accepts. */
|
||||
export enum KnownMarketplaceSubscriptionStatus {
|
||||
/** Fulfillment has not started */
|
||||
PendingFulfillmentStart = "PendingFulfillmentStart",
|
||||
/** Marketplace offer is subscribed */
|
||||
Subscribed = "Subscribed",
|
||||
/** Marketplace offer is suspended because of non payment */
|
||||
Suspended = "Suspended",
|
||||
/** Marketplace offer is unsubscribed */
|
||||
Unsubscribed = "Unsubscribed",
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines values for MarketplaceSubscriptionStatus. \
|
||||
* {@link KnownMarketplaceSubscriptionStatus} can be used interchangeably with MarketplaceSubscriptionStatus,
|
||||
* this enum contains the known values that the service supports.
|
||||
* ### Known values supported by the service
|
||||
* **PendingFulfillmentStart**: Fulfillment has not started \
|
||||
* **Subscribed**: Marketplace offer is subscribed \
|
||||
* **Suspended**: Marketplace offer is suspended because of non payment \
|
||||
* **Unsubscribed**: Marketplace offer is unsubscribed
|
||||
*/
|
||||
export type MarketplaceSubscriptionStatus = string;
|
||||
|
||||
/** Known values of {@link ProvisioningState} that the service accepts. */
|
||||
export enum KnownProvisioningState {
|
||||
/** File system resource creation request accepted */
|
||||
Accepted = "Accepted",
|
||||
/** File system resource creation started */
|
||||
Creating = "Creating",
|
||||
/** File system resource is being updated */
|
||||
Updating = "Updating",
|
||||
/** File system resource deletion started */
|
||||
Deleting = "Deleting",
|
||||
/** File system resource creation successful */
|
||||
Succeeded = "Succeeded",
|
||||
/** File system resource creation failed */
|
||||
Failed = "Failed",
|
||||
/** File system resource creation canceled */
|
||||
Canceled = "Canceled",
|
||||
/** File system resource is deleted */
|
||||
Deleted = "Deleted",
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines values for ProvisioningState. \
|
||||
* {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
|
||||
* this enum contains the known values that the service supports.
|
||||
* ### Known values supported by the service
|
||||
* **Accepted**: File system resource creation request accepted \
|
||||
* **Creating**: File system resource creation started \
|
||||
* **Updating**: File system resource is being updated \
|
||||
* **Deleting**: File system resource deletion started \
|
||||
* **Succeeded**: File system resource creation successful \
|
||||
* **Failed**: File system resource creation failed \
|
||||
* **Canceled**: File system resource creation canceled \
|
||||
* **Deleted**: File system resource is deleted
|
||||
*/
|
||||
export type ProvisioningState = string;
|
||||
|
||||
/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
|
||||
export enum KnownManagedServiceIdentityType {
|
||||
/** None */
|
||||
|
@ -330,7 +404,7 @@ export enum KnownManagedServiceIdentityType {
|
|||
/** UserAssigned */
|
||||
UserAssigned = "UserAssigned",
|
||||
/** SystemAssignedUserAssigned */
|
||||
SystemAssignedUserAssigned = "SystemAssigned, UserAssigned"
|
||||
SystemAssignedUserAssigned = "SystemAssigned,UserAssigned",
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -341,7 +415,7 @@ export enum KnownManagedServiceIdentityType {
|
|||
* **None** \
|
||||
* **SystemAssigned** \
|
||||
* **UserAssigned** \
|
||||
* **SystemAssigned, UserAssigned**
|
||||
* **SystemAssigned,UserAssigned**
|
||||
*/
|
||||
export type ManagedServiceIdentityType = string;
|
||||
|
||||
|
@ -354,7 +428,7 @@ export enum KnownCreatedByType {
|
|||
/** ManagedIdentity */
|
||||
ManagedIdentity = "ManagedIdentity",
|
||||
/** Key */
|
||||
Key = "Key"
|
||||
Key = "Key",
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -368,25 +442,6 @@ export enum KnownCreatedByType {
|
|||
* **Key**
|
||||
*/
|
||||
export type CreatedByType = string;
|
||||
/** Defines values for MarketplaceSubscriptionStatus. */
|
||||
export type MarketplaceSubscriptionStatus =
|
||||
| "PendingFulfillmentStart"
|
||||
| "Subscribed"
|
||||
| "Suspended"
|
||||
| "Unsubscribed";
|
||||
/** Defines values for ProvisioningState. */
|
||||
export type ProvisioningState =
|
||||
| "Accepted"
|
||||
| "Creating"
|
||||
| "Updating"
|
||||
| "Deleting"
|
||||
| "Succeeded"
|
||||
| "Failed"
|
||||
| "Canceled"
|
||||
| "Deleted"
|
||||
| "NotSpecified";
|
||||
/** Defines values for StorageSku. */
|
||||
export type StorageSku = "Standard" | "Performance";
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface OperationsListOptionalParams
|
||||
|
@ -407,14 +462,16 @@ export interface FileSystemsListBySubscriptionOptionalParams
|
|||
extends coreClient.OperationOptions {}
|
||||
|
||||
/** Contains response data for the listBySubscription operation. */
|
||||
export type FileSystemsListBySubscriptionResponse = FileSystemResourceListResult;
|
||||
export type FileSystemsListBySubscriptionResponse =
|
||||
FileSystemResourceListResult;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface FileSystemsListByResourceGroupOptionalParams
|
||||
extends coreClient.OperationOptions {}
|
||||
|
||||
/** Contains response data for the listByResourceGroup operation. */
|
||||
export type FileSystemsListByResourceGroupResponse = FileSystemResourceListResult;
|
||||
export type FileSystemsListByResourceGroupResponse =
|
||||
FileSystemResourceListResult;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface FileSystemsGetOptionalParams
|
||||
|
@ -451,19 +508,24 @@ export interface FileSystemsDeleteOptionalParams
|
|||
resumeFrom?: string;
|
||||
}
|
||||
|
||||
/** Contains response data for the delete operation. */
|
||||
export type FileSystemsDeleteResponse = FileSystemsDeleteHeaders;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface FileSystemsListBySubscriptionNextOptionalParams
|
||||
extends coreClient.OperationOptions {}
|
||||
|
||||
/** Contains response data for the listBySubscriptionNext operation. */
|
||||
export type FileSystemsListBySubscriptionNextResponse = FileSystemResourceListResult;
|
||||
export type FileSystemsListBySubscriptionNextResponse =
|
||||
FileSystemResourceListResult;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface FileSystemsListByResourceGroupNextOptionalParams
|
||||
extends coreClient.OperationOptions {}
|
||||
|
||||
/** Contains response data for the listByResourceGroupNext operation. */
|
||||
export type FileSystemsListByResourceGroupNextResponse = FileSystemResourceListResult;
|
||||
export type FileSystemsListByResourceGroupNextResponse =
|
||||
FileSystemResourceListResult;
|
||||
|
||||
/** Optional parameters. */
|
||||
export interface QumuloStorageOptionalParams
|
||||
|
|
|
@ -21,20 +21,20 @@ export const OperationListResult: coreClient.CompositeMapper = {
|
|||
element: {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "Operation"
|
||||
}
|
||||
}
|
||||
}
|
||||
className: "Operation",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
nextLink: {
|
||||
serializedName: "nextLink",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const Operation: coreClient.CompositeMapper = {
|
||||
|
@ -46,39 +46,39 @@ export const Operation: coreClient.CompositeMapper = {
|
|||
serializedName: "name",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
isDataAction: {
|
||||
serializedName: "isDataAction",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "Boolean"
|
||||
}
|
||||
name: "Boolean",
|
||||
},
|
||||
},
|
||||
display: {
|
||||
serializedName: "display",
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "OperationDisplay"
|
||||
}
|
||||
className: "OperationDisplay",
|
||||
},
|
||||
},
|
||||
origin: {
|
||||
serializedName: "origin",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
actionType: {
|
||||
serializedName: "actionType",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const OperationDisplay: coreClient.CompositeMapper = {
|
||||
|
@ -90,32 +90,32 @@ export const OperationDisplay: coreClient.CompositeMapper = {
|
|||
serializedName: "provider",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
resource: {
|
||||
serializedName: "resource",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
operation: {
|
||||
serializedName: "operation",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
description: {
|
||||
serializedName: "description",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const ErrorResponse: coreClient.CompositeMapper = {
|
||||
|
@ -127,11 +127,11 @@ export const ErrorResponse: coreClient.CompositeMapper = {
|
|||
serializedName: "error",
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ErrorDetail"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
className: "ErrorDetail",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const ErrorDetail: coreClient.CompositeMapper = {
|
||||
|
@ -143,22 +143,22 @@ export const ErrorDetail: coreClient.CompositeMapper = {
|
|||
serializedName: "code",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
message: {
|
||||
serializedName: "message",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
target: {
|
||||
serializedName: "target",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
details: {
|
||||
serializedName: "details",
|
||||
|
@ -168,10 +168,10 @@ export const ErrorDetail: coreClient.CompositeMapper = {
|
|||
element: {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ErrorDetail"
|
||||
}
|
||||
}
|
||||
}
|
||||
className: "ErrorDetail",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
additionalInfo: {
|
||||
serializedName: "additionalInfo",
|
||||
|
@ -181,13 +181,13 @@ export const ErrorDetail: coreClient.CompositeMapper = {
|
|||
element: {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ErrorAdditionalInfo"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
className: "ErrorAdditionalInfo",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const ErrorAdditionalInfo: coreClient.CompositeMapper = {
|
||||
|
@ -199,19 +199,19 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = {
|
|||
serializedName: "type",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
info: {
|
||||
serializedName: "info",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "Dictionary",
|
||||
value: { type: { name: "any" } }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
value: { type: { name: "any" } },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const FileSystemResourceListResult: coreClient.CompositeMapper = {
|
||||
|
@ -227,19 +227,19 @@ export const FileSystemResourceListResult: coreClient.CompositeMapper = {
|
|||
element: {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "FileSystemResource"
|
||||
}
|
||||
}
|
||||
}
|
||||
className: "FileSystemResource",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
nextLink: {
|
||||
serializedName: "nextLink",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const MarketplaceDetails: coreClient.CompositeMapper = {
|
||||
|
@ -250,45 +250,44 @@ export const MarketplaceDetails: coreClient.CompositeMapper = {
|
|||
marketplaceSubscriptionId: {
|
||||
serializedName: "marketplaceSubscriptionId",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
planId: {
|
||||
serializedName: "planId",
|
||||
required: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
offerId: {
|
||||
serializedName: "offerId",
|
||||
required: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
publisherId: {
|
||||
serializedName: "publisherId",
|
||||
required: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
termUnit: {
|
||||
serializedName: "termUnit",
|
||||
type: {
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
marketplaceSubscriptionStatus: {
|
||||
serializedName: "marketplaceSubscriptionStatus",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "Enum",
|
||||
allowedValues: [
|
||||
"PendingFulfillmentStart",
|
||||
"Subscribed",
|
||||
"Suspended",
|
||||
"Unsubscribed"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const UserDetails: coreClient.CompositeMapper = {
|
||||
|
@ -300,11 +299,11 @@ export const UserDetails: coreClient.CompositeMapper = {
|
|||
serializedName: "email",
|
||||
required: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const ManagedServiceIdentity: coreClient.CompositeMapper = {
|
||||
|
@ -316,34 +315,34 @@ export const ManagedServiceIdentity: coreClient.CompositeMapper = {
|
|||
serializedName: "principalId",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "Uuid"
|
||||
}
|
||||
name: "Uuid",
|
||||
},
|
||||
},
|
||||
tenantId: {
|
||||
serializedName: "tenantId",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "Uuid"
|
||||
}
|
||||
name: "Uuid",
|
||||
},
|
||||
},
|
||||
type: {
|
||||
serializedName: "type",
|
||||
required: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
userAssignedIdentities: {
|
||||
serializedName: "userAssignedIdentities",
|
||||
type: {
|
||||
name: "Dictionary",
|
||||
value: {
|
||||
type: { name: "Composite", className: "UserAssignedIdentity" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
type: { name: "Composite", className: "UserAssignedIdentity" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const UserAssignedIdentity: coreClient.CompositeMapper = {
|
||||
|
@ -355,18 +354,18 @@ export const UserAssignedIdentity: coreClient.CompositeMapper = {
|
|||
serializedName: "principalId",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "Uuid"
|
||||
}
|
||||
name: "Uuid",
|
||||
},
|
||||
},
|
||||
clientId: {
|
||||
serializedName: "clientId",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "Uuid"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
name: "Uuid",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const Resource: coreClient.CompositeMapper = {
|
||||
|
@ -378,32 +377,32 @@ export const Resource: coreClient.CompositeMapper = {
|
|||
serializedName: "id",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
name: {
|
||||
serializedName: "name",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
type: {
|
||||
serializedName: "type",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
systemData: {
|
||||
serializedName: "systemData",
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "SystemData"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
className: "SystemData",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const SystemData: coreClient.CompositeMapper = {
|
||||
|
@ -414,41 +413,41 @@ export const SystemData: coreClient.CompositeMapper = {
|
|||
createdBy: {
|
||||
serializedName: "createdBy",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
createdByType: {
|
||||
serializedName: "createdByType",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
createdAt: {
|
||||
serializedName: "createdAt",
|
||||
type: {
|
||||
name: "DateTime"
|
||||
}
|
||||
name: "DateTime",
|
||||
},
|
||||
},
|
||||
lastModifiedBy: {
|
||||
serializedName: "lastModifiedBy",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
lastModifiedByType: {
|
||||
serializedName: "lastModifiedByType",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
lastModifiedAt: {
|
||||
serializedName: "lastModifiedAt",
|
||||
type: {
|
||||
name: "DateTime"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
name: "DateTime",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const FileSystemResourceUpdate: coreClient.CompositeMapper = {
|
||||
|
@ -460,25 +459,25 @@ export const FileSystemResourceUpdate: coreClient.CompositeMapper = {
|
|||
serializedName: "identity",
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ManagedServiceIdentity"
|
||||
}
|
||||
className: "ManagedServiceIdentity",
|
||||
},
|
||||
},
|
||||
tags: {
|
||||
serializedName: "tags",
|
||||
type: {
|
||||
name: "Dictionary",
|
||||
value: { type: { name: "String" } }
|
||||
}
|
||||
value: { type: { name: "String" } },
|
||||
},
|
||||
},
|
||||
properties: {
|
||||
serializedName: "properties",
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "FileSystemResourceUpdateProperties"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
className: "FileSystemResourceUpdateProperties",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const FileSystemResourceUpdateProperties: coreClient.CompositeMapper = {
|
||||
|
@ -490,41 +489,24 @@ export const FileSystemResourceUpdateProperties: coreClient.CompositeMapper = {
|
|||
serializedName: "marketplaceDetails",
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "MarketplaceDetails"
|
||||
}
|
||||
className: "MarketplaceDetails",
|
||||
},
|
||||
},
|
||||
userDetails: {
|
||||
serializedName: "userDetails",
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "UserDetails"
|
||||
}
|
||||
className: "UserDetails",
|
||||
},
|
||||
},
|
||||
delegatedSubnetId: {
|
||||
serializedName: "delegatedSubnetId",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
clusterLoginUrl: {
|
||||
serializedName: "clusterLoginUrl",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
privateIPs: {
|
||||
serializedName: "privateIPs",
|
||||
type: {
|
||||
name: "Sequence",
|
||||
element: {
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const TrackedResource: coreClient.CompositeMapper = {
|
||||
|
@ -537,18 +519,18 @@ export const TrackedResource: coreClient.CompositeMapper = {
|
|||
serializedName: "tags",
|
||||
type: {
|
||||
name: "Dictionary",
|
||||
value: { type: { name: "String" } }
|
||||
}
|
||||
value: { type: { name: "String" } },
|
||||
},
|
||||
},
|
||||
location: {
|
||||
serializedName: "location",
|
||||
required: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const FileSystemResource: coreClient.CompositeMapper = {
|
||||
|
@ -561,61 +543,47 @@ export const FileSystemResource: coreClient.CompositeMapper = {
|
|||
serializedName: "identity",
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "ManagedServiceIdentity"
|
||||
}
|
||||
className: "ManagedServiceIdentity",
|
||||
},
|
||||
},
|
||||
marketplaceDetails: {
|
||||
serializedName: "properties.marketplaceDetails",
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "MarketplaceDetails"
|
||||
}
|
||||
className: "MarketplaceDetails",
|
||||
},
|
||||
},
|
||||
provisioningState: {
|
||||
serializedName: "properties.provisioningState",
|
||||
readOnly: true,
|
||||
type: {
|
||||
name: "Enum",
|
||||
allowedValues: [
|
||||
"Accepted",
|
||||
"Creating",
|
||||
"Updating",
|
||||
"Deleting",
|
||||
"Succeeded",
|
||||
"Failed",
|
||||
"Canceled",
|
||||
"Deleted",
|
||||
"NotSpecified"
|
||||
]
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
storageSku: {
|
||||
serializedName: "properties.storageSku",
|
||||
required: true,
|
||||
type: {
|
||||
name: "Enum",
|
||||
allowedValues: ["Standard", "Performance"]
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
userDetails: {
|
||||
serializedName: "properties.userDetails",
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "UserDetails"
|
||||
}
|
||||
className: "UserDetails",
|
||||
},
|
||||
},
|
||||
delegatedSubnetId: {
|
||||
serializedName: "properties.delegatedSubnetId",
|
||||
required: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
clusterLoginUrl: {
|
||||
serializedName: "properties.clusterLoginUrl",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
privateIPs: {
|
||||
serializedName: "properties.privateIPs",
|
||||
|
@ -623,31 +591,71 @@ export const FileSystemResource: coreClient.CompositeMapper = {
|
|||
name: "Sequence",
|
||||
element: {
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
adminPassword: {
|
||||
serializedName: "properties.adminPassword",
|
||||
required: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
},
|
||||
initialCapacity: {
|
||||
serializedName: "properties.initialCapacity",
|
||||
required: true,
|
||||
type: {
|
||||
name: "Number"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
availabilityZone: {
|
||||
serializedName: "properties.availabilityZone",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const FileSystemsCreateOrUpdateHeaders: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "FileSystemsCreateOrUpdateHeaders",
|
||||
modelProperties: {
|
||||
azureAsyncOperation: {
|
||||
serializedName: "azure-asyncoperation",
|
||||
type: {
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
retryAfter: {
|
||||
serializedName: "retry-after",
|
||||
type: {
|
||||
name: "Number",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const FileSystemsDeleteHeaders: coreClient.CompositeMapper = {
|
||||
type: {
|
||||
name: "Composite",
|
||||
className: "FileSystemsDeleteHeaders",
|
||||
modelProperties: {
|
||||
azureAsyncOperation: {
|
||||
serializedName: "azure-asyncoperation",
|
||||
type: {
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
location: {
|
||||
serializedName: "location",
|
||||
type: {
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
retryAfter: {
|
||||
serializedName: "retry-after",
|
||||
type: {
|
||||
name: "Number",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
import {
|
||||
OperationParameter,
|
||||
OperationURLParameter,
|
||||
OperationQueryParameter
|
||||
OperationQueryParameter,
|
||||
} from "@azure/core-client";
|
||||
import {
|
||||
FileSystemResource as FileSystemResourceMapper,
|
||||
FileSystemResourceUpdate as FileSystemResourceUpdateMapper
|
||||
FileSystemResourceUpdate as FileSystemResourceUpdateMapper,
|
||||
} from "../models/mappers";
|
||||
|
||||
export const accept: OperationParameter = {
|
||||
|
@ -23,9 +23,9 @@ export const accept: OperationParameter = {
|
|||
isConstant: true,
|
||||
serializedName: "Accept",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const $host: OperationURLParameter = {
|
||||
|
@ -34,22 +34,22 @@ export const $host: OperationURLParameter = {
|
|||
serializedName: "$host",
|
||||
required: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
skipEncoding: true
|
||||
skipEncoding: true,
|
||||
};
|
||||
|
||||
export const apiVersion: OperationQueryParameter = {
|
||||
parameterPath: "apiVersion",
|
||||
mapper: {
|
||||
defaultValue: "2022-10-12",
|
||||
defaultValue: "2024-06-19",
|
||||
isConstant: true,
|
||||
serializedName: "api-version",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const nextLink: OperationURLParameter = {
|
||||
|
@ -58,24 +58,24 @@ export const nextLink: OperationURLParameter = {
|
|||
serializedName: "nextLink",
|
||||
required: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
skipEncoding: true
|
||||
skipEncoding: true,
|
||||
};
|
||||
|
||||
export const subscriptionId: OperationURLParameter = {
|
||||
parameterPath: "subscriptionId",
|
||||
mapper: {
|
||||
constraints: {
|
||||
MinLength: 1
|
||||
MinLength: 1,
|
||||
},
|
||||
serializedName: "subscriptionId",
|
||||
required: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const resourceGroupName: OperationURLParameter = {
|
||||
|
@ -83,25 +83,28 @@ export const resourceGroupName: OperationURLParameter = {
|
|||
mapper: {
|
||||
constraints: {
|
||||
MaxLength: 90,
|
||||
MinLength: 1
|
||||
MinLength: 1,
|
||||
},
|
||||
serializedName: "resourceGroupName",
|
||||
required: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const fileSystemName: OperationURLParameter = {
|
||||
parameterPath: "fileSystemName",
|
||||
mapper: {
|
||||
constraints: {
|
||||
Pattern: new RegExp("^[a-zA-Z0-9_-]*$"),
|
||||
},
|
||||
serializedName: "fileSystemName",
|
||||
required: true,
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const contentType: OperationParameter = {
|
||||
|
@ -111,17 +114,17 @@ export const contentType: OperationParameter = {
|
|||
isConstant: true,
|
||||
serializedName: "Content-Type",
|
||||
type: {
|
||||
name: "String"
|
||||
}
|
||||
}
|
||||
name: "String",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const resource: OperationParameter = {
|
||||
parameterPath: "resource",
|
||||
mapper: FileSystemResourceMapper
|
||||
mapper: FileSystemResourceMapper,
|
||||
};
|
||||
|
||||
export const properties: OperationParameter = {
|
||||
parameterPath: "properties",
|
||||
mapper: FileSystemResourceUpdateMapper
|
||||
mapper: FileSystemResourceUpdateMapper,
|
||||
};
|
||||
|
|
|
@ -16,7 +16,7 @@ import { QumuloStorage } from "../qumuloStorage";
|
|||
import {
|
||||
SimplePollerLike,
|
||||
OperationState,
|
||||
createHttpPoller
|
||||
createHttpPoller,
|
||||
} from "@azure/core-lro";
|
||||
import { createLroSpec } from "../lroImpl";
|
||||
import {
|
||||
|
@ -35,8 +35,9 @@ import {
|
|||
FileSystemsUpdateOptionalParams,
|
||||
FileSystemsUpdateResponse,
|
||||
FileSystemsDeleteOptionalParams,
|
||||
FileSystemsDeleteResponse,
|
||||
FileSystemsListBySubscriptionNextResponse,
|
||||
FileSystemsListByResourceGroupNextResponse
|
||||
FileSystemsListByResourceGroupNextResponse,
|
||||
} from "../models";
|
||||
|
||||
/// <reference lib="esnext.asynciterable" />
|
||||
|
@ -57,7 +58,7 @@ export class FileSystemsImpl implements FileSystems {
|
|||
* @param options The options parameters.
|
||||
*/
|
||||
public listBySubscription(
|
||||
options?: FileSystemsListBySubscriptionOptionalParams
|
||||
options?: FileSystemsListBySubscriptionOptionalParams,
|
||||
): PagedAsyncIterableIterator<FileSystemResource> {
|
||||
const iter = this.listBySubscriptionPagingAll(options);
|
||||
return {
|
||||
|
@ -72,13 +73,13 @@ export class FileSystemsImpl implements FileSystems {
|
|||
throw new Error("maxPageSize is not supported by this operation.");
|
||||
}
|
||||
return this.listBySubscriptionPagingPage(options, settings);
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
private async *listBySubscriptionPagingPage(
|
||||
options?: FileSystemsListBySubscriptionOptionalParams,
|
||||
settings?: PageSettings
|
||||
settings?: PageSettings,
|
||||
): AsyncIterableIterator<FileSystemResource[]> {
|
||||
let result: FileSystemsListBySubscriptionResponse;
|
||||
let continuationToken = settings?.continuationToken;
|
||||
|
@ -99,7 +100,7 @@ export class FileSystemsImpl implements FileSystems {
|
|||
}
|
||||
|
||||
private async *listBySubscriptionPagingAll(
|
||||
options?: FileSystemsListBySubscriptionOptionalParams
|
||||
options?: FileSystemsListBySubscriptionOptionalParams,
|
||||
): AsyncIterableIterator<FileSystemResource> {
|
||||
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
||||
yield* page;
|
||||
|
@ -113,7 +114,7 @@ export class FileSystemsImpl implements FileSystems {
|
|||
*/
|
||||
public listByResourceGroup(
|
||||
resourceGroupName: string,
|
||||
options?: FileSystemsListByResourceGroupOptionalParams
|
||||
options?: FileSystemsListByResourceGroupOptionalParams,
|
||||
): PagedAsyncIterableIterator<FileSystemResource> {
|
||||
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
||||
return {
|
||||
|
@ -130,16 +131,16 @@ export class FileSystemsImpl implements FileSystems {
|
|||
return this.listByResourceGroupPagingPage(
|
||||
resourceGroupName,
|
||||
options,
|
||||
settings
|
||||
settings,
|
||||
);
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
private async *listByResourceGroupPagingPage(
|
||||
resourceGroupName: string,
|
||||
options?: FileSystemsListByResourceGroupOptionalParams,
|
||||
settings?: PageSettings
|
||||
settings?: PageSettings,
|
||||
): AsyncIterableIterator<FileSystemResource[]> {
|
||||
let result: FileSystemsListByResourceGroupResponse;
|
||||
let continuationToken = settings?.continuationToken;
|
||||
|
@ -154,7 +155,7 @@ export class FileSystemsImpl implements FileSystems {
|
|||
result = await this._listByResourceGroupNext(
|
||||
resourceGroupName,
|
||||
continuationToken,
|
||||
options
|
||||
options,
|
||||
);
|
||||
continuationToken = result.nextLink;
|
||||
let page = result.value || [];
|
||||
|
@ -165,11 +166,11 @@ export class FileSystemsImpl implements FileSystems {
|
|||
|
||||
private async *listByResourceGroupPagingAll(
|
||||
resourceGroupName: string,
|
||||
options?: FileSystemsListByResourceGroupOptionalParams
|
||||
options?: FileSystemsListByResourceGroupOptionalParams,
|
||||
): AsyncIterableIterator<FileSystemResource> {
|
||||
for await (const page of this.listByResourceGroupPagingPage(
|
||||
resourceGroupName,
|
||||
options
|
||||
options,
|
||||
)) {
|
||||
yield* page;
|
||||
}
|
||||
|
@ -180,11 +181,11 @@ export class FileSystemsImpl implements FileSystems {
|
|||
* @param options The options parameters.
|
||||
*/
|
||||
private _listBySubscription(
|
||||
options?: FileSystemsListBySubscriptionOptionalParams
|
||||
options?: FileSystemsListBySubscriptionOptionalParams,
|
||||
): Promise<FileSystemsListBySubscriptionResponse> {
|
||||
return this.client.sendOperationRequest(
|
||||
{ options },
|
||||
listBySubscriptionOperationSpec
|
||||
listBySubscriptionOperationSpec,
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -195,11 +196,11 @@ export class FileSystemsImpl implements FileSystems {
|
|||
*/
|
||||
private _listByResourceGroup(
|
||||
resourceGroupName: string,
|
||||
options?: FileSystemsListByResourceGroupOptionalParams
|
||||
options?: FileSystemsListByResourceGroupOptionalParams,
|
||||
): Promise<FileSystemsListByResourceGroupResponse> {
|
||||
return this.client.sendOperationRequest(
|
||||
{ resourceGroupName, options },
|
||||
listByResourceGroupOperationSpec
|
||||
listByResourceGroupOperationSpec,
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -212,11 +213,11 @@ export class FileSystemsImpl implements FileSystems {
|
|||
get(
|
||||
resourceGroupName: string,
|
||||
fileSystemName: string,
|
||||
options?: FileSystemsGetOptionalParams
|
||||
options?: FileSystemsGetOptionalParams,
|
||||
): Promise<FileSystemsGetResponse> {
|
||||
return this.client.sendOperationRequest(
|
||||
{ resourceGroupName, fileSystemName, options },
|
||||
getOperationSpec
|
||||
getOperationSpec,
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -231,7 +232,7 @@ export class FileSystemsImpl implements FileSystems {
|
|||
resourceGroupName: string,
|
||||
fileSystemName: string,
|
||||
resource: FileSystemResource,
|
||||
options?: FileSystemsCreateOrUpdateOptionalParams
|
||||
options?: FileSystemsCreateOrUpdateOptionalParams,
|
||||
): Promise<
|
||||
SimplePollerLike<
|
||||
OperationState<FileSystemsCreateOrUpdateResponse>,
|
||||
|
@ -240,21 +241,20 @@ export class FileSystemsImpl implements FileSystems {
|
|||
> {
|
||||
const directSendOperation = async (
|
||||
args: coreClient.OperationArguments,
|
||||
spec: coreClient.OperationSpec
|
||||
spec: coreClient.OperationSpec,
|
||||
): Promise<FileSystemsCreateOrUpdateResponse> => {
|
||||
return this.client.sendOperationRequest(args, spec);
|
||||
};
|
||||
const sendOperationFn = async (
|
||||
args: coreClient.OperationArguments,
|
||||
spec: coreClient.OperationSpec
|
||||
spec: coreClient.OperationSpec,
|
||||
) => {
|
||||
let currentRawResponse:
|
||||
| coreClient.FullOperationResponse
|
||||
| undefined = undefined;
|
||||
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
||||
undefined;
|
||||
const providedCallback = args.options?.onResponse;
|
||||
const callback: coreClient.RawResponseCallback = (
|
||||
rawResponse: coreClient.FullOperationResponse,
|
||||
flatResponse: unknown
|
||||
flatResponse: unknown,
|
||||
) => {
|
||||
currentRawResponse = rawResponse;
|
||||
providedCallback?.(rawResponse, flatResponse);
|
||||
|
@ -263,8 +263,8 @@ export class FileSystemsImpl implements FileSystems {
|
|||
...args,
|
||||
options: {
|
||||
...args.options,
|
||||
onResponse: callback
|
||||
}
|
||||
onResponse: callback,
|
||||
},
|
||||
};
|
||||
const flatResponse = await directSendOperation(updatedArgs, spec);
|
||||
return {
|
||||
|
@ -272,15 +272,15 @@ export class FileSystemsImpl implements FileSystems {
|
|||
rawResponse: {
|
||||
statusCode: currentRawResponse!.status,
|
||||
body: currentRawResponse!.parsedBody,
|
||||
headers: currentRawResponse!.headers.toJSON()
|
||||
}
|
||||
headers: currentRawResponse!.headers.toJSON(),
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
const lro = createLroSpec({
|
||||
sendOperationFn,
|
||||
args: { resourceGroupName, fileSystemName, resource, options },
|
||||
spec: createOrUpdateOperationSpec
|
||||
spec: createOrUpdateOperationSpec,
|
||||
});
|
||||
const poller = await createHttpPoller<
|
||||
FileSystemsCreateOrUpdateResponse,
|
||||
|
@ -288,7 +288,7 @@ export class FileSystemsImpl implements FileSystems {
|
|||
>(lro, {
|
||||
restoreFrom: options?.resumeFrom,
|
||||
intervalInMs: options?.updateIntervalInMs,
|
||||
resourceLocationConfig: "azure-async-operation"
|
||||
resourceLocationConfig: "azure-async-operation",
|
||||
});
|
||||
await poller.poll();
|
||||
return poller;
|
||||
|
@ -305,13 +305,13 @@ export class FileSystemsImpl implements FileSystems {
|
|||
resourceGroupName: string,
|
||||
fileSystemName: string,
|
||||
resource: FileSystemResource,
|
||||
options?: FileSystemsCreateOrUpdateOptionalParams
|
||||
options?: FileSystemsCreateOrUpdateOptionalParams,
|
||||
): Promise<FileSystemsCreateOrUpdateResponse> {
|
||||
const poller = await this.beginCreateOrUpdate(
|
||||
resourceGroupName,
|
||||
fileSystemName,
|
||||
resource,
|
||||
options
|
||||
options,
|
||||
);
|
||||
return poller.pollUntilDone();
|
||||
}
|
||||
|
@ -327,11 +327,11 @@ export class FileSystemsImpl implements FileSystems {
|
|||
resourceGroupName: string,
|
||||
fileSystemName: string,
|
||||
properties: FileSystemResourceUpdate,
|
||||
options?: FileSystemsUpdateOptionalParams
|
||||
options?: FileSystemsUpdateOptionalParams,
|
||||
): Promise<FileSystemsUpdateResponse> {
|
||||
return this.client.sendOperationRequest(
|
||||
{ resourceGroupName, fileSystemName, properties, options },
|
||||
updateOperationSpec
|
||||
updateOperationSpec,
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -344,25 +344,29 @@ export class FileSystemsImpl implements FileSystems {
|
|||
async beginDelete(
|
||||
resourceGroupName: string,
|
||||
fileSystemName: string,
|
||||
options?: FileSystemsDeleteOptionalParams
|
||||
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
||||
options?: FileSystemsDeleteOptionalParams,
|
||||
): Promise<
|
||||
SimplePollerLike<
|
||||
OperationState<FileSystemsDeleteResponse>,
|
||||
FileSystemsDeleteResponse
|
||||
>
|
||||
> {
|
||||
const directSendOperation = async (
|
||||
args: coreClient.OperationArguments,
|
||||
spec: coreClient.OperationSpec
|
||||
): Promise<void> => {
|
||||
spec: coreClient.OperationSpec,
|
||||
): Promise<FileSystemsDeleteResponse> => {
|
||||
return this.client.sendOperationRequest(args, spec);
|
||||
};
|
||||
const sendOperationFn = async (
|
||||
args: coreClient.OperationArguments,
|
||||
spec: coreClient.OperationSpec
|
||||
spec: coreClient.OperationSpec,
|
||||
) => {
|
||||
let currentRawResponse:
|
||||
| coreClient.FullOperationResponse
|
||||
| undefined = undefined;
|
||||
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
||||
undefined;
|
||||
const providedCallback = args.options?.onResponse;
|
||||
const callback: coreClient.RawResponseCallback = (
|
||||
rawResponse: coreClient.FullOperationResponse,
|
||||
flatResponse: unknown
|
||||
flatResponse: unknown,
|
||||
) => {
|
||||
currentRawResponse = rawResponse;
|
||||
providedCallback?.(rawResponse, flatResponse);
|
||||
|
@ -371,8 +375,8 @@ export class FileSystemsImpl implements FileSystems {
|
|||
...args,
|
||||
options: {
|
||||
...args.options,
|
||||
onResponse: callback
|
||||
}
|
||||
onResponse: callback,
|
||||
},
|
||||
};
|
||||
const flatResponse = await directSendOperation(updatedArgs, spec);
|
||||
return {
|
||||
|
@ -380,20 +384,23 @@ export class FileSystemsImpl implements FileSystems {
|
|||
rawResponse: {
|
||||
statusCode: currentRawResponse!.status,
|
||||
body: currentRawResponse!.parsedBody,
|
||||
headers: currentRawResponse!.headers.toJSON()
|
||||
}
|
||||
headers: currentRawResponse!.headers.toJSON(),
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
const lro = createLroSpec({
|
||||
sendOperationFn,
|
||||
args: { resourceGroupName, fileSystemName, options },
|
||||
spec: deleteOperationSpec
|
||||
spec: deleteOperationSpec,
|
||||
});
|
||||
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
||||
const poller = await createHttpPoller<
|
||||
FileSystemsDeleteResponse,
|
||||
OperationState<FileSystemsDeleteResponse>
|
||||
>(lro, {
|
||||
restoreFrom: options?.resumeFrom,
|
||||
intervalInMs: options?.updateIntervalInMs,
|
||||
resourceLocationConfig: "azure-async-operation"
|
||||
resourceLocationConfig: "location",
|
||||
});
|
||||
await poller.poll();
|
||||
return poller;
|
||||
|
@ -408,12 +415,12 @@ export class FileSystemsImpl implements FileSystems {
|
|||
async beginDeleteAndWait(
|
||||
resourceGroupName: string,
|
||||
fileSystemName: string,
|
||||
options?: FileSystemsDeleteOptionalParams
|
||||
): Promise<void> {
|
||||
options?: FileSystemsDeleteOptionalParams,
|
||||
): Promise<FileSystemsDeleteResponse> {
|
||||
const poller = await this.beginDelete(
|
||||
resourceGroupName,
|
||||
fileSystemName,
|
||||
options
|
||||
options,
|
||||
);
|
||||
return poller.pollUntilDone();
|
||||
}
|
||||
|
@ -425,11 +432,11 @@ export class FileSystemsImpl implements FileSystems {
|
|||
*/
|
||||
private _listBySubscriptionNext(
|
||||
nextLink: string,
|
||||
options?: FileSystemsListBySubscriptionNextOptionalParams
|
||||
options?: FileSystemsListBySubscriptionNextOptionalParams,
|
||||
): Promise<FileSystemsListBySubscriptionNextResponse> {
|
||||
return this.client.sendOperationRequest(
|
||||
{ nextLink, options },
|
||||
listBySubscriptionNextOperationSpec
|
||||
listBySubscriptionNextOperationSpec,
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -442,11 +449,11 @@ export class FileSystemsImpl implements FileSystems {
|
|||
private _listByResourceGroupNext(
|
||||
resourceGroupName: string,
|
||||
nextLink: string,
|
||||
options?: FileSystemsListByResourceGroupNextOptionalParams
|
||||
options?: FileSystemsListByResourceGroupNextOptionalParams,
|
||||
): Promise<FileSystemsListByResourceGroupNextResponse> {
|
||||
return this.client.sendOperationRequest(
|
||||
{ resourceGroupName, nextLink, options },
|
||||
listByResourceGroupNextOperationSpec
|
||||
listByResourceGroupNextOperationSpec,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -458,80 +465,77 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|||
httpMethod: "GET",
|
||||
responses: {
|
||||
200: {
|
||||
bodyMapper: Mappers.FileSystemResourceListResult
|
||||
bodyMapper: Mappers.FileSystemResourceListResult,
|
||||
},
|
||||
default: {
|
||||
bodyMapper: Mappers.ErrorResponse
|
||||
}
|
||||
bodyMapper: Mappers.ErrorResponse,
|
||||
},
|
||||
},
|
||||
queryParameters: [Parameters.apiVersion],
|
||||
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
||||
headerParameters: [Parameters.accept],
|
||||
serializer
|
||||
serializer,
|
||||
};
|
||||
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
||||
path:
|
||||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems",
|
||||
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems",
|
||||
httpMethod: "GET",
|
||||
responses: {
|
||||
200: {
|
||||
bodyMapper: Mappers.FileSystemResourceListResult
|
||||
bodyMapper: Mappers.FileSystemResourceListResult,
|
||||
},
|
||||
default: {
|
||||
bodyMapper: Mappers.ErrorResponse
|
||||
}
|
||||
},
|
||||
queryParameters: [Parameters.apiVersion],
|
||||
urlParameters: [
|
||||
Parameters.$host,
|
||||
Parameters.subscriptionId,
|
||||
Parameters.resourceGroupName
|
||||
],
|
||||
headerParameters: [Parameters.accept],
|
||||
serializer
|
||||
};
|
||||
const getOperationSpec: coreClient.OperationSpec = {
|
||||
path:
|
||||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}",
|
||||
httpMethod: "GET",
|
||||
responses: {
|
||||
200: {
|
||||
bodyMapper: Mappers.FileSystemResource
|
||||
bodyMapper: Mappers.ErrorResponse,
|
||||
},
|
||||
default: {
|
||||
bodyMapper: Mappers.ErrorResponse
|
||||
}
|
||||
},
|
||||
queryParameters: [Parameters.apiVersion],
|
||||
urlParameters: [
|
||||
Parameters.$host,
|
||||
Parameters.subscriptionId,
|
||||
Parameters.resourceGroupName,
|
||||
Parameters.fileSystemName
|
||||
],
|
||||
headerParameters: [Parameters.accept],
|
||||
serializer
|
||||
serializer,
|
||||
};
|
||||
const getOperationSpec: coreClient.OperationSpec = {
|
||||
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}",
|
||||
httpMethod: "GET",
|
||||
responses: {
|
||||
200: {
|
||||
bodyMapper: Mappers.FileSystemResource,
|
||||
},
|
||||
default: {
|
||||
bodyMapper: Mappers.ErrorResponse,
|
||||
},
|
||||
},
|
||||
queryParameters: [Parameters.apiVersion],
|
||||
urlParameters: [
|
||||
Parameters.$host,
|
||||
Parameters.subscriptionId,
|
||||
Parameters.resourceGroupName,
|
||||
Parameters.fileSystemName,
|
||||
],
|
||||
headerParameters: [Parameters.accept],
|
||||
serializer,
|
||||
};
|
||||
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
||||
path:
|
||||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}",
|
||||
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}",
|
||||
httpMethod: "PUT",
|
||||
responses: {
|
||||
200: {
|
||||
bodyMapper: Mappers.FileSystemResource
|
||||
bodyMapper: Mappers.FileSystemResource,
|
||||
},
|
||||
201: {
|
||||
bodyMapper: Mappers.FileSystemResource
|
||||
bodyMapper: Mappers.FileSystemResource,
|
||||
},
|
||||
202: {
|
||||
bodyMapper: Mappers.FileSystemResource
|
||||
bodyMapper: Mappers.FileSystemResource,
|
||||
},
|
||||
204: {
|
||||
bodyMapper: Mappers.FileSystemResource
|
||||
bodyMapper: Mappers.FileSystemResource,
|
||||
},
|
||||
default: {
|
||||
bodyMapper: Mappers.ErrorResponse
|
||||
}
|
||||
bodyMapper: Mappers.ErrorResponse,
|
||||
},
|
||||
},
|
||||
requestBody: Parameters.resource,
|
||||
queryParameters: [Parameters.apiVersion],
|
||||
|
@ -539,23 +543,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|||
Parameters.$host,
|
||||
Parameters.subscriptionId,
|
||||
Parameters.resourceGroupName,
|
||||
Parameters.fileSystemName
|
||||
Parameters.fileSystemName,
|
||||
],
|
||||
headerParameters: [Parameters.accept, Parameters.contentType],
|
||||
mediaType: "json",
|
||||
serializer
|
||||
serializer,
|
||||
};
|
||||
const updateOperationSpec: coreClient.OperationSpec = {
|
||||
path:
|
||||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}",
|
||||
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}",
|
||||
httpMethod: "PATCH",
|
||||
responses: {
|
||||
200: {
|
||||
bodyMapper: Mappers.FileSystemResource
|
||||
bodyMapper: Mappers.FileSystemResource,
|
||||
},
|
||||
default: {
|
||||
bodyMapper: Mappers.ErrorResponse
|
||||
}
|
||||
bodyMapper: Mappers.ErrorResponse,
|
||||
},
|
||||
},
|
||||
requestBody: Parameters.properties,
|
||||
queryParameters: [Parameters.apiVersion],
|
||||
|
@ -563,71 +566,78 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|||
Parameters.$host,
|
||||
Parameters.subscriptionId,
|
||||
Parameters.resourceGroupName,
|
||||
Parameters.fileSystemName
|
||||
Parameters.fileSystemName,
|
||||
],
|
||||
headerParameters: [Parameters.accept, Parameters.contentType],
|
||||
mediaType: "json",
|
||||
serializer
|
||||
serializer,
|
||||
};
|
||||
const deleteOperationSpec: coreClient.OperationSpec = {
|
||||
path:
|
||||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}",
|
||||
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}",
|
||||
httpMethod: "DELETE",
|
||||
responses: {
|
||||
200: {},
|
||||
201: {},
|
||||
202: {},
|
||||
204: {},
|
||||
200: {
|
||||
headersMapper: Mappers.FileSystemsDeleteHeaders,
|
||||
},
|
||||
201: {
|
||||
headersMapper: Mappers.FileSystemsDeleteHeaders,
|
||||
},
|
||||
202: {
|
||||
headersMapper: Mappers.FileSystemsDeleteHeaders,
|
||||
},
|
||||
204: {
|
||||
headersMapper: Mappers.FileSystemsDeleteHeaders,
|
||||
},
|
||||
default: {
|
||||
bodyMapper: Mappers.ErrorResponse
|
||||
}
|
||||
bodyMapper: Mappers.ErrorResponse,
|
||||
},
|
||||
},
|
||||
queryParameters: [Parameters.apiVersion],
|
||||
urlParameters: [
|
||||
Parameters.$host,
|
||||
Parameters.subscriptionId,
|
||||
Parameters.resourceGroupName,
|
||||
Parameters.fileSystemName
|
||||
Parameters.fileSystemName,
|
||||
],
|
||||
headerParameters: [Parameters.accept],
|
||||
serializer
|
||||
serializer,
|
||||
};
|
||||
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
||||
path: "{nextLink}",
|
||||
httpMethod: "GET",
|
||||
responses: {
|
||||
200: {
|
||||
bodyMapper: Mappers.FileSystemResourceListResult
|
||||
bodyMapper: Mappers.FileSystemResourceListResult,
|
||||
},
|
||||
default: {
|
||||
bodyMapper: Mappers.ErrorResponse
|
||||
}
|
||||
bodyMapper: Mappers.ErrorResponse,
|
||||
},
|
||||
},
|
||||
urlParameters: [
|
||||
Parameters.$host,
|
||||
Parameters.nextLink,
|
||||
Parameters.subscriptionId
|
||||
Parameters.subscriptionId,
|
||||
],
|
||||
headerParameters: [Parameters.accept],
|
||||
serializer
|
||||
serializer,
|
||||
};
|
||||
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
||||
path: "{nextLink}",
|
||||
httpMethod: "GET",
|
||||
responses: {
|
||||
200: {
|
||||
bodyMapper: Mappers.FileSystemResourceListResult
|
||||
bodyMapper: Mappers.FileSystemResourceListResult,
|
||||
},
|
||||
default: {
|
||||
bodyMapper: Mappers.ErrorResponse
|
||||
}
|
||||
bodyMapper: Mappers.ErrorResponse,
|
||||
},
|
||||
},
|
||||
urlParameters: [
|
||||
Parameters.$host,
|
||||
Parameters.nextLink,
|
||||
Parameters.subscriptionId,
|
||||
Parameters.resourceGroupName
|
||||
Parameters.resourceGroupName,
|
||||
],
|
||||
headerParameters: [Parameters.accept],
|
||||
serializer
|
||||
serializer,
|
||||
};
|
||||
|
|
|
@ -18,7 +18,7 @@ import {
|
|||
OperationsListNextOptionalParams,
|
||||
OperationsListOptionalParams,
|
||||
OperationsListResponse,
|
||||
OperationsListNextResponse
|
||||
OperationsListNextResponse,
|
||||
} from "../models";
|
||||
|
||||
/// <reference lib="esnext.asynciterable" />
|
||||
|
@ -39,7 +39,7 @@ export class OperationsImpl implements Operations {
|
|||
* @param options The options parameters.
|
||||
*/
|
||||
public list(
|
||||
options?: OperationsListOptionalParams
|
||||
options?: OperationsListOptionalParams,
|
||||
): PagedAsyncIterableIterator<Operation> {
|
||||
const iter = this.listPagingAll(options);
|
||||
return {
|
||||
|
@ -54,13 +54,13 @@ export class OperationsImpl implements Operations {
|
|||
throw new Error("maxPageSize is not supported by this operation.");
|
||||
}
|
||||
return this.listPagingPage(options, settings);
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
private async *listPagingPage(
|
||||
options?: OperationsListOptionalParams,
|
||||
settings?: PageSettings
|
||||
settings?: PageSettings,
|
||||
): AsyncIterableIterator<Operation[]> {
|
||||
let result: OperationsListResponse;
|
||||
let continuationToken = settings?.continuationToken;
|
||||
|
@ -81,7 +81,7 @@ export class OperationsImpl implements Operations {
|
|||
}
|
||||
|
||||
private async *listPagingAll(
|
||||
options?: OperationsListOptionalParams
|
||||
options?: OperationsListOptionalParams,
|
||||
): AsyncIterableIterator<Operation> {
|
||||
for await (const page of this.listPagingPage(options)) {
|
||||
yield* page;
|
||||
|
@ -93,7 +93,7 @@ export class OperationsImpl implements Operations {
|
|||
* @param options The options parameters.
|
||||
*/
|
||||
private _list(
|
||||
options?: OperationsListOptionalParams
|
||||
options?: OperationsListOptionalParams,
|
||||
): Promise<OperationsListResponse> {
|
||||
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
||||
}
|
||||
|
@ -105,11 +105,11 @@ export class OperationsImpl implements Operations {
|
|||
*/
|
||||
private _listNext(
|
||||
nextLink: string,
|
||||
options?: OperationsListNextOptionalParams
|
||||
options?: OperationsListNextOptionalParams,
|
||||
): Promise<OperationsListNextResponse> {
|
||||
return this.client.sendOperationRequest(
|
||||
{ nextLink, options },
|
||||
listNextOperationSpec
|
||||
listNextOperationSpec,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = {
|
|||
httpMethod: "GET",
|
||||
responses: {
|
||||
200: {
|
||||
bodyMapper: Mappers.OperationListResult
|
||||
bodyMapper: Mappers.OperationListResult,
|
||||
},
|
||||
default: {
|
||||
bodyMapper: Mappers.ErrorResponse
|
||||
}
|
||||
bodyMapper: Mappers.ErrorResponse,
|
||||
},
|
||||
},
|
||||
queryParameters: [Parameters.apiVersion],
|
||||
urlParameters: [Parameters.$host],
|
||||
headerParameters: [Parameters.accept],
|
||||
serializer
|
||||
serializer,
|
||||
};
|
||||
const listNextOperationSpec: coreClient.OperationSpec = {
|
||||
path: "{nextLink}",
|
||||
httpMethod: "GET",
|
||||
responses: {
|
||||
200: {
|
||||
bodyMapper: Mappers.OperationListResult
|
||||
bodyMapper: Mappers.OperationListResult,
|
||||
},
|
||||
default: {
|
||||
bodyMapper: Mappers.ErrorResponse
|
||||
}
|
||||
bodyMapper: Mappers.ErrorResponse,
|
||||
},
|
||||
},
|
||||
urlParameters: [Parameters.$host, Parameters.nextLink],
|
||||
headerParameters: [Parameters.accept],
|
||||
serializer
|
||||
serializer,
|
||||
};
|
||||
|
|
|
@ -19,7 +19,8 @@ import {
|
|||
FileSystemResourceUpdate,
|
||||
FileSystemsUpdateOptionalParams,
|
||||
FileSystemsUpdateResponse,
|
||||
FileSystemsDeleteOptionalParams
|
||||
FileSystemsDeleteOptionalParams,
|
||||
FileSystemsDeleteResponse,
|
||||
} from "../models";
|
||||
|
||||
/// <reference lib="esnext.asynciterable" />
|
||||
|
@ -30,7 +31,7 @@ export interface FileSystems {
|
|||
* @param options The options parameters.
|
||||
*/
|
||||
listBySubscription(
|
||||
options?: FileSystemsListBySubscriptionOptionalParams
|
||||
options?: FileSystemsListBySubscriptionOptionalParams,
|
||||
): PagedAsyncIterableIterator<FileSystemResource>;
|
||||
/**
|
||||
* List FileSystemResource resources by resource group
|
||||
|
@ -39,7 +40,7 @@ export interface FileSystems {
|
|||
*/
|
||||
listByResourceGroup(
|
||||
resourceGroupName: string,
|
||||
options?: FileSystemsListByResourceGroupOptionalParams
|
||||
options?: FileSystemsListByResourceGroupOptionalParams,
|
||||
): PagedAsyncIterableIterator<FileSystemResource>;
|
||||
/**
|
||||
* Get a FileSystemResource
|
||||
|
@ -50,7 +51,7 @@ export interface FileSystems {
|
|||
get(
|
||||
resourceGroupName: string,
|
||||
fileSystemName: string,
|
||||
options?: FileSystemsGetOptionalParams
|
||||
options?: FileSystemsGetOptionalParams,
|
||||
): Promise<FileSystemsGetResponse>;
|
||||
/**
|
||||
* Create a FileSystemResource
|
||||
|
@ -63,7 +64,7 @@ export interface FileSystems {
|
|||
resourceGroupName: string,
|
||||
fileSystemName: string,
|
||||
resource: FileSystemResource,
|
||||
options?: FileSystemsCreateOrUpdateOptionalParams
|
||||
options?: FileSystemsCreateOrUpdateOptionalParams,
|
||||
): Promise<
|
||||
SimplePollerLike<
|
||||
OperationState<FileSystemsCreateOrUpdateResponse>,
|
||||
|
@ -81,7 +82,7 @@ export interface FileSystems {
|
|||
resourceGroupName: string,
|
||||
fileSystemName: string,
|
||||
resource: FileSystemResource,
|
||||
options?: FileSystemsCreateOrUpdateOptionalParams
|
||||
options?: FileSystemsCreateOrUpdateOptionalParams,
|
||||
): Promise<FileSystemsCreateOrUpdateResponse>;
|
||||
/**
|
||||
* Update a FileSystemResource
|
||||
|
@ -94,7 +95,7 @@ export interface FileSystems {
|
|||
resourceGroupName: string,
|
||||
fileSystemName: string,
|
||||
properties: FileSystemResourceUpdate,
|
||||
options?: FileSystemsUpdateOptionalParams
|
||||
options?: FileSystemsUpdateOptionalParams,
|
||||
): Promise<FileSystemsUpdateResponse>;
|
||||
/**
|
||||
* Delete a FileSystemResource
|
||||
|
@ -105,8 +106,13 @@ export interface FileSystems {
|
|||
beginDelete(
|
||||
resourceGroupName: string,
|
||||
fileSystemName: string,
|
||||
options?: FileSystemsDeleteOptionalParams
|
||||
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
||||
options?: FileSystemsDeleteOptionalParams,
|
||||
): Promise<
|
||||
SimplePollerLike<
|
||||
OperationState<FileSystemsDeleteResponse>,
|
||||
FileSystemsDeleteResponse
|
||||
>
|
||||
>;
|
||||
/**
|
||||
* Delete a FileSystemResource
|
||||
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
||||
|
@ -116,6 +122,6 @@ export interface FileSystems {
|
|||
beginDeleteAndWait(
|
||||
resourceGroupName: string,
|
||||
fileSystemName: string,
|
||||
options?: FileSystemsDeleteOptionalParams
|
||||
): Promise<void>;
|
||||
options?: FileSystemsDeleteOptionalParams,
|
||||
): Promise<FileSystemsDeleteResponse>;
|
||||
}
|
||||
|
|
|
@ -17,6 +17,6 @@ export interface Operations {
|
|||
* @param options The options parameters.
|
||||
*/
|
||||
list(
|
||||
options?: OperationsListOptionalParams
|
||||
options?: OperationsListOptionalParams,
|
||||
): PagedAsyncIterableIterator<Operation>;
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined {
|
|||
|
||||
export function setContinuationToken(
|
||||
page: unknown,
|
||||
continuationToken: string | undefined
|
||||
continuationToken: string | undefined,
|
||||
): void {
|
||||
if (typeof page !== "object" || page === null || !continuationToken) {
|
||||
return;
|
||||
|
|
|
@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|||
import {
|
||||
PipelineRequest,
|
||||
PipelineResponse,
|
||||
SendRequest
|
||||
SendRequest,
|
||||
} from "@azure/core-rest-pipeline";
|
||||
import * as coreAuth from "@azure/core-auth";
|
||||
import { OperationsImpl, FileSystemsImpl } from "./operations";
|
||||
|
@ -32,7 +32,7 @@ export class QumuloStorage extends coreClient.ServiceClient {
|
|||
constructor(
|
||||
credentials: coreAuth.TokenCredential,
|
||||
subscriptionId: string,
|
||||
options?: QumuloStorageOptionalParams
|
||||
options?: QumuloStorageOptionalParams,
|
||||
) {
|
||||
if (credentials === undefined) {
|
||||
throw new Error("'credentials' cannot be null");
|
||||
|
@ -47,10 +47,10 @@ export class QumuloStorage extends coreClient.ServiceClient {
|
|||
}
|
||||
const defaults: QumuloStorageOptionalParams = {
|
||||
requestContentType: "application/json; charset=utf-8",
|
||||
credential: credentials
|
||||
credential: credentials,
|
||||
};
|
||||
|
||||
const packageDetails = `azsdk-js-arm-qumulo/1.0.1`;
|
||||
const packageDetails = `azsdk-js-arm-qumulo/2.0.0`;
|
||||
const userAgentPrefix =
|
||||
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
||||
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
||||
|
@ -60,20 +60,21 @@ export class QumuloStorage extends coreClient.ServiceClient {
|
|||
...defaults,
|
||||
...options,
|
||||
userAgentOptions: {
|
||||
userAgentPrefix
|
||||
userAgentPrefix,
|
||||
},
|
||||
endpoint:
|
||||
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
||||
options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
||||
};
|
||||
super(optionsWithDefaults);
|
||||
|
||||
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
||||
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
||||
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
||||
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
|
||||
options.pipeline.getOrderedPolicies();
|
||||
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
||||
(pipelinePolicy) =>
|
||||
pipelinePolicy.name ===
|
||||
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
||||
coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
||||
);
|
||||
}
|
||||
if (
|
||||
|
@ -83,7 +84,7 @@ export class QumuloStorage extends coreClient.ServiceClient {
|
|||
!bearerTokenAuthenticationPolicyFound
|
||||
) {
|
||||
this.pipeline.removePolicy({
|
||||
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
||||
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
||||
});
|
||||
this.pipeline.addPolicy(
|
||||
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
||||
|
@ -93,9 +94,9 @@ export class QumuloStorage extends coreClient.ServiceClient {
|
|||
`${optionsWithDefaults.endpoint}/.default`,
|
||||
challengeCallbacks: {
|
||||
authorizeRequestOnChallenge:
|
||||
coreClient.authorizeRequestOnClaimChallenge
|
||||
}
|
||||
})
|
||||
coreClient.authorizeRequestOnClaimChallenge,
|
||||
},
|
||||
}),
|
||||
);
|
||||
}
|
||||
// Parameter assignments
|
||||
|
@ -103,7 +104,7 @@ export class QumuloStorage extends coreClient.ServiceClient {
|
|||
|
||||
// Assigning values to Constant parameters
|
||||
this.$host = options.$host || "https://management.azure.com";
|
||||
this.apiVersion = options.apiVersion || "2022-10-12";
|
||||
this.apiVersion = options.apiVersion || "2024-06-19";
|
||||
this.operations = new OperationsImpl(this);
|
||||
this.fileSystems = new FileSystemsImpl(this);
|
||||
this.addCustomApiVersionPolicy(options.apiVersion);
|
||||
|
@ -118,7 +119,7 @@ export class QumuloStorage extends coreClient.ServiceClient {
|
|||
name: "CustomApiVersionPolicy",
|
||||
async sendRequest(
|
||||
request: PipelineRequest,
|
||||
next: SendRequest
|
||||
next: SendRequest,
|
||||
): Promise<PipelineResponse> {
|
||||
const param = request.url.split("?");
|
||||
if (param.length > 1) {
|
||||
|
@ -132,7 +133,7 @@ export class QumuloStorage extends coreClient.ServiceClient {
|
|||
request.url = param[0] + "?" + newParams.join("&");
|
||||
}
|
||||
return next(request);
|
||||
}
|
||||
},
|
||||
};
|
||||
this.pipeline.addPolicy(apiVersionPolicy);
|
||||
}
|
||||
|
|
|
@ -19,14 +19,15 @@ import { Context } from "mocha";
|
|||
import { QumuloStorage } from "../src/qumuloStorage";
|
||||
|
||||
const replaceableVariables: Record<string, string> = {
|
||||
AZURE_CLIENT_ID: "azure_client_id",
|
||||
AZURE_CLIENT_SECRET: "azure_client_secret",
|
||||
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
||||
SUBSCRIPTION_ID: "azure_subscription_id"
|
||||
};
|
||||
|
||||
const recorderOptions: RecorderStartOptions = {
|
||||
envSetupForPlayback: replaceableVariables
|
||||
envSetupForPlayback: replaceableVariables,
|
||||
removeCentralSanitizers: [
|
||||
"AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section
|
||||
"AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section
|
||||
],
|
||||
};
|
||||
|
||||
export const testPollingOptions = {
|
||||
|
|
Загрузка…
Ссылка в новой задаче