Skip to content

Commit

Permalink
resourceconnector release (Azure#25433)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazrael2119 authored Apr 17, 2023
1 parent 1a39e0f commit 3dfb489
Show file tree
Hide file tree
Showing 54 changed files with 759 additions and 399 deletions.
6 changes: 3 additions & 3 deletions common/config/rush/pnpm-lock.yaml

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

24 changes: 2 additions & 22 deletions sdk/resourceconnector/arm-resourceconnector/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,5 @@
# Release History

## 1.0.0-beta.3 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 1.0.0-beta.2 (2023-02-01)

**Features**

- Exposes `getContinuationToken` helper function to extract continuation token

**Bugs Fixed**

- A series of small bug fixs relevant to authentication and apiVersion policy

## 1.0.0-beta.1 (2022-06-28)

## 1.0.0 (2023-04-03)

The package of @azure/arm-resourceconnector is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
2 changes: 1 addition & 1 deletion sdk/resourceconnector/arm-resourceconnector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The appliances Rest API spec.

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

## Getting started
Expand Down
10 changes: 5 additions & 5 deletions sdk/resourceconnector/arm-resourceconnector/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "b8fc2b4ff626aab886f929e49926c6e836548e01",
"readme": "specification\\resourceconnector\\resource-manager\\readme.md",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\resourceconnector\\resource-manager\\readme.md --use=@autorest/[email protected].7 --generate-sample=true",
"commit": "9627e7e581c1517585c9f821d89a4903c6514e07",
"readme": "specification/resourceconnector/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\resourceconnector\\resource-manager\\readme.md --use=@autorest/[email protected].10 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected].0",
"use": "@autorest/[email protected].7"
"release_tool": "@azure-tools/[email protected].2",
"use": "@autorest/[email protected].10"
}
12 changes: 6 additions & 6 deletions sdk/resourceconnector/arm-resourceconnector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for ResourceConnectorManagementClient.",
"version": "1.0.0-beta.3",
"version": "1.0.0",
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.2.0",
"@azure/core-lro": "^2.5.0",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.6.1",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"tslib": "^2.2.0"
Expand All @@ -33,13 +33,13 @@
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-multi-entry": "^6.0.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"mkdirp": "^1.0.4",
"mkdirp": "^2.1.2",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~4.8.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"dotenv": "^8.2.0",
"dotenv": "^16.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
Expand Down Expand Up @@ -120,4 +120,4 @@
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-resourceconnector?view=azure-node-preview"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

import * as coreAuth from '@azure/core-auth';
import * as coreClient from '@azure/core-client';
import { OperationState } from '@azure/core-lro';
import { PagedAsyncIterableIterator } from '@azure/core-paging';
import { PollerLike } from '@azure/core-lro';
import { PollOperationState } from '@azure/core-lro';
import { SimplePollerLike } from '@azure/core-lro';

// @public
export type AccessProfileType = string;
Expand All @@ -21,7 +21,6 @@ export interface Appliance extends TrackedResource {
readonly provisioningState?: string;
publicKey?: string;
readonly status?: Status;
readonly systemData?: SystemData;
version?: string;
}

Expand All @@ -32,11 +31,8 @@ export interface ApplianceCredentialKubeconfig {
}

// @public
export interface ApplianceListClusterCustomerUserCredentialResults {
readonly kubeconfigs?: ApplianceCredentialKubeconfig[];
readonly sshKeys?: {
[propertyName: string]: SSHKey;
};
export interface ApplianceGetTelemetryConfigResult {
readonly telemetryInstrumentationKey?: string;
}

// @public
Expand All @@ -45,6 +41,17 @@ export interface ApplianceListCredentialResults {
readonly kubeconfigs?: ApplianceCredentialKubeconfig[];
}

// @public
export interface ApplianceListKeysResults {
readonly artifactProfiles?: {
[propertyName: string]: ArtifactProfile;
};
readonly kubeconfigs?: ApplianceCredentialKubeconfig[];
readonly sshKeys?: {
[propertyName: string]: SSHKey;
};
}

// @public
export interface ApplianceListResult {
readonly nextLink?: string;
Expand Down Expand Up @@ -75,16 +82,17 @@ export interface AppliancePropertiesInfrastructureConfig {

// @public
export interface Appliances {
beginCreateOrUpdate(resourceGroupName: string, resourceName: string, parameters: Appliance, options?: AppliancesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<AppliancesCreateOrUpdateResponse>, AppliancesCreateOrUpdateResponse>>;
beginCreateOrUpdate(resourceGroupName: string, resourceName: string, parameters: Appliance, options?: AppliancesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<AppliancesCreateOrUpdateResponse>, AppliancesCreateOrUpdateResponse>>;
beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, parameters: Appliance, options?: AppliancesCreateOrUpdateOptionalParams): Promise<AppliancesCreateOrUpdateResponse>;
beginDelete(resourceGroupName: string, resourceName: string, options?: AppliancesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginDelete(resourceGroupName: string, resourceName: string, options?: AppliancesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
beginDeleteAndWait(resourceGroupName: string, resourceName: string, options?: AppliancesDeleteOptionalParams): Promise<void>;
get(resourceGroupName: string, resourceName: string, options?: AppliancesGetOptionalParams): Promise<AppliancesGetResponse>;
getTelemetryConfig(options?: AppliancesGetTelemetryConfigOptionalParams): Promise<AppliancesGetTelemetryConfigResponse>;
getUpgradeGraph(resourceGroupName: string, resourceName: string, upgradeGraph: string, options?: AppliancesGetUpgradeGraphOptionalParams): Promise<AppliancesGetUpgradeGraphResponse>;
listByResourceGroup(resourceGroupName: string, options?: AppliancesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Appliance>;
listBySubscription(options?: AppliancesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Appliance>;
listClusterCustomerUserCredential(resourceGroupName: string, resourceName: string, options?: AppliancesListClusterCustomerUserCredentialOptionalParams): Promise<AppliancesListClusterCustomerUserCredentialResponse>;
listClusterUserCredential(resourceGroupName: string, resourceName: string, options?: AppliancesListClusterUserCredentialOptionalParams): Promise<AppliancesListClusterUserCredentialResponse>;
listKeys(resourceGroupName: string, resourceName: string, options?: AppliancesListKeysOptionalParams): Promise<AppliancesListKeysResponse>;
listOperations(options?: AppliancesListOperationsOptionalParams): PagedAsyncIterableIterator<ApplianceOperation>;
update(resourceGroupName: string, resourceName: string, options?: AppliancesUpdateOptionalParams): Promise<AppliancesUpdateResponse>;
}
Expand All @@ -111,6 +119,13 @@ export interface AppliancesGetOptionalParams extends coreClient.OperationOptions
// @public
export type AppliancesGetResponse = Appliance;

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

// @public
export type AppliancesGetTelemetryConfigResponse = ApplianceGetTelemetryConfigResult;

// @public
export interface AppliancesGetUpgradeGraphOptionalParams extends coreClient.OperationOptions {
}
Expand Down Expand Up @@ -147,18 +162,18 @@ export interface AppliancesListBySubscriptionOptionalParams extends coreClient.O
export type AppliancesListBySubscriptionResponse = ApplianceListResult;

// @public
export interface AppliancesListClusterCustomerUserCredentialOptionalParams extends coreClient.OperationOptions {
export interface AppliancesListClusterUserCredentialOptionalParams extends coreClient.OperationOptions {
}

// @public
export type AppliancesListClusterCustomerUserCredentialResponse = ApplianceListClusterCustomerUserCredentialResults;
export type AppliancesListClusterUserCredentialResponse = ApplianceListCredentialResults;

// @public
export interface AppliancesListClusterUserCredentialOptionalParams extends coreClient.OperationOptions {
export interface AppliancesListKeysOptionalParams extends coreClient.OperationOptions {
}

// @public
export type AppliancesListClusterUserCredentialResponse = ApplianceListCredentialResults;
export type AppliancesListKeysResponse = ApplianceListKeysResults;

// @public
export interface AppliancesListOperationsNextOptionalParams extends coreClient.OperationOptions {
Expand All @@ -184,6 +199,14 @@ export interface AppliancesUpdateOptionalParams extends coreClient.OperationOpti
// @public
export type AppliancesUpdateResponse = Appliance;

// @public
export interface ArtifactProfile {
readonly endpoint?: string;
}

// @public
export type ArtifactType = string;

// @public
export type CreatedByType = string;

Expand Down Expand Up @@ -234,6 +257,11 @@ export enum KnownAccessProfileType {
ClusterUser = "clusterUser"
}

// @public
export enum KnownArtifactType {
LogsArtifactType = "LogsArtifactType"
}

// @public
export enum KnownCreatedByType {
Application = "Application",
Expand Down Expand Up @@ -264,13 +292,23 @@ export enum KnownResourceIdentityType {

// @public
export enum KnownSSHKeyType {
LogsKey = "LogsKey",
ManagementCAKey = "ManagementCAKey",
ScopedAccessKey = "ScopedAccessKey",
SSHCustomerUser = "SSHCustomerUser"
}

// @public
export enum KnownStatus {
Connected = "Connected",
Connecting = "Connecting",
ImageDeprovisioning = "ImageDeprovisioning",
ImageDownloaded = "ImageDownloaded",
ImageDownloading = "ImageDownloading",
ImagePending = "ImagePending",
ImageProvisioned = "ImageProvisioned",
ImageProvisioning = "ImageProvisioning",
ImageUnknown = "ImageUnknown",
None = "None",
Offline = "Offline",
PostUpgrade = "PostUpgrade",
Expand All @@ -284,9 +322,11 @@ export enum KnownStatus {
UpgradeComplete = "UpgradeComplete",
UpgradeFailed = "UpgradeFailed",
UpgradePrerequisitesCompleted = "UpgradePrerequisitesCompleted",
UpgradingKvaio = "UpgradingKVAIO",
Validating = "Validating",
WaitingForCloudOperator = "WaitingForCloudOperator",
WaitingForHeartbeat = "WaitingForHeartbeat"
WaitingForHeartbeat = "WaitingForHeartbeat",
WaitingForKvaio = "WaitingForKVAIO"
}

// @public
Expand All @@ -303,6 +343,7 @@ export type Provider = string;
export interface Resource {
readonly id?: string;
readonly name?: string;
readonly systemData?: SystemData;
readonly type?: string;
}

Expand Down Expand Up @@ -331,8 +372,11 @@ export type ResourceIdentityType = string;

// @public
export interface SSHKey {
privateKey?: string;
publicKey?: string;
readonly certificate?: string;
readonly creationTimeStamp?: number;
readonly expirationTimeStamp?: number;
readonly privateKey?: string;
readonly publicKey?: string;
}

// @public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Creates or updates an Appliance in the specified Subscription and Resource Group.
*
* @summary Creates or updates an Appliance in the specified Subscription and Resource Group.
* x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/preview/2022-04-15-preview/examples/AppliancesCreate_Update.json
* x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesCreate_Update.json
*/
async function createOrUpdateAppliance() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id.
*
* @summary Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id.
* x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/preview/2022-04-15-preview/examples/AppliancesDelete.json
* x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesDelete.json
*/
async function deleteAppliance() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets the details of an Appliance with a specified resource group and name.
*
* @summary Gets the details of an Appliance with a specified resource group and name.
* x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/preview/2022-04-15-preview/examples/AppliancesGet.json
* x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesGet.json
*/
async function getAppliance() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* 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.
*/

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { ResourceConnectorManagementClient } from "@azure/arm-resourceconnector";
import { DefaultAzureCredential } from "@azure/identity";
import * as dotenv from "dotenv";

dotenv.config();

/**
* This sample demonstrates how to Gets the telemetry config.
*
* @summary Gets the telemetry config.
* x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/TelemetryConfig.json
*/
async function getTelemetryConfigAppliance() {
const subscriptionId =
process.env["RESOURCECONNECTOR_SUBSCRIPTION_ID"] ||
"11111111-2222-3333-4444-555555555555";
const credential = new DefaultAzureCredential();
const client = new ResourceConnectorManagementClient(
credential,
subscriptionId
);
const result = await client.appliances.getTelemetryConfig();
console.log(result);
}

async function main() {
getTelemetryConfigAppliance();
}

main().catch(console.error);
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets the upgrade graph of an Appliance with a specified resource group and name and specific release train.
*
* @summary Gets the upgrade graph of an Appliance with a specified resource group and name and specific release train.
* x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/preview/2022-04-15-preview/examples/UpgradeGraph.json
* x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/UpgradeGraph.json
*/
async function getApplianceUpgradeGraph() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets a list of Appliances in the specified subscription and resource group. The operation returns properties of each Appliance.
*
* @summary Gets a list of Appliances in the specified subscription and resource group. The operation returns properties of each Appliance.
* x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/preview/2022-04-15-preview/examples/AppliancesListByResourceGroup.json
* x-ms-original-file: specification/resourceconnector/resource-manager/Microsoft.ResourceConnector/stable/2022-10-27/examples/AppliancesListByResourceGroup.json
*/
async function listAppliancesByResourceGroup() {
const subscriptionId =
Expand Down
Loading

0 comments on commit 3dfb489

Please sign in to comment.