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..6d5c4dbcd3f4 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 @@ -23,6 +22,8 @@ class AvsClient extends AvsClientContext { clusters: operations.Clusters; hcxEnterpriseSites: operations.HcxEnterpriseSites; authorizations: operations.Authorizations; + globalReachConnections: operations.GlobalReachConnections; + workloadNetworks: operations.WorkloadNetworks; /** * Initializes a new instance of the AvsClient class. @@ -38,6 +39,8 @@ class AvsClient extends AvsClientContext { this.clusters = new operations.Clusters(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); } } diff --git a/sdk/avs/arm-avs/src/avsClientContext.ts b/sdk/avs/arm-avs/src/avsClientContext.ts index 3acb23a12a89..30f0d7436343 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 = '2020-07-17-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/authorizationsMappers.ts b/sdk/avs/arm-avs/src/models/authorizationsMappers.ts index e05ac88a10b2..27c4800334b2 100644 --- a/sdk/avs/arm-avs/src/models/authorizationsMappers.ts +++ b/sdk/avs/arm-avs/src/models/authorizationsMappers.ts @@ -1,27 +1,38 @@ /* - * 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, BaseResource, Circuit, CloudError, Cluster, - ClusterUpdateProperties, + CommonClusterProperties, Endpoints, ErrorAdditionalInfo, ErrorResponse, ExpressRouteAuthorization, ExpressRouteAuthorizationList, + GlobalReachConnection, HcxEnterpriseSite, IdentitySource, ManagementCluster, PrivateCloud, + ProxyResource, Resource, Sku, - TrackedResource + TrackedResource, + WorkloadNetworkDhcp, + 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..3b45a9b16300 100644 --- a/sdk/avs/arm-avs/src/models/clustersMappers.ts +++ b/sdk/avs/arm-avs/src/models/clustersMappers.ts @@ -1,28 +1,39 @@ /* - * 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, BaseResource, Circuit, CloudError, Cluster, ClusterList, ClusterUpdate, - ClusterUpdateProperties, + CommonClusterProperties, Endpoints, ErrorAdditionalInfo, ErrorResponse, ExpressRouteAuthorization, + GlobalReachConnection, HcxEnterpriseSite, IdentitySource, ManagementCluster, PrivateCloud, + ProxyResource, Resource, Sku, - TrackedResource + TrackedResource, + WorkloadNetworkDhcp, + 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..43e8d1bd37f9 --- /dev/null +++ b/sdk/avs/arm-avs/src/models/globalReachConnectionsMappers.ts @@ -0,0 +1,38 @@ +/* + * 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, + BaseResource, + Circuit, + CloudError, + Cluster, + CommonClusterProperties, + Endpoints, + ErrorAdditionalInfo, + ErrorResponse, + ExpressRouteAuthorization, + GlobalReachConnection, + GlobalReachConnectionList, + HcxEnterpriseSite, + IdentitySource, + ManagementCluster, + PrivateCloud, + ProxyResource, + Resource, + Sku, + TrackedResource, + WorkloadNetworkDhcp, + 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..cc3ffcbda427 100644 --- a/sdk/avs/arm-avs/src/models/hcxEnterpriseSitesMappers.ts +++ b/sdk/avs/arm-avs/src/models/hcxEnterpriseSitesMappers.ts @@ -1,27 +1,38 @@ /* - * 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, BaseResource, Circuit, CloudError, Cluster, - ClusterUpdateProperties, + CommonClusterProperties, Endpoints, ErrorAdditionalInfo, ErrorResponse, ExpressRouteAuthorization, + GlobalReachConnection, HcxEnterpriseSite, HcxEnterpriseSiteList, IdentitySource, ManagementCluster, PrivateCloud, + ProxyResource, Resource, Sku, - TrackedResource + TrackedResource, + WorkloadNetworkDhcp, + 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..76535458989e 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,122 @@ 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; +} + +/** + * 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 +289,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,13 +445,23 @@ 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; /** * vCenter Single Sign On Identity Sources */ identitySources?: IdentitySource[]; + /** + * Indicate to rotate the vCenter admin password for the private cloud. Possible values include: + * 'OnetimeRotate' + */ + vcenterPassword?: VcsaAdminRotateEnum; + /** + * Indicate to rotate the NSX-T Manager password for the private cloud. Possible values include: + * 'OnetimeRotate' + */ + nsxtPassword?: NsxtAdminRotateEnum; /** * The provisioning state. Possible values include: 'Succeeded', 'Failed', 'Cancelled', * 'Pending', 'Building', 'Deleting', 'Updating' @@ -352,14 +498,6 @@ export interface PrivateCloud extends TrackedResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly vmotionNetwork?: string; - /** - * Optionally, set the vCenter admin password when the private cloud is created - */ - vcenterPassword?: string; - /** - * Optionally, set the NSX-T Manager password when the private cloud is created - */ - nsxtPassword?: string; /** * Thumbprint of the vCenter Server SSL certificate * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -373,19 +511,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 +536,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,13 +556,23 @@ export interface PrivateCloudUpdate { managementCluster?: ManagementCluster; /** * Connectivity to internet is enabled or disabled. Possible values include: 'Enabled', - * 'Disabled' + * 'Disabled'. Default value: 'Disabled'. */ internet?: InternetEnum; /** * vCenter Single Sign On Identity Sources */ identitySources?: IdentitySource[]; + /** + * Indicate to rotate the vCenter admin password for the private cloud. Possible values include: + * 'OnetimeRotate' + */ + vcenterPassword?: VcsaAdminRotateEnum; + /** + * Indicate to rotate the NSX-T Manager password for the private cloud. Possible values include: + * 'OnetimeRotate' + */ + nsxtPassword?: NsxtAdminRotateEnum; } /** @@ -429,6 +583,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 +603,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; } /** @@ -505,166 +659,1464 @@ 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; } /** - * @interface - * A paged list of private clouds - * @extends Array + * Contains the possible cases for WorkloadNetworkDhcpEntity. */ -export interface PrivateCloudList extends Array { +export type WorkloadNetworkDhcpEntityUnion = WorkloadNetworkDhcpEntity | WorkloadNetworkDhcpServer | WorkloadNetworkDhcpRelay; + +/** + * Base class for WorkloadNetworkDhcpServer and WorkloadNetworkDhcpRelay to inherit from + */ +export interface WorkloadNetworkDhcpEntity { /** - * URL to get the next page if any + * 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 nextLink?: string; + 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; +} + +/** + * 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; } /** - * @interface - * A paged list of clusters - * @extends Array + * 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; +} + +/** + * 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 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; +} + +/** + * 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 VcsaAdminRotateEnum. + * Possible values include: 'OnetimeRotate' + * @readonly + * @enum {string} + */ +export type VcsaAdminRotateEnum = 'OnetimeRotate'; + +/** + * Defines values for NsxtAdminRotateEnum. + * Possible values include: 'OnetimeRotate' + * @readonly + * @enum {string} + */ +export type NsxtAdminRotateEnum = 'OnetimeRotate'; + +/** + * 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 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'; + +/** + * 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 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 interface ClusterList extends Array { +export type GlobalReachConnectionsCreateOrUpdateResponse = GlobalReachConnection & { /** - * 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: GlobalReachConnection; + }; +}; /** - * @interface - * A paged list of HCX Enterprise Sites - * @extends Array + * Contains response data for the beginCreateOrUpdate operation. */ -export interface HcxEnterpriseSiteList extends Array { +export type GlobalReachConnectionsBeginCreateOrUpdateResponse = GlobalReachConnection & { /** - * 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: GlobalReachConnection; + }; +}; /** - * @interface - * A paged list of ExpressRoute Circuit Authorizations - * @extends Array + * Contains response data for the listNext operation. */ -export interface ExpressRouteAuthorizationList extends Array { +export type GlobalReachConnectionsListNextResponse = GlobalReachConnectionList & { /** - * 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; -/** - * Defines values for TrialStatus. - * Possible values include: 'TrialAvailable', 'TrialUsed', 'TrialDisabled' - * @readonly - * @enum {string} - */ -export type TrialStatus = 'TrialAvailable' | 'TrialUsed' | 'TrialDisabled'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GlobalReachConnectionList; + }; +}; /** - * Defines values for QuotaEnabled. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the listSegments operation. */ -export type QuotaEnabled = 'Enabled' | 'Disabled'; +export type WorkloadNetworksListSegmentsResponse = WorkloadNetworkSegmentsList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ExpressRouteAuthorizationProvisioningState. - * Possible values include: 'Succeeded', 'Failed', 'Updating' - * @readonly - * @enum {string} - */ -export type ExpressRouteAuthorizationProvisioningState = 'Succeeded' | 'Failed' | 'Updating'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkloadNetworkSegmentsList; + }; +}; /** - * Defines values for SslEnum. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the getSegment operation. */ -export type SslEnum = 'Enabled' | 'Disabled'; +export type WorkloadNetworksGetSegmentResponse = WorkloadNetworkSegment & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * 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'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkloadNetworkSegment; + }; +}; /** - * Defines values for InternetEnum. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the createSegments operation. */ -export type InternetEnum = 'Enabled' | 'Disabled'; +export type WorkloadNetworksCreateSegmentsResponse = WorkloadNetworkSegment & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ClusterProvisioningState. - * Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Deleting', 'Updating' - * @readonly - * @enum {string} - */ -export type ClusterProvisioningState = 'Succeeded' | 'Failed' | 'Cancelled' | 'Deleting' | 'Updating'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkloadNetworkSegment; + }; +}; /** - * Defines values for HcxEnterpriseSiteStatus. - * Possible values include: 'Available', 'Consumed', 'Deactivated', 'Deleted' - * @readonly - * @enum {string} + * Contains response data for the updateSegments operation. */ -export type HcxEnterpriseSiteStatus = 'Available' | 'Consumed' | 'Deactivated' | 'Deleted'; +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 list operation. + * Contains response data for the listDhcp operation. */ -export type OperationsListResponse = OperationList & { +export type WorkloadNetworksListDhcpResponse = WorkloadNetworkDhcpList & { /** * The underlying HTTP response. */ @@ -677,14 +2129,14 @@ export type OperationsListResponse = OperationList & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationList; + parsedBody: WorkloadNetworkDhcpList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the getDhcp operation. */ -export type OperationsListNextResponse = OperationList & { +export type WorkloadNetworksGetDhcpResponse = WorkloadNetworkDhcp & { /** * The underlying HTTP response. */ @@ -697,14 +2149,14 @@ export type OperationsListNextResponse = OperationList & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationList; + parsedBody: WorkloadNetworkDhcp; }; }; /** - * Contains response data for the checkTrialAvailability operation. + * Contains response data for the createDhcp operation. */ -export type LocationsCheckTrialAvailabilityResponse = Trial & { +export type WorkloadNetworksCreateDhcpResponse = WorkloadNetworkDhcp & { /** * The underlying HTTP response. */ @@ -717,14 +2169,14 @@ export type LocationsCheckTrialAvailabilityResponse = Trial & { /** * The response body as parsed JSON or XML */ - parsedBody: Trial; + parsedBody: WorkloadNetworkDhcp; }; }; /** - * Contains response data for the checkQuotaAvailability operation. + * Contains response data for the updateDhcp operation. */ -export type LocationsCheckQuotaAvailabilityResponse = Quota & { +export type WorkloadNetworksUpdateDhcpResponse = WorkloadNetworkDhcp & { /** * The underlying HTTP response. */ @@ -737,14 +2189,14 @@ export type LocationsCheckQuotaAvailabilityResponse = Quota & { /** * The response body as parsed JSON or XML */ - parsedBody: Quota; + parsedBody: WorkloadNetworkDhcp; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listGateways operation. */ -export type PrivateCloudsListResponse = PrivateCloudList & { +export type WorkloadNetworksListGatewaysResponse = WorkloadNetworkGatewayList & { /** * The underlying HTTP response. */ @@ -757,14 +2209,14 @@ export type PrivateCloudsListResponse = PrivateCloudList & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloudList; + parsedBody: WorkloadNetworkGatewayList; }; }; /** - * Contains response data for the listInSubscription operation. + * Contains response data for the getGateway operation. */ -export type PrivateCloudsListInSubscriptionResponse = PrivateCloudList & { +export type WorkloadNetworksGetGatewayResponse = WorkloadNetworkGateway & { /** * The underlying HTTP response. */ @@ -777,14 +2229,14 @@ export type PrivateCloudsListInSubscriptionResponse = PrivateCloudList & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloudList; + parsedBody: WorkloadNetworkGateway; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listPortMirroring operation. */ -export type PrivateCloudsGetResponse = PrivateCloud & { +export type WorkloadNetworksListPortMirroringResponse = WorkloadNetworkPortMirroringList & { /** * The underlying HTTP response. */ @@ -797,14 +2249,14 @@ export type PrivateCloudsGetResponse = PrivateCloud & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloud; + parsedBody: WorkloadNetworkPortMirroringList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the getPortMirroring operation. */ -export type PrivateCloudsCreateOrUpdateResponse = PrivateCloud & { +export type WorkloadNetworksGetPortMirroringResponse = WorkloadNetworkPortMirroring & { /** * The underlying HTTP response. */ @@ -817,14 +2269,14 @@ export type PrivateCloudsCreateOrUpdateResponse = PrivateCloud & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloud; + parsedBody: WorkloadNetworkPortMirroring; }; }; /** - * Contains response data for the update operation. + * Contains response data for the createPortMirroring operation. */ -export type PrivateCloudsUpdateResponse = PrivateCloud & { +export type WorkloadNetworksCreatePortMirroringResponse = WorkloadNetworkPortMirroring & { /** * The underlying HTTP response. */ @@ -837,14 +2289,14 @@ export type PrivateCloudsUpdateResponse = PrivateCloud & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloud; + parsedBody: WorkloadNetworkPortMirroring; }; }; /** - * Contains response data for the listAdminCredentials operation. + * Contains response data for the updatePortMirroring operation. */ -export type PrivateCloudsListAdminCredentialsResponse = AdminCredentials & { +export type WorkloadNetworksUpdatePortMirroringResponse = WorkloadNetworkPortMirroring & { /** * The underlying HTTP response. */ @@ -857,14 +2309,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 listVMGroups operation. */ -export type PrivateCloudsBeginCreateOrUpdateResponse = PrivateCloud & { +export type WorkloadNetworksListVMGroupsResponse = WorkloadNetworkVMGroupsList & { /** * The underlying HTTP response. */ @@ -877,14 +2329,14 @@ export type PrivateCloudsBeginCreateOrUpdateResponse = PrivateCloud & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloud; + parsedBody: WorkloadNetworkVMGroupsList; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the getVMGroup operation. */ -export type PrivateCloudsBeginUpdateResponse = PrivateCloud & { +export type WorkloadNetworksGetVMGroupResponse = WorkloadNetworkVMGroup & { /** * The underlying HTTP response. */ @@ -897,14 +2349,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 createVMGroup operation. */ -export type PrivateCloudsListNextResponse = PrivateCloudList & { +export type WorkloadNetworksCreateVMGroupResponse = WorkloadNetworkVMGroup & { /** * The underlying HTTP response. */ @@ -917,14 +2369,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 updateVMGroup operation. */ -export type PrivateCloudsListInSubscriptionNextResponse = PrivateCloudList & { +export type WorkloadNetworksUpdateVMGroupResponse = WorkloadNetworkVMGroup & { /** * The underlying HTTP response. */ @@ -937,14 +2389,14 @@ export type PrivateCloudsListInSubscriptionNextResponse = PrivateCloudList & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateCloudList; + parsedBody: WorkloadNetworkVMGroup; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listVirtualMachines operation. */ -export type ClustersListResponse = ClusterList & { +export type WorkloadNetworksListVirtualMachinesResponse = WorkloadNetworkVirtualMachinesList & { /** * The underlying HTTP response. */ @@ -957,14 +2409,14 @@ export type ClustersListResponse = ClusterList & { /** * The response body as parsed JSON or XML */ - parsedBody: ClusterList; + parsedBody: WorkloadNetworkVirtualMachinesList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the getVirtualMachine operation. */ -export type ClustersGetResponse = Cluster & { +export type WorkloadNetworksGetVirtualMachineResponse = WorkloadNetworkVirtualMachine & { /** * The underlying HTTP response. */ @@ -977,14 +2429,14 @@ export type ClustersGetResponse = Cluster & { /** * The response body as parsed JSON or XML */ - parsedBody: Cluster; + parsedBody: WorkloadNetworkVirtualMachine; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateSegments operation. */ -export type ClustersCreateOrUpdateResponse = Cluster & { +export type WorkloadNetworksBeginCreateSegmentsResponse = WorkloadNetworkSegment & { /** * The underlying HTTP response. */ @@ -997,14 +2449,14 @@ export type ClustersCreateOrUpdateResponse = Cluster & { /** * The response body as parsed JSON or XML */ - parsedBody: Cluster; + parsedBody: WorkloadNetworkSegment; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginUpdateSegments operation. */ -export type ClustersUpdateResponse = Cluster & { +export type WorkloadNetworksBeginUpdateSegmentsResponse = WorkloadNetworkSegment & { /** * The underlying HTTP response. */ @@ -1017,14 +2469,14 @@ export type ClustersUpdateResponse = Cluster & { /** * The response body as parsed JSON or XML */ - parsedBody: Cluster; + parsedBody: WorkloadNetworkSegment; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the beginCreateDhcp operation. */ -export type ClustersBeginCreateOrUpdateResponse = Cluster & { +export type WorkloadNetworksBeginCreateDhcpResponse = WorkloadNetworkDhcp & { /** * The underlying HTTP response. */ @@ -1037,14 +2489,14 @@ export type ClustersBeginCreateOrUpdateResponse = Cluster & { /** * The response body as parsed JSON or XML */ - parsedBody: Cluster; + parsedBody: WorkloadNetworkDhcp; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the beginUpdateDhcp operation. */ -export type ClustersBeginUpdateResponse = Cluster & { +export type WorkloadNetworksBeginUpdateDhcpResponse = WorkloadNetworkDhcp & { /** * The underlying HTTP response. */ @@ -1057,14 +2509,14 @@ export type ClustersBeginUpdateResponse = Cluster & { /** * The response body as parsed JSON or XML */ - parsedBody: Cluster; + parsedBody: WorkloadNetworkDhcp; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the beginCreatePortMirroring operation. */ -export type ClustersListNextResponse = ClusterList & { +export type WorkloadNetworksBeginCreatePortMirroringResponse = WorkloadNetworkPortMirroring & { /** * The underlying HTTP response. */ @@ -1077,14 +2529,14 @@ export type ClustersListNextResponse = ClusterList & { /** * The response body as parsed JSON or XML */ - parsedBody: ClusterList; + parsedBody: WorkloadNetworkPortMirroring; }; }; /** - * Contains response data for the list operation. + * Contains response data for the beginUpdatePortMirroring operation. */ -export type HcxEnterpriseSitesListResponse = HcxEnterpriseSiteList & { +export type WorkloadNetworksBeginUpdatePortMirroringResponse = WorkloadNetworkPortMirroring & { /** * The underlying HTTP response. */ @@ -1097,14 +2549,14 @@ export type HcxEnterpriseSitesListResponse = HcxEnterpriseSiteList & { /** * The response body as parsed JSON or XML */ - parsedBody: HcxEnterpriseSiteList; + parsedBody: WorkloadNetworkPortMirroring; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreateVMGroup operation. */ -export type HcxEnterpriseSitesGetResponse = HcxEnterpriseSite & { +export type WorkloadNetworksBeginCreateVMGroupResponse = WorkloadNetworkVMGroup & { /** * The underlying HTTP response. */ @@ -1117,14 +2569,14 @@ export type HcxEnterpriseSitesGetResponse = HcxEnterpriseSite & { /** * The response body as parsed JSON or XML */ - parsedBody: HcxEnterpriseSite; + parsedBody: WorkloadNetworkVMGroup; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginUpdateVMGroup operation. */ -export type HcxEnterpriseSitesCreateOrUpdateResponse = HcxEnterpriseSite & { +export type WorkloadNetworksBeginUpdateVMGroupResponse = WorkloadNetworkVMGroup & { /** * The underlying HTTP response. */ @@ -1137,14 +2589,14 @@ export type HcxEnterpriseSitesCreateOrUpdateResponse = HcxEnterpriseSite & { /** * The response body as parsed JSON or XML */ - parsedBody: HcxEnterpriseSite; + parsedBody: WorkloadNetworkVMGroup; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listSegmentsNext operation. */ -export type HcxEnterpriseSitesListNextResponse = HcxEnterpriseSiteList & { +export type WorkloadNetworksListSegmentsNextResponse = WorkloadNetworkSegmentsList & { /** * The underlying HTTP response. */ @@ -1157,14 +2609,14 @@ export type HcxEnterpriseSitesListNextResponse = HcxEnterpriseSiteList & { /** * The response body as parsed JSON or XML */ - parsedBody: HcxEnterpriseSiteList; + parsedBody: WorkloadNetworkSegmentsList; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listDhcpNext operation. */ -export type AuthorizationsListResponse = ExpressRouteAuthorizationList & { +export type WorkloadNetworksListDhcpNextResponse = WorkloadNetworkDhcpList & { /** * The underlying HTTP response. */ @@ -1177,14 +2629,14 @@ export type AuthorizationsListResponse = ExpressRouteAuthorizationList & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRouteAuthorizationList; + parsedBody: WorkloadNetworkDhcpList; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listGatewaysNext operation. */ -export type AuthorizationsGetResponse = ExpressRouteAuthorization & { +export type WorkloadNetworksListGatewaysNextResponse = WorkloadNetworkGatewayList & { /** * The underlying HTTP response. */ @@ -1197,14 +2649,14 @@ export type AuthorizationsGetResponse = ExpressRouteAuthorization & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRouteAuthorization; + parsedBody: WorkloadNetworkGatewayList; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listPortMirroringNext operation. */ -export type AuthorizationsCreateOrUpdateResponse = ExpressRouteAuthorization & { +export type WorkloadNetworksListPortMirroringNextResponse = WorkloadNetworkPortMirroringList & { /** * The underlying HTTP response. */ @@ -1217,14 +2669,14 @@ export type AuthorizationsCreateOrUpdateResponse = ExpressRouteAuthorization & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRouteAuthorization; + parsedBody: WorkloadNetworkPortMirroringList; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listVMGroupsNext operation. */ -export type AuthorizationsBeginCreateOrUpdateResponse = ExpressRouteAuthorization & { +export type WorkloadNetworksListVMGroupsNextResponse = WorkloadNetworkVMGroupsList & { /** * The underlying HTTP response. */ @@ -1237,14 +2689,14 @@ export type AuthorizationsBeginCreateOrUpdateResponse = ExpressRouteAuthorizatio /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRouteAuthorization; + parsedBody: WorkloadNetworkVMGroupsList; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listVirtualMachinesNext operation. */ -export type AuthorizationsListNextResponse = ExpressRouteAuthorizationList & { +export type WorkloadNetworksListVirtualMachinesNextResponse = WorkloadNetworkVirtualMachinesList & { /** * The underlying HTTP response. */ @@ -1257,6 +2709,6 @@ export type AuthorizationsListNextResponse = ExpressRouteAuthorizationList & { /** * The response body as parsed JSON or XML */ - parsedBody: ExpressRouteAuthorizationList; + parsedBody: WorkloadNetworkVirtualMachinesList; }; }; 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..77bdb6133b8f 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,211 @@ 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" + } + } + } + } +}; + +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 +479,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 +715,7 @@ export const PrivateCloud: msRest.CompositeMapper = { }, internet: { serializedName: "properties.internet", + defaultValue: 'Disabled', type: { name: "String" } @@ -496,6 +732,18 @@ export const PrivateCloud: msRest.CompositeMapper = { } } }, + vcenterPassword: { + serializedName: "properties.vcenterPassword", + type: { + name: "String" + } + }, + nsxtPassword: { + serializedName: "properties.nsxtPassword", + type: { + name: "String" + } + }, provisioningState: { readOnly: true, serializedName: "properties.provisioningState", @@ -546,18 +794,6 @@ export const PrivateCloud: msRest.CompositeMapper = { name: "String" } }, - vcenterPassword: { - serializedName: "properties.vcenterPassword", - type: { - name: "String" - } - }, - nsxtPassword: { - serializedName: "properties.nsxtPassword", - type: { - name: "String" - } - }, vcenterCertificateThumbprint: { readOnly: true, serializedName: "properties.vcenterCertificateThumbprint", @@ -576,29 +812,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 +854,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 +891,7 @@ export const PrivateCloudUpdate: msRest.CompositeMapper = { }, internet: { serializedName: "properties.internet", + defaultValue: 'Disabled', type: { name: "String" } @@ -663,6 +907,18 @@ export const PrivateCloudUpdate: msRest.CompositeMapper = { } } } + }, + vcenterPassword: { + serializedName: "properties.vcenterPassword", + type: { + name: "String" + } + }, + nsxtPassword: { + serializedName: "properties.nsxtPassword", + 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" - } } } } @@ -798,19 +1054,475 @@ export const HcxEnterpriseSite: msRest.CompositeMapper = { } }; -export const OperationList: msRest.CompositeMapper = { - serializedName: "OperationList", +export const GlobalReachConnection: msRest.CompositeMapper = { + serializedName: "GlobalReachConnection", type: { name: "Composite", - className: "OperationList", + className: "GlobalReachConnection", modelProperties: { - value: { + ...Resource.type.modelProperties, + provisioningState: { readOnly: true, - serializedName: "", + serializedName: "properties.provisioningState", type: { - name: "Sequence", - element: { - 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 OperationList: msRest.CompositeMapper = { + serializedName: "OperationList", + type: { + name: "Composite", + className: "OperationList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { name: "Composite", className: "Operation" } @@ -947,3 +1659,220 @@ export const ExpressRouteAuthorizationList: msRest.CompositeMapper = { } } }; + +export const GlobalReachConnectionList: msRest.CompositeMapper = { + serializedName: "GlobalReachConnectionList", + type: { + name: "Composite", + className: "GlobalReachConnectionList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GlobalReachConnection" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const WorkloadNetworkSegmentsList: msRest.CompositeMapper = { + serializedName: "WorkloadNetworkSegmentsList", + type: { + name: "Composite", + className: "WorkloadNetworkSegmentsList", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + 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 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..a43f5819c72f 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 @@ -53,6 +52,36 @@ export const clusterName: msRest.OperationURLParameter = { } } }; +export const dhcpId: msRest.OperationURLParameter = { + parameterPath: "dhcpId", + mapper: { + required: true, + serializedName: "dhcpId", + 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 +113,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 +148,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 +171,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..7be8a9d7b6cf 100644 --- a/sdk/avs/arm-avs/src/models/privateCloudsMappers.ts +++ b/sdk/avs/arm-avs/src/models/privateCloudsMappers.ts @@ -1,29 +1,40 @@ /* - * 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, AdminCredentials, BaseResource, Circuit, CloudError, Cluster, - ClusterUpdateProperties, + CommonClusterProperties, Endpoints, ErrorAdditionalInfo, ErrorResponse, ExpressRouteAuthorization, + GlobalReachConnection, HcxEnterpriseSite, IdentitySource, ManagementCluster, PrivateCloud, PrivateCloudList, PrivateCloudUpdate, + ProxyResource, Resource, Sku, - TrackedResource + TrackedResource, + WorkloadNetworkDhcp, + 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..b9a49ad57f05 --- /dev/null +++ b/sdk/avs/arm-avs/src/models/workloadNetworksMappers.ts @@ -0,0 +1,43 @@ +/* + * 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, + BaseResource, + Circuit, + CloudError, + Cluster, + CommonClusterProperties, + Endpoints, + ErrorAdditionalInfo, + ErrorResponse, + ExpressRouteAuthorization, + GlobalReachConnection, + HcxEnterpriseSite, + IdentitySource, + ManagementCluster, + PrivateCloud, + ProxyResource, + Resource, + Sku, + TrackedResource, + WorkloadNetworkDhcp, + WorkloadNetworkDhcpList, + WorkloadNetworkGateway, + WorkloadNetworkGatewayList, + WorkloadNetworkPortMirroring, + WorkloadNetworkPortMirroringList, + WorkloadNetworkSegment, + WorkloadNetworkSegmentPortVif, + WorkloadNetworkSegmentsList, + WorkloadNetworkSegmentSubnet, + WorkloadNetworkVirtualMachine, + WorkloadNetworkVirtualMachinesList, + WorkloadNetworkVMGroup, + WorkloadNetworkVMGroupsList +} from "../models/mappers"; 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/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..aa322ba37450 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 @@ -14,3 +13,5 @@ export * from "./privateClouds"; export * from "./clusters"; export * from "./hcxEnterpriseSites"; export * from "./authorizations"; +export * from "./globalReachConnections"; +export * from "./workloadNetworks"; 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..7586bf676bcd 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 @@ -497,6 +496,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -518,6 +520,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..a161b1aa8bbb --- /dev/null +++ b/sdk/avs/arm-avs/src/operations/workloadNetworks.ts @@ -0,0 +1,1869 @@ +/* + * 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 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 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; + } +} + +// 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 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 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 +};