diff --git a/sdk/avs/arm-avs/LICENSE.txt b/sdk/avs/arm-avs/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/avs/arm-avs/LICENSE.txt +++ b/sdk/avs/arm-avs/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/avs/arm-avs/README.md b/sdk/avs/arm-avs/README.md index 73c2aae29485..56e452adbe3e 100644 --- a/sdk/avs/arm-avs/README.md +++ b/sdk/avs/arm-avs/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-avs ### How to use -#### nodejs - Authentication, client creation and list operations as an example written in TypeScript. +#### nodejs - client creation and list operations as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { AvsClient, AvsModels, AvsMappers } from "@azure/arm-avs"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { AvsClient } = require("@azure/arm-avs"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { diff --git a/sdk/avs/arm-avs/package.json b/sdk/avs/arm-avs/package.json index 521973d8e7d5..71d853760c69 100644 --- a/sdk/avs/arm-avs/package.json +++ b/sdk/avs/arm-avs/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-avs", "author": "Microsoft Corporation", "description": "AvsClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "0.1.0", "dependencies": { "@azure/ms-rest-azure-js": "^2.0.1", "@azure/ms-rest-js": "^2.0.4", diff --git a/sdk/avs/arm-avs/rollup.config.js b/sdk/avs/arm-avs/rollup.config.js index f2cc59bca8c9..9e2c6038eb1d 100644 --- a/sdk/avs/arm-avs/rollup.config.js +++ b/sdk/avs/arm-avs/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/avs/arm-avs/src/avsClient.ts b/sdk/avs/arm-avs/src/avsClient.ts index ddc844d84920..588956c72f3b 100644 --- a/sdk/avs/arm-avs/src/avsClient.ts +++ b/sdk/avs/arm-avs/src/avsClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -21,8 +20,12 @@ class AvsClient extends AvsClientContext { locations: operations.Locations; privateClouds: operations.PrivateClouds; clusters: operations.Clusters; + datastores: operations.Datastores; hcxEnterpriseSites: operations.HcxEnterpriseSites; authorizations: operations.Authorizations; + globalReachConnections: operations.GlobalReachConnections; + workloadNetworks: operations.WorkloadNetworks; + addons: operations.Addons; /** * Initializes a new instance of the AvsClient class. @@ -36,8 +39,12 @@ class AvsClient extends AvsClientContext { this.locations = new operations.Locations(this); this.privateClouds = new operations.PrivateClouds(this); this.clusters = new operations.Clusters(this); + this.datastores = new operations.Datastores(this); this.hcxEnterpriseSites = new operations.HcxEnterpriseSites(this); this.authorizations = new operations.Authorizations(this); + this.globalReachConnections = new operations.GlobalReachConnections(this); + this.workloadNetworks = new operations.WorkloadNetworks(this); + this.addons = new operations.Addons(this); } } diff --git a/sdk/avs/arm-avs/src/avsClientContext.ts b/sdk/avs/arm-avs/src/avsClientContext.ts index 3acb23a12a89..85e3d6afaa40 100644 --- a/sdk/avs/arm-avs/src/avsClientContext.ts +++ b/sdk/avs/arm-avs/src/avsClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -13,7 +12,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-avs"; -const packageVersion = "1.0.0"; +const packageVersion = "0.1.0"; export class AvsClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -37,14 +36,14 @@ export class AvsClientContext extends msRestAzure.AzureServiceClient { if (!options) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.apiVersion = '2020-03-20'; + this.apiVersion = '2021-01-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; @@ -52,10 +51,10 @@ export class AvsClientContext extends msRestAzure.AzureServiceClient { this.credentials = credentials; this.subscriptionId = subscriptionId; - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + 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/avs/arm-avs/src/models/addonsMappers.ts b/sdk/avs/arm-avs/src/models/addonsMappers.ts new file mode 100644 index 000000000000..271faa817ebe --- /dev/null +++ b/sdk/avs/arm-avs/src/models/addonsMappers.ts @@ -0,0 +1,44 @@ +/* + * 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 { + discriminators, + Addon, + AddonList, + BaseResource, + Circuit, + CloudError, + Cluster, + CommonClusterProperties, + Datastore, + DiskPoolVolume, + Endpoints, + ErrorAdditionalInfo, + ErrorResponse, + ExpressRouteAuthorization, + GlobalReachConnection, + HcxEnterpriseSite, + IdentitySource, + ManagementCluster, + NetAppVolume, + PrivateCloud, + ProxyResource, + Resource, + Sku, + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDnsService, + WorkloadNetworkDnsZone, + WorkloadNetworkGateway, + WorkloadNetworkPortMirroring, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVMGroup +} from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/models/authorizationsMappers.ts b/sdk/avs/arm-avs/src/models/authorizationsMappers.ts index e05ac88a10b2..823fa90588e9 100644 --- a/sdk/avs/arm-avs/src/models/authorizationsMappers.ts +++ b/sdk/avs/arm-avs/src/models/authorizationsMappers.ts @@ -1,27 +1,44 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + discriminators, + Addon, BaseResource, Circuit, CloudError, Cluster, - ClusterUpdateProperties, + CommonClusterProperties, + Datastore, + DiskPoolVolume, Endpoints, ErrorAdditionalInfo, ErrorResponse, ExpressRouteAuthorization, ExpressRouteAuthorizationList, + GlobalReachConnection, HcxEnterpriseSite, IdentitySource, ManagementCluster, + NetAppVolume, PrivateCloud, + ProxyResource, Resource, Sku, - TrackedResource + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDnsService, + WorkloadNetworkDnsZone, + WorkloadNetworkGateway, + WorkloadNetworkPortMirroring, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVMGroup } from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/models/clustersMappers.ts b/sdk/avs/arm-avs/src/models/clustersMappers.ts index 124b77e9e04d..65f46e00da55 100644 --- a/sdk/avs/arm-avs/src/models/clustersMappers.ts +++ b/sdk/avs/arm-avs/src/models/clustersMappers.ts @@ -1,28 +1,45 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + discriminators, + Addon, BaseResource, Circuit, CloudError, Cluster, ClusterList, ClusterUpdate, - ClusterUpdateProperties, + CommonClusterProperties, + Datastore, + DiskPoolVolume, Endpoints, ErrorAdditionalInfo, ErrorResponse, ExpressRouteAuthorization, + GlobalReachConnection, HcxEnterpriseSite, IdentitySource, ManagementCluster, + NetAppVolume, PrivateCloud, + ProxyResource, Resource, Sku, - TrackedResource + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDnsService, + WorkloadNetworkDnsZone, + WorkloadNetworkGateway, + WorkloadNetworkPortMirroring, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVMGroup } from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/models/datastoresMappers.ts b/sdk/avs/arm-avs/src/models/datastoresMappers.ts new file mode 100644 index 000000000000..0ae0aa283e23 --- /dev/null +++ b/sdk/avs/arm-avs/src/models/datastoresMappers.ts @@ -0,0 +1,44 @@ +/* + * 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 { + discriminators, + Addon, + BaseResource, + Circuit, + CloudError, + Cluster, + CommonClusterProperties, + Datastore, + DatastoreList, + DiskPoolVolume, + Endpoints, + ErrorAdditionalInfo, + ErrorResponse, + ExpressRouteAuthorization, + GlobalReachConnection, + HcxEnterpriseSite, + IdentitySource, + ManagementCluster, + NetAppVolume, + PrivateCloud, + ProxyResource, + Resource, + Sku, + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDnsService, + WorkloadNetworkDnsZone, + WorkloadNetworkGateway, + WorkloadNetworkPortMirroring, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVMGroup +} from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/models/globalReachConnectionsMappers.ts b/sdk/avs/arm-avs/src/models/globalReachConnectionsMappers.ts new file mode 100644 index 000000000000..c8b609161288 --- /dev/null +++ b/sdk/avs/arm-avs/src/models/globalReachConnectionsMappers.ts @@ -0,0 +1,44 @@ +/* + * 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 { + discriminators, + Addon, + BaseResource, + Circuit, + CloudError, + Cluster, + CommonClusterProperties, + Datastore, + DiskPoolVolume, + Endpoints, + ErrorAdditionalInfo, + ErrorResponse, + ExpressRouteAuthorization, + GlobalReachConnection, + GlobalReachConnectionList, + HcxEnterpriseSite, + IdentitySource, + ManagementCluster, + NetAppVolume, + PrivateCloud, + ProxyResource, + Resource, + Sku, + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDnsService, + WorkloadNetworkDnsZone, + WorkloadNetworkGateway, + WorkloadNetworkPortMirroring, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVMGroup +} from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/models/hcxEnterpriseSitesMappers.ts b/sdk/avs/arm-avs/src/models/hcxEnterpriseSitesMappers.ts index 874d20947675..c0d638f22aba 100644 --- a/sdk/avs/arm-avs/src/models/hcxEnterpriseSitesMappers.ts +++ b/sdk/avs/arm-avs/src/models/hcxEnterpriseSitesMappers.ts @@ -1,27 +1,44 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + discriminators, + Addon, BaseResource, Circuit, CloudError, Cluster, - ClusterUpdateProperties, + CommonClusterProperties, + Datastore, + DiskPoolVolume, Endpoints, ErrorAdditionalInfo, ErrorResponse, ExpressRouteAuthorization, + GlobalReachConnection, HcxEnterpriseSite, HcxEnterpriseSiteList, IdentitySource, ManagementCluster, + NetAppVolume, PrivateCloud, + ProxyResource, Resource, Sku, - TrackedResource + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDnsService, + WorkloadNetworkDnsZone, + WorkloadNetworkGateway, + WorkloadNetworkPortMirroring, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVMGroup } from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/models/index.ts b/sdk/avs/arm-avs/src/models/index.ts index b2e5781ec254..7457cde795a1 100644 --- a/sdk/avs/arm-avs/src/models/index.ts +++ b/sdk/avs/arm-avs/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -78,6 +78,12 @@ export interface TrackedResource extends Resource { tags?: { [propertyName: string]: string }; } +/** + * The resource model definition for a ARM proxy resource + */ +export interface ProxyResource extends Resource { +} + /** * The resource management error additional info. */ @@ -95,7 +101,9 @@ export interface ErrorAdditionalInfo { } /** - * The resource management error response. + * Common error response for all Azure Resource Manager APIs to return error details for failed + * operations. (This also follows the OData error response format.) + * @summary Error Response */ export interface ErrorResponse { /** @@ -151,6 +159,131 @@ export interface OperationDisplay { readonly description?: string; } +/** + * Specifications of the Log for Azure Monitoring + */ +export interface LogSpecification { + /** + * Name of the log + */ + name?: string; + /** + * Localized friendly display name of the log + */ + displayName?: string; + /** + * Blob duration of the log + */ + blobDuration?: string; +} + +/** + * Specifications of the Dimension of metrics + */ +export interface MetricDimension { + /** + * Name of the dimension + */ + name?: string; + /** + * Localized friendly display name of the dimension + */ + displayName?: string; + /** + * Name of the dimension as it appears in MDM + */ + internalName?: string; + /** + * A boolean flag indicating whether this dimension should be included for the shoebox export + * scenario + */ + toBeExportedForShoebox?: boolean; +} + +/** + * Specifications of the Metrics for Azure Monitoring + */ +export interface MetricSpecification { + /** + * Name of the metric + */ + name?: string; + /** + * Localized friendly display name of the metric + */ + displayName?: string; + /** + * Localized friendly description of the metric + */ + displayDescription?: string; + /** + * Unit that makes sense for the metric + */ + unit?: string; + /** + * Name of the metric category that the metric belongs to. A metric can only belong to a single + * category. + */ + category?: string; + /** + * Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. + */ + aggregationType?: string; + /** + * Supported aggregation types + */ + supportedAggregationTypes?: string[]; + /** + * Supported time grain types + */ + supportedTimeGrainTypes?: string[]; + /** + * Optional. If set to true, then zero will be returned for time duration where no metric is + * emitted/published. + */ + fillGapWithZero?: boolean; + /** + * Dimensions of the metric + */ + dimensions?: MetricDimension[]; + /** + * Whether or not the service is using regional MDM accounts. + */ + enableRegionalMdmAccount?: string; + /** + * The name of the MDM account. + */ + sourceMdmAccount?: string; + /** + * The name of the MDM namespace. + */ + sourceMdmNamespace?: string; +} + +/** + * Service specification payload + */ +export interface ServiceSpecification { + /** + * Specifications of the Log for Azure Monitoring + */ + logSpecifications?: LogSpecification[]; + /** + * Specifications of the Metrics for Azure Monitoring + */ + metricSpecifications?: MetricSpecification[]; +} + +/** + * Extra Operation properties + */ +export interface OperationProperties { + /** + * Service specifications of the operation + */ + serviceSpecification?: ServiceSpecification; +} + /** * A REST API operation */ @@ -165,6 +298,18 @@ export interface Operation { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly display?: OperationDisplay; + /** + * Gets or sets a value indicating whether the operation is a data action or not + */ + isDataAction?: boolean; + /** + * Origin of the operation + */ + origin?: string; + /** + * Properties of the operation + */ + properties?: OperationProperties; } /** @@ -309,7 +454,7 @@ export interface PrivateCloud extends TrackedResource { managementCluster?: ManagementCluster; /** * Connectivity to internet is enabled or disabled. Possible values include: 'Enabled', - * 'Disabled' + * 'Disabled'. Default value: 'Disabled'. */ internet?: InternetEnum; /** @@ -373,19 +518,19 @@ export interface PrivateCloud extends TrackedResource { } /** - * The properties of a cluster that may be updated + * The common properties of a cluster */ -export interface ClusterUpdateProperties { +export interface CommonClusterProperties { + /** + * The state of the cluster provisioning. Possible values include: 'Succeeded', 'Failed', + * 'Cancelled', 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ClusterProvisioningState; /** * The cluster size */ clusterSize?: number; -} - -/** - * The properties of a default cluster - */ -export interface ManagementCluster extends ClusterUpdateProperties { /** * The identity * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -398,12 +543,18 @@ export interface ManagementCluster extends ClusterUpdateProperties { readonly hosts?: string[]; } +/** + * The properties of a management cluster + */ +export interface ManagementCluster extends CommonClusterProperties { +} + /** * An update to a private cloud resource */ export interface PrivateCloudUpdate { /** - * Resource tags. + * Resource tags */ tags?: { [propertyName: string]: string }; /** @@ -412,7 +563,7 @@ export interface PrivateCloudUpdate { managementCluster?: ManagementCluster; /** * Connectivity to internet is enabled or disabled. Possible values include: 'Enabled', - * 'Disabled' + * 'Disabled'. Default value: 'Disabled'. */ internet?: InternetEnum; /** @@ -429,6 +580,12 @@ export interface Cluster extends Resource { * The cluster SKU */ sku: Sku; + /** + * The state of the cluster provisioning. Possible values include: 'Succeeded', 'Failed', + * 'Cancelled', 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ClusterProvisioningState; /** * The cluster size */ @@ -443,12 +600,6 @@ export interface Cluster extends Resource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly hosts?: string[]; - /** - * The state of the cluster provisioning. Possible values include: 'Succeeded', 'Failed', - * 'Cancelled', 'Deleting', 'Updating' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: ClusterProvisioningState; } /** @@ -461,6 +612,104 @@ export interface ClusterUpdate { clusterSize?: number; } +/** + * An addon resource + */ +export interface Addon extends Resource { + /** + * The SRM license + */ + licenseKey?: string; + /** + * The type of private cloud addon. Possible values include: 'SRM', 'VR' + */ + addonType?: AddonType; + /** + * The state of the addon provisioning. Possible values include: 'Succeeded', 'Failed', + * 'Cancelled', 'Building', 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: AddonProvisioningState; +} + +/** + * An update of an addon resource + */ +export interface AddonUpdate { + /** + * The SRM license + */ + licenseKey?: string; + /** + * The type of private cloud addon. Possible values include: 'SRM', 'VR' + */ + addonType?: AddonType; + /** + * The state of the addon provisioning. Possible values include: 'Succeeded', 'Failed', + * 'Cancelled', 'Building', 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: AddonProvisioningState; +} + +/** + * The properties of an SRM addon that may be updated + */ +export interface AddonSrmProperties { + /** + * The SRM license + */ + licenseKey?: string; +} + +/** + * An Azure NetApp Files volume from Microsoft.NetApp provider + */ +export interface NetAppVolume { + /** + * IP address of the NFS provider + */ + nfsProviderIp?: string; + /** + * File path through which the NFS volume is exposed by the provider + */ + nfsFilePath?: string; +} + +/** + * An iSCSI volume from Microsoft.StoragePool provider + */ +export interface DiskPoolVolume { + /** + * iSCSI provider target IP address list + */ + endpoints?: string[]; + /** + * Name of the LUN to be used + */ + lunName?: string; +} + +/** + * A datastore resource + */ +export interface Datastore extends Resource { + /** + * The state of the datastore provisioning. Possible values include: 'Succeeded', 'Failed', + * 'Cancelled', 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: DatastoreProvisioningState; + /** + * An Azure NetApp Files volume + */ + netAppVolume?: NetAppVolume; + /** + * An iSCSI volume + */ + diskPoolVolume?: DiskPoolVolume; +} + /** * Administrative credentials for accessing vCenter and NSX-T */ @@ -505,166 +754,2113 @@ export interface HcxEnterpriseSite extends Resource { } /** - * Optional Parameters. + * A global reach connection resource */ -export interface ClustersUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface GlobalReachConnection extends Resource { /** - * The cluster size + * The state of the ExpressRoute Circuit Authorization provisioning. Possible values include: + * 'Succeeded', 'Failed', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - clusterSize?: number; + readonly provisioningState?: GlobalReachConnectionProvisioningState; + /** + * The network used for global reach carved out from the original network block provided for the + * private cloud + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly addressPrefix?: string; + /** + * Authorization key from the peer express route used for the global reach connection + */ + authorizationKey?: string; + /** + * The connection status of the global reach connection. Possible values include: 'Connected', + * 'Connecting', 'Disconnected' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly circuitConnectionStatus?: GlobalReachConnectionStatus; + /** + * Identifier of the ExpressRoute Circuit to peer with in the global reach connection + */ + peerExpressRouteCircuit?: string; } /** - * Optional Parameters. + * Subnet configuration for segment */ -export interface ClustersBeginUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface WorkloadNetworkSegmentSubnet { /** - * The cluster size + * DHCP Range assigned for subnet. */ - clusterSize?: number; + dhcpRanges?: string[]; + /** + * Gateway address. + */ + gatewayAddress?: string; } /** - * An interface representing AvsClientOptions. + * Ports and any VIF attached to segment. */ -export interface AvsClientOptions extends AzureServiceClientOptions { - baseUri?: string; +export interface WorkloadNetworkSegmentPortVif { + /** + * Name of port or VIF attached to segment. + */ + portName?: string; } /** - * @interface - * Pageable list of operations - * @extends Array + * NSX Segment */ -export interface OperationList extends Array { +export interface WorkloadNetworkSegment extends ProxyResource { /** - * URL to get the next page if any + * Display name of the segment. + */ + displayName?: string; + /** + * Gateway which to connect segment to. + */ + connectedGateway?: string; + /** + * Subnet which to connect segment to. + */ + subnet?: WorkloadNetworkSegmentSubnet; + /** + * Port Vif which segment is associated with. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly nextLink?: string; + readonly portVif?: WorkloadNetworkSegmentPortVif[]; + /** + * Segment status. Possible values include: 'SUCCESS, FAILURE' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: SegmentStatusEnum; + /** + * The provisioning state. Possible values include: 'Succeeded', 'Failed', 'Building', + * 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: WorkloadNetworkSegmentProvisioningState; + /** + * NSX revision number. + */ + revision?: number; +} + +/** + * Contains the possible cases for WorkloadNetworkDhcpEntity. + */ +export type WorkloadNetworkDhcpEntityUnion = WorkloadNetworkDhcpEntity | WorkloadNetworkDhcpServer | WorkloadNetworkDhcpRelay; + +/** + * Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to inherit from + */ +export interface WorkloadNetworkDhcpEntity { + /** + * Polymorphic Discriminator + */ + dhcpType: "WorkloadNetworkDhcpEntity"; + /** + * Display name of the DHCP entity. + */ + displayName?: string; + /** + * NSX Segments consuming DHCP. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly segments?: string[]; + /** + * The provisioning state. Possible values include: 'Succeeded', 'Failed', 'Building', + * 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: WorkloadNetworkDhcpProvisioningState; + /** + * NSX revision number. + */ + revision?: number; +} + +/** + * NSX DHCP Server + */ +export interface WorkloadNetworkDhcpServer { + /** + * Polymorphic Discriminator + */ + dhcpType: "SERVER"; + /** + * Display name of the DHCP entity. + */ + displayName?: string; + /** + * NSX Segments consuming DHCP. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly segments?: string[]; + /** + * The provisioning state. Possible values include: 'Succeeded', 'Failed', 'Building', + * 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: WorkloadNetworkDhcpProvisioningState; + /** + * NSX revision number. + */ + revision?: number; + /** + * DHCP Server Address. + */ + serverAddress?: string; + /** + * DHCP Server Lease Time. + */ + leaseTime?: number; } /** - * @interface - * A paged list of private clouds - * @extends Array + * NSX DHCP Relay + */ +export interface WorkloadNetworkDhcpRelay { + /** + * Polymorphic Discriminator + */ + dhcpType: "RELAY"; + /** + * Display name of the DHCP entity. + */ + displayName?: string; + /** + * NSX Segments consuming DHCP. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly segments?: string[]; + /** + * The provisioning state. Possible values include: 'Succeeded', 'Failed', 'Building', + * 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: WorkloadNetworkDhcpProvisioningState; + /** + * NSX revision number. + */ + revision?: number; + /** + * DHCP Relay Addresses. Max 3. + */ + serverAddresses?: string[]; +} + +/** + * NSX DHCP + */ +export interface WorkloadNetworkDhcp extends ProxyResource { + /** + * Display name of the DHCP entity. + */ + displayName?: string; + /** + * NSX Segments consuming DHCP. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly segments?: string[]; + /** + * The provisioning state. Possible values include: 'Succeeded', 'Failed', 'Building', + * 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: WorkloadNetworkDhcpProvisioningState; + /** + * NSX revision number. + */ + revision?: number; + /** + * Polymorphic Discriminator + */ + dhcpType: string; +} + +/** + * NSX Port Mirroring + */ +export interface WorkloadNetworkPortMirroring extends ProxyResource { + /** + * Display name of the port mirroring profile. + */ + displayName?: string; + /** + * Direction of port mirroring profile. Possible values include: 'INGRESS, EGRESS, BIDIRECTIONAL' + */ + direction?: PortMirroringDirectionEnum; + /** + * Source VM Group. + */ + source?: string; + /** + * Destination VM Group. + */ + destination?: string; + /** + * Port Mirroring Status. Possible values include: 'SUCCESS, FAILURE' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: PortMirroringStatusEnum; + /** + * The provisioning state. Possible values include: 'Succeeded', 'Failed', 'Building', + * 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: WorkloadNetworkPortMirroringProvisioningState; + /** + * NSX revision number. + */ + revision?: number; +} + +/** + * NSX VM Group + */ +export interface WorkloadNetworkVMGroup extends ProxyResource { + /** + * Display name of the VM group. + */ + displayName?: string; + /** + * Virtual machine members of this group. + */ + members?: string[]; + /** + * VM Group status. Possible values include: 'SUCCESS, FAILURE' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: VMGroupStatusEnum; + /** + * The provisioning state. Possible values include: 'Succeeded', 'Failed', 'Building', + * 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: WorkloadNetworkVMGroupProvisioningState; + /** + * NSX revision number. + */ + revision?: number; +} + +/** + * NSX Virtual Machine + */ +export interface WorkloadNetworkVirtualMachine extends ProxyResource { + /** + * Display name of the VM. + */ + displayName?: string; + /** + * Virtual machine type. Possible values include: 'REGULAR, EDGE, SERVICE' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vmType?: VMTypeEnum; +} + +/** + * NSX Gateway. + */ +export interface WorkloadNetworkGateway extends ProxyResource { + /** + * Display name of the DHCP entity. + */ + displayName?: string; + /** + * NSX Gateway Path. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly path?: string; +} + +/** + * NSX DNS Service + */ +export interface WorkloadNetworkDnsService extends ProxyResource { + /** + * Display name of the DNS Service. + */ + displayName?: string; + /** + * DNS service IP of the DNS Service. + */ + dnsServiceIp?: string; + /** + * Default DNS zone of the DNS Service. + */ + defaultDnsZone?: string; + /** + * FQDN zones of the DNS Service. + */ + fqdnZones?: string[]; + /** + * DNS Service log level. Possible values include: 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'FATAL' + */ + logLevel?: DnsServiceLogLevelEnum; + /** + * DNS Service status. Possible values include: 'SUCCESS', 'FAILURE' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: DnsServiceStatusEnum; + /** + * The provisioning state. Possible values include: 'Succeeded', 'Failed', 'Building', + * 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: WorkloadNetworkDnsServiceProvisioningState; + /** + * NSX revision number. + */ + revision?: number; +} + +/** + * NSX DNS Zone + */ +export interface WorkloadNetworkDnsZone extends ProxyResource { + /** + * Display name of the DNS Zone. + */ + displayName?: string; + /** + * Domain names of the DNS Zone. + */ + domain?: string[]; + /** + * DNS Server IP array of the DNS Zone. + */ + dnsServerIps?: string[]; + /** + * Source IP of the DNS Zone. + */ + sourceIp?: string; + /** + * Number of DNS Services using the DNS zone. + */ + dnsServices?: number; + /** + * The provisioning state. Possible values include: 'Succeeded', 'Failed', 'Building', + * 'Deleting', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: WorkloadNetworkDnsZoneProvisioningState; + /** + * NSX revision number. + */ + revision?: number; +} + +/** + * Optional Parameters. + */ +export interface ClustersUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The cluster size + */ + clusterSize?: number; +} + +/** + * Optional Parameters. + */ +export interface ClustersBeginUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * The cluster size + */ + clusterSize?: number; +} + +/** + * An interface representing AvsClientOptions. + */ +export interface AvsClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * Pageable list of operations + * @extends Array + */ +export interface OperationList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A paged list of private clouds + * @extends Array + */ +export interface PrivateCloudList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A paged list of clusters + * @extends Array + */ +export interface ClusterList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A paged list of datastores + * @extends Array + */ +export interface DatastoreList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A paged list of HCX Enterprise Sites + * @extends Array + */ +export interface HcxEnterpriseSiteList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A paged list of ExpressRoute Circuit Authorizations + * @extends Array + */ +export interface ExpressRouteAuthorizationList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A paged list of global reach connections + * @extends Array + */ +export interface GlobalReachConnectionList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of NSX Segments + * @extends Array + */ +export interface WorkloadNetworkSegmentsList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of NSX dhcp entities + * @extends Array + */ +export interface WorkloadNetworkDhcpList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of NSX Gateways + * @extends Array + */ +export interface WorkloadNetworkGatewayList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of NSX Port Mirroring + * @extends Array + */ +export interface WorkloadNetworkPortMirroringList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of NSX VM Groups + * @extends Array + */ +export interface WorkloadNetworkVMGroupsList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of NSX Virtual Machines + * @extends Array + */ +export interface WorkloadNetworkVirtualMachinesList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of NSX DNS Services + * @extends Array + */ +export interface WorkloadNetworkDnsServicesList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A list of NSX DNS Zones + * @extends Array + */ +export interface WorkloadNetworkDnsZonesList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * A paged list of addons + * @extends Array + */ +export interface AddonList extends Array { + /** + * URL to get the next page if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * Defines values for TrialStatus. + * Possible values include: 'TrialAvailable', 'TrialUsed', 'TrialDisabled' + * @readonly + * @enum {string} + */ +export type TrialStatus = 'TrialAvailable' | 'TrialUsed' | 'TrialDisabled'; + +/** + * Defines values for QuotaEnabled. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type QuotaEnabled = 'Enabled' | 'Disabled'; + +/** + * Defines values for ExpressRouteAuthorizationProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Updating' + * @readonly + * @enum {string} + */ +export type ExpressRouteAuthorizationProvisioningState = 'Succeeded' | 'Failed' | 'Updating'; + +/** + * Defines values for SslEnum. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type SslEnum = 'Enabled' | 'Disabled'; + +/** + * Defines values for PrivateCloudProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Pending', 'Building', 'Deleting', + * 'Updating' + * @readonly + * @enum {string} + */ +export type PrivateCloudProvisioningState = 'Succeeded' | 'Failed' | 'Cancelled' | 'Pending' | 'Building' | 'Deleting' | 'Updating'; + +/** + * Defines values for InternetEnum. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type InternetEnum = 'Enabled' | 'Disabled'; + +/** + * Defines values for ClusterProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating' + * @readonly + * @enum {string} + */ +export type ClusterProvisioningState = 'Succeeded' | 'Failed' | 'Cancelled' | 'Deleting' | 'Updating'; + +/** + * Defines values for AddonType. + * Possible values include: 'SRM', 'VR' + * @readonly + * @enum {string} + */ +export type AddonType = 'SRM' | 'VR'; + +/** + * Defines values for AddonProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Building', 'Deleting', 'Updating' + * @readonly + * @enum {string} + */ +export type AddonProvisioningState = 'Succeeded' | 'Failed' | 'Cancelled' | 'Building' | 'Deleting' | 'Updating'; + +/** + * Defines values for DatastoreProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating' + * @readonly + * @enum {string} + */ +export type DatastoreProvisioningState = 'Succeeded' | 'Failed' | 'Cancelled' | 'Deleting' | 'Updating'; + +/** + * Defines values for HcxEnterpriseSiteStatus. + * Possible values include: 'Available', 'Consumed', 'Deactivated', 'Deleted' + * @readonly + * @enum {string} + */ +export type HcxEnterpriseSiteStatus = 'Available' | 'Consumed' | 'Deactivated' | 'Deleted'; + +/** + * Defines values for GlobalReachConnectionProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Updating' + * @readonly + * @enum {string} + */ +export type GlobalReachConnectionProvisioningState = 'Succeeded' | 'Failed' | 'Updating'; + +/** + * Defines values for GlobalReachConnectionStatus. + * Possible values include: 'Connected', 'Connecting', 'Disconnected' + * @readonly + * @enum {string} + */ +export type GlobalReachConnectionStatus = 'Connected' | 'Connecting' | 'Disconnected'; + +/** + * Defines values for SegmentStatusEnum. + * Possible values include: 'SUCCESS, FAILURE' + * @readonly + * @enum {string} + */ +export type SegmentStatusEnum = 'SUCCESS, FAILURE'; + +/** + * Defines values for WorkloadNetworkSegmentProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Building', 'Deleting', 'Updating' + * @readonly + * @enum {string} + */ +export type WorkloadNetworkSegmentProvisioningState = 'Succeeded' | 'Failed' | 'Building' | 'Deleting' | 'Updating'; + +/** + * Defines values for WorkloadNetworkDhcpProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Building', 'Deleting', 'Updating' + * @readonly + * @enum {string} + */ +export type WorkloadNetworkDhcpProvisioningState = 'Succeeded' | 'Failed' | 'Building' | 'Deleting' | 'Updating'; + +/** + * Defines values for PortMirroringDirectionEnum. + * Possible values include: 'INGRESS, EGRESS, BIDIRECTIONAL' + * @readonly + * @enum {string} + */ +export type PortMirroringDirectionEnum = 'INGRESS, EGRESS, BIDIRECTIONAL'; + +/** + * Defines values for PortMirroringStatusEnum. + * Possible values include: 'SUCCESS, FAILURE' + * @readonly + * @enum {string} + */ +export type PortMirroringStatusEnum = 'SUCCESS, FAILURE'; + +/** + * Defines values for WorkloadNetworkPortMirroringProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Building', 'Deleting', 'Updating' + * @readonly + * @enum {string} + */ +export type WorkloadNetworkPortMirroringProvisioningState = 'Succeeded' | 'Failed' | 'Building' | 'Deleting' | 'Updating'; + +/** + * Defines values for VMGroupStatusEnum. + * Possible values include: 'SUCCESS, FAILURE' + * @readonly + * @enum {string} + */ +export type VMGroupStatusEnum = 'SUCCESS, FAILURE'; + +/** + * Defines values for WorkloadNetworkVMGroupProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Building', 'Deleting', 'Updating' + * @readonly + * @enum {string} + */ +export type WorkloadNetworkVMGroupProvisioningState = 'Succeeded' | 'Failed' | 'Building' | 'Deleting' | 'Updating'; + +/** + * Defines values for VMTypeEnum. + * Possible values include: 'REGULAR, EDGE, SERVICE' + * @readonly + * @enum {string} + */ +export type VMTypeEnum = 'REGULAR, EDGE, SERVICE'; + +/** + * Defines values for DnsServiceLogLevelEnum. + * Possible values include: 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'FATAL' + * @readonly + * @enum {string} + */ +export type DnsServiceLogLevelEnum = 'DEBUG' | 'INFO' | 'WARNING' | 'ERROR' | 'FATAL'; + +/** + * Defines values for DnsServiceStatusEnum. + * Possible values include: 'SUCCESS', 'FAILURE' + * @readonly + * @enum {string} + */ +export type DnsServiceStatusEnum = 'SUCCESS' | 'FAILURE'; + +/** + * Defines values for WorkloadNetworkDnsServiceProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Building', 'Deleting', 'Updating' + * @readonly + * @enum {string} + */ +export type WorkloadNetworkDnsServiceProvisioningState = 'Succeeded' | 'Failed' | 'Building' | 'Deleting' | 'Updating'; + +/** + * Defines values for WorkloadNetworkDnsZoneProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Building', 'Deleting', 'Updating' + * @readonly + * @enum {string} + */ +export type WorkloadNetworkDnsZoneProvisioningState = 'Succeeded' | 'Failed' | 'Building' | 'Deleting' | 'Updating'; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = OperationList & { + /** + * 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: OperationList; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type OperationsListNextResponse = OperationList & { + /** + * 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: OperationList; + }; +}; + +/** + * Contains response data for the checkTrialAvailability operation. + */ +export type LocationsCheckTrialAvailabilityResponse = Trial & { + /** + * 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: Trial; + }; +}; + +/** + * Contains response data for the checkQuotaAvailability operation. + */ +export type LocationsCheckQuotaAvailabilityResponse = Quota & { + /** + * 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: Quota; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type PrivateCloudsListResponse = PrivateCloudList & { + /** + * 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: PrivateCloudList; + }; +}; + +/** + * Contains response data for the listInSubscription operation. + */ +export type PrivateCloudsListInSubscriptionResponse = PrivateCloudList & { + /** + * 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: PrivateCloudList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PrivateCloudsGetResponse = PrivateCloud & { + /** + * 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: PrivateCloud; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type PrivateCloudsCreateOrUpdateResponse = PrivateCloud & { + /** + * 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: PrivateCloud; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type PrivateCloudsUpdateResponse = PrivateCloud & { + /** + * 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: PrivateCloud; + }; +}; + +/** + * Contains response data for the listAdminCredentials operation. + */ +export type PrivateCloudsListAdminCredentialsResponse = AdminCredentials & { + /** + * 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: AdminCredentials; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type PrivateCloudsBeginCreateOrUpdateResponse = PrivateCloud & { + /** + * 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: PrivateCloud; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type PrivateCloudsBeginUpdateResponse = PrivateCloud & { + /** + * 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: PrivateCloud; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type PrivateCloudsListNextResponse = PrivateCloudList & { + /** + * 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: PrivateCloudList; + }; +}; + +/** + * Contains response data for the listInSubscriptionNext operation. + */ +export type PrivateCloudsListInSubscriptionNextResponse = PrivateCloudList & { + /** + * 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: PrivateCloudList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ClustersListResponse = ClusterList & { + /** + * 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: ClusterList; + }; +}; + +/** + * Contains response data for the get operation. + */ +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; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ClustersCreateOrUpdateResponse = 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; + }; +}; + +/** + * Contains response data for the update operation. + */ +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; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type ClustersBeginCreateOrUpdateResponse = 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; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type ClustersBeginUpdateResponse = 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; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ClustersListNextResponse = ClusterList & { + /** + * 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: ClusterList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type DatastoresListResponse = DatastoreList & { + /** + * 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: DatastoreList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DatastoresGetResponse = Datastore & { + /** + * 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: Datastore; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type DatastoresCreateResponse = Datastore & { + /** + * 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: Datastore; + }; +}; + +/** + * Contains response data for the beginCreate operation. + */ +export type DatastoresBeginCreateResponse = Datastore & { + /** + * 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: Datastore; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type DatastoresListNextResponse = DatastoreList & { + /** + * 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: DatastoreList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type HcxEnterpriseSitesListResponse = HcxEnterpriseSiteList & { + /** + * 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: HcxEnterpriseSiteList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type HcxEnterpriseSitesGetResponse = HcxEnterpriseSite & { + /** + * 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: HcxEnterpriseSite; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type HcxEnterpriseSitesCreateOrUpdateResponse = HcxEnterpriseSite & { + /** + * 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: HcxEnterpriseSite; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type HcxEnterpriseSitesListNextResponse = HcxEnterpriseSiteList & { + /** + * 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: HcxEnterpriseSiteList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type AuthorizationsListResponse = ExpressRouteAuthorizationList & { + /** + * 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: ExpressRouteAuthorizationList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type AuthorizationsGetResponse = ExpressRouteAuthorization & { + /** + * 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: ExpressRouteAuthorization; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type AuthorizationsCreateOrUpdateResponse = ExpressRouteAuthorization & { + /** + * 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: ExpressRouteAuthorization; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type AuthorizationsBeginCreateOrUpdateResponse = ExpressRouteAuthorization & { + /** + * 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: ExpressRouteAuthorization; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type AuthorizationsListNextResponse = ExpressRouteAuthorizationList & { + /** + * 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: ExpressRouteAuthorizationList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type GlobalReachConnectionsListResponse = GlobalReachConnectionList & { + /** + * 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: GlobalReachConnectionList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type GlobalReachConnectionsGetResponse = GlobalReachConnection & { + /** + * 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: GlobalReachConnection; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type GlobalReachConnectionsCreateOrUpdateResponse = GlobalReachConnection & { + /** + * 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: GlobalReachConnection; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type GlobalReachConnectionsBeginCreateOrUpdateResponse = GlobalReachConnection & { + /** + * 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: GlobalReachConnection; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type GlobalReachConnectionsListNextResponse = GlobalReachConnectionList & { + /** + * 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: GlobalReachConnectionList; + }; +}; + +/** + * Contains response data for the listSegments operation. + */ +export type WorkloadNetworksListSegmentsResponse = WorkloadNetworkSegmentsList & { + /** + * 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: WorkloadNetworkSegmentsList; + }; +}; + +/** + * Contains response data for the getSegment operation. + */ +export type WorkloadNetworksGetSegmentResponse = WorkloadNetworkSegment & { + /** + * 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: WorkloadNetworkSegment; + }; +}; + +/** + * Contains response data for the createSegments operation. + */ +export type WorkloadNetworksCreateSegmentsResponse = WorkloadNetworkSegment & { + /** + * 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: WorkloadNetworkSegment; + }; +}; + +/** + * Contains response data for the updateSegments operation. + */ +export type WorkloadNetworksUpdateSegmentsResponse = WorkloadNetworkSegment & { + /** + * 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: WorkloadNetworkSegment; + }; +}; + +/** + * Contains response data for the listDhcp operation. + */ +export type WorkloadNetworksListDhcpResponse = WorkloadNetworkDhcpList & { + /** + * 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: WorkloadNetworkDhcpList; + }; +}; + +/** + * Contains response data for the getDhcp operation. + */ +export type WorkloadNetworksGetDhcpResponse = WorkloadNetworkDhcp & { + /** + * 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: WorkloadNetworkDhcp; + }; +}; + +/** + * Contains response data for the createDhcp operation. + */ +export type WorkloadNetworksCreateDhcpResponse = WorkloadNetworkDhcp & { + /** + * 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: WorkloadNetworkDhcp; + }; +}; + +/** + * Contains response data for the updateDhcp operation. + */ +export type WorkloadNetworksUpdateDhcpResponse = WorkloadNetworkDhcp & { + /** + * 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: WorkloadNetworkDhcp; + }; +}; + +/** + * Contains response data for the listGateways operation. + */ +export type WorkloadNetworksListGatewaysResponse = WorkloadNetworkGatewayList & { + /** + * 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: WorkloadNetworkGatewayList; + }; +}; + +/** + * Contains response data for the getGateway operation. + */ +export type WorkloadNetworksGetGatewayResponse = WorkloadNetworkGateway & { + /** + * 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: WorkloadNetworkGateway; + }; +}; + +/** + * Contains response data for the listPortMirroring operation. + */ +export type WorkloadNetworksListPortMirroringResponse = WorkloadNetworkPortMirroringList & { + /** + * 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: WorkloadNetworkPortMirroringList; + }; +}; + +/** + * Contains response data for the getPortMirroring operation. + */ +export type WorkloadNetworksGetPortMirroringResponse = WorkloadNetworkPortMirroring & { + /** + * 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: WorkloadNetworkPortMirroring; + }; +}; + +/** + * Contains response data for the createPortMirroring operation. + */ +export type WorkloadNetworksCreatePortMirroringResponse = WorkloadNetworkPortMirroring & { + /** + * 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: WorkloadNetworkPortMirroring; + }; +}; + +/** + * Contains response data for the updatePortMirroring operation. + */ +export type WorkloadNetworksUpdatePortMirroringResponse = WorkloadNetworkPortMirroring & { + /** + * 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: WorkloadNetworkPortMirroring; + }; +}; + +/** + * Contains response data for the listVMGroups operation. + */ +export type WorkloadNetworksListVMGroupsResponse = WorkloadNetworkVMGroupsList & { + /** + * 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: WorkloadNetworkVMGroupsList; + }; +}; + +/** + * Contains response data for the getVMGroup operation. + */ +export type WorkloadNetworksGetVMGroupResponse = WorkloadNetworkVMGroup & { + /** + * 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: WorkloadNetworkVMGroup; + }; +}; + +/** + * Contains response data for the createVMGroup operation. */ -export interface PrivateCloudList extends Array { +export type WorkloadNetworksCreateVMGroupResponse = WorkloadNetworkVMGroup & { /** - * URL to get the next page if any - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkloadNetworkVMGroup; + }; +}; /** - * @interface - * A paged list of clusters - * @extends Array + * Contains response data for the updateVMGroup operation. */ -export interface ClusterList extends Array { +export type WorkloadNetworksUpdateVMGroupResponse = WorkloadNetworkVMGroup & { /** - * URL to get the next page if any - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkloadNetworkVMGroup; + }; +}; /** - * @interface - * A paged list of HCX Enterprise Sites - * @extends Array + * Contains response data for the listVirtualMachines operation. */ -export interface HcxEnterpriseSiteList extends Array { +export type WorkloadNetworksListVirtualMachinesResponse = WorkloadNetworkVirtualMachinesList & { /** - * URL to get the next page if any - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkloadNetworkVirtualMachinesList; + }; +}; /** - * @interface - * A paged list of ExpressRoute Circuit Authorizations - * @extends Array + * Contains response data for the getVirtualMachine operation. */ -export interface ExpressRouteAuthorizationList extends Array { +export type WorkloadNetworksGetVirtualMachineResponse = WorkloadNetworkVirtualMachine & { /** - * URL to get the next page if any - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The underlying HTTP response. */ - readonly nextLink?: string; -} - -/** - * Defines values for TrialStatus. - * Possible values include: 'TrialAvailable', 'TrialUsed', 'TrialDisabled' - * @readonly - * @enum {string} - */ -export type TrialStatus = 'TrialAvailable' | 'TrialUsed' | 'TrialDisabled'; + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for QuotaEnabled. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type QuotaEnabled = 'Enabled' | 'Disabled'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkloadNetworkVirtualMachine; + }; +}; /** - * Defines values for ExpressRouteAuthorizationProvisioningState. - * Possible values include: 'Succeeded', 'Failed', 'Updating' - * @readonly - * @enum {string} + * Contains response data for the listDnsServices operation. */ -export type ExpressRouteAuthorizationProvisioningState = 'Succeeded' | 'Failed' | 'Updating'; +export type WorkloadNetworksListDnsServicesResponse = WorkloadNetworkDnsServicesList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for SslEnum. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type SslEnum = 'Enabled' | 'Disabled'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkloadNetworkDnsServicesList; + }; +}; /** - * Defines values for PrivateCloudProvisioningState. - * Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Pending', 'Building', 'Deleting', - * 'Updating' - * @readonly - * @enum {string} + * Contains response data for the getDnsService operation. */ -export type PrivateCloudProvisioningState = 'Succeeded' | 'Failed' | 'Cancelled' | 'Pending' | 'Building' | 'Deleting' | 'Updating'; +export type WorkloadNetworksGetDnsServiceResponse = WorkloadNetworkDnsService & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for InternetEnum. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type InternetEnum = 'Enabled' | 'Disabled'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkloadNetworkDnsService; + }; +}; /** - * Defines values for ClusterProvisioningState. - * Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating' - * @readonly - * @enum {string} + * Contains response data for the createDnsService operation. */ -export type ClusterProvisioningState = 'Succeeded' | 'Failed' | 'Cancelled' | 'Deleting' | 'Updating'; +export type WorkloadNetworksCreateDnsServiceResponse = WorkloadNetworkDnsService & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for HcxEnterpriseSiteStatus. - * Possible values include: 'Available', 'Consumed', 'Deactivated', 'Deleted' - * @readonly - * @enum {string} - */ -export type HcxEnterpriseSiteStatus = 'Available' | 'Consumed' | 'Deactivated' | 'Deleted'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkloadNetworkDnsService; + }; +}; /** - * Contains response data for the list operation. + * Contains response data for the updateDnsService operation. */ -export type OperationsListResponse = OperationList & { +export type WorkloadNetworksUpdateDnsServiceResponse = WorkloadNetworkDnsService & { /** * The underlying HTTP response. */ @@ -677,14 +2873,14 @@ export type OperationsListResponse = OperationList & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationList; + parsedBody: WorkloadNetworkDnsService; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listDnsZones operation. */ -export type OperationsListNextResponse = OperationList & { +export type WorkloadNetworksListDnsZonesResponse = WorkloadNetworkDnsZonesList & { /** * The underlying HTTP response. */ @@ -697,14 +2893,14 @@ export type OperationsListNextResponse = OperationList & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationList; + parsedBody: WorkloadNetworkDnsZonesList; }; }; /** - * Contains response data for the checkTrialAvailability operation. + * Contains response data for the getDnsZone operation. */ -export type LocationsCheckTrialAvailabilityResponse = Trial & { +export type WorkloadNetworksGetDnsZoneResponse = WorkloadNetworkDnsZone & { /** * The underlying HTTP response. */ @@ -717,14 +2913,14 @@ export type LocationsCheckTrialAvailabilityResponse = Trial & { /** * The response body as parsed JSON or XML */ - parsedBody: Trial; + parsedBody: WorkloadNetworkDnsZone; }; }; /** - * Contains response data for the checkQuotaAvailability operation. + * Contains response data for the createDnsZone operation. */ -export type LocationsCheckQuotaAvailabilityResponse = Quota & { +export type WorkloadNetworksCreateDnsZoneResponse = WorkloadNetworkDnsZone & { /** * The underlying HTTP response. */ @@ -737,14 +2933,14 @@ export type LocationsCheckQuotaAvailabilityResponse = Quota & { /** * The response body as parsed JSON or XML */ - parsedBody: Quota; + parsedBody: WorkloadNetworkDnsZone; }; }; /** - * Contains response data for the list operation. + * Contains response data for the updateDnsZone operation. */ -export type PrivateCloudsListResponse = PrivateCloudList & { +export type WorkloadNetworksUpdateDnsZoneResponse = WorkloadNetworkDnsZone & { /** * The underlying HTTP response. */ @@ -757,14 +2953,14 @@ export type PrivateCloudsListResponse = PrivateCloudList & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloudList; + parsedBody: WorkloadNetworkDnsZone; }; }; /** - * Contains response data for the listInSubscription operation. + * Contains response data for the beginCreateSegments operation. */ -export type PrivateCloudsListInSubscriptionResponse = PrivateCloudList & { +export type WorkloadNetworksBeginCreateSegmentsResponse = WorkloadNetworkSegment & { /** * The underlying HTTP response. */ @@ -777,14 +2973,14 @@ export type PrivateCloudsListInSubscriptionResponse = PrivateCloudList & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloudList; + parsedBody: WorkloadNetworkSegment; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginUpdateSegments operation. */ -export type PrivateCloudsGetResponse = PrivateCloud & { +export type WorkloadNetworksBeginUpdateSegmentsResponse = WorkloadNetworkSegment & { /** * The underlying HTTP response. */ @@ -797,14 +2993,14 @@ export type PrivateCloudsGetResponse = PrivateCloud & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloud; + parsedBody: WorkloadNetworkSegment; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateDhcp operation. */ -export type PrivateCloudsCreateOrUpdateResponse = PrivateCloud & { +export type WorkloadNetworksBeginCreateDhcpResponse = WorkloadNetworkDhcp & { /** * The underlying HTTP response. */ @@ -817,14 +3013,14 @@ export type PrivateCloudsCreateOrUpdateResponse = PrivateCloud & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloud; + parsedBody: WorkloadNetworkDhcp; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginUpdateDhcp operation. */ -export type PrivateCloudsUpdateResponse = PrivateCloud & { +export type WorkloadNetworksBeginUpdateDhcpResponse = WorkloadNetworkDhcp & { /** * The underlying HTTP response. */ @@ -837,14 +3033,14 @@ export type PrivateCloudsUpdateResponse = PrivateCloud & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloud; + parsedBody: WorkloadNetworkDhcp; }; }; /** - * Contains response data for the listAdminCredentials operation. + * Contains response data for the beginCreatePortMirroring operation. */ -export type PrivateCloudsListAdminCredentialsResponse = AdminCredentials & { +export type WorkloadNetworksBeginCreatePortMirroringResponse = WorkloadNetworkPortMirroring & { /** * The underlying HTTP response. */ @@ -857,14 +3053,14 @@ export type PrivateCloudsListAdminCredentialsResponse = AdminCredentials & { /** * The response body as parsed JSON or XML */ - parsedBody: AdminCredentials; + parsedBody: WorkloadNetworkPortMirroring; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the beginUpdatePortMirroring operation. */ -export type PrivateCloudsBeginCreateOrUpdateResponse = PrivateCloud & { +export type WorkloadNetworksBeginUpdatePortMirroringResponse = WorkloadNetworkPortMirroring & { /** * The underlying HTTP response. */ @@ -877,14 +3073,14 @@ export type PrivateCloudsBeginCreateOrUpdateResponse = PrivateCloud & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloud; + parsedBody: WorkloadNetworkPortMirroring; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the beginCreateVMGroup operation. */ -export type PrivateCloudsBeginUpdateResponse = PrivateCloud & { +export type WorkloadNetworksBeginCreateVMGroupResponse = WorkloadNetworkVMGroup & { /** * The underlying HTTP response. */ @@ -897,14 +3093,14 @@ export type PrivateCloudsBeginUpdateResponse = PrivateCloud & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloud; + parsedBody: WorkloadNetworkVMGroup; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the beginUpdateVMGroup operation. */ -export type PrivateCloudsListNextResponse = PrivateCloudList & { +export type WorkloadNetworksBeginUpdateVMGroupResponse = WorkloadNetworkVMGroup & { /** * The underlying HTTP response. */ @@ -917,14 +3113,14 @@ export type PrivateCloudsListNextResponse = PrivateCloudList & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloudList; + parsedBody: WorkloadNetworkVMGroup; }; }; /** - * Contains response data for the listInSubscriptionNext operation. + * Contains response data for the beginCreateDnsService operation. */ -export type PrivateCloudsListInSubscriptionNextResponse = PrivateCloudList & { +export type WorkloadNetworksBeginCreateDnsServiceResponse = WorkloadNetworkDnsService & { /** * The underlying HTTP response. */ @@ -937,14 +3133,14 @@ export type PrivateCloudsListInSubscriptionNextResponse = PrivateCloudList & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloudList; + parsedBody: WorkloadNetworkDnsService; }; }; /** - * Contains response data for the list operation. + * Contains response data for the beginUpdateDnsService operation. */ -export type ClustersListResponse = ClusterList & { +export type WorkloadNetworksBeginUpdateDnsServiceResponse = WorkloadNetworkDnsService & { /** * The underlying HTTP response. */ @@ -957,14 +3153,14 @@ export type ClustersListResponse = ClusterList & { /** * The response body as parsed JSON or XML */ - parsedBody: ClusterList; + parsedBody: WorkloadNetworkDnsService; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateDnsZone operation. */ -export type ClustersGetResponse = Cluster & { +export type WorkloadNetworksBeginCreateDnsZoneResponse = WorkloadNetworkDnsZone & { /** * The underlying HTTP response. */ @@ -977,14 +3173,14 @@ export type ClustersGetResponse = Cluster & { /** * The response body as parsed JSON or XML */ - parsedBody: Cluster; + parsedBody: WorkloadNetworkDnsZone; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginUpdateDnsZone operation. */ -export type ClustersCreateOrUpdateResponse = Cluster & { +export type WorkloadNetworksBeginUpdateDnsZoneResponse = WorkloadNetworkDnsZone & { /** * The underlying HTTP response. */ @@ -997,14 +3193,14 @@ export type ClustersCreateOrUpdateResponse = Cluster & { /** * The response body as parsed JSON or XML */ - parsedBody: Cluster; + parsedBody: WorkloadNetworkDnsZone; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listSegmentsNext operation. */ -export type ClustersUpdateResponse = Cluster & { +export type WorkloadNetworksListSegmentsNextResponse = WorkloadNetworkSegmentsList & { /** * The underlying HTTP response. */ @@ -1017,14 +3213,14 @@ export type ClustersUpdateResponse = Cluster & { /** * The response body as parsed JSON or XML */ - parsedBody: Cluster; + parsedBody: WorkloadNetworkSegmentsList; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listDhcpNext operation. */ -export type ClustersBeginCreateOrUpdateResponse = Cluster & { +export type WorkloadNetworksListDhcpNextResponse = WorkloadNetworkDhcpList & { /** * The underlying HTTP response. */ @@ -1037,14 +3233,14 @@ export type ClustersBeginCreateOrUpdateResponse = Cluster & { /** * The response body as parsed JSON or XML */ - parsedBody: Cluster; + parsedBody: WorkloadNetworkDhcpList; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listGatewaysNext operation. */ -export type ClustersBeginUpdateResponse = Cluster & { +export type WorkloadNetworksListGatewaysNextResponse = WorkloadNetworkGatewayList & { /** * The underlying HTTP response. */ @@ -1057,14 +3253,14 @@ export type ClustersBeginUpdateResponse = Cluster & { /** * The response body as parsed JSON or XML */ - parsedBody: Cluster; + parsedBody: WorkloadNetworkGatewayList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listPortMirroringNext operation. */ -export type ClustersListNextResponse = ClusterList & { +export type WorkloadNetworksListPortMirroringNextResponse = WorkloadNetworkPortMirroringList & { /** * The underlying HTTP response. */ @@ -1077,14 +3273,14 @@ export type ClustersListNextResponse = ClusterList & { /** * The response body as parsed JSON or XML */ - parsedBody: ClusterList; + parsedBody: WorkloadNetworkPortMirroringList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listVMGroupsNext operation. */ -export type HcxEnterpriseSitesListResponse = HcxEnterpriseSiteList & { +export type WorkloadNetworksListVMGroupsNextResponse = WorkloadNetworkVMGroupsList & { /** * The underlying HTTP response. */ @@ -1097,14 +3293,14 @@ export type HcxEnterpriseSitesListResponse = HcxEnterpriseSiteList & { /** * The response body as parsed JSON or XML */ - parsedBody: HcxEnterpriseSiteList; + parsedBody: WorkloadNetworkVMGroupsList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listVirtualMachinesNext operation. */ -export type HcxEnterpriseSitesGetResponse = HcxEnterpriseSite & { +export type WorkloadNetworksListVirtualMachinesNextResponse = WorkloadNetworkVirtualMachinesList & { /** * The underlying HTTP response. */ @@ -1117,14 +3313,14 @@ export type HcxEnterpriseSitesGetResponse = HcxEnterpriseSite & { /** * The response body as parsed JSON or XML */ - parsedBody: HcxEnterpriseSite; + parsedBody: WorkloadNetworkVirtualMachinesList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listDnsServicesNext operation. */ -export type HcxEnterpriseSitesCreateOrUpdateResponse = HcxEnterpriseSite & { +export type WorkloadNetworksListDnsServicesNextResponse = WorkloadNetworkDnsServicesList & { /** * The underlying HTTP response. */ @@ -1137,14 +3333,14 @@ export type HcxEnterpriseSitesCreateOrUpdateResponse = HcxEnterpriseSite & { /** * The response body as parsed JSON or XML */ - parsedBody: HcxEnterpriseSite; + parsedBody: WorkloadNetworkDnsServicesList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listDnsZonesNext operation. */ -export type HcxEnterpriseSitesListNextResponse = HcxEnterpriseSiteList & { +export type WorkloadNetworksListDnsZonesNextResponse = WorkloadNetworkDnsZonesList & { /** * The underlying HTTP response. */ @@ -1157,14 +3353,14 @@ export type HcxEnterpriseSitesListNextResponse = HcxEnterpriseSiteList & { /** * The response body as parsed JSON or XML */ - parsedBody: HcxEnterpriseSiteList; + parsedBody: WorkloadNetworkDnsZonesList; }; }; /** * Contains response data for the list operation. */ -export type AuthorizationsListResponse = ExpressRouteAuthorizationList & { +export type AddonsListResponse = AddonList & { /** * The underlying HTTP response. */ @@ -1177,14 +3373,14 @@ export type AuthorizationsListResponse = ExpressRouteAuthorizationList & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRouteAuthorizationList; + parsedBody: AddonList; }; }; /** * Contains response data for the get operation. */ -export type AuthorizationsGetResponse = ExpressRouteAuthorization & { +export type AddonsGetResponse = Addon & { /** * The underlying HTTP response. */ @@ -1197,14 +3393,14 @@ export type AuthorizationsGetResponse = ExpressRouteAuthorization & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRouteAuthorization; + parsedBody: Addon; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type AuthorizationsCreateOrUpdateResponse = ExpressRouteAuthorization & { +export type AddonsCreateOrUpdateResponse = Addon & { /** * The underlying HTTP response. */ @@ -1217,14 +3413,14 @@ export type AuthorizationsCreateOrUpdateResponse = ExpressRouteAuthorization & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRouteAuthorization; + parsedBody: Addon; }; }; /** * Contains response data for the beginCreateOrUpdate operation. */ -export type AuthorizationsBeginCreateOrUpdateResponse = ExpressRouteAuthorization & { +export type AddonsBeginCreateOrUpdateResponse = Addon & { /** * The underlying HTTP response. */ @@ -1237,14 +3433,14 @@ export type AuthorizationsBeginCreateOrUpdateResponse = ExpressRouteAuthorizatio /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRouteAuthorization; + parsedBody: Addon; }; }; /** * Contains response data for the listNext operation. */ -export type AuthorizationsListNextResponse = ExpressRouteAuthorizationList & { +export type AddonsListNextResponse = AddonList & { /** * The underlying HTTP response. */ @@ -1257,6 +3453,6 @@ export type AuthorizationsListNextResponse = ExpressRouteAuthorizationList & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRouteAuthorizationList; + parsedBody: AddonList; }; }; diff --git a/sdk/avs/arm-avs/src/models/locationsMappers.ts b/sdk/avs/arm-avs/src/models/locationsMappers.ts index 42d375510a29..b3717d115978 100644 --- a/sdk/avs/arm-avs/src/models/locationsMappers.ts +++ b/sdk/avs/arm-avs/src/models/locationsMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + discriminators, CloudError, ErrorAdditionalInfo, ErrorResponse, diff --git a/sdk/avs/arm-avs/src/models/mappers.ts b/sdk/avs/arm-avs/src/models/mappers.ts index a3e223e991ab..154750e8b9e3 100644 --- a/sdk/avs/arm-avs/src/models/mappers.ts +++ b/sdk/avs/arm-avs/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -124,6 +124,17 @@ export const TrackedResource: msRest.CompositeMapper = { } }; +export const ProxyResource: msRest.CompositeMapper = { + serializedName: "ProxyResource", + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + export const ErrorAdditionalInfo: msRest.CompositeMapper = { serializedName: "ErrorAdditionalInfo", type: { @@ -243,6 +254,223 @@ export const OperationDisplay: msRest.CompositeMapper = { } }; +export const LogSpecification: msRest.CompositeMapper = { + serializedName: "LogSpecification", + type: { + name: "Composite", + className: "LogSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" + } + } + } + } +}; + +export const MetricDimension: msRest.CompositeMapper = { + serializedName: "MetricDimension", + type: { + name: "Composite", + className: "MetricDimension", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + internalName: { + serializedName: "internalName", + type: { + name: "String" + } + }, + toBeExportedForShoebox: { + serializedName: "toBeExportedForShoebox", + type: { + name: "Boolean" + } + } + } + } +}; + +export const MetricSpecification: msRest.CompositeMapper = { + serializedName: "MetricSpecification", + type: { + name: "Composite", + className: "MetricSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + displayDescription: { + serializedName: "displayDescription", + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + category: { + serializedName: "category", + type: { + name: "String" + } + }, + aggregationType: { + serializedName: "aggregationType", + type: { + name: "String" + } + }, + supportedAggregationTypes: { + serializedName: "supportedAggregationTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + supportedTimeGrainTypes: { + serializedName: "supportedTimeGrainTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + fillGapWithZero: { + serializedName: "fillGapWithZero", + type: { + name: "Boolean" + } + }, + dimensions: { + serializedName: "dimensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricDimension" + } + } + } + }, + enableRegionalMdmAccount: { + serializedName: "enableRegionalMdmAccount", + type: { + name: "String" + } + }, + sourceMdmAccount: { + serializedName: "sourceMdmAccount", + type: { + name: "String" + } + }, + sourceMdmNamespace: { + serializedName: "sourceMdmNamespace", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceSpecification: msRest.CompositeMapper = { + serializedName: "ServiceSpecification", + type: { + name: "Composite", + className: "ServiceSpecification", + modelProperties: { + logSpecifications: { + serializedName: "logSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogSpecification" + } + } + } + }, + metricSpecifications: { + serializedName: "metricSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricSpecification" + } + } + } + } + } + } +}; + +export const OperationProperties: msRest.CompositeMapper = { + serializedName: "OperationProperties", + type: { + name: "Composite", + className: "OperationProperties", + modelProperties: { + serviceSpecification: { + serializedName: "serviceSpecification", + type: { + name: "Composite", + className: "ServiceSpecification" + } + } + } + } +}; + export const Operation: msRest.CompositeMapper = { serializedName: "Operation", type: { @@ -263,6 +491,25 @@ export const Operation: msRest.CompositeMapper = { name: "Composite", className: "OperationDisplay" } + }, + isDataAction: { + serializedName: "isDataAction", + type: { + name: "Boolean" + } + }, + origin: { + serializedName: "origin", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "OperationProperties" + } } } } @@ -480,6 +727,7 @@ export const PrivateCloud: msRest.CompositeMapper = { }, internet: { serializedName: "properties.internet", + defaultValue: 'Disabled', type: { name: "String" } @@ -576,29 +824,25 @@ export const PrivateCloud: msRest.CompositeMapper = { } }; -export const ClusterUpdateProperties: msRest.CompositeMapper = { - serializedName: "ClusterUpdateProperties", +export const CommonClusterProperties: msRest.CompositeMapper = { + serializedName: "CommonClusterProperties", type: { name: "Composite", - className: "ClusterUpdateProperties", + className: "CommonClusterProperties", modelProperties: { + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, clusterSize: { serializedName: "clusterSize", type: { name: "Number" } - } - } - } -}; - -export const ManagementCluster: msRest.CompositeMapper = { - serializedName: "ManagementCluster", - type: { - name: "Composite", - className: "ManagementCluster", - modelProperties: { - ...ClusterUpdateProperties.type.modelProperties, + }, clusterId: { readOnly: true, serializedName: "clusterId", @@ -622,6 +866,17 @@ export const ManagementCluster: msRest.CompositeMapper = { } }; +export const ManagementCluster: msRest.CompositeMapper = { + serializedName: "ManagementCluster", + type: { + name: "Composite", + className: "ManagementCluster", + modelProperties: { + ...CommonClusterProperties.type.modelProperties + } + } +}; + export const PrivateCloudUpdate: msRest.CompositeMapper = { serializedName: "PrivateCloudUpdate", type: { @@ -648,6 +903,7 @@ export const PrivateCloudUpdate: msRest.CompositeMapper = { }, internet: { serializedName: "properties.internet", + defaultValue: 'Disabled', type: { name: "String" } @@ -683,6 +939,13 @@ export const Cluster: msRest.CompositeMapper = { className: "Sku" } }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, clusterSize: { serializedName: "properties.clusterSize", type: { @@ -707,13 +970,6 @@ export const Cluster: msRest.CompositeMapper = { } } } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } } } } @@ -735,36 +991,28 @@ export const ClusterUpdate: msRest.CompositeMapper = { } }; -export const AdminCredentials: msRest.CompositeMapper = { - serializedName: "AdminCredentials", +export const Addon: msRest.CompositeMapper = { + serializedName: "Addon", type: { name: "Composite", - className: "AdminCredentials", + className: "Addon", modelProperties: { - nsxtUsername: { - readOnly: true, - serializedName: "nsxtUsername", - type: { - name: "String" - } - }, - nsxtPassword: { - readOnly: true, - serializedName: "nsxtPassword", + ...Resource.type.modelProperties, + licenseKey: { + serializedName: "properties.licenseKey", type: { name: "String" } }, - vcenterUsername: { - readOnly: true, - serializedName: "vcenterUsername", + addonType: { + serializedName: "properties.addonType", type: { name: "String" } }, - vcenterPassword: { + provisioningState: { readOnly: true, - serializedName: "vcenterPassword", + serializedName: "properties.provisioningState", type: { name: "String" } @@ -773,23 +1021,27 @@ export const AdminCredentials: msRest.CompositeMapper = { } }; -export const HcxEnterpriseSite: msRest.CompositeMapper = { - serializedName: "HcxEnterpriseSite", +export const AddonUpdate: msRest.CompositeMapper = { + serializedName: "AddonUpdate", type: { name: "Composite", - className: "HcxEnterpriseSite", + className: "AddonUpdate", modelProperties: { - ...Resource.type.modelProperties, - activationKey: { - readOnly: true, - serializedName: "properties.activationKey", + licenseKey: { + serializedName: "properties.properties.licenseKey", type: { name: "String" } }, - status: { + addonType: { + serializedName: "properties.properties.addonType", + type: { + name: "String" + } + }, + provisioningState: { readOnly: true, - serializedName: "properties.status", + serializedName: "properties.properties.provisioningState", type: { name: "String" } @@ -798,21 +1050,857 @@ export const HcxEnterpriseSite: msRest.CompositeMapper = { } }; -export const OperationList: msRest.CompositeMapper = { - serializedName: "OperationList", +export const AddonSrmProperties: msRest.CompositeMapper = { + serializedName: "AddonSrmProperties", type: { name: "Composite", - className: "OperationList", + className: "AddonSrmProperties", modelProperties: { - value: { - readOnly: true, + licenseKey: { + serializedName: "licenseKey", + type: { + name: "String" + } + } + } + } +}; + +export const NetAppVolume: msRest.CompositeMapper = { + serializedName: "NetAppVolume", + type: { + name: "Composite", + className: "NetAppVolume", + modelProperties: { + nfsProviderIp: { + serializedName: "nfsProviderIp", + type: { + name: "String" + } + }, + nfsFilePath: { + serializedName: "nfsFilePath", + type: { + name: "String" + } + } + } + } +}; + +export const DiskPoolVolume: msRest.CompositeMapper = { + serializedName: "DiskPoolVolume", + type: { + name: "Composite", + className: "DiskPoolVolume", + modelProperties: { + endpoints: { + serializedName: "endpoints", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + lunName: { + serializedName: "lunName", + type: { + name: "String" + } + } + } + } +}; + +export const Datastore: msRest.CompositeMapper = { + serializedName: "Datastore", + type: { + name: "Composite", + className: "Datastore", + modelProperties: { + ...Resource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + netAppVolume: { + serializedName: "properties.netAppVolume", + type: { + name: "Composite", + className: "NetAppVolume" + } + }, + diskPoolVolume: { + serializedName: "properties.diskPoolVolume", + type: { + name: "Composite", + className: "DiskPoolVolume" + } + } + } + } +}; + +export const AdminCredentials: msRest.CompositeMapper = { + serializedName: "AdminCredentials", + type: { + name: "Composite", + className: "AdminCredentials", + modelProperties: { + nsxtUsername: { + readOnly: true, + serializedName: "nsxtUsername", + type: { + name: "String" + } + }, + nsxtPassword: { + readOnly: true, + serializedName: "nsxtPassword", + type: { + name: "String" + } + }, + vcenterUsername: { + readOnly: true, + serializedName: "vcenterUsername", + type: { + name: "String" + } + }, + vcenterPassword: { + readOnly: true, + serializedName: "vcenterPassword", + type: { + name: "String" + } + } + } + } +}; + +export const HcxEnterpriseSite: msRest.CompositeMapper = { + serializedName: "HcxEnterpriseSite", + type: { + name: "Composite", + className: "HcxEnterpriseSite", + modelProperties: { + ...Resource.type.modelProperties, + activationKey: { + readOnly: true, + serializedName: "properties.activationKey", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + } + } + } +}; + +export const GlobalReachConnection: msRest.CompositeMapper = { + serializedName: "GlobalReachConnection", + type: { + name: "Composite", + className: "GlobalReachConnection", + modelProperties: { + ...Resource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + addressPrefix: { + readOnly: true, + serializedName: "properties.addressPrefix", + type: { + name: "String" + } + }, + authorizationKey: { + serializedName: "properties.authorizationKey", + type: { + name: "String" + } + }, + circuitConnectionStatus: { + readOnly: true, + serializedName: "properties.circuitConnectionStatus", + type: { + name: "String" + } + }, + peerExpressRouteCircuit: { + serializedName: "properties.peerExpressRouteCircuit", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkSegmentSubnet: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkSegmentSubnet", + type: { + name: "Composite", + className: "WorkloadNetworkSegmentSubnet", + modelProperties: { + dhcpRanges: { + serializedName: "dhcpRanges", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + gatewayAddress: { + serializedName: "gatewayAddress", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkSegmentPortVif: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkSegmentPortVif", + type: { + name: "Composite", + className: "WorkloadNetworkSegmentPortVif", + modelProperties: { + portName: { + serializedName: "portName", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkSegment: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkSegment", + type: { + name: "Composite", + className: "WorkloadNetworkSegment", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + connectedGateway: { + serializedName: "properties.connectedGateway", + type: { + name: "String" + } + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "WorkloadNetworkSegmentSubnet" + } + }, + portVif: { + readOnly: true, + serializedName: "properties.portVif", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadNetworkSegmentPortVif" + } + } + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + revision: { + serializedName: "properties.revision", + type: { + name: "Number" + } + } + } + } +}; + +export const WorkloadNetworkDhcpEntity: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkDhcpEntity", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "dhcpType", + clientName: "dhcpType" + }, + uberParent: "WorkloadNetworkDhcpEntity", + className: "WorkloadNetworkDhcpEntity", + modelProperties: { + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + segments: { + readOnly: true, + serializedName: "segments", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + revision: { + serializedName: "revision", + type: { + name: "Number" + } + }, + dhcpType: { + required: true, + serializedName: "dhcpType", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkDhcpServer: msRest.CompositeMapper = { + serializedName: "SERVER", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadNetworkDhcpEntity.type.polymorphicDiscriminator, + uberParent: "WorkloadNetworkDhcpEntity", + className: "WorkloadNetworkDhcpServer", + modelProperties: { + ...WorkloadNetworkDhcpEntity.type.modelProperties, + serverAddress: { + serializedName: "serverAddress", + type: { + name: "String" + } + }, + leaseTime: { + serializedName: "leaseTime", + type: { + name: "Number" + } + } + } + } +}; + +export const WorkloadNetworkDhcpRelay: msRest.CompositeMapper = { + serializedName: "RELAY", + type: { + name: "Composite", + polymorphicDiscriminator: WorkloadNetworkDhcpEntity.type.polymorphicDiscriminator, + uberParent: "WorkloadNetworkDhcpEntity", + className: "WorkloadNetworkDhcpRelay", + modelProperties: { + ...WorkloadNetworkDhcpEntity.type.modelProperties, + serverAddresses: { + serializedName: "serverAddresses", + constraints: { + MaxItems: 3, + MinItems: 1 + }, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const WorkloadNetworkDhcp: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkDhcp", + type: { + name: "Composite", + className: "WorkloadNetworkDhcp", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + segments: { + readOnly: true, + serializedName: "properties.segments", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + revision: { + serializedName: "properties.revision", + type: { + name: "Number" + } + }, + dhcpType: { + required: true, + serializedName: "properties.dhcpType", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkPortMirroring: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkPortMirroring", + type: { + name: "Composite", + className: "WorkloadNetworkPortMirroring", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + direction: { + serializedName: "properties.direction", + type: { + name: "String" + } + }, + source: { + serializedName: "properties.source", + type: { + name: "String" + } + }, + destination: { + serializedName: "properties.destination", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + revision: { + serializedName: "properties.revision", + type: { + name: "Number" + } + } + } + } +}; + +export const WorkloadNetworkVMGroup: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkVMGroup", + type: { + name: "Composite", + className: "WorkloadNetworkVMGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + members: { + serializedName: "properties.members", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + revision: { + serializedName: "properties.revision", + type: { + name: "Number" + } + } + } + } +}; + +export const WorkloadNetworkVirtualMachine: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkVirtualMachine", + type: { + name: "Composite", + className: "WorkloadNetworkVirtualMachine", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + vmType: { + readOnly: true, + serializedName: "properties.vmType", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkGateway: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkGateway", + type: { + name: "Composite", + className: "WorkloadNetworkGateway", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + path: { + readOnly: true, + serializedName: "properties.path", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkDnsService: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkDnsService", + type: { + name: "Composite", + className: "WorkloadNetworkDnsService", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + dnsServiceIp: { + serializedName: "properties.dnsServiceIp", + type: { + name: "String" + } + }, + defaultDnsZone: { + serializedName: "properties.defaultDnsZone", + type: { + name: "String" + } + }, + fqdnZones: { + serializedName: "properties.fqdnZones", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + logLevel: { + serializedName: "properties.logLevel", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + revision: { + serializedName: "properties.revision", + type: { + name: "Number" + } + } + } + } +}; + +export const WorkloadNetworkDnsZone: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkDnsZone", + type: { + name: "Composite", + className: "WorkloadNetworkDnsZone", + modelProperties: { + ...ProxyResource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + domain: { + serializedName: "properties.domain", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + dnsServerIps: { + serializedName: "properties.dnsServerIps", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + sourceIp: { + serializedName: "properties.sourceIp", + type: { + name: "String" + } + }, + dnsServices: { + serializedName: "properties.dnsServices", + type: { + name: "Number" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + revision: { + serializedName: "properties.revision", + type: { + name: "Number" + } + } + } + } +}; + +export const OperationList: msRest.CompositeMapper = { + serializedName: "OperationList", + type: { + name: "Composite", + className: "OperationList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateCloudList: msRest.CompositeMapper = { + serializedName: "PrivateCloudList", + type: { + name: "Composite", + className: "PrivateCloudList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateCloud" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ClusterList: msRest.CompositeMapper = { + serializedName: "ClusterList", + type: { + name: "Composite", + className: "ClusterList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Cluster" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DatastoreList: msRest.CompositeMapper = { + serializedName: "DatastoreList", + type: { + name: "Composite", + className: "DatastoreList", + modelProperties: { + value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Operation" + className: "Datastore" } } } @@ -828,11 +1916,11 @@ export const OperationList: msRest.CompositeMapper = { } }; -export const PrivateCloudList: msRest.CompositeMapper = { - serializedName: "PrivateCloudList", +export const HcxEnterpriseSiteList: msRest.CompositeMapper = { + serializedName: "HcxEnterpriseSiteList", type: { name: "Composite", - className: "PrivateCloudList", + className: "HcxEnterpriseSiteList", modelProperties: { value: { readOnly: true, @@ -842,7 +1930,7 @@ export const PrivateCloudList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateCloud" + className: "HcxEnterpriseSite" } } } @@ -858,11 +1946,11 @@ export const PrivateCloudList: msRest.CompositeMapper = { } }; -export const ClusterList: msRest.CompositeMapper = { - serializedName: "ClusterList", +export const ExpressRouteAuthorizationList: msRest.CompositeMapper = { + serializedName: "ExpressRouteAuthorizationList", type: { name: "Composite", - className: "ClusterList", + className: "ExpressRouteAuthorizationList", modelProperties: { value: { readOnly: true, @@ -872,7 +1960,7 @@ export const ClusterList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Cluster" + className: "ExpressRouteAuthorization" } } } @@ -888,11 +1976,11 @@ export const ClusterList: msRest.CompositeMapper = { } }; -export const HcxEnterpriseSiteList: msRest.CompositeMapper = { - serializedName: "HcxEnterpriseSiteList", +export const GlobalReachConnectionList: msRest.CompositeMapper = { + serializedName: "GlobalReachConnectionList", type: { name: "Composite", - className: "HcxEnterpriseSiteList", + className: "GlobalReachConnectionList", modelProperties: { value: { readOnly: true, @@ -902,7 +1990,7 @@ export const HcxEnterpriseSiteList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "HcxEnterpriseSite" + className: "GlobalReachConnection" } } } @@ -918,11 +2006,11 @@ export const HcxEnterpriseSiteList: msRest.CompositeMapper = { } }; -export const ExpressRouteAuthorizationList: msRest.CompositeMapper = { - serializedName: "ExpressRouteAuthorizationList", +export const WorkloadNetworkSegmentsList: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkSegmentsList", type: { name: "Composite", - className: "ExpressRouteAuthorizationList", + className: "WorkloadNetworkSegmentsList", modelProperties: { value: { readOnly: true, @@ -932,7 +2020,247 @@ export const ExpressRouteAuthorizationList: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ExpressRouteAuthorization" + className: "WorkloadNetworkSegment" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkDhcpList: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkDhcpList", + type: { + name: "Composite", + className: "WorkloadNetworkDhcpList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadNetworkDhcp" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkGatewayList: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkGatewayList", + type: { + name: "Composite", + className: "WorkloadNetworkGatewayList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadNetworkGateway" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkPortMirroringList: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkPortMirroringList", + type: { + name: "Composite", + className: "WorkloadNetworkPortMirroringList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadNetworkPortMirroring" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkVMGroupsList: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkVMGroupsList", + type: { + name: "Composite", + className: "WorkloadNetworkVMGroupsList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadNetworkVMGroup" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkVirtualMachinesList: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkVirtualMachinesList", + type: { + name: "Composite", + className: "WorkloadNetworkVirtualMachinesList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadNetworkVirtualMachine" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkDnsServicesList: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkDnsServicesList", + type: { + name: "Composite", + className: "WorkloadNetworkDnsServicesList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadNetworkDnsService" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkDnsZonesList: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkDnsZonesList", + type: { + name: "Composite", + className: "WorkloadNetworkDnsZonesList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WorkloadNetworkDnsZone" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const AddonList: msRest.CompositeMapper = { + serializedName: "AddonList", + type: { + name: "Composite", + className: "AddonList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Addon" } } } @@ -947,3 +2275,10 @@ export const ExpressRouteAuthorizationList: msRest.CompositeMapper = { } } }; + +export const discriminators = { + 'WorkloadNetworkDhcpEntity' : WorkloadNetworkDhcpEntity, + 'WorkloadNetworkDhcpEntity.SERVER' : WorkloadNetworkDhcpServer, + 'WorkloadNetworkDhcpEntity.RELAY' : WorkloadNetworkDhcpRelay + +}; diff --git a/sdk/avs/arm-avs/src/models/operationsMappers.ts b/sdk/avs/arm-avs/src/models/operationsMappers.ts index 0a19c814cee4..47dcbdb04409 100644 --- a/sdk/avs/arm-avs/src/models/operationsMappers.ts +++ b/sdk/avs/arm-avs/src/models/operationsMappers.ts @@ -1,16 +1,22 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + discriminators, CloudError, ErrorAdditionalInfo, ErrorResponse, + LogSpecification, + MetricDimension, + MetricSpecification, Operation, OperationDisplay, - OperationList + OperationList, + OperationProperties, + ServiceSpecification } from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/models/parameters.ts b/sdk/avs/arm-avs/src/models/parameters.ts index a6e0588f1cac..ecc05a73f7fc 100644 --- a/sdk/avs/arm-avs/src/models/parameters.ts +++ b/sdk/avs/arm-avs/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -20,6 +19,16 @@ export const acceptLanguage: msRest.OperationParameter = { } } }; +export const addonName: msRest.OperationURLParameter = { + parameterPath: "addonName", + mapper: { + required: true, + serializedName: "addonName", + type: { + name: "String" + } + } +}; export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { @@ -53,6 +62,66 @@ export const clusterName: msRest.OperationURLParameter = { } } }; +export const datastoreName: msRest.OperationURLParameter = { + parameterPath: "datastoreName", + mapper: { + required: true, + serializedName: "datastoreName", + type: { + name: "String" + } + } +}; +export const dhcpId: msRest.OperationURLParameter = { + parameterPath: "dhcpId", + mapper: { + required: true, + serializedName: "dhcpId", + type: { + name: "String" + } + } +}; +export const dnsServiceId: msRest.OperationURLParameter = { + parameterPath: "dnsServiceId", + mapper: { + required: true, + serializedName: "dnsServiceId", + type: { + name: "String" + } + } +}; +export const dnsZoneId: msRest.OperationURLParameter = { + parameterPath: "dnsZoneId", + mapper: { + required: true, + serializedName: "dnsZoneId", + type: { + name: "String" + } + } +}; +export const gatewayId: msRest.OperationURLParameter = { + parameterPath: "gatewayId", + mapper: { + required: true, + serializedName: "gatewayId", + type: { + name: "String" + } + } +}; +export const globalReachConnectionName: msRest.OperationURLParameter = { + parameterPath: "globalReachConnectionName", + mapper: { + required: true, + serializedName: "globalReachConnectionName", + type: { + name: "String" + } + } +}; export const hcxEnterpriseSiteName: msRest.OperationURLParameter = { parameterPath: "hcxEnterpriseSiteName", mapper: { @@ -84,6 +153,16 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const portMirroringId: msRest.OperationURLParameter = { + parameterPath: "portMirroringId", + mapper: { + required: true, + serializedName: "portMirroringId", + type: { + name: "String" + } + } +}; export const privateCloudName: msRest.OperationURLParameter = { parameterPath: "privateCloudName", mapper: { @@ -109,6 +188,16 @@ export const resourceGroupName: msRest.OperationURLParameter = { } } }; +export const segmentId: msRest.OperationURLParameter = { + parameterPath: "segmentId", + mapper: { + required: true, + serializedName: "segmentId", + type: { + name: "String" + } + } +}; export const subscriptionId: msRest.OperationURLParameter = { parameterPath: "subscriptionId", mapper: { @@ -122,3 +211,23 @@ export const subscriptionId: msRest.OperationURLParameter = { } } }; +export const virtualMachineId: msRest.OperationURLParameter = { + parameterPath: "virtualMachineId", + mapper: { + required: true, + serializedName: "virtualMachineId", + type: { + name: "String" + } + } +}; +export const vmGroupId: msRest.OperationURLParameter = { + parameterPath: "vmGroupId", + mapper: { + required: true, + serializedName: "vmGroupId", + type: { + name: "String" + } + } +}; diff --git a/sdk/avs/arm-avs/src/models/privateCloudsMappers.ts b/sdk/avs/arm-avs/src/models/privateCloudsMappers.ts index edfebca08ab4..b84c5889eb1c 100644 --- a/sdk/avs/arm-avs/src/models/privateCloudsMappers.ts +++ b/sdk/avs/arm-avs/src/models/privateCloudsMappers.ts @@ -1,29 +1,46 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + discriminators, + Addon, AdminCredentials, BaseResource, Circuit, CloudError, Cluster, - ClusterUpdateProperties, + CommonClusterProperties, + Datastore, + DiskPoolVolume, Endpoints, ErrorAdditionalInfo, ErrorResponse, ExpressRouteAuthorization, + GlobalReachConnection, HcxEnterpriseSite, IdentitySource, ManagementCluster, + NetAppVolume, PrivateCloud, PrivateCloudList, PrivateCloudUpdate, + ProxyResource, Resource, Sku, - TrackedResource + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDnsService, + WorkloadNetworkDnsZone, + WorkloadNetworkGateway, + WorkloadNetworkPortMirroring, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVMGroup } from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/models/workloadNetworksMappers.ts b/sdk/avs/arm-avs/src/models/workloadNetworksMappers.ts new file mode 100644 index 000000000000..5dda5277fdfd --- /dev/null +++ b/sdk/avs/arm-avs/src/models/workloadNetworksMappers.ts @@ -0,0 +1,51 @@ +/* + * 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 { + discriminators, + Addon, + BaseResource, + Circuit, + CloudError, + Cluster, + CommonClusterProperties, + Datastore, + DiskPoolVolume, + Endpoints, + ErrorAdditionalInfo, + ErrorResponse, + ExpressRouteAuthorization, + GlobalReachConnection, + HcxEnterpriseSite, + IdentitySource, + ManagementCluster, + NetAppVolume, + PrivateCloud, + ProxyResource, + Resource, + Sku, + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDhcpList, + WorkloadNetworkDnsService, + WorkloadNetworkDnsServicesList, + WorkloadNetworkDnsZone, + WorkloadNetworkDnsZonesList, + WorkloadNetworkGateway, + WorkloadNetworkGatewayList, + WorkloadNetworkPortMirroring, + WorkloadNetworkPortMirroringList, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentsList, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVirtualMachinesList, + WorkloadNetworkVMGroup, + WorkloadNetworkVMGroupsList +} from "../models/mappers"; diff --git a/sdk/avs/arm-avs/src/operations/addons.ts b/sdk/avs/arm-avs/src/operations/addons.ts new file mode 100644 index 000000000000..3a3c501d4c07 --- /dev/null +++ b/sdk/avs/arm-avs/src/operations/addons.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/addonsMappers"; +import * as Parameters from "../models/parameters"; +import { AvsClientContext } from "../avsClientContext"; + +/** Class representing a Addons. */ +export class Addons { + private readonly client: AvsClientContext; + + /** + * Create a Addons. + * @param {AvsClientContext} client Reference to the service client. + */ + constructor(client: AvsClientContext) { + this.client = client; + } + + /** + * @summary List addons in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + list(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Get an addon by name in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param addonName Name of the addon for the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, privateCloudName: string, addonName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param addonName Name of the addon for the private cloud + * @param callback The callback + */ + get(resourceGroupName: string, privateCloudName: string, addonName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param addonName Name of the addon for the private cloud + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, privateCloudName: string, addonName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, privateCloudName: string, addonName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + addonName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Create or update a addon in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName The name of the private cloud. + * @param addonName Name of the addon for the private cloud + * @param addon A addon in the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, privateCloudName: string, addonName: string, addon: Models.Addon, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,privateCloudName,addonName,addon,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Delete a addon in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param addonName Name of the addon for the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, privateCloudName: string, addonName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,privateCloudName,addonName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary Create or update a addon in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName The name of the private cloud. + * @param addonName Name of the addon for the private cloud + * @param addon A addon in the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, privateCloudName: string, addonName: string, addon: Models.Addon, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + addonName, + addon, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * @summary Delete a addon in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param addonName Name of the addon for the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, privateCloudName: string, addonName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + addonName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * @summary List addons in a private cloud + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AddonList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.addonName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Addon + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.addonName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "addon", + mapper: { + ...Mappers.Addon, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Addon + }, + 201: { + bodyMapper: Mappers.Addon + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/addons/{addonName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.addonName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AddonList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/avs/arm-avs/src/operations/authorizations.ts b/sdk/avs/arm-avs/src/operations/authorizations.ts index 6111185333ad..a1b4337f2904 100644 --- a/sdk/avs/arm-avs/src/operations/authorizations.ts +++ b/sdk/avs/arm-avs/src/operations/authorizations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -100,12 +99,11 @@ export class Authorizations { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName The name of the private cloud. * @param authorizationName Name of the ExpressRoute Circuit Authorization in the private cloud - * @param authorization An ExpressRoute Circuit Authorization * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, privateCloudName: string, authorizationName: string, authorization: any, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,privateCloudName,authorizationName,authorization,options) + createOrUpdate(resourceGroupName: string, privateCloudName: string, authorizationName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,privateCloudName,authorizationName,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } @@ -127,17 +125,15 @@ export class Authorizations { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName The name of the private cloud. * @param authorizationName Name of the ExpressRoute Circuit Authorization in the private cloud - * @param authorization An ExpressRoute Circuit Authorization * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate(resourceGroupName: string, privateCloudName: string, authorizationName: string, authorization: any, options?: msRest.RequestOptionsBase): Promise { + beginCreateOrUpdate(resourceGroupName: string, privateCloudName: string, authorizationName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, privateCloudName, authorizationName, - authorization, options }, beginCreateOrUpdateOperationSpec, @@ -264,11 +260,8 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "authorization", mapper: { - required: true, - serializedName: "authorization", - type: { - name: "Object" - } + ...Mappers.ExpressRouteAuthorization, + required: true } }, responses: { @@ -318,6 +311,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/avs/arm-avs/src/operations/clusters.ts b/sdk/avs/arm-avs/src/operations/clusters.ts index 2c005ebadd1c..300a524a845c 100644 --- a/sdk/avs/arm-avs/src/operations/clusters.ts +++ b/sdk/avs/arm-avs/src/operations/clusters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -389,6 +388,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/avs/arm-avs/src/operations/datastores.ts b/sdk/avs/arm-avs/src/operations/datastores.ts new file mode 100644 index 000000000000..252055ab6b4b --- /dev/null +++ b/sdk/avs/arm-avs/src/operations/datastores.ts @@ -0,0 +1,350 @@ +/* + * 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/datastoresMappers"; +import * as Parameters from "../models/parameters"; +import { AvsClientContext } from "../avsClientContext"; + +/** Class representing a Datastores. */ +export class Datastores { + private readonly client: AvsClientContext; + + /** + * Create a Datastores. + * @param {AvsClientContext} client Reference to the service client. + */ + constructor(client: AvsClientContext) { + this.client = client; + } + + /** + * @summary List cloud datastores in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster in the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, privateCloudName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster in the private cloud + * @param callback The callback + */ + list(resourceGroupName: string, privateCloudName: string, clusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster in the private cloud + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, privateCloudName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, privateCloudName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + clusterName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Get a datastore in a private cloud cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster in the private cloud + * @param datastoreName Name of the datastore in the private cloud cluster + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, privateCloudName: string, clusterName: string, datastoreName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster in the private cloud + * @param datastoreName Name of the datastore in the private cloud cluster + * @param callback The callback + */ + get(resourceGroupName: string, privateCloudName: string, clusterName: string, datastoreName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster in the private cloud + * @param datastoreName Name of the datastore in the private cloud cluster + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, privateCloudName: string, clusterName: string, datastoreName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, privateCloudName: string, clusterName: string, datastoreName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + clusterName, + datastoreName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Create a datastore in a private cloud cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster in the private cloud + * @param datastoreName Name of the datastore in the private cloud cluster + * @param datastore A datastore in a private cloud cluster + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, privateCloudName: string, clusterName: string, datastoreName: string, datastore: Models.Datastore, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,privateCloudName,clusterName,datastoreName,datastore,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Delete a datastore in a private cloud cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster in the private cloud + * @param datastoreName Name of the datastore in the private cloud cluster + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, privateCloudName: string, clusterName: string, datastoreName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,privateCloudName,clusterName,datastoreName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary Create a datastore in a private cloud cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster in the private cloud + * @param datastoreName Name of the datastore in the private cloud cluster + * @param datastore A datastore in a private cloud cluster + * @param [options] The optional parameters + * @returns Promise + */ + beginCreate(resourceGroupName: string, privateCloudName: string, clusterName: string, datastoreName: string, datastore: Models.Datastore, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + clusterName, + datastoreName, + datastore, + options + }, + beginCreateOperationSpec, + options); + } + + /** + * @summary Delete a datastore in a private cloud cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param clusterName Name of the cluster in the private cloud + * @param datastoreName Name of the datastore in the private cloud cluster + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, privateCloudName: string, clusterName: string, datastoreName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + clusterName, + datastoreName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * @summary List cloud datastores in a private cloud + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatastoreList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.clusterName, + Parameters.datastoreName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Datastore + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.clusterName, + Parameters.datastoreName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "datastore", + mapper: { + ...Mappers.Datastore, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Datastore + }, + 201: { + bodyMapper: Mappers.Datastore + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.clusterName, + Parameters.datastoreName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DatastoreList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/avs/arm-avs/src/operations/globalReachConnections.ts b/sdk/avs/arm-avs/src/operations/globalReachConnections.ts new file mode 100644 index 000000000000..19aab04b254a --- /dev/null +++ b/sdk/avs/arm-avs/src/operations/globalReachConnections.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/globalReachConnectionsMappers"; +import * as Parameters from "../models/parameters"; +import { AvsClientContext } from "../avsClientContext"; + +/** Class representing a GlobalReachConnections. */ +export class GlobalReachConnections { + private readonly client: AvsClientContext; + + /** + * Create a GlobalReachConnections. + * @param {AvsClientContext} client Reference to the service client. + */ + constructor(client: AvsClientContext) { + this.client = client; + } + + /** + * @summary List global reach connections in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + list(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * @summary Get a global reach connection by name in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param globalReachConnectionName Name of the global reach connection in the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, privateCloudName: string, globalReachConnectionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param globalReachConnectionName Name of the global reach connection in the private cloud + * @param callback The callback + */ + get(resourceGroupName: string, privateCloudName: string, globalReachConnectionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param globalReachConnectionName Name of the global reach connection in the private cloud + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, privateCloudName: string, globalReachConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, privateCloudName: string, globalReachConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + globalReachConnectionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * @summary Create or update a global reach connection in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName The name of the private cloud. + * @param globalReachConnectionName Name of the global reach connection in the private cloud + * @param globalReachConnection A global reach connection in the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, privateCloudName: string, globalReachConnectionName: string, globalReachConnection: Models.GlobalReachConnection, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,privateCloudName,globalReachConnectionName,globalReachConnection,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Delete a global reach connection in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param globalReachConnectionName Name of the global reach connection in the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, privateCloudName: string, globalReachConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,privateCloudName,globalReachConnectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary Create or update a global reach connection in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName The name of the private cloud. + * @param globalReachConnectionName Name of the global reach connection in the private cloud + * @param globalReachConnection A global reach connection in the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, privateCloudName: string, globalReachConnectionName: string, globalReachConnection: Models.GlobalReachConnection, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + globalReachConnectionName, + globalReachConnection, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * @summary Delete a global reach connection in a private cloud + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param globalReachConnectionName Name of the global reach connection in the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, privateCloudName: string, globalReachConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + globalReachConnectionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * @summary List global reach connections in a private cloud + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GlobalReachConnectionList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.globalReachConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GlobalReachConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.globalReachConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "globalReachConnection", + mapper: { + ...Mappers.GlobalReachConnection, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.GlobalReachConnection + }, + 201: { + bodyMapper: Mappers.GlobalReachConnection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.globalReachConnectionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GlobalReachConnectionList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/avs/arm-avs/src/operations/hcxEnterpriseSites.ts b/sdk/avs/arm-avs/src/operations/hcxEnterpriseSites.ts index ed9205e69420..6872ad97df76 100644 --- a/sdk/avs/arm-avs/src/operations/hcxEnterpriseSites.ts +++ b/sdk/avs/arm-avs/src/operations/hcxEnterpriseSites.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -99,35 +98,31 @@ export class HcxEnterpriseSites { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName The name of the private cloud. * @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in the private cloud - * @param hcxEnterpriseSite The HCX Enterprise Site * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, hcxEnterpriseSite: any, options?: msRest.RequestOptionsBase): Promise; + createOrUpdate(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName The name of the private cloud. * @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in the private cloud - * @param hcxEnterpriseSite The HCX Enterprise Site * @param callback The callback */ - createOrUpdate(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, hcxEnterpriseSite: any, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param privateCloudName The name of the private cloud. * @param hcxEnterpriseSiteName Name of the HCX Enterprise Site in the private cloud - * @param hcxEnterpriseSite The HCX Enterprise Site * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, hcxEnterpriseSite: any, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, hcxEnterpriseSite: any, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, privateCloudName: string, hcxEnterpriseSiteName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, privateCloudName, hcxEnterpriseSiteName, - hcxEnterpriseSite, options }, createOrUpdateOperationSpec, @@ -270,11 +265,8 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "hcxEnterpriseSite", mapper: { - required: true, - serializedName: "hcxEnterpriseSite", - type: { - name: "Object" - } + ...Mappers.HcxEnterpriseSite, + required: true } }, responses: { @@ -323,6 +315,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/avs/arm-avs/src/operations/index.ts b/sdk/avs/arm-avs/src/operations/index.ts index 41167f64dfff..2734fab038af 100644 --- a/sdk/avs/arm-avs/src/operations/index.ts +++ b/sdk/avs/arm-avs/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -12,5 +11,9 @@ export * from "./operations"; export * from "./locations"; export * from "./privateClouds"; export * from "./clusters"; +export * from "./datastores"; export * from "./hcxEnterpriseSites"; export * from "./authorizations"; +export * from "./globalReachConnections"; +export * from "./workloadNetworks"; +export * from "./addons"; diff --git a/sdk/avs/arm-avs/src/operations/locations.ts b/sdk/avs/arm-avs/src/operations/locations.ts index 7ff1fa9c7351..0ad6b1f865c4 100644 --- a/sdk/avs/arm-avs/src/operations/locations.ts +++ b/sdk/avs/arm-avs/src/operations/locations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/avs/arm-avs/src/operations/operations.ts b/sdk/avs/arm-avs/src/operations/operations.ts index af15d66d1a93..b06ec348fd51 100644 --- a/sdk/avs/arm-avs/src/operations/operations.ts +++ b/sdk/avs/arm-avs/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/avs/arm-avs/src/operations/privateClouds.ts b/sdk/avs/arm-avs/src/operations/privateClouds.ts index eebc9d8ac564..80341dad85db 100644 --- a/sdk/avs/arm-avs/src/operations/privateClouds.ts +++ b/sdk/avs/arm-avs/src/operations/privateClouds.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -149,6 +148,30 @@ export class PrivateClouds { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * @summary Rotate the vCenter password + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + rotateVcenterPassword(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRotateVcenterPassword(resourceGroupName,privateCloudName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary Rotate the NSX-T Manager password + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + rotateNsxtPassword(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRotateNsxtPassword(resourceGroupName,privateCloudName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** * @summary List the admin credentials for the private cloud * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -239,6 +262,42 @@ export class PrivateClouds { options); } + /** + * @summary Rotate the vCenter password + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginRotateVcenterPassword(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + options + }, + beginRotateVcenterPasswordOperationSpec, + options); + } + + /** + * @summary Rotate the NSX-T Manager password + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginRotateNsxtPassword(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + options + }, + beginRotateNsxtPasswordOperationSpec, + options); + } + /** * @summary List private clouds in a resource group * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -490,6 +549,54 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { serializer }; +const beginRotateVcenterPasswordOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateVcenterPassword", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginRotateNsxtPasswordOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/rotateNsxtPassword", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -497,6 +604,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -518,6 +628,9 @@ const listInSubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/avs/arm-avs/src/operations/workloadNetworks.ts b/sdk/avs/arm-avs/src/operations/workloadNetworks.ts new file mode 100644 index 000000000000..52b978bf32da --- /dev/null +++ b/sdk/avs/arm-avs/src/operations/workloadNetworks.ts @@ -0,0 +1,2622 @@ +/* + * 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/workloadNetworksMappers"; +import * as Parameters from "../models/parameters"; +import { AvsClientContext } from "../avsClientContext"; + +/** Class representing a WorkloadNetworks. */ +export class WorkloadNetworks { + private readonly client: AvsClientContext; + + /** + * Create a WorkloadNetworks. + * @param {AvsClientContext} client Reference to the service client. + */ + constructor(client: AvsClientContext) { + this.client = client; + } + + /** + * @summary List of segments in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + listSegments(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + listSegments(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + listSegments(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSegments(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listSegmentsOperationSpec, + callback) as Promise; + } + + /** + * @summary Get a segment by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name + * @param [options] The optional parameters + * @returns Promise + */ + getSegment(resourceGroupName: string, privateCloudName: string, segmentId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name + * @param callback The callback + */ + getSegment(resourceGroupName: string, privateCloudName: string, segmentId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name + * @param options The optional parameters + * @param callback The callback + */ + getSegment(resourceGroupName: string, privateCloudName: string, segmentId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSegment(resourceGroupName: string, privateCloudName: string, segmentId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + segmentId, + options + }, + getSegmentOperationSpec, + callback) as Promise; + } + + /** + * @summary Create a segment by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name + * @param workloadNetworkSegment NSX Segment + * @param [options] The optional parameters + * @returns Promise + */ + createSegments(resourceGroupName: string, privateCloudName: string, segmentId: string, workloadNetworkSegment: Models.WorkloadNetworkSegment, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateSegments(resourceGroupName,privateCloudName,segmentId,workloadNetworkSegment,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Create or update a segment by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name + * @param workloadNetworkSegment NSX Segment + * @param [options] The optional parameters + * @returns Promise + */ + updateSegments(resourceGroupName: string, privateCloudName: string, segmentId: string, workloadNetworkSegment: Models.WorkloadNetworkSegment, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateSegments(resourceGroupName,privateCloudName,segmentId,workloadNetworkSegment,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Delete a segment by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name + * @param [options] The optional parameters + * @returns Promise + */ + deleteSegment(resourceGroupName: string, privateCloudName: string, segmentId: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteSegment(resourceGroupName,privateCloudName,segmentId,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary List dhcp in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + listDhcp(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + listDhcp(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + listDhcp(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDhcp(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listDhcpOperationSpec, + callback) as Promise; + } + + /** + * @summary Get dhcp by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + getDhcp(resourceGroupName: string, dhcpId: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + getDhcp(resourceGroupName: string, dhcpId: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + getDhcp(resourceGroupName: string, dhcpId: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getDhcp(resourceGroupName: string, dhcpId: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + dhcpId, + privateCloudName, + options + }, + getDhcpOperationSpec, + callback) as Promise; + } + + /** + * @summary Create dhcp by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name + * @param workloadNetworkDhcp NSX DHCP + * @param [options] The optional parameters + * @returns Promise + */ + createDhcp(resourceGroupName: string, privateCloudName: string, dhcpId: string, workloadNetworkDhcp: Models.WorkloadNetworkDhcp, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateDhcp(resourceGroupName,privateCloudName,dhcpId,workloadNetworkDhcp,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Create or update dhcp by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name + * @param workloadNetworkDhcp NSX DHCP + * @param [options] The optional parameters + * @returns Promise + */ + updateDhcp(resourceGroupName: string, privateCloudName: string, dhcpId: string, workloadNetworkDhcp: Models.WorkloadNetworkDhcp, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateDhcp(resourceGroupName,privateCloudName,dhcpId,workloadNetworkDhcp,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Delete dhcp by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name + * @param [options] The optional parameters + * @returns Promise + */ + deleteDhcp(resourceGroupName: string, privateCloudName: string, dhcpId: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteDhcp(resourceGroupName,privateCloudName,dhcpId,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary List of gateways in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + listGateways(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + listGateways(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + listGateways(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listGateways(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listGatewaysOperationSpec, + callback) as Promise; + } + + /** + * @summary Get a gateway by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param gatewayId NSX Gateway identifier. Generally the same as the Gateway's display name + * @param [options] The optional parameters + * @returns Promise + */ + getGateway(resourceGroupName: string, privateCloudName: string, gatewayId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param gatewayId NSX Gateway identifier. Generally the same as the Gateway's display name + * @param callback The callback + */ + getGateway(resourceGroupName: string, privateCloudName: string, gatewayId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param gatewayId NSX Gateway identifier. Generally the same as the Gateway's display name + * @param options The optional parameters + * @param callback The callback + */ + getGateway(resourceGroupName: string, privateCloudName: string, gatewayId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getGateway(resourceGroupName: string, privateCloudName: string, gatewayId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + gatewayId, + options + }, + getGatewayOperationSpec, + callback) as Promise; + } + + /** + * @summary List of port mirroring profiles in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + listPortMirroring(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + listPortMirroring(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + listPortMirroring(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPortMirroring(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listPortMirroringOperationSpec, + callback) as Promise; + } + + /** + * @summary Get a port mirroring profile by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring + * display name + * @param [options] The optional parameters + * @returns Promise + */ + getPortMirroring(resourceGroupName: string, privateCloudName: string, portMirroringId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring + * display name + * @param callback The callback + */ + getPortMirroring(resourceGroupName: string, privateCloudName: string, portMirroringId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring + * display name + * @param options The optional parameters + * @param callback The callback + */ + getPortMirroring(resourceGroupName: string, privateCloudName: string, portMirroringId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPortMirroring(resourceGroupName: string, privateCloudName: string, portMirroringId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + portMirroringId, + options + }, + getPortMirroringOperationSpec, + callback) as Promise; + } + + /** + * @summary Create a port mirroring profile by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring + * display name + * @param workloadNetworkPortMirroring NSX port mirroring + * @param [options] The optional parameters + * @returns Promise + */ + createPortMirroring(resourceGroupName: string, privateCloudName: string, portMirroringId: string, workloadNetworkPortMirroring: Models.WorkloadNetworkPortMirroring, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreatePortMirroring(resourceGroupName,privateCloudName,portMirroringId,workloadNetworkPortMirroring,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Create or update a port mirroring profile by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring + * display name + * @param workloadNetworkPortMirroring NSX port mirroring + * @param [options] The optional parameters + * @returns Promise + */ + updatePortMirroring(resourceGroupName: string, privateCloudName: string, portMirroringId: string, workloadNetworkPortMirroring: Models.WorkloadNetworkPortMirroring, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdatePortMirroring(resourceGroupName,privateCloudName,portMirroringId,workloadNetworkPortMirroring,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Delete a port mirroring profile by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring + * display name + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + deletePortMirroring(resourceGroupName: string, portMirroringId: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeletePortMirroring(resourceGroupName,portMirroringId,privateCloudName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary List of vm groups in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + listVMGroups(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + listVMGroups(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + listVMGroups(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listVMGroups(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listVMGroupsOperationSpec, + callback) as Promise; + } + + /** + * @summary Get a vm group by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name + * @param [options] The optional parameters + * @returns Promise + */ + getVMGroup(resourceGroupName: string, privateCloudName: string, vmGroupId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name + * @param callback The callback + */ + getVMGroup(resourceGroupName: string, privateCloudName: string, vmGroupId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name + * @param options The optional parameters + * @param callback The callback + */ + getVMGroup(resourceGroupName: string, privateCloudName: string, vmGroupId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getVMGroup(resourceGroupName: string, privateCloudName: string, vmGroupId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + vmGroupId, + options + }, + getVMGroupOperationSpec, + callback) as Promise; + } + + /** + * @summary Create a vm group by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name + * @param workloadNetworkVMGroup NSX VM Group + * @param [options] The optional parameters + * @returns Promise + */ + createVMGroup(resourceGroupName: string, privateCloudName: string, vmGroupId: string, workloadNetworkVMGroup: Models.WorkloadNetworkVMGroup, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateVMGroup(resourceGroupName,privateCloudName,vmGroupId,workloadNetworkVMGroup,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Create or update a vm group by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name + * @param workloadNetworkVMGroup NSX VM Group + * @param [options] The optional parameters + * @returns Promise + */ + updateVMGroup(resourceGroupName: string, privateCloudName: string, vmGroupId: string, workloadNetworkVMGroup: Models.WorkloadNetworkVMGroup, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateVMGroup(resourceGroupName,privateCloudName,vmGroupId,workloadNetworkVMGroup,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Delete a vm group by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + deleteVMGroup(resourceGroupName: string, vmGroupId: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteVMGroup(resourceGroupName,vmGroupId,privateCloudName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary List of virtual machines in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + listVirtualMachines(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + listVirtualMachines(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + listVirtualMachines(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listVirtualMachines(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listVirtualMachinesOperationSpec, + callback) as Promise; + } + + /** + * @summary Get a virtual machine by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param virtualMachineId NSX Virtual Machine identifier. + * @param [options] The optional parameters + * @returns Promise + */ + getVirtualMachine(resourceGroupName: string, privateCloudName: string, virtualMachineId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param virtualMachineId NSX Virtual Machine identifier. + * @param callback The callback + */ + getVirtualMachine(resourceGroupName: string, privateCloudName: string, virtualMachineId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param virtualMachineId NSX Virtual Machine identifier. + * @param options The optional parameters + * @param callback The callback + */ + getVirtualMachine(resourceGroupName: string, privateCloudName: string, virtualMachineId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getVirtualMachine(resourceGroupName: string, privateCloudName: string, virtualMachineId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + virtualMachineId, + options + }, + getVirtualMachineOperationSpec, + callback) as Promise; + } + + /** + * @summary List of DNS services in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + listDnsServices(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + listDnsServices(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + listDnsServices(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDnsServices(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listDnsServicesOperationSpec, + callback) as Promise; + } + + /** + * @summary Get a DNS service by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display + * name + * @param [options] The optional parameters + * @returns Promise + */ + getDnsService(resourceGroupName: string, privateCloudName: string, dnsServiceId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display + * name + * @param callback The callback + */ + getDnsService(resourceGroupName: string, privateCloudName: string, dnsServiceId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display + * name + * @param options The optional parameters + * @param callback The callback + */ + getDnsService(resourceGroupName: string, privateCloudName: string, dnsServiceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getDnsService(resourceGroupName: string, privateCloudName: string, dnsServiceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + dnsServiceId, + options + }, + getDnsServiceOperationSpec, + callback) as Promise; + } + + /** + * @summary Create a DNS service by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display + * name + * @param workloadNetworkDnsService NSX DNS Service + * @param [options] The optional parameters + * @returns Promise + */ + createDnsService(resourceGroupName: string, privateCloudName: string, dnsServiceId: string, workloadNetworkDnsService: Models.WorkloadNetworkDnsService, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateDnsService(resourceGroupName,privateCloudName,dnsServiceId,workloadNetworkDnsService,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Create or update a DNS service by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display + * name + * @param workloadNetworkDnsService NSX DNS Service + * @param [options] The optional parameters + * @returns Promise + */ + updateDnsService(resourceGroupName: string, privateCloudName: string, dnsServiceId: string, workloadNetworkDnsService: Models.WorkloadNetworkDnsService, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateDnsService(resourceGroupName,privateCloudName,dnsServiceId,workloadNetworkDnsService,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Delete a DNS service by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display + * name + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + deleteDnsService(resourceGroupName: string, dnsServiceId: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteDnsService(resourceGroupName,dnsServiceId,privateCloudName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary List of DNS zones in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + listDnsZones(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param callback The callback + */ + listDnsZones(resourceGroupName: string, privateCloudName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param options The optional parameters + * @param callback The callback + */ + listDnsZones(resourceGroupName: string, privateCloudName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDnsZones(resourceGroupName: string, privateCloudName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + options + }, + listDnsZonesOperationSpec, + callback) as Promise; + } + + /** + * @summary Get a DNS zone by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + * @param [options] The optional parameters + * @returns Promise + */ + getDnsZone(resourceGroupName: string, privateCloudName: string, dnsZoneId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + * @param callback The callback + */ + getDnsZone(resourceGroupName: string, privateCloudName: string, dnsZoneId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + * @param options The optional parameters + * @param callback The callback + */ + getDnsZone(resourceGroupName: string, privateCloudName: string, dnsZoneId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getDnsZone(resourceGroupName: string, privateCloudName: string, dnsZoneId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + privateCloudName, + dnsZoneId, + options + }, + getDnsZoneOperationSpec, + callback) as Promise; + } + + /** + * @summary Create a DNS zone by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + * @param workloadNetworkDnsZone NSX DNS Zone + * @param [options] The optional parameters + * @returns Promise + */ + createDnsZone(resourceGroupName: string, privateCloudName: string, dnsZoneId: string, workloadNetworkDnsZone: Models.WorkloadNetworkDnsZone, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateDnsZone(resourceGroupName,privateCloudName,dnsZoneId,workloadNetworkDnsZone,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Create or update a DNS zone by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + * @param workloadNetworkDnsZone NSX DNS Zone + * @param [options] The optional parameters + * @returns Promise + */ + updateDnsZone(resourceGroupName: string, privateCloudName: string, dnsZoneId: string, workloadNetworkDnsZone: Models.WorkloadNetworkDnsZone, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateDnsZone(resourceGroupName,privateCloudName,dnsZoneId,workloadNetworkDnsZone,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * @summary Delete a DNS zone by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + deleteDnsZone(resourceGroupName: string, dnsZoneId: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteDnsZone(resourceGroupName,dnsZoneId,privateCloudName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * @summary Create a segment by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name + * @param workloadNetworkSegment NSX Segment + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateSegments(resourceGroupName: string, privateCloudName: string, segmentId: string, workloadNetworkSegment: Models.WorkloadNetworkSegment, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + segmentId, + workloadNetworkSegment, + options + }, + beginCreateSegmentsOperationSpec, + options); + } + + /** + * @summary Create or update a segment by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name + * @param workloadNetworkSegment NSX Segment + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateSegments(resourceGroupName: string, privateCloudName: string, segmentId: string, workloadNetworkSegment: Models.WorkloadNetworkSegment, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + segmentId, + workloadNetworkSegment, + options + }, + beginUpdateSegmentsOperationSpec, + options); + } + + /** + * @summary Delete a segment by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param segmentId NSX Segment identifier. Generally the same as the Segment's display name + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteSegment(resourceGroupName: string, privateCloudName: string, segmentId: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + segmentId, + options + }, + beginDeleteSegmentOperationSpec, + options); + } + + /** + * @summary Create dhcp by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name + * @param workloadNetworkDhcp NSX DHCP + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateDhcp(resourceGroupName: string, privateCloudName: string, dhcpId: string, workloadNetworkDhcp: Models.WorkloadNetworkDhcp, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + dhcpId, + workloadNetworkDhcp, + options + }, + beginCreateDhcpOperationSpec, + options); + } + + /** + * @summary Create or update dhcp by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name + * @param workloadNetworkDhcp NSX DHCP + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateDhcp(resourceGroupName: string, privateCloudName: string, dhcpId: string, workloadNetworkDhcp: Models.WorkloadNetworkDhcp, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + dhcpId, + workloadNetworkDhcp, + options + }, + beginUpdateDhcpOperationSpec, + options); + } + + /** + * @summary Delete dhcp by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dhcpId NSX DHCP identifier. Generally the same as the DHCP display name + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteDhcp(resourceGroupName: string, privateCloudName: string, dhcpId: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + dhcpId, + options + }, + beginDeleteDhcpOperationSpec, + options); + } + + /** + * @summary Create a port mirroring profile by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring + * display name + * @param workloadNetworkPortMirroring NSX port mirroring + * @param [options] The optional parameters + * @returns Promise + */ + beginCreatePortMirroring(resourceGroupName: string, privateCloudName: string, portMirroringId: string, workloadNetworkPortMirroring: Models.WorkloadNetworkPortMirroring, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + portMirroringId, + workloadNetworkPortMirroring, + options + }, + beginCreatePortMirroringOperationSpec, + options); + } + + /** + * @summary Create or update a port mirroring profile by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring + * display name + * @param workloadNetworkPortMirroring NSX port mirroring + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdatePortMirroring(resourceGroupName: string, privateCloudName: string, portMirroringId: string, workloadNetworkPortMirroring: Models.WorkloadNetworkPortMirroring, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + portMirroringId, + workloadNetworkPortMirroring, + options + }, + beginUpdatePortMirroringOperationSpec, + options); + } + + /** + * @summary Delete a port mirroring profile by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param portMirroringId NSX Port Mirroring identifier. Generally the same as the Port Mirroring + * display name + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginDeletePortMirroring(resourceGroupName: string, portMirroringId: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + portMirroringId, + privateCloudName, + options + }, + beginDeletePortMirroringOperationSpec, + options); + } + + /** + * @summary Create a vm group by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name + * @param workloadNetworkVMGroup NSX VM Group + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateVMGroup(resourceGroupName: string, privateCloudName: string, vmGroupId: string, workloadNetworkVMGroup: Models.WorkloadNetworkVMGroup, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + vmGroupId, + workloadNetworkVMGroup, + options + }, + beginCreateVMGroupOperationSpec, + options); + } + + /** + * @summary Create or update a vm group by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name + * @param workloadNetworkVMGroup NSX VM Group + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateVMGroup(resourceGroupName: string, privateCloudName: string, vmGroupId: string, workloadNetworkVMGroup: Models.WorkloadNetworkVMGroup, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + vmGroupId, + workloadNetworkVMGroup, + options + }, + beginUpdateVMGroupOperationSpec, + options); + } + + /** + * @summary Delete a vm group by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vmGroupId NSX VM Group identifier. Generally the same as the VM Group's display name + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteVMGroup(resourceGroupName: string, vmGroupId: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + vmGroupId, + privateCloudName, + options + }, + beginDeleteVMGroupOperationSpec, + options); + } + + /** + * @summary Create a DNS service by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display + * name + * @param workloadNetworkDnsService NSX DNS Service + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateDnsService(resourceGroupName: string, privateCloudName: string, dnsServiceId: string, workloadNetworkDnsService: Models.WorkloadNetworkDnsService, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + dnsServiceId, + workloadNetworkDnsService, + options + }, + beginCreateDnsServiceOperationSpec, + options); + } + + /** + * @summary Create or update a DNS service by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display + * name + * @param workloadNetworkDnsService NSX DNS Service + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateDnsService(resourceGroupName: string, privateCloudName: string, dnsServiceId: string, workloadNetworkDnsService: Models.WorkloadNetworkDnsService, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + dnsServiceId, + workloadNetworkDnsService, + options + }, + beginUpdateDnsServiceOperationSpec, + options); + } + + /** + * @summary Delete a DNS service by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsServiceId NSX DNS Service identifier. Generally the same as the DNS Service's display + * name + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteDnsService(resourceGroupName: string, dnsServiceId: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + dnsServiceId, + privateCloudName, + options + }, + beginDeleteDnsServiceOperationSpec, + options); + } + + /** + * @summary Create a DNS zone by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + * @param workloadNetworkDnsZone NSX DNS Zone + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateDnsZone(resourceGroupName: string, privateCloudName: string, dnsZoneId: string, workloadNetworkDnsZone: Models.WorkloadNetworkDnsZone, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + dnsZoneId, + workloadNetworkDnsZone, + options + }, + beginCreateDnsZoneOperationSpec, + options); + } + + /** + * @summary Create or update a DNS zone by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param privateCloudName Name of the private cloud + * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + * @param workloadNetworkDnsZone NSX DNS Zone + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateDnsZone(resourceGroupName: string, privateCloudName: string, dnsZoneId: string, workloadNetworkDnsZone: Models.WorkloadNetworkDnsZone, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + privateCloudName, + dnsZoneId, + workloadNetworkDnsZone, + options + }, + beginUpdateDnsZoneOperationSpec, + options); + } + + /** + * @summary Delete a DNS zone by id in a private cloud workload network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dnsZoneId NSX DNS Zone identifier. Generally the same as the DNS Zone's display name + * @param privateCloudName Name of the private cloud + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteDnsZone(resourceGroupName: string, dnsZoneId: string, privateCloudName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + dnsZoneId, + privateCloudName, + options + }, + beginDeleteDnsZoneOperationSpec, + options); + } + + /** + * @summary List of segments in a private cloud workload network. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSegmentsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSegmentsNext(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 + */ + listSegmentsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSegmentsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSegmentsNextOperationSpec, + callback) as Promise; + } + + /** + * @summary List dhcp in a private cloud workload network. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listDhcpNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listDhcpNext(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 + */ + listDhcpNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDhcpNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listDhcpNextOperationSpec, + callback) as Promise; + } + + /** + * @summary List of gateways in a private cloud workload network. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listGatewaysNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listGatewaysNext(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 + */ + listGatewaysNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listGatewaysNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listGatewaysNextOperationSpec, + callback) as Promise; + } + + /** + * @summary List of port mirroring profiles in a private cloud workload network. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listPortMirroringNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listPortMirroringNext(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 + */ + listPortMirroringNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPortMirroringNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listPortMirroringNextOperationSpec, + callback) as Promise; + } + + /** + * @summary List of vm groups in a private cloud workload network. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listVMGroupsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listVMGroupsNext(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 + */ + listVMGroupsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listVMGroupsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listVMGroupsNextOperationSpec, + callback) as Promise; + } + + /** + * @summary List of virtual machines in a private cloud workload network. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listVirtualMachinesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listVirtualMachinesNext(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 + */ + listVirtualMachinesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listVirtualMachinesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listVirtualMachinesNextOperationSpec, + callback) as Promise; + } + + /** + * @summary List of DNS services in a private cloud workload network. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listDnsServicesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listDnsServicesNext(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 + */ + listDnsServicesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDnsServicesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listDnsServicesNextOperationSpec, + callback) as Promise; + } + + /** + * @summary List of DNS zones in a private cloud workload network. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listDnsZonesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listDnsZonesNext(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 + */ + listDnsZonesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listDnsZonesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listDnsZonesNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listSegmentsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkSegmentsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getSegmentOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.segmentId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkSegment + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listDhcpOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDhcpList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getDhcpOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dhcpId, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDhcp + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listGatewaysOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkGatewayList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getGatewayOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/gateways/{gatewayId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.gatewayId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkGateway + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listPortMirroringOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkPortMirroringList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getPortMirroringOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.portMirroringId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkPortMirroring + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listVMGroupsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkVMGroupsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getVMGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.vmGroupId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkVMGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listVirtualMachinesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkVirtualMachinesList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getVirtualMachineOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/virtualMachines/{virtualMachineId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.virtualMachineId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkVirtualMachine + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listDnsServicesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDnsServicesList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getDnsServiceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.dnsServiceId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDnsService + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listDnsZonesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDnsZonesList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getDnsZoneOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.dnsZoneId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDnsZone + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateSegmentsOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.segmentId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkSegment", + mapper: { + ...Mappers.WorkloadNetworkSegment, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkSegment + }, + 201: { + bodyMapper: Mappers.WorkloadNetworkSegment + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateSegmentsOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.segmentId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkSegment", + mapper: { + ...Mappers.WorkloadNetworkSegment, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkSegment + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteSegmentOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/segments/{segmentId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.segmentId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateDhcpOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.dhcpId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkDhcp", + mapper: { + ...Mappers.WorkloadNetworkDhcp, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDhcp + }, + 201: { + bodyMapper: Mappers.WorkloadNetworkDhcp + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateDhcpOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.dhcpId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkDhcp", + mapper: { + ...Mappers.WorkloadNetworkDhcp, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDhcp + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteDhcpOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dhcpConfigurations/{dhcpId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.dhcpId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreatePortMirroringOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.portMirroringId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkPortMirroring", + mapper: { + ...Mappers.WorkloadNetworkPortMirroring, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkPortMirroring + }, + 201: { + bodyMapper: Mappers.WorkloadNetworkPortMirroring + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdatePortMirroringOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.portMirroringId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkPortMirroring", + mapper: { + ...Mappers.WorkloadNetworkPortMirroring, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkPortMirroring + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeletePortMirroringOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.portMirroringId, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateVMGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.vmGroupId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkVMGroup", + mapper: { + ...Mappers.WorkloadNetworkVMGroup, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkVMGroup + }, + 201: { + bodyMapper: Mappers.WorkloadNetworkVMGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateVMGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.vmGroupId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkVMGroup", + mapper: { + ...Mappers.WorkloadNetworkVMGroup, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkVMGroup + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteVMGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/vmGroups/{vmGroupId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.vmGroupId, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateDnsServiceOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.dnsServiceId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkDnsService", + mapper: { + ...Mappers.WorkloadNetworkDnsService, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDnsService + }, + 201: { + bodyMapper: Mappers.WorkloadNetworkDnsService + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateDnsServiceOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.dnsServiceId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkDnsService", + mapper: { + ...Mappers.WorkloadNetworkDnsService, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDnsService + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteDnsServiceOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsServices/{dnsServiceId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dnsServiceId, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateDnsZoneOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.dnsZoneId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkDnsZone", + mapper: { + ...Mappers.WorkloadNetworkDnsZone, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDnsZone + }, + 201: { + bodyMapper: Mappers.WorkloadNetworkDnsZone + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateDnsZoneOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.privateCloudName, + Parameters.dnsZoneId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workloadNetworkDnsZone", + mapper: { + ...Mappers.WorkloadNetworkDnsZone, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDnsZone + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteDnsZoneOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.dnsZoneId, + Parameters.privateCloudName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listSegmentsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkSegmentsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listDhcpNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDhcpList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listGatewaysNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkGatewayList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listPortMirroringNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkPortMirroringList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listVMGroupsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkVMGroupsList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listVirtualMachinesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkVirtualMachinesList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listDnsServicesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDnsServicesList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listDnsZonesNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkloadNetworkDnsZonesList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +};