diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index e9cd8095d9ca..5e5e460b813b 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -12214,23 +12214,23 @@ packages: dev: false file:projects/arm-orbital.tgz: - resolution: {integrity: sha512-UE+tzXvGrbdi9t7iJMbAP/Zebg1blhr0vyZOB4McnjmUlZYIFxHQd179JkKQRgOzAoZaeQuGvGuI+nx+wLRqoQ==, tarball: file:projects/arm-orbital.tgz} + resolution: {integrity: sha512-oF8HsFjTgUDCr7VV1jQS8bKs74EIQZ6kGAolCp+of25z4Iy9dFv49+LM7SAWMQEDQuvET6ljnEfGbeRvRbhjtw==, tarball: file:projects/arm-orbital.tgz} name: '@rush-temp/arm-orbital' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 '@azure/identity': 2.0.4 - '@microsoft/api-extractor': 7.18.11 - '@rollup/plugin-commonjs': 21.0.3_rollup@2.70.1 - '@rollup/plugin-json': 4.1.0_rollup@2.70.1 - '@rollup/plugin-multi-entry': 3.0.1_rollup@2.70.1 - '@rollup/plugin-node-resolve': 8.4.0_rollup@2.70.1 + '@microsoft/api-extractor': 7.22.1 + '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 + '@rollup/plugin-json': 4.1.0_rollup@1.32.1 + '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 + '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 rimraf: 3.0.2 - rollup: 2.70.1 - rollup-plugin-sourcemaps: 0.4.2_rollup@2.70.1 + rollup: 1.32.1 + rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 tslib: 2.3.1 typescript: 4.2.4 uglify-js: 3.15.4 @@ -13855,7 +13855,7 @@ packages: dev: false file:projects/communication-chat.tgz: - resolution: {integrity: sha512-F2p5XwoV7jQhN9ZEN8CJLDdTq1UBXLM0Ch9Ciz0KgJIsHFEnC6gts26YWXpJnvqligsIbdgdSoEGQSGxEEcfAA==, tarball: file:projects/communication-chat.tgz} + resolution: {integrity: sha512-FqxHOpHgvyJ+4HOwbd46Dnvs0GLTHf2yn8GXEM+q7A+SdJlVRoSFkc0p+778/j5MjMec4wUI8o9vjwqo4NpSqg==, tarball: file:projects/communication-chat.tgz} name: '@rush-temp/communication-chat' version: 0.0.0 dependencies: @@ -13995,7 +13995,7 @@ packages: dev: false file:projects/communication-network-traversal.tgz: - resolution: {integrity: sha512-ObCHY5MD0EY7Fe3Dy4+XGii/Q8e3qZN+Kz7Jvfz0hMv6uwi3ZLwgtOSJU8lUk38imK+bXK52CI+0tb83AvtstA==, tarball: file:projects/communication-network-traversal.tgz} + resolution: {integrity: sha512-DfS473YHDZzO8h8P+pqAvJz/guSyj1BoDLKr1ifuQOT35RNVF/XxL2ydwAAXdbYA0iFpkPD5UwDXLvknVCm7mA==, tarball: file:projects/communication-network-traversal.tgz} name: '@rush-temp/communication-network-traversal' version: 0.0.0 dependencies: @@ -14004,7 +14004,7 @@ packages: '@azure/communication-identity': 1.0.0 '@azure/core-tracing': 1.0.0-preview.13 '@azure/identity': 2.0.4 - '@microsoft/api-extractor': 7.18.11 + '@microsoft/api-extractor': 7.22.1 '@rollup/plugin-commonjs': 21.0.3_rollup@2.70.1 '@rollup/plugin-json': 4.1.0_rollup@2.70.1 '@rollup/plugin-multi-entry': 3.0.1_rollup@2.70.1 @@ -14049,7 +14049,6 @@ packages: transitivePeerDependencies: - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -14151,7 +14150,7 @@ packages: dev: false file:projects/communication-sms.tgz: - resolution: {integrity: sha512-FLvHt8YCR95J93gFFd+J0Q6yX1RQMrjeteihyIWNmdk/tukSYrqDAWOlTgvJtPFc9Rw5wVPPkvhkY7GtEjz7xQ==, tarball: file:projects/communication-sms.tgz} + resolution: {integrity: sha512-E/nwbz1Zg3kgLv1+MLlZeHvQByxJ2oNMrPKsRs1C0qF1T+T3lVNHUjQfoCYT/PiQZ9JG0VBP3IMSE9Wseb2dgg==, tarball: file:projects/communication-sms.tgz} name: '@rush-temp/communication-sms' version: 0.0.0 dependencies: @@ -14159,7 +14158,7 @@ packages: '@azure/communication-common': 1.1.0 '@azure/core-tracing': 1.0.0-preview.13 '@azure/identity': 2.0.4 - '@microsoft/api-extractor': 7.18.11 + '@microsoft/api-extractor': 7.22.1 '@types/chai': 4.3.0 '@types/mocha': 7.0.2 '@types/node': 12.20.47 @@ -14195,7 +14194,6 @@ packages: transitivePeerDependencies: - bufferutil - debug - - encoding - supports-color - utf-8-validate dev: false @@ -14289,7 +14287,7 @@ packages: dev: false file:projects/core-amqp.tgz: - resolution: {integrity: sha512-XUaZ6jz58zipElE+mk/rMwBQTwKpR1/hduBJOz/KhuPF8H5NmjoQqHIQM2esvZykdnEmWz5s6M0LQrkufHB0bQ==, tarball: file:projects/core-amqp.tgz} + resolution: {integrity: sha512-jby3YSj0rQG0F50w/ua0POKVlA0LZyYsCzrl7xf7nbkbIxYqa1iNYpUPJ958WI9RKSChnC5I3naI7yG0l66bow==, tarball: file:projects/core-amqp.tgz} name: '@rush-temp/core-amqp' version: 0.0.0 dependencies: diff --git a/sdk/orbital/arm-orbital/CHANGELOG.md b/sdk/orbital/arm-orbital/CHANGELOG.md index 2ccdf9e73b64..a24bf0199acb 100644 --- a/sdk/orbital/arm-orbital/CHANGELOG.md +++ b/sdk/orbital/arm-orbital/CHANGELOG.md @@ -1,21 +1,5 @@ # Release History - -## 1.0.0-beta.3 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 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. - -To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog). - -To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). +## 1.0.0 (2022-04-27) -To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). +The package of @azure/arm-orbital is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). 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/README.md b/sdk/orbital/arm-orbital/README.md index 00d699eb75b2..86620018cef9 100644 --- a/sdk/orbital/arm-orbital/README.md +++ b/sdk/orbital/arm-orbital/README.md @@ -6,7 +6,7 @@ Azure Orbital service [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/orbital/arm-orbital) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-orbital) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-orbital?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-orbital) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/orbital/arm-orbital/_meta.json b/sdk/orbital/arm-orbital/_meta.json index 21527487968d..ace76ee65bf7 100644 --- a/sdk/orbital/arm-orbital/_meta.json +++ b/sdk/orbital/arm-orbital/_meta.json @@ -1,7 +1,8 @@ { - "commit": "c77c6c634dc3644d65d3e35df5d73a9c34d3c956", + "commit": "a5cd8e4c6a799a60d90a2f4a190ea930ea509d9d", "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.7.3 --typescript --modelerfour.lenient-model-deduplication --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/orbital/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.20211217.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.3.0", + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/orbital/arm-orbital/api-extractor.json b/sdk/orbital/arm-orbital/api-extractor.json index e7c7265ecef6..645634361e11 100644 --- a/sdk/orbital/arm-orbital/api-extractor.json +++ b/sdk/orbital/arm-orbital/api-extractor.json @@ -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-orbital.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" + } } } -} +} \ No newline at end of file diff --git a/sdk/orbital/arm-orbital/package.json b/sdk/orbital/arm-orbital/package.json index f34e30ffe65d..ad7d1a4fcae8 100644 --- a/sdk/orbital/arm-orbital/package.json +++ b/sdk/orbital/arm-orbital/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AzureOrbital.", - "version": "1.0.0-beta.3", + "version": "1.0.0", "engines": { "node": ">=12.0.0" }, @@ -28,13 +28,13 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-orbital.d.ts", "devDependencies": { - "@microsoft/api-extractor": "7.18.11", - "@rollup/plugin-commonjs": "^21.0.1", + "@microsoft/api-extractor": "^7.18.11", + "@rollup/plugin-commonjs": "11.0.2", "@rollup/plugin-json": "^4.0.0", "@rollup/plugin-multi-entry": "^3.0.0", "@rollup/plugin-node-resolve": "^8.0.0", "mkdirp": "^1.0.4", - "rollup": "^2.0.0", + "rollup": "^1.16.3", "rollup-plugin-sourcemaps": "^0.4.2", "typescript": "~4.2.0", "uglify-js": "^3.4.9", @@ -99,4 +99,4 @@ }, "sideEffects": false, "autoPublish": true -} +} \ No newline at end of file diff --git a/sdk/orbital/arm-orbital/review/arm-orbital.api.md b/sdk/orbital/arm-orbital/review/arm-orbital.api.md index 653bbd902fe0..d7840b7920a6 100644 --- a/sdk/orbital/arm-orbital/review/arm-orbital.api.md +++ b/sdk/orbital/arm-orbital/review/arm-orbital.api.md @@ -14,7 +14,13 @@ import { PollOperationState } from '@azure/core-lro'; export type ActionType = string; // @public -export type AuthorizationStatus = "Allowed" | "Pending" | "Denied"; +export type ApiVersionParameter = string; + +// @public +export interface AuthorizedGroundstation { + expirationDate?: Date; + groundStation?: string; +} // @public export type AutoTrackingConfiguration = "disabled" | "xBand" | "sBand"; @@ -27,7 +33,7 @@ export interface AvailableContacts { readonly maximumElevationDegrees?: number; readonly rxEndTime?: Date; readonly rxStartTime?: Date; - spacecraft?: ResourceReference; + spacecraft?: AvailableContactsSpacecraft; readonly startAzimuthDegrees?: number; readonly startElevationDegrees?: number; readonly txEndTime?: Date; @@ -40,6 +46,12 @@ export interface AvailableContactsListResult { value?: AvailableContacts[]; } +// @public +export type AvailableContactsProperties = ContactInstanceProperties & {}; + +// @public +export type AvailableContactsSpacecraft = ResourceReference & {}; + // @public export interface AvailableGroundStation { altitudeMeters?: number; @@ -50,6 +62,7 @@ export interface AvailableGroundStation { longitudeDegrees?: number; readonly name?: string; providerName?: string; + releaseMode?: ReleaseMode; readonly type?: string; } @@ -59,10 +72,23 @@ export interface AvailableGroundStationListResult { value?: AvailableGroundStation[]; } +// @public +export type AvailableGroundStationProperties = AvailableGroundStationPropertiesAutoGenerated & {}; + +// @public +export interface AvailableGroundStationPropertiesAutoGenerated { + altitudeMeters?: number; + city?: string; + latitudeDegrees?: number; + longitudeDegrees?: number; + providerName?: string; + releaseMode?: ReleaseMode; +} + // @public export interface AvailableGroundStations { get(groundStationName: string, options?: AvailableGroundStationsGetOptionalParams): Promise; - listByCapability(capability: Enum6, options?: AvailableGroundStationsListByCapabilityOptionalParams): PagedAsyncIterableIterator; + listByCapability(capability: CapabilityParameter, options?: AvailableGroundStationsListByCapabilityOptionalParams): PagedAsyncIterableIterator; } // @public @@ -102,6 +128,8 @@ export class AzureOrbital extends coreClient.ServiceClient { // (undocumented) operations: Operations; // (undocumented) + operationsResults: OperationsResults; + // (undocumented) spacecrafts: Spacecrafts; // (undocumented) subscriptionId: string; @@ -117,6 +145,9 @@ export interface AzureOrbitalOptionalParams extends coreClient.ServiceClientOpti // @public export type Capability = string; +// @public +export type CapabilityParameter = string; + // @public export interface CloudError { error?: CloudErrorBody; @@ -133,6 +164,7 @@ export interface CloudErrorBody { // @public export type Contact = ProxyResource & { readonly etag?: string; + provisioningState?: ContactsPropertiesProvisioningState; readonly status?: Status; reservationStartTime?: Date; reservationEndTime?: Date; @@ -147,9 +179,23 @@ export type Contact = ProxyResource & { groundStationName?: string; readonly startElevationDegrees?: number; readonly endElevationDegrees?: number; - contactProfile?: ResourceReference; + readonly antennaConfiguration?: ContactsPropertiesAntennaConfiguration; + contactProfile?: ContactsPropertiesContactProfile; }; +// @public +export interface ContactInstanceProperties { + readonly endAzimuthDegrees?: number; + readonly endElevationDegrees?: number; + readonly maximumElevationDegrees?: number; + readonly rxEndTime?: Date; + readonly rxStartTime?: Date; + readonly startAzimuthDegrees?: number; + readonly startElevationDegrees?: number; + readonly txEndTime?: Date; + readonly txStartTime?: Date; +} + // @public export interface ContactListResult { readonly nextLink?: string; @@ -158,19 +204,24 @@ export interface ContactListResult { // @public export interface ContactParameters { - contactProfile: ResourceReference; + contactProfile: ContactParametersContactProfile; endTime: Date; groundStationName: string; startTime: Date; } +// @public +export type ContactParametersContactProfile = ResourceReference & {}; + // @public export type ContactProfile = TrackedResource & { readonly etag?: string; + provisioningState?: ContactProfilesPropertiesProvisioningState; minimumViableContactDuration?: string; minimumElevationDegrees?: number; autoTrackingConfiguration?: AutoTrackingConfiguration; eventHubUri?: string; + networkConfiguration?: ContactProfilesPropertiesNetworkConfiguration; links?: ContactProfileLink[]; }; @@ -180,6 +231,7 @@ export interface ContactProfileLink { direction: Direction; eirpdBW?: number; gainOverTemperature?: number; + name: string; polarization: Polarization; } @@ -192,6 +244,7 @@ export interface ContactProfileLinkChannel { encodingConfiguration?: string; endPoint: EndPoint; modulationConfiguration?: string; + name: string; } // @public @@ -200,16 +253,25 @@ export interface ContactProfileListResult { value?: ContactProfile[]; } +// @public +export type ContactProfileProperties = ContactProfilesProperties & {}; + // @public export interface ContactProfiles { beginCreateOrUpdate(resourceGroupName: string, contactProfileName: string, location: string, options?: ContactProfilesCreateOrUpdateOptionalParams): Promise, ContactProfilesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, contactProfileName: string, location: string, options?: ContactProfilesCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, contactProfileName: string, options?: ContactProfilesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, contactProfileName: string, options?: ContactProfilesDeleteOptionalParams): Promise; + beginUpdateTags(resourceGroupName: string, contactProfileName: string, parameters: TagsObject, options?: ContactProfilesUpdateTagsOptionalParams): Promise, ContactProfilesUpdateTagsResponse>>; + beginUpdateTagsAndWait(resourceGroupName: string, contactProfileName: string, parameters: TagsObject, options?: ContactProfilesUpdateTagsOptionalParams): Promise; get(resourceGroupName: string, contactProfileName: string, options?: ContactProfilesGetOptionalParams): Promise; list(resourceGroupName: string, options?: ContactProfilesListOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: ContactProfilesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - updateTags(resourceGroupName: string, contactProfileName: string, parameters: TagsObject, options?: ContactProfilesUpdateTagsOptionalParams): Promise; +} + +// @public +export interface ContactProfilesCreateOrUpdateHeaders { + azureAsyncOperation?: string; } // @public @@ -219,6 +281,8 @@ export interface ContactProfilesCreateOrUpdateOptionalParams extends coreClient. links?: ContactProfileLink[]; minimumElevationDegrees?: number; minimumViableContactDuration?: string; + networkConfiguration?: ContactProfilesPropertiesNetworkConfiguration; + provisioningState?: ContactProfilesPropertiesProvisioningState; resumeFrom?: string; tags?: { [propertyName: string]: string; @@ -229,6 +293,11 @@ export interface ContactProfilesCreateOrUpdateOptionalParams extends coreClient. // @public export type ContactProfilesCreateOrUpdateResponse = ContactProfile; +// @public +export interface ContactProfilesDeleteHeaders { + location?: string; +} + // @public export interface ContactProfilesDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -242,22 +311,66 @@ export interface ContactProfilesGetOptionalParams extends coreClient.OperationOp // @public export type ContactProfilesGetResponse = ContactProfile; +// @public +export interface ContactProfilesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { + skiptoken?: string; +} + +// @public +export type ContactProfilesListBySubscriptionNextResponse = ContactProfileListResult; + // @public export interface ContactProfilesListBySubscriptionOptionalParams extends coreClient.OperationOptions { + skiptoken?: string; } // @public export type ContactProfilesListBySubscriptionResponse = ContactProfileListResult; +// @public +export interface ContactProfilesListNextOptionalParams extends coreClient.OperationOptions { + skiptoken?: string; +} + +// @public +export type ContactProfilesListNextResponse = ContactProfileListResult; + // @public export interface ContactProfilesListOptionalParams extends coreClient.OperationOptions { + skiptoken?: string; } // @public export type ContactProfilesListResponse = ContactProfileListResult; +// @public +export interface ContactProfilesProperties { + autoTrackingConfiguration?: AutoTrackingConfiguration; + eventHubUri?: string; + links: ContactProfileLink[]; + minimumElevationDegrees?: number; + minimumViableContactDuration?: string; + networkConfiguration: ContactProfilesPropertiesNetworkConfiguration; + provisioningState?: ContactProfilesPropertiesProvisioningState; +} + +// @public +export interface ContactProfilesPropertiesNetworkConfiguration { + subnetId: string; +} + +// @public +export type ContactProfilesPropertiesProvisioningState = string; + +// @public +export interface ContactProfilesUpdateTagsHeaders { + location?: string; +} + // @public export interface ContactProfilesUpdateTagsOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public @@ -273,6 +386,11 @@ export interface Contacts { list(resourceGroupName: string, spacecraftName: string, options?: ContactsListOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface ContactsCreateHeaders { + azureAsyncOperation?: string; +} + // @public export interface ContactsCreateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -282,6 +400,11 @@ export interface ContactsCreateOptionalParams extends coreClient.OperationOption // @public export type ContactsCreateResponse = Contact; +// @public +export interface ContactsDeleteHeaders { + location?: string; +} + // @public export interface ContactsDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -295,13 +418,34 @@ export interface ContactsGetOptionalParams extends coreClient.OperationOptions { // @public export type ContactsGetResponse = Contact; +// @public +export interface ContactsListNextOptionalParams extends coreClient.OperationOptions { + skiptoken?: string; +} + +// @public +export type ContactsListNextResponse = ContactListResult; + // @public export interface ContactsListOptionalParams extends coreClient.OperationOptions { + skiptoken?: string; } // @public export type ContactsListResponse = ContactListResult; +// @public +export interface ContactsPropertiesAntennaConfiguration { + destinationIp?: string; + sourceIps?: string[]; +} + +// @public +export type ContactsPropertiesContactProfile = ResourceReference & {}; + +// @public +export type ContactsPropertiesProvisioningState = string; + // @public export type CreatedByType = string; @@ -316,15 +460,22 @@ export interface EndPoint { protocol: Protocol; } -// @public -export type Enum6 = string; - // @public export enum KnownActionType { // (undocumented) Internal = "Internal" } +// @public +export enum KnownApiVersionParameter { + // (undocumented) + TwoThousandTwenty0901Preview = "2020-09-01-preview", + // (undocumented) + TwoThousandTwentyOne0404Preview = "2021-04-04-preview", + // (undocumented) + TwoThousandTwentyTwo0301 = "2022-03-01" +} + // @public export enum KnownCapability { // (undocumented) @@ -333,6 +484,46 @@ export enum KnownCapability { EarthObservation = "EarthObservation" } +// @public +export enum KnownCapabilityParameter { + // (undocumented) + Communication = "Communication", + // (undocumented) + EarthObservation = "EarthObservation" +} + +// @public +export enum KnownContactProfilesPropertiesProvisioningState { + // (undocumented) + Canceled = "Canceled", + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + Succeeded = "Succeeded", + // (undocumented) + Updating = "Updating" +} + +// @public +export enum KnownContactsPropertiesProvisioningState { + // (undocumented) + Canceled = "Canceled", + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + Succeeded = "Succeeded", + // (undocumented) + Updating = "Updating" +} + // @public export enum KnownCreatedByType { // (undocumented) @@ -353,14 +544,6 @@ export enum KnownDirection { Uplink = "uplink" } -// @public -export enum KnownEnum6 { - // (undocumented) - Communication = "Communication", - // (undocumented) - EarthObservation = "EarthObservation" -} - // @public export enum KnownOrigin { // (undocumented) @@ -373,8 +556,6 @@ export enum KnownOrigin { // @public export enum KnownPolarization { - // (undocumented) - DualRhcpLhcp = "dualRhcpLhcp", // (undocumented) Lhcp = "LHCP", // (undocumented) @@ -393,6 +574,46 @@ export enum KnownProtocol { UDP = "UDP" } +// @public +export enum KnownProvisioningState { + // (undocumented) + Canceled = "Canceled", + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + Succeeded = "Succeeded", + // (undocumented) + Updating = "Updating" +} + +// @public +export enum KnownReleaseMode { + // (undocumented) + GA = "GA", + // (undocumented) + Preview = "Preview" +} + +// @public +export enum KnownSpacecraftsPropertiesProvisioningState { + // (undocumented) + Canceled = "Canceled", + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + Succeeded = "Succeeded", + // (undocumented) + Updating = "Updating" +} + // @public export interface Operation { readonly actionType?: ActionType; @@ -416,6 +637,24 @@ export interface OperationListResult { readonly value?: Operation[]; } +// @public +export interface OperationResult { + readonly endTime?: Date; + error?: OperationResultErrorProperties; + readonly id?: string; + readonly name?: string; + readonly percentComplete?: number; + properties?: Record; + readonly startTime?: Date; + status?: Status; +} + +// @public +export interface OperationResultErrorProperties { + readonly code?: string; + readonly message?: string; +} + // @public export interface Operations { list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; @@ -428,6 +667,26 @@ export interface OperationsListOptionalParams extends coreClient.OperationOption // @public export type OperationsListResponse = OperationListResult; +// @public +export interface OperationsResults { + beginGet(location: string, operationId: string, options?: OperationsResultsGetOptionalParams): Promise, OperationsResultsGetResponse>>; + beginGetAndWait(location: string, operationId: string, options?: OperationsResultsGetOptionalParams): Promise; +} + +// @public +export interface OperationsResultsGetHeaders { + location?: string; +} + +// @public +export interface OperationsResultsGetOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type OperationsResultsGetResponse = OperationResult; + // @public export type Origin = string; @@ -437,9 +696,15 @@ export type Polarization = string; // @public export type Protocol = string; +// @public +export type ProvisioningState = string; + // @public export type ProxyResource = Resource & {}; +// @public +export type ReleaseMode = string; + // @public export interface Resource { readonly id?: string; @@ -467,9 +732,8 @@ export interface ResourceReference { // @public export type Spacecraft = TrackedResource & { readonly etag?: string; + provisioningState?: SpacecraftsPropertiesProvisioningState; noradId?: string; - readonly authorizationStatus?: AuthorizationStatus; - readonly authorizationStatusExtended?: string; titleLine?: string; tleLine1?: string; tleLine2?: string; @@ -478,9 +742,11 @@ export type Spacecraft = TrackedResource & { // @public export interface SpacecraftLink { + readonly authorizations?: AuthorizedGroundstation[]; bandwidthMHz: number; centerFrequencyMHz: number; direction: Direction; + name: string; polarization: Polarization; } @@ -496,18 +762,24 @@ export interface Spacecrafts { beginCreateOrUpdateAndWait(resourceGroupName: string, spacecraftName: string, location: string, options?: SpacecraftsCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, spacecraftName: string, options?: SpacecraftsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, spacecraftName: string, options?: SpacecraftsDeleteOptionalParams): Promise; - beginListAvailableContacts(resourceGroupName: string, spacecraftName: string, contactProfile: ResourceReference, groundStationName: string, startTime: Date, endTime: Date, options?: SpacecraftsListAvailableContactsOptionalParams): Promise, SpacecraftsListAvailableContactsResponse>>; - beginListAvailableContactsAndWait(resourceGroupName: string, spacecraftName: string, contactProfile: ResourceReference, groundStationName: string, startTime: Date, endTime: Date, options?: SpacecraftsListAvailableContactsOptionalParams): Promise; + beginListAvailableContactsAndWait(resourceGroupName: string, spacecraftName: string, contactProfile: ContactParametersContactProfile, groundStationName: string, startTime: Date, endTime: Date, options?: SpacecraftsListAvailableContactsOptionalParams): PagedAsyncIterableIterator; + beginUpdateTags(resourceGroupName: string, spacecraftName: string, parameters: TagsObject, options?: SpacecraftsUpdateTagsOptionalParams): Promise, SpacecraftsUpdateTagsResponse>>; + beginUpdateTagsAndWait(resourceGroupName: string, spacecraftName: string, parameters: TagsObject, options?: SpacecraftsUpdateTagsOptionalParams): Promise; get(resourceGroupName: string, spacecraftName: string, options?: SpacecraftsGetOptionalParams): Promise; list(resourceGroupName: string, options?: SpacecraftsListOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: SpacecraftsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - updateTags(resourceGroupName: string, spacecraftName: string, parameters: TagsObject, options?: SpacecraftsUpdateTagsOptionalParams): Promise; +} + +// @public +export interface SpacecraftsCreateOrUpdateHeaders { + azureAsyncOperation?: string; } // @public export interface SpacecraftsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { links?: SpacecraftLink[]; noradId?: string; + provisioningState?: SpacecraftsPropertiesProvisioningState; resumeFrom?: string; tags?: { [propertyName: string]: string; @@ -521,6 +793,11 @@ export interface SpacecraftsCreateOrUpdateOptionalParams extends coreClient.Oper // @public export type SpacecraftsCreateOrUpdateResponse = Spacecraft; +// @public +export interface SpacecraftsDeleteHeaders { + location?: string; +} + // @public export interface SpacecraftsDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -534,6 +811,23 @@ export interface SpacecraftsGetOptionalParams extends coreClient.OperationOption // @public export type SpacecraftsGetResponse = Spacecraft; +// @public +export interface SpacecraftsListAvailableContactsHeaders { + location?: string; +} + +// @public +export interface SpacecraftsListAvailableContactsNextHeaders { + location?: string; +} + +// @public +export interface SpacecraftsListAvailableContactsNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SpacecraftsListAvailableContactsNextResponse = AvailableContactsListResult; + // @public export interface SpacecraftsListAvailableContactsOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -543,29 +837,57 @@ export interface SpacecraftsListAvailableContactsOptionalParams extends coreClie // @public export type SpacecraftsListAvailableContactsResponse = AvailableContactsListResult; +// @public +export interface SpacecraftsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { + skiptoken?: string; +} + +// @public +export type SpacecraftsListBySubscriptionNextResponse = SpacecraftListResult; + // @public export interface SpacecraftsListBySubscriptionOptionalParams extends coreClient.OperationOptions { + skiptoken?: string; } // @public export type SpacecraftsListBySubscriptionResponse = SpacecraftListResult; +// @public +export interface SpacecraftsListNextOptionalParams extends coreClient.OperationOptions { + skiptoken?: string; +} + +// @public +export type SpacecraftsListNextResponse = SpacecraftListResult; + // @public export interface SpacecraftsListOptionalParams extends coreClient.OperationOptions { + skiptoken?: string; } // @public export type SpacecraftsListResponse = SpacecraftListResult; +// @public +export type SpacecraftsPropertiesProvisioningState = string; + +// @public +export interface SpacecraftsUpdateTagsHeaders { + location?: string; +} + // @public export interface SpacecraftsUpdateTagsOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public export type SpacecraftsUpdateTagsResponse = Spacecraft; // @public -export type Status = "scheduled" | "cancelled" | "succeeded" | "failed" | "providerCancelled"; +export type Status = "scheduled" | "cancelled" | "succeeded" | "failed" | "providerCancelled" | "Succeeded" | "Canceled" | "Failed" | "Running"; // @public export interface SystemData { diff --git a/sdk/orbital/arm-orbital/src/azureOrbital.ts b/sdk/orbital/arm-orbital/src/azureOrbital.ts index f23108ff9021..3d28cfa42f51 100644 --- a/sdk/orbital/arm-orbital/src/azureOrbital.ts +++ b/sdk/orbital/arm-orbital/src/azureOrbital.ts @@ -13,14 +13,16 @@ import { SpacecraftsImpl, ContactsImpl, ContactProfilesImpl, - AvailableGroundStationsImpl + AvailableGroundStationsImpl, + OperationsResultsImpl } from "./operations"; import { Operations, Spacecrafts, Contacts, ContactProfiles, - AvailableGroundStations + AvailableGroundStations, + OperationsResults } from "./operationsInterfaces"; import { AzureOrbitalOptionalParams } from "./models"; @@ -56,7 +58,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`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -79,12 +81,13 @@ export class AzureOrbital extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-04-04-preview"; + this.apiVersion = options.apiVersion || "2022-03-01"; this.operations = new OperationsImpl(this); this.spacecrafts = new SpacecraftsImpl(this); this.contacts = new ContactsImpl(this); this.contactProfiles = new ContactProfilesImpl(this); this.availableGroundStations = new AvailableGroundStationsImpl(this); + this.operationsResults = new OperationsResultsImpl(this); } operations: Operations; @@ -92,4 +95,5 @@ export class AzureOrbital extends coreClient.ServiceClient { contacts: Contacts; contactProfiles: ContactProfiles; availableGroundStations: AvailableGroundStations; + operationsResults: OperationsResults; } diff --git a/sdk/orbital/arm-orbital/src/models/index.ts b/sdk/orbital/arm-orbital/src/models/index.ts index d4525a2a2bfc..4d59568ce8f6 100644 --- a/sdk/orbital/arm-orbital/src/models/index.ts +++ b/sdk/orbital/arm-orbital/src/models/index.ts @@ -101,8 +101,10 @@ export interface SpacecraftListResult { readonly nextLink?: string; } -/** Spacecraft Link */ +/** Authorized Ground Stations for the link */ export interface SpacecraftLink { + /** Link name */ + name: string; /** Center Frequency in MHz */ centerFrequencyMHz: number; /** Bandwidth in MHz */ @@ -111,6 +113,19 @@ export interface SpacecraftLink { direction: Direction; /** polarization. eg (RHCP, LHCP) */ polarization: Polarization; + /** + * Authorized Ground Stations + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly authorizations?: AuthorizedGroundstation[]; +} + +/** Authorized groundstation */ +export interface AuthorizedGroundstation { + /** Groundstation name */ + groundStation?: string; + /** Date of authorization expiration */ + expirationDate?: Date; } /** Common fields that are returned in the response for all Azure Resource Manager resources */ @@ -170,6 +185,14 @@ export interface ContactListResult { readonly nextLink?: string; } +/** The configuration associated with the allocated antenna. */ +export interface ContactsPropertiesAntennaConfiguration { + /** The destination IP a packet can be sent to. This would for example be the TCP endpoint you would send data to. */ + destinationIp?: string; + /** List of Source IP */ + sourceIps?: string[]; +} + /** Resource Reference */ export interface ResourceReference { /** Resource ID. */ @@ -179,7 +202,7 @@ export interface ResourceReference { /** Parameters that define the contact resource. */ export interface ContactParameters { /** The reference to the contact profile resource. */ - contactProfile: ResourceReference; + contactProfile: ContactParametersContactProfile; /** Name of Azure Ground Station. */ groundStationName: string; /** Start time of a contact. */ @@ -202,7 +225,7 @@ export interface AvailableContactsListResult { /** Customer retrieves list of Available Contacts for a spacecraft resource. Later, one of the available contact can be selected to create a contact. */ export interface AvailableContacts { /** The reference to the spacecraft resource. */ - spacecraft?: ResourceReference; + spacecraft?: AvailableContactsSpacecraft; /** * Name of Azure Ground Station. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -255,8 +278,83 @@ export interface AvailableContacts { readonly endElevationDegrees?: number; } -/** Contact Profile link */ +/** Contact Instance Properties */ +export interface ContactInstanceProperties { + /** + * Maximum elevation of the antenna during the contact in decimal degrees. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly maximumElevationDegrees?: number; + /** + * Time at which antenna transmit will be enabled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly txStartTime?: Date; + /** + * Time at which antenna transmit will be disabled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly txEndTime?: Date; + /** + * Earliest time to receive a signal. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly rxStartTime?: Date; + /** + * Time to lost receiving a signal. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly rxEndTime?: Date; + /** + * Azimuth of the antenna at the start of the contact in decimal degrees. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly startAzimuthDegrees?: number; + /** + * Azimuth of the antenna at the end of the contact in decimal degrees. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly endAzimuthDegrees?: number; + /** + * Spacecraft elevation above the horizon at contact start. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly startElevationDegrees?: number; + /** + * Spacecraft elevation above the horizon at contact end. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly endElevationDegrees?: number; +} + +/** List of Contact Profile Resource Properties. */ +export interface ContactProfilesProperties { + /** The current state of the resource's creation, deletion, or modification */ + provisioningState?: ContactProfilesPropertiesProvisioningState; + /** Minimum viable contact duration in ISO 8601 format. */ + minimumViableContactDuration?: string; + /** Minimum viable elevation for the contact in decimal degrees. */ + minimumElevationDegrees?: number; + /** Auto track configuration. */ + autoTrackingConfiguration?: AutoTrackingConfiguration; + /** The URI of the Event Hub used for telemetry */ + eventHubUri?: string; + /** Network configuration of customer virtual network. */ + networkConfiguration: ContactProfilesPropertiesNetworkConfiguration; + /** Links of the Contact Profile */ + links: ContactProfileLink[]; +} + +/** Network configuration of customer virtual network. */ +export interface ContactProfilesPropertiesNetworkConfiguration { + /** Customer subnet ARM resource identifier. */ + subnetId: string; +} + +/** Contact Profile Link */ export interface ContactProfileLink { + /** Link name */ + name: string; /** polarization. eg (RHCP, LHCP) */ polarization: Polarization; /** Direction (uplink or downlink) */ @@ -271,6 +369,8 @@ export interface ContactProfileLink { /** Contact Profile Link Channel */ export interface ContactProfileLinkChannel { + /** Channel name */ + name: string; /** Center Frequency in MHz */ centerFrequencyMHz: number; /** Bandwidth in MHz */ @@ -350,6 +450,73 @@ export interface AvailableGroundStation { latitudeDegrees?: number; /** Altitude of the ground station */ altitudeMeters?: number; + /** Release Status of a ground station */ + releaseMode?: ReleaseMode; +} + +/** Properties object for Available groundstation. */ +export interface AvailableGroundStationPropertiesAutoGenerated { + /** City of ground station. */ + city?: string; + /** Ground station provider name. */ + providerName?: string; + /** Longitude of the ground station in decimal degrees. */ + longitudeDegrees?: number; + /** Latitude of the ground station in decimal degrees. */ + latitudeDegrees?: number; + /** Altitude of the ground station */ + altitudeMeters?: number; + /** Release Status of a ground station */ + releaseMode?: ReleaseMode; +} + +/** Operation Result Entity. */ +export interface OperationResult { + /** + * ID of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Name of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** Status of a contact. */ + status?: Status; + /** + * The operation start time + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly startTime?: Date; + /** + * The operation end time + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly endTime?: Date; + /** + * Percentage completed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly percentComplete?: number; + /** Any object */ + properties?: Record; + /** Operation result error properties */ + error?: OperationResultErrorProperties; +} + +/** Operation result error properties */ +export interface OperationResultErrorProperties { + /** + * The code of the error. + * 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; } /** Response for an API service call that lists the resource IDs of resources associated with another resource. */ @@ -379,6 +546,24 @@ export type TrackedResource = Resource & { /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ export type ProxyResource = Resource & {}; +/** The reference to the contact profile resource. */ +export type ContactsPropertiesContactProfile = ResourceReference & {}; + +/** The reference to the contact profile resource. */ +export type ContactParametersContactProfile = ResourceReference & {}; + +/** The reference to the spacecraft resource. */ +export type AvailableContactsSpacecraft = ResourceReference & {}; + +/** Properties of Contact resource. */ +export type AvailableContactsProperties = ContactInstanceProperties & {}; + +/** Properties of the contact profile resource. */ +export type ContactProfileProperties = ContactProfilesProperties & {}; + +/** The properties bag for this resource */ +export type AvailableGroundStationProperties = AvailableGroundStationPropertiesAutoGenerated & {}; + /** Customer creates a spacecraft resource to schedule a contact. */ export type Spacecraft = TrackedResource & { /** @@ -386,18 +571,10 @@ export type Spacecraft = TrackedResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly etag?: string; + /** The current state of the resource's creation, deletion, or modification */ + provisioningState?: SpacecraftsPropertiesProvisioningState; /** NORAD ID of the spacecraft. */ noradId?: string; - /** - * Authorization status of spacecraft. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly authorizationStatus?: AuthorizationStatus; - /** - * Details of the authorization status. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly authorizationStatusExtended?: string; /** Title line of Two Line Element (TLE). */ titleLine?: string; /** Line 1 of Two Line Element (TLE). */ @@ -415,6 +592,8 @@ export type ContactProfile = TrackedResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly etag?: string; + /** The current state of the resource's creation, deletion, or modification */ + provisioningState?: ContactProfilesPropertiesProvisioningState; /** Minimum viable contact duration in ISO 8601 format. */ minimumViableContactDuration?: string; /** Minimum viable elevation for the contact in decimal degrees. */ @@ -423,6 +602,8 @@ export type ContactProfile = TrackedResource & { autoTrackingConfiguration?: AutoTrackingConfiguration; /** The URI of the Event Hub used for telemetry */ eventHubUri?: string; + /** Network configuration of customer virtual network. */ + networkConfiguration?: ContactProfilesPropertiesNetworkConfiguration; /** Links of the Contact Profile */ links?: ContactProfileLink[]; }; @@ -434,6 +615,8 @@ export type Contact = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly etag?: string; + /** The current state of the resource's creation, deletion, or modification */ + provisioningState?: ContactsPropertiesProvisioningState; /** * Status of a contact. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -495,10 +678,81 @@ export type Contact = ProxyResource & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly endElevationDegrees?: number; + /** + * The configuration associated with the allocated antenna. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly antennaConfiguration?: ContactsPropertiesAntennaConfiguration; /** The reference to the contact profile resource. */ - contactProfile?: ResourceReference; + contactProfile?: ContactsPropertiesContactProfile; }; +/** Defines headers for Spacecrafts_createOrUpdate operation. */ +export interface SpacecraftsCreateOrUpdateHeaders { + /** URL for checking the ongoing status of the operation. */ + azureAsyncOperation?: string; +} + +/** Defines headers for Spacecrafts_delete operation. */ +export interface SpacecraftsDeleteHeaders { + /** URL for determining when an operation has completed. */ + location?: string; +} + +/** Defines headers for Spacecrafts_updateTags operation. */ +export interface SpacecraftsUpdateTagsHeaders { + /** URL for determining when an operation has completed. */ + location?: string; +} + +/** Defines headers for Spacecrafts_listAvailableContacts operation. */ +export interface SpacecraftsListAvailableContactsHeaders { + /** URL for determining when an operation has completed. */ + location?: string; +} + +/** Defines headers for Spacecrafts_listAvailableContactsNext operation. */ +export interface SpacecraftsListAvailableContactsNextHeaders { + /** URL for determining when an operation has completed. */ + location?: string; +} + +/** Defines headers for Contacts_create operation. */ +export interface ContactsCreateHeaders { + /** URL for checking the ongoing status of the operation. */ + azureAsyncOperation?: string; +} + +/** Defines headers for Contacts_delete operation. */ +export interface ContactsDeleteHeaders { + /** URL for determining when an operation has completed. */ + location?: string; +} + +/** Defines headers for ContactProfiles_createOrUpdate operation. */ +export interface ContactProfilesCreateOrUpdateHeaders { + /** URL for checking the ongoing status of the operation. */ + azureAsyncOperation?: string; +} + +/** Defines headers for ContactProfiles_delete operation. */ +export interface ContactProfilesDeleteHeaders { + /** URL for determining when an operation has completed. */ + location?: string; +} + +/** Defines headers for ContactProfiles_updateTags operation. */ +export interface ContactProfilesUpdateTagsHeaders { + /** URL for determining when an operation has completed. */ + location?: string; +} + +/** Defines headers for OperationsResults_get operation. */ +export interface OperationsResultsGetHeaders { + /** URL for determining when an operation has completed. */ + location?: string; +} + /** Known values of {@link Origin} that the service accepts. */ export enum KnownOrigin { User = "user", @@ -531,6 +785,54 @@ export enum KnownActionType { */ export type ActionType = string; +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + Creating = "Creating", + Succeeded = "Succeeded", + Failed = "Failed", + Canceled = "Canceled", + Updating = "Updating", + Deleting = "Deleting" +} + +/** + * Defines values for ProvisioningState. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **Updating** \ + * **Deleting** + */ +export type ProvisioningState = string; + +/** Known values of {@link SpacecraftsPropertiesProvisioningState} that the service accepts. */ +export enum KnownSpacecraftsPropertiesProvisioningState { + Creating = "Creating", + Succeeded = "Succeeded", + Failed = "Failed", + Canceled = "Canceled", + Updating = "Updating", + Deleting = "Deleting" +} + +/** + * Defines values for SpacecraftsPropertiesProvisioningState. \ + * {@link KnownSpacecraftsPropertiesProvisioningState} can be used interchangeably with SpacecraftsPropertiesProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **Updating** \ + * **Deleting** + */ +export type SpacecraftsPropertiesProvisioningState = string; + /** Known values of {@link Direction} that the service accepts. */ export enum KnownDirection { Uplink = "uplink", @@ -551,7 +853,6 @@ export type Direction = string; export enum KnownPolarization { Rhcp = "RHCP", Lhcp = "LHCP", - DualRhcpLhcp = "dualRhcpLhcp", LinearVertical = "linearVertical", LinearHorizontal = "linearHorizontal" } @@ -563,7 +864,6 @@ export enum KnownPolarization { * ### Known values supported by the service * **RHCP** \ * **LHCP** \ - * **dualRhcpLhcp** \ * **linearVertical** \ * **linearHorizontal** */ @@ -589,6 +889,54 @@ export enum KnownCreatedByType { */ export type CreatedByType = string; +/** Known values of {@link ContactsPropertiesProvisioningState} that the service accepts. */ +export enum KnownContactsPropertiesProvisioningState { + Creating = "Creating", + Succeeded = "Succeeded", + Failed = "Failed", + Canceled = "Canceled", + Updating = "Updating", + Deleting = "Deleting" +} + +/** + * Defines values for ContactsPropertiesProvisioningState. \ + * {@link KnownContactsPropertiesProvisioningState} can be used interchangeably with ContactsPropertiesProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **Updating** \ + * **Deleting** + */ +export type ContactsPropertiesProvisioningState = string; + +/** Known values of {@link ContactProfilesPropertiesProvisioningState} that the service accepts. */ +export enum KnownContactProfilesPropertiesProvisioningState { + Creating = "Creating", + Succeeded = "Succeeded", + Failed = "Failed", + Canceled = "Canceled", + Updating = "Updating", + Deleting = "Deleting" +} + +/** + * Defines values for ContactProfilesPropertiesProvisioningState. \ + * {@link KnownContactProfilesPropertiesProvisioningState} can be used interchangeably with ContactProfilesPropertiesProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Creating** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **Updating** \ + * **Deleting** + */ +export type ContactProfilesPropertiesProvisioningState = string; + /** Known values of {@link Protocol} that the service accepts. */ export enum KnownProtocol { TCP = "TCP", @@ -605,21 +953,37 @@ export enum KnownProtocol { */ export type Protocol = string; -/** Known values of {@link Enum6} that the service accepts. */ -export enum KnownEnum6 { +/** Known values of {@link CapabilityParameter} that the service accepts. */ +export enum KnownCapabilityParameter { EarthObservation = "EarthObservation", Communication = "Communication" } /** - * Defines values for Enum6. \ - * {@link KnownEnum6} can be used interchangeably with Enum6, + * Defines values for CapabilityParameter. \ + * {@link KnownCapabilityParameter} can be used interchangeably with CapabilityParameter, * this enum contains the known values that the service supports. * ### Known values supported by the service * **EarthObservation** \ * **Communication** */ -export type Enum6 = string; +export type CapabilityParameter = string; + +/** Known values of {@link ReleaseMode} that the service accepts. */ +export enum KnownReleaseMode { + Preview = "Preview", + GA = "GA" +} + +/** + * Defines values for ReleaseMode. \ + * {@link KnownReleaseMode} can be used interchangeably with ReleaseMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Preview** \ + * **GA** + */ +export type ReleaseMode = string; /** Known values of {@link Capability} that the service accepts. */ export enum KnownCapability { @@ -636,15 +1000,35 @@ export enum KnownCapability { * **Communication** */ export type Capability = string; -/** Defines values for AuthorizationStatus. */ -export type AuthorizationStatus = "Allowed" | "Pending" | "Denied"; + +/** Known values of {@link ApiVersionParameter} that the service accepts. */ +export enum KnownApiVersionParameter { + TwoThousandTwenty0901Preview = "2020-09-01-preview", + TwoThousandTwentyOne0404Preview = "2021-04-04-preview", + TwoThousandTwentyTwo0301 = "2022-03-01" +} + +/** + * Defines values for ApiVersionParameter. \ + * {@link KnownApiVersionParameter} can be used interchangeably with ApiVersionParameter, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **2020-09-01-preview** \ + * **2021-04-04-preview** \ + * **2022-03-01** + */ +export type ApiVersionParameter = string; /** Defines values for Status. */ export type Status = | "scheduled" | "cancelled" | "succeeded" | "failed" - | "providerCancelled"; + | "providerCancelled" + | "Succeeded" + | "Canceled" + | "Failed" + | "Running"; /** Defines values for AutoTrackingConfiguration. */ export type AutoTrackingConfiguration = "disabled" | "xBand" | "sBand"; @@ -657,14 +1041,20 @@ export type OperationsListResponse = OperationListResult; /** Optional parameters. */ export interface SpacecraftsListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** An opaque string that the resource provider uses to skip over previously-returned results. This is used when a previous list operation call returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. */ + skiptoken?: string; +} /** Contains response data for the listBySubscription operation. */ export type SpacecraftsListBySubscriptionResponse = SpacecraftListResult; /** Optional parameters. */ export interface SpacecraftsListOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** An opaque string that the resource provider uses to skip over previously-returned results. This is used when a previous list operation call returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. */ + skiptoken?: string; +} /** Contains response data for the list operation. */ export type SpacecraftsListResponse = SpacecraftListResult; @@ -681,6 +1071,8 @@ export interface SpacecraftsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Resource tags. */ tags?: { [propertyName: string]: string }; + /** The current state of the resource's creation, deletion, or modification */ + provisioningState?: SpacecraftsPropertiesProvisioningState; /** NORAD ID of the spacecraft. */ noradId?: string; /** Title line of Two Line Element (TLE). */ @@ -711,7 +1103,12 @@ export interface SpacecraftsDeleteOptionalParams /** Optional parameters. */ export interface SpacecraftsUpdateTagsOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the updateTags operation. */ export type SpacecraftsUpdateTagsResponse = Spacecraft; @@ -729,9 +1126,39 @@ export interface SpacecraftsListAvailableContactsOptionalParams export type SpacecraftsListAvailableContactsResponse = AvailableContactsListResult; /** Optional parameters. */ -export interface ContactsListOptionalParams +export interface SpacecraftsListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions { + /** An opaque string that the resource provider uses to skip over previously-returned results. This is used when a previous list operation call returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. */ + skiptoken?: string; +} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type SpacecraftsListBySubscriptionNextResponse = SpacecraftListResult; + +/** Optional parameters. */ +export interface SpacecraftsListNextOptionalParams + extends coreClient.OperationOptions { + /** An opaque string that the resource provider uses to skip over previously-returned results. This is used when a previous list operation call returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. */ + skiptoken?: string; +} + +/** Contains response data for the listNext operation. */ +export type SpacecraftsListNextResponse = SpacecraftListResult; + +/** Optional parameters. */ +export interface SpacecraftsListAvailableContactsNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listAvailableContactsNext operation. */ +export type SpacecraftsListAvailableContactsNextResponse = AvailableContactsListResult; + +/** Optional parameters. */ +export interface ContactsListOptionalParams + extends coreClient.OperationOptions { + /** An opaque string that the resource provider uses to skip over previously-returned results. This is used when a previous list operation call returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. */ + skiptoken?: string; +} + /** Contains response data for the list operation. */ export type ContactsListResponse = ContactListResult; @@ -763,6 +1190,16 @@ export interface ContactsDeleteOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface ContactsListNextOptionalParams + extends coreClient.OperationOptions { + /** An opaque string that the resource provider uses to skip over previously-returned results. This is used when a previous list operation call returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. */ + skiptoken?: string; +} + +/** Contains response data for the listNext operation. */ +export type ContactsListNextResponse = ContactListResult; + /** Optional parameters. */ export interface ContactProfilesGetOptionalParams extends coreClient.OperationOptions {} @@ -775,6 +1212,8 @@ export interface ContactProfilesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Resource tags. */ tags?: { [propertyName: string]: string }; + /** The current state of the resource's creation, deletion, or modification */ + provisioningState?: ContactProfilesPropertiesProvisioningState; /** Minimum viable contact duration in ISO 8601 format. */ minimumViableContactDuration?: string; /** Minimum viable elevation for the contact in decimal degrees. */ @@ -783,6 +1222,8 @@ export interface ContactProfilesCreateOrUpdateOptionalParams autoTrackingConfiguration?: AutoTrackingConfiguration; /** The URI of the Event Hub used for telemetry */ eventHubUri?: string; + /** Network configuration of customer virtual network. */ + networkConfiguration?: ContactProfilesPropertiesNetworkConfiguration; /** Links of the Contact Profile */ links?: ContactProfileLink[]; /** Delay to wait until next poll, in milliseconds. */ @@ -805,25 +1246,56 @@ export interface ContactProfilesDeleteOptionalParams /** Optional parameters. */ export interface ContactProfilesUpdateTagsOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the updateTags operation. */ export type ContactProfilesUpdateTagsResponse = ContactProfile; /** Optional parameters. */ export interface ContactProfilesListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** An opaque string that the resource provider uses to skip over previously-returned results. This is used when a previous list operation call returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. */ + skiptoken?: string; +} /** Contains response data for the listBySubscription operation. */ export type ContactProfilesListBySubscriptionResponse = ContactProfileListResult; /** Optional parameters. */ export interface ContactProfilesListOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** An opaque string that the resource provider uses to skip over previously-returned results. This is used when a previous list operation call returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. */ + skiptoken?: string; +} /** Contains response data for the list operation. */ export type ContactProfilesListResponse = ContactProfileListResult; +/** Optional parameters. */ +export interface ContactProfilesListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions { + /** An opaque string that the resource provider uses to skip over previously-returned results. This is used when a previous list operation call returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. */ + skiptoken?: string; +} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type ContactProfilesListBySubscriptionNextResponse = ContactProfileListResult; + +/** Optional parameters. */ +export interface ContactProfilesListNextOptionalParams + extends coreClient.OperationOptions { + /** An opaque string that the resource provider uses to skip over previously-returned results. This is used when a previous list operation call returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. */ + skiptoken?: string; +} + +/** Contains response data for the listNext operation. */ +export type ContactProfilesListNextResponse = ContactProfileListResult; + /** Optional parameters. */ export interface AvailableGroundStationsListByCapabilityOptionalParams extends coreClient.OperationOptions {} @@ -845,6 +1317,18 @@ export interface AvailableGroundStationsListByCapabilityNextOptionalParams /** Contains response data for the listByCapabilityNext operation. */ export type AvailableGroundStationsListByCapabilityNextResponse = AvailableGroundStationListResult; +/** Optional parameters. */ +export interface OperationsResultsGetOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the get operation. */ +export type OperationsResultsGetResponse = OperationResult; + /** Optional parameters. */ export interface AzureOrbitalOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/orbital/arm-orbital/src/models/mappers.ts b/sdk/orbital/arm-orbital/src/models/mappers.ts index 0c257c38bc0c..a80a7f82b8f2 100644 --- a/sdk/orbital/arm-orbital/src/models/mappers.ts +++ b/sdk/orbital/arm-orbital/src/models/mappers.ts @@ -206,6 +206,13 @@ export const SpacecraftLink: coreClient.CompositeMapper = { name: "Composite", className: "SpacecraftLink", modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, centerFrequencyMHz: { serializedName: "centerFrequencyMHz", required: true, @@ -233,6 +240,40 @@ export const SpacecraftLink: coreClient.CompositeMapper = { type: { name: "String" } + }, + authorizations: { + serializedName: "authorizations", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AuthorizedGroundstation" + } + } + } + } + } + } +}; + +export const AuthorizedGroundstation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AuthorizedGroundstation", + modelProperties: { + groundStation: { + serializedName: "groundStation", + type: { + name: "String" + } + }, + expirationDate: { + serializedName: "expirationDate", + type: { + name: "Date" + } } } } @@ -364,6 +405,32 @@ export const ContactListResult: coreClient.CompositeMapper = { } }; +export const ContactsPropertiesAntennaConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContactsPropertiesAntennaConfiguration", + modelProperties: { + destinationIp: { + serializedName: "destinationIp", + type: { + name: "String" + } + }, + sourceIps: { + serializedName: "sourceIps", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const ResourceReference: coreClient.CompositeMapper = { type: { name: "Composite", @@ -388,7 +455,7 @@ export const ContactParameters: coreClient.CompositeMapper = { serializedName: "contactProfile", type: { name: "Composite", - className: "ResourceReference" + className: "ContactParametersContactProfile" } }, groundStationName: { @@ -453,7 +520,7 @@ export const AvailableContacts: coreClient.CompositeMapper = { serializedName: "spacecraft", type: { name: "Composite", - className: "ResourceReference" + className: "AvailableContactsSpacecraft" } }, groundStationName: { @@ -530,11 +597,166 @@ export const AvailableContacts: coreClient.CompositeMapper = { } }; +export const ContactInstanceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContactInstanceProperties", + modelProperties: { + maximumElevationDegrees: { + serializedName: "maximumElevationDegrees", + readOnly: true, + type: { + name: "Number" + } + }, + txStartTime: { + serializedName: "txStartTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + txEndTime: { + serializedName: "txEndTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + rxStartTime: { + serializedName: "rxStartTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + rxEndTime: { + serializedName: "rxEndTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + startAzimuthDegrees: { + serializedName: "startAzimuthDegrees", + readOnly: true, + type: { + name: "Number" + } + }, + endAzimuthDegrees: { + serializedName: "endAzimuthDegrees", + readOnly: true, + type: { + name: "Number" + } + }, + startElevationDegrees: { + serializedName: "startElevationDegrees", + readOnly: true, + type: { + name: "Number" + } + }, + endElevationDegrees: { + serializedName: "endElevationDegrees", + readOnly: true, + type: { + name: "Number" + } + } + } + } +}; + +export const ContactProfilesProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContactProfilesProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", + type: { + name: "String" + } + }, + minimumViableContactDuration: { + serializedName: "minimumViableContactDuration", + type: { + name: "String" + } + }, + minimumElevationDegrees: { + serializedName: "minimumElevationDegrees", + type: { + name: "Number" + } + }, + autoTrackingConfiguration: { + serializedName: "autoTrackingConfiguration", + type: { + name: "Enum", + allowedValues: ["disabled", "xBand", "sBand"] + } + }, + eventHubUri: { + serializedName: "eventHubUri", + type: { + name: "String" + } + }, + networkConfiguration: { + serializedName: "networkConfiguration", + type: { + name: "Composite", + className: "ContactProfilesPropertiesNetworkConfiguration" + } + }, + links: { + serializedName: "links", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ContactProfileLink" + } + } + } + } + } + } +}; + +export const ContactProfilesPropertiesNetworkConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContactProfilesPropertiesNetworkConfiguration", + modelProperties: { + subnetId: { + serializedName: "subnetId", + required: true, + type: { + name: "String" + } + } + } + } +}; + export const ContactProfileLink: coreClient.CompositeMapper = { type: { name: "Composite", className: "ContactProfileLink", modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, polarization: { serializedName: "polarization", required: true, @@ -583,6 +805,13 @@ export const ContactProfileLinkChannel: coreClient.CompositeMapper = { name: "Composite", className: "ContactProfileLinkChannel", modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, centerFrequencyMHz: { serializedName: "centerFrequencyMHz", required: true, @@ -786,6 +1015,159 @@ export const AvailableGroundStation: coreClient.CompositeMapper = { type: { name: "Number" } + }, + releaseMode: { + serializedName: "properties.releaseMode", + type: { + name: "String" + } + } + } + } +}; + +export const AvailableGroundStationPropertiesAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AvailableGroundStationPropertiesAutoGenerated", + modelProperties: { + city: { + serializedName: "city", + type: { + name: "String" + } + }, + providerName: { + serializedName: "providerName", + type: { + name: "String" + } + }, + longitudeDegrees: { + serializedName: "longitudeDegrees", + type: { + name: "Number" + } + }, + latitudeDegrees: { + serializedName: "latitudeDegrees", + type: { + name: "Number" + } + }, + altitudeMeters: { + serializedName: "altitudeMeters", + type: { + name: "Number" + } + }, + releaseMode: { + serializedName: "releaseMode", + type: { + name: "String" + } + } + } + } +}; + +export const OperationResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationResult", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "Enum", + allowedValues: [ + "scheduled", + "cancelled", + "succeeded", + "failed", + "providerCancelled", + "Succeeded", + "Canceled", + "Failed", + "Running" + ] + } + }, + startTime: { + serializedName: "startTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + endTime: { + serializedName: "endTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + percentComplete: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + serializedName: "percentComplete", + readOnly: true, + type: { + name: "Number" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "OperationResultErrorProperties" + } + } + } + } +}; + +export const OperationResultErrorProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationResultErrorProperties", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" + } } } } @@ -868,6 +1250,66 @@ export const ProxyResource: coreClient.CompositeMapper = { } }; +export const ContactsPropertiesContactProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContactsPropertiesContactProfile", + modelProperties: { + ...ResourceReference.type.modelProperties + } + } +}; + +export const ContactParametersContactProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContactParametersContactProfile", + modelProperties: { + ...ResourceReference.type.modelProperties + } + } +}; + +export const AvailableContactsSpacecraft: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AvailableContactsSpacecraft", + modelProperties: { + ...ResourceReference.type.modelProperties + } + } +}; + +export const AvailableContactsProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AvailableContactsProperties", + modelProperties: { + ...ContactInstanceProperties.type.modelProperties + } + } +}; + +export const ContactProfileProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContactProfileProperties", + modelProperties: { + ...ContactProfilesProperties.type.modelProperties + } + } +}; + +export const AvailableGroundStationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AvailableGroundStationProperties", + modelProperties: { + ...AvailableGroundStationPropertiesAutoGenerated.type.modelProperties + } + } +}; + export const Spacecraft: coreClient.CompositeMapper = { type: { name: "Composite", @@ -881,23 +1323,14 @@ export const Spacecraft: coreClient.CompositeMapper = { name: "String" } }, - noradId: { - serializedName: "properties.noradId", + provisioningState: { + serializedName: "properties.provisioningState", type: { name: "String" } }, - authorizationStatus: { - serializedName: "properties.authorizationStatus", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["Allowed", "Pending", "Denied"] - } - }, - authorizationStatusExtended: { - serializedName: "properties.authorizationStatusExtended", - readOnly: true, + noradId: { + serializedName: "properties.noradId", type: { name: "String" } @@ -949,6 +1382,12 @@ export const ContactProfile: coreClient.CompositeMapper = { name: "String" } }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, minimumViableContactDuration: { serializedName: "properties.minimumViableContactDuration", type: { @@ -974,6 +1413,13 @@ export const ContactProfile: coreClient.CompositeMapper = { name: "String" } }, + networkConfiguration: { + serializedName: "properties.networkConfiguration", + type: { + name: "Composite", + className: "ContactProfilesPropertiesNetworkConfiguration" + } + }, links: { serializedName: "properties.links", type: { @@ -1003,6 +1449,12 @@ export const Contact: coreClient.CompositeMapper = { name: "String" } }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, status: { serializedName: "properties.status", readOnly: true, @@ -1013,7 +1465,11 @@ export const Contact: coreClient.CompositeMapper = { "cancelled", "succeeded", "failed", - "providerCancelled" + "providerCancelled", + "Succeeded", + "Canceled", + "Failed", + "Running" ] } }, @@ -1105,11 +1561,183 @@ export const Contact: coreClient.CompositeMapper = { name: "Number" } }, + antennaConfiguration: { + serializedName: "properties.antennaConfiguration", + type: { + name: "Composite", + className: "ContactsPropertiesAntennaConfiguration" + } + }, contactProfile: { serializedName: "properties.contactProfile", type: { name: "Composite", - className: "ResourceReference" + className: "ContactsPropertiesContactProfile" + } + } + } + } +}; + +export const SpacecraftsCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SpacecraftsCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const SpacecraftsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SpacecraftsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const SpacecraftsUpdateTagsHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SpacecraftsUpdateTagsHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const SpacecraftsListAvailableContactsHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SpacecraftsListAvailableContactsHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const SpacecraftsListAvailableContactsNextHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SpacecraftsListAvailableContactsNextHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const ContactsCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContactsCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const ContactsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContactsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const ContactProfilesCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContactProfilesCreateOrUpdateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const ContactProfilesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContactProfilesDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const ContactProfilesUpdateTagsHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ContactProfilesUpdateTagsHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const OperationsResultsGetHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationsResultsGetHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" } } } diff --git a/sdk/orbital/arm-orbital/src/models/parameters.ts b/sdk/orbital/arm-orbital/src/models/parameters.ts index 12d0a82cada7..3a205e5a5026 100644 --- a/sdk/orbital/arm-orbital/src/models/parameters.ts +++ b/sdk/orbital/arm-orbital/src/models/parameters.ts @@ -46,7 +46,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-04-04-preview", + defaultValue: "2022-03-01", isConstant: true, serializedName: "api-version", type: { @@ -69,6 +69,16 @@ export const subscriptionId: OperationURLParameter = { } }; +export const skiptoken: OperationQueryParameter = { + parameterPath: ["options", "skiptoken"], + mapper: { + serializedName: "$skiptoken", + type: { + name: "String" + } + } +}; + export const resourceGroupName: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { @@ -117,6 +127,11 @@ export const location: OperationParameter = { mapper: SpacecraftMapper }; +export const provisioningState: OperationParameter = { + parameterPath: ["options", "provisioningState"], + mapper: SpacecraftMapper +}; + export const noradId: OperationParameter = { parameterPath: ["options", "noradId"], mapper: SpacecraftMapper @@ -167,6 +182,18 @@ export const endTime: OperationParameter = { mapper: ContactParametersMapper }; +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; + export const contactName: OperationURLParameter = { parameterPath: "contactName", mapper: { @@ -204,6 +231,11 @@ export const location1: OperationParameter = { mapper: ContactProfileMapper }; +export const provisioningState1: OperationParameter = { + parameterPath: ["options", "provisioningState"], + mapper: ContactProfileMapper +}; + export const minimumViableContactDuration: OperationParameter = { parameterPath: ["options", "minimumViableContactDuration"], mapper: ContactProfileMapper @@ -224,6 +256,11 @@ export const eventHubUri: OperationParameter = { mapper: ContactProfileMapper }; +export const networkConfiguration: OperationParameter = { + parameterPath: ["options", "networkConfiguration"], + mapper: ContactProfileMapper +}; + export const links1: OperationParameter = { parameterPath: ["options", "links"], mapper: ContactProfileMapper @@ -252,14 +289,30 @@ export const groundStationName1: OperationURLParameter = { } }; -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", +export const location2: OperationURLParameter = { + parameterPath: "location", mapper: { - serializedName: "nextLink", + constraints: { + MinLength: 1 + }, + serializedName: "location", required: true, type: { name: "String" } - }, - skipEncoding: true + } +}; + +export const operationId: OperationURLParameter = { + parameterPath: "operationId", + mapper: { + constraints: { + MinLength: 1 + }, + serializedName: "operationId", + required: true, + type: { + name: "String" + } + } }; diff --git a/sdk/orbital/arm-orbital/src/operations/availableGroundStations.ts b/sdk/orbital/arm-orbital/src/operations/availableGroundStations.ts index 5df25eab882a..4a1a0c920ac1 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, + CapabilityParameter, AvailableGroundStationsListByCapabilityNextOptionalParams, AvailableGroundStationsListByCapabilityOptionalParams, AvailableGroundStationsListByCapabilityResponse, @@ -42,7 +42,7 @@ export class AvailableGroundStationsImpl implements AvailableGroundStations { * @param options The options parameters. */ public listByCapability( - capability: Enum6, + capability: CapabilityParameter, options?: AvailableGroundStationsListByCapabilityOptionalParams ): PagedAsyncIterableIterator { const iter = this.listByCapabilityPagingAll(capability, options); @@ -60,7 +60,7 @@ export class AvailableGroundStationsImpl implements AvailableGroundStations { } private async *listByCapabilityPagingPage( - capability: Enum6, + capability: CapabilityParameter, 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: CapabilityParameter, 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: CapabilityParameter, 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: CapabilityParameter, nextLink: string, options?: AvailableGroundStationsListByCapabilityNextOptionalParams ): Promise { diff --git a/sdk/orbital/arm-orbital/src/operations/contactProfiles.ts b/sdk/orbital/arm-orbital/src/operations/contactProfiles.ts index dba0196a58cb..9a6e301a6f81 100644 --- a/sdk/orbital/arm-orbital/src/operations/contactProfiles.ts +++ b/sdk/orbital/arm-orbital/src/operations/contactProfiles.ts @@ -16,7 +16,9 @@ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { ContactProfile, + ContactProfilesListBySubscriptionNextOptionalParams, ContactProfilesListBySubscriptionOptionalParams, + ContactProfilesListNextOptionalParams, ContactProfilesListOptionalParams, ContactProfilesGetOptionalParams, ContactProfilesGetResponse, @@ -27,7 +29,9 @@ import { ContactProfilesUpdateTagsOptionalParams, ContactProfilesUpdateTagsResponse, ContactProfilesListBySubscriptionResponse, - ContactProfilesListResponse + ContactProfilesListResponse, + ContactProfilesListBySubscriptionNextResponse, + ContactProfilesListNextResponse } from "../models"; /// @@ -44,7 +48,7 @@ export class ContactProfilesImpl implements ContactProfiles { } /** - * Returns list of contact profiles + * Returns list of contact profiles by Subscription * @param options The options parameters. */ public listBySubscription( @@ -69,6 +73,12 @@ export class ContactProfilesImpl implements ContactProfiles { ): AsyncIterableIterator { let result = await this._listBySubscription(options); yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } } private async *listBySubscriptionPagingAll( @@ -80,7 +90,7 @@ export class ContactProfilesImpl implements ContactProfiles { } /** - * Returns list of contact profiles + * Returns list of contact profiles by Resource Group * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ @@ -108,6 +118,16 @@ export class ContactProfilesImpl implements ContactProfiles { ): AsyncIterableIterator { let result = await this._list(resourceGroupName, options); yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } } private async *listPagingAll( @@ -315,20 +335,92 @@ export class ContactProfilesImpl implements ContactProfiles { * @param parameters Parameters supplied to update contact profile tags. * @param options The options parameters. */ - updateTags( + async beginUpdateTags( resourceGroupName: string, contactProfileName: string, parameters: TagsObject, options?: ContactProfilesUpdateTagsOptionalParams - ): Promise { - return this.client.sendOperationRequest( + ): Promise< + PollerLike< + PollOperationState, + ContactProfilesUpdateTagsResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, { resourceGroupName, contactProfileName, parameters, options }, updateTagsOperationSpec ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + } + + /** + * Updates the specified contact profile tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param contactProfileName Contact Profile Name + * @param parameters Parameters supplied to update contact profile tags. + * @param options The options parameters. + */ + async beginUpdateTagsAndWait( + resourceGroupName: string, + contactProfileName: string, + parameters: TagsObject, + options?: ContactProfilesUpdateTagsOptionalParams + ): Promise { + const poller = await this.beginUpdateTags( + resourceGroupName, + contactProfileName, + parameters, + options + ); + return poller.pollUntilDone(); } /** - * Returns list of contact profiles + * Returns list of contact profiles by Subscription * @param options The options parameters. */ private _listBySubscription( @@ -341,7 +433,7 @@ export class ContactProfilesImpl implements ContactProfiles { } /** - * Returns list of contact profiles + * Returns list of contact profiles by Resource Group * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ @@ -354,6 +446,38 @@ export class ContactProfilesImpl implements ContactProfiles { listOperationSpec ); } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: ContactProfilesListBySubscriptionNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + nextLink: string, + options?: ContactProfilesListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -405,10 +529,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { parameterPath: { tags: ["options", "tags"], location: ["location"], + provisioningState: ["options", "provisioningState"], minimumViableContactDuration: ["options", "minimumViableContactDuration"], minimumElevationDegrees: ["options", "minimumElevationDegrees"], autoTrackingConfiguration: ["options", "autoTrackingConfiguration"], eventHubUri: ["options", "eventHubUri"], + networkConfiguration: ["options", "networkConfiguration"], links: ["options", "links"] }, mapper: { ...Mappers.ContactProfile, required: true } @@ -455,6 +581,15 @@ const updateTagsOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.ContactProfile }, + 201: { + bodyMapper: Mappers.ContactProfile + }, + 202: { + bodyMapper: Mappers.ContactProfile + }, + 204: { + bodyMapper: Mappers.ContactProfile + }, default: { bodyMapper: Mappers.CloudError } @@ -483,7 +618,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.skiptoken], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -500,7 +635,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.skiptoken], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -509,3 +644,44 @@ const listOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ContactProfileListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skiptoken], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ContactProfileListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skiptoken], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/orbital/arm-orbital/src/operations/contacts.ts b/sdk/orbital/arm-orbital/src/operations/contacts.ts index 279101a90e04..7ea1d40f8de6 100644 --- a/sdk/orbital/arm-orbital/src/operations/contacts.ts +++ b/sdk/orbital/arm-orbital/src/operations/contacts.ts @@ -16,13 +16,15 @@ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { Contact, + ContactsListNextOptionalParams, ContactsListOptionalParams, ContactsListResponse, ContactsGetOptionalParams, ContactsGetResponse, ContactsCreateOptionalParams, ContactsCreateResponse, - ContactsDeleteOptionalParams + ContactsDeleteOptionalParams, + ContactsListNextResponse } from "../models"; /// @@ -70,6 +72,17 @@ export class ContactsImpl implements Contacts { ): AsyncIterableIterator { let result = await this._list(resourceGroupName, spacecraftName, options); yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + spacecraftName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } } private async *listPagingAll( @@ -303,6 +316,25 @@ export class ContactsImpl implements Contacts { ); return poller.pollUntilDone(); } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param spacecraftName Spacecraft ID + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + spacecraftName: string, + nextLink: string, + options?: ContactsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, spacecraftName, nextLink, options }, + listNextOperationSpec + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -319,7 +351,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.skiptoken], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -410,3 +442,25 @@ const deleteOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ContactListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skiptoken], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.spacecraftName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/orbital/arm-orbital/src/operations/index.ts b/sdk/orbital/arm-orbital/src/operations/index.ts index d2a05bd6a08c..1ce0e93d579d 100644 --- a/sdk/orbital/arm-orbital/src/operations/index.ts +++ b/sdk/orbital/arm-orbital/src/operations/index.ts @@ -11,3 +11,4 @@ export * from "./spacecrafts"; export * from "./contacts"; export * from "./contactProfiles"; export * from "./availableGroundStations"; +export * from "./operationsResults"; diff --git a/sdk/orbital/arm-orbital/src/operations/operationsResults.ts b/sdk/orbital/arm-orbital/src/operations/operationsResults.ts new file mode 100644 index 000000000000..13e3a74a4009 --- /dev/null +++ b/sdk/orbital/arm-orbital/src/operations/operationsResults.ts @@ -0,0 +1,147 @@ +/* + * 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 { OperationsResults } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureOrbital } from "../azureOrbital"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + OperationsResultsGetOptionalParams, + OperationsResultsGetResponse +} from "../models"; + +/** Class containing OperationsResults operations. */ +export class OperationsResultsImpl implements OperationsResults { + private readonly client: AzureOrbital; + + /** + * Initialize a new instance of the class OperationsResults class. + * @param client Reference to the service client + */ + constructor(client: AzureOrbital) { + this.client = client; + } + + /** + * Returns operation results. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. + * @param options The options parameters. + */ + async beginGet( + location: string, + operationId: string, + options?: OperationsResultsGetOptionalParams + ): Promise< + PollerLike< + PollOperationState, + OperationsResultsGetResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, + { location, operationId, options }, + getOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + } + + /** + * Returns operation results. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. + * @param options The options parameters. + */ + async beginGetAndWait( + location: string, + operationId: string, + options?: OperationsResultsGetOptionalParams + ): Promise { + const poller = await this.beginGet(location, operationId, options); + return poller.pollUntilDone(); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Orbital/locations/{location}/operationResults/{operationId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationResult + }, + 201: { + bodyMapper: Mappers.OperationResult + }, + 202: { + bodyMapper: Mappers.OperationResult + }, + 204: { + bodyMapper: Mappers.OperationResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location2, + Parameters.operationId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/orbital/arm-orbital/src/operations/spacecrafts.ts b/sdk/orbital/arm-orbital/src/operations/spacecrafts.ts index d98473826dcc..368660d341a5 100644 --- a/sdk/orbital/arm-orbital/src/operations/spacecrafts.ts +++ b/sdk/orbital/arm-orbital/src/operations/spacecrafts.ts @@ -16,8 +16,14 @@ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { Spacecraft, + SpacecraftsListBySubscriptionNextOptionalParams, SpacecraftsListBySubscriptionOptionalParams, + SpacecraftsListNextOptionalParams, SpacecraftsListOptionalParams, + AvailableContacts, + ContactParametersContactProfile, + SpacecraftsListAvailableContactsNextOptionalParams, + SpacecraftsListAvailableContactsOptionalParams, SpacecraftsListBySubscriptionResponse, SpacecraftsListResponse, SpacecraftsGetOptionalParams, @@ -28,9 +34,10 @@ import { TagsObject, SpacecraftsUpdateTagsOptionalParams, SpacecraftsUpdateTagsResponse, - ResourceReference, - SpacecraftsListAvailableContactsOptionalParams, - SpacecraftsListAvailableContactsResponse + SpacecraftsListAvailableContactsResponse, + SpacecraftsListBySubscriptionNextResponse, + SpacecraftsListNextResponse, + SpacecraftsListAvailableContactsNextResponse } from "../models"; /// @@ -72,6 +79,12 @@ export class SpacecraftsImpl implements Spacecrafts { ): AsyncIterableIterator { let result = await this._listBySubscription(options); yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } } private async *listBySubscriptionPagingAll( @@ -111,6 +124,16 @@ export class SpacecraftsImpl implements Spacecrafts { ): AsyncIterableIterator { let result = await this._list(resourceGroupName, options); yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } } private async *listPagingAll( @@ -122,6 +145,114 @@ export class SpacecraftsImpl implements Spacecrafts { } } + /** + * Return list of available contacts + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param spacecraftName Spacecraft ID + * @param contactProfile The reference to the contact profile resource. + * @param groundStationName Name of Azure Ground Station. + * @param startTime Start time of a contact. + * @param endTime End time of a contact. + * @param options The options parameters. + */ + public beginListAvailableContactsAndWait( + resourceGroupName: string, + spacecraftName: string, + contactProfile: ContactParametersContactProfile, + groundStationName: string, + startTime: Date, + endTime: Date, + options?: SpacecraftsListAvailableContactsOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listAvailableContactsPagingAll( + resourceGroupName, + spacecraftName, + contactProfile, + groundStationName, + startTime, + endTime, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listAvailableContactsPagingPage( + resourceGroupName, + spacecraftName, + contactProfile, + groundStationName, + startTime, + endTime, + options + ); + } + }; + } + + private async *listAvailableContactsPagingPage( + resourceGroupName: string, + spacecraftName: string, + contactProfile: ContactParametersContactProfile, + groundStationName: string, + startTime: Date, + endTime: Date, + options?: SpacecraftsListAvailableContactsOptionalParams + ): AsyncIterableIterator { + const poller = await this._listAvailableContacts( + resourceGroupName, + spacecraftName, + contactProfile, + groundStationName, + startTime, + endTime, + options + ); + let result: any = await poller.pollUntilDone(); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listAvailableContactsNext( + resourceGroupName, + spacecraftName, + contactProfile, + groundStationName, + startTime, + endTime, + continuationToken, + options + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listAvailableContactsPagingAll( + resourceGroupName: string, + spacecraftName: string, + contactProfile: ContactParametersContactProfile, + groundStationName: string, + startTime: Date, + endTime: Date, + options?: SpacecraftsListAvailableContactsOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listAvailableContactsPagingPage( + resourceGroupName, + spacecraftName, + contactProfile, + groundStationName, + startTime, + endTime, + options + )) { + yield* page; + } + } + /** * Return list of spacecrafts * @param options The options parameters. @@ -346,16 +477,88 @@ export class SpacecraftsImpl implements Spacecrafts { * @param parameters Parameters supplied to update spacecraft tags. * @param options The options parameters. */ - updateTags( + async beginUpdateTags( resourceGroupName: string, spacecraftName: string, parameters: TagsObject, options?: SpacecraftsUpdateTagsOptionalParams - ): Promise { - return this.client.sendOperationRequest( + ): Promise< + PollerLike< + PollOperationState, + SpacecraftsUpdateTagsResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = new LroImpl( + sendOperation, { resourceGroupName, spacecraftName, parameters, options }, updateTagsOperationSpec ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); + } + + /** + * Updates the specified spacecraft tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param spacecraftName Spacecraft ID + * @param parameters Parameters supplied to update spacecraft tags. + * @param options The options parameters. + */ + async beginUpdateTagsAndWait( + resourceGroupName: string, + spacecraftName: string, + parameters: TagsObject, + options?: SpacecraftsUpdateTagsOptionalParams + ): Promise { + const poller = await this.beginUpdateTags( + resourceGroupName, + spacecraftName, + parameters, + options + ); + return poller.pollUntilDone(); } /** @@ -368,10 +571,10 @@ export class SpacecraftsImpl implements Spacecrafts { * @param endTime End time of a contact. * @param options The options parameters. */ - async beginListAvailableContacts( + private async _listAvailableContacts( resourceGroupName: string, spacecraftName: string, - contactProfile: ResourceReference, + contactProfile: ContactParametersContactProfile, groundStationName: string, startTime: Date, endTime: Date, @@ -437,39 +640,76 @@ export class SpacecraftsImpl implements Spacecrafts { return new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + lroResourceLocationConfig: "location" }); } /** - * Return list of available contacts + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: SpacecraftsListBySubscriptionNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + nextLink: string, + options?: SpacecraftsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listNextOperationSpec + ); + } + + /** + * ListAvailableContactsNext * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param spacecraftName Spacecraft ID * @param contactProfile The reference to the contact profile resource. * @param groundStationName Name of Azure Ground Station. * @param startTime Start time of a contact. * @param endTime End time of a contact. + * @param nextLink The nextLink from the previous successful call to the ListAvailableContacts method. * @param options The options parameters. */ - async beginListAvailableContactsAndWait( + private _listAvailableContactsNext( resourceGroupName: string, spacecraftName: string, - contactProfile: ResourceReference, + contactProfile: ContactParametersContactProfile, groundStationName: string, startTime: Date, endTime: Date, - options?: SpacecraftsListAvailableContactsOptionalParams - ): Promise { - const poller = await this.beginListAvailableContacts( - resourceGroupName, - spacecraftName, - contactProfile, - groundStationName, - startTime, - endTime, - options + nextLink: string, + options?: SpacecraftsListAvailableContactsNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + spacecraftName, + contactProfile, + groundStationName, + startTime, + endTime, + nextLink, + options + }, + listAvailableContactsNextOperationSpec ); - return poller.pollUntilDone(); } } // Operation Specifications @@ -487,7 +727,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.skiptoken], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -504,7 +744,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion, Parameters.skiptoken], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -560,6 +800,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { parameterPath: { tags: ["options", "tags"], location: ["location"], + provisioningState: ["options", "provisioningState"], noradId: ["options", "noradId"], titleLine: ["options", "titleLine"], tleLine1: ["options", "tleLine1"], @@ -610,6 +851,15 @@ const updateTagsOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.Spacecraft }, + 201: { + bodyMapper: Mappers.Spacecraft + }, + 202: { + bodyMapper: Mappers.Spacecraft + }, + 204: { + bodyMapper: Mappers.Spacecraft + }, default: { bodyMapper: Mappers.CloudError } @@ -667,3 +917,70 @@ const listAvailableContactsOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SpacecraftListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skiptoken], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SpacecraftListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion, Parameters.skiptoken], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listAvailableContactsNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AvailableContactsListResult + }, + 202: { + headersMapper: Mappers.SpacecraftsListAvailableContactsNextHeaders + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.spacecraftName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; diff --git a/sdk/orbital/arm-orbital/src/operationsInterfaces/availableGroundStations.ts b/sdk/orbital/arm-orbital/src/operationsInterfaces/availableGroundStations.ts index fa3f0e81b313..148eea09edeb 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, + CapabilityParameter, AvailableGroundStationsListByCapabilityOptionalParams, AvailableGroundStationsGetOptionalParams, AvailableGroundStationsGetResponse @@ -24,7 +24,7 @@ export interface AvailableGroundStations { * @param options The options parameters. */ listByCapability( - capability: Enum6, + capability: CapabilityParameter, options?: AvailableGroundStationsListByCapabilityOptionalParams ): PagedAsyncIterableIterator; /** diff --git a/sdk/orbital/arm-orbital/src/operationsInterfaces/contactProfiles.ts b/sdk/orbital/arm-orbital/src/operationsInterfaces/contactProfiles.ts index 32f629105f35..9bc45c6dd3e7 100644 --- a/sdk/orbital/arm-orbital/src/operationsInterfaces/contactProfiles.ts +++ b/sdk/orbital/arm-orbital/src/operationsInterfaces/contactProfiles.ts @@ -26,14 +26,14 @@ import { /** Interface representing a ContactProfiles. */ export interface ContactProfiles { /** - * Returns list of contact profiles + * Returns list of contact profiles by Subscription * @param options The options parameters. */ listBySubscription( options?: ContactProfilesListBySubscriptionOptionalParams ): PagedAsyncIterableIterator; /** - * Returns list of contact profiles + * Returns list of contact profiles by Resource Group * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ @@ -112,7 +112,25 @@ export interface ContactProfiles { * @param parameters Parameters supplied to update contact profile tags. * @param options The options parameters. */ - updateTags( + beginUpdateTags( + resourceGroupName: string, + contactProfileName: string, + parameters: TagsObject, + options?: ContactProfilesUpdateTagsOptionalParams + ): Promise< + PollerLike< + PollOperationState, + ContactProfilesUpdateTagsResponse + > + >; + /** + * Updates the specified contact profile tags. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param contactProfileName Contact Profile Name + * @param parameters Parameters supplied to update contact profile tags. + * @param options The options parameters. + */ + beginUpdateTagsAndWait( resourceGroupName: string, contactProfileName: string, parameters: TagsObject, diff --git a/sdk/orbital/arm-orbital/src/operationsInterfaces/index.ts b/sdk/orbital/arm-orbital/src/operationsInterfaces/index.ts index d2a05bd6a08c..1ce0e93d579d 100644 --- a/sdk/orbital/arm-orbital/src/operationsInterfaces/index.ts +++ b/sdk/orbital/arm-orbital/src/operationsInterfaces/index.ts @@ -11,3 +11,4 @@ export * from "./spacecrafts"; export * from "./contacts"; export * from "./contactProfiles"; export * from "./availableGroundStations"; +export * from "./operationsResults"; diff --git a/sdk/orbital/arm-orbital/src/operationsInterfaces/operationsResults.ts b/sdk/orbital/arm-orbital/src/operationsInterfaces/operationsResults.ts new file mode 100644 index 000000000000..d6bc0dcf222d --- /dev/null +++ b/sdk/orbital/arm-orbital/src/operationsInterfaces/operationsResults.ts @@ -0,0 +1,44 @@ +/* + * 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 { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + OperationsResultsGetOptionalParams, + OperationsResultsGetResponse +} from "../models"; + +/** Interface representing a OperationsResults. */ +export interface OperationsResults { + /** + * Returns operation results. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. + * @param options The options parameters. + */ + beginGet( + location: string, + operationId: string, + options?: OperationsResultsGetOptionalParams + ): Promise< + PollerLike< + PollOperationState, + OperationsResultsGetResponse + > + >; + /** + * Returns operation results. + * @param location The name of Azure region. + * @param operationId The ID of an ongoing async operation. + * @param options The options parameters. + */ + beginGetAndWait( + location: string, + operationId: string, + options?: OperationsResultsGetOptionalParams + ): Promise; +} diff --git a/sdk/orbital/arm-orbital/src/operationsInterfaces/spacecrafts.ts b/sdk/orbital/arm-orbital/src/operationsInterfaces/spacecrafts.ts index 0c3bdf3ca1b7..c58118f01a19 100644 --- a/sdk/orbital/arm-orbital/src/operationsInterfaces/spacecrafts.ts +++ b/sdk/orbital/arm-orbital/src/operationsInterfaces/spacecrafts.ts @@ -12,6 +12,9 @@ import { Spacecraft, SpacecraftsListBySubscriptionOptionalParams, SpacecraftsListOptionalParams, + AvailableContacts, + ContactParametersContactProfile, + SpacecraftsListAvailableContactsOptionalParams, SpacecraftsGetOptionalParams, SpacecraftsGetResponse, SpacecraftsCreateOrUpdateOptionalParams, @@ -19,10 +22,7 @@ import { SpacecraftsDeleteOptionalParams, TagsObject, SpacecraftsUpdateTagsOptionalParams, - SpacecraftsUpdateTagsResponse, - ResourceReference, - SpacecraftsListAvailableContactsOptionalParams, - SpacecraftsListAvailableContactsResponse + SpacecraftsUpdateTagsResponse } from "../models"; /// @@ -44,6 +44,25 @@ export interface Spacecrafts { resourceGroupName: string, options?: SpacecraftsListOptionalParams ): PagedAsyncIterableIterator; + /** + * Return list of available contacts + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param spacecraftName Spacecraft ID + * @param contactProfile The reference to the contact profile resource. + * @param groundStationName Name of Azure Ground Station. + * @param startTime Start time of a contact. + * @param endTime End time of a contact. + * @param options The options parameters. + */ + beginListAvailableContactsAndWait( + resourceGroupName: string, + spacecraftName: string, + contactProfile: ContactParametersContactProfile, + groundStationName: string, + startTime: Date, + endTime: Date, + options?: SpacecraftsListAvailableContactsOptionalParams + ): PagedAsyncIterableIterator; /** * Gets the specified spacecraft in a specified resource group * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -115,53 +134,28 @@ export interface Spacecrafts { * @param parameters Parameters supplied to update spacecraft tags. * @param options The options parameters. */ - updateTags( + beginUpdateTags( resourceGroupName: string, spacecraftName: string, parameters: TagsObject, options?: SpacecraftsUpdateTagsOptionalParams - ): Promise; - /** - * Return list of available contacts - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param spacecraftName Spacecraft ID - * @param contactProfile The reference to the contact profile resource. - * @param groundStationName Name of Azure Ground Station. - * @param startTime Start time of a contact. - * @param endTime End time of a contact. - * @param options The options parameters. - */ - beginListAvailableContacts( - resourceGroupName: string, - spacecraftName: string, - contactProfile: ResourceReference, - groundStationName: string, - startTime: Date, - endTime: Date, - options?: SpacecraftsListAvailableContactsOptionalParams ): Promise< PollerLike< - PollOperationState, - SpacecraftsListAvailableContactsResponse + PollOperationState, + SpacecraftsUpdateTagsResponse > >; /** - * Return list of available contacts + * Updates the specified spacecraft tags. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param spacecraftName Spacecraft ID - * @param contactProfile The reference to the contact profile resource. - * @param groundStationName Name of Azure Ground Station. - * @param startTime Start time of a contact. - * @param endTime End time of a contact. + * @param parameters Parameters supplied to update spacecraft tags. * @param options The options parameters. */ - beginListAvailableContactsAndWait( + beginUpdateTagsAndWait( resourceGroupName: string, spacecraftName: string, - contactProfile: ResourceReference, - groundStationName: string, - startTime: Date, - endTime: Date, - options?: SpacecraftsListAvailableContactsOptionalParams - ): Promise; + parameters: TagsObject, + options?: SpacecraftsUpdateTagsOptionalParams + ): Promise; } diff --git a/sdk/orbital/arm-orbital/tsconfig.json b/sdk/orbital/arm-orbital/tsconfig.json index 6e3251194117..3e6ae96443f3 100644 --- a/sdk/orbital/arm-orbital/tsconfig.json +++ b/sdk/orbital/arm-orbital/tsconfig.json @@ -9,11 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file diff --git a/sdk/orbital/ci.mgmt.yml b/sdk/orbital/ci.mgmt.yml index d6392f4b4e25..c52bc3980c22 100644 --- a/sdk/orbital/ci.mgmt.yml +++ b/sdk/orbital/ci.mgmt.yml @@ -1,5 +1,5 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. - + trigger: branches: include: @@ -10,6 +10,7 @@ trigger: include: - sdk/orbital/ci.mgmt.yml - sdk/orbital/arm-orbital/ + - sdk/orbital/arm-orbital pr: branches: include: @@ -23,11 +24,11 @@ pr: include: - sdk/orbital/ci.mgmt.yml - sdk/orbital/arm-orbital/ - + - sdk/orbital/arm-orbital extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: orbital Artifacts: - name: azure-arm-orbital - safeName: azurearmorbital \ No newline at end of file + safeName: azurearmorbital