Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-netapp] [NetAppFiles] Add api version 2022-07-01-preview take 2 #5023

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions sdk/netapp/arm-netapp/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "4f4044394791773e6e7e82a9bd90d3935caaca1b",
"commit": "5d44006b40b13174c0e246a9ed8f484b202ea616",
"readme": "specification/netapp/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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\netapp\\resource-manager\\readme.md --use=@autorest/[email protected].9 --generate-sample=true",
"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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/netapp/resource-manager/readme.md --use=@autorest/[email protected].10",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
"use": "@autorest/[email protected].9"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.0",
"use": "@autorest/[email protected].10"
}
14 changes: 3 additions & 11 deletions sdk/netapp/arm-netapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"mkdirp": "^2.1.2",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~5.0.0",
"typescript": "~4.8.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"dotenv": "^16.0.0",
Expand Down Expand Up @@ -111,13 +111,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp"
}
12 changes: 0 additions & 12 deletions sdk/netapp/arm-netapp/review/arm-netapp.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,18 +264,6 @@ export interface BackupPolicy extends TrackedResource {
weeklyBackupsToKeep?: number;
}

// @public
export interface BackupPolicyDetails extends TrackedResource {
readonly backupPolicyId?: string;
dailyBackupsToKeep?: number;
enabled?: boolean;
monthlyBackupsToKeep?: number;
readonly provisioningState?: string;
readonly volumeBackups?: VolumeBackups[];
readonly volumesAssigned?: number;
weeklyBackupsToKeep?: number;
}

// @public
export interface BackupPolicyPatch {
readonly backupPolicyId?: string;
Expand Down
32 changes: 0 additions & 32 deletions sdk/netapp/arm-netapp/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1829,38 +1829,6 @@ export interface VolumeQuotaRule extends TrackedResource {
quotaTarget?: string;
}

/** Backup policy properties */
export interface BackupPolicyDetails extends TrackedResource {
/**
* Backup Policy Resource ID
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly backupPolicyId?: string;
/**
* Azure lifecycle management
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: string;
/** Daily backups count to keep */
dailyBackupsToKeep?: number;
/** Weekly backups count to keep */
weeklyBackupsToKeep?: number;
/** Monthly backups count to keep */
monthlyBackupsToKeep?: number;
/**
* Volumes using current backup policy
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly volumesAssigned?: number;
/** The property to decide policy is enabled or not */
enabled?: boolean;
/**
* A list of volumes assigned to this policy
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly volumeBackups?: VolumeBackups[];
}

/** Defines headers for Volumes_breakFileLocks operation. */
export interface VolumesBreakFileLocksHeaders {
location?: string;
Expand Down
68 changes: 0 additions & 68 deletions sdk/netapp/arm-netapp/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4695,74 +4695,6 @@ export const VolumeQuotaRule: coreClient.CompositeMapper = {
}
};

export const BackupPolicyDetails: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "BackupPolicyDetails",
modelProperties: {
...TrackedResource.type.modelProperties,
backupPolicyId: {
serializedName: "properties.backupPolicyId",
readOnly: true,
type: {
name: "String"
}
},
provisioningState: {
serializedName: "properties.provisioningState",
readOnly: true,
type: {
name: "String"
}
},
dailyBackupsToKeep: {
serializedName: "properties.dailyBackupsToKeep",
type: {
name: "Number"
}
},
weeklyBackupsToKeep: {
serializedName: "properties.weeklyBackupsToKeep",
type: {
name: "Number"
}
},
monthlyBackupsToKeep: {
serializedName: "properties.monthlyBackupsToKeep",
type: {
name: "Number"
}
},
volumesAssigned: {
serializedName: "properties.volumesAssigned",
readOnly: true,
type: {
name: "Number"
}
},
enabled: {
serializedName: "properties.enabled",
type: {
name: "Boolean"
}
},
volumeBackups: {
serializedName: "properties.volumeBackups",
readOnly: true,
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "VolumeBackups"
}
}
}
}
}
}
};

export const VolumesBreakFileLocksHeaders: coreClient.CompositeMapper = {
type: {
name: "Composite",
Expand Down
43 changes: 43 additions & 0 deletions sdk/netapp/arm-netapp/test/sampleTest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* 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.
*/

import {
Recorder,
RecorderStartOptions,
env
} from "@azure-tools/test-recorder";
import { assert } from "chai";
import { Context } from "mocha";

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
};

describe("My test", () => {
let recorder: Recorder;

beforeEach(async function(this: Context) {
recorder = new Recorder(this.currentTest);
await recorder.start(recorderOptions);
});

afterEach(async function() {
await recorder.stop();
});

it("sample test", async function() {
console.log("Hi, I'm a test!");
});
});
10 changes: 2 additions & 8 deletions sdk/netapp/arm-netapp/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@
],
"declaration": true,
"outDir": "./dist-esm",
"importHelpers": true,
"paths": {
"@azure/arm-netapp": [
"./src/index"
]
}
"importHelpers": true
},
"include": [
"./src/**/*.ts",
"./test/**/*.ts",
"samples-dev/**/*.ts"
"./test/**/*.ts"
],
"exclude": [
"node_modules"
Expand Down