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-standbypool] Adding IsZoneResilientProvisioningAllowed property in the response for location capabilities api #12322

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
682 changes: 341 additions & 341 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions sdk/standbypool/arm-standbypool/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Release History

## 2.0.0 (2024-10-08)

### Features Added

- Added Interface ErrorAdditionalInfo
- Added Interface ErrorDetail
- Added Interface ErrorResponse
- Added Type Alias ResourceProvisioningState
- Added Type Alias Versions
- Added Enum KnownResourceProvisioningState
- Enum KnownOrigin has a new value "user,system"
- Enum KnownOrigin has a new value system
- Enum KnownOrigin has a new value user
- Enum KnownRefillPolicy has a new value always

### Breaking Changes

- Removed Enum KnownProvisioningState
- Enum KnownOrigin no longer has value System
- Enum KnownOrigin no longer has value User
- Enum KnownOrigin no longer has value UserSystem
- Enum KnownRefillPolicy no longer has value Always


## 1.0.0 (2024-09-11)

### Features Added
Expand Down
24 changes: 11 additions & 13 deletions sdk/standbypool/arm-standbypool/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# Azure StandbyPoolManagement client library for JavaScript
# Azure StandbyPool client library for JavaScript

This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure StandbyPoolManagement client.
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure StandbyPool client.



[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/standbypool/arm-standbypool) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-standbypool) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-standbypool?view=azure-node-preview) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started

Expand All @@ -24,16 +22,16 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP

### Install the `@azure/arm-standbypool` package

Install the Azure StandbyPoolManagement client library for JavaScript with `npm`:
Install the Azure StandbyPool client library for JavaScript with `npm`:

```bash
npm install @azure/arm-standbypool
```

### Create and authenticate a `StandbyPoolManagementClient`
### Create and authenticate a `StandbyPoolClient`

To create a client object to access the Azure StandbyPoolManagement API, you will need the `endpoint` of your Azure StandbyPoolManagement resource and a `credential`. The Azure StandbyPoolManagement client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure StandbyPoolManagement resource in the [Azure Portal][azure_portal].
To create a client object to access the Azure StandbyPool API, you will need the `endpoint` of your Azure StandbyPool resource and a `credential`. The Azure StandbyPool client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure StandbyPool resource in the [Azure Portal][azure_portal].

You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).

Expand All @@ -49,19 +47,19 @@ Set the values of the client ID, tenant ID, and client secret of the AAD applica
For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).

```javascript
const { StandbyPoolManagementClient } = require("@azure/arm-standbypool");
const { StandbyPoolClient } = require("@azure/arm-standbypool");
const { DefaultAzureCredential } = require("@azure/identity");
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new StandbyPoolManagementClient(new DefaultAzureCredential(), subscriptionId);
const client = new StandbyPoolClient(new DefaultAzureCredential(), subscriptionId);

// For client-side applications running in the browser, use this code instead:
// const credential = new InteractiveBrowserCredential({
// tenantId: "<YOUR_TENANT_ID>",
// clientId: "<YOUR_CLIENT_ID>"
// });
// const client = new StandbyPoolManagementClient(credential, subscriptionId);
// const client = new StandbyPoolClient(credential, subscriptionId);
```


Expand All @@ -70,9 +68,9 @@ To use this client library in the browser, first you need to use a bundler. For

## Key concepts

### StandbyPoolManagementClient
### StandbyPoolClient

`StandbyPoolManagementClient` is the primary interface for developers using the Azure StandbyPoolManagement client library. Explore the methods on this client object to understand the different features of the Azure StandbyPoolManagement service that you can access.
`StandbyPoolClient` is the primary interface for developers using the Azure StandbyPool client library. Explore the methods on this client object to understand the different features of the Azure StandbyPool service that you can access.

## Troubleshooting

Expand Down
6 changes: 0 additions & 6 deletions sdk/standbypool/arm-standbypool/assets.json

This file was deleted.

6 changes: 3 additions & 3 deletions sdk/standbypool/arm-standbypool/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default [
"@azure/azure-sdk/ts-package-json-module": "off",
"@azure/azure-sdk/ts-package-json-files-required": "off",
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
"tsdoc/syntax": "warn",
},
},
"tsdoc/syntax": "warn"
}
}
];
98 changes: 56 additions & 42 deletions sdk/standbypool/arm-standbypool/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure/arm-standbypool",
"version": "1.0.0",
"version": "2.0.0",
"description": "A generated SDK for StandbyPoolClient.",
"engines": {
"node": ">=18.0.0"
Expand All @@ -11,6 +11,7 @@
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts",
"./api": "./src/api/index.ts",
"./models": "./src/models/index.ts"
},
"dialects": [
Expand Down Expand Up @@ -56,68 +57,59 @@
]
},
"dependencies": {
"@azure/core-util": "^1.9.2",
"@azure-rest/core-client": "^2.1.0",
"@azure/abort-controller": "^2.1.2",
"@azure/core-auth": "^1.6.0",
"@azure/core-lro": "^3.0.0",
"@azure/core-rest-pipeline": "^1.5.0",
"@azure/core-util": "^1.9.2",
"@azure/logger": "^1.0.0",
"tslib": "^2.6.2"
"tslib": "^2.6.2",
"@azure/core-lro": "^3.0.0",
"@azure/abort-controller": "^2.1.2"
},
"devDependencies": {
"@azure-tools/test-credential": "^2.0.0",
"@azure-tools/test-recorder": "^4.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
"@azure/identity": "^4.2.1",
"dotenv": "^16.0.0",
"@microsoft/api-extractor": "^7.40.3",
"@types/node": "^18.0.0",
"@vitest/browser": "^2.0.5",
"@vitest/coverage-istanbul": "^2.0.5",
"dotenv": "^16.0.0",
"eslint": "^8.55.0",
"mkdirp": "^3.0.1",
"playwright": "^1.41.2",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"mkdirp": "^3.0.1",
"typescript": "~5.5.3",
"tshy": "^1.11.1",
"typescript": "~5.6.2",
"vitest": "^2.0.5"
"@azure/identity": "^4.2.1",
"@vitest/browser": "^2.0.5",
"@vitest/coverage-istanbul": "^2.0.5",
"playwright": "^1.41.2",
"vitest": "^2.0.5",
"@azure-tools/test-credential": "^2.0.0",
"@azure-tools/test-recorder": "^4.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/eslint-plugin-azure-sdk": "^3.0.0"
},
"scripts": {
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
"build": "npm run clean && tshy && mkdirp ./review && dev-tool run extract-api",
"build:samples": "dev-tool run typecheck --paths samples-dev/*.ts && dev-tool samples publish -f",
"build:test": "npm run clean && tshy && dev-tool run build-test",
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"",
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"execute:samples": "dev-tool samples run samples-dev",
"extract-api": "rimraf review && mkdirp ./review && dev-tool run extract-api",
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"",
"generate:client": "echo skipped",
"pack": "npm pack 2>&1",
"lint": "eslint package.json api-extractor.json src test",
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser",
"unit-test:node": "dev-tool run test:vitest",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "echo skipped",
"integration-test:node": "echo skipped",
"lint": "echo skipped",
"lint:fix": "echo skipped",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"pack": "npm pack 2>&1",
"test": "npm run clean && tshy && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test",
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
"build:samples": "echo skipped",
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
"execute:samples": "echo skipped",
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
"generate:client": "echo skipped",
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"build:test": "npm run clean && tshy && dev-tool run build-test",
"build": "npm run clean && tshy && mkdirp ./review && dev-tool run extract-api",
"test:node": "npm run clean && tshy && npm run unit-test:node && npm run integration-test:node",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "npm run build:test && dev-tool run test:vitest --browser",
"unit-test:node": "dev-tool run test:vitest",
"update-snippets": "echo skipped"
},
"//sampleConfiguration": {
"productName": "@azure/arm-standbypool",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-standbypool?view=azure-node-preview"
"test": "npm run clean && tshy && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test"
},
"exports": {
"./package.json": "./package.json",
Expand All @@ -143,6 +135,28 @@
"default": "./dist/commonjs/index.js"
}
},
"./api": {
"browser": {
"source": "./src/api/index.ts",
"types": "./dist/browser/api/index.d.ts",
"default": "./dist/browser/api/index.js"
},
"react-native": {
"source": "./src/api/index.ts",
"types": "./dist/react-native/api/index.d.ts",
"default": "./dist/react-native/api/index.js"
},
"import": {
"source": "./src/api/index.ts",
"types": "./dist/esm/api/index.d.ts",
"default": "./dist/esm/api/index.js"
},
"require": {
"source": "./src/api/index.ts",
"types": "./dist/commonjs/api/index.d.ts",
"default": "./dist/commonjs/api/index.js"
}
},
"./models": {
"browser": {
"source": "./src/models/index.ts",
Expand Down
85 changes: 85 additions & 0 deletions sdk/standbypool/arm-standbypool/review/arm-standbypool-api.api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
## API Report File for "@azure/arm-standbypool"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).

```ts

import { Client } from '@azure-rest/core-client';
import { ClientOptions } from '@azure-rest/core-client';
import { OperationOptions } from '@azure-rest/core-client';
import { OperationState } from '@azure/core-lro';
import { PollerLike } from '@azure/core-lro';
import { TokenCredential } from '@azure/core-auth';

// @public (undocumented)
export function createStandbyPoolManagement(credential: TokenCredential, options?: StandbyPoolManagementClientOptionalParams): StandbyPoolContext;

// @public
export function operationsList(context: StandbyPoolContext, options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;

// @public
export function standbyContainerGroupPoolRuntimeViewsGet(context: StandbyPoolContext, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, runtimeView: string, options?: StandbyContainerGroupPoolRuntimeViewsGetOptionalParams): Promise<StandbyContainerGroupPoolRuntimeViewResource>;

// @public
export function standbyContainerGroupPoolRuntimeViewsListByStandbyPool(context: StandbyPoolContext, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, options?: StandbyContainerGroupPoolRuntimeViewsListByStandbyPoolOptionalParams): PagedAsyncIterableIterator<StandbyContainerGroupPoolRuntimeViewResource>;

// @public
export function standbyContainerGroupPoolsCreateOrUpdate(context: StandbyPoolContext, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, resource: StandbyContainerGroupPoolResource, options?: StandbyContainerGroupPoolsCreateOrUpdateOptionalParams): PollerLike<OperationState<StandbyContainerGroupPoolResource>, StandbyContainerGroupPoolResource>;

// @public
export function standbyContainerGroupPoolsDelete(context: StandbyPoolContext, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, options?: StandbyContainerGroupPoolsDeleteOptionalParams): PollerLike<OperationState<void>, void>;

// @public
export function standbyContainerGroupPoolsGet(context: StandbyPoolContext, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, options?: StandbyContainerGroupPoolsGetOptionalParams): Promise<StandbyContainerGroupPoolResource>;

// @public
export function standbyContainerGroupPoolsListByResourceGroup(context: StandbyPoolContext, subscriptionId: string, resourceGroupName: string, options?: StandbyContainerGroupPoolsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<StandbyContainerGroupPoolResource>;

// @public
export function standbyContainerGroupPoolsListBySubscription(context: StandbyPoolContext, subscriptionId: string, options?: StandbyContainerGroupPoolsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<StandbyContainerGroupPoolResource>;

// @public
export function standbyContainerGroupPoolsUpdate(context: StandbyPoolContext, subscriptionId: string, resourceGroupName: string, standbyContainerGroupPoolName: string, properties: StandbyContainerGroupPoolResourceUpdate, options?: StandbyContainerGroupPoolsUpdateOptionalParams): Promise<StandbyContainerGroupPoolResource>;

// @public (undocumented)
export interface StandbyPoolContext extends Client {
}

// @public
export interface StandbyPoolManagementClientOptionalParams extends ClientOptions {
apiVersion?: string;
}

// @public
export function standbyVirtualMachinePoolRuntimeViewsGet(context: StandbyPoolContext, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, runtimeView: string, options?: StandbyVirtualMachinePoolRuntimeViewsGetOptionalParams): Promise<StandbyVirtualMachinePoolRuntimeViewResource>;

// @public
export function standbyVirtualMachinePoolRuntimeViewsListByStandbyPool(context: StandbyPoolContext, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, options?: StandbyVirtualMachinePoolRuntimeViewsListByStandbyPoolOptionalParams): PagedAsyncIterableIterator<StandbyVirtualMachinePoolRuntimeViewResource>;

// @public
export function standbyVirtualMachinePoolsCreateOrUpdate(context: StandbyPoolContext, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, resource: StandbyVirtualMachinePoolResource, options?: StandbyVirtualMachinePoolsCreateOrUpdateOptionalParams): PollerLike<OperationState<StandbyVirtualMachinePoolResource>, StandbyVirtualMachinePoolResource>;

// @public
export function standbyVirtualMachinePoolsDelete(context: StandbyPoolContext, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, options?: StandbyVirtualMachinePoolsDeleteOptionalParams): PollerLike<OperationState<void>, void>;

// @public
export function standbyVirtualMachinePoolsGet(context: StandbyPoolContext, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, options?: StandbyVirtualMachinePoolsGetOptionalParams): Promise<StandbyVirtualMachinePoolResource>;

// @public
export function standbyVirtualMachinePoolsListByResourceGroup(context: StandbyPoolContext, subscriptionId: string, resourceGroupName: string, options?: StandbyVirtualMachinePoolsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<StandbyVirtualMachinePoolResource>;

// @public
export function standbyVirtualMachinePoolsListBySubscription(context: StandbyPoolContext, subscriptionId: string, options?: StandbyVirtualMachinePoolsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<StandbyVirtualMachinePoolResource>;

// @public
export function standbyVirtualMachinePoolsUpdate(context: StandbyPoolContext, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, properties: StandbyVirtualMachinePoolResourceUpdate, options?: StandbyVirtualMachinePoolsUpdateOptionalParams): Promise<StandbyVirtualMachinePoolResource>;

// @public
export function standbyVirtualMachinesGet(context: StandbyPoolContext, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, standbyVirtualMachineName: string, options?: StandbyVirtualMachinesGetOptionalParams): Promise<StandbyVirtualMachineResource>;

// @public
export function standbyVirtualMachinesListByStandbyVirtualMachinePoolResource(context: StandbyPoolContext, subscriptionId: string, resourceGroupName: string, standbyVirtualMachinePoolName: string, options?: StandbyVirtualMachinesListByStandbyVirtualMachinePoolResourceOptionalParams): PagedAsyncIterableIterator<StandbyVirtualMachineResource>;

// (No @packageDocumentation comment for this package)

```
Loading