diff --git a/sdk/hybridcompute/arm-hybridcompute/CHANGELOG.md b/sdk/hybridcompute/arm-hybridcompute/CHANGELOG.md index c9896b79f1c9..edfc9762c87e 100644 --- a/sdk/hybridcompute/arm-hybridcompute/CHANGELOG.md +++ b/sdk/hybridcompute/arm-hybridcompute/CHANGELOG.md @@ -1,5 +1,32 @@ # Release History +## 3.1.0 (2022-03-30) + +**Features** + + - Added Interface AgentConfiguration + - Added Interface CloudMetadata + - Added Interface ConfigurationExtension + - Added Interface OSProfileLinuxConfiguration + - Added Interface OSProfileWindowsConfiguration + - Added Interface PrivateEndpointConnectionDataModel + - Added Interface ServiceStatus + - Added Interface ServiceStatuses + - 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 MachineProperties has a new optional parameter serviceStatuses + - Interface MachineUpdateProperties has a new optional parameter cloudMetadata + - Interface MachineUpdateProperties has a new optional parameter osProfile + - Interface OperationValue has a new optional parameter isDataAction + - Interface OSProfile has a new optional parameter linuxConfiguration + - Interface OSProfile has a new optional parameter windowsConfiguration + - Interface PrivateEndpointConnectionProperties has a new optional parameter groupIds + + ## 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/_meta.json b/sdk/hybridcompute/arm-hybridcompute/_meta.json index c3f69bcc6e16..607956f9d75f 100644 --- a/sdk/hybridcompute/arm-hybridcompute/_meta.json +++ b/sdk/hybridcompute/arm-hybridcompute/_meta.json @@ -1,7 +1,8 @@ { - "commit": "d29e6eb4894005c52e67cb4b5ac3faf031113e7d", + "commit": "dfbf05f83d90e5bd289561068ab4f4f3f274e577", "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" + "release_tool": "@azure-tools/js-sdk-release-tools@2.2.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..1c87d3c46107 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", + "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..89601e4d4f3d 100644 --- a/sdk/hybridcompute/arm-hybridcompute/review/arm-hybridcompute.api.md +++ b/sdk/hybridcompute/arm-hybridcompute/review/arm-hybridcompute.api.md @@ -10,6 +10,28 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { PollerLike } from '@azure/core-lro'; import { PollOperationState } from '@azure/core-lro'; +// @public +export interface AgentConfiguration { + readonly extensionsAllowList?: ConfigurationExtension[]; + readonly extensionsBlockList?: ConfigurationExtension[]; + readonly extensionsEnabled?: string; + readonly guestConfigurationEnabled?: string; + readonly incomingConnectionsPorts?: string[]; + readonly proxyBypass?: string[]; + readonly proxyUrl?: string; +} + +// @public +export interface CloudMetadata { + readonly provider?: string; +} + +// @public +export interface ConfigurationExtension { + readonly publisher?: string; + readonly type?: string; +} + // @public (undocumented) export interface ConnectionDetail { readonly groupId?: string; @@ -93,6 +115,7 @@ export interface HybridComputePrivateLinkScopeListResult { // @public export interface HybridComputePrivateLinkScopeProperties { + readonly privateEndpointConnections?: PrivateEndpointConnectionDataModel[]; readonly privateLinkScopeId?: string; readonly provisioningState?: string; publicNetworkAccess?: PublicNetworkAccessType; @@ -193,6 +216,7 @@ export interface MachineExtensionInstanceViewStatus { // @public export interface MachineExtensionProperties { autoUpgradeMinorVersion?: boolean; + enableAutomaticUpgrade?: boolean; forceUpdateTag?: string; instanceView?: MachineExtensionInstanceView; protectedSettings?: Record; @@ -300,8 +324,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,13 +339,16 @@ 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; readonly provisioningState?: string; + serviceStatuses?: ServiceStatuses; readonly status?: StatusTypes; vmId?: string; readonly vmUuid?: string; @@ -381,7 +410,9 @@ export type MachineUpdate = ResourceUpdate & { // @public export interface MachineUpdateProperties { + cloudMetadata?: CloudMetadata; locationData?: LocationData; + osProfile?: OSProfile; parentClusterResourceId?: string; privateLinkScopeResourceId?: string; } @@ -406,6 +437,7 @@ export type OperationsListResponse = OperationListResult; // @public export interface OperationValue { display?: OperationValueDisplay; + readonly isDataAction?: boolean; readonly name?: string; readonly origin?: string; } @@ -421,6 +453,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 +475,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; @@ -437,6 +491,7 @@ export interface PrivateEndpointConnectionListResult { // @public export interface PrivateEndpointConnectionProperties { + readonly groupIds?: string[]; privateEndpoint?: PrivateEndpointProperty; privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; readonly provisioningState?: string; @@ -666,6 +721,18 @@ export interface ResourceUpdate { }; } +// @public +export interface ServiceStatus { + startupType?: string; + state?: string; +} + +// @public +export interface ServiceStatuses { + extensionService?: ServiceStatus; + guestConfigurationService?: ServiceStatus; +} + // @public export type StatusLevelTypes = string; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClient.ts b/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClient.ts index cf82b55d1c5f..b25dc9087c1b 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`; 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 || "2022-03-10"; 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..4cc96678b2ff 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/models/index.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/index.ts @@ -61,11 +61,14 @@ 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; + /** Statuses of dependent services that are reported back to ARM. */ + serviceStatuses?: ServiceStatuses; + /** 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 +118,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 +151,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 +172,84 @@ 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[]; + /** + * Array of extensions that are allowed to be installed or updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly extensionsAllowList?: ConfigurationExtension[]; + /** + * Array of extensions that are blocked (cannot be installed or updated) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly extensionsBlockList?: ConfigurationExtension[]; + /** + * List of service names which should not use the specified proxy server. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly proxyBypass?: string[]; + /** + * Specifies whether the extension service is enabled or disabled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly extensionsEnabled?: string; + /** + * Specified whether the guest configuration service is enabled or disabled. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly guestConfigurationEnabled?: string; +} + +/** Describes properties that can identify extensions. */ +export interface ConfigurationExtension { + /** + * Publisher of the extension. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly publisher?: string; + /** + * Type of the extension. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; +} + +/** Reports the state and behavior of dependent services. */ +export interface ServiceStatuses { + /** The state of the extension service on the Arc-enabled machine. */ + extensionService?: ServiceStatus; + /** The state of the guest configuration service on the Arc-enabled machine. */ + guestConfigurationService?: ServiceStatus; +} + +/** Describes the state and behavior of a service. */ +export interface ServiceStatus { + /** The current state of the service. */ + state?: string; + /** The behavior of the service when the Arc-enabled machine starts up. */ + startupType?: 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 +257,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,6 +374,8 @@ 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?: boolean; /** 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; /** Json formatted public settings for the extension. */ @@ -351,6 +458,11 @@ export interface OperationValue { readonly name?: string; /** Display properties */ display?: OperationValueDisplay; + /** + * This property indicates if the operation is an action or a data action + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isDataAction?: boolean; } /** Describes the properties of a Hybrid Compute Operation Value Display. */ @@ -399,6 +511,69 @@ 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; + /** + * List of group IDs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly groupIds?: 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 +638,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 +696,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. */ diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/mappers.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/mappers.ts index 6b9a9bb8bbd9..d37d8564769c 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/models/mappers.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/mappers.ts @@ -116,6 +116,27 @@ export const MachineProperties: coreClient.CompositeMapper = { className: "LocationData" } }, + agentConfiguration: { + serializedName: "agentConfiguration", + type: { + name: "Composite", + className: "AgentConfiguration" + } + }, + serviceStatuses: { + serializedName: "serviceStatuses", + type: { + name: "Composite", + className: "ServiceStatuses" + } + }, + cloudMetadata: { + serializedName: "cloudMetadata", + type: { + name: "Composite", + className: "CloudMetadata" + } + }, osProfile: { serializedName: "osProfile", type: { @@ -204,6 +225,12 @@ export const MachineProperties: coreClient.CompositeMapper = { name: "String" } }, + osType: { + serializedName: "osType", + type: { + name: "String" + } + }, vmUuid: { serializedName: "vmUuid", readOnly: true, @@ -263,6 +290,12 @@ export const MachineProperties: coreClient.CompositeMapper = { name: "String" } }, + mssqlDiscovered: { + serializedName: "mssqlDiscovered", + type: { + name: "String" + } + }, detectedProperties: { serializedName: "detectedProperties", readOnly: true, @@ -312,6 +345,169 @@ 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" + } + } + } + }, + extensionsAllowList: { + serializedName: "extensionsAllowList", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConfigurationExtension" + } + } + } + }, + extensionsBlockList: { + serializedName: "extensionsBlockList", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConfigurationExtension" + } + } + } + }, + proxyBypass: { + serializedName: "proxyBypass", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + extensionsEnabled: { + serializedName: "extensionsEnabled", + readOnly: true, + type: { + name: "String" + } + }, + guestConfigurationEnabled: { + serializedName: "guestConfigurationEnabled", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ConfigurationExtension: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConfigurationExtension", + modelProperties: { + publisher: { + serializedName: "publisher", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ServiceStatuses: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceStatuses", + modelProperties: { + extensionService: { + serializedName: "extensionService", + type: { + name: "Composite", + className: "ServiceStatus" + } + }, + guestConfigurationService: { + serializedName: "guestConfigurationService", + type: { + name: "Composite", + className: "ServiceStatus" + } + } + } + } +}; + +export const ServiceStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceStatus", + modelProperties: { + state: { + serializedName: "state", + type: { + name: "String" + } + }, + startupType: { + serializedName: "startupType", + 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 +519,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,6 +816,12 @@ export const MachineExtensionProperties: coreClient.CompositeMapper = { name: "String" } }, + enableAutomaticUpgrade: { + serializedName: "enableAutomaticUpgrade", + type: { + name: "Boolean" + } + }, autoUpgradeMinorVersion: { serializedName: "autoUpgradeMinorVersion", type: { @@ -778,6 +1036,13 @@ export const OperationValue: coreClient.CompositeMapper = { name: "Composite", className: "OperationValueDisplay" } + }, + isDataAction: { + serializedName: "isDataAction", + readOnly: true, + type: { + name: "Boolean" + } } } } @@ -873,6 +1138,143 @@ 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" + } + }, + groupIds: { + serializedName: "groupIds", + readOnly: true, + type: { + name: "Sequence", + element: { + 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 +1409,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 +1529,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..5b0bc6cc5932 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: "2022-03-10", 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 diff --git a/sdk/hybridcompute/ci.mgmt.yml b/sdk/hybridcompute/ci.mgmt.yml index b5b6dfc8da9f..7d5b32c0967b 100644 --- a/sdk/hybridcompute/ci.mgmt.yml +++ b/sdk/hybridcompute/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/hybridcompute/ci.mgmt.yml - sdk/hybridcompute/arm-hybridcompute/ + - sdk/hybridcompute/arm-hybridcompute pr: branches: include: @@ -23,11 +24,11 @@ pr: include: - sdk/hybridcompute/ci.mgmt.yml - sdk/hybridcompute/arm-hybridcompute/ - + - sdk/hybridcompute/arm-hybridcompute extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: hybridcompute Artifacts: - name: azure-arm-hybridcompute - safeName: azurearmhybridcompute \ No newline at end of file + safeName: azurearmhybridcompute