diff --git a/sdk/hybridcompute/arm-hybridcompute/LICENSE.txt b/sdk/hybridcompute/arm-hybridcompute/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/hybridcompute/arm-hybridcompute/LICENSE.txt +++ b/sdk/hybridcompute/arm-hybridcompute/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/hybridcompute/arm-hybridcompute/README.md b/sdk/hybridcompute/arm-hybridcompute/README.md index 772bc400fa39..c617c01ed329 100644 --- a/sdk/hybridcompute/arm-hybridcompute/README.md +++ b/sdk/hybridcompute/arm-hybridcompute/README.md @@ -1,96 +1,103 @@ ## Azure HybridComputeManagementClient SDK for JavaScript -This package contains an isomorphic SDK for HybridComputeManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for HybridComputeManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-hybridcompute` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-hybridcompute +npm install --save @azure/arm-hybridcompute @azure/identity ``` +> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. +If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. ### How to use -#### nodejs - Authentication, client creation and get machines as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth - -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +In the below samples, we pass the credential and the Azure subscription id to instantiate the client. +Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. +#### nodejs - Authentication, client creation, and get machines as an example written in JavaScript. ##### Sample code -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { HybridComputeManagementClient, HybridComputeManagementModels, HybridComputeManagementMappers } from "@azure/arm-hybridcompute"; +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); +const { HybridComputeManagementClient } = require("@azure/arm-hybridcompute"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new HybridComputeManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const name = "testname"; - const expand = "instanceView"; - client.machines.get(resourceGroupName, name, expand).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new HybridComputeManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const machineName = "testmachineName"; +const expand = "instanceView"; +client.machines.get(resourceGroupName, machineName, expand).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get machines as an example written in JavaScript. +#### browser - Authentication, client creation, and get machines as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-hybridcompute sample - - + diff --git a/sdk/hybridcompute/arm-hybridcompute/package.json b/sdk/hybridcompute/arm-hybridcompute/package.json index e9bbc5f7e8da..26d952983030 100644 --- a/sdk/hybridcompute/arm-hybridcompute/package.json +++ b/sdk/hybridcompute/arm-hybridcompute/package.json @@ -4,8 +4,9 @@ "description": "HybridComputeManagementClient Library with typescript type definitions for node.js and browser.", "version": "2.0.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/hybridComputeManagementClient.js", "types": "./esm/hybridComputeManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/hybridcompute/arm-hybridcompute/rollup.config.js b/sdk/hybridcompute/arm-hybridcompute/rollup.config.js index 0a36bcb3bae6..0f1c449cfbbb 100644 --- a/sdk/hybridcompute/arm-hybridcompute/rollup.config.js +++ b/sdk/hybridcompute/arm-hybridcompute/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClient.ts b/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClient.ts index 1dff14273cc3..f87f802c9ee6 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClient.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -9,8 +8,11 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters"; import * as operations from "./operations"; import { HybridComputeManagementClientContext } from "./hybridComputeManagementClientContext"; @@ -20,23 +22,96 @@ class HybridComputeManagementClient extends HybridComputeManagementClientContext machines: operations.Machines; machineExtensions: operations.MachineExtensions; operations: operations.Operations; + privateLinkScopes: operations.PrivateLinkScopes; + privateLinkResources: operations.PrivateLinkResources; + privateEndpointConnections: operations.PrivateEndpointConnections; /** * Initializes a new instance of the HybridComputeManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure - * subscription. The subscription ID forms part of the URI for every service call. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the + * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and + * @azure/ms-rest-browserauth are also supported. + * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.HybridComputeManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.HybridComputeManagementClientOptions) { super(credentials, subscriptionId, options); this.machines = new operations.Machines(this); this.machineExtensions = new operations.MachineExtensions(this); this.operations = new operations.Operations(this); + this.privateLinkScopes = new operations.PrivateLinkScopes(this); + this.privateLinkResources = new operations.PrivateLinkResources(this); + this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); + } + + /** + * The operation to Upgrade Machine Extensions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. + * @param extensionUpgradeParameters Parameters supplied to the Upgrade Extensions operation. + * @param [options] The optional parameters + * @returns Promise + */ + upgradeExtensions(resourceGroupName: string, machineName: string, extensionUpgradeParameters: Models.MachineExtensionUpgrade, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpgradeExtensions(resourceGroupName,machineName,extensionUpgradeParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * The operation to Upgrade Machine Extensions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. + * @param extensionUpgradeParameters Parameters supplied to the Upgrade Extensions operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpgradeExtensions(resourceGroupName: string, machineName: string, extensionUpgradeParameters: Models.MachineExtensionUpgrade, options?: msRest.RequestOptionsBase): Promise { + return this.sendLRORequest( + { + resourceGroupName, + machineName, + extensionUpgradeParameters, + options + }, + beginUpgradeExtensionsOperationSpec, + options); } } // Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const beginUpgradeExtensionsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/upgradeExtensions", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.machineName0 + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "extensionUpgradeParameters", + mapper: { + ...Mappers.MachineExtensionUpgrade, + required: true + } + }, + responses: { + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; export { HybridComputeManagementClient, diff --git a/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClientContext.ts b/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClientContext.ts index 40de94b329c4..73fc72f131b1 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClientContext.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/hybridComputeManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -11,23 +10,28 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-hybridcompute"; const packageVersion = "2.0.0"; export class HybridComputeManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; - subscriptionId: string; + credentials: msRest.ServiceClientCredentials | TokenCredential; apiVersion?: string; + subscriptionId: string; /** * Initializes a new instance of the HybridComputeManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure - * subscription. The subscription ID forms part of the URI for every service call. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the + * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and + * @azure/ms-rest-browserauth are also supported. + * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.HybridComputeManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.HybridComputeManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } @@ -45,7 +49,7 @@ export class HybridComputeManagementClientContext extends msRestAzure.AzureServi super(credentials, options); - this.apiVersion = '2020-08-02'; + this.apiVersion = '2021-06-10-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/index.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/index.ts index 993b7c5dabbc..719fa30d7e4f 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/models/index.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -12,19 +12,9 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; /** - * Describes the properties of a Compute Operation value. + * Describes the properties of a Hybrid Compute Operation Value Display. */ -export interface OperationValue { - /** - * The origin of the compute operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly origin?: string; - /** - * The name of the compute operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; +export interface OperationValueDisplay { /** * The display name of the compute operation. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -48,29 +38,43 @@ export interface OperationValue { } /** - * Describes the properties of a Hybrid Compute Operation Value Display. + * Describes the properties of a Compute Operation value. */ -export interface OperationValueDisplayModel { +export interface OperationValue { /** - * The display name of the compute operation. + * The origin of the compute operation. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly operation?: string; + readonly origin?: string; /** - * The display name of the resource the operation applies to. + * The name of the compute operation. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly resource?: string; + readonly name?: string; /** - * The description of the operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Display properties */ - readonly description?: string; + display?: OperationValueDisplay; +} + +/** + * Specifies the windows configuration for update management. + */ +export interface OSProfileWindowsConfiguration { /** - * The resource provider for the operation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Specifies the assessment mode. */ - readonly provider?: string; + assessmentMode?: string; +} + +/** + * Specifies the linux configuration for update management. + */ +export interface OSProfileLinuxConfiguration { + /** + * Specifies the assessment mode. + */ + assessmentMode?: string; } /** @@ -82,6 +86,14 @@ 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; } /** @@ -107,32 +119,50 @@ export interface LocationData { } /** - * Specifies the operating system settings for the hybrid machine. + * The resource management error additional info. */ -export interface MachinePropertiesOsProfile extends OSProfile { +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly info?: any; } /** - * An interface representing ErrorDetail. - * @summary Error details. + * The error detail. */ export interface ErrorDetail { /** - * The error's code. + * The error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly code?: string; + /** + * The error message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - code: string; + readonly message?: string; /** - * A human readable error message. + * The error target. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - message: string; + readonly target?: string; /** - * Indicates which property in the request is responsible for the error. + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - target?: string; + readonly details?: ErrorDetail[]; /** - * Additional error details. + * The error additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - details?: ErrorDetail[]; + readonly additionalInfo?: ErrorAdditionalInfo[]; } /** @@ -141,29 +171,24 @@ export interface ErrorDetail { export interface MachineExtensionInstanceViewStatus { /** * The status code. - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly code?: string; + code?: string; /** * The level code. Possible values include: 'Info', 'Warning', 'Error' - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly level?: StatusLevelTypes; + level?: StatusLevelTypes; /** * The short localizable label for the status. - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly displayStatus?: string; + displayStatus?: string; /** * The detailed status message, including for alerts and error messages. - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly message?: string; + message?: string; /** * The time of the status. - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly time?: Date; + time?: Date; } /** @@ -172,19 +197,16 @@ export interface MachineExtensionInstanceViewStatus { export interface MachineExtensionInstanceView { /** * The machine extension name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + name?: string; /** * Specifies the type of the extension; an example is "CustomScriptExtension". - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: string; + type?: string; /** * Specifies the version of the script handler. - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly typeHandlerVersion?: string; + typeHandlerVersion?: string; /** * Instance view status. */ @@ -199,7 +221,7 @@ export interface MachineProperties { /** * Specifies the operating system settings for the hybrid machine. */ - osProfile?: MachinePropertiesOsProfile; + 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.** @@ -254,6 +276,10 @@ 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.** @@ -261,9 +287,8 @@ export interface MachineProperties { readonly vmUuid?: string; /** * Machine Extensions information - * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly extensions?: MachineExtensionInstanceView[]; + extensions?: MachineExtensionInstanceView[]; /** * Specifies the Operating System product SKU. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -284,6 +309,22 @@ export interface MachineProperties { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly dnsFqdn?: string; + /** + * The resource id of the private link scope this machine is assigned to, if any. + */ + 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. + */ + detectedProperties?: { [propertyName: string]: string }; } /** @@ -291,41 +332,76 @@ export interface MachineProperties { */ export interface MachineUpdateProperties { locationData?: LocationData; + osProfile?: OSProfile; + /** + * 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. + */ + privateLinkScopeResourceId?: string; } /** - * An interface representing Identity. - * @summary Managed Identity. + * Identity for the resource. */ export interface Identity { /** - * The identity type. - */ - type?: string; - /** - * The identity's principal id. + * The principal ID of resource identity. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly principalId?: string; /** - * The identity's tenant id. + * The tenant ID of resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly tenantId?: string; + /** + * The identity type. Possible values include: 'SystemAssigned' + */ + type?: ResourceIdentityType; } /** - * An interface representing MachineIdentity. + * Metadata pertaining to creation and last modification of the resource. */ -export interface MachineIdentity extends Identity { +export interface SystemData { + /** + * The identity that created the resource. + */ + createdBy?: string; + /** + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + createdByType?: CreatedByType; + /** + * The timestamp of resource creation (UTC). + */ + createdAt?: Date; + /** + * The identity that last modified the resource. + */ + lastModifiedBy?: string; + /** + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + lastModifiedByType?: CreatedByType; + /** + * The timestamp of resource last modification (UTC) + */ + lastModifiedAt?: Date; } /** - * An interface representing Resource. + * Common fields that are returned in the response for all Azure Resource Manager resources + * @summary Resource */ export interface Resource extends BaseResource { /** - * Fully qualified resource Id for the resource. Ex - + * Fully qualified resource ID for the resource. Ex - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} * **NOTE: This property will not be serialized. It can only be populated by the server.** */ @@ -336,15 +412,17 @@ export interface Resource extends BaseResource { */ readonly name?: string; /** - * The type of the resource. Ex- Microsoft.Compute/virtualMachines or - * Microsoft.Storage/storageAccounts. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; } /** - * The resource model definition for a ARM tracked top level resource + * The resource model definition for an Azure Resource Manager tracked top level resource which has + * 'tags' and a 'location' + * @summary Tracked Resource */ export interface TrackedResource extends Resource { /** @@ -361,102 +439,22 @@ export interface TrackedResource extends Resource { * Describes a hybrid machine. */ export interface Machine extends TrackedResource { - locationData?: LocationData; - /** - * Specifies the operating system settings for the hybrid machine. - */ - osProfile?: MachinePropertiesOsProfile; - /** - * The provisioning state, which only appears in the response. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: string; - /** - * The status of the hybrid machine agent. Possible values include: 'Connected', 'Disconnected', - * 'Error' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly status?: StatusTypes; - /** - * The time of the last status change. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastStatusChange?: Date; /** - * Details about the error state. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly errorDetails?: ErrorDetail[]; - /** - * The hybrid machine agent full version. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly agentVersion?: string; - /** - * Specifies the hybrid machine unique ID. - */ - vmId?: string; - /** - * Specifies the hybrid machine display name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly displayName?: string; - /** - * Specifies the hybrid machine FQDN. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly machineFqdn?: string; - /** - * Public Key that the client provides to be used during initial resource onboarding - */ - clientPublicKey?: string; - /** - * The Operating System running on the hybrid machine. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly osName?: string; - /** - * The version of Operating System running on the hybrid machine. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly osVersion?: string; - /** - * Specifies the Arc Machine's unique SMBIOS ID - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly vmUuid?: string; - /** - * Machine Extensions information - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly extensions?: MachineExtensionInstanceView[]; - /** - * Specifies the Operating System product SKU. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly osSku?: string; - /** - * Specifies the Windows domain name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly domainName?: string; - /** - * Specifies the AD fully qualified display name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Hybrid Compute Machine properties */ - readonly adFqdn?: string; + properties?: MachineProperties; + identity?: Identity; /** - * Specifies the DNS fully qualified display name. + * The system meta data relating to this resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly dnsFqdn?: string; - identity?: MachineIdentity; + readonly systemData?: SystemData; } /** * The Update Resource model definition. */ -export interface UpdateResource { +export interface ResourceUpdate { /** * Resource tags */ @@ -466,39 +464,18 @@ export interface UpdateResource { /** * Describes a hybrid machine Update. */ -export interface MachineUpdate extends UpdateResource { - /** - * The identity type. - */ - type?: string; - /** - * The identity's principal id. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly principalId?: string; - /** - * The identity's tenant id. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly tenantId?: string; - locationData?: LocationData; -} - -/** - * Contains details when the response code indicates an error. - * @summary Error response. - */ -export interface ErrorResponse { +export interface MachineUpdate extends ResourceUpdate { + identity?: Identity; /** - * The error details. + * Hybrid Compute Machine properties */ - error: ErrorDetail; + properties?: MachineUpdateProperties; } /** - * Describes a Machine Extension. + * Describes the properties of a Machine Extension. */ -export interface MachineExtension extends TrackedResource { +export interface MachineExtensionProperties { /** * How the extension handler should be forced to update even if the extension configuration has * not changed. @@ -511,7 +488,7 @@ export interface MachineExtension extends TrackedResource { /** * Specifies the type of the extension; an example is "CustomScriptExtension". */ - machineExtensionType?: string; + type?: string; /** * Specifies the version of the script handler. */ @@ -539,13 +516,28 @@ export interface MachineExtension extends TrackedResource { /** * The machine extension instance view. */ - instanceView?: MachineExtensionPropertiesInstanceView; + instanceView?: MachineExtensionInstanceView; } /** - * Describes a Machine Extension Update. + * Describes a Machine Extension. + */ +export interface MachineExtension extends TrackedResource { + /** + * Describes Machine Extension Properties. + */ + properties?: MachineExtensionProperties; + /** + * The system meta data relating to this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Describes the properties of a Machine Extension. */ -export interface MachineExtensionUpdate extends UpdateResource { +export interface MachineExtensionUpdateProperties { /** * How the extension handler should be forced to update even if the extension configuration has * not changed. @@ -581,203 +573,971 @@ export interface MachineExtensionUpdate extends UpdateResource { } /** - * The machine extension instance view. + * Describes a Machine Extension Update. */ -export interface MachineExtensionPropertiesInstanceView extends MachineExtensionInstanceView { +export interface MachineExtensionUpdate extends ResourceUpdate { + /** + * Describes Machine Extension Update Properties. + */ + properties?: MachineExtensionUpdateProperties; } /** - * Describes the properties of a Machine Extension. + * Describes the Machine Extension Target Version Properties */ -export interface MachineExtensionPropertiesModel { - /** - * How the extension handler should be forced to update even if the extension configuration has - * not changed. - */ - forceUpdateTag?: string; +export interface ExtensionTargetProperties { /** - * The name of the extension handler publisher. + * Properties for the specified Extension to Upgrade. */ - publisher?: string; + targetVersion?: string; +} + +/** + * Describes the Machine Extension Upgrade Properties + */ +export interface MachineExtensionUpgrade { /** - * Specifies the type of the extension; an example is "CustomScriptExtension". + * Describes the Extension Target Properties. */ - type?: string; + extensionTargets?: { [propertyName: string]: ExtensionTargetProperties }; +} + +/** + * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags + * and a location + * @summary Proxy Resource + */ +export interface ProxyResource extends Resource { +} + +/** + * The resource model definition for an Azure Resource Manager resource with an etag. + * @summary Entity Resource + */ +export interface AzureEntityResource extends Resource { /** - * Specifies the version of the script handler. + * Resource Etag. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - typeHandlerVersion?: string; + readonly etag?: string; +} + +/** + * An interface representing ResourceModelWithAllowedPropertySetIdentity. + */ +export interface ResourceModelWithAllowedPropertySetIdentity extends Identity { +} + +/** + * The resource model definition representing SKU + */ +export interface Sku { /** - * 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. + * The name of the SKU. Ex - P3. It is typically a letter+number code */ - autoUpgradeMinorVersion?: boolean; + name: string; /** - * Json formatted public settings for the extension. + * This field is required to be implemented by the Resource Provider if the service has more than + * one tier, but is not required on a PUT. Possible values include: 'Free', 'Basic', 'Standard', + * 'Premium' */ - settings?: any; + tier?: SkuTier; /** - * The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no - * protected settings at all. + * The SKU size. When the name field is the combination of tier and some other value, this would + * be the standalone code. */ - protectedSettings?: any; + size?: string; /** - * The provisioning state, which only appears in the response. + * If the service has different generations of hardware, for the same SKU, then that can be + * captured here. + */ + family?: string; + /** + * If the SKU supports scale out/in then the capacity integer should be included. If scale out/in + * is not possible for the resource this may be omitted. + */ + capacity?: number; +} + +/** + * An interface representing ResourceModelWithAllowedPropertySetSku. + */ +export interface ResourceModelWithAllowedPropertySetSku extends Sku { +} + +/** + * Plan for the resource. + */ +export interface Plan { + /** + * A user defined name of the 3rd Party Artifact that is being procured. + */ + name: string; + /** + * The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic + */ + publisher: string; + /** + * The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID + * specified for the artifact at the time of Data Market onboarding. + */ + product: string; + /** + * A publisher provided promotion code as provisioned in Data Market for the said + * product/artifact. + */ + promotionCode?: string; + /** + * The version of the desired product/artifact. + */ + version?: string; +} + +/** + * An interface representing ResourceModelWithAllowedPropertySetPlan. + */ +export interface ResourceModelWithAllowedPropertySetPlan extends Plan { +} + +/** + * The resource model definition containing the full set of allowed properties for a resource. + * Except properties bag, there cannot be a top level property outside of this set. + */ +export interface ResourceModelWithAllowedPropertySet extends BaseResource { + /** + * Fully qualified resource ID for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The geo-location where the resource lives + */ + location?: string; + /** + * The fully qualified resource ID of the resource that manages this resource. Indicates if this + * resource is managed by another Azure resource. If this is present, complete mode deployment + * will not delete the resource if it is removed from the template since it is managed by another + * resource. + */ + managedBy?: string; + /** + * Metadata used by portal/tooling/etc to render different UX experiences for resources of the + * same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource + * provider must validate and persist this value. + */ + kind?: string; + /** + * The etag field is *not* required. If it is provided in the response body, it must also be + * provided as a header per the normal etag convention. Entity tags are used for comparing two + * or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag + * (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range + * (section 14.27) header fields. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; + identity?: ResourceModelWithAllowedPropertySetIdentity; + sku?: ResourceModelWithAllowedPropertySetSku; + plan?: ResourceModelWithAllowedPropertySetPlan; +} + +/** + * Common error response for all Azure Resource Manager APIs to return error details for failed + * operations. (This also follows the OData error response format.). + * @summary Error response + */ +export interface ErrorResponse { + /** + * The error object. + */ + error?: ErrorDetail; +} + +/** + * An azure resource object + */ +export interface PrivateLinkScopesResource extends BaseResource { + /** + * Azure resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Azure resource name + * **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; + /** + * Resource location + */ + location: string; + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; +} + +/** + * A container holding only the Tags for a resource, allowing the user to update the tags on a + * PrivateLinkScope instance. + */ +export interface TagsResource { + /** + * Resource tags + */ + tags?: { [propertyName: string]: 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; +} + +/** + * 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; +} + +/** + * The Data Model for a Private Endpoint Connection associated with a Private Link Scope + */ +export interface PrivateEndpointConnectionDataModel { /** - * The machine extension instance view. + * 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. */ - instanceView?: MachineExtensionPropertiesInstanceView; + properties?: PrivateEndpointConnectionProperties; } /** - * Describes the properties of a Machine Extension. + * Properties that define a Azure Arc PrivateLinkScope resource. */ -export interface MachineExtensionUpdatePropertiesModel { +export interface HybridComputePrivateLinkScopeProperties { /** - * How the extension handler should be forced to update even if the extension configuration has - * not changed. + * Indicates whether machines associated with the private link scope can also use public Azure + * Arc service endpoints. Possible values include: 'Enabled', 'Disabled'. Default value: + * 'Disabled'. */ - forceUpdateTag?: string; + publicNetworkAccess?: PublicNetworkAccessType; /** - * The name of the extension handler publisher. + * Current state of this PrivateLinkScope: whether or not is has been provisioned within the + * resource group it is defined. Users cannot change this value but are able to read from it. + * Values will include Provisioning ,Succeeded, Canceled and Failed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - publisher?: string; + readonly provisioningState?: string; /** - * Specifies the type of the extension; an example is "CustomScriptExtension". + * The Guid id of the private link scope. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - type?: string; + readonly privateLinkScopeId?: string; /** - * Specifies the version of the script handler. + * The collection of associated Private Endpoint Connections. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - typeHandlerVersion?: string; + readonly privateEndpointConnections?: PrivateEndpointConnectionDataModel[]; +} + +/** + * An Azure Arc PrivateLinkScope definition. + */ +export interface HybridComputePrivateLinkScope extends PrivateLinkScopesResource { /** - * 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. + * Properties that define a Azure Arc PrivateLinkScope resource. */ - autoUpgradeMinorVersion?: boolean; + properties?: HybridComputePrivateLinkScopeProperties; /** - * Json formatted public settings for the extension. + * The system meta data relating to this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - settings?: any; + readonly systemData?: SystemData; +} + +/** + * An interface representing ConnectionDetail. + */ +export interface ConnectionDetail { /** - * The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no - * protected settings at all. + * Azure resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - protectedSettings?: any; + readonly id?: string; + /** + * The private endpoint connection private ip address + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateIpAddress?: string; + /** + * The private endpoint connection link identifier + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly linkIdentifier?: string; + /** + * The private endpoint connection group id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly groupId?: string; + /** + * The private endpoint connection member name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly memberName?: string; +} + +/** + * An interface representing PrivateLinkScopeValidationDetails. + */ +export interface PrivateLinkScopeValidationDetails { + /** + * Azure resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Indicates whether machines associated with the private link scope can also use public Azure + * Arc service endpoints. Possible values include: 'Enabled', 'Disabled'. Default value: + * 'Disabled'. + */ + publicNetworkAccess?: PublicNetworkAccessType; + /** + * List of Private Endpoint Connection details. + */ + connectionDetails?: ConnectionDetail[]; +} + +/** + * Properties of a private link resource. + */ +export interface PrivateLinkResourceProperties { + /** + * The private link resource group id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly groupId?: string; + /** + * The private link resource required member names. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredMembers?: string[]; + /** + * Required DNS zone names of the the private link resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredZoneNames?: string[]; +} + +/** + * A private link resource + */ +export interface PrivateLinkResource extends ProxyResource { + /** + * Resource properties. + */ + properties?: PrivateLinkResourceProperties; + /** + * The system meta data relating to this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** - * The resource model definition for a ARM proxy resource. It will have everything other than - * required location and tags + * A private endpoint connection + */ +export interface PrivateEndpointConnection extends ProxyResource { + /** + * Resource properties. + */ + properties?: PrivateEndpointConnectionProperties; + /** + * The system meta data relating to this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * Optional Parameters. + */ +export interface MachinesGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. Possible values include: 'instanceView' + */ + expand?: InstanceViewTypes; +} + +/** + * Optional Parameters. + */ +export interface MachineExtensionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface MachineExtensionsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The expand expression to apply on the operation. + */ + expand?: string; +} + +/** + * An interface representing HybridComputeManagementClientOptions. + */ +export interface HybridComputeManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * The List hybrid machine operation response. + * @extends Array + */ +export interface MachineListResult extends Array { + /** + * The URI to fetch the next page of Machines. Call ListNext() with this URI to fetch the next + * page of hybrid machines. + */ + nextLink?: string; +} + +/** + * @interface + * Describes the Machine Extensions List Result. + * @extends Array + */ +export interface MachineExtensionsListResult extends Array { + /** + * The uri to fetch the next page of machine extensions. Call ListNext() with this to fetch the + * next page of extensions. + */ + nextLink?: string; +} + +/** + * @interface + * The List Compute Operation operation response. + * @extends Array + */ +export interface OperationListResult extends Array { +} + +/** + * @interface + * Describes the list of Azure Arc PrivateLinkScope resources. + * @extends Array + */ +export interface HybridComputePrivateLinkScopeListResult extends Array { + /** + * The URI to get the next set of Azure Arc PrivateLinkScope definitions if too many + * PrivateLinkScopes where returned in the result set. + */ + nextLink?: string; +} + +/** + * @interface + * A list of private link resources + * @extends Array + */ +export interface PrivateLinkResourceListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of private endpoint connections. + * @extends Array + */ +export interface PrivateEndpointConnectionListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * Defines values for StatusTypes. + * Possible values include: 'Connected', 'Disconnected', 'Error' + * @readonly + * @enum {string} + */ +export type StatusTypes = 'Connected' | 'Disconnected' | 'Error'; + +/** + * Defines values for StatusLevelTypes. + * Possible values include: 'Info', 'Warning', 'Error' + * @readonly + * @enum {string} + */ +export type StatusLevelTypes = 'Info' | 'Warning' | 'Error'; + +/** + * Defines values for ResourceIdentityType. + * Possible values include: 'SystemAssigned' + * @readonly + * @enum {string} + */ +export type ResourceIdentityType = 'SystemAssigned'; + +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + +/** + * Defines values for SkuTier. + * Possible values include: 'Free', 'Basic', 'Standard', 'Premium' + * @readonly + * @enum {string} + */ +export type SkuTier = 'Free' | 'Basic' | 'Standard' | 'Premium'; + +/** + * Defines values for PublicNetworkAccessType. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type PublicNetworkAccessType = 'Enabled' | 'Disabled'; + +/** + * Defines values for InstanceViewTypes. + * Possible values include: 'instanceView' + * @readonly + * @enum {string} + */ +export type InstanceViewTypes = 'instanceView'; + +/** + * Contains response data for the get operation. + */ +export type MachinesGetResponse = Machine & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Machine; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type MachinesListByResourceGroupResponse = MachineListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MachineListResult; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type MachinesListBySubscriptionResponse = MachineListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MachineListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type MachinesListByResourceGroupNextResponse = MachineListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MachineListResult; + }; +}; + +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type MachinesListBySubscriptionNextResponse = MachineListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MachineListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type MachineExtensionsCreateOrUpdateResponse = MachineExtension & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MachineExtension; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type MachineExtensionsUpdateResponse = MachineExtension & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MachineExtension; + }; +}; + +/** + * Contains response data for the get operation. */ -export interface ProxyResource extends Resource { -} +export type MachineExtensionsGetResponse = MachineExtension & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MachineExtension; + }; +}; /** - * The resource model definition for a Azure Resource Manager resource with an etag. + * Contains response data for the list operation. */ -export interface AzureEntityResource extends Resource { +export type MachineExtensionsListResponse = MachineExtensionsListResult & { /** - * Resource Etag. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly etag?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MachineExtensionsListResult; + }; +}; /** - * Optional Parameters. + * Contains response data for the beginCreateOrUpdate operation. */ -export interface MachinesGetOptionalParams extends msRest.RequestOptionsBase { +export type MachineExtensionsBeginCreateOrUpdateResponse = MachineExtension & { /** - * The expand expression to apply on the operation. Possible values include: 'instanceView' + * The underlying HTTP response. */ - expand?: InstanceViewTypes; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MachineExtension; + }; +}; /** - * Optional Parameters. + * Contains response data for the beginUpdate operation. */ -export interface MachineExtensionsListOptionalParams extends msRest.RequestOptionsBase { +export type MachineExtensionsBeginUpdateResponse = MachineExtension & { /** - * The expand expression to apply on the operation. + * The underlying HTTP response. */ - expand?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * An interface representing HybridComputeManagementClientOptions. - */ -export interface HybridComputeManagementClientOptions extends AzureServiceClientOptions { - baseUri?: string; -} + /** + * The response body as parsed JSON or XML + */ + parsedBody: MachineExtension; + }; +}; /** - * @interface - * The List hybrid machine operation response. - * @extends Array + * Contains response data for the listNext operation. */ -export interface MachineListResult extends Array { +export type MachineExtensionsListNextResponse = MachineExtensionsListResult & { /** - * The URI to fetch the next page of Machines. Call ListNext() with this URI to fetch the next - * page of hybrid machines. + * The underlying HTTP response. */ - nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MachineExtensionsListResult; + }; +}; /** - * @interface - * Describes the Machine Extensions List Result. - * @extends Array + * Contains response data for the list operation. */ -export interface MachineExtensionsListResult extends Array { +export type OperationsListResponse = OperationListResult & { /** - * The uri to fetch the next page of machine extensions. Call ListNext() with this to fetch the - * next page of extensions. + * The underlying HTTP response. */ - nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; +}; /** - * @interface - * The List Compute Operation operation response. - * @extends Array + * Contains response data for the list operation. */ -export interface OperationListResult extends Array { -} +export type PrivateLinkScopesListResponse = HybridComputePrivateLinkScopeListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridComputePrivateLinkScopeListResult; + }; +}; /** - * Defines values for StatusTypes. - * Possible values include: 'Connected', 'Disconnected', 'Error' - * @readonly - * @enum {string} + * Contains response data for the listByResourceGroup operation. */ -export type StatusTypes = 'Connected' | 'Disconnected' | 'Error'; +export type PrivateLinkScopesListByResourceGroupResponse = HybridComputePrivateLinkScopeListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridComputePrivateLinkScopeListResult; + }; +}; /** - * Defines values for StatusLevelTypes. - * Possible values include: 'Info', 'Warning', 'Error' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type StatusLevelTypes = 'Info' | 'Warning' | 'Error'; +export type PrivateLinkScopesGetResponse = HybridComputePrivateLinkScope & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridComputePrivateLinkScope; + }; +}; /** - * Defines values for InstanceViewTypes. - * Possible values include: 'instanceView' - * @readonly - * @enum {string} + * Contains response data for the createOrUpdate operation. */ -export type InstanceViewTypes = 'instanceView'; +export type PrivateLinkScopesCreateOrUpdateResponse = HybridComputePrivateLinkScope & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: HybridComputePrivateLinkScope; + }; +}; /** - * Contains response data for the get operation. + * Contains response data for the updateTags operation. */ -export type MachinesGetResponse = Machine & { +export type PrivateLinkScopesUpdateTagsResponse = HybridComputePrivateLinkScope & { /** * The underlying HTTP response. */ @@ -790,14 +1550,14 @@ export type MachinesGetResponse = Machine & { /** * The response body as parsed JSON or XML */ - parsedBody: Machine; + parsedBody: HybridComputePrivateLinkScope; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the getValidationDetails operation. */ -export type MachinesListByResourceGroupResponse = MachineListResult & { +export type PrivateLinkScopesGetValidationDetailsResponse = PrivateLinkScopeValidationDetails & { /** * The underlying HTTP response. */ @@ -810,14 +1570,14 @@ export type MachinesListByResourceGroupResponse = MachineListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MachineListResult; + parsedBody: PrivateLinkScopeValidationDetails; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the getValidationDetailsForMachine operation. */ -export type MachinesListBySubscriptionResponse = MachineListResult & { +export type PrivateLinkScopesGetValidationDetailsForMachineResponse = PrivateLinkScopeValidationDetails & { /** * The underlying HTTP response. */ @@ -830,14 +1590,14 @@ export type MachinesListBySubscriptionResponse = MachineListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MachineListResult; + parsedBody: PrivateLinkScopeValidationDetails; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listNext operation. */ -export type MachinesListByResourceGroupNextResponse = MachineListResult & { +export type PrivateLinkScopesListNextResponse = HybridComputePrivateLinkScopeListResult & { /** * The underlying HTTP response. */ @@ -850,14 +1610,14 @@ export type MachinesListByResourceGroupNextResponse = MachineListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MachineListResult; + parsedBody: HybridComputePrivateLinkScopeListResult; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type MachinesListBySubscriptionNextResponse = MachineListResult & { +export type PrivateLinkScopesListByResourceGroupNextResponse = HybridComputePrivateLinkScopeListResult & { /** * The underlying HTTP response. */ @@ -870,14 +1630,14 @@ export type MachinesListBySubscriptionNextResponse = MachineListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MachineListResult; + parsedBody: HybridComputePrivateLinkScopeListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByPrivateLinkScope operation. */ -export type MachineExtensionsCreateOrUpdateResponse = MachineExtension & { +export type PrivateLinkResourcesListByPrivateLinkScopeResponse = PrivateLinkResourceListResult & { /** * The underlying HTTP response. */ @@ -890,14 +1650,14 @@ export type MachineExtensionsCreateOrUpdateResponse = MachineExtension & { /** * The response body as parsed JSON or XML */ - parsedBody: MachineExtension; + parsedBody: PrivateLinkResourceListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type MachineExtensionsUpdateResponse = MachineExtension & { +export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { /** * The underlying HTTP response. */ @@ -910,14 +1670,14 @@ export type MachineExtensionsUpdateResponse = MachineExtension & { /** * The response body as parsed JSON or XML */ - parsedBody: MachineExtension; + parsedBody: PrivateLinkResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByPrivateLinkScopeNext operation. */ -export type MachineExtensionsGetResponse = MachineExtension & { +export type PrivateLinkResourcesListByPrivateLinkScopeNextResponse = PrivateLinkResourceListResult & { /** * The underlying HTTP response. */ @@ -930,14 +1690,14 @@ export type MachineExtensionsGetResponse = MachineExtension & { /** * The response body as parsed JSON or XML */ - parsedBody: MachineExtension; + parsedBody: PrivateLinkResourceListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type MachineExtensionsListResponse = MachineExtensionsListResult & { +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -950,14 +1710,14 @@ export type MachineExtensionsListResponse = MachineExtensionsListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MachineExtensionsListResult; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the createOrUpdate operation. */ -export type MachineExtensionsBeginCreateOrUpdateResponse = MachineExtension & { +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -970,14 +1730,14 @@ export type MachineExtensionsBeginCreateOrUpdateResponse = MachineExtension & { /** * The response body as parsed JSON or XML */ - parsedBody: MachineExtension; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listByPrivateLinkScope operation. */ -export type MachineExtensionsBeginUpdateResponse = MachineExtension & { +export type PrivateEndpointConnectionsListByPrivateLinkScopeResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -990,14 +1750,14 @@ export type MachineExtensionsBeginUpdateResponse = MachineExtension & { /** * The response body as parsed JSON or XML */ - parsedBody: MachineExtension; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type MachineExtensionsListNextResponse = MachineExtensionsListResult & { +export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -1010,14 +1770,14 @@ export type MachineExtensionsListNextResponse = MachineExtensionsListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MachineExtensionsListResult; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByPrivateLinkScopeNext operation. */ -export type OperationsListResponse = OperationListResult & { +export type PrivateEndpointConnectionsListByPrivateLinkScopeNextResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -1030,6 +1790,6 @@ export type OperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: PrivateEndpointConnectionListResult; }; }; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/machineExtensionsMappers.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/machineExtensionsMappers.ts index 67663c9ee0f5..33dca989b8b5 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/models/machineExtensionsMappers.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/machineExtensionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -9,23 +9,44 @@ export { AzureEntityResource, BaseResource, - CloudError, + ErrorAdditionalInfo, ErrorDetail, + ErrorResponse, + HybridComputePrivateLinkScope, + HybridComputePrivateLinkScopeProperties, Identity, LocationData, Machine, MachineExtension, MachineExtensionInstanceView, MachineExtensionInstanceViewStatus, - MachineExtensionPropertiesInstanceView, + MachineExtensionProperties, MachineExtensionsListResult, MachineExtensionUpdate, - MachineIdentity, - MachinePropertiesOsProfile, + MachineExtensionUpdateProperties, + MachineProperties, MachineUpdate, + MachineUpdateProperties, OSProfile, + OSProfileLinuxConfiguration, + OSProfileWindowsConfiguration, + Plan, + PrivateEndpointConnection, + PrivateEndpointConnectionDataModel, + PrivateEndpointConnectionProperties, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, - TrackedResource, - UpdateResource + ResourceModelWithAllowedPropertySet, + ResourceModelWithAllowedPropertySetIdentity, + ResourceModelWithAllowedPropertySetPlan, + ResourceModelWithAllowedPropertySetSku, + ResourceUpdate, + Sku, + SystemData, + TrackedResource } from "../models/mappers"; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/machinesMappers.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/machinesMappers.ts index c4d65dc1db0f..65a8ba746fcf 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/models/machinesMappers.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/machinesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -9,20 +9,39 @@ export { AzureEntityResource, BaseResource, + ErrorAdditionalInfo, ErrorDetail, ErrorResponse, + HybridComputePrivateLinkScope, + HybridComputePrivateLinkScopeProperties, Identity, LocationData, Machine, MachineExtension, MachineExtensionInstanceView, MachineExtensionInstanceViewStatus, - MachineExtensionPropertiesInstanceView, - MachineIdentity, + MachineExtensionProperties, MachineListResult, - MachinePropertiesOsProfile, + MachineProperties, OSProfile, + OSProfileLinuxConfiguration, + OSProfileWindowsConfiguration, + Plan, + PrivateEndpointConnection, + PrivateEndpointConnectionDataModel, + PrivateEndpointConnectionProperties, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, + ResourceModelWithAllowedPropertySet, + ResourceModelWithAllowedPropertySetIdentity, + ResourceModelWithAllowedPropertySetPlan, + ResourceModelWithAllowedPropertySetSku, + Sku, + SystemData, TrackedResource } from "../models/mappers"; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/mappers.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/mappers.ts index 43cd6ada7615..715a54f5e323 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/models/mappers.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -12,50 +12,36 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; -export const OperationValue: msRest.CompositeMapper = { - serializedName: "OperationValue", +export const OperationValueDisplay: msRest.CompositeMapper = { + serializedName: "OperationValueDisplay", type: { name: "Composite", - className: "OperationValue", + className: "OperationValueDisplay", modelProperties: { - origin: { - readOnly: true, - serializedName: "origin", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, operation: { readOnly: true, - serializedName: "display.operation", + serializedName: "operation", type: { name: "String" } }, resource: { readOnly: true, - serializedName: "display.resource", + serializedName: "resource", type: { name: "String" } }, description: { readOnly: true, - serializedName: "display.description", + serializedName: "description", type: { name: "String" } }, provider: { readOnly: true, - serializedName: "display.provider", + serializedName: "provider", type: { name: "String" } @@ -64,36 +50,61 @@ export const OperationValue: msRest.CompositeMapper = { } }; -export const OperationValueDisplayModel: msRest.CompositeMapper = { - serializedName: "OperationValueDisplay", +export const OperationValue: msRest.CompositeMapper = { + serializedName: "OperationValue", type: { name: "Composite", - className: "OperationValueDisplayModel", + className: "OperationValue", modelProperties: { - operation: { + origin: { readOnly: true, - serializedName: "operation", + serializedName: "origin", type: { name: "String" } }, - resource: { + name: { readOnly: true, - serializedName: "resource", + serializedName: "name", type: { name: "String" } }, - description: { - readOnly: true, - serializedName: "description", + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationValueDisplay" + } + } + } + } +}; + +export const OSProfileWindowsConfiguration: msRest.CompositeMapper = { + serializedName: "OSProfile_windowsConfiguration", + type: { + name: "Composite", + className: "OSProfileWindowsConfiguration", + modelProperties: { + assessmentMode: { + serializedName: "patchSettings.assessmentMode", type: { name: "String" } - }, - provider: { - readOnly: true, - serializedName: "provider", + } + } + } +}; + +export const OSProfileLinuxConfiguration: msRest.CompositeMapper = { + serializedName: "OSProfile_linuxConfiguration", + type: { + name: "Composite", + className: "OSProfileLinuxConfiguration", + modelProperties: { + assessmentMode: { + serializedName: "patchSettings.assessmentMode", type: { name: "String" } @@ -114,6 +125,20 @@ export const OSProfile: msRest.CompositeMapper = { type: { name: "String" } + }, + windowsConfiguration: { + serializedName: "windowsConfiguration", + type: { + name: "Composite", + className: "OSProfileWindowsConfiguration" + } + }, + linuxConfiguration: { + serializedName: "linuxConfiguration", + type: { + name: "Composite", + className: "OSProfileLinuxConfiguration" + } } } } @@ -157,13 +182,26 @@ export const LocationData: msRest.CompositeMapper = { } }; -export const MachinePropertiesOsProfile: msRest.CompositeMapper = { - serializedName: "MachineProperties_osProfile", +export const ErrorAdditionalInfo: msRest.CompositeMapper = { + serializedName: "ErrorAdditionalInfo", type: { name: "Composite", - className: "MachinePropertiesOsProfile", + className: "ErrorAdditionalInfo", modelProperties: { - ...OSProfile.type.modelProperties + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + info: { + readOnly: true, + serializedName: "info", + type: { + name: "Object" + } + } } } }; @@ -175,26 +213,28 @@ export const ErrorDetail: msRest.CompositeMapper = { className: "ErrorDetail", modelProperties: { code: { - required: true, + readOnly: true, serializedName: "code", type: { name: "String" } }, message: { - required: true, + readOnly: true, serializedName: "message", type: { name: "String" } }, target: { + readOnly: true, serializedName: "target", type: { name: "String" } }, details: { + readOnly: true, serializedName: "details", type: { name: "Sequence", @@ -205,6 +245,19 @@ export const ErrorDetail: msRest.CompositeMapper = { } } } + }, + additionalInfo: { + readOnly: true, + serializedName: "additionalInfo", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } } } } @@ -217,35 +270,30 @@ export const MachineExtensionInstanceViewStatus: msRest.CompositeMapper = { className: "MachineExtensionInstanceViewStatus", modelProperties: { code: { - readOnly: true, serializedName: "code", type: { name: "String" } }, level: { - readOnly: true, serializedName: "level", type: { name: "String" } }, displayStatus: { - readOnly: true, serializedName: "displayStatus", type: { name: "String" } }, message: { - readOnly: true, serializedName: "message", type: { name: "String" } }, time: { - readOnly: true, serializedName: "time", type: { name: "DateTime" @@ -262,21 +310,18 @@ export const MachineExtensionInstanceView: msRest.CompositeMapper = { className: "MachineExtensionInstanceView", modelProperties: { name: { - readOnly: true, serializedName: "name", type: { name: "String" } }, type: { - readOnly: true, serializedName: "type", type: { name: "String" } }, typeHandlerVersion: { - readOnly: true, serializedName: "typeHandlerVersion", type: { name: "String" @@ -310,7 +355,7 @@ export const MachineProperties: msRest.CompositeMapper = { serializedName: "osProfile", type: { name: "Composite", - className: "MachinePropertiesOsProfile" + className: "OSProfile" } }, provisioningState: { @@ -394,6 +439,12 @@ export const MachineProperties: msRest.CompositeMapper = { name: "String" } }, + osType: { + serializedName: "osType", + type: { + name: "String" + } + }, vmUuid: { readOnly: true, serializedName: "vmUuid", @@ -402,7 +453,6 @@ export const MachineProperties: msRest.CompositeMapper = { } }, extensions: { - readOnly: true, serializedName: "extensions", type: { name: "Sequence", @@ -441,6 +491,35 @@ export const MachineProperties: msRest.CompositeMapper = { type: { name: "String" } + }, + privateLinkScopeResourceId: { + serializedName: "privateLinkScopeResourceId", + type: { + name: "String" + } + }, + parentClusterResourceId: { + serializedName: "parentClusterResourceId", + type: { + name: "String" + } + }, + mssqlDiscovered: { + serializedName: "mssqlDiscovered", + type: { + name: "String" + } + }, + detectedProperties: { + serializedName: "detectedProperties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } } } } @@ -458,6 +537,25 @@ export const MachineUpdateProperties: msRest.CompositeMapper = { name: "Composite", className: "LocationData" } + }, + osProfile: { + serializedName: "osProfile", + type: { + name: "Composite", + className: "OSProfile" + } + }, + parentClusterResourceId: { + serializedName: "parentClusterResourceId", + type: { + name: "String" + } + }, + privateLinkScopeResourceId: { + serializedName: "privateLinkScopeResourceId", + type: { + name: "String" + } } } } @@ -469,12 +567,6 @@ export const Identity: msRest.CompositeMapper = { name: "Composite", className: "Identity", modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, principalId: { readOnly: true, serializedName: "principalId", @@ -488,18 +580,62 @@ export const Identity: msRest.CompositeMapper = { type: { name: "String" } + }, + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "SystemAssigned" + ] + } } } } }; -export const MachineIdentity: msRest.CompositeMapper = { - serializedName: "Machine_identity", +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", type: { name: "Composite", - className: "MachineIdentity", + className: "SystemData", modelProperties: { - ...Identity.type.modelProperties + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } + } } } }; @@ -571,173 +707,270 @@ export const Machine: msRest.CompositeMapper = { className: "Machine", modelProperties: { ...TrackedResource.type.modelProperties, - locationData: { - serializedName: "properties.locationData", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "LocationData" + className: "MachineProperties" } }, - osProfile: { - serializedName: "properties.osProfile", + identity: { + serializedName: "identity", type: { name: "Composite", - className: "MachinePropertiesOsProfile" + className: "Identity" } }, - provisioningState: { + systemData: { readOnly: true, - serializedName: "properties.provisioningState", + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } - }, - status: { - readOnly: true, - serializedName: "properties.status", + } + } + } +}; + +export const ResourceUpdate: msRest.CompositeMapper = { + serializedName: "ResourceUpdate", + type: { + name: "Composite", + className: "ResourceUpdate", + modelProperties: { + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } - }, - lastStatusChange: { - readOnly: true, - serializedName: "properties.lastStatusChange", + } + } + } +}; + +export const MachineUpdate: msRest.CompositeMapper = { + serializedName: "MachineUpdate", + type: { + name: "Composite", + className: "MachineUpdate", + modelProperties: { + ...ResourceUpdate.type.modelProperties, + identity: { + serializedName: "identity", type: { - name: "DateTime" + name: "Composite", + className: "Identity" } }, - errorDetails: { - readOnly: true, - serializedName: "properties.errorDetails", + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetail" - } - } + name: "Composite", + className: "MachineUpdateProperties" } - }, - agentVersion: { - readOnly: true, - serializedName: "properties.agentVersion", + } + } + } +}; + +export const MachineExtensionProperties: msRest.CompositeMapper = { + serializedName: "MachineExtensionProperties", + type: { + name: "Composite", + className: "MachineExtensionProperties", + modelProperties: { + forceUpdateTag: { + serializedName: "forceUpdateTag", type: { name: "String" } }, - vmId: { - serializedName: "properties.vmId", + publisher: { + serializedName: "publisher", type: { name: "String" } }, - displayName: { - readOnly: true, - serializedName: "properties.displayName", - type: { + type: { + serializedName: "type", + type: { name: "String" } }, - machineFqdn: { - readOnly: true, - serializedName: "properties.machineFqdn", + typeHandlerVersion: { + serializedName: "typeHandlerVersion", type: { name: "String" } }, - clientPublicKey: { - serializedName: "properties.clientPublicKey", + autoUpgradeMinorVersion: { + serializedName: "autoUpgradeMinorVersion", type: { - name: "String" + name: "Boolean" } }, - osName: { - readOnly: true, - serializedName: "properties.osName", + settings: { + serializedName: "settings", type: { - name: "String" + name: "Object" } }, - osVersion: { - readOnly: true, - serializedName: "properties.osVersion", + protectedSettings: { + serializedName: "protectedSettings", type: { - name: "String" + name: "Object" } }, - vmUuid: { + provisioningState: { readOnly: true, - serializedName: "properties.vmUuid", + serializedName: "provisioningState", type: { name: "String" } }, - extensions: { - readOnly: true, - serializedName: "properties.extensions", + instanceView: { + serializedName: "instanceView", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MachineExtensionInstanceView" - } - } + name: "Composite", + className: "MachineExtensionInstanceView" + } + } + } + } +}; + +export const MachineExtension: msRest.CompositeMapper = { + serializedName: "MachineExtension", + type: { + name: "Composite", + className: "MachineExtension", + modelProperties: { + ...TrackedResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "MachineExtensionProperties" } }, - osSku: { + systemData: { readOnly: true, - serializedName: "properties.osSku", + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const MachineExtensionUpdateProperties: msRest.CompositeMapper = { + serializedName: "MachineExtensionUpdateProperties", + type: { + name: "Composite", + className: "MachineExtensionUpdateProperties", + modelProperties: { + forceUpdateTag: { + serializedName: "forceUpdateTag", type: { name: "String" } }, - domainName: { - readOnly: true, - serializedName: "properties.domainName", + publisher: { + serializedName: "publisher", type: { name: "String" } }, - adFqdn: { - readOnly: true, - serializedName: "properties.adFqdn", + type: { + serializedName: "type", type: { name: "String" } }, - dnsFqdn: { - readOnly: true, - serializedName: "properties.dnsFqdn", + typeHandlerVersion: { + serializedName: "typeHandlerVersion", type: { name: "String" } }, - identity: { - serializedName: "identity", + autoUpgradeMinorVersion: { + serializedName: "autoUpgradeMinorVersion", + type: { + name: "Boolean" + } + }, + settings: { + serializedName: "settings", + type: { + name: "Object" + } + }, + protectedSettings: { + serializedName: "protectedSettings", + type: { + name: "Object" + } + } + } + } +}; + +export const MachineExtensionUpdate: msRest.CompositeMapper = { + serializedName: "MachineExtensionUpdate", + type: { + name: "Composite", + className: "MachineExtensionUpdate", + modelProperties: { + ...ResourceUpdate.type.modelProperties, + properties: { + serializedName: "properties", type: { name: "Composite", - className: "MachineIdentity" + className: "MachineExtensionUpdateProperties" } } } } }; -export const UpdateResource: msRest.CompositeMapper = { - serializedName: "UpdateResource", +export const ExtensionTargetProperties: msRest.CompositeMapper = { + serializedName: "ExtensionTargetProperties", type: { name: "Composite", - className: "UpdateResource", + className: "ExtensionTargetProperties", modelProperties: { - tags: { - serializedName: "tags", + targetVersion: { + serializedName: "targetVersion", + type: { + name: "String" + } + } + } + } +}; + +export const MachineExtensionUpgrade: msRest.CompositeMapper = { + serializedName: "MachineExtensionUpgrade", + type: { + name: "Composite", + className: "MachineExtensionUpgrade", + modelProperties: { + extensionTargets: { + serializedName: "extensionTargets", type: { name: "Dictionary", value: { type: { - name: "String" + name: "Composite", + className: "ExtensionTargetProperties" } } } @@ -746,38 +979,243 @@ export const UpdateResource: msRest.CompositeMapper = { } }; -export const MachineUpdate: msRest.CompositeMapper = { - serializedName: "MachineUpdate", +export const ProxyResource: msRest.CompositeMapper = { + serializedName: "ProxyResource", type: { name: "Composite", - className: "MachineUpdate", + className: "ProxyResource", modelProperties: { - ...UpdateResource.type.modelProperties, - type: { - serializedName: "identity.type", + ...Resource.type.modelProperties + } + } +}; + +export const AzureEntityResource: msRest.CompositeMapper = { + serializedName: "AzureEntityResource", + type: { + name: "Composite", + className: "AzureEntityResource", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceModelWithAllowedPropertySetIdentity: msRest.CompositeMapper = { + serializedName: "ResourceModelWithAllowedPropertySet_identity", + type: { + name: "Composite", + className: "ResourceModelWithAllowedPropertySetIdentity", + modelProperties: { + ...Identity.type.modelProperties + } + } +}; + +export const Sku: msRest.CompositeMapper = { + serializedName: "Sku", + type: { + name: "Composite", + className: "Sku", + modelProperties: { + name: { + required: true, + serializedName: "name", type: { name: "String" } }, - principalId: { + tier: { + serializedName: "tier", + type: { + name: "Enum", + allowedValues: [ + "Free", + "Basic", + "Standard", + "Premium" + ] + } + }, + size: { + serializedName: "size", + type: { + name: "String" + } + }, + family: { + serializedName: "family", + type: { + name: "String" + } + }, + capacity: { + serializedName: "capacity", + type: { + name: "Number" + } + } + } + } +}; + +export const ResourceModelWithAllowedPropertySetSku: msRest.CompositeMapper = { + serializedName: "ResourceModelWithAllowedPropertySet_sku", + type: { + name: "Composite", + className: "ResourceModelWithAllowedPropertySetSku", + modelProperties: { + ...Sku.type.modelProperties + } + } +}; + +export const Plan: msRest.CompositeMapper = { + serializedName: "Plan", + type: { + name: "Composite", + className: "Plan", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + publisher: { + required: true, + serializedName: "publisher", + type: { + name: "String" + } + }, + product: { + required: true, + serializedName: "product", + type: { + name: "String" + } + }, + promotionCode: { + serializedName: "promotionCode", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceModelWithAllowedPropertySetPlan: msRest.CompositeMapper = { + serializedName: "ResourceModelWithAllowedPropertySet_plan", + type: { + name: "Composite", + className: "ResourceModelWithAllowedPropertySetPlan", + modelProperties: { + ...Plan.type.modelProperties + } + } +}; + +export const ResourceModelWithAllowedPropertySet: msRest.CompositeMapper = { + serializedName: "ResourceModelWithAllowedPropertySet", + type: { + name: "Composite", + className: "ResourceModelWithAllowedPropertySet", + modelProperties: { + id: { readOnly: true, - serializedName: "identity.principalId", + serializedName: "id", type: { name: "String" } }, - tenantId: { + name: { readOnly: true, - serializedName: "identity.tenantId", + serializedName: "name", type: { name: "String" } }, - locationData: { - serializedName: "properties.locationData", + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + managedBy: { + serializedName: "managedBy", + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + constraints: { + Pattern: /^[-\w\._,\(\)]+$/ + }, + type: { + name: "String" + } + }, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + identity: { + serializedName: "identity", type: { name: "Composite", - className: "LocationData" + className: "ResourceModelWithAllowedPropertySetIdentity" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "ResourceModelWithAllowedPropertySetSku" + } + }, + plan: { + serializedName: "plan", + type: { + name: "Composite", + className: "ResourceModelWithAllowedPropertySetPlan" } } } @@ -791,7 +1229,6 @@ export const ErrorResponse: msRest.CompositeMapper = { className: "ErrorResponse", modelProperties: { error: { - required: true, serializedName: "error", type: { name: "Composite", @@ -802,278 +1239,430 @@ export const ErrorResponse: msRest.CompositeMapper = { } }; -export const MachineExtension: msRest.CompositeMapper = { - serializedName: "MachineExtension", +export const PrivateLinkScopesResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkScopesResource", type: { name: "Composite", - className: "MachineExtension", + className: "PrivateLinkScopesResource", modelProperties: { - ...TrackedResource.type.modelProperties, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - publisher: { - serializedName: "properties.publisher", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - machineExtensionType: { - serializedName: "properties.type", + type: { + readOnly: true, + serializedName: "type", type: { name: "String" } }, - typeHandlerVersion: { - serializedName: "properties.typeHandlerVersion", + location: { + required: true, + serializedName: "location", type: { name: "String" } }, - autoUpgradeMinorVersion: { - serializedName: "properties.autoUpgradeMinorVersion", + tags: { + serializedName: "tags", type: { - name: "Boolean" + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const TagsResource: msRest.CompositeMapper = { + serializedName: "TagsResource", + type: { + name: "Composite", + className: "TagsResource", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PrivateEndpointProperty: msRest.CompositeMapper = { + serializedName: "PrivateEndpointProperty", + type: { + name: "Composite", + className: "PrivateEndpointProperty", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkServiceConnectionStateProperty: msRest.CompositeMapper = { + serializedName: "PrivateLinkServiceConnectionStateProperty", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty", + modelProperties: { + status: { + required: true, + serializedName: "status", + type: { + name: "String" } }, - settings: { - serializedName: "properties.settings", + description: { + required: true, + serializedName: "description", type: { - name: "Object" + name: "String" } }, - protectedSettings: { - serializedName: "properties.protectedSettings", + actionsRequired: { + readOnly: true, + serializedName: "actionsRequired", type: { - name: "Object" + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnectionProperties: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionProperties", + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties", + modelProperties: { + privateEndpoint: { + serializedName: "privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpointProperty" + } + }, + privateLinkServiceConnectionState: { + serializedName: "privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionStateProperty" } }, provisioningState: { readOnly: true, - serializedName: "properties.provisioningState", + serializedName: "provisioningState", type: { name: "String" } - }, - instanceView: { - serializedName: "properties.instanceView", - type: { - name: "Composite", - className: "MachineExtensionPropertiesInstanceView" - } } } } }; -export const MachineExtensionUpdate: msRest.CompositeMapper = { - serializedName: "MachineExtensionUpdate", +export const PrivateEndpointConnectionDataModel: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionDataModel", type: { name: "Composite", - className: "MachineExtensionUpdate", + className: "PrivateEndpointConnectionDataModel", modelProperties: { - ...UpdateResource.type.modelProperties, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - publisher: { - serializedName: "properties.publisher", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, type: { - serializedName: "properties.type", + readOnly: true, + serializedName: "type", type: { name: "String" } }, - typeHandlerVersion: { - serializedName: "properties.typeHandlerVersion", + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties" + } + } + } + } +}; + +export const HybridComputePrivateLinkScopeProperties: msRest.CompositeMapper = { + serializedName: "HybridComputePrivateLinkScopeProperties", + type: { + name: "Composite", + className: "HybridComputePrivateLinkScopeProperties", + modelProperties: { + publicNetworkAccess: { + serializedName: "publicNetworkAccess", + defaultValue: 'Disabled', type: { name: "String" } }, - autoUpgradeMinorVersion: { - serializedName: "properties.autoUpgradeMinorVersion", + provisioningState: { + readOnly: true, + serializedName: "provisioningState", type: { - name: "Boolean" + name: "String" } }, - settings: { - serializedName: "properties.settings", + privateLinkScopeId: { + readOnly: true, + serializedName: "privateLinkScopeId", type: { - name: "Object" + name: "String" } }, - protectedSettings: { - serializedName: "properties.protectedSettings", + privateEndpointConnections: { + readOnly: true, + serializedName: "privateEndpointConnections", type: { - name: "Object" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionDataModel" + } + } } } } } }; -export const MachineExtensionPropertiesInstanceView: msRest.CompositeMapper = { - serializedName: "MachineExtensionProperties_instanceView", +export const HybridComputePrivateLinkScope: msRest.CompositeMapper = { + serializedName: "HybridComputePrivateLinkScope", type: { name: "Composite", - className: "MachineExtensionPropertiesInstanceView", + className: "HybridComputePrivateLinkScope", modelProperties: { - ...MachineExtensionInstanceView.type.modelProperties + ...PrivateLinkScopesResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "HybridComputePrivateLinkScopeProperties" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } } } }; -export const MachineExtensionPropertiesModel: msRest.CompositeMapper = { - serializedName: "MachineExtensionProperties", +export const ConnectionDetail: msRest.CompositeMapper = { + serializedName: "ConnectionDetail", type: { name: "Composite", - className: "MachineExtensionPropertiesModel", + className: "ConnectionDetail", modelProperties: { - forceUpdateTag: { - serializedName: "forceUpdateTag", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - publisher: { - serializedName: "publisher", + privateIpAddress: { + readOnly: true, + serializedName: "privateIpAddress", type: { name: "String" } }, - type: { - serializedName: "type", + linkIdentifier: { + readOnly: true, + serializedName: "linkIdentifier", type: { name: "String" } }, - typeHandlerVersion: { - serializedName: "typeHandlerVersion", + groupId: { + readOnly: true, + serializedName: "groupId", type: { name: "String" } }, - autoUpgradeMinorVersion: { - serializedName: "autoUpgradeMinorVersion", - type: { - name: "Boolean" - } - }, - settings: { - serializedName: "settings", - type: { - name: "Object" - } - }, - protectedSettings: { - serializedName: "protectedSettings", - type: { - name: "Object" - } - }, - provisioningState: { + memberName: { readOnly: true, - serializedName: "provisioningState", + serializedName: "memberName", type: { name: "String" } - }, - instanceView: { - serializedName: "instanceView", - type: { - name: "Composite", - className: "MachineExtensionPropertiesInstanceView" - } } } } }; -export const MachineExtensionUpdatePropertiesModel: msRest.CompositeMapper = { - serializedName: "MachineExtensionUpdateProperties", +export const PrivateLinkScopeValidationDetails: msRest.CompositeMapper = { + serializedName: "PrivateLinkScopeValidationDetails", type: { name: "Composite", - className: "MachineExtensionUpdatePropertiesModel", + className: "PrivateLinkScopeValidationDetails", modelProperties: { - forceUpdateTag: { - serializedName: "forceUpdateTag", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - publisher: { - serializedName: "publisher", + publicNetworkAccess: { + serializedName: "publicNetworkAccess", + defaultValue: 'Disabled', type: { name: "String" } }, - type: { - serializedName: "type", + connectionDetails: { + serializedName: "connectionDetails", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectionDetail" + } + } } - }, - typeHandlerVersion: { - serializedName: "typeHandlerVersion", + } + } + } +}; + +export const PrivateLinkResourceProperties: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourceProperties", + type: { + name: "Composite", + className: "PrivateLinkResourceProperties", + modelProperties: { + groupId: { + readOnly: true, + serializedName: "groupId", type: { name: "String" } }, - autoUpgradeMinorVersion: { - serializedName: "autoUpgradeMinorVersion", - type: { - name: "Boolean" - } - }, - settings: { - serializedName: "settings", + requiredMembers: { + readOnly: true, + serializedName: "requiredMembers", type: { - name: "Object" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - protectedSettings: { - serializedName: "protectedSettings", + requiredZoneNames: { + readOnly: true, + serializedName: "requiredZoneNames", type: { - name: "Object" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ProxyResource: msRest.CompositeMapper = { - serializedName: "ProxyResource", +export const PrivateLinkResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkResource", type: { name: "Composite", - className: "ProxyResource", + className: "PrivateLinkResource", modelProperties: { - ...Resource.type.modelProperties + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "PrivateLinkResourceProperties" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } } } }; -export const AzureEntityResource: msRest.CompositeMapper = { - serializedName: "AzureEntityResource", +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", type: { name: "Composite", - className: "AzureEntityResource", + className: "PrivateEndpointConnection", modelProperties: { - ...Resource.type.modelProperties, - etag: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "PrivateEndpointConnectionProperties" + } + }, + systemData: { readOnly: true, - serializedName: "etag", + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } } } @@ -1159,3 +1748,92 @@ export const OperationListResult: msRest.CompositeMapper = { } } }; + +export const HybridComputePrivateLinkScopeListResult: msRest.CompositeMapper = { + serializedName: "HybridComputePrivateLinkScopeListResult", + type: { + name: "Composite", + className: "HybridComputePrivateLinkScopeListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HybridComputePrivateLinkScope" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkResourceListResult: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourceListResult", + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionListResult", + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/operationsMappers.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/operationsMappers.ts index 17e27c67ba9f..ed5cd62c8308 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/models/operationsMappers.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/operationsMappers.ts @@ -1,14 +1,16 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + ErrorAdditionalInfo, ErrorDetail, ErrorResponse, OperationListResult, - OperationValue + OperationValue, + OperationValueDisplay } from "../models/mappers"; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/parameters.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/parameters.ts index 8d12a0909808..c398decd3a71 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/models/parameters.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -25,6 +24,9 @@ export const apiVersion: msRest.OperationQueryParameter = { mapper: { required: true, serializedName: "api-version", + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -52,11 +54,47 @@ export const extensionName: msRest.OperationURLParameter = { } } }; -export const name: msRest.OperationURLParameter = { - parameterPath: "name", +export const groupName: msRest.OperationURLParameter = { + parameterPath: "groupName", mapper: { required: true, - serializedName: "name", + serializedName: "groupName", + type: { + name: "String" + } + } +}; +export const location: msRest.OperationURLParameter = { + parameterPath: "location", + mapper: { + required: true, + serializedName: "location", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } +}; +export const machineName0: msRest.OperationURLParameter = { + parameterPath: "machineName", + mapper: { + required: true, + serializedName: "machineName", + type: { + name: "String" + } + } +}; +export const machineName1: msRest.OperationURLParameter = { + parameterPath: "machineName", + mapper: { + required: true, + serializedName: "machineName", + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -73,11 +111,45 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const privateEndpointConnectionName: msRest.OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", + mapper: { + required: true, + serializedName: "privateEndpointConnectionName", + type: { + name: "String" + } + } +}; +export const privateLinkScopeId: msRest.OperationURLParameter = { + parameterPath: "privateLinkScopeId", + mapper: { + required: true, + serializedName: "privateLinkScopeId", + type: { + name: "String" + } + } +}; export const resourceGroupName: msRest.OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { required: true, serializedName: "resourceGroupName", + constraints: { + MaxLength: 90, + MinLength: 1 + }, + type: { + name: "String" + } + } +}; +export const scopeName: msRest.OperationURLParameter = { + parameterPath: "scopeName", + mapper: { + required: true, + serializedName: "scopeName", type: { name: "String" } @@ -88,6 +160,9 @@ export const subscriptionId: msRest.OperationURLParameter = { mapper: { required: true, serializedName: "subscriptionId", + constraints: { + MinLength: 1 + }, type: { name: "String" } diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/privateEndpointConnectionsMappers.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/privateEndpointConnectionsMappers.ts new file mode 100644 index 000000000000..391b49e25916 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/privateEndpointConnectionsMappers.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AzureEntityResource, + BaseResource, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + HybridComputePrivateLinkScope, + HybridComputePrivateLinkScopeProperties, + Identity, + LocationData, + Machine, + MachineExtension, + MachineExtensionInstanceView, + MachineExtensionInstanceViewStatus, + MachineExtensionProperties, + MachineProperties, + OSProfile, + OSProfileLinuxConfiguration, + OSProfileWindowsConfiguration, + Plan, + PrivateEndpointConnection, + PrivateEndpointConnectionDataModel, + PrivateEndpointConnectionListResult, + PrivateEndpointConnectionProperties, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + Resource, + ResourceModelWithAllowedPropertySet, + ResourceModelWithAllowedPropertySetIdentity, + ResourceModelWithAllowedPropertySetPlan, + ResourceModelWithAllowedPropertySetSku, + Sku, + SystemData, + TrackedResource +} from "../models/mappers"; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/privateLinkResourcesMappers.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/privateLinkResourcesMappers.ts new file mode 100644 index 000000000000..6ec4300e7c33 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/privateLinkResourcesMappers.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AzureEntityResource, + BaseResource, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + HybridComputePrivateLinkScope, + HybridComputePrivateLinkScopeProperties, + Identity, + LocationData, + Machine, + MachineExtension, + MachineExtensionInstanceView, + MachineExtensionInstanceViewStatus, + MachineExtensionProperties, + MachineProperties, + OSProfile, + OSProfileLinuxConfiguration, + OSProfileWindowsConfiguration, + Plan, + PrivateEndpointConnection, + PrivateEndpointConnectionDataModel, + PrivateEndpointConnectionProperties, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceListResult, + PrivateLinkResourceProperties, + PrivateLinkScopesResource, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + Resource, + ResourceModelWithAllowedPropertySet, + ResourceModelWithAllowedPropertySetIdentity, + ResourceModelWithAllowedPropertySetPlan, + ResourceModelWithAllowedPropertySetSku, + Sku, + SystemData, + TrackedResource +} from "../models/mappers"; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/models/privateLinkScopesMappers.ts b/sdk/hybridcompute/arm-hybridcompute/src/models/privateLinkScopesMappers.ts new file mode 100644 index 000000000000..ebfe2e6caf91 --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/src/models/privateLinkScopesMappers.ts @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AzureEntityResource, + BaseResource, + ConnectionDetail, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, + HybridComputePrivateLinkScope, + HybridComputePrivateLinkScopeListResult, + HybridComputePrivateLinkScopeProperties, + Identity, + LocationData, + Machine, + MachineExtension, + MachineExtensionInstanceView, + MachineExtensionInstanceViewStatus, + MachineExtensionProperties, + MachineProperties, + OSProfile, + OSProfileLinuxConfiguration, + OSProfileWindowsConfiguration, + Plan, + PrivateEndpointConnection, + PrivateEndpointConnectionDataModel, + PrivateEndpointConnectionProperties, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkResourceProperties, + PrivateLinkScopesResource, + PrivateLinkScopeValidationDetails, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + Resource, + ResourceModelWithAllowedPropertySet, + ResourceModelWithAllowedPropertySetIdentity, + ResourceModelWithAllowedPropertySetPlan, + ResourceModelWithAllowedPropertySetSku, + Sku, + SystemData, + TagsResource, + TrackedResource +} from "../models/mappers"; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operations/index.ts b/sdk/hybridcompute/arm-hybridcompute/src/operations/index.ts index 35660def86a6..621c72e19e05 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/operations/index.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -11,3 +10,6 @@ export * from "./machines"; export * from "./machineExtensions"; export * from "./operations"; +export * from "./privateLinkScopes"; +export * from "./privateLinkResources"; +export * from "./privateEndpointConnections"; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operations/machineExtensions.ts b/sdk/hybridcompute/arm-hybridcompute/src/operations/machineExtensions.ts index af98d27e6aa0..6e9d225f0850 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/operations/machineExtensions.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/operations/machineExtensions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -29,74 +28,74 @@ export class MachineExtensions { /** * The operation to create or update the extension. - * @param resourceGroupName The name of the resource group. - * @param name The name of the machine where the extension should be created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the machine where the extension should be created or updated. * @param extensionName The name of the machine extension. * @param extensionParameters Parameters supplied to the Create Machine Extension operation. * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, name: string, extensionName: string, extensionParameters: Models.MachineExtension, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,name,extensionName,extensionParameters,options) + createOrUpdate(resourceGroupName: string, machineName: string, extensionName: string, extensionParameters: Models.MachineExtension, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,machineName,extensionName,extensionParameters,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** * The operation to create or update the extension. - * @param resourceGroupName The name of the resource group. - * @param name The name of the machine where the extension should be created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the machine where the extension should be created or updated. * @param extensionName The name of the machine extension. * @param extensionParameters Parameters supplied to the Create Machine Extension operation. * @param [options] The optional parameters * @returns Promise */ - update(resourceGroupName: string, name: string, extensionName: string, extensionParameters: Models.MachineExtensionUpdate, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(resourceGroupName,name,extensionName,extensionParameters,options) + update(resourceGroupName: string, machineName: string, extensionName: string, extensionParameters: Models.MachineExtensionUpdate, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,machineName,extensionName,extensionParameters,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** * The operation to delete the extension. - * @param resourceGroupName The name of the resource group. - * @param name The name of the machine where the extension should be deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the machine where the extension should be deleted. * @param extensionName The name of the machine extension. * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, name: string, extensionName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,name,extensionName,options) + deleteMethod(resourceGroupName: string, machineName: string, extensionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,machineName,extensionName,options) .then(lroPoller => lroPoller.pollUntilFinished()); } /** * The operation to get the extension. - * @param resourceGroupName The name of the resource group. - * @param name The name of the machine containing the extension. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the machine containing the extension. * @param extensionName The name of the machine extension. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, name: string, extensionName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, machineName: string, extensionName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. - * @param name The name of the machine containing the extension. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the machine containing the extension. * @param extensionName The name of the machine extension. * @param callback The callback */ - get(resourceGroupName: string, name: string, extensionName: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, machineName: string, extensionName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. - * @param name The name of the machine containing the extension. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the machine containing the extension. * @param extensionName The name of the machine extension. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, name: string, extensionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, name: string, extensionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, machineName: string, extensionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, machineName: string, extensionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, - name, + machineName, extensionName, options }, @@ -106,30 +105,30 @@ export class MachineExtensions { /** * The operation to get all extensions of a non-Azure machine - * @param resourceGroupName The name of the resource group. - * @param name The name of the machine containing the extension. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the machine containing the extension. * @param [options] The optional parameters * @returns Promise */ - list(resourceGroupName: string, name: string, options?: Models.MachineExtensionsListOptionalParams): Promise; + list(resourceGroupName: string, machineName: string, options?: Models.MachineExtensionsListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. - * @param name The name of the machine containing the extension. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the machine containing the extension. * @param callback The callback */ - list(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, machineName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. - * @param name The name of the machine containing the extension. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the machine containing the extension. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, name: string, options: Models.MachineExtensionsListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, name: string, options?: Models.MachineExtensionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, machineName: string, options: Models.MachineExtensionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, machineName: string, options?: Models.MachineExtensionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, - name, + machineName, options }, listOperationSpec, @@ -138,18 +137,18 @@ export class MachineExtensions { /** * The operation to create or update the extension. - * @param resourceGroupName The name of the resource group. - * @param name The name of the machine where the extension should be created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the machine where the extension should be created or updated. * @param extensionName The name of the machine extension. * @param extensionParameters Parameters supplied to the Create Machine Extension operation. * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate(resourceGroupName: string, name: string, extensionName: string, extensionParameters: Models.MachineExtension, options?: msRest.RequestOptionsBase): Promise { + beginCreateOrUpdate(resourceGroupName: string, machineName: string, extensionName: string, extensionParameters: Models.MachineExtension, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, - name, + machineName, extensionName, extensionParameters, options @@ -160,18 +159,18 @@ export class MachineExtensions { /** * The operation to create or update the extension. - * @param resourceGroupName The name of the resource group. - * @param name The name of the machine where the extension should be created or updated. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the machine where the extension should be created or updated. * @param extensionName The name of the machine extension. * @param extensionParameters Parameters supplied to the Create Machine Extension operation. * @param [options] The optional parameters * @returns Promise */ - beginUpdate(resourceGroupName: string, name: string, extensionName: string, extensionParameters: Models.MachineExtensionUpdate, options?: msRest.RequestOptionsBase): Promise { + beginUpdate(resourceGroupName: string, machineName: string, extensionName: string, extensionParameters: Models.MachineExtensionUpdate, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, - name, + machineName, extensionName, extensionParameters, options @@ -182,17 +181,17 @@ export class MachineExtensions { /** * The operation to delete the extension. - * @param resourceGroupName The name of the resource group. - * @param name The name of the machine where the extension should be deleted. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the machine where the extension should be deleted. * @param extensionName The name of the machine extension. * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod(resourceGroupName: string, name: string, extensionName: string, options?: msRest.RequestOptionsBase): Promise { + beginDeleteMethod(resourceGroupName: string, machineName: string, extensionName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, - name, + machineName, extensionName, options }, @@ -206,7 +205,7 @@ export class MachineExtensions { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.MachineExtensionsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -217,8 +216,8 @@ export class MachineExtensions { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.MachineExtensionsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.MachineExtensionsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -233,10 +232,10 @@ export class MachineExtensions { const serializer = new msRest.Serializer(Mappers); const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/extensions/{extensionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}", urlParameters: [ Parameters.resourceGroupName, - Parameters.name, + Parameters.machineName0, Parameters.extensionName, Parameters.subscriptionId ], @@ -251,7 +250,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.MachineExtension }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -259,10 +258,10 @@ const getOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/extensions", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions", urlParameters: [ Parameters.resourceGroupName, - Parameters.name, + Parameters.machineName0, Parameters.subscriptionId ], queryParameters: [ @@ -277,7 +276,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.MachineExtensionsListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -285,10 +284,10 @@ const listOperationSpec: msRest.OperationSpec = { const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/extensions/{extensionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}", urlParameters: [ Parameters.resourceGroupName, - Parameters.name, + Parameters.machineName0, Parameters.extensionName, Parameters.subscriptionId ], @@ -311,7 +310,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -319,10 +318,10 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/extensions/{extensionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}", urlParameters: [ Parameters.resourceGroupName, - Parameters.name, + Parameters.machineName0, Parameters.extensionName, Parameters.subscriptionId ], @@ -345,7 +344,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -353,10 +352,10 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}/extensions/{extensionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}", urlParameters: [ Parameters.resourceGroupName, - Parameters.name, + Parameters.machineName0, Parameters.extensionName, Parameters.subscriptionId ], @@ -371,7 +370,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -384,6 +383,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.expand, + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -392,7 +395,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.MachineExtensionsListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operations/machines.ts b/sdk/hybridcompute/arm-hybridcompute/src/operations/machines.ts index 8d580f932635..6a8590f0c8c3 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/operations/machines.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/operations/machines.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -28,30 +27,30 @@ export class Machines { /** * The operation to remove a hybrid machine identity in Azure. - * @param resourceGroupName The name of the resource group. - * @param name The name of the hybrid machine. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + deleteMethod(resourceGroupName: string, machineName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. - * @param name The name of the hybrid machine. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. * @param callback The callback */ - deleteMethod(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, machineName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. - * @param name The name of the hybrid machine. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. * @param options The optional parameters * @param callback The callback */ - deleteMethod(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, machineName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, machineName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, - name, + machineName, options }, deleteMethodOperationSpec, @@ -60,30 +59,30 @@ export class Machines { /** * Retrieves information about the model view or the instance view of a hybrid machine. - * @param resourceGroupName The name of the resource group. - * @param name The name of the hybrid machine. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, name: string, options?: Models.MachinesGetOptionalParams): Promise; + get(resourceGroupName: string, machineName: string, options?: Models.MachinesGetOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. - * @param name The name of the hybrid machine. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. * @param callback The callback */ - get(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, machineName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. - * @param name The name of the hybrid machine. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the hybrid machine. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, name: string, options: Models.MachinesGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, name: string, options?: Models.MachinesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, machineName: string, options: Models.MachinesGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, machineName: string, options?: Models.MachinesGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, - name, + machineName, options }, getOperationSpec, @@ -93,18 +92,18 @@ export class Machines { /** * Lists all the hybrid machines in the specified resource group. Use the nextLink property in the * response to get the next page of hybrid machines. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param [options] The optional parameters * @returns Promise */ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param callback The callback */ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The optional parameters * @param callback The callback */ @@ -207,11 +206,11 @@ export class Machines { const serializer = new msRest.Serializer(Mappers); const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.name + Parameters.machineName0 ], queryParameters: [ Parameters.apiVersion @@ -231,11 +230,11 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{name}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.name + Parameters.machineName0 ], queryParameters: [ Parameters.apiVersion, @@ -309,6 +308,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -330,6 +332,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operations/operations.ts b/sdk/hybridcompute/arm-hybridcompute/src/operations/operations.ts index 38d79ddce65b..b90281d1491c 100644 --- a/sdk/hybridcompute/arm-hybridcompute/src/operations/operations.ts +++ b/sdk/hybridcompute/arm-hybridcompute/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operations/privateEndpointConnections.ts b/sdk/hybridcompute/arm-hybridcompute/src/operations/privateEndpointConnections.ts new file mode 100644 index 000000000000..3f8d68adb44c --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/src/operations/privateEndpointConnections.ts @@ -0,0 +1,330 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateEndpointConnectionsMappers"; +import * as Parameters from "../models/parameters"; +import { HybridComputeManagementClientContext } from "../hybridComputeManagementClientContext"; + +/** Class representing a PrivateEndpointConnections. */ +export class PrivateEndpointConnections { + private readonly client: HybridComputeManagementClientContext; + + /** + * Create a PrivateEndpointConnections. + * @param {HybridComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: HybridComputeManagementClientContext) { + this.client = client; + } + + /** + * Gets a private endpoint connection. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + privateEndpointConnectionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Approve or reject a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param parameters + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,scopeName,privateEndpointConnectionName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,scopeName,privateEndpointConnectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets all private endpoint connections on a private link scope. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param [options] The optional parameters + * @returns Promise + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param callback The callback + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param options The optional parameters + * @param callback The callback + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + options + }, + listByPrivateLinkScopeOperationSpec, + callback) as Promise; + } + + /** + * Approve or reject a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param parameters + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + scopeName, + privateEndpointConnectionName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes a private endpoint connection with a given name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, scopeName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + scopeName, + privateEndpointConnectionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Gets all private endpoint connections on a private link scope. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByPrivateLinkScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByPrivateLinkScopeNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByPrivateLinkScopeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByPrivateLinkScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByPrivateLinkScopeNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByPrivateLinkScopeOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PrivateEndpointConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByPrivateLinkScopeNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operations/privateLinkResources.ts b/sdk/hybridcompute/arm-hybridcompute/src/operations/privateLinkResources.ts new file mode 100644 index 000000000000..52b9b3f9e8bd --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/src/operations/privateLinkResources.ts @@ -0,0 +1,200 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateLinkResourcesMappers"; +import * as Parameters from "../models/parameters"; +import { HybridComputeManagementClientContext } from "../hybridComputeManagementClientContext"; + +/** Class representing a PrivateLinkResources. */ +export class PrivateLinkResources { + private readonly client: HybridComputeManagementClientContext; + + /** + * Create a PrivateLinkResources. + * @param {HybridComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: HybridComputeManagementClientContext) { + this.client = client; + } + + /** + * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param [options] The optional parameters + * @returns Promise + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param callback The callback + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param options The optional parameters + * @param callback The callback + */ + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByPrivateLinkScope(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + options + }, + listByPrivateLinkScopeOperationSpec, + callback) as Promise; + } + + /** + * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param groupName The name of the private link resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, scopeName: string, groupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param groupName The name of the private link resource. + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, groupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param groupName The name of the private link resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, scopeName: string, groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + groupName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByPrivateLinkScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByPrivateLinkScopeNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByPrivateLinkScopeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByPrivateLinkScopeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByPrivateLinkScopeNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByPrivateLinkScopeOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateLinkResources", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateLinkResources/{groupName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.scopeName, + Parameters.groupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByPrivateLinkScopeNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResourceListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/hybridcompute/arm-hybridcompute/src/operations/privateLinkScopes.ts b/sdk/hybridcompute/arm-hybridcompute/src/operations/privateLinkScopes.ts new file mode 100644 index 000000000000..924ecb649cca --- /dev/null +++ b/sdk/hybridcompute/arm-hybridcompute/src/operations/privateLinkScopes.ts @@ -0,0 +1,606 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/privateLinkScopesMappers"; +import * as Parameters from "../models/parameters"; +import { HybridComputeManagementClientContext } from "../hybridComputeManagementClientContext"; + +/** Class representing a PrivateLinkScopes. */ +export class PrivateLinkScopes { + private readonly client: HybridComputeManagementClientContext; + + /** + * Create a PrivateLinkScopes. + * @param {HybridComputeManagementClientContext} client Reference to the service client. + */ + constructor(client: HybridComputeManagementClientContext) { + this.client = client; + } + + /** + * Gets a list of all Azure Arc PrivateLinkScopes within a subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of Azure Arc PrivateLinkScopes within a resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Deletes a Azure Arc PrivateLinkScope. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,scopeName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Returns a Azure Arc PrivateLinkScope. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, scopeName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value + * for InstrumentationKey nor AppId in the Put operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param parameters Properties that need to be specified to create or update a Azure Arc for + * Servers and Clusters PrivateLinkScope. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, scopeName: string, parameters: Models.HybridComputePrivateLinkScope, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param parameters Properties that need to be specified to create or update a Azure Arc for + * Servers and Clusters PrivateLinkScope. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, scopeName: string, parameters: Models.HybridComputePrivateLinkScope, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param parameters Properties that need to be specified to create or update a Azure Arc for + * Servers and Clusters PrivateLinkScope. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, scopeName: string, parameters: Models.HybridComputePrivateLinkScope, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, scopeName: string, parameters: Models.HybridComputePrivateLinkScope, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate + * method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param privateLinkScopeTags Updated tag information to set into the PrivateLinkScope instance. + * @param [options] The optional parameters + * @returns Promise + */ + updateTags(resourceGroupName: string, scopeName: string, privateLinkScopeTags: Models.TagsResource, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param privateLinkScopeTags Updated tag information to set into the PrivateLinkScope instance. + * @param callback The callback + */ + updateTags(resourceGroupName: string, scopeName: string, privateLinkScopeTags: Models.TagsResource, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param privateLinkScopeTags Updated tag information to set into the PrivateLinkScope instance. + * @param options The optional parameters + * @param callback The callback + */ + updateTags(resourceGroupName: string, scopeName: string, privateLinkScopeTags: Models.TagsResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateTags(resourceGroupName: string, scopeName: string, privateLinkScopeTags: Models.TagsResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + scopeName, + privateLinkScopeTags, + options + }, + updateTagsOperationSpec, + callback) as Promise; + } + + /** + * Returns a Azure Arc PrivateLinkScope's validation details. + * @param location The location of the target resource. + * @param privateLinkScopeId The id (Guid) of the Azure Arc PrivateLinkScope resource. + * @param [options] The optional parameters + * @returns Promise + */ + getValidationDetails(location: string, privateLinkScopeId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location The location of the target resource. + * @param privateLinkScopeId The id (Guid) of the Azure Arc PrivateLinkScope resource. + * @param callback The callback + */ + getValidationDetails(location: string, privateLinkScopeId: string, callback: msRest.ServiceCallback): void; + /** + * @param location The location of the target resource. + * @param privateLinkScopeId The id (Guid) of the Azure Arc PrivateLinkScope resource. + * @param options The optional parameters + * @param callback The callback + */ + getValidationDetails(location: string, privateLinkScopeId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getValidationDetails(location: string, privateLinkScopeId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + privateLinkScopeId, + options + }, + getValidationDetailsOperationSpec, + callback) as Promise; + } + + /** + * Returns a Azure Arc PrivateLinkScope's validation details for a given machine. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the target machine to get the private link scope validation + * details for. + * @param [options] The optional parameters + * @returns Promise + */ + getValidationDetailsForMachine(resourceGroupName: string, machineName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the target machine to get the private link scope validation + * details for. + * @param callback The callback + */ + getValidationDetailsForMachine(resourceGroupName: string, machineName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param machineName The name of the target machine to get the private link scope validation + * details for. + * @param options The optional parameters + * @param callback The callback + */ + getValidationDetailsForMachine(resourceGroupName: string, machineName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getValidationDetailsForMachine(resourceGroupName: string, machineName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + machineName, + options + }, + getValidationDetailsForMachineOperationSpec, + callback) as Promise; + } + + /** + * Deletes a Azure Arc PrivateLinkScope. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param scopeName The name of the Azure Arc PrivateLinkScope resource. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, scopeName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + scopeName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Gets a list of all Azure Arc PrivateLinkScopes within a subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Gets a list of Azure Arc PrivateLinkScopes within a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/privateLinkScopes", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridComputePrivateLinkScopeListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridComputePrivateLinkScopeListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.scopeName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridComputePrivateLinkScope + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.scopeName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.HybridComputePrivateLinkScope, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.HybridComputePrivateLinkScope + }, + 201: { + bodyMapper: Mappers.HybridComputePrivateLinkScope + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.scopeName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "privateLinkScopeTags", + mapper: { + ...Mappers.TagsResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.HybridComputePrivateLinkScope + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getValidationDetailsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/locations/{location}/privateLinkScopes/{privateLinkScopeId}", + urlParameters: [ + Parameters.location, + Parameters.subscriptionId, + Parameters.privateLinkScopeId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkScopeValidationDetails + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getValidationDetailsForMachineOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/privateLinkScopes/current", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.machineName1 + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkScopeValidationDetails + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.scopeName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridComputePrivateLinkScopeListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.HybridComputePrivateLinkScopeListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +};