diff --git a/sdk/hybridcompute/arm-hybridcompute/CHANGELOG.md b/sdk/hybridcompute/arm-hybridcompute/CHANGELOG.md index c9896b79f1c9..2c29226c25b3 100644 --- a/sdk/hybridcompute/arm-hybridcompute/CHANGELOG.md +++ b/sdk/hybridcompute/arm-hybridcompute/CHANGELOG.md @@ -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. diff --git a/sdk/hybridcompute/arm-hybridcompute/README.md b/sdk/hybridcompute/arm-hybridcompute/README.md index 341c8cded629..28cb5c7e62c4 100644 --- a/sdk/hybridcompute/arm-hybridcompute/README.md +++ b/sdk/hybridcompute/arm-hybridcompute/README.md @@ -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 diff --git a/sdk/hybridcompute/arm-hybridcompute/_meta.json b/sdk/hybridcompute/arm-hybridcompute/_meta.json index c3f69bcc6e16..f95e08d4eff2 100644 --- a/sdk/hybridcompute/arm-hybridcompute/_meta.json +++ b/sdk/hybridcompute/arm-hybridcompute/_meta.json @@ -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" } \ No newline at end of file diff --git a/sdk/hybridcompute/arm-hybridcompute/api-extractor.json b/sdk/hybridcompute/arm-hybridcompute/api-extractor.json index f5ac173741f6..61b4ae4a0e8a 100644 --- a/sdk/hybridcompute/arm-hybridcompute/api-extractor.json +++ b/sdk/hybridcompute/arm-hybridcompute/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-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" + } } } -} +} \ No newline at end of file diff --git a/sdk/hybridcompute/arm-hybridcompute/package.json b/sdk/hybridcompute/arm-hybridcompute/package.json index 6e3a198edeab..e1bb72377acc 100644 --- a/sdk/hybridcompute/arm-hybridcompute/package.json +++ b/sdk/hybridcompute/arm-hybridcompute/package.json @@ -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", @@ -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", @@ -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", @@ -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 +} \ No newline at end of file diff --git a/sdk/hybridcompute/arm-hybridcompute/review/arm-hybridcompute.api.md b/sdk/hybridcompute/arm-hybridcompute/review/arm-hybridcompute.api.md index ba3a0ad15e59..00e7e9269ccb 100644 --- a/sdk/hybridcompute/arm-hybridcompute/review/arm-hybridcompute.api.md +++ b/sdk/hybridcompute/arm-hybridcompute/review/arm-hybridcompute.api.md @@ -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; @@ -22,6 +38,9 @@ export interface ConnectionDetail { // @public export type CreatedByType = string; +// @public +export type EnableAutomaticUpgradeType = string; + // @public export interface ErrorAdditionalInfo { readonly info?: Record; @@ -93,6 +112,7 @@ export interface HybridComputePrivateLinkScopeListResult { // @public export interface HybridComputePrivateLinkScopeProperties { + readonly privateEndpointConnections?: PrivateEndpointConnectionDataModel[]; readonly privateLinkScopeId?: string; readonly provisioningState?: string; publicNetworkAccess?: PublicNetworkAccessType; @@ -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) @@ -120,6 +148,14 @@ export enum KnownCreatedByType { User = "User" } +// @public +export enum KnownEnableAutomaticUpgradeType { + // (undocumented) + False = "false", + // (undocumented) + True = "true" +} + // @public export enum KnownInstanceViewTypes { // (undocumented) @@ -192,7 +228,8 @@ export interface MachineExtensionInstanceViewStatus { // @public export interface MachineExtensionProperties { - autoUpgradeMinorVersion?: boolean; + autoUpgradeMinorVersion?: AutoUpgradeMinorVersionType; + enableAutomaticUpgrade?: EnableAutomaticUpgradeType; forceUpdateTag?: string; instanceView?: MachineExtensionInstanceView; protectedSettings?: Record; @@ -275,7 +312,7 @@ export type MachineExtensionUpdate = ResourceUpdate & { // @public export interface MachineExtensionUpdateProperties { - autoUpgradeMinorVersion?: boolean; + autoUpgradeMinorVersion?: AutoUpgradeMinorVersionType; forceUpdateTag?: string; protectedSettings?: Record; publisher?: string; @@ -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; }; @@ -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; @@ -381,7 +422,9 @@ export type MachineUpdate = ResourceUpdate & { // @public export interface MachineUpdateProperties { + cloudMetadata?: CloudMetadata; locationData?: LocationData; + osProfile?: OSProfile; parentClusterResourceId?: string; privateLinkScopeResourceId?: string; } @@ -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 @@ -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; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClient.ts b/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClient.ts index cf82b55d1c5f..3ce3397ed8d7 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClient.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClient.ts @@ -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}` @@ -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); diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/index.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/index.ts index f5ce944c473c..7c2c8f044af0 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/models/index.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/index.ts @@ -61,11 +61,12 @@ export interface ErrorAdditionalInfo { export interface MachineProperties { /** Metadata pertaining to the geographic location of the resource. */ locationData?: LocationData; - /** - * Specifies the operating system settings for the hybrid machine. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly osProfile?: OSProfile; + /** Configurable properties that the user can set locally via the azcmagent config command, or remotely via ARM. */ + agentConfiguration?: AgentConfiguration; + /** The metadata of the cloud environment (Azure/GCP/AWS/OCI...). */ + cloudMetadata?: CloudMetadata; + /** Specifies the operating system settings for the hybrid machine. */ + osProfile?: OSProfile; /** * The provisioning state, which only appears in the response. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -115,6 +116,8 @@ export interface MachineProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly osVersion?: string; + /** The type of Operating System (windows/linux). */ + osType?: string; /** * Specifies the Arc Machine's unique SMBIOS ID * NOTE: This property will not be serialized. It can only be populated by the server. @@ -146,6 +149,8 @@ export interface MachineProperties { privateLinkScopeResourceId?: string; /** The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any. */ parentClusterResourceId?: string; + /** Specifies whether any MS SQL instance is discovered on the machine. */ + mssqlDiscovered?: string; /** * Detected properties from the machine. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -165,6 +170,39 @@ export interface LocationData { countryOrRegion?: string; } +/** Configurable properties that the user can set locally via the azcmagent config command, or remotely via ARM. */ +export interface AgentConfiguration { + /** + * Specifies the URL of the proxy to be used. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly proxyUrl?: string; + /** + * Specifies the list of ports that the agent will be able to listen on. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly incomingConnectionsPorts?: string[]; + /** + * Specifies timestamp (UTC milliseconds since epoch) when the config was last updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastUpdatedTimestamp?: string; + /** + * Specifies how the configuration settings were last changed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastUpdatedBy?: string; +} + +/** The metadata of the cloud environment (Azure/GCP/AWS/OCI...). */ +export interface CloudMetadata { + /** + * Specifies the cloud provider (Azure/AWS/GCP...). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provider?: string; +} + /** Specifies the operating system settings for the hybrid machine. */ export interface OSProfile { /** @@ -172,6 +210,26 @@ export interface OSProfile { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly computerName?: string; + /** Specifies the windows configuration for update management. */ + windowsConfiguration?: OSProfileWindowsConfiguration; + /** Specifies the linux configuration for update management. */ + linuxConfiguration?: OSProfileLinuxConfiguration; +} + +/** Specifies the windows configuration for update management. */ +export interface OSProfileWindowsConfiguration { + /** Specifies the assessment mode. */ + assessmentMode?: string; + /** Specifies the patch mode. */ + patchMode?: string; +} + +/** Specifies the linux configuration for update management. */ +export interface OSProfileLinuxConfiguration { + /** Specifies the assessment mode. */ + assessmentMode?: string; + /** Specifies the patch mode. */ + patchMode?: string; } /** Describes the Machine Extension Instance View. */ @@ -269,8 +327,10 @@ export interface MachineExtensionProperties { type?: string; /** Specifies the version of the script handler. */ typeHandlerVersion?: string; + /** Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. */ + enableAutomaticUpgrade?: EnableAutomaticUpgradeType; /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ - autoUpgradeMinorVersion?: boolean; + autoUpgradeMinorVersion?: AutoUpgradeMinorVersionType; /** Json formatted public settings for the extension. */ settings?: Record; /** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */ @@ -295,7 +355,7 @@ export interface MachineExtensionUpdateProperties { /** Specifies the version of the script handler. */ typeHandlerVersion?: string; /** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */ - autoUpgradeMinorVersion?: boolean; + autoUpgradeMinorVersion?: AutoUpgradeMinorVersionType; /** Json formatted public settings for the extension. */ settings?: Record; /** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */ @@ -399,6 +459,64 @@ export interface HybridComputePrivateLinkScopeProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateLinkScopeId?: string; + /** + * The collection of associated Private Endpoint Connections. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: PrivateEndpointConnectionDataModel[]; +} + +/** The Data Model for a Private Endpoint Connection associated with a Private Link Scope */ +export interface PrivateEndpointConnectionDataModel { + /** + * The ARM Resource Id of the Private Endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The Name of the Private Endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Azure resource type + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** The Private Endpoint Connection properties. */ + properties?: PrivateEndpointConnectionProperties; +} + +/** Properties of a private endpoint connection. */ +export interface PrivateEndpointConnectionProperties { + /** Private endpoint which the connection belongs to. */ + privateEndpoint?: PrivateEndpointProperty; + /** Connection state of the private endpoint connection. */ + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; + /** + * State of the private endpoint connection. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; +} + +/** Private endpoint which the connection belongs to. */ +export interface PrivateEndpointProperty { + /** Resource id of the private endpoint. */ + id?: string; +} + +/** State of the private endpoint connection. */ +export interface PrivateLinkServiceConnectionStateProperty { + /** The private link service connection status. */ + status: string; + /** The private link service connection description. */ + description: string; + /** + * The actions required for private link service connection. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionsRequired?: string; } /** An azure resource object */ @@ -463,38 +581,6 @@ export interface PrivateLinkResourceProperties { readonly requiredZoneNames?: string[]; } -/** Properties of a private endpoint connection. */ -export interface PrivateEndpointConnectionProperties { - /** Private endpoint which the connection belongs to. */ - privateEndpoint?: PrivateEndpointProperty; - /** Connection state of the private endpoint connection. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; - /** - * State of the private endpoint connection. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; -} - -/** Private endpoint which the connection belongs to. */ -export interface PrivateEndpointProperty { - /** Resource id of the private endpoint. */ - id?: string; -} - -/** State of the private endpoint connection. */ -export interface PrivateLinkServiceConnectionStateProperty { - /** The private link service connection status. */ - status: string; - /** The private link service connection description. */ - description: string; - /** - * The actions required for private link service connection. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly actionsRequired?: string; -} - /** A list of private endpoint connections. */ export interface PrivateEndpointConnectionListResult { /** @@ -553,6 +639,10 @@ export interface ConnectionDetail { export interface MachineUpdateProperties { /** Metadata pertaining to the geographic location of the resource. */ locationData?: LocationData; + /** Specifies the operating system settings for the hybrid machine. */ + osProfile?: OSProfile; + /** The metadata of the cloud environment (Azure/GCP/AWS/OCI...). */ + cloudMetadata?: CloudMetadata; /** The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any. */ parentClusterResourceId?: string; /** The resource id of the private link scope this machine is assigned to, if any. */ @@ -711,6 +801,38 @@ export enum KnownCreatedByType { */ export type CreatedByType = string; +/** Known values of {@link EnableAutomaticUpgradeType} that the service accepts. */ +export enum KnownEnableAutomaticUpgradeType { + True = "true", + False = "false" +} + +/** + * Defines values for EnableAutomaticUpgradeType. \ + * {@link KnownEnableAutomaticUpgradeType} can be used interchangeably with EnableAutomaticUpgradeType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **true** \ + * **false** + */ +export type EnableAutomaticUpgradeType = string; + +/** Known values of {@link AutoUpgradeMinorVersionType} that the service accepts. */ +export enum KnownAutoUpgradeMinorVersionType { + True = "true", + False = "false" +} + +/** + * Defines values for AutoUpgradeMinorVersionType. \ + * {@link KnownAutoUpgradeMinorVersionType} can be used interchangeably with AutoUpgradeMinorVersionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **true** \ + * **false** + */ +export type AutoUpgradeMinorVersionType = string; + /** Known values of {@link PublicNetworkAccessType} that the service accepts. */ export enum KnownPublicNetworkAccessType { /** Allows Azure Arc agents to communicate with Azure Arc services over both public (internet) and private endpoints. */ diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/mappers.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/mappers.ts index 6b9a9bb8bbd9..005fac00fc1f 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/models/mappers.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/mappers.ts @@ -116,6 +116,20 @@ export const MachineProperties: coreClient.CompositeMapper = { className: "LocationData" } }, + agentConfiguration: { + serializedName: "agentConfiguration", + type: { + name: "Composite", + className: "AgentConfiguration" + } + }, + cloudMetadata: { + serializedName: "cloudMetadata", + type: { + name: "Composite", + className: "CloudMetadata" + } + }, osProfile: { serializedName: "osProfile", type: { @@ -204,6 +218,12 @@ export const MachineProperties: coreClient.CompositeMapper = { name: "String" } }, + osType: { + serializedName: "osType", + type: { + name: "String" + } + }, vmUuid: { serializedName: "vmUuid", readOnly: true, @@ -263,6 +283,12 @@ export const MachineProperties: coreClient.CompositeMapper = { name: "String" } }, + mssqlDiscovered: { + serializedName: "mssqlDiscovered", + type: { + name: "String" + } + }, detectedProperties: { serializedName: "detectedProperties", readOnly: true, @@ -312,6 +338,64 @@ export const LocationData: coreClient.CompositeMapper = { } }; +export const AgentConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AgentConfiguration", + modelProperties: { + proxyUrl: { + serializedName: "proxyUrl", + readOnly: true, + type: { + name: "String" + } + }, + incomingConnectionsPorts: { + serializedName: "incomingConnectionsPorts", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + lastUpdatedTimestamp: { + serializedName: "lastUpdatedTimestamp", + readOnly: true, + type: { + name: "String" + } + }, + lastUpdatedBy: { + serializedName: "lastUpdatedBy", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const CloudMetadata: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudMetadata", + modelProperties: { + provider: { + serializedName: "provider", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const OSProfile: coreClient.CompositeMapper = { type: { name: "Composite", @@ -323,6 +407,62 @@ export const OSProfile: coreClient.CompositeMapper = { type: { name: "String" } + }, + windowsConfiguration: { + serializedName: "windowsConfiguration", + type: { + name: "Composite", + className: "OSProfileWindowsConfiguration" + } + }, + linuxConfiguration: { + serializedName: "linuxConfiguration", + type: { + name: "Composite", + className: "OSProfileLinuxConfiguration" + } + } + } + } +}; + +export const OSProfileWindowsConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OSProfileWindowsConfiguration", + modelProperties: { + assessmentMode: { + serializedName: "patchSettings.assessmentMode", + type: { + name: "String" + } + }, + patchMode: { + serializedName: "patchSettings.patchMode", + type: { + name: "String" + } + } + } + } +}; + +export const OSProfileLinuxConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OSProfileLinuxConfiguration", + modelProperties: { + assessmentMode: { + serializedName: "patchSettings.assessmentMode", + type: { + name: "String" + } + }, + patchMode: { + serializedName: "patchSettings.patchMode", + type: { + name: "String" + } } } } @@ -564,10 +704,16 @@ export const MachineExtensionProperties: coreClient.CompositeMapper = { name: "String" } }, + enableAutomaticUpgrade: { + serializedName: "enableAutomaticUpgrade", + type: { + name: "String" + } + }, autoUpgradeMinorVersion: { serializedName: "autoUpgradeMinorVersion", type: { - name: "Boolean" + name: "String" } }, settings: { @@ -634,7 +780,7 @@ export const MachineExtensionUpdateProperties: coreClient.CompositeMapper = { autoUpgradeMinorVersion: { serializedName: "autoUpgradeMinorVersion", type: { - name: "Boolean" + name: "String" } }, settings: { @@ -873,6 +1019,131 @@ export const HybridComputePrivateLinkScopeProperties: coreClient.CompositeMapper type: { name: "String" } + }, + privateEndpointConnections: { + serializedName: "privateEndpointConnections", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionDataModel" + } + } + } + } + } + } +}; + +export const PrivateEndpointConnectionDataModel: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionDataModel", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties" + } + } + } + } +}; + +export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties", + modelProperties: { + privateEndpoint: { + serializedName: "privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpointProperty" + } + }, + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointProperty", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty", + modelProperties: { + status: { + serializedName: "status", + required: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + required: true, + type: { + name: "String" + } + }, + actionsRequired: { + serializedName: "actionsRequired", + readOnly: true, + type: { + name: "String" + } } } } @@ -1007,81 +1278,6 @@ export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { } }; -export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionProperties", - modelProperties: { - privateEndpoint: { - serializedName: "privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpointProperty" - } - }, - privateLinkServiceConnectionState: { - serializedName: "privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty" - } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpointProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointProperty", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateLinkServiceConnectionStateProperty: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionStateProperty", - modelProperties: { - status: { - serializedName: "status", - required: true, - type: { - name: "String" - } - }, - description: { - serializedName: "description", - required: true, - type: { - name: "String" - } - }, - actionsRequired: { - serializedName: "actionsRequired", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1202,6 +1398,20 @@ export const MachineUpdateProperties: coreClient.CompositeMapper = { className: "LocationData" } }, + osProfile: { + serializedName: "osProfile", + type: { + name: "Composite", + className: "OSProfile" + } + }, + cloudMetadata: { + serializedName: "cloudMetadata", + type: { + name: "Composite", + className: "CloudMetadata" + } + }, parentClusterResourceId: { serializedName: "parentClusterResourceId", type: { diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/parameters.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/parameters.ts index c5e50ce4125a..d42ef0088f9c 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/models/parameters.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/parameters.ts @@ -47,7 +47,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-05-20", + defaultValue: "2021-12-10-preview", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/hybridcompute/arm-hybridcompute/tsconfig.json b/sdk/hybridcompute/arm-hybridcompute/tsconfig.json index 6f051758e6e6..3e6ae96443f3 100644 --- a/sdk/hybridcompute/arm-hybridcompute/tsconfig.json +++ b/sdk/hybridcompute/arm-hybridcompute/tsconfig.json @@ -9,12 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { "@azure/arm-hybridcompute": ["./src/index"] } + "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file