Skip to content

[AutoPR @azure/arm-azurestackhci] Add Stack HCI CLI settings #8431

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions common/config/rush/pnpm-lock.yaml

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

41 changes: 31 additions & 10 deletions sdk/azurestackhci/arm-azurestackhci/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,36 @@
# Release History

## 2.2.0 (2022-04-06)

**Features**

## 2.1.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added operation ArcSettings.beginCreateIdentity
- Added operation ArcSettings.beginCreateIdentityAndWait
- Added operation ArcSettings.generatePassword
- Added operation Clusters.beginCreateIdentity
- Added operation Clusters.beginCreateIdentityAndWait
- Added operation Clusters.beginUploadCertificate
- Added operation Clusters.beginUploadCertificateAndWait
- Added Interface ArcIdentityResponse
- Added Interface ArcSettingsCreateIdentityOptionalParams
- Added Interface ArcSettingsGeneratePasswordOptionalParams
- Added Interface ClusterIdentityResponse
- Added Interface ClustersCreateIdentityOptionalParams
- Added Interface ClustersUploadCertificateOptionalParams
- Added Interface PasswordCredential
- Added Interface RawCertificateData
- Added Interface UploadCertificateRequest
- Added Type Alias ArcSettingsCreateIdentityResponse
- Added Type Alias ArcSettingsGeneratePasswordResponse
- Added Type Alias ClustersCreateIdentityResponse
- Type Alias ArcSetting has a new parameter arcApplicationClientId
- Type Alias ArcSetting has a new parameter arcApplicationTenantId
- Type Alias ArcSetting has a new parameter arcServicePrincipalObjectId
- Type Alias ArcSetting has a new parameter arcApplicationObjectId
- Type Alias Cluster has a new parameter aadApplicationObjectId
- Type Alias Cluster has a new parameter aadServicePrincipalObjectId
- Type Alias Cluster has a new parameter serviceEndpoint

## 2.1.0 (2022-02-28)

**Features**
Expand Down
13 changes: 1 addition & 12 deletions sdk/azurestackhci/arm-azurestackhci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Azure Stack HCI management service

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

## Getting started
Expand All @@ -16,8 +16,6 @@ Azure Stack HCI management service
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
- Latest versions of Safari, Chrome, Edge and Firefox.

See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.

### Prerequisites

- An [Azure subscription][azure_sub].
Expand Down Expand Up @@ -51,17 +49,8 @@ For more information about how to create an Azure AD Application check out [this
```javascript
const { AzureStackHCIClient } = require("@azure/arm-azurestackhci");
const { DefaultAzureCredential } = require("@azure/identity");
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new AzureStackHCIClient(new DefaultAzureCredential(), subscriptionId);

// For client-side applications running in the browser, use this code instead:
// const credential = new InteractiveBrowserCredential({
// tenantId: "<YOUR_TENANT_ID>",
// clientId: "<YOUR_CLIENT_ID>"
// });
// const client = new AzureStackHCIClient(credential, subscriptionId);
```


Expand Down
7 changes: 4 additions & 3 deletions sdk/azurestackhci/arm-azurestackhci/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"commit": "20d333fa60a4a81acfd01a7bd56dd9c552301afe",
"commit": "a9395e180389c4393fee1854dcad06aa940cdc49",
"readme": "specification/azurestackhci/resource-manager/readme.md",
"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=D:\\mydev\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\azurestackhci\\resource-manager\\readme.md --use=@autorest/[email protected]beta.16 --generate-sample=true",
"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/azurestackhci/resource-manager/readme.md --use=@autorest/[email protected]alpha.16.20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/[email protected]"
"release_tool": "@azure-tools/[email protected]",
"use": "@autorest/[email protected]"
}
34 changes: 9 additions & 25 deletions sdk/azurestackhci/arm-azurestackhci/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for AzureStackHCIClient.",
"version": "2.1.1",
"version": "2.2.0",
"engines": {
"node": ">=12.0.0"
},
Expand All @@ -29,13 +29,13 @@
"types": "./types/arm-azurestackhci.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.18.11",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-multi-entry": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"@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.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
"typescript": "~4.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
Expand Down Expand Up @@ -98,21 +98,5 @@
"docs": "echo skipped"
},
"sideEffects": false,
"//metadata": {
"constantPaths": [
{
"path": "src/azureStackHCIClient.ts",
"prefix": "packageDetails"
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-azurestackhci?view=azure-node-preview"
}
}
"autoPublish": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,26 @@ import { PollOperationState } from '@azure/core-lro';
// @public
export type ActionType = string;

// @public
export interface ArcIdentityResponse {
// (undocumented)
arcApplicationClientId?: string;
// (undocumented)
arcApplicationObjectId?: string;
// (undocumented)
arcApplicationTenantId?: string;
// (undocumented)
arcServicePrincipalObjectId?: string;
}

// @public
export type ArcSetting = ProxyResource & {
readonly provisioningState?: ProvisioningState;
arcInstanceResourceGroup?: string;
arcApplicationClientId?: string;
arcApplicationTenantId?: string;
arcServicePrincipalObjectId?: string;
arcApplicationObjectId?: string;
readonly aggregateState?: ArcSettingAggregateState;
readonly perNodeDetails?: PerNodeState[];
createdBy?: string;
Expand All @@ -38,13 +54,25 @@ export interface ArcSettingList {

// @public
export interface ArcSettings {
beginCreateIdentity(resourceGroupName: string, clusterName: string, arcSettingName: string, options?: ArcSettingsCreateIdentityOptionalParams): Promise<PollerLike<PollOperationState<ArcSettingsCreateIdentityResponse>, ArcSettingsCreateIdentityResponse>>;
beginCreateIdentityAndWait(resourceGroupName: string, clusterName: string, arcSettingName: string, options?: ArcSettingsCreateIdentityOptionalParams): Promise<ArcSettingsCreateIdentityResponse>;
beginDelete(resourceGroupName: string, clusterName: string, arcSettingName: string, options?: ArcSettingsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginDeleteAndWait(resourceGroupName: string, clusterName: string, arcSettingName: string, options?: ArcSettingsDeleteOptionalParams): Promise<void>;
create(resourceGroupName: string, clusterName: string, arcSettingName: string, arcSetting: ArcSetting, options?: ArcSettingsCreateOptionalParams): Promise<ArcSettingsCreateResponse>;
generatePassword(resourceGroupName: string, clusterName: string, arcSettingName: string, options?: ArcSettingsGeneratePasswordOptionalParams): Promise<ArcSettingsGeneratePasswordResponse>;
get(resourceGroupName: string, clusterName: string, arcSettingName: string, options?: ArcSettingsGetOptionalParams): Promise<ArcSettingsGetResponse>;
listByCluster(resourceGroupName: string, clusterName: string, options?: ArcSettingsListByClusterOptionalParams): PagedAsyncIterableIterator<ArcSetting>;
}

// @public
export interface ArcSettingsCreateIdentityOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
export type ArcSettingsCreateIdentityResponse = ArcIdentityResponse;

// @public
export interface ArcSettingsCreateOptionalParams extends coreClient.OperationOptions {
}
Expand All @@ -58,6 +86,13 @@ export interface ArcSettingsDeleteOptionalParams extends coreClient.OperationOpt
updateIntervalInMs?: number;
}

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

// @public
export type ArcSettingsGeneratePasswordResponse = PasswordCredential;

// @public
export interface ArcSettingsGetOptionalParams extends coreClient.OperationOptions {
}
Expand Down Expand Up @@ -113,13 +148,16 @@ export type Cluster = TrackedResource & {
cloudManagementEndpoint?: string;
aadClientId?: string;
aadTenantId?: string;
aadApplicationObjectId?: string;
aadServicePrincipalObjectId?: string;
desiredProperties?: ClusterDesiredProperties;
readonly reportedProperties?: ClusterReportedProperties;
readonly trialDaysRemaining?: number;
readonly billingModel?: string;
readonly registrationTimestamp?: Date;
readonly lastSyncTimestamp?: Date;
readonly lastBillingTimestamp?: Date;
readonly serviceEndpoint?: string;
createdBy?: string;
createdByType?: CreatedByType;
createdAt?: Date;
Expand All @@ -134,6 +172,18 @@ export interface ClusterDesiredProperties {
windowsServerSubscription?: WindowsServerSubscription;
}

// @public
export interface ClusterIdentityResponse {
// (undocumented)
aadApplicationObjectId?: string;
// (undocumented)
aadClientId?: string;
// (undocumented)
aadServicePrincipalObjectId?: string;
// (undocumented)
aadTenantId?: string;
}

// @public
export interface ClusterList {
readonly nextLink?: string;
Expand Down Expand Up @@ -178,6 +228,10 @@ export interface ClusterReportedProperties {

// @public
export interface Clusters {
beginCreateIdentity(resourceGroupName: string, clusterName: string, options?: ClustersCreateIdentityOptionalParams): Promise<PollerLike<PollOperationState<ClustersCreateIdentityResponse>, ClustersCreateIdentityResponse>>;
beginCreateIdentityAndWait(resourceGroupName: string, clusterName: string, options?: ClustersCreateIdentityOptionalParams): Promise<ClustersCreateIdentityResponse>;
beginUploadCertificate(resourceGroupName: string, clusterName: string, uploadCertificateRequest: UploadCertificateRequest, options?: ClustersUploadCertificateOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginUploadCertificateAndWait(resourceGroupName: string, clusterName: string, uploadCertificateRequest: UploadCertificateRequest, options?: ClustersUploadCertificateOptionalParams): Promise<void>;
create(resourceGroupName: string, clusterName: string, cluster: Cluster, options?: ClustersCreateOptionalParams): Promise<ClustersCreateResponse>;
delete(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise<void>;
get(resourceGroupName: string, clusterName: string, options?: ClustersGetOptionalParams): Promise<ClustersGetResponse>;
Expand All @@ -186,6 +240,15 @@ export interface Clusters {
update(resourceGroupName: string, clusterName: string, cluster: ClusterPatch, options?: ClustersUpdateOptionalParams): Promise<ClustersUpdateResponse>;
}

// @public
export interface ClustersCreateIdentityOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
export type ClustersCreateIdentityResponse = ClusterIdentityResponse;

// @public
export interface ClustersCreateOptionalParams extends coreClient.OperationOptions {
}
Expand Down Expand Up @@ -239,6 +302,12 @@ export interface ClustersUpdateOptionalParams extends coreClient.OperationOption
// @public
export type ClustersUpdateResponse = Cluster;

// @public
export interface ClustersUploadCertificateOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
export type CreatedByType = string;

Expand Down Expand Up @@ -604,6 +673,18 @@ export type OperationsListResponse = OperationListResult;
// @public
export type Origin = string;

// @public (undocumented)
export interface PasswordCredential {
// (undocumented)
endDateTime?: Date;
// (undocumented)
keyId?: string;
// (undocumented)
secretText?: string;
// (undocumented)
startDateTime?: Date;
}

// @public
export interface PerNodeExtensionState {
readonly extension?: string;
Expand All @@ -624,6 +705,12 @@ export type ProvisioningState = string;
// @public
export type ProxyResource = Resource & {};

// @public (undocumented)
export interface RawCertificateData {
// (undocumented)
certificates?: string[];
}

// @public
export interface Resource {
readonly id?: string;
Expand All @@ -642,6 +729,12 @@ export type TrackedResource = Resource & {
location: string;
};

// @public (undocumented)
export interface UploadCertificateRequest {
// (undocumented)
properties?: RawCertificateData;
}

// @public
export type WindowsServerSubscription = string;

Expand Down
Loading