Skip to content

Commit

Permalink
CodeGen from PR 17047 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 4856438fc0ad33e8579ec32a228c2c8665443fab into 84c09261f588a7ad29cfb4b46ad7f038f7254275
  • Loading branch information
SDKAuto committed Jan 21, 2022
1 parent 99f2b37 commit 73998bd
Show file tree
Hide file tree
Showing 11 changed files with 596 additions and 158 deletions.
25 changes: 25 additions & 0 deletions sdk/hybridcompute/arm-hybridcompute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Release History

## 3.1.0-beta.1 (2022-01-21)

**Features**

- Added Interface AgentConfiguration
- Added Interface CloudMetadata
- Added Interface OSProfileLinuxConfiguration
- Added Interface OSProfileWindowsConfiguration
- Added Interface PrivateEndpointConnectionDataModel
- Added Type Alias AutoUpgradeMinorVersionType
- Added Type Alias EnableAutomaticUpgradeType
- Interface HybridComputePrivateLinkScopeProperties has a new optional parameter privateEndpointConnections
- Interface MachineExtensionProperties has a new optional parameter enableAutomaticUpgrade
- Interface MachineProperties has a new optional parameter agentConfiguration
- Interface MachineProperties has a new optional parameter cloudMetadata
- Interface MachineProperties has a new optional parameter mssqlDiscovered
- Interface MachineProperties has a new optional parameter osType
- Interface MachineUpdateProperties has a new optional parameter cloudMetadata
- Interface MachineUpdateProperties has a new optional parameter osProfile
- Interface OSProfile has a new optional parameter linuxConfiguration
- Interface OSProfile has a new optional parameter windowsConfiguration
- Added Enum KnownAutoUpgradeMinorVersionType
- Added Enum KnownEnableAutomaticUpgradeType


## 3.0.0 (2022-01-18)

The package of @azure/arm-hybridcompute is using our next generation design principles since version 3.0.0, which contains breaking changes.
Expand Down
2 changes: 1 addition & 1 deletion sdk/hybridcompute/arm-hybridcompute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The Hybrid Compute Management Client.

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

