From e5643bd8f880358d45a68289047f377551514936 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 27 Aug 2021 09:42:16 +0000 Subject: [PATCH] CodeGen from PR 15815 in Azure/azure-rest-api-specs Merge adbbf88f36ec9a62da2f73357711d09af418b737 into 3ad2d30c9abf65d13f34c0ac423f6c2416f68b8a --- sdk/hdinsight/arm-hdinsight/README.md | 52 +- sdk/hdinsight/arm-hdinsight/package.json | 2 +- .../src/hDInsightManagementClient.ts | 11 +- .../src/hDInsightManagementClientContext.ts | 19 +- .../src/models/applicationsMappers.ts | 11 +- .../src/models/clustersMappers.ts | 11 +- .../arm-hdinsight/src/models/index.ts | 1395 +++++++++++------ .../src/models/locationsMappers.ts | 9 +- .../arm-hdinsight/src/models/mappers.ts | 793 +++++++--- .../arm-hdinsight/src/models/parameters.ts | 24 +- .../privateEndpointConnectionsMappers.ts | 65 + .../src/models/privateLinkResourcesMappers.ts | 65 + .../src/models/virtualMachinesMappers.ts | 7 +- .../src/operations/applications.ts | 252 +-- .../arm-hdinsight/src/operations/clusters.ts | 634 +++----- .../src/operations/extensions.ts | 419 ++--- .../arm-hdinsight/src/operations/index.ts | 2 + .../arm-hdinsight/src/operations/locations.ts | 255 ++- .../operations/privateEndpointConnections.ts | 332 ++++ .../src/operations/privateLinkResources.ts | 148 ++ .../src/operations/scriptActions.ts | 215 +-- .../src/operations/virtualMachines.ts | 132 +- 22 files changed, 2808 insertions(+), 2045 deletions(-) create mode 100644 sdk/hdinsight/arm-hdinsight/src/models/privateEndpointConnectionsMappers.ts create mode 100644 sdk/hdinsight/arm-hdinsight/src/models/privateLinkResourcesMappers.ts create mode 100644 sdk/hdinsight/arm-hdinsight/src/operations/privateEndpointConnections.ts create mode 100644 sdk/hdinsight/arm-hdinsight/src/operations/privateLinkResources.ts diff --git a/sdk/hdinsight/arm-hdinsight/README.md b/sdk/hdinsight/arm-hdinsight/README.md index 57e219e9e7a8..f8e75a9c9fcd 100644 --- a/sdk/hdinsight/arm-hdinsight/README.md +++ b/sdk/hdinsight/arm-hdinsight/README.md @@ -4,8 +4,8 @@ This package contains an isomorphic SDK (runs both in node.js and in browsers) f ### Currently supported environments -- Node.js version 8.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -14,18 +14,15 @@ 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-hdinsight` 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 --save @azure/arm-hdinsight @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. +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 @@ -39,7 +36,6 @@ npm install --save @azure/arm-hdinsight @azure/identity 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 clusters as an example written in JavaScript. ##### Sample code @@ -55,24 +51,20 @@ const creds = new DefaultAzureCredential(); const client = new HDInsightManagementClient(creds, subscriptionId); const resourceGroupName = "testresourceGroupName"; const clusterName = "testclusterName"; -client.clusters - .get(resourceGroupName, clusterName) - .then((result) => { - console.log("The result is:"); - console.log(result); - }) - .catch((err) => { - console.log("An error occurred:"); - console.error(err); - }); +client.clusters.get(resourceGroupName, clusterName).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 clusters as an example written in JavaScript. 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. + - 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 @@ -90,23 +82,21 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const subscriptionId = ""; // Create credentials using the `@azure/identity` package. // Please note that you can also use credentials from the `@azure/ms-rest-browserauth` package instead. - const credential = new InteractiveBrowserCredential({ + const credential = new InteractiveBrowserCredential( + { clientId: "", tenant: "" }); const client = new Azure.ArmHdinsight.HDInsightManagementClient(creds, subscriptionId); const resourceGroupName = "testresourceGroupName"; const clusterName = "testclusterName"; - client.clusters - .get(resourceGroupName, clusterName) - .then((result) => { - console.log("The result is:"); - console.log(result); - }) - .catch((err) => { - console.log("An error occurred:"); - console.error(err); - }); + client.clusters.get(resourceGroupName, clusterName).then((result) => { + console.log("The result is:"); + console.log(result); + }).catch((err) => { + console.log("An error occurred:"); + console.error(err); + }); diff --git a/sdk/hdinsight/arm-hdinsight/package.json b/sdk/hdinsight/arm-hdinsight/package.json index 723e74fd9a43..8bef4377671e 100644 --- a/sdk/hdinsight/arm-hdinsight/package.json +++ b/sdk/hdinsight/arm-hdinsight/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/hdinsight/arm-hdinsight", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/hdinsight/arm-hdinsight", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts b/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts index 6d57ff19d793..a545be520a48 100644 --- a/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts +++ b/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClient.ts @@ -14,6 +14,7 @@ import * as Mappers from "./models/mappers"; import * as operations from "./operations"; import { HDInsightManagementClientContext } from "./hDInsightManagementClientContext"; + class HDInsightManagementClient extends HDInsightManagementClientContext { // Operation groups clusters: operations.Clusters; @@ -25,6 +26,8 @@ class HDInsightManagementClient extends HDInsightManagementClientContext { scriptExecutionHistory: operations.ScriptExecutionHistory; operations: operations.Operations; virtualMachines: operations.VirtualMachines; + privateEndpointConnections: operations.PrivateEndpointConnections; + privateLinkResources: operations.PrivateLinkResources; /** * Initializes a new instance of the HDInsightManagementClient class. @@ -38,11 +41,7 @@ class HDInsightManagementClient extends HDInsightManagementClientContext { * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials | TokenCredential, - subscriptionId: string, - options?: Models.HDInsightManagementClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.HDInsightManagementClientOptions) { super(credentials, subscriptionId, options); this.clusters = new operations.Clusters(this); this.applications = new operations.Applications(this); @@ -53,6 +52,8 @@ class HDInsightManagementClient extends HDInsightManagementClientContext { this.scriptExecutionHistory = new operations.ScriptExecutionHistory(this); this.operations = new operations.Operations(this); this.virtualMachines = new operations.VirtualMachines(this); + this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); + this.privateLinkResources = new operations.PrivateLinkResources(this); } } diff --git a/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClientContext.ts b/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClientContext.ts index 5f06a1a90317..a919f5b564a7 100644 --- a/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClientContext.ts +++ b/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClientContext.ts @@ -32,16 +32,12 @@ export class HDInsightManagementClientContext extends msRestAzure.AzureServiceCl * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor( - credentials: msRest.ServiceClientCredentials | TokenCredential, - subscriptionId: string, - options?: Models.HDInsightManagementClientOptions - ) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.HDInsightManagementClientOptions) { if (credentials == undefined) { - throw new Error("'credentials' cannot be null."); + throw new Error('\'credentials\' cannot be null.'); } if (subscriptionId == undefined) { - throw new Error("'subscriptionId' cannot be null."); + throw new Error('\'subscriptionId\' cannot be null.'); } if (!options) { @@ -54,8 +50,8 @@ export class HDInsightManagementClientContext extends msRestAzure.AzureServiceCl super(credentials, options); - this.apiVersion = "2018-06-01-preview"; - this.acceptLanguage = "en-US"; + this.apiVersion = '2021-06-01'; + this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; this.requestContentType = "application/json; charset=utf-8"; @@ -65,10 +61,7 @@ export class HDInsightManagementClientContext extends msRestAzure.AzureServiceCl if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if ( - options.longRunningOperationRetryTimeout !== null && - options.longRunningOperationRetryTimeout !== undefined - ) { + if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/hdinsight/arm-hdinsight/src/models/applicationsMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/applicationsMappers.ts index b8cf80364cb7..fd5176addb0d 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/applicationsMappers.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/applicationsMappers.ts @@ -18,13 +18,13 @@ export { AutoscaleRecurrence, AutoscaleSchedule, AutoscaleTimeAndCapacity, + AzureEntityResource, BaseResource, ClientGroupInfo, Cluster, ClusterDefinition, ClusterGetProperties, ClusterIdentity, - ClusterIdentityUserAssignedIdentitiesValue, ComputeIsolationProperties, ComputeProfile, ConnectivityEndpoint, @@ -35,13 +35,20 @@ export { Errors, ExcludedServicesConfig, HardwareProfile, + IPConfiguration, KafkaRestProperties, LinuxOperatingSystemProfile, NetworkProperties, OsProfile, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkConfiguration, + PrivateLinkResource, + PrivateLinkServiceConnectionState, ProxyResource, QuotaInfo, Resource, + ResourceId, Role, RuntimeScriptAction, RuntimeScriptActionDetail, @@ -52,6 +59,8 @@ export { SshPublicKey, StorageAccount, StorageProfile, + SystemData, TrackedResource, + UserAssignedIdentity, VirtualNetworkProfile } from "../models/mappers"; diff --git a/sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts index b4015291b184..14c6eb547314 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts @@ -18,6 +18,7 @@ export { AutoscaleRecurrence, AutoscaleSchedule, AutoscaleTimeAndCapacity, + AzureEntityResource, BaseResource, ClientGroupInfo, Cluster, @@ -28,7 +29,6 @@ export { ClusterDiskEncryptionParameters, ClusterGetProperties, ClusterIdentity, - ClusterIdentityUserAssignedIdentitiesValue, ClusterListResult, ClusterPatchParameters, ClusterResizeParameters, @@ -44,13 +44,20 @@ export { ExecuteScriptActionParameters, GatewaySettings, HardwareProfile, + IPConfiguration, KafkaRestProperties, LinuxOperatingSystemProfile, NetworkProperties, OsProfile, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkConfiguration, + PrivateLinkResource, + PrivateLinkServiceConnectionState, ProxyResource, QuotaInfo, Resource, + ResourceId, Role, RuntimeScriptAction, RuntimeScriptActionDetail, @@ -61,8 +68,10 @@ export { SshPublicKey, StorageAccount, StorageProfile, + SystemData, TrackedResource, UpdateClusterIdentityCertificateParameters, UpdateGatewaySettingsParameters, + UserAssignedIdentity, VirtualNetworkProfile } from "../models/mappers"; diff --git a/sdk/hdinsight/arm-hdinsight/src/models/index.ts b/sdk/hdinsight/arm-hdinsight/src/models/index.ts index 673c4d03ebfb..d8231eb93e4a 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/index.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/index.ts @@ -498,6 +498,93 @@ export interface EncryptionInTransitProperties { isEncryptionInTransitEnabled?: boolean; } +/** + * The azure resource id. + */ +export interface ResourceId { + /** + * The azure resource id. + */ + id?: string; +} + +/** + * The ip configurations for the private link service. + */ +export interface IPConfiguration { + /** + * The private link IP configuration id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of private link IP configuration. + */ + name: string; + /** + * The type of the private link IP configuration. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The private link configuration provisioning state, which only appears in the response. + * Possible values include: 'InProgress', 'Failed', 'Succeeded', 'Canceled', 'Deleting' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: PrivateLinkConfigurationProvisioningState; + /** + * Indicates whether this IP configuration is primary for the corresponding NIC. + */ + primary?: boolean; + /** + * The IP address. + */ + privateIPAddress?: string; + /** + * The method that private IP address is allocated. Possible values include: 'dynamic', 'static' + */ + privateIPAllocationMethod?: PrivateIPAllocationMethod; + /** + * The subnet resource id. + */ + subnet?: ResourceId; +} + +/** + * The private link configuration. + */ +export interface PrivateLinkConfiguration { + /** + * The private link configuration id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of private link configuration. + */ + name: string; + /** + * The type of the private link configuration. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The HDInsight private linkable sub-resource name to apply the private link configuration to. + * For example, 'headnode', 'gateway', 'edgenode'. + */ + groupId: string; + /** + * The private link configuration provisioning state, which only appears in the response. + * Possible values include: 'InProgress', 'Failed', 'Succeeded', 'Canceled', 'Deleting' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: PrivateLinkConfigurationProvisioningState; + /** + * The IP configurations for the private link service. + */ + ipConfigurations: IPConfiguration[]; +} + /** * The cluster create parameters. */ @@ -554,12 +641,16 @@ export interface ClusterCreateProperties { * The compute isolation properties. */ computeIsolationProperties?: ComputeIsolationProperties; + /** + * The private link configurations. + */ + privateLinkConfigurations?: PrivateLinkConfiguration[]; } /** - * An interface representing ClusterIdentityUserAssignedIdentitiesValue. + * The User Assigned Identity */ -export interface ClusterIdentityUserAssignedIdentitiesValue { +export interface UserAssignedIdentity { /** * The principal id of user assigned identity. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -603,7 +694,7 @@ export interface ClusterIdentity { * references will be ARM resource ids in the form: * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ - userAssignedIdentities?: { [propertyName: string]: ClusterIdentityUserAssignedIdentitiesValue }; + userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; } /** @@ -618,6 +709,10 @@ export interface ClusterCreateParametersExtended { * The resource tags. */ tags?: { [propertyName: string]: string }; + /** + * The availability zones. + */ + zones?: string[]; /** * The cluster create parameters. */ @@ -688,6 +783,121 @@ export interface ConnectivityEndpoint { privateIPAddress?: string; } +/** + * The private endpoint. + */ +export interface PrivateEndpoint { + /** + * The private endpoint id. + */ + id?: string; +} + +/** + * The private link service connection state. + */ +export interface PrivateLinkServiceConnectionState { + /** + * The concrete private link service connection. Possible values include: 'Approved', 'Rejected', + * 'Pending', 'Removed' + */ + status: PrivateLinkServiceConnectionStatus; + /** + * The optional description of the status. + */ + description?: string; + /** + * Whether there is further actions. + */ + actionsRequired?: string; +} + +/** + * Metadata pertaining to creation and last modification of the resource. + */ +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; +} + +/** + * 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 - + * /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 private endpoint connection. + */ +export interface PrivateEndpointConnection extends Resource { + /** + * The private endpoint of the private endpoint connection + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateEndpoint?: PrivateEndpoint; + /** + * The private link service connection state. + */ + privateLinkServiceConnectionState: PrivateLinkServiceConnectionState; + /** + * The link identifier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly linkIdentifier?: string; + /** + * The provisioning state, which only appears in the response. Possible values include: + * 'InProgress', 'Updating', 'Failed', 'Succeeded', 'Canceled', 'Deleting' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: PrivateEndpointConnectionProvisioningState; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + /** * The properties of cluster. */ @@ -781,41 +991,31 @@ export interface ClusterGetProperties { * The compute isolation properties. */ computeIsolationProperties?: ComputeIsolationProperties; -} - -/** - * The core properties of ARM resources - */ -export interface Resource extends BaseResource { /** - * Fully qualified resource Id for the resource. - * **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.** + * The private link configurations. */ - readonly name?: string; + privateLinkConfigurations?: PrivateLinkConfiguration[]; /** - * The type of the resource. + * The list of private endpoint connections. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly type?: string; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; } /** - * 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 { - /** - * The Azure Region where the resource lives - */ - location?: string; /** * Resource tags. */ tags?: { [propertyName: string]: string }; + /** + * The geo-location where the resource lives + */ + location: string; } /** @@ -826,6 +1026,10 @@ export interface Cluster extends TrackedResource { * The ETag for the resource */ etag?: string; + /** + * The availability zones. + */ + zones?: string[]; /** * The properties of the cluster. */ @@ -834,6 +1038,10 @@ export interface Cluster extends TrackedResource { * The identity of the cluster, if configured. */ identity?: ClusterIdentity; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** @@ -949,22 +1157,6 @@ export interface RuntimeScriptActionDetail extends RuntimeScriptAction { readonly debugInformation?: string; } -/** - * The list runtime script action detail response. - */ -export interface ClusterListRuntimeScriptActionDetailResult { - /** - * The list of persisted script action details for the cluster. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly value?: RuntimeScriptActionDetail[]; - /** - * The link (url) to the next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; -} - /** * The Resize Cluster request parameters. */ @@ -1066,10 +1258,12 @@ export interface UpdateClusterIdentityCertificateParameters { } /** - * The resource model definition for a ARM proxy resource. It will have everything other than - * required location and tags + * 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 {} +export interface ProxyResource extends Resource { +} /** * Describes the format of Error response. @@ -1195,6 +1389,10 @@ export interface ApplicationProperties { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly marketplaceIdentifier?: string; + /** + * The private link configurations. + */ + privateLinkConfigurations?: PrivateLinkConfiguration[]; } /** @@ -1213,6 +1411,10 @@ export interface Application extends ProxyResource { * The properties of the application. */ properties?: ApplicationProperties; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** @@ -1257,60 +1459,6 @@ export interface RegionsCapability { available?: string[]; } -/** - * The virtual machine sizes capability. - */ -export interface VmSizesCapability { - /** - * The list of virtual machine size capabilities. - */ - available?: string[]; -} - -/** - * The virtual machine type compatibility filter. - */ -export interface VmSizeCompatibilityFilter { - /** - * The mode for the filter. - */ - filterMode?: string; - /** - * The list of regions. - */ - regions?: string[]; - /** - * The list of cluster types available. - */ - clusterFlavors?: string[]; - /** - * The list of node types. - */ - nodeTypes?: string[]; - /** - * The list of cluster versions. - */ - clusterVersions?: string[]; - /** - * The list of OS types. - */ - osType?: string[]; - /** - * The list of virtual machine sizes. - */ - vMSizes?: string[]; - /** - * Whether apply for ESP cluster. 'true' means only for ESP, 'false' means only for non-ESP, null - * or empty string or others mean for both. - */ - eSPApplied?: string; - /** - * Whether support compute isolation. 'true' means only for ComputeIsolationEnabled, 'false' - * means only for regular cluster. - */ - computeIsolationSupported?: string; -} - /** * The regional quota capacity. */ @@ -1359,14 +1507,6 @@ export interface CapabilitiesResult { * The virtual machine size compatibility features. */ regions?: { [propertyName: string]: RegionsCapability }; - /** - * The virtual machine sizes. - */ - vmsizes?: { [propertyName: string]: VmSizesCapability }; - /** - * The virtual machine size compatibility filters. - */ - vmsizeFilters?: VmSizeCompatibilityFilter[]; /** * The capability features. */ @@ -1460,6 +1600,16 @@ export interface VmSizeCompatibilityFilterV2 { * The list of virtual machine sizes to include or exclude. */ vmSizes?: string[]; + /** + * Whether apply for ESP cluster. 'true' means only for ESP, 'false' means only for non-ESP, null + * or empty string or others mean for both. + */ + espApplied?: string; + /** + * Whether support compute isolation. 'true' means only for ComputeIsolationEnabled, 'false' + * means only for regular cluster. + */ + computeIsolationSupported?: string; } /** @@ -2014,7 +2164,7 @@ export interface Operation { */ name?: string; /** - * The object that represents the operation. + * The display of operation. */ display?: OperationDisplay; /** @@ -2041,6 +2191,48 @@ export interface HostInfo { effectiveDiskEncryptionKeyUrl?: string; } +/** + * The resource model definition for an Azure Resource Manager resource with an etag. + * @summary Entity Resource + */ +export interface AzureEntityResource extends Resource { + /** + * Resource Etag. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; +} + +/** + * A private link resource + */ +export interface PrivateLinkResource extends Resource { + /** + * 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[]; + /** + * The private link resource Private link DNS zone name. + */ + requiredZoneNames?: string[]; +} + +/** + * A list of private link resources + */ +export interface PrivateLinkResourceListResult { + /** + * Array of private link resources + */ + value?: PrivateLinkResource[]; +} + /** * An interface representing HDInsightManagementClientOptions. */ @@ -2114,13 +2306,26 @@ export interface OperationListResult extends Array { nextLink?: string; } +/** + * @interface + * The list private endpoint connections response. + * @extends Array + */ +export interface PrivateEndpointConnectionListResult extends Array { + /** + * The link (url) to the 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 DirectoryType. * Possible values include: 'ActiveDirectory' * @readonly * @enum {string} */ -export type DirectoryType = "ActiveDirectory"; +export type DirectoryType = 'ActiveDirectory'; /** * Defines values for DaysOfWeek. @@ -2129,14 +2334,7 @@ export type DirectoryType = "ActiveDirectory"; * @readonly * @enum {string} */ -export type DaysOfWeek = - | "Monday" - | "Tuesday" - | "Wednesday" - | "Thursday" - | "Friday" - | "Saturday" - | "Sunday"; +export type DaysOfWeek = 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday' | 'Sunday'; /** * Defines values for ResourceProviderConnection. @@ -2144,7 +2342,7 @@ export type DaysOfWeek = * @readonly * @enum {string} */ -export type ResourceProviderConnection = "Inbound" | "Outbound"; +export type ResourceProviderConnection = 'Inbound' | 'Outbound'; /** * Defines values for PrivateLink. @@ -2152,7 +2350,7 @@ export type ResourceProviderConnection = "Inbound" | "Outbound"; * @readonly * @enum {string} */ -export type PrivateLink = "Disabled" | "Enabled"; +export type PrivateLink = 'Disabled' | 'Enabled'; /** * Defines values for OSType. @@ -2160,7 +2358,7 @@ export type PrivateLink = "Disabled" | "Enabled"; * @readonly * @enum {string} */ -export type OSType = "Windows" | "Linux"; +export type OSType = 'Windows' | 'Linux'; /** * Defines values for Tier. @@ -2168,7 +2366,7 @@ export type OSType = "Windows" | "Linux"; * @readonly * @enum {string} */ -export type Tier = "Standard" | "Premium"; +export type Tier = 'Standard' | 'Premium'; /** * Defines values for JsonWebKeyEncryptionAlgorithm. @@ -2176,7 +2374,23 @@ export type Tier = "Standard" | "Premium"; * @readonly * @enum {string} */ -export type JsonWebKeyEncryptionAlgorithm = "RSA-OAEP" | "RSA-OAEP-256" | "RSA1_5"; +export type JsonWebKeyEncryptionAlgorithm = 'RSA-OAEP' | 'RSA-OAEP-256' | 'RSA1_5'; + +/** + * Defines values for PrivateLinkConfigurationProvisioningState. + * Possible values include: 'InProgress', 'Failed', 'Succeeded', 'Canceled', 'Deleting' + * @readonly + * @enum {string} + */ +export type PrivateLinkConfigurationProvisioningState = 'InProgress' | 'Failed' | 'Succeeded' | 'Canceled' | 'Deleting'; + +/** + * Defines values for PrivateIPAllocationMethod. + * Possible values include: 'dynamic', 'static' + * @readonly + * @enum {string} + */ +export type PrivateIPAllocationMethod = 'dynamic' | 'static'; /** * Defines values for ResourceIdentityType. @@ -2185,11 +2399,7 @@ export type JsonWebKeyEncryptionAlgorithm = "RSA-OAEP" | "RSA-OAEP-256" | "RSA1_ * @readonly * @enum {string} */ -export type ResourceIdentityType = - | "SystemAssigned" - | "UserAssigned" - | "SystemAssigned, UserAssigned" - | "None"; +export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned' | 'None'; /** * Defines values for HDInsightClusterProvisioningState. @@ -2197,12 +2407,31 @@ export type ResourceIdentityType = * @readonly * @enum {string} */ -export type HDInsightClusterProvisioningState = - | "InProgress" - | "Failed" - | "Succeeded" - | "Canceled" - | "Deleting"; +export type HDInsightClusterProvisioningState = 'InProgress' | 'Failed' | 'Succeeded' | 'Canceled' | 'Deleting'; + +/** + * Defines values for PrivateLinkServiceConnectionStatus. + * Possible values include: 'Approved', 'Rejected', 'Pending', 'Removed' + * @readonly + * @enum {string} + */ +export type PrivateLinkServiceConnectionStatus = 'Approved' | 'Rejected' | 'Pending' | 'Removed'; + +/** + * Defines values for PrivateEndpointConnectionProvisioningState. + * Possible values include: 'InProgress', 'Updating', 'Failed', 'Succeeded', 'Canceled', 'Deleting' + * @readonly + * @enum {string} + */ +export type PrivateEndpointConnectionProvisioningState = 'InProgress' | 'Updating' | 'Failed' | 'Succeeded' | 'Canceled' | 'Deleting'; + +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; /** * Defines values for AsyncOperationState. @@ -2210,7 +2439,7 @@ export type HDInsightClusterProvisioningState = * @readonly * @enum {string} */ -export type AsyncOperationState = "InProgress" | "Succeeded" | "Failed"; +export type AsyncOperationState = 'InProgress' | 'Succeeded' | 'Failed'; /** * Defines values for FilterMode. @@ -2218,7 +2447,7 @@ export type AsyncOperationState = "InProgress" | "Succeeded" | "Failed"; * @readonly * @enum {string} */ -export type FilterMode = "Exclude" | "Include" | "Recommend" | "Default"; +export type FilterMode = 'Exclude' | 'Include' | 'Recommend' | 'Default'; /** * Contains response data for the create operation. @@ -2228,16 +2457,16 @@ export type ClustersCreateResponse = Cluster & { * 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: Cluster; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Cluster; + }; }; /** @@ -2248,16 +2477,16 @@ export type ClustersUpdateResponse = Cluster & { * 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: Cluster; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Cluster; + }; }; /** @@ -2268,16 +2497,16 @@ export type ClustersGetResponse = Cluster & { * 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: Cluster; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Cluster; + }; }; /** @@ -2288,16 +2517,16 @@ export type ClustersListByResourceGroupResponse = ClusterListResult & { * 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: ClusterListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterListResult; + }; }; /** @@ -2308,16 +2537,16 @@ export type ClustersListResponse = ClusterListResult & { * 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: ClusterListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterListResult; + }; }; /** @@ -2328,16 +2557,16 @@ export type ClustersGetGatewaySettingsResponse = GatewaySettings & { * 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: GatewaySettings; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: GatewaySettings; + }; }; /** @@ -2348,16 +2577,16 @@ export type ClustersGetAzureAsyncOperationStatusResponse = AsyncOperationResult * 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: AsyncOperationResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AsyncOperationResult; + }; }; /** @@ -2368,16 +2597,16 @@ export type ClustersBeginCreateResponse = Cluster & { * 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: Cluster; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Cluster; + }; }; /** @@ -2388,16 +2617,16 @@ export type ClustersListByResourceGroupNextResponse = ClusterListResult & { * 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: ClusterListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterListResult; + }; }; /** @@ -2408,16 +2637,16 @@ export type ClustersListNextResponse = ClusterListResult & { * 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: ClusterListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterListResult; + }; }; /** @@ -2428,16 +2657,16 @@ export type ApplicationsListByClusterResponse = ApplicationListResult & { * 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: ApplicationListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationListResult; + }; }; /** @@ -2448,16 +2677,16 @@ export type ApplicationsGetResponse = Application & { * 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: Application; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Application; + }; }; /** @@ -2468,16 +2697,16 @@ export type ApplicationsCreateResponse = Application & { * 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: Application; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Application; + }; }; /** @@ -2488,16 +2717,16 @@ export type ApplicationsGetAzureAsyncOperationStatusResponse = AsyncOperationRes * 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: AsyncOperationResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AsyncOperationResult; + }; }; /** @@ -2508,16 +2737,16 @@ export type ApplicationsBeginCreateResponse = Application & { * 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: Application; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Application; + }; }; /** @@ -2528,16 +2757,16 @@ export type ApplicationsListByClusterNextResponse = ApplicationListResult & { * 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: ApplicationListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationListResult; + }; }; /** @@ -2548,16 +2777,16 @@ export type LocationsGetCapabilitiesResponse = CapabilitiesResult & { * 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: CapabilitiesResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CapabilitiesResult; + }; }; /** @@ -2568,16 +2797,16 @@ export type LocationsListUsagesResponse = UsagesListResult & { * 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: UsagesListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: UsagesListResult; + }; }; /** @@ -2588,16 +2817,16 @@ export type LocationsListBillingSpecsResponse = BillingResponseListResult & { * 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: BillingResponseListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: BillingResponseListResult; + }; }; /** @@ -2608,16 +2837,16 @@ export type LocationsGetAzureAsyncOperationStatusResponse = AsyncOperationResult * 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: AsyncOperationResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AsyncOperationResult; + }; }; /** @@ -2628,16 +2857,16 @@ export type LocationsCheckNameAvailabilityResponse = NameAvailabilityCheckResult * 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: NameAvailabilityCheckResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NameAvailabilityCheckResult; + }; }; /** @@ -2648,16 +2877,16 @@ export type LocationsValidateClusterCreateRequestResponse = ClusterCreateValidat * 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: ClusterCreateValidationResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterCreateValidationResult; + }; }; /** @@ -2668,16 +2897,16 @@ export type ConfigurationsListResponse = ClusterConfigurations & { * 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: ClusterConfigurations; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterConfigurations; + }; }; /** @@ -2693,16 +2922,16 @@ export type ConfigurationsGetResponse = { * 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: { [propertyName: string]: string }; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: { [propertyName: string]: string }; + }; }; /** @@ -2713,16 +2942,16 @@ export type ExtensionsGetMonitoringStatusResponse = ClusterMonitoringResponse & * 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: ClusterMonitoringResponse; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterMonitoringResponse; + }; }; /** @@ -2733,16 +2962,16 @@ export type ExtensionsGetAzureMonitorStatusResponse = AzureMonitorResponse & { * 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: AzureMonitorResponse; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AzureMonitorResponse; + }; }; /** @@ -2753,16 +2982,16 @@ export type ExtensionsGetResponse = ClusterMonitoringResponse & { * 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: ClusterMonitoringResponse; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClusterMonitoringResponse; + }; }; /** @@ -2773,16 +3002,16 @@ export type ExtensionsGetAzureAsyncOperationStatusResponse = AsyncOperationResul * 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: AsyncOperationResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AsyncOperationResult; + }; }; /** @@ -2793,16 +3022,16 @@ export type ScriptActionsListByClusterResponse = ScriptActionsList & { * 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: ScriptActionsList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ScriptActionsList; + }; }; /** @@ -2813,16 +3042,16 @@ export type ScriptActionsGetExecutionDetailResponse = RuntimeScriptActionDetail * 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: RuntimeScriptActionDetail; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: RuntimeScriptActionDetail; + }; }; /** @@ -2833,16 +3062,16 @@ export type ScriptActionsGetExecutionAsyncOperationStatusResponse = AsyncOperati * 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: AsyncOperationResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AsyncOperationResult; + }; }; /** @@ -2853,16 +3082,16 @@ export type ScriptActionsListByClusterNextResponse = ScriptActionsList & { * 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: ScriptActionsList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ScriptActionsList; + }; }; /** @@ -2873,16 +3102,16 @@ export type ScriptExecutionHistoryListByClusterResponse = ScriptActionExecutionH * 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: ScriptActionExecutionHistoryList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ScriptActionExecutionHistoryList; + }; }; /** @@ -2893,16 +3122,16 @@ export type ScriptExecutionHistoryListByClusterNextResponse = ScriptActionExecut * 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: ScriptActionExecutionHistoryList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ScriptActionExecutionHistoryList; + }; }; /** @@ -2913,16 +3142,16 @@ export type OperationsListResponse = OperationListResult & { * 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: OperationListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; }; /** @@ -2933,16 +3162,16 @@ export type OperationsListNextResponse = OperationListResult & { * 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: OperationListResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; }; /** @@ -2953,16 +3182,16 @@ export type VirtualMachinesListHostsResponse = Array & { * 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: HostInfo[]; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: HostInfo[]; + }; }; /** @@ -2973,14 +3202,154 @@ export type VirtualMachinesGetAsyncOperationStatusResponse = AsyncOperationResul * 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: AsyncOperationResult; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AsyncOperationResult; + }; +}; + +/** + * Contains response data for the listByCluster operation. + */ +export type PrivateEndpointConnectionsListByClusterResponse = PrivateEndpointConnectionListResult & { + /** + * 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: PrivateEndpointConnectionListResult; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { + /** + * 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: PrivateEndpointConnection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { + /** + * 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: PrivateEndpointConnection; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { + /** + * 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: PrivateEndpointConnection; + }; +}; + +/** + * Contains response data for the listByClusterNext operation. + */ +export type PrivateEndpointConnectionsListByClusterNextResponse = PrivateEndpointConnectionListResult & { + /** + * 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: PrivateEndpointConnectionListResult; + }; +}; + +/** + * Contains response data for the listByCluster operation. + */ +export type PrivateLinkResourcesListByClusterResponse = PrivateLinkResourceListResult & { + /** + * 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: PrivateLinkResourceListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { + /** + * 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: PrivateLinkResource; + }; }; diff --git a/sdk/hdinsight/arm-hdinsight/src/models/locationsMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/locationsMappers.ts index 77643ae91c70..12ca09f9a63e 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/locationsMappers.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/locationsMappers.ts @@ -25,7 +25,6 @@ export { ClusterCreateValidationResult, ClusterDefinition, ClusterIdentity, - ClusterIdentityUserAssignedIdentitiesValue, ComputeIsolationProperties, ComputeProfile, DataDisksGroups, @@ -35,6 +34,7 @@ export { ErrorResponse, Errors, HardwareProfile, + IPConfiguration, KafkaRestProperties, LinuxOperatingSystemProfile, LocalizedName, @@ -42,9 +42,11 @@ export { NameAvailabilityCheckResult, NetworkProperties, OsProfile, + PrivateLinkConfiguration, QuotaCapability, RegionalQuotaCapability, RegionsCapability, + ResourceId, Role, ScriptAction, SecurityProfile, @@ -54,12 +56,11 @@ export { StorageProfile, Usage, UsagesListResult, + UserAssignedIdentity, ValidationErrorInfo, VersionsCapability, VersionSpec, VirtualNetworkProfile, - VmSizeCompatibilityFilter, VmSizeCompatibilityFilterV2, - VmSizeProperty, - VmSizesCapability + VmSizeProperty } from "../models/mappers"; diff --git a/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts index d906a0bb0f15..02a641c5535a 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts @@ -110,8 +110,7 @@ export const SecurityProfile: msRest.CompositeMapper = { directoryType: { serializedName: "directoryType", type: { - name: "Enum", - allowedValues: ["ActiveDirectory"] + name: "String" } }, domain: { @@ -216,16 +215,7 @@ export const AutoscaleSchedule: msRest.CompositeMapper = { name: "Sequence", element: { type: { - name: "Enum", - allowedValues: [ - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday", - "Sunday" - ] + name: "String" } } } @@ -847,6 +837,143 @@ export const EncryptionInTransitProperties: msRest.CompositeMapper = { } }; +export const ResourceId: msRest.CompositeMapper = { + serializedName: "ResourceId", + type: { + name: "Composite", + className: "ResourceId", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const IPConfiguration: msRest.CompositeMapper = { + serializedName: "IPConfiguration", + type: { + name: "Composite", + className: "IPConfiguration", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean" + } + }, + privateIPAddress: { + serializedName: "properties.privateIPAddress", + type: { + name: "String" + } + }, + privateIPAllocationMethod: { + serializedName: "properties.privateIPAllocationMethod", + type: { + name: "String" + } + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "ResourceId" + } + } + } + } +}; + +export const PrivateLinkConfiguration: msRest.CompositeMapper = { + serializedName: "PrivateLinkConfiguration", + type: { + name: "Composite", + className: "PrivateLinkConfiguration", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + groupId: { + required: true, + serializedName: "properties.groupId", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + ipConfigurations: { + required: true, + serializedName: "properties.ipConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IPConfiguration" + } + } + } + } + } + } +}; + export const ClusterCreateProperties: msRest.CompositeMapper = { serializedName: "ClusterCreateProperties", type: { @@ -862,16 +989,14 @@ export const ClusterCreateProperties: msRest.CompositeMapper = { osType: { serializedName: "osType", type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] + name: "String" } }, tier: { serializedName: "tier", - defaultValue: "Standard", + defaultValue: 'Standard', type: { - name: "Enum", - allowedValues: ["Standard", "Premium"] + name: "String" } }, clusterDefinition: { @@ -942,16 +1067,28 @@ export const ClusterCreateProperties: msRest.CompositeMapper = { name: "Composite", className: "ComputeIsolationProperties" } + }, + privateLinkConfigurations: { + serializedName: "privateLinkConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkConfiguration" + } + } + } } } } }; -export const ClusterIdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { - serializedName: "ClusterIdentity_userAssignedIdentitiesValue", +export const UserAssignedIdentity: msRest.CompositeMapper = { + serializedName: "UserAssignedIdentity", type: { name: "Composite", - className: "ClusterIdentityUserAssignedIdentitiesValue", + className: "UserAssignedIdentity", modelProperties: { principalId: { readOnly: true, @@ -1000,8 +1137,7 @@ export const ClusterIdentity: msRest.CompositeMapper = { type: { serializedName: "type", type: { - name: "Enum", - allowedValues: ["SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", "None"] + name: "String" } }, userAssignedIdentities: { @@ -1011,7 +1147,7 @@ export const ClusterIdentity: msRest.CompositeMapper = { value: { type: { name: "Composite", - className: "ClusterIdentityUserAssignedIdentitiesValue" + className: "UserAssignedIdentity" } } } @@ -1043,6 +1179,17 @@ export const ClusterCreateParametersExtended: msRest.CompositeMapper = { } } }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, properties: { serializedName: "properties", type: { @@ -1161,6 +1308,177 @@ export const ConnectivityEndpoint: msRest.CompositeMapper = { } }; +export const PrivateEndpoint: msRest.CompositeMapper = { + serializedName: "PrivateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { + serializedName: "PrivateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + modelProperties: { + status: { + required: true, + serializedName: "status", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + actionsRequired: { + serializedName: "actionsRequired", + type: { + name: "String" + } + } + } + } +}; + +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + 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" + } + } + } + } +}; + +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...Resource.type.modelProperties, + privateEndpoint: { + readOnly: true, + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint" + } + }, + privateLinkServiceConnectionState: { + required: true, + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState" + } + }, + linkIdentifier: { + readOnly: true, + serializedName: "properties.linkIdentifier", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + export const ClusterGetProperties: msRest.CompositeMapper = { serializedName: "ClusterGetProperties", type: { @@ -1182,15 +1500,13 @@ export const ClusterGetProperties: msRest.CompositeMapper = { osType: { serializedName: "osType", type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] + name: "String" } }, tier: { serializedName: "tier", type: { - name: "Enum", - allowedValues: ["Standard", "Premium"] + name: "String" } }, clusterId: { @@ -1231,8 +1547,7 @@ export const ClusterGetProperties: msRest.CompositeMapper = { provisioningState: { serializedName: "provisioningState", type: { - name: "Enum", - allowedValues: ["InProgress", "Failed", "Succeeded", "Canceled", "Deleting"] + name: "String" } }, createdDate: { @@ -1325,36 +1640,30 @@ export const ClusterGetProperties: msRest.CompositeMapper = { name: "Composite", className: "ComputeIsolationProperties" } - } - } - } -}; - -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } }, - name: { - readOnly: true, - serializedName: "name", + privateLinkConfigurations: { + serializedName: "privateLinkConfigurations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkConfiguration" + } + } } }, - type: { + privateEndpointConnections: { readOnly: true, - serializedName: "type", + serializedName: "privateEndpointConnections", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } } } } @@ -1368,12 +1677,6 @@ export const TrackedResource: msRest.CompositeMapper = { className: "TrackedResource", modelProperties: { ...Resource.type.modelProperties, - location: { - serializedName: "location", - type: { - name: "String" - } - }, tags: { serializedName: "tags", type: { @@ -1384,6 +1687,13 @@ export const TrackedResource: msRest.CompositeMapper = { } } } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } } } } @@ -1402,6 +1712,17 @@ export const Cluster: msRest.CompositeMapper = { name: "String" } }, + zones: { + serializedName: "zones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, properties: { serializedName: "properties", type: { @@ -1415,6 +1736,14 @@ export const Cluster: msRest.CompositeMapper = { name: "Composite", className: "ClusterIdentity" } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } @@ -1588,57 +1917,27 @@ export const RuntimeScriptActionDetail: msRest.CompositeMapper = { }, operation: { readOnly: true, - serializedName: "operation", - type: { - name: "String" - } - }, - executionSummary: { - readOnly: true, - serializedName: "executionSummary", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ScriptActionExecutionSummary" - } - } - } - }, - debugInformation: { - readOnly: true, - serializedName: "debugInformation", + serializedName: "operation", type: { name: "String" } - } - } - } -}; - -export const ClusterListRuntimeScriptActionDetailResult: msRest.CompositeMapper = { - serializedName: "ClusterListRuntimeScriptActionDetailResult", - type: { - name: "Composite", - className: "ClusterListRuntimeScriptActionDetailResult", - modelProperties: { - value: { + }, + executionSummary: { readOnly: true, - serializedName: "value", + serializedName: "executionSummary", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RuntimeScriptActionDetail" + className: "ScriptActionExecutionSummary" } } } }, - nextLink: { + debugInformation: { readOnly: true, - serializedName: "nextLink", + serializedName: "debugInformation", type: { name: "String" } @@ -1760,8 +2059,7 @@ export const AsyncOperationResult: msRest.CompositeMapper = { status: { serializedName: "status", type: { - name: "Enum", - allowedValues: ["InProgress", "Succeeded", "Failed"] + name: "String" } }, error: { @@ -2035,6 +2333,18 @@ export const ApplicationProperties: msRest.CompositeMapper = { type: { name: "String" } + }, + privateLinkConfigurations: { + serializedName: "privateLinkConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkConfiguration" + } + } + } } } } @@ -2070,6 +2380,14 @@ export const Application: msRest.CompositeMapper = { name: "Composite", className: "ApplicationProperties" } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } @@ -2157,121 +2475,6 @@ export const RegionsCapability: msRest.CompositeMapper = { } }; -export const VmSizesCapability: msRest.CompositeMapper = { - serializedName: "VmSizesCapability", - type: { - name: "Composite", - className: "VmSizesCapability", - modelProperties: { - available: { - serializedName: "available", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const VmSizeCompatibilityFilter: msRest.CompositeMapper = { - serializedName: "VmSizeCompatibilityFilter", - type: { - name: "Composite", - className: "VmSizeCompatibilityFilter", - modelProperties: { - filterMode: { - serializedName: "FilterMode", - type: { - name: "String" - } - }, - regions: { - serializedName: "Regions", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - clusterFlavors: { - serializedName: "ClusterFlavors", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - nodeTypes: { - serializedName: "NodeTypes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - clusterVersions: { - serializedName: "ClusterVersions", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - osType: { - serializedName: "OsType", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - vMSizes: { - serializedName: "VMSizes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - eSPApplied: { - serializedName: "ESPApplied", - type: { - name: "String" - } - }, - computeIsolationSupported: { - serializedName: "ComputeIsolationSupported", - type: { - name: "String" - } - } - } - } -}; - export const RegionalQuotaCapability: msRest.CompositeMapper = { serializedName: "RegionalQuotaCapability", type: { @@ -2279,19 +2482,19 @@ export const RegionalQuotaCapability: msRest.CompositeMapper = { className: "RegionalQuotaCapability", modelProperties: { regionName: { - serializedName: "region_name", + serializedName: "regionName", type: { name: "String" } }, coresUsed: { - serializedName: "cores_used", + serializedName: "coresUsed", type: { name: "Number" } }, coresAvailable: { - serializedName: "cores_available", + serializedName: "coresAvailable", type: { name: "Number" } @@ -2307,13 +2510,13 @@ export const QuotaCapability: msRest.CompositeMapper = { className: "QuotaCapability", modelProperties: { coresUsed: { - serializedName: "cores_used", + serializedName: "coresUsed", type: { name: "Number" } }, maxCoresAllowed: { - serializedName: "max_cores_allowed", + serializedName: "maxCoresAllowed", type: { name: "Number" } @@ -2364,30 +2567,6 @@ export const CapabilitiesResult: msRest.CompositeMapper = { } } }, - vmsizes: { - serializedName: "vmsizes", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "VmSizesCapability" - } - } - } - }, - vmsizeFilters: { - serializedName: "vmsize_filters", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VmSizeCompatibilityFilter" - } - } - } - }, features: { serializedName: "features", type: { @@ -2551,8 +2730,7 @@ export const VmSizeCompatibilityFilterV2: msRest.CompositeMapper = { name: "Sequence", element: { type: { - name: "Enum", - allowedValues: ["Windows", "Linux"] + name: "String" } } } @@ -2567,6 +2745,18 @@ export const VmSizeCompatibilityFilterV2: msRest.CompositeMapper = { } } } + }, + espApplied: { + serializedName: "espApplied", + type: { + name: "String" + } + }, + computeIsolationSupported: { + serializedName: "computeIsolationSupported", + type: { + name: "String" + } } } } @@ -2691,8 +2881,7 @@ export const DiskBillingMeters: msRest.CompositeMapper = { tier: { serializedName: "tier", type: { - name: "Enum", - allowedValues: ["Standard", "Premium"] + name: "String" } } } @@ -3289,7 +3478,7 @@ export const ScriptActionPersistedGetResponseSpec: msRest.CompositeMapper = { }; export const OperationDisplay: msRest.CompositeMapper = { - serializedName: "Operation_display", + serializedName: "OperationDisplay", type: { name: "Composite", className: "OperationDisplay", @@ -3581,6 +3770,87 @@ export const HostInfo: msRest.CompositeMapper = { } }; +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 PrivateLinkResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkResource", + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + ...Resource.type.modelProperties, + groupId: { + readOnly: true, + serializedName: "properties.groupId", + type: { + name: "String" + } + }, + requiredMembers: { + readOnly: true, + serializedName: "properties.requiredMembers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PrivateLinkResourceListResult: msRest.CompositeMapper = { + serializedName: "PrivateLinkResourceListResult", + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource" + } + } + } + } + } + } +}; + export const ClusterListResult: msRest.CompositeMapper = { serializedName: "ClusterListResult", type: { @@ -3725,3 +3995,32 @@ export const OperationListResult: msRest.CompositeMapper = { } } }; + +export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnectionListResult", + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/hdinsight/arm-hdinsight/src/models/parameters.ts b/sdk/hdinsight/arm-hdinsight/src/models/parameters.ts index 9e6161b53cb4..5971abcb00fa 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/parameters.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/parameters.ts @@ -13,7 +13,7 @@ export const acceptLanguage: msRest.OperationParameter = { parameterPath: "acceptLanguage", mapper: { serializedName: "accept-language", - defaultValue: "en-US", + defaultValue: 'en-US', type: { name: "String" } @@ -100,6 +100,26 @@ export const operationId: msRest.OperationURLParameter = { } } }; +export const privateEndpointConnectionName: msRest.OperationURLParameter = { + parameterPath: "privateEndpointConnectionName", + mapper: { + required: true, + serializedName: "privateEndpointConnectionName", + type: { + name: "String" + } + } +}; +export const privateLinkResourceName: msRest.OperationURLParameter = { + parameterPath: "privateLinkResourceName", + mapper: { + required: true, + serializedName: "privateLinkResourceName", + type: { + name: "String" + } + } +}; export const resourceGroupName: msRest.OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { @@ -116,7 +136,7 @@ export const roleName: msRest.OperationURLParameter = { required: true, isConstant: true, serializedName: "roleName", - defaultValue: "workernode", + defaultValue: 'workernode', type: { name: "String" } diff --git a/sdk/hdinsight/arm-hdinsight/src/models/privateEndpointConnectionsMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/privateEndpointConnectionsMappers.ts new file mode 100644 index 000000000000..512bcdd5dec2 --- /dev/null +++ b/sdk/hdinsight/arm-hdinsight/src/models/privateEndpointConnectionsMappers.ts @@ -0,0 +1,65 @@ +/* + * 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 { + Application, + ApplicationGetEndpoint, + ApplicationGetHttpsEndpoint, + ApplicationProperties, + Autoscale, + AutoscaleCapacity, + AutoscaleRecurrence, + AutoscaleSchedule, + AutoscaleTimeAndCapacity, + AzureEntityResource, + BaseResource, + ClientGroupInfo, + Cluster, + ClusterDefinition, + ClusterGetProperties, + ClusterIdentity, + ComputeIsolationProperties, + ComputeProfile, + ConnectivityEndpoint, + DataDisksGroups, + DiskEncryptionProperties, + EncryptionInTransitProperties, + ErrorResponse, + Errors, + ExcludedServicesConfig, + HardwareProfile, + IPConfiguration, + KafkaRestProperties, + LinuxOperatingSystemProfile, + NetworkProperties, + OsProfile, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateEndpointConnectionListResult, + PrivateLinkConfiguration, + PrivateLinkResource, + PrivateLinkServiceConnectionState, + ProxyResource, + QuotaInfo, + Resource, + ResourceId, + Role, + RuntimeScriptAction, + RuntimeScriptActionDetail, + ScriptAction, + ScriptActionExecutionSummary, + SecurityProfile, + SshProfile, + SshPublicKey, + StorageAccount, + StorageProfile, + SystemData, + TrackedResource, + UserAssignedIdentity, + VirtualNetworkProfile +} from "../models/mappers"; diff --git a/sdk/hdinsight/arm-hdinsight/src/models/privateLinkResourcesMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/privateLinkResourcesMappers.ts new file mode 100644 index 000000000000..67251d222481 --- /dev/null +++ b/sdk/hdinsight/arm-hdinsight/src/models/privateLinkResourcesMappers.ts @@ -0,0 +1,65 @@ +/* + * 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 { + Application, + ApplicationGetEndpoint, + ApplicationGetHttpsEndpoint, + ApplicationProperties, + Autoscale, + AutoscaleCapacity, + AutoscaleRecurrence, + AutoscaleSchedule, + AutoscaleTimeAndCapacity, + AzureEntityResource, + BaseResource, + ClientGroupInfo, + Cluster, + ClusterDefinition, + ClusterGetProperties, + ClusterIdentity, + ComputeIsolationProperties, + ComputeProfile, + ConnectivityEndpoint, + DataDisksGroups, + DiskEncryptionProperties, + EncryptionInTransitProperties, + ErrorResponse, + Errors, + ExcludedServicesConfig, + HardwareProfile, + IPConfiguration, + KafkaRestProperties, + LinuxOperatingSystemProfile, + NetworkProperties, + OsProfile, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkConfiguration, + PrivateLinkResource, + PrivateLinkResourceListResult, + PrivateLinkServiceConnectionState, + ProxyResource, + QuotaInfo, + Resource, + ResourceId, + Role, + RuntimeScriptAction, + RuntimeScriptActionDetail, + ScriptAction, + ScriptActionExecutionSummary, + SecurityProfile, + SshProfile, + SshPublicKey, + StorageAccount, + StorageProfile, + SystemData, + TrackedResource, + UserAssignedIdentity, + VirtualNetworkProfile +} from "../models/mappers"; diff --git a/sdk/hdinsight/arm-hdinsight/src/models/virtualMachinesMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/virtualMachinesMappers.ts index 039f82d06054..aee4a2d1baf5 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/virtualMachinesMappers.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/virtualMachinesMappers.ts @@ -6,4 +6,9 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export { AsyncOperationResult, ErrorResponse, Errors, HostInfo } from "../models/mappers"; +export { + AsyncOperationResult, + ErrorResponse, + Errors, + HostInfo +} from "../models/mappers"; diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts b/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts index b82e8c1713f4..26d72b2e1056 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/applications.ts @@ -33,39 +33,21 @@ export class Applications { * @param [options] The optional parameters * @returns Promise */ - listByCluster( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByCluster(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param callback The callback */ - listByCluster( - resourceGroupName: string, - clusterName: string, - callback: msRest.ServiceCallback - ): void; + listByCluster(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param options The optional parameters * @param callback The callback */ - listByCluster( - resourceGroupName: string, - clusterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByCluster( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByCluster(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByCluster(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -73,8 +55,7 @@ export class Applications { options }, listByClusterOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -85,24 +66,14 @@ export class Applications { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - clusterName: string, - applicationName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, clusterName: string, applicationName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param applicationName The constant value for the application name. * @param callback The callback */ - get( - resourceGroupName: string, - clusterName: string, - applicationName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, clusterName: string, applicationName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -110,20 +81,8 @@ export class Applications { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - clusterName: string, - applicationName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - clusterName: string, - applicationName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, clusterName: string, applicationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, clusterName: string, applicationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -132,8 +91,7 @@ export class Applications { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -145,22 +103,9 @@ export class Applications { * @param [options] The optional parameters * @returns Promise */ - create( - resourceGroupName: string, - clusterName: string, - applicationName: string, - parameters: Models.Application, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreate( - resourceGroupName, - clusterName, - applicationName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise< - Models.ApplicationsCreateResponse - >; + create(resourceGroupName: string, clusterName: string, applicationName: string, parameters: Models.Application, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,clusterName,applicationName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -171,18 +116,9 @@ export class Applications { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - clusterName: string, - applicationName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - resourceGroupName, - clusterName, - applicationName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMethod(resourceGroupName: string, clusterName: string, applicationName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,clusterName,applicationName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -194,13 +130,7 @@ export class Applications { * @param [options] The optional parameters * @returns Promise */ - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - applicationName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, applicationName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -208,13 +138,7 @@ export class Applications { * @param operationId The long running operation id. * @param callback The callback */ - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - applicationName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, applicationName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -223,22 +147,8 @@ export class Applications { * @param options The optional parameters * @param callback The callback */ - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - applicationName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - applicationName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, applicationName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, applicationName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -248,8 +158,7 @@ export class Applications { options }, getAzureAsyncOperationStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -261,13 +170,7 @@ export class Applications { * @param [options] The optional parameters * @returns Promise */ - beginCreate( - resourceGroupName: string, - clusterName: string, - applicationName: string, - parameters: Models.Application, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreate(resourceGroupName: string, clusterName: string, applicationName: string, parameters: Models.Application, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -277,8 +180,7 @@ export class Applications { options }, beginCreateOperationSpec, - options - ); + options); } /** @@ -289,12 +191,7 @@ export class Applications { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - clusterName: string, - applicationName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, clusterName: string, applicationName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -303,8 +200,7 @@ export class Applications { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -313,41 +209,26 @@ export class Applications { * @param [options] The optional parameters * @returns Promise */ - listByClusterNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByClusterNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByClusterNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listByClusterNext(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 */ - listByClusterNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByClusterNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByClusterNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByClusterNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByClusterNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -355,11 +236,18 @@ export class Applications { const serializer = new msRest.Serializer(Mappers); const listByClusterOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ApplicationListResult @@ -373,16 +261,19 @@ const listByClusterOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.applicationName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.Application @@ -396,8 +287,7 @@ const getOperationSpec: msRest.OperationSpec = { const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}/azureasyncoperations/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}/azureasyncoperations/{operationId}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -405,8 +295,12 @@ const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = { Parameters.applicationName, Parameters.operationId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.AsyncOperationResult @@ -420,16 +314,19 @@ const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.applicationName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -450,16 +347,19 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications/{applicationName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.applicationName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -475,9 +375,15 @@ const listByClusterNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ApplicationListResult diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts b/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts index 36d179b3e2bd..9b7f898bd962 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/clusters.ts @@ -34,15 +34,9 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - create( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterCreateParametersExtended, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreate(resourceGroupName, clusterName, parameters, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ) as Promise; + create(resourceGroupName: string, clusterName: string, parameters: Models.ClusterCreateParametersExtended, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,clusterName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -53,24 +47,14 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - update( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterPatchParameters, - options?: msRest.RequestOptionsBase - ): Promise; + update(resourceGroupName: string, clusterName: string, parameters: Models.ClusterPatchParameters, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param parameters The cluster patch request. * @param callback The callback */ - update( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterPatchParameters, - callback: msRest.ServiceCallback - ): void; + update(resourceGroupName: string, clusterName: string, parameters: Models.ClusterPatchParameters, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -78,20 +62,8 @@ export class Clusters { * @param options The optional parameters * @param callback The callback */ - update( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterPatchParameters, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - update( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterPatchParameters, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + update(resourceGroupName: string, clusterName: string, parameters: Models.ClusterPatchParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, clusterName: string, parameters: Models.ClusterPatchParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -100,8 +72,7 @@ export class Clusters { options }, updateOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -111,14 +82,9 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod(resourceGroupName, clusterName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + deleteMethod(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,clusterName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -128,39 +94,21 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param callback The callback */ - get( - resourceGroupName: string, - clusterName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - clusterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -168,8 +116,7 @@ export class Clusters { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -178,41 +125,26 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroup( - resourceGroupName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param callback The callback */ - listByResourceGroup( - resourceGroupName: string, - callback: msRest.ServiceCallback - ): void; + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @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 { + 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; + callback) as Promise; } /** @@ -223,15 +155,9 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - resize( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterResizeParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginResize(resourceGroupName, clusterName, parameters, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + resize(resourceGroupName: string, clusterName: string, parameters: Models.ClusterResizeParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginResize(resourceGroupName,clusterName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -242,18 +168,9 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - updateAutoScaleConfiguration( - resourceGroupName: string, - clusterName: string, - parameters: Models.AutoscaleConfigurationUpdateParameter, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateAutoScaleConfiguration( - resourceGroupName, - clusterName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + updateAutoScaleConfiguration(resourceGroupName: string, clusterName: string, parameters: Models.AutoscaleConfigurationUpdateParameter, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateAutoScaleConfiguration(resourceGroupName,clusterName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -270,21 +187,14 @@ export class Clusters { * @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 { + 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; + callback) as Promise; } /** @@ -295,18 +205,9 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - rotateDiskEncryptionKey( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterDiskEncryptionParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginRotateDiskEncryptionKey( - resourceGroupName, - clusterName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + rotateDiskEncryptionKey(resourceGroupName: string, clusterName: string, parameters: Models.ClusterDiskEncryptionParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginRotateDiskEncryptionKey(resourceGroupName,clusterName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -316,39 +217,21 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - getGatewaySettings( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getGatewaySettings(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param callback The callback */ - getGatewaySettings( - resourceGroupName: string, - clusterName: string, - callback: msRest.ServiceCallback - ): void; + getGatewaySettings(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param options The optional parameters * @param callback The callback */ - getGatewaySettings( - resourceGroupName: string, - clusterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getGatewaySettings( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getGatewaySettings(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getGatewaySettings(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -356,8 +239,7 @@ export class Clusters { options }, getGatewaySettingsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -368,18 +250,9 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - updateGatewaySettings( - resourceGroupName: string, - clusterName: string, - parameters: Models.UpdateGatewaySettingsParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateGatewaySettings( - resourceGroupName, - clusterName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + updateGatewaySettings(resourceGroupName: string, clusterName: string, parameters: Models.UpdateGatewaySettingsParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateGatewaySettings(resourceGroupName,clusterName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -390,24 +263,14 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param operationId The long running operation id. * @param callback The callback */ - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -415,20 +278,8 @@ export class Clusters { * @param options The optional parameters * @param callback The callback */ - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -437,8 +288,7 @@ export class Clusters { options }, getAzureAsyncOperationStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -449,18 +299,9 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - updateIdentityCertificate( - resourceGroupName: string, - clusterName: string, - parameters: Models.UpdateClusterIdentityCertificateParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginUpdateIdentityCertificate( - resourceGroupName, - clusterName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + updateIdentityCertificate(resourceGroupName: string, clusterName: string, parameters: Models.UpdateClusterIdentityCertificateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateIdentityCertificate(resourceGroupName,clusterName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -471,18 +312,9 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - executeScriptActions( - resourceGroupName: string, - clusterName: string, - parameters: Models.ExecuteScriptActionParameters, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginExecuteScriptActions( - resourceGroupName, - clusterName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + executeScriptActions(resourceGroupName: string, clusterName: string, parameters: Models.ExecuteScriptActionParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginExecuteScriptActions(resourceGroupName,clusterName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -493,12 +325,7 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - beginCreate( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterCreateParametersExtended, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreate(resourceGroupName: string, clusterName: string, parameters: Models.ClusterCreateParametersExtended, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -507,8 +334,7 @@ export class Clusters { options }, beginCreateOperationSpec, - options - ); + options); } /** @@ -518,11 +344,7 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -530,8 +352,7 @@ export class Clusters { options }, beginDeleteMethodOperationSpec, - options - ); + options); } /** @@ -542,12 +363,7 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - beginResize( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterResizeParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginResize(resourceGroupName: string, clusterName: string, parameters: Models.ClusterResizeParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -556,8 +372,7 @@ export class Clusters { options }, beginResizeOperationSpec, - options - ); + options); } /** @@ -568,12 +383,7 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - beginUpdateAutoScaleConfiguration( - resourceGroupName: string, - clusterName: string, - parameters: Models.AutoscaleConfigurationUpdateParameter, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateAutoScaleConfiguration(resourceGroupName: string, clusterName: string, parameters: Models.AutoscaleConfigurationUpdateParameter, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -582,8 +392,7 @@ export class Clusters { options }, beginUpdateAutoScaleConfigurationOperationSpec, - options - ); + options); } /** @@ -594,12 +403,7 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - beginRotateDiskEncryptionKey( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterDiskEncryptionParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginRotateDiskEncryptionKey(resourceGroupName: string, clusterName: string, parameters: Models.ClusterDiskEncryptionParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -608,8 +412,7 @@ export class Clusters { options }, beginRotateDiskEncryptionKeyOperationSpec, - options - ); + options); } /** @@ -620,12 +423,7 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - beginUpdateGatewaySettings( - resourceGroupName: string, - clusterName: string, - parameters: Models.UpdateGatewaySettingsParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateGatewaySettings(resourceGroupName: string, clusterName: string, parameters: Models.UpdateGatewaySettingsParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -634,8 +432,7 @@ export class Clusters { options }, beginUpdateGatewaySettingsOperationSpec, - options - ); + options); } /** @@ -646,12 +443,7 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - beginUpdateIdentityCertificate( - resourceGroupName: string, - clusterName: string, - parameters: Models.UpdateClusterIdentityCertificateParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginUpdateIdentityCertificate(resourceGroupName: string, clusterName: string, parameters: Models.UpdateClusterIdentityCertificateParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -660,8 +452,7 @@ export class Clusters { options }, beginUpdateIdentityCertificateOperationSpec, - options - ); + options); } /** @@ -672,12 +463,7 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - beginExecuteScriptActions( - resourceGroupName: string, - clusterName: string, - parameters: Models.ExecuteScriptActionParameters, - options?: msRest.RequestOptionsBase - ): Promise { + beginExecuteScriptActions(resourceGroupName: string, clusterName: string, parameters: Models.ExecuteScriptActionParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -686,8 +472,7 @@ export class Clusters { options }, beginExecuteScriptActionsOperationSpec, - options - ); + options); } /** @@ -696,41 +481,26 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): 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; + 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 { + 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; + callback) as Promise; } /** @@ -739,10 +509,7 @@ export class Clusters { * @param [options] The optional parameters * @returns Promise */ - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -753,24 +520,15 @@ export class Clusters { * @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: 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; + callback) as Promise; } } @@ -778,11 +536,18 @@ export class Clusters { const serializer = new msRest.Serializer(Mappers); const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -803,11 +568,18 @@ const updateOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.Cluster @@ -821,11 +593,17 @@ const getOperationSpec: msRest.OperationSpec = { const listByResourceGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ClusterListResult @@ -840,9 +618,15 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/clusters", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ClusterListResult @@ -856,11 +640,18 @@ const listOperationSpec: msRest.OperationSpec = { const getGatewaySettingsOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/getGatewaySettings", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/getGatewaySettings", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.GatewaySettings @@ -874,16 +665,19 @@ const getGatewaySettingsOperationSpec: msRest.OperationSpec = { const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/azureasyncoperations/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/azureasyncoperations/{operationId}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.operationId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.AsyncOperationResult @@ -897,11 +691,18 @@ const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -922,11 +723,18 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -940,16 +748,19 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { const beginResizeOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/resize", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/resize", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.roleName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -969,16 +780,19 @@ const beginResizeOperationSpec: msRest.OperationSpec = { const beginUpdateAutoScaleConfigurationOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/autoscale", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/autoscale", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.roleName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -998,11 +812,18 @@ const beginUpdateAutoScaleConfigurationOperationSpec: msRest.OperationSpec = { const beginRotateDiskEncryptionKeyOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/rotatediskencryptionkey", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/rotatediskencryptionkey", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1022,11 +843,18 @@ const beginRotateDiskEncryptionKeyOperationSpec: msRest.OperationSpec = { const beginUpdateGatewaySettingsOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/updateGatewaySettings", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/updateGatewaySettings", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1046,11 +874,18 @@ const beginUpdateGatewaySettingsOperationSpec: msRest.OperationSpec = { const beginUpdateIdentityCertificateOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/updateClusterIdentityCertificate", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/updateClusterIdentityCertificate", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1070,11 +905,18 @@ const beginUpdateIdentityCertificateOperationSpec: msRest.OperationSpec = { const beginExecuteScriptActionsOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -1097,9 +939,15 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ClusterListResult @@ -1115,9 +963,15 @@ const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ClusterListResult diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/extensions.ts b/sdk/hdinsight/arm-hdinsight/src/operations/extensions.ts index 32b0800cd896..faf22d786a41 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/extensions.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/extensions.ts @@ -34,18 +34,9 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - enableMonitoring( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterMonitoringRequest, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginEnableMonitoring( - resourceGroupName, - clusterName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + enableMonitoring(resourceGroupName: string, clusterName: string, parameters: Models.ClusterMonitoringRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginEnableMonitoring(resourceGroupName,clusterName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -55,39 +46,21 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - getMonitoringStatus( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getMonitoringStatus(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param callback The callback */ - getMonitoringStatus( - resourceGroupName: string, - clusterName: string, - callback: msRest.ServiceCallback - ): void; + getMonitoringStatus(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param options The optional parameters * @param callback The callback */ - getMonitoringStatus( - resourceGroupName: string, - clusterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getMonitoringStatus( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getMonitoringStatus(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getMonitoringStatus(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -95,8 +68,7 @@ export class Extensions { options }, getMonitoringStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -106,14 +78,9 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - disableMonitoring( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDisableMonitoring(resourceGroupName, clusterName, options).then((lroPoller) => - lroPoller.pollUntilFinished() - ); + disableMonitoring(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDisableMonitoring(resourceGroupName,clusterName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -124,18 +91,9 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - enableAzureMonitor( - resourceGroupName: string, - clusterName: string, - parameters: Models.AzureMonitorRequest, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginEnableAzureMonitor( - resourceGroupName, - clusterName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + enableAzureMonitor(resourceGroupName: string, clusterName: string, parameters: Models.AzureMonitorRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginEnableAzureMonitor(resourceGroupName,clusterName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -145,39 +103,21 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - getAzureMonitorStatus( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAzureMonitorStatus(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param callback The callback */ - getAzureMonitorStatus( - resourceGroupName: string, - clusterName: string, - callback: msRest.ServiceCallback - ): void; + getAzureMonitorStatus(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param options The optional parameters * @param callback The callback */ - getAzureMonitorStatus( - resourceGroupName: string, - clusterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAzureMonitorStatus( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAzureMonitorStatus(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAzureMonitorStatus(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -185,8 +125,7 @@ export class Extensions { options }, getAzureMonitorStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -196,16 +135,9 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - disableAzureMonitor( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDisableAzureMonitor( - resourceGroupName, - clusterName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + disableAzureMonitor(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDisableAzureMonitor(resourceGroupName,clusterName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -217,20 +149,9 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - create( - resourceGroupName: string, - clusterName: string, - extensionName: string, - parameters: Models.Extension, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginCreate( - resourceGroupName, - clusterName, - extensionName, - parameters, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + create(resourceGroupName: string, clusterName: string, extensionName: string, parameters: Models.Extension, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,clusterName,extensionName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -241,24 +162,14 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - get( - resourceGroupName: string, - clusterName: string, - extensionName: string, - options?: msRest.RequestOptionsBase - ): Promise; + get(resourceGroupName: string, clusterName: string, extensionName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param extensionName The name of the cluster extension. * @param callback The callback */ - get( - resourceGroupName: string, - clusterName: string, - extensionName: string, - callback: msRest.ServiceCallback - ): void; + get(resourceGroupName: string, clusterName: string, extensionName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -266,20 +177,8 @@ export class Extensions { * @param options The optional parameters * @param callback The callback */ - get( - resourceGroupName: string, - clusterName: string, - extensionName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - get( - resourceGroupName: string, - clusterName: string, - extensionName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + get(resourceGroupName: string, clusterName: string, extensionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, clusterName: string, extensionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -288,8 +187,7 @@ export class Extensions { options }, getOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -300,18 +198,9 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - clusterName: string, - extensionName: string, - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginDeleteMethod( - resourceGroupName, - clusterName, - extensionName, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + deleteMethod(resourceGroupName: string, clusterName: string, extensionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,clusterName,extensionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -323,13 +212,7 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - extensionName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, extensionName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -337,13 +220,7 @@ export class Extensions { * @param operationId The long running operation id. * @param callback The callback */ - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - extensionName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, extensionName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -352,22 +229,8 @@ export class Extensions { * @param options The optional parameters * @param callback The callback */ - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - extensionName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAzureAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - extensionName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, extensionName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAzureAsyncOperationStatus(resourceGroupName: string, clusterName: string, extensionName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -377,8 +240,7 @@ export class Extensions { options }, getAzureAsyncOperationStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -389,12 +251,7 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - beginEnableMonitoring( - resourceGroupName: string, - clusterName: string, - parameters: Models.ClusterMonitoringRequest, - options?: msRest.RequestOptionsBase - ): Promise { + beginEnableMonitoring(resourceGroupName: string, clusterName: string, parameters: Models.ClusterMonitoringRequest, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -403,8 +260,7 @@ export class Extensions { options }, beginEnableMonitoringOperationSpec, - options - ); + options); } /** @@ -414,11 +270,7 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - beginDisableMonitoring( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDisableMonitoring(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -426,8 +278,7 @@ export class Extensions { options }, beginDisableMonitoringOperationSpec, - options - ); + options); } /** @@ -438,12 +289,7 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - beginEnableAzureMonitor( - resourceGroupName: string, - clusterName: string, - parameters: Models.AzureMonitorRequest, - options?: msRest.RequestOptionsBase - ): Promise { + beginEnableAzureMonitor(resourceGroupName: string, clusterName: string, parameters: Models.AzureMonitorRequest, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -452,8 +298,7 @@ export class Extensions { options }, beginEnableAzureMonitorOperationSpec, - options - ); + options); } /** @@ -463,11 +308,7 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - beginDisableAzureMonitor( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDisableAzureMonitor(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -475,8 +316,7 @@ export class Extensions { options }, beginDisableAzureMonitorOperationSpec, - options - ); + options); } /** @@ -488,13 +328,7 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - beginCreate( - resourceGroupName: string, - clusterName: string, - extensionName: string, - parameters: Models.Extension, - options?: msRest.RequestOptionsBase - ): Promise { + beginCreate(resourceGroupName: string, clusterName: string, extensionName: string, parameters: Models.Extension, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -504,8 +338,7 @@ export class Extensions { options }, beginCreateOperationSpec, - options - ); + options); } /** @@ -516,12 +349,7 @@ export class Extensions { * @param [options] The optional parameters * @returns Promise */ - beginDeleteMethod( - resourceGroupName: string, - clusterName: string, - extensionName: string, - options?: msRest.RequestOptionsBase - ): Promise { + beginDeleteMethod(resourceGroupName: string, clusterName: string, extensionName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -530,8 +358,7 @@ export class Extensions { options }, beginDeleteMethodOperationSpec, - options - ); + options); } } @@ -539,11 +366,18 @@ export class Extensions { const serializer = new msRest.Serializer(Mappers); const getMonitoringStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ClusterMonitoringResponse @@ -557,11 +391,18 @@ const getMonitoringStatusOperationSpec: msRest.OperationSpec = { const getAzureMonitorStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/azureMonitor", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/azureMonitor", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.AzureMonitorResponse @@ -575,16 +416,19 @@ const getAzureMonitorStatusOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.extensionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ClusterMonitoringResponse @@ -598,8 +442,7 @@ const getOperationSpec: msRest.OperationSpec = { const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}/azureAsyncOperations/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}/azureAsyncOperations/{operationId}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -607,8 +450,12 @@ const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = { Parameters.extensionName, Parameters.operationId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.AsyncOperationResult @@ -622,11 +469,18 @@ const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = { const beginEnableMonitoringOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -646,11 +500,18 @@ const beginEnableMonitoringOperationSpec: msRest.OperationSpec = { const beginDisableMonitoringOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -664,11 +525,18 @@ const beginDisableMonitoringOperationSpec: msRest.OperationSpec = { const beginEnableAzureMonitorOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/azureMonitor", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/azureMonitor", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -688,11 +556,18 @@ const beginEnableAzureMonitorOperationSpec: msRest.OperationSpec = { const beginDisableAzureMonitorOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/azureMonitor", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/azureMonitor", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, @@ -706,16 +581,19 @@ const beginDisableAzureMonitorOperationSpec: msRest.OperationSpec = { const beginCreateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.extensionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -735,16 +613,19 @@ const beginCreateOperationSpec: msRest.OperationSpec = { const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.extensionName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 202: {}, diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/index.ts b/sdk/hdinsight/arm-hdinsight/src/operations/index.ts index 46e8728be81d..ef5020177e82 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/index.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/index.ts @@ -16,3 +16,5 @@ export * from "./scriptActions"; export * from "./scriptExecutionHistory"; export * from "./operations"; export * from "./virtualMachines"; +export * from "./privateEndpointConnections"; +export * from "./privateLinkResources"; diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/locations.ts b/sdk/hdinsight/arm-hdinsight/src/operations/locations.ts index cc5995ef49d9..db8b68b828bd 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/locations.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/locations.ts @@ -31,41 +31,26 @@ export class Locations { * @param [options] The optional parameters * @returns Promise */ - getCapabilities( - location: string, - options?: msRest.RequestOptionsBase - ): Promise; + getCapabilities(location: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location The Azure location (region) for which to make the request. * @param callback The callback */ - getCapabilities( - location: string, - callback: msRest.ServiceCallback - ): void; + getCapabilities(location: string, callback: msRest.ServiceCallback): void; /** * @param location The Azure location (region) for which to make the request. * @param options The optional parameters * @param callback The callback */ - getCapabilities( - location: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getCapabilities( - location: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getCapabilities(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getCapabilities(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, options }, getCapabilitiesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -74,10 +59,7 @@ export class Locations { * @param [options] The optional parameters * @returns Promise */ - listUsages( - location: string, - options?: msRest.RequestOptionsBase - ): Promise; + listUsages(location: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location The Azure location (region) for which to make the request. * @param callback The callback @@ -88,24 +70,15 @@ export class Locations { * @param options The optional parameters * @param callback The callback */ - listUsages( - location: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listUsages( - location: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listUsages(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listUsages(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, options }, listUsagesOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -114,41 +87,26 @@ export class Locations { * @param [options] The optional parameters * @returns Promise */ - listBillingSpecs( - location: string, - options?: msRest.RequestOptionsBase - ): Promise; + listBillingSpecs(location: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location The Azure location (region) for which to make the request. * @param callback The callback */ - listBillingSpecs( - location: string, - callback: msRest.ServiceCallback - ): void; + listBillingSpecs(location: string, callback: msRest.ServiceCallback): void; /** * @param location The Azure location (region) for which to make the request. * @param options The optional parameters * @param callback The callback */ - listBillingSpecs( - location: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listBillingSpecs( - location: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listBillingSpecs(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBillingSpecs(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, options }, listBillingSpecsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -158,39 +116,21 @@ export class Locations { * @param [options] The optional parameters * @returns Promise */ - getAzureAsyncOperationStatus( - location: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAzureAsyncOperationStatus(location: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param location The Azure location (region) for which to make the request. * @param operationId The long running operation id. * @param callback The callback */ - getAzureAsyncOperationStatus( - location: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + getAzureAsyncOperationStatus(location: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param location The Azure location (region) for which to make the request. * @param operationId The long running operation id. * @param options The optional parameters * @param callback The callback */ - getAzureAsyncOperationStatus( - location: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAzureAsyncOperationStatus( - location: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAzureAsyncOperationStatus(location: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAzureAsyncOperationStatus(location: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -198,8 +138,7 @@ export class Locations { options }, getAzureAsyncOperationStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -209,41 +148,21 @@ export class Locations { * @param [options] The optional parameters * @returns Promise */ - checkNameAvailability( - location: string, - parameters: Models.NameAvailabilityCheckRequestParameters, - options?: msRest.RequestOptionsBase - ): Promise; + checkNameAvailability(location: string, parameters: Models.NameAvailabilityCheckRequestParameters, options?: msRest.RequestOptionsBase): Promise; /** * @param location The Azure location (region) for which to make the request. * @param parameters * @param callback The callback */ - checkNameAvailability( - location: string, - parameters: Models.NameAvailabilityCheckRequestParameters, - callback: msRest.ServiceCallback - ): void; + checkNameAvailability(location: string, parameters: Models.NameAvailabilityCheckRequestParameters, callback: msRest.ServiceCallback): void; /** * @param location The Azure location (region) for which to make the request. * @param parameters * @param options The optional parameters * @param callback The callback */ - checkNameAvailability( - location: string, - parameters: Models.NameAvailabilityCheckRequestParameters, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - checkNameAvailability( - location: string, - parameters: Models.NameAvailabilityCheckRequestParameters, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + checkNameAvailability(location: string, parameters: Models.NameAvailabilityCheckRequestParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkNameAvailability(location: string, parameters: Models.NameAvailabilityCheckRequestParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -251,8 +170,7 @@ export class Locations { options }, checkNameAvailabilityOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -262,41 +180,21 @@ export class Locations { * @param [options] The optional parameters * @returns Promise */ - validateClusterCreateRequest( - location: string, - parameters: Models.ClusterCreateRequestValidationParameters, - options?: msRest.RequestOptionsBase - ): Promise; + validateClusterCreateRequest(location: string, parameters: Models.ClusterCreateRequestValidationParameters, options?: msRest.RequestOptionsBase): Promise; /** * @param location The Azure location (region) for which to make the request. * @param parameters * @param callback The callback */ - validateClusterCreateRequest( - location: string, - parameters: Models.ClusterCreateRequestValidationParameters, - callback: msRest.ServiceCallback - ): void; + validateClusterCreateRequest(location: string, parameters: Models.ClusterCreateRequestValidationParameters, callback: msRest.ServiceCallback): void; /** * @param location The Azure location (region) for which to make the request. * @param parameters * @param options The optional parameters * @param callback The callback */ - validateClusterCreateRequest( - location: string, - parameters: Models.ClusterCreateRequestValidationParameters, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - validateClusterCreateRequest( - location: string, - parameters: Models.ClusterCreateRequestValidationParameters, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + validateClusterCreateRequest(location: string, parameters: Models.ClusterCreateRequestValidationParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + validateClusterCreateRequest(location: string, parameters: Models.ClusterCreateRequestValidationParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -304,8 +202,7 @@ export class Locations { options }, validateClusterCreateRequestOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -313,11 +210,17 @@ export class Locations { const serializer = new msRest.Serializer(Mappers); const getCapabilitiesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/capabilities", - urlParameters: [Parameters.subscriptionId, Parameters.location], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/capabilities", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.CapabilitiesResult @@ -332,9 +235,16 @@ const getCapabilitiesOperationSpec: msRest.OperationSpec = { const listUsagesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/usages", - urlParameters: [Parameters.subscriptionId, Parameters.location], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.UsagesListResult @@ -348,11 +258,17 @@ const listUsagesOperationSpec: msRest.OperationSpec = { const listBillingSpecsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/billingSpecs", - urlParameters: [Parameters.subscriptionId, Parameters.location], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/billingSpecs", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.BillingResponseListResult @@ -366,11 +282,18 @@ const listBillingSpecsOperationSpec: msRest.OperationSpec = { const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/azureasyncoperations/{operationId}", - urlParameters: [Parameters.subscriptionId, Parameters.location, Parameters.operationId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/azureasyncoperations/{operationId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location, + Parameters.operationId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.AsyncOperationResult @@ -384,11 +307,17 @@ const getAzureAsyncOperationStatusOperationSpec: msRest.OperationSpec = { const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/checkNameAvailability", - urlParameters: [Parameters.subscriptionId, Parameters.location], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/checkNameAvailability", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { @@ -409,11 +338,17 @@ const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { const validateClusterCreateRequestOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/validateCreateRequest", - urlParameters: [Parameters.subscriptionId, Parameters.location], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/validateCreateRequest", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "parameters", mapper: { diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/privateEndpointConnections.ts b/sdk/hdinsight/arm-hdinsight/src/operations/privateEndpointConnections.ts new file mode 100644 index 000000000000..92232dfc2488 --- /dev/null +++ b/sdk/hdinsight/arm-hdinsight/src/operations/privateEndpointConnections.ts @@ -0,0 +1,332 @@ +/* + * 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 { HDInsightManagementClientContext } from "../hDInsightManagementClientContext"; + +/** Class representing a PrivateEndpointConnections. */ +export class PrivateEndpointConnections { + private readonly client: HDInsightManagementClientContext; + + /** + * Create a PrivateEndpointConnections. + * @param {HDInsightManagementClientContext} client Reference to the service client. + */ + constructor(client: HDInsightManagementClientContext) { + this.client = client; + } + + /** + * Lists the private endpoint connections for a HDInsight cluster. + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param [options] The optional parameters + * @returns Promise + */ + listByCluster(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param callback The callback + */ + listByCluster(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param options The optional parameters + * @param callback The callback + */ + listByCluster(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByCluster(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterName, + options + }, + listByClusterOperationSpec, + callback) as Promise; + } + + /** + * Approve or reject a private endpoint connection manually. + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param parameters The private endpoint connection create or update request. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,clusterName,privateEndpointConnectionName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets the specific private endpoint connection. + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param callback The callback + */ + get(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterName, + privateEndpointConnectionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specific private endpoint connection. + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,clusterName,privateEndpointConnectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Approve or reject a private endpoint connection manually. + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param parameters The private endpoint connection create or update request. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + privateEndpointConnectionName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Deletes the specific private endpoint connection. + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param privateEndpointConnectionName The name of the private endpoint connection. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, clusterName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + privateEndpointConnectionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Lists the private endpoint connections for a HDInsight cluster. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByClusterNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByClusterNext(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 + */ + listByClusterNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByClusterNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByClusterNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByClusterOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/privateEndpointConnections", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PrivateEndpointConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + 201: { + bodyMapper: Mappers.PrivateEndpointConnection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.privateEndpointConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByClusterNextOperationSpec: 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/hdinsight/arm-hdinsight/src/operations/privateLinkResources.ts b/sdk/hdinsight/arm-hdinsight/src/operations/privateLinkResources.ts new file mode 100644 index 000000000000..bb0ee9413174 --- /dev/null +++ b/sdk/hdinsight/arm-hdinsight/src/operations/privateLinkResources.ts @@ -0,0 +1,148 @@ +/* + * 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 { HDInsightManagementClientContext } from "../hDInsightManagementClientContext"; + +/** Class representing a PrivateLinkResources. */ +export class PrivateLinkResources { + private readonly client: HDInsightManagementClientContext; + + /** + * Create a PrivateLinkResources. + * @param {HDInsightManagementClientContext} client Reference to the service client. + */ + constructor(client: HDInsightManagementClientContext) { + this.client = client; + } + + /** + * Lists the private link resources in a HDInsight cluster. + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param [options] The optional parameters + * @returns Promise + */ + listByCluster(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param callback The callback + */ + listByCluster(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param options The optional parameters + * @param callback The callback + */ + listByCluster(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByCluster(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterName, + options + }, + listByClusterOperationSpec, + callback) as Promise; + } + + /** + * Gets the specific private link resource. + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param privateLinkResourceName The name of the private link resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, clusterName: string, privateLinkResourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param privateLinkResourceName The name of the private link resource. + * @param callback The callback + */ + get(resourceGroupName: string, clusterName: string, privateLinkResourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param clusterName The name of the cluster. + * @param privateLinkResourceName The name of the private link resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, clusterName: string, privateLinkResourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, clusterName: string, privateLinkResourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterName, + privateLinkResourceName, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByClusterOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/privateLinkResources", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + 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.HDInsight/clusters/{clusterName}/privateLinkResources/{privateLinkResourceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.privateLinkResourceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/scriptActions.ts b/sdk/hdinsight/arm-hdinsight/src/operations/scriptActions.ts index 60f78acad957..d1b338ab701f 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/scriptActions.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/scriptActions.ts @@ -33,24 +33,14 @@ export class ScriptActions { * @param [options] The optional parameters * @returns Promise */ - deleteMethod( - resourceGroupName: string, - clusterName: string, - scriptName: string, - options?: msRest.RequestOptionsBase - ): Promise; + deleteMethod(resourceGroupName: string, clusterName: string, scriptName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param scriptName The name of the script. * @param callback The callback */ - deleteMethod( - resourceGroupName: string, - clusterName: string, - scriptName: string, - callback: msRest.ServiceCallback - ): void; + deleteMethod(resourceGroupName: string, clusterName: string, scriptName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -58,20 +48,8 @@ export class ScriptActions { * @param options The optional parameters * @param callback The callback */ - deleteMethod( - resourceGroupName: string, - clusterName: string, - scriptName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - deleteMethod( - resourceGroupName: string, - clusterName: string, - scriptName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + deleteMethod(resourceGroupName: string, clusterName: string, scriptName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, clusterName: string, scriptName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -80,8 +58,7 @@ export class ScriptActions { options }, deleteMethodOperationSpec, - callback - ); + callback); } /** @@ -91,39 +68,21 @@ export class ScriptActions { * @param [options] The optional parameters * @returns Promise */ - listByCluster( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByCluster(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param callback The callback */ - listByCluster( - resourceGroupName: string, - clusterName: string, - callback: msRest.ServiceCallback - ): void; + listByCluster(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param options The optional parameters * @param callback The callback */ - listByCluster( - resourceGroupName: string, - clusterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByCluster( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByCluster(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByCluster(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -131,8 +90,7 @@ export class ScriptActions { options }, listByClusterOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -143,24 +101,14 @@ export class ScriptActions { * @param [options] The optional parameters * @returns Promise */ - getExecutionDetail( - resourceGroupName: string, - clusterName: string, - scriptExecutionId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getExecutionDetail(resourceGroupName: string, clusterName: string, scriptExecutionId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param scriptExecutionId The script execution Id * @param callback The callback */ - getExecutionDetail( - resourceGroupName: string, - clusterName: string, - scriptExecutionId: string, - callback: msRest.ServiceCallback - ): void; + getExecutionDetail(resourceGroupName: string, clusterName: string, scriptExecutionId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -168,20 +116,8 @@ export class ScriptActions { * @param options The optional parameters * @param callback The callback */ - getExecutionDetail( - resourceGroupName: string, - clusterName: string, - scriptExecutionId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getExecutionDetail( - resourceGroupName: string, - clusterName: string, - scriptExecutionId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getExecutionDetail(resourceGroupName: string, clusterName: string, scriptExecutionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getExecutionDetail(resourceGroupName: string, clusterName: string, scriptExecutionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -190,8 +126,7 @@ export class ScriptActions { options }, getExecutionDetailOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -202,24 +137,14 @@ export class ScriptActions { * @param [options] The optional parameters * @returns Promise */ - getExecutionAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getExecutionAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param operationId The long running operation id. * @param callback The callback */ - getExecutionAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + getExecutionAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -227,20 +152,8 @@ export class ScriptActions { * @param options The optional parameters * @param callback The callback */ - getExecutionAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getExecutionAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getExecutionAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getExecutionAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -249,8 +162,7 @@ export class ScriptActions { options }, getExecutionAsyncOperationStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -259,41 +171,26 @@ export class ScriptActions { * @param [options] The optional parameters * @returns Promise */ - listByClusterNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; + listByClusterNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByClusterNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; + listByClusterNext(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 */ - listByClusterNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listByClusterNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listByClusterNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByClusterNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByClusterNextOperationSpec, - callback - ) as Promise; + callback) as Promise; } } @@ -301,16 +198,19 @@ export class ScriptActions { const serializer = new msRest.Serializer(Mappers); const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions/{scriptName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions/{scriptName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.scriptName ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: {}, 204: {}, @@ -323,11 +223,18 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { const listByClusterOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ScriptActionsList @@ -341,16 +248,19 @@ const listByClusterOperationSpec: msRest.OperationSpec = { const getExecutionDetailOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory/{scriptExecutionId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory/{scriptExecutionId}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.scriptExecutionId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.RuntimeScriptActionDetail @@ -364,16 +274,19 @@ const getExecutionDetailOperationSpec: msRest.OperationSpec = { const getExecutionAsyncOperationStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions/azureasyncoperations/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions/azureasyncoperations/{operationId}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.operationId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.AsyncOperationResult @@ -389,9 +302,15 @@ const listByClusterNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.ScriptActionsList diff --git a/sdk/hdinsight/arm-hdinsight/src/operations/virtualMachines.ts b/sdk/hdinsight/arm-hdinsight/src/operations/virtualMachines.ts index 1c64fffd2ae8..22d9e1a225ae 100644 --- a/sdk/hdinsight/arm-hdinsight/src/operations/virtualMachines.ts +++ b/sdk/hdinsight/arm-hdinsight/src/operations/virtualMachines.ts @@ -33,39 +33,21 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - listHosts( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase - ): Promise; + listHosts(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param callback The callback */ - listHosts( - resourceGroupName: string, - clusterName: string, - callback: msRest.ServiceCallback - ): void; + listHosts(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param options The optional parameters * @param callback The callback */ - listHosts( - resourceGroupName: string, - clusterName: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listHosts( - resourceGroupName: string, - clusterName: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + listHosts(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listHosts(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -73,8 +55,7 @@ export class VirtualMachines { options }, listHostsOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -85,18 +66,9 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - restartHosts( - resourceGroupName: string, - clusterName: string, - hosts: string[], - options?: msRest.RequestOptionsBase - ): Promise { - return this.beginRestartHosts( - resourceGroupName, - clusterName, - hosts, - options - ).then((lroPoller) => lroPoller.pollUntilFinished()); + restartHosts(resourceGroupName: string, clusterName: string, hosts: string[], options?: msRest.RequestOptionsBase): Promise { + return this.beginRestartHosts(resourceGroupName,clusterName,hosts,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -107,24 +79,14 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - getAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - options?: msRest.RequestOptionsBase - ): Promise; + getAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. * @param operationId The long running operation id. * @param callback The callback */ - getAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - callback: msRest.ServiceCallback - ): void; + getAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param clusterName The name of the cluster. @@ -132,20 +94,8 @@ export class VirtualMachines { * @param options The optional parameters * @param callback The callback */ - getAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - getAsyncOperationStatus( - resourceGroupName: string, - clusterName: string, - operationId: string, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + getAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getAsyncOperationStatus(resourceGroupName: string, clusterName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -154,8 +104,7 @@ export class VirtualMachines { options }, getAsyncOperationStatusOperationSpec, - callback - ) as Promise; + callback) as Promise; } /** @@ -166,12 +115,7 @@ export class VirtualMachines { * @param [options] The optional parameters * @returns Promise */ - beginRestartHosts( - resourceGroupName: string, - clusterName: string, - hosts: string[], - options?: msRest.RequestOptionsBase - ): Promise { + beginRestartHosts(resourceGroupName: string, clusterName: string, hosts: string[], options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -180,8 +124,7 @@ export class VirtualMachines { options }, beginRestartHostsOperationSpec, - options - ); + options); } } @@ -189,11 +132,18 @@ export class VirtualMachines { const serializer = new msRest.Serializer(Mappers); const listHostsOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/listHosts", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/listHosts", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: { @@ -218,16 +168,19 @@ const listHostsOperationSpec: msRest.OperationSpec = { const getAsyncOperationStatusOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/restartHosts/azureasyncoperations/{operationId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/restartHosts/azureasyncoperations/{operationId}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName, Parameters.operationId ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { bodyMapper: Mappers.AsyncOperationResult @@ -241,11 +194,18 @@ const getAsyncOperationStatusOperationSpec: msRest.OperationSpec = { const beginRestartHostsOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/restartHosts", - urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.clusterName], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/restartHosts", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], requestBody: { parameterPath: "hosts", mapper: {