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 track2_@azure/arm-resources-subscriptions] Adding changes resource type #7297

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
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
# Release History

## 2.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes


## 2.1.0 (2022-01-26)

**Features**

- Added operation Subscriptions.checkZonePeers
- Added Interface AvailabilityZonePeers
- Added Interface CheckZonePeersRequest
- Added Interface CheckZonePeersResult
- Added Interface ErrorDetail
- Added Interface ErrorResponseAutoGenerated
- Added Interface Peers
- Added Interface SubscriptionsCheckZonePeersOptionalParams
- Added Type Alias SubscriptionsCheckZonePeersResponse


## 2.0.0 (2021-12-16)

The package of @azure/arm-resources-subscriptions is using our next generation design principles since version 2.0.0, which contains breaking changes.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2021 Microsoft
Copyright (c) 2022 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,7 +1,7 @@
{
"commit": "ea0f7b072ad3aaff203ea9003246b9e584b819ff",
"commit": "339e30a693fabfa610ed69d387b095327167ec68",
"readme": "specification/resources/resource-manager/readme.md",
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/resources/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211207.1",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/resources/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/typescript@6.0.0-alpha.16.20211207.1"
"use": "@autorest/typescript@6.0.0-alpha.16.20220105.1"
}
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/arm-resources-subscriptions.d.ts"
},
"messages": {
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"tsdocMessageReporting": {
"default": {
"logLevel": "none"
}
},
"extractorMessageReporting": {
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-unresolved-link": {
"logLevel": "none"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for SubscriptionClient.",
"version": "2.0.1",
"version": "2.1.0",
"engines": {
"node": ">=12.0.0"
},
Expand Down Expand Up @@ -97,4 +97,4 @@
},
"sideEffects": false,
"autoPublish": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ import * as coreAuth from '@azure/core-auth';
import * as coreClient from '@azure/core-client';
import { PagedAsyncIterableIterator } from '@azure/core-paging';

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

// @public
export interface CheckResourceNameOptionalParams extends coreClient.OperationOptions {
resourceNameDefinition?: ResourceName;
Expand All @@ -23,6 +29,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 +53,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,6 +71,11 @@ export interface ErrorResponse {
readonly target?: string;
}

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

// @public
export enum KnownRegionCategory {
// (undocumented)
Expand Down Expand Up @@ -133,6 +166,12 @@ export interface PairedRegion {
readonly subscriptionId?: string;
}

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

// @public
export type RegionCategory = string;

Expand Down Expand Up @@ -202,11 +241,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 @@ -294,6 +294,87 @@ export interface TenantIdDescription {
readonly tenantBrandingLogoUrl?: string;
}

/** Check zone peers request parameters. */
export interface CheckZonePeersRequest {
/** The Microsoft location. */
location?: string;
/** The peer Microsoft Azure subscription ID. */
subscriptionIds?: string[];
}

/** Result of the Check zone peers operation. */
export interface CheckZonePeersResult {
/**
* The subscription ID.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly subscriptionId?: string;
/** the location of the subscription. */
location?: string;
/** The Availability Zones shared by the subscriptions. */
availabilityZonePeers?: AvailabilityZonePeers[];
}

/** List of availability zones shared by the subscriptions. */
export interface AvailabilityZonePeers {
/**
* The availabilityZone.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly availabilityZone?: string;
/** Details of shared availability zone. */
peers?: Peers[];
}

/** Information about shared availability zone. */
export interface Peers {
/**
* The subscription ID.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly subscriptionId?: string;
/**
* The availabilityZone.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly availabilityZone?: string;
}

/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
export interface ErrorResponseAutoGenerated {
/** The error object. */
error?: ErrorDetail;
}

/** The error detail. */
export interface ErrorDetail {
/**
* The error code.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly code?: string;
/**
* The error message.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly message?: string;
/**
* The error target.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly target?: string;
/**
* The error details.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly details?: ErrorDetail[];
/**
* The error additional info.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly additionalInfo?: ErrorAdditionalInfo[];
}

/** Name and Type of the Resource */
export interface ResourceName {
/** Name of the resource */
Expand Down Expand Up @@ -427,6 +508,13 @@ export interface SubscriptionsListOptionalParams
/** Contains response data for the list operation. */
export type SubscriptionsListResponse = SubscriptionListResult;

/** Optional parameters. */
export interface SubscriptionsCheckZonePeersOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the checkZonePeers operation. */
export type SubscriptionsCheckZonePeersResponse = CheckZonePeersResult;

/** Optional parameters. */
export interface SubscriptionsListNextOptionalParams
extends coreClient.OperationOptions {}
Expand Down
Loading