Skip to content

Commit

Permalink
subscriptions release (#25783)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazrael2119 authored May 29, 2023
1 parent c6c8818 commit 21db4e1
Show file tree
Hide file tree
Showing 43 changed files with 1,525 additions and 317 deletions.
5 changes: 3 additions & 2 deletions common/config/rush/pnpm-lock.yaml

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

Original file line number Diff line number Diff line change
@@ -1,15 +1,37 @@
# Release History

## 2.1.0 (2023-05-24)

**Features**

## 2.0.3 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added operation group Operations
- Added operation Subscriptions.checkZonePeers
- Added Interface AvailabilityZoneMappings
- Added Interface AvailabilityZonePeers
- Added Interface CheckZonePeersRequest
- Added Interface CheckZonePeersResult
- Added Interface ErrorDetail
- Added Interface ErrorResponseAutoGenerated
- Added Interface OperationAutoGenerated
- Added Interface OperationDisplayAutoGenerated
- Added Interface OperationListResultAutoGenerated
- Added Interface OperationsListNextOptionalParams
- Added Interface OperationsListOptionalParams
- Added Interface Peers
- Added Interface SubscriptionsCheckZonePeersOptionalParams
- Added Type Alias ActionType
- Added Type Alias OperationsListNextResponse
- Added Type Alias OperationsListResponse
- Added Type Alias Origin
- Added Type Alias SubscriptionsCheckZonePeersResponse
- Interface Location_2 has a new optional parameter availabilityZoneMappings
- Interface LocationMetadata has a new optional parameter geography
- Interface Operation has a new optional parameter actionType
- Interface Operation has a new optional parameter isDataAction
- Interface Operation has a new optional parameter origin
- Added Enum KnownActionType
- Added Enum KnownOrigin

## 2.0.2 (2022-11-22)

**Features**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2022 Microsoft
Copyright (c) 2023 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "a42f1b58607091c4f255ead152a8ef323fa0b280",
"readme": "specification\\resources\\resource-manager\\readme.md",
"autorest_command": "autorest --version=3.8.4 --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\\resources\\resource-manager\\readme.md --use=@autorest/[email protected].0-rc.3.20221108.1 --generate-sample=true",
"commit": "2b5927fd07bfb51809a06ca35b6142f63ba77bab",
"readme": "specification/resources/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\\resources\\resource-manager\\readme.md --use=@autorest/[email protected].2 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/[email protected].0-rc.3.20221108.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
"use": "@autorest/[email protected].2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "js",
"TagPrefix": "js/resources-subscriptions/arm-resources-subscriptions",
"Tag": "js/resources-subscriptions/arm-resources-subscriptions_bd40eea0ce"
"Tag": "js/resources-subscriptions/arm-resources-subscriptions_f36cdf7caa"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for SubscriptionClient.",
"version": "2.0.3",
"version": "2.1.0",
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.6.1",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"tslib": "^2.2.0"
Expand All @@ -31,12 +31,13 @@
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-multi-entry": "^6.0.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"mkdirp": "^1.0.4",
"mkdirp": "^2.1.2",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~5.0.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"dotenv": "^16.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
Expand All @@ -47,7 +48,6 @@
"@types/node": "^14.0.0",
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resources-subscriptions/arm-resources-subscriptions",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down Expand Up @@ -109,6 +109,7 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resources-subscriptions/arm-resources-subscriptions",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
Expand All @@ -117,4 +118,4 @@
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-resources-subscriptions?view=azure-node-preview"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ import * as coreAuth from '@azure/core-auth';
import * as coreClient from '@azure/core-client';
import { PagedAsyncIterableIterator } from '@azure/core-paging';

// @public
export type ActionType = string;

// @public
export interface AvailabilityZoneMappings {
readonly logicalZone?: string;
readonly physicalZone?: string;
}

// @public
export interface AvailabilityZonePeers {
readonly availabilityZone?: string;
peers?: Peers[];
}

// @public
export interface CheckResourceNameOptionalParams extends coreClient.OperationOptions {
resourceNameDefinition?: ResourceName;
Expand All @@ -23,6 +38,19 @@ export interface CheckResourceNameResult {
type?: string;
}

// @public
export interface CheckZonePeersRequest {
location?: string;
subscriptionIds?: string[];
}

// @public
export interface CheckZonePeersResult {
availabilityZonePeers?: AvailabilityZonePeers[];
location?: string;
readonly subscriptionId?: string;
}

// @public
export interface CloudError {
error?: ErrorResponse;
Expand All @@ -34,6 +62,15 @@ export interface ErrorAdditionalInfo {
readonly type?: string;
}

// @public
export interface ErrorDetail {
readonly additionalInfo?: ErrorAdditionalInfo[];
readonly code?: string;
readonly details?: ErrorDetail[];
readonly message?: string;
readonly target?: string;
}

// @public
export interface ErrorResponse {
readonly additionalInfo?: ErrorAdditionalInfo[];
Expand All @@ -43,9 +80,26 @@ export interface ErrorResponse {
readonly target?: string;
}

// @public
export interface ErrorResponseAutoGenerated {
error?: ErrorDetail;
}

// @public
export function getContinuationToken(page: unknown): string | undefined;

// @public
export enum KnownActionType {
Internal = "Internal"
}

// @public
export enum KnownOrigin {
System = "system",
User = "user",
UserSystem = "user,system"
}

// @public
export enum KnownRegionCategory {
Extended = "Extended",
Expand All @@ -67,6 +121,7 @@ export enum KnownResourceNameStatus {

// @public
interface Location_2 {
availabilityZoneMappings?: AvailabilityZoneMappings[];
readonly displayName?: string;
readonly id?: string;
metadata?: LocationMetadata;
Expand All @@ -84,6 +139,7 @@ export interface LocationListResult {

// @public
export interface LocationMetadata {
readonly geography?: string;
readonly geographyGroup?: string;
readonly homeLocation?: string;
readonly latitude?: string;
Expand All @@ -104,12 +160,32 @@ export interface ManagedByTenant {

// @public
export interface Operation {
readonly actionType?: ActionType;
display?: OperationDisplay;
readonly isDataAction?: boolean;
readonly name?: string;
readonly origin?: Origin;
}

// @public
export interface OperationAutoGenerated {
readonly actionType?: ActionType;
display?: OperationDisplayAutoGenerated;
readonly isDataAction?: boolean;
name?: string;
readonly origin?: Origin;
}

// @public
export interface OperationDisplay {
readonly description?: string;
readonly operation?: string;
readonly provider?: string;
readonly resource?: string;
}

// @public
export interface OperationDisplayAutoGenerated {
description?: string;
operation?: string;
provider?: string;
Expand All @@ -118,17 +194,51 @@ export interface OperationDisplay {

// @public
export interface OperationListResult {
readonly nextLink?: string;
readonly value?: Operation[];
}

// @public
export interface OperationListResultAutoGenerated {
nextLink?: string;
value?: Operation[];
value?: OperationAutoGenerated[];
}

// @public
export interface Operations {
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
}

// @public
export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
}

// @public
export type OperationsListNextResponse = OperationListResult;

// @public
export interface OperationsListOptionalParams extends coreClient.OperationOptions {
}

// @public
export type OperationsListResponse = OperationListResult;

// @public
export type Origin = string;

// @public
export interface PairedRegion {
readonly id?: string;
readonly name?: string;
readonly subscriptionId?: string;
}

// @public
export interface Peers {
readonly availabilityZone?: string;
readonly subscriptionId?: string;
}

// @public
export type RegionCategory = string;

Expand Down Expand Up @@ -171,6 +281,8 @@ export class SubscriptionClient extends coreClient.ServiceClient {
apiVersion: string;
checkResourceName(options?: CheckResourceNameOptionalParams): Promise<CheckResourceNameResponse>;
// (undocumented)
operations: Operations;
// (undocumented)
subscriptions: Subscriptions;
// (undocumented)
tenants: Tenants;
Expand Down Expand Up @@ -198,11 +310,19 @@ export interface SubscriptionPolicies {

// @public
export interface Subscriptions {
checkZonePeers(subscriptionId: string, parameters: CheckZonePeersRequest, options?: SubscriptionsCheckZonePeersOptionalParams): Promise<SubscriptionsCheckZonePeersResponse>;
get(subscriptionId: string, options?: SubscriptionsGetOptionalParams): Promise<SubscriptionsGetResponse>;
list(options?: SubscriptionsListOptionalParams): PagedAsyncIterableIterator<Subscription>;
listLocations(subscriptionId: string, options?: SubscriptionsListLocationsOptionalParams): PagedAsyncIterableIterator<Location_2>;
}

// @public
export interface SubscriptionsCheckZonePeersOptionalParams extends coreClient.OperationOptions {
}

// @public
export type SubscriptionsCheckZonePeersResponse = CheckZonePeersResult;

// @public
export interface SubscriptionsGetOptionalParams extends coreClient.OperationOptions {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@
// Licensed under the MIT License.
import { SubscriptionClient } from "@azure/arm-resources-subscriptions";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();

/**
* This sample demonstrates how to A resource name is valid if it is not a reserved word, does not contains a reserved word and does not start with a reserved word
*
* @summary A resource name is valid if it is not a reserved word, does not contains a reserved word and does not start with a reserved word
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2021-01-01/examples/CheckResourceName.json
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2022-12-01/examples/CheckResourceName.json
*/
async function checkValidityForAResourceName() {
const credential = new DefaultAzureCredential();
Expand All @@ -24,4 +27,8 @@ async function checkValidityForAResourceName() {
console.log(result);
}

checkValidityForAResourceName().catch(console.error);
async function main() {
checkValidityForAResourceName();
}

main().catch(console.error);
Loading

0 comments on commit 21db4e1

Please sign in to comment.