## Getting started
Expand Down
6 changes: 3 additions & 3 deletions sdk/hybridcompute/arm-hybridcompute/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "d29e6eb4894005c52e67cb4b5ac3faf031113e7d",
"commit": "07abfde51cdba0e1f0c148e1c79c6e5bfef1b8bc",
"readme": "specification/hybridcompute/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/hybridcompute/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220114.1 --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=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/hybridcompute/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.20220114.1"
"use": "@autorest/typescript@6.0.0-alpha.16.20220105.1"
}
25 changes: 19 additions & 6 deletions sdk/hybridcompute/arm-hybridcompute/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/arm-hybridcompute.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"
}
}
}
}
}
36 changes: 16 additions & 20 deletions sdk/hybridcompute/arm-hybridcompute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for HybridComputeManagementClient.",
"version": "3.0.0",
"engines": { "node": ">=12.0.0" },
"version": "3.1.0-beta.1",
"engines": {
"node": ">=12.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.2.0",
"@azure/abort-controller": "^1.0.0",
Expand All @@ -14,7 +16,13 @@
"@azure/core-rest-pipeline": "^1.1.0",
"tslib": "^2.2.0"
},
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"keywords": [
"node",
"azure",
"typescript",
"browser",
"isomorphic"
],
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
Expand All @@ -41,7 +49,9 @@
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
Expand Down Expand Up @@ -88,19 +98,5 @@
"docs": "echo skipped"
},
"sideEffects": false,
"//metadata": {
"constantPaths": [
{
"path": "src/HybridComputeManagementClient.ts",
"prefix": "packageDetails"
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": ["azure"],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-hybridcompute?view=azure-node-preview"
}
}
"autoPublish": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging';
import { PollerLike } from '@azure/core-lro';
import { PollOperationState } from '@azure/core-lro';

// @public
export interface AgentConfiguration {
readonly incomingConnectionsPorts?: string[];
readonly lastUpdatedBy?: string;
readonly lastUpdatedTimestamp?: string;
readonly proxyUrl?: string;
}

// @public
export type AutoUpgradeMinorVersionType = string;

// @public
export interface CloudMetadata {
readonly provider?: string;
}

// @public (undocumented)
export interface ConnectionDetail {
readonly groupId?: string;
Expand All @@ -22,6 +38,9 @@ export interface ConnectionDetail {
// @public
export type CreatedByType = string;

// @public
export type EnableAutomaticUpgradeType = string;

// @public
export interface ErrorAdditionalInfo {
readonly info?: Record<string, unknown>;
Expand Down Expand Up @@ -93,6 +112,7 @@ export interface HybridComputePrivateLinkScopeListResult {

// @public
export interface HybridComputePrivateLinkScopeProperties {
readonly privateEndpointConnections?: PrivateEndpointConnectionDataModel[];
readonly privateLinkScopeId?: string;
readonly provisioningState?: string;
publicNetworkAccess?: PublicNetworkAccessType;
Expand All @@ -108,6 +128,14 @@ export interface Identity {
// @public
export type InstanceViewTypes = string;

// @public
export enum KnownAutoUpgradeMinorVersionType {
// (undocumented)
False = "false",
// (undocumented)
True = "true"
}

// @public
export enum KnownCreatedByType {
// (undocumented)
Expand All @@ -120,6 +148,14 @@ export enum KnownCreatedByType {
User = "User"
}

// @public
export enum KnownEnableAutomaticUpgradeType {
// (undocumented)
False = "false",
// (undocumented)
True = "true"
}

// @public
export enum KnownInstanceViewTypes {
// (undocumented)
Expand Down Expand Up @@ -192,7 +228,8 @@ export interface MachineExtensionInstanceViewStatus {

// @public
export interface MachineExtensionProperties {
autoUpgradeMinorVersion?: boolean;
autoUpgradeMinorVersion?: AutoUpgradeMinorVersionType;
enableAutomaticUpgrade?: EnableAutomaticUpgradeType;
forceUpdateTag?: string;
instanceView?: MachineExtensionInstanceView;
protectedSettings?: Record<string, unknown>;
Expand Down Expand Up @@ -275,7 +312,7 @@ export type MachineExtensionUpdate = ResourceUpdate & {

// @public
export interface MachineExtensionUpdateProperties {
autoUpgradeMinorVersion?: boolean;
autoUpgradeMinorVersion?: AutoUpgradeMinorVersionType;
forceUpdateTag?: string;
protectedSettings?: Record<string, unknown>;
publisher?: string;
Expand All @@ -300,8 +337,10 @@ export interface MachineListResult {
// @public
export interface MachineProperties {
readonly adFqdn?: string;
agentConfiguration?: AgentConfiguration;
readonly agentVersion?: string;
clientPublicKey?: string;
cloudMetadata?: CloudMetadata;
readonly detectedProperties?: {
[propertyName: string]: string;
};
Expand All @@ -313,9 +352,11 @@ export interface MachineProperties {
readonly lastStatusChange?: Date;
locationData?: LocationData;
readonly machineFqdn?: string;
mssqlDiscovered?: string;
readonly osName?: string;
readonly osProfile?: OSProfile;
osProfile?: OSProfile;
readonly osSku?: string;
osType?: string;
readonly osVersion?: string;
parentClusterResourceId?: string;
privateLinkScopeResourceId?: string;
Expand Down Expand Up @@ -381,7 +422,9 @@ export type MachineUpdate = ResourceUpdate & {

// @public
export interface MachineUpdateProperties {
cloudMetadata?: CloudMetadata;
locationData?: LocationData;
osProfile?: OSProfile;
parentClusterResourceId?: string;
privateLinkScopeResourceId?: string;
}
Expand Down Expand Up @@ -421,6 +464,20 @@ export interface OperationValueDisplay {
// @public
export interface OSProfile {
readonly computerName?: string;
linuxConfiguration?: OSProfileLinuxConfiguration;
windowsConfiguration?: OSProfileWindowsConfiguration;
}

// @public
export interface OSProfileLinuxConfiguration {
assessmentMode?: string;
patchMode?: string;
}

// @public
export interface OSProfileWindowsConfiguration {
assessmentMode?: string;
patchMode?: string;
}

// @public
Expand All @@ -429,6 +486,14 @@ export type PrivateEndpointConnection = ProxyResource & {
readonly systemData?: SystemData;
};

// @public
export interface PrivateEndpointConnectionDataModel {
readonly id?: string;
readonly name?: string;
properties?: PrivateEndpointConnectionProperties;
readonly type?: string;
}

// @public
export interface PrivateEndpointConnectionListResult {
readonly nextLink?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class HybridComputeManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-hybridcompute/3.0.0`;
const packageDetails = `azsdk-js-arm-hybridcompute/3.1.0-beta.1`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand All @@ -89,7 +89,7 @@ export class HybridComputeManagementClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2021-05-20";
this.apiVersion = options.apiVersion || "2021-12-10-preview";
this.machines = new MachinesImpl(this);
this.machineExtensions = new MachineExtensionsImpl(this);
this.operations = new OperationsImpl(this);
Expand Down
Loading

0 comments on commit 73998bd

Please sign in to comment.