From 902ddf6a0018dc76cd106140490b5810d3a37228 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 5 Jan 2022 15:16:12 +0000 Subject: [PATCH] CodeGen from PR 17238 in Azure/azure-rest-api-specs Merge 86d9cc463fad3aff6a6fc272faa9447a193ca1ba into 30fca88fa23112e4296322f38610e02da522d390 --- sdk/orbital/arm-orbital/CHANGELOG.md | 19 ++++++++------- sdk/orbital/arm-orbital/LICENSE | 2 +- sdk/orbital/arm-orbital/_meta.json | 6 ++--- sdk/orbital/arm-orbital/package.json | 16 +++---------- .../node/my_test/recording_sample_test.js | 5 ---- .../arm-orbital/review/arm-orbital.api.md | 24 +++++++++---------- sdk/orbital/arm-orbital/src/azureOrbital.ts | 2 +- sdk/orbital/arm-orbital/src/models/index.ts | 10 ++++---- .../src/operations/availableGroundStations.ts | 12 +++++----- .../availableGroundStations.ts | 4 ++-- 10 files changed, 44 insertions(+), 56 deletions(-) delete mode 100644 sdk/orbital/arm-orbital/recordings/node/my_test/recording_sample_test.js diff --git a/sdk/orbital/arm-orbital/CHANGELOG.md b/sdk/orbital/arm-orbital/CHANGELOG.md index 2ccdf9e73b64..0c8c7c86bc77 100644 --- a/sdk/orbital/arm-orbital/CHANGELOG.md +++ b/sdk/orbital/arm-orbital/CHANGELOG.md @@ -1,15 +1,18 @@ # Release History + +## 1.0.0-beta.3 (2022-01-05) + +**Features** -## 1.0.0-beta.3 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added Type Alias CapabilityType + - Added Enum KnownCapabilityType -### Other Changes +**Breaking Changes** + - Operation AvailableGroundStations.listByCapability has a new signature + - Removed Enum KnownEnum6 + + ## 1.0.0-beta.2 (2021-12-27) The package of @azure/arm-orbital is using our next generation design principles since version 1.0.0-beta.2, which contains breaking changes. diff --git a/sdk/orbital/arm-orbital/LICENSE b/sdk/orbital/arm-orbital/LICENSE index ccb63b166732..5d1d36e0af80 100644 --- a/sdk/orbital/arm-orbital/LICENSE +++ b/sdk/orbital/arm-orbital/LICENSE @@ -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 diff --git a/sdk/orbital/arm-orbital/_meta.json b/sdk/orbital/arm-orbital/_meta.json index 21527487968d..f5bce3aaea23 100644 --- a/sdk/orbital/arm-orbital/_meta.json +++ b/sdk/orbital/arm-orbital/_meta.json @@ -1,7 +1,7 @@ { - "commit": "c77c6c634dc3644d65d3e35df5d73a9c34d3c956", + "commit": "c283c9b2b8a07d21c7e96bb0f6b12f5ab6578001", "readme": "specification/orbital/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/orbital/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211217.1", + "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=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/orbital/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20211217.1" + "use": "@autorest/typescript@6.0.0-alpha.16.20211130.1" } \ No newline at end of file diff --git a/sdk/orbital/arm-orbital/package.json b/sdk/orbital/arm-orbital/package.json index 480b4c3eb6ea..e896a95dd98b 100644 --- a/sdk/orbital/arm-orbital/package.json +++ b/sdk/orbital/arm-orbital/package.json @@ -4,9 +4,7 @@ "author": "Microsoft Corporation", "description": "A generated SDK for AzureOrbital.", "version": "1.0.0-beta.3", - "engines": { - "node": ">=12.0.0" - }, + "engines": { "node": ">=12.0.0" }, "dependencies": { "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", @@ -16,13 +14,7 @@ "@azure/core-rest-pipeline": "^1.1.0", "tslib": "^2.2.0" }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], + "keywords": ["node", "azure", "typescript", "browser", "isomorphic"], "license": "MIT", "main": "./dist/index.js", "module": "./dist-esm/src/index.js", @@ -49,9 +41,7 @@ "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" }, - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, + "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", "dist/**/*.js.map", diff --git a/sdk/orbital/arm-orbital/recordings/node/my_test/recording_sample_test.js b/sdk/orbital/arm-orbital/recordings/node/my_test/recording_sample_test.js deleted file mode 100644 index 0f6ecb857acf..000000000000 --- a/sdk/orbital/arm-orbital/recordings/node/my_test/recording_sample_test.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "7a6be38bb8cb644d64b4094802301751"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/orbital/arm-orbital/review/arm-orbital.api.md b/sdk/orbital/arm-orbital/review/arm-orbital.api.md index 653bbd902fe0..38ba10b5775f 100644 --- a/sdk/orbital/arm-orbital/review/arm-orbital.api.md +++ b/sdk/orbital/arm-orbital/review/arm-orbital.api.md @@ -62,7 +62,7 @@ export interface AvailableGroundStationListResult { // @public export interface AvailableGroundStations { get(groundStationName: string, options?: AvailableGroundStationsGetOptionalParams): Promise; - listByCapability(capability: Enum6, options?: AvailableGroundStationsListByCapabilityOptionalParams): PagedAsyncIterableIterator; + listByCapability(capability: CapabilityType, options?: AvailableGroundStationsListByCapabilityOptionalParams): PagedAsyncIterableIterator; } // @public @@ -117,6 +117,9 @@ export interface AzureOrbitalOptionalParams extends coreClient.ServiceClientOpti // @public export type Capability = string; +// @public +export type CapabilityType = string; + // @public export interface CloudError { error?: CloudErrorBody; @@ -316,9 +319,6 @@ export interface EndPoint { protocol: Protocol; } -// @public -export type Enum6 = string; - // @public export enum KnownActionType { // (undocumented) @@ -333,6 +333,14 @@ export enum KnownCapability { EarthObservation = "EarthObservation" } +// @public +export enum KnownCapabilityType { + // (undocumented) + Communication = "Communication", + // (undocumented) + EarthObservation = "EarthObservation" +} + // @public export enum KnownCreatedByType { // (undocumented) @@ -353,14 +361,6 @@ export enum KnownDirection { Uplink = "uplink" } -// @public -export enum KnownEnum6 { - // (undocumented) - Communication = "Communication", - // (undocumented) - EarthObservation = "EarthObservation" -} - // @public export enum KnownOrigin { // (undocumented) diff --git a/sdk/orbital/arm-orbital/src/azureOrbital.ts b/sdk/orbital/arm-orbital/src/azureOrbital.ts index f23108ff9021..77d3da28182d 100644 --- a/sdk/orbital/arm-orbital/src/azureOrbital.ts +++ b/sdk/orbital/arm-orbital/src/azureOrbital.ts @@ -56,7 +56,7 @@ export class AzureOrbital extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-orbital/1.0.0-beta.2`; + const packageDetails = `azsdk-js-arm-orbital/1.0.0-beta.3`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/orbital/arm-orbital/src/models/index.ts b/sdk/orbital/arm-orbital/src/models/index.ts index d4525a2a2bfc..b0415fe9b369 100644 --- a/sdk/orbital/arm-orbital/src/models/index.ts +++ b/sdk/orbital/arm-orbital/src/models/index.ts @@ -605,21 +605,21 @@ export enum KnownProtocol { */ export type Protocol = string; -/** Known values of {@link Enum6} that the service accepts. */ -export enum KnownEnum6 { +/** Known values of {@link CapabilityType} that the service accepts. */ +export enum KnownCapabilityType { EarthObservation = "EarthObservation", Communication = "Communication" } /** - * Defines values for Enum6. \ - * {@link KnownEnum6} can be used interchangeably with Enum6, + * Defines values for CapabilityType. \ + * {@link KnownCapabilityType} can be used interchangeably with CapabilityType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **EarthObservation** \ * **Communication** */ -export type Enum6 = string; +export type CapabilityType = string; /** Known values of {@link Capability} that the service accepts. */ export enum KnownCapability { diff --git a/sdk/orbital/arm-orbital/src/operations/availableGroundStations.ts b/sdk/orbital/arm-orbital/src/operations/availableGroundStations.ts index 5df25eab882a..eb7443943d06 100644 --- a/sdk/orbital/arm-orbital/src/operations/availableGroundStations.ts +++ b/sdk/orbital/arm-orbital/src/operations/availableGroundStations.ts @@ -14,7 +14,7 @@ import * as Parameters from "../models/parameters"; import { AzureOrbital } from "../azureOrbital"; import { AvailableGroundStation, - Enum6, + CapabilityType, AvailableGroundStationsListByCapabilityNextOptionalParams, AvailableGroundStationsListByCapabilityOptionalParams, AvailableGroundStationsListByCapabilityResponse, @@ -42,7 +42,7 @@ export class AvailableGroundStationsImpl implements AvailableGroundStations { * @param options The options parameters. */ public listByCapability( - capability: Enum6, + capability: CapabilityType, options?: AvailableGroundStationsListByCapabilityOptionalParams ): PagedAsyncIterableIterator { const iter = this.listByCapabilityPagingAll(capability, options); @@ -60,7 +60,7 @@ export class AvailableGroundStationsImpl implements AvailableGroundStations { } private async *listByCapabilityPagingPage( - capability: Enum6, + capability: CapabilityType, options?: AvailableGroundStationsListByCapabilityOptionalParams ): AsyncIterableIterator { let result = await this._listByCapability(capability, options); @@ -78,7 +78,7 @@ export class AvailableGroundStationsImpl implements AvailableGroundStations { } private async *listByCapabilityPagingAll( - capability: Enum6, + capability: CapabilityType, options?: AvailableGroundStationsListByCapabilityOptionalParams ): AsyncIterableIterator { for await (const page of this.listByCapabilityPagingPage( @@ -95,7 +95,7 @@ export class AvailableGroundStationsImpl implements AvailableGroundStations { * @param options The options parameters. */ private _listByCapability( - capability: Enum6, + capability: CapabilityType, options?: AvailableGroundStationsListByCapabilityOptionalParams ): Promise { return this.client.sendOperationRequest( @@ -126,7 +126,7 @@ export class AvailableGroundStationsImpl implements AvailableGroundStations { * @param options The options parameters. */ private _listByCapabilityNext( - capability: Enum6, + capability: CapabilityType, nextLink: string, options?: AvailableGroundStationsListByCapabilityNextOptionalParams ): Promise { diff --git a/sdk/orbital/arm-orbital/src/operationsInterfaces/availableGroundStations.ts b/sdk/orbital/arm-orbital/src/operationsInterfaces/availableGroundStations.ts index fa3f0e81b313..69c1cbc19329 100644 --- a/sdk/orbital/arm-orbital/src/operationsInterfaces/availableGroundStations.ts +++ b/sdk/orbital/arm-orbital/src/operationsInterfaces/availableGroundStations.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AvailableGroundStation, - Enum6, + CapabilityType, AvailableGroundStationsListByCapabilityOptionalParams, AvailableGroundStationsGetOptionalParams, AvailableGroundStationsGetResponse @@ -24,7 +24,7 @@ export interface AvailableGroundStations { * @param options The options parameters. */ listByCapability( - capability: Enum6, + capability: CapabilityType, options?: AvailableGroundStationsListByCapabilityOptionalParams ): PagedAsyncIterableIterator; /**