From 79869fc4f68630d6b24201164ecbd54c046c44b8 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 17 Mar 2021 19:52:56 +0000 Subject: [PATCH] CodeGen from PR 13459 in Azure/azure-rest-api-specs Merge 1511107349d2caebe7c56887d22984f1e301554a into c16cf9c92d5c28983a8bbeb56bc02674cb2f77ec --- .../arm-domainservices/LICENSE.txt | 2 +- .../arm-domainservices/README.md | 23 +- .../arm-domainservices/package.json | 22 +- .../arm-domainservices/rollup.config.js | 24 +- .../src/domainservicesManagementClient.ts | 9 +- .../domainservicesManagementClientContext.ts | 9 +- .../models/domainServiceOperationsMappers.ts | 15 +- .../src/models/domainServicesMappers.ts | 30 +- .../arm-domainservices/src/models/index.ts | 770 ++++++++++++------ .../arm-domainservices/src/models/mappers.ts | 569 ++++++++++--- .../models/ouContainerOperationsMappers.ts | 14 + .../ouContainerOperationsOperationsMappers.ts | 27 + .../src/models/parameters.ts | 15 +- .../src/operations/domainServiceOperations.ts | 8 +- .../src/operations/domainServices.ts | 31 +- .../src/operations/index.ts | 7 +- .../src/operations/ouContainerOperations.ts | 125 +++ .../ouContainerOperationsOperations.ts | 430 ++++++++++ .../arm-domainservices/tsconfig.json | 2 +- 19 files changed, 1698 insertions(+), 434 deletions(-) create mode 100644 sdk/domainservices/arm-domainservices/src/models/ouContainerOperationsMappers.ts create mode 100644 sdk/domainservices/arm-domainservices/src/models/ouContainerOperationsOperationsMappers.ts create mode 100644 sdk/domainservices/arm-domainservices/src/operations/ouContainerOperations.ts create mode 100644 sdk/domainservices/arm-domainservices/src/operations/ouContainerOperationsOperations.ts diff --git a/sdk/domainservices/arm-domainservices/LICENSE.txt b/sdk/domainservices/arm-domainservices/LICENSE.txt index a70e8cf66038..2d3163745319 100644 --- a/sdk/domainservices/arm-domainservices/LICENSE.txt +++ b/sdk/domainservices/arm-domainservices/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/domainservices/arm-domainservices/README.md b/sdk/domainservices/arm-domainservices/README.md index 40c93925e577..fd4d2aebaf87 100644 --- a/sdk/domainservices/arm-domainservices/README.md +++ b/sdk/domainservices/arm-domainservices/README.md @@ -9,27 +9,27 @@ This package contains an isomorphic SDK for DomainservicesManagementClient. ### How to Install -``` +```bash npm install @azure/arm-domainservices ``` ### How to use -#### nodejs - Authentication, client creation and list domainServiceOperations as an example written in TypeScript. +#### nodejs - client creation and list domainServiceOperations as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth -``` -npm install @azure/ms-rest-nodeauth +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. +```bash +npm install @azure/ms-rest-nodeauth@"^3.0.0" ``` ##### Sample code -```ts -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 { DomainservicesManagementClient, DomainservicesManagementModels, DomainservicesManagementMappers } from "@azure/arm-domainservices"; +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 +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { DomainservicesManagementClient } = require("@azure/arm-domainservices"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { @@ -47,7 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -95,5 +95,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fdomainservices%2Farm-domainservices%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/domainservices/arm-domainservices/README.png) diff --git a/sdk/domainservices/arm-domainservices/package.json b/sdk/domainservices/arm-domainservices/package.json index 6ed59f03b209..a53af64f6216 100644 --- a/sdk/domainservices/arm-domainservices/package.json +++ b/sdk/domainservices/arm-domainservices/package.json @@ -4,9 +4,9 @@ "description": "DomainservicesManagementClient Library with typescript type definitions for node.js and browser.", "version": "3.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", - "tslib": "^1.9.3" + "@azure/ms-rest-azure-js": "^2.0.1", + "@azure/ms-rest-js": "^2.0.4", + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -20,18 +20,19 @@ "module": "./esm/domainservicesManagementClient.js", "types": "./esm/domainservicesManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", - "uglify-js": "^3.4.9" + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", + "rollup-plugin-sourcemaps": "^0.4.2", + "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/domainservices/arm-domainservices", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/domainservices/arm-domainservices", "repository": { "type": "git", - "url": "https://github.com/azure/azure-sdk-for-js.git" + "url": "https://github.com/Azure/azure-sdk-for-js.git" }, "bugs": { - "url": "https://github.com/azure/azure-sdk-for-js/issues" + "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", @@ -43,6 +44,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], diff --git a/sdk/domainservices/arm-domainservices/rollup.config.js b/sdk/domainservices/arm-domainservices/rollup.config.js index 70ceaf439e29..4d693c6c0595 100644 --- a/sdk/domainservices/arm-domainservices/rollup.config.js +++ b/sdk/domainservices/arm-domainservices/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/domainservicesManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/domainservicesManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-domainservices.js", format: "umd", @@ -15,17 +21,17 @@ 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ mainFields: ['module', 'main'] }), + sourcemaps() ] }; + export default config; diff --git a/sdk/domainservices/arm-domainservices/src/domainservicesManagementClient.ts b/sdk/domainservices/arm-domainservices/src/domainservicesManagementClient.ts index 99e64b1dd67b..00dcea62a648 100644 --- a/sdk/domainservices/arm-domainservices/src/domainservicesManagementClient.ts +++ b/sdk/domainservices/arm-domainservices/src/domainservicesManagementClient.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 @@ -19,6 +18,8 @@ class DomainservicesManagementClient extends DomainservicesManagementClientConte // Operation groups domainServiceOperations: operations.DomainServiceOperations; domainServices: operations.DomainServices; + ouContainerOperations: operations.OuContainerOperations; + ouContainer: operations.OuContainerOperationsOperations; /** * Initializes a new instance of the DomainservicesManagementClient class. @@ -31,6 +32,8 @@ class DomainservicesManagementClient extends DomainservicesManagementClientConte super(credentials, subscriptionId, options); this.domainServiceOperations = new operations.DomainServiceOperations(this); this.domainServices = new operations.DomainServices(this); + this.ouContainerOperations = new operations.OuContainerOperations(this); + this.ouContainer = new operations.OuContainerOperationsOperations(this); } } diff --git a/sdk/domainservices/arm-domainservices/src/domainservicesManagementClientContext.ts b/sdk/domainservices/arm-domainservices/src/domainservicesManagementClientContext.ts index 83b1b9c3eecd..88b3891b5944 100644 --- a/sdk/domainservices/arm-domainservices/src/domainservicesManagementClientContext.ts +++ b/sdk/domainservices/arm-domainservices/src/domainservicesManagementClientContext.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-domainservices"; -const packageVersion = "0.1.0"; +const packageVersion = "3.1.0"; export class DomainservicesManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -45,7 +44,7 @@ export class DomainservicesManagementClientContext extends msRestAzure.AzureServ super(credentials, options); - this.apiVersion = '2017-06-01'; + this.apiVersion = '2020-01-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/domainservices/arm-domainservices/src/models/domainServiceOperationsMappers.ts b/sdk/domainservices/arm-domainservices/src/models/domainServiceOperationsMappers.ts index aba5d8bf047b..a0ef9f388153 100644 --- a/sdk/domainservices/arm-domainservices/src/models/domainServiceOperationsMappers.ts +++ b/sdk/domainservices/arm-domainservices/src/models/domainServiceOperationsMappers.ts @@ -1,17 +1,14 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - OperationEntityListResult, - OperationEntity, + CloudError, OperationDisplayInfo, - CloudError + OperationEntity, + OperationEntityListResult } from "../models/mappers"; - diff --git a/sdk/domainservices/arm-domainservices/src/models/domainServicesMappers.ts b/sdk/domainservices/arm-domainservices/src/models/domainServicesMappers.ts index fae4820d74b3..2c0bc03a312e 100644 --- a/sdk/domainservices/arm-domainservices/src/models/domainServicesMappers.ts +++ b/sdk/domainservices/arm-domainservices/src/models/domainServicesMappers.ts @@ -1,23 +1,27 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - DomainServiceListResult, - DomainService, - Resource, BaseResource, - LdapsSettings, - HealthMonitor, + CloudError, + ContainerAccount, + DomainSecuritySettings, + DomainService, + DomainServiceListResult, + ForestTrust, HealthAlert, + HealthMonitor, + LdapsSettings, + MigrationProgress, + MigrationProperties, NotificationSettings, - DomainSecuritySettings, - CloudError + OuContainer, + ReplicaSet, + Resource, + ResourceForestSettings } from "../models/mappers"; - diff --git a/sdk/domainservices/arm-domainservices/src/models/index.ts b/sdk/domainservices/arm-domainservices/src/models/index.ts index a2ae83f10b66..e053624fdd3d 100644 --- a/sdk/domainservices/arm-domainservices/src/models/index.ts +++ b/sdk/domainservices/arm-domainservices/src/models/index.ts @@ -1,11 +1,9 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,413 +11,538 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing Resource. * The Resource model definition. - * - * @extends BaseResource */ export interface Resource extends BaseResource { /** - * @member {string} [id] Resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [location] Resource location + * Resource location */ location?: string; /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags + * Resource tags */ tags?: { [propertyName: string]: string }; /** - * @member {string} [etag] Resource etag + * Resource etag */ etag?: string; } /** - * @interface - * An interface representing LdapsSettings. + * Health Monitor Description + */ +export interface HealthMonitor { + /** + * Health Monitor Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Health Monitor Name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Health Monitor Details + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly details?: string; +} + +/** + * Health Alert Description + */ +export interface HealthAlert { + /** + * Health Alert Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Health Alert Name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Health Alert Issue + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly issue?: string; + /** + * Health Alert Severity + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly severity?: string; + /** + * Health Alert Raised DateTime + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly raised?: Date; + /** + * Health Alert Last Detected DateTime + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastDetected?: Date; + /** + * Health Alert TSG Link + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly resolutionUri?: string; +} + +/** + * Replica Set Definition + */ +export interface ReplicaSet { + /** + * ReplicaSet Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly replicaSetId?: string; + /** + * Virtual network location + */ + location?: string; + /** + * Virtual network site id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vnetSiteId?: string; + /** + * The name of the virtual network that Domain Services will be deployed on. The id of the subnet + * that Domain Services will be deployed on. /virtualNetwork/vnetName/subnets/subnetName. + */ + subnetId?: string; + /** + * List of Domain Controller IP Address + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly domainControllerIpAddress?: string[]; + /** + * External access ip address. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly externalAccessIpAddress?: string; + /** + * Status of Domain Service instance + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serviceStatus?: string; + /** + * Last domain evaluation run DateTime + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly healthLastEvaluated?: Date; + /** + * List of Domain Health Monitors + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly healthMonitors?: HealthMonitor[]; + /** + * List of Domain Health Alerts + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly healthAlerts?: HealthAlert[]; +} + +/** * Secure LDAP Settings - * */ export interface LdapsSettings { /** - * @member {Ldaps} [ldaps] A flag to determine whether or not Secure LDAP is - * enabled or disabled. Possible values include: 'Enabled', 'Disabled' + * A flag to determine whether or not Secure LDAP is enabled or disabled. Possible values + * include: 'Enabled', 'Disabled'. Default value: 'Disabled'. */ ldaps?: Ldaps; /** - * @member {string} [pfxCertificate] The certificate required to configure - * Secure LDAP. The parameter passed here should be a base64encoded - * representation of the certificate pfx file. + * The certificate required to configure Secure LDAP. The parameter passed here should be a + * base64encoded representation of the certificate pfx file. */ pfxCertificate?: string; /** - * @member {string} [pfxCertificatePassword] The password to decrypt the - * provided Secure LDAP certificate pfx file. + * The password to decrypt the provided Secure LDAP certificate pfx file. */ pfxCertificatePassword?: string; /** - * @member {string} [publicCertificate] Public certificate used to configure - * secure ldap. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Public certificate used to configure secure ldap. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly publicCertificate?: string; /** - * @member {string} [certificateThumbprint] Thumbprint of configure ldaps - * certificate. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Thumbprint of configure ldaps certificate. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly certificateThumbprint?: string; /** - * @member {Date} [certificateNotAfter] NotAfter DateTime of configure ldaps - * certificate. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * NotAfter DateTime of configure ldaps certificate. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly certificateNotAfter?: Date; /** - * @member {ExternalAccess} [externalAccess] A flag to determine whether or - * not Secure LDAP access over the internet is enabled or disabled. Possible - * values include: 'Enabled', 'Disabled' + * A flag to determine whether or not Secure LDAP access over the internet is enabled or + * disabled. Possible values include: 'Enabled', 'Disabled'. Default value: 'Disabled'. */ externalAccess?: ExternalAccess; - /** - * @member {string} [externalAccessIpAddress] External access ip address. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly externalAccessIpAddress?: string; } /** - * @interface - * An interface representing HealthMonitor. - * Health Monitor Description - * + * Forest Trust Setting */ -export interface HealthMonitor { +export interface ForestTrust { /** - * @member {string} [id] Health Monitor Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Trusted Domain FQDN */ - readonly id?: string; + trustedDomainFqdn?: string; /** - * @member {string} [name] Health Monitor Name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Trust Direction */ - readonly name?: string; + trustDirection?: string; /** - * @member {string} [details] Health Monitor Details - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Friendly Name */ - readonly details?: string; + friendlyName?: string; + /** + * Remote Dns ips + */ + remoteDnsIps?: string; + /** + * Trust Password + */ + trustPassword?: string; } /** - * @interface - * An interface representing HealthAlert. - * Health Alert Description - * + * Settings for Resource Forest */ -export interface HealthAlert { +export interface ResourceForestSettings { /** - * @member {string} [id] Health Alert Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * List of settings for Resource Forest */ - readonly id?: string; + settings?: ForestTrust[]; /** - * @member {string} [name] Health Alert Name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource Forest */ - readonly name?: string; + resourceForest?: string; +} + +/** + * Domain Security Settings + */ +export interface DomainSecuritySettings { /** - * @member {string} [issue] Health Alert Issue - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * A flag to determine whether or not NtlmV1 is enabled or disabled. Possible values include: + * 'Enabled', 'Disabled'. Default value: 'Enabled'. */ - readonly issue?: string; + ntlmV1?: NtlmV1; /** - * @member {string} [severity] Health Alert Severity - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * A flag to determine whether or not TlsV1 is enabled or disabled. Possible values include: + * 'Enabled', 'Disabled'. Default value: 'Enabled'. */ - readonly severity?: string; + tlsV1?: TlsV1; /** - * @member {Date} [raised] Health Alert Raised DateTime - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. Possible values + * include: 'Enabled', 'Disabled'. Default value: 'Enabled'. */ - readonly raised?: Date; + syncNtlmPasswords?: SyncNtlmPasswords; /** - * @member {Date} [lastDetected] Health Alert Last Detected DateTime - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. Possible + * values include: 'Enabled', 'Disabled'. Default value: 'Enabled'. */ - readonly lastDetected?: Date; + syncKerberosPasswords?: SyncKerberosPasswords; /** - * @member {string} [resolutionUri] Health Alert TSG Link - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. Possible values + * include: 'Enabled', 'Disabled'. Default value: 'Enabled'. */ - readonly resolutionUri?: string; + syncOnPremPasswords?: SyncOnPremPasswords; } /** - * @interface - * An interface representing NotificationSettings. * Settings for notification - * */ export interface NotificationSettings { /** - * @member {NotifyGlobalAdmins} [notifyGlobalAdmins] Should global admins be - * notified. Possible values include: 'Enabled', 'Disabled' + * Should global admins be notified. Possible values include: 'Enabled', 'Disabled' */ notifyGlobalAdmins?: NotifyGlobalAdmins; /** - * @member {NotifyDcAdmins} [notifyDcAdmins] Should domain controller admins - * be notified. Possible values include: 'Enabled', 'Disabled' + * Should domain controller admins be notified. Possible values include: 'Enabled', 'Disabled' */ notifyDcAdmins?: NotifyDcAdmins; /** - * @member {string[]} [additionalRecipients] The list of additional - * recipients + * The list of additional recipients */ additionalRecipients?: string[]; } /** - * @interface - * An interface representing DomainSecuritySettings. - * Domain Security Settings - * + * Migration Progress */ -export interface DomainSecuritySettings { +export interface MigrationProgress { /** - * @member {NtlmV1} [ntlmV1] A flag to determine whether or not NtlmV1 is - * enabled or disabled. Possible values include: 'Enabled', 'Disabled' + * Completion Percentage */ - ntlmV1?: NtlmV1; + completionPercentage?: number; /** - * @member {TlsV1} [tlsV1] A flag to determine whether or not TlsV1 is - * enabled or disabled. Possible values include: 'Enabled', 'Disabled' + * Progress Message */ - tlsV1?: TlsV1; + progressMessage?: string; +} + +/** + * Migration Properties + */ +export interface MigrationProperties { /** - * @member {SyncNtlmPasswords} [syncNtlmPasswords] A flag to determine - * whether or not SyncNtlmPasswords is enabled or disabled. Possible values - * include: 'Enabled', 'Disabled' + * Old Subnet Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - syncNtlmPasswords?: SyncNtlmPasswords; + readonly oldSubnetId?: string; + /** + * Old Vnet Site Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly oldVnetSiteId?: string; + /** + * Migration Progress + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly migrationProgress?: MigrationProgress; } /** - * @interface - * An interface representing DomainService. * Domain service. - * - * @extends Resource */ export interface DomainService extends Resource { /** - * @member {string} [tenantId] Azure Active Directory tenant id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Data Model Version + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly version?: number; + /** + * Azure Active Directory Tenant Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly tenantId?: string; /** - * @member {string} [domainName] The name of the Azure domain that the user - * would like to deploy Domain Services to. + * The name of the Azure domain that the user would like to deploy Domain Services to. */ domainName?: string; /** - * @member {string} [vnetSiteId] Virtual network site id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Deployment Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly vnetSiteId?: string; + readonly deploymentId?: string; /** - * @member {string} [subnetId] The name of the virtual network that Domain - * Services will be deployed on. The id of the subnet that Domain Services - * will be deployed on. /virtualNetwork/vnetName/subnets/subnetName. + * SyncOwner ReplicaSet Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - subnetId?: string; + readonly syncOwner?: string; /** - * @member {LdapsSettings} [ldapsSettings] Secure LDAP Settings + * List of ReplicaSets */ - ldapsSettings?: LdapsSettings; + replicaSets?: ReplicaSet[]; /** - * @member {Date} [healthLastEvaluated] Last domain evaluation run DateTime - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Secure LDAP Settings */ - readonly healthLastEvaluated?: Date; + ldapsSettings?: LdapsSettings; /** - * @member {HealthMonitor[]} [healthMonitors] List of Domain Health Monitors - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource Forest Settings */ - readonly healthMonitors?: HealthMonitor[]; + resourceForestSettings?: ResourceForestSettings; /** - * @member {HealthAlert[]} [healthAlerts] List of Domain Health Alerts - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * DomainSecurity Settings */ - readonly healthAlerts?: HealthAlert[]; + domainSecuritySettings?: DomainSecuritySettings; /** - * @member {NotificationSettings} [notificationSettings] Notification - * Settings + * Domain Configuration Type */ - notificationSettings?: NotificationSettings; + domainConfigurationType?: string; /** - * @member {DomainSecuritySettings} [domainSecuritySettings] DomainSecurity - * Settings + * Sku Type */ - domainSecuritySettings?: DomainSecuritySettings; + sku?: string; /** - * @member {FilteredSync} [filteredSync] Enabled or Disabled flag to turn on - * Group-based filtered sync. Possible values include: 'Enabled', 'Disabled' + * Enabled or Disabled flag to turn on Group-based filtered sync. Possible values include: + * 'Enabled', 'Disabled' */ filteredSync?: FilteredSync; /** - * @member {string[]} [domainControllerIpAddress] List of Domain Controller - * IP Address - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Notification Settings */ - readonly domainControllerIpAddress?: string[]; + notificationSettings?: NotificationSettings; /** - * @member {string} [serviceStatus] Status of Domain Service instance - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Migration Properties + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly serviceStatus?: string; + readonly migrationProperties?: MigrationProperties; /** - * @member {string} [provisioningState] the current deployment or - * provisioning state, which only appears in the response. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * the current deployment or provisioning state, which only appears in the response. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: string; } /** - * @interface - * An interface representing OperationDisplayInfo. * The operation supported by Domain Services. - * */ export interface OperationDisplayInfo { /** - * @member {string} [description] The description of the operation. + * The description of the operation. */ description?: string; /** - * @member {string} [operation] The action that users can perform, based on - * their permission level. + * The action that users can perform, based on their permission level. */ operation?: string; /** - * @member {string} [provider] Service provider: Domain Services. + * Service provider: Domain Services. */ provider?: string; /** - * @member {string} [resource] Resource on which the operation is performed. + * Resource on which the operation is performed. */ resource?: string; } /** - * @interface - * An interface representing OperationEntity. * The operation supported by Domain Services. - * */ export interface OperationEntity { /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation}. + * Operation name: {provider}/{resource}/{operation}. */ name?: string; /** - * @member {OperationDisplayInfo} [display] The operation supported by Domain - * Services. + * The operation supported by Domain Services. */ display?: OperationDisplayInfo; /** - * @member {string} [origin] The origin of the operation. + * The origin of the operation. */ origin?: string; } /** - * @interface - * An interface representing DomainservicesManagementClientOptions. - * @extends AzureServiceClientOptions + * Container Account Description */ -export interface DomainservicesManagementClientOptions extends AzureServiceClientOptions { +export interface ContainerAccount { /** - * @member {string} [baseUri] + * The account name */ - baseUri?: string; + accountName?: string; + /** + * The account spn + */ + spn?: string; + /** + * The account password + */ + password?: string; } +/** + * Resource for OuContainer. + */ +export interface OuContainer extends Resource { + /** + * Azure Active Directory tenant id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; + /** + * The domain name of Domain Services. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly domainName?: string; + /** + * The Deployment id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly deploymentId?: string; + /** + * The OuContainer name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly containerId?: string; + /** + * The list of container accounts + */ + accounts?: ContainerAccount[]; + /** + * Status of OuContainer instance + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly serviceStatus?: string; + /** + * Distinguished Name of OuContainer instance + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly distinguishedName?: string; + /** + * The current deployment or provisioning state, which only appears in the response. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; +} + +/** + * An interface representing DomainservicesManagementClientOptions. + */ +export interface DomainservicesManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} /** * @interface - * An interface representing the OperationEntityListResult. * The list of domain service operation response. - * * @extends Array */ export interface OperationEntityListResult extends Array { /** - * @member {string} [nextLink] The continuation token for the next page of - * results. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The continuation token for the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; } /** * @interface - * An interface representing the DomainServiceListResult. * The response from the List Domain Services operation. - * * @extends Array */ export interface DomainServiceListResult extends Array { /** - * @member {string} [nextLink] The continuation token for the next page of - * results. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The continuation token for the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * The response from the List OuContainer operation. + * @extends Array + */ +export interface OuContainerListResult extends Array { + /** + * The continuation token for the next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; } @@ -441,44 +564,44 @@ export type Ldaps = 'Enabled' | 'Disabled'; export type ExternalAccess = 'Enabled' | 'Disabled'; /** - * Defines values for NotifyGlobalAdmins. + * Defines values for NtlmV1. * Possible values include: 'Enabled', 'Disabled' * @readonly * @enum {string} */ -export type NotifyGlobalAdmins = 'Enabled' | 'Disabled'; +export type NtlmV1 = 'Enabled' | 'Disabled'; /** - * Defines values for NotifyDcAdmins. + * Defines values for TlsV1. * Possible values include: 'Enabled', 'Disabled' * @readonly * @enum {string} */ -export type NotifyDcAdmins = 'Enabled' | 'Disabled'; +export type TlsV1 = 'Enabled' | 'Disabled'; /** - * Defines values for NtlmV1. + * Defines values for SyncNtlmPasswords. * Possible values include: 'Enabled', 'Disabled' * @readonly * @enum {string} */ -export type NtlmV1 = 'Enabled' | 'Disabled'; +export type SyncNtlmPasswords = 'Enabled' | 'Disabled'; /** - * Defines values for TlsV1. + * Defines values for SyncKerberosPasswords. * Possible values include: 'Enabled', 'Disabled' * @readonly * @enum {string} */ -export type TlsV1 = 'Enabled' | 'Disabled'; +export type SyncKerberosPasswords = 'Enabled' | 'Disabled'; /** - * Defines values for SyncNtlmPasswords. + * Defines values for SyncOnPremPasswords. * Possible values include: 'Enabled', 'Disabled' * @readonly * @enum {string} */ -export type SyncNtlmPasswords = 'Enabled' | 'Disabled'; +export type SyncOnPremPasswords = 'Enabled' | 'Disabled'; /** * Defines values for FilteredSync. @@ -488,6 +611,22 @@ export type SyncNtlmPasswords = 'Enabled' | 'Disabled'; */ export type FilteredSync = 'Enabled' | 'Disabled'; +/** + * Defines values for NotifyGlobalAdmins. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type NotifyGlobalAdmins = 'Enabled' | 'Disabled'; + +/** + * Defines values for NotifyDcAdmins. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type NotifyDcAdmins = 'Enabled' | 'Disabled'; + /** * Contains response data for the list operation. */ @@ -500,6 +639,7 @@ export type DomainServiceOperationsListResponse = OperationEntityListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -519,6 +659,7 @@ export type DomainServiceOperationsListNextResponse = OperationEntityListResult * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -538,6 +679,7 @@ export type DomainServicesListResponse = DomainServiceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -557,6 +699,7 @@ export type DomainServicesListByResourceGroupResponse = DomainServiceListResult * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -576,6 +719,7 @@ export type DomainServicesCreateOrUpdateResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -595,6 +739,7 @@ export type DomainServicesGetResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -603,9 +748,9 @@ export type DomainServicesGetResponse = DomainService & { }; /** - * Contains response data for the deleteMethod operation. + * Contains response data for the update operation. */ -export type DomainServicesDeleteMethodResponse = DomainService & { +export type DomainServicesUpdateResponse = DomainService & { /** * The underlying HTTP response. */ @@ -614,6 +759,7 @@ export type DomainServicesDeleteMethodResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -622,9 +768,9 @@ export type DomainServicesDeleteMethodResponse = DomainService & { }; /** - * Contains response data for the update operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type DomainServicesUpdateResponse = DomainService & { +export type DomainServicesBeginCreateOrUpdateResponse = DomainService & { /** * The underlying HTTP response. */ @@ -633,6 +779,7 @@ export type DomainServicesUpdateResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -641,9 +788,9 @@ export type DomainServicesUpdateResponse = DomainService & { }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the beginUpdate operation. */ -export type DomainServicesBeginCreateOrUpdateResponse = DomainService & { +export type DomainServicesBeginUpdateResponse = DomainService & { /** * The underlying HTTP response. */ @@ -652,6 +799,7 @@ export type DomainServicesBeginCreateOrUpdateResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -660,9 +808,9 @@ export type DomainServicesBeginCreateOrUpdateResponse = DomainService & { }; /** - * Contains response data for the beginDeleteMethod operation. + * Contains response data for the listNext operation. */ -export type DomainServicesBeginDeleteMethodResponse = DomainService & { +export type DomainServicesListNextResponse = DomainServiceListResult & { /** * The underlying HTTP response. */ @@ -671,17 +819,18 @@ export type DomainServicesBeginDeleteMethodResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: DomainService; + parsedBody: DomainServiceListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type DomainServicesBeginUpdateResponse = DomainService & { +export type DomainServicesListByResourceGroupNextResponse = DomainServiceListResult & { /** * The underlying HTTP response. */ @@ -690,17 +839,38 @@ export type DomainServicesBeginUpdateResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: DomainService; + parsedBody: DomainServiceListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type OuContainerOperationsListResponse = OperationEntityListResult & { + /** + * 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: OperationEntityListResult; }; }; /** * Contains response data for the listNext operation. */ -export type DomainServicesListNextResponse = DomainServiceListResult & { +export type OuContainerOperationsListNextResponse = OperationEntityListResult & { /** * The underlying HTTP response. */ @@ -709,17 +879,18 @@ export type DomainServicesListNextResponse = DomainServiceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: DomainServiceListResult; + parsedBody: OperationEntityListResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the list operation. */ -export type DomainServicesListByResourceGroupNextResponse = DomainServiceListResult & { +export type OuContainerListResponse = OuContainerListResult & { /** * The underlying HTTP response. */ @@ -728,9 +899,130 @@ export type DomainServicesListByResourceGroupNextResponse = DomainServiceListRes * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: DomainServiceListResult; + parsedBody: OuContainerListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type OuContainerGetResponse = OuContainer & { + /** + * 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: OuContainer; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type OuContainerCreateResponse = OuContainer & { + /** + * 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: OuContainer; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type OuContainerUpdateResponse = OuContainer & { + /** + * 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: OuContainer; + }; +}; + +/** + * Contains response data for the beginCreate operation. + */ +export type OuContainerBeginCreateResponse = OuContainer & { + /** + * 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: OuContainer; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type OuContainerBeginUpdateResponse = OuContainer & { + /** + * 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: OuContainer; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type OuContainerListNextResponse = OuContainerListResult & { + /** + * 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: OuContainerListResult; }; }; diff --git a/sdk/domainservices/arm-domainservices/src/models/mappers.ts b/sdk/domainservices/arm-domainservices/src/models/mappers.ts index 5f8b614e7804..df04338f4066 100644 --- a/sdk/domainservices/arm-domainservices/src/models/mappers.ts +++ b/sdk/domainservices/arm-domainservices/src/models/mappers.ts @@ -1,11 +1,9 @@ /* - * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; @@ -68,6 +66,191 @@ export const Resource: msRest.CompositeMapper = { } }; +export const HealthMonitor: msRest.CompositeMapper = { + serializedName: "HealthMonitor", + type: { + name: "Composite", + className: "HealthMonitor", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + details: { + readOnly: true, + serializedName: "details", + type: { + name: "String" + } + } + } + } +}; + +export const HealthAlert: msRest.CompositeMapper = { + serializedName: "HealthAlert", + type: { + name: "Composite", + className: "HealthAlert", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + issue: { + readOnly: true, + serializedName: "issue", + type: { + name: "String" + } + }, + severity: { + readOnly: true, + serializedName: "severity", + type: { + name: "String" + } + }, + raised: { + readOnly: true, + serializedName: "raised", + type: { + name: "DateTime" + } + }, + lastDetected: { + readOnly: true, + serializedName: "lastDetected", + type: { + name: "DateTime" + } + }, + resolutionUri: { + readOnly: true, + serializedName: "resolutionUri", + type: { + name: "String" + } + } + } + } +}; + +export const ReplicaSet: msRest.CompositeMapper = { + serializedName: "ReplicaSet", + type: { + name: "Composite", + className: "ReplicaSet", + modelProperties: { + replicaSetId: { + readOnly: true, + serializedName: "replicaSetId", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + vnetSiteId: { + readOnly: true, + serializedName: "vnetSiteId", + type: { + name: "String" + } + }, + subnetId: { + serializedName: "subnetId", + type: { + name: "String" + } + }, + domainControllerIpAddress: { + readOnly: true, + serializedName: "domainControllerIpAddress", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + externalAccessIpAddress: { + readOnly: true, + serializedName: "externalAccessIpAddress", + type: { + name: "String" + } + }, + serviceStatus: { + readOnly: true, + serializedName: "serviceStatus", + type: { + name: "String" + } + }, + healthLastEvaluated: { + readOnly: true, + serializedName: "healthLastEvaluated", + type: { + name: "DateTimeRfc1123" + } + }, + healthMonitors: { + readOnly: true, + serializedName: "healthMonitors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthMonitor" + } + } + } + }, + healthAlerts: { + readOnly: true, + serializedName: "healthAlerts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthAlert" + } + } + } + } + } + } +}; + export const LdapsSettings: msRest.CompositeMapper = { serializedName: "LdapsSettings", type: { @@ -76,6 +259,7 @@ export const LdapsSettings: msRest.CompositeMapper = { modelProperties: { ldaps: { serializedName: "ldaps", + defaultValue: 'Disabled', type: { name: "String" } @@ -115,13 +299,7 @@ export const LdapsSettings: msRest.CompositeMapper = { }, externalAccess: { serializedName: "externalAccess", - type: { - name: "String" - } - }, - externalAccessIpAddress: { - readOnly: true, - serializedName: "externalAccessIpAddress", + defaultValue: 'Disabled', type: { name: "String" } @@ -130,29 +308,38 @@ export const LdapsSettings: msRest.CompositeMapper = { } }; -export const HealthMonitor: msRest.CompositeMapper = { - serializedName: "HealthMonitor", +export const ForestTrust: msRest.CompositeMapper = { + serializedName: "ForestTrust", type: { name: "Composite", - className: "HealthMonitor", + className: "ForestTrust", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + trustedDomainFqdn: { + serializedName: "trustedDomainFqdn", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + trustDirection: { + serializedName: "trustDirection", type: { name: "String" } }, - details: { - readOnly: true, - serializedName: "details", + friendlyName: { + serializedName: "friendlyName", + type: { + name: "String" + } + }, + remoteDnsIps: { + serializedName: "remoteDnsIps", + type: { + name: "String" + } + }, + trustPassword: { + serializedName: "trustPassword", type: { name: "String" } @@ -161,57 +348,71 @@ export const HealthMonitor: msRest.CompositeMapper = { } }; -export const HealthAlert: msRest.CompositeMapper = { - serializedName: "HealthAlert", +export const ResourceForestSettings: msRest.CompositeMapper = { + serializedName: "ResourceForestSettings", type: { name: "Composite", - className: "HealthAlert", + className: "ResourceForestSettings", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + settings: { + serializedName: "settings", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ForestTrust" + } + } } }, - name: { - readOnly: true, - serializedName: "name", + resourceForest: { + serializedName: "resourceForest", type: { name: "String" } - }, - issue: { - readOnly: true, - serializedName: "issue", + } + } + } +}; + +export const DomainSecuritySettings: msRest.CompositeMapper = { + serializedName: "DomainSecuritySettings", + type: { + name: "Composite", + className: "DomainSecuritySettings", + modelProperties: { + ntlmV1: { + serializedName: "ntlmV1", + defaultValue: 'Enabled', type: { name: "String" } }, - severity: { - readOnly: true, - serializedName: "severity", + tlsV1: { + serializedName: "tlsV1", + defaultValue: 'Enabled', type: { name: "String" } }, - raised: { - readOnly: true, - serializedName: "raised", + syncNtlmPasswords: { + serializedName: "syncNtlmPasswords", + defaultValue: 'Enabled', type: { - name: "DateTime" + name: "String" } }, - lastDetected: { - readOnly: true, - serializedName: "lastDetected", + syncKerberosPasswords: { + serializedName: "syncKerberosPasswords", + defaultValue: 'Enabled', type: { - name: "DateTime" + name: "String" } }, - resolutionUri: { - readOnly: true, - serializedName: "resolutionUri", + syncOnPremPasswords: { + serializedName: "syncOnPremPasswords", + defaultValue: 'Enabled', type: { name: "String" } @@ -253,29 +454,55 @@ export const NotificationSettings: msRest.CompositeMapper = { } }; -export const DomainSecuritySettings: msRest.CompositeMapper = { - serializedName: "DomainSecuritySettings", +export const MigrationProgress: msRest.CompositeMapper = { + serializedName: "MigrationProgress", type: { name: "Composite", - className: "DomainSecuritySettings", + className: "MigrationProgress", modelProperties: { - ntlmV1: { - serializedName: "ntlmV1", + completionPercentage: { + serializedName: "completionPercentage", type: { - name: "String" + name: "Number" } }, - tlsV1: { - serializedName: "tlsV1", + progressMessage: { + serializedName: "progressMessage", + type: { + name: "String" + } + } + } + } +}; + +export const MigrationProperties: msRest.CompositeMapper = { + serializedName: "MigrationProperties", + type: { + name: "Composite", + className: "MigrationProperties", + modelProperties: { + oldSubnetId: { + readOnly: true, + serializedName: "oldSubnetId", type: { name: "String" } }, - syncNtlmPasswords: { - serializedName: "syncNtlmPasswords", + oldVnetSiteId: { + readOnly: true, + serializedName: "oldVnetSiteId", type: { name: "String" } + }, + migrationProgress: { + readOnly: true, + serializedName: "migrationProgress", + type: { + name: "Composite", + className: "MigrationProgress" + } } } } @@ -288,6 +515,13 @@ export const DomainService: msRest.CompositeMapper = { className: "DomainService", modelProperties: { ...Resource.type.modelProperties, + version: { + readOnly: true, + serializedName: "properties.version", + type: { + name: "Number" + } + }, tenantId: { readOnly: true, serializedName: "properties.tenantId", @@ -301,64 +535,44 @@ export const DomainService: msRest.CompositeMapper = { name: "String" } }, - vnetSiteId: { + deploymentId: { readOnly: true, - serializedName: "properties.vnetSiteId", - type: { - name: "String" - } - }, - subnetId: { - serializedName: "properties.subnetId", + serializedName: "properties.deploymentId", type: { name: "String" } }, - ldapsSettings: { - serializedName: "properties.ldapsSettings", - type: { - name: "Composite", - className: "LdapsSettings" - } - }, - healthLastEvaluated: { + syncOwner: { readOnly: true, - serializedName: "properties.healthLastEvaluated", + serializedName: "properties.syncOwner", type: { - name: "DateTime" + name: "String" } }, - healthMonitors: { - readOnly: true, - serializedName: "properties.healthMonitors", + replicaSets: { + serializedName: "properties.replicaSets", type: { name: "Sequence", element: { type: { name: "Composite", - className: "HealthMonitor" + className: "ReplicaSet" } } } }, - healthAlerts: { - readOnly: true, - serializedName: "properties.healthAlerts", + ldapsSettings: { + serializedName: "properties.ldapsSettings", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HealthAlert" - } - } + name: "Composite", + className: "LdapsSettings" } }, - notificationSettings: { - serializedName: "properties.notificationSettings", + resourceForestSettings: { + serializedName: "properties.resourceForestSettings", type: { name: "Composite", - className: "NotificationSettings" + className: "ResourceForestSettings" } }, domainSecuritySettings: { @@ -368,29 +582,37 @@ export const DomainService: msRest.CompositeMapper = { className: "DomainSecuritySettings" } }, + domainConfigurationType: { + serializedName: "properties.domainConfigurationType", + type: { + name: "String" + } + }, + sku: { + serializedName: "properties.sku", + type: { + name: "String" + } + }, filteredSync: { serializedName: "properties.filteredSync", type: { name: "String" } }, - domainControllerIpAddress: { - readOnly: true, - serializedName: "properties.domainControllerIpAddress", + notificationSettings: { + serializedName: "properties.notificationSettings", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "NotificationSettings" } }, - serviceStatus: { + migrationProperties: { readOnly: true, - serializedName: "properties.serviceStatus", + serializedName: "properties.migrationProperties", type: { - name: "String" + name: "Composite", + className: "MigrationProperties" } }, provisioningState: { @@ -467,6 +689,106 @@ export const OperationEntity: msRest.CompositeMapper = { } }; +export const ContainerAccount: msRest.CompositeMapper = { + serializedName: "ContainerAccount", + type: { + name: "Composite", + className: "ContainerAccount", + modelProperties: { + accountName: { + serializedName: "accountName", + type: { + name: "String" + } + }, + spn: { + serializedName: "spn", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + } + } + } +}; + +export const OuContainer: msRest.CompositeMapper = { + serializedName: "OuContainer", + type: { + name: "Composite", + className: "OuContainer", + modelProperties: { + ...Resource.type.modelProperties, + tenantId: { + readOnly: true, + serializedName: "properties.tenantId", + type: { + name: "String" + } + }, + domainName: { + readOnly: true, + serializedName: "properties.domainName", + type: { + name: "String" + } + }, + deploymentId: { + readOnly: true, + serializedName: "properties.deploymentId", + type: { + name: "String" + } + }, + containerId: { + readOnly: true, + serializedName: "properties.containerId", + type: { + name: "String" + } + }, + accounts: { + serializedName: "properties.accounts", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ContainerAccount" + } + } + } + }, + serviceStatus: { + readOnly: true, + serializedName: "properties.serviceStatus", + type: { + name: "String" + } + }, + distinguishedName: { + readOnly: true, + serializedName: "properties.distinguishedName", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + export const OperationEntityListResult: msRest.CompositeMapper = { serializedName: "OperationEntityListResult", type: { @@ -524,3 +846,32 @@ export const DomainServiceListResult: msRest.CompositeMapper = { } } }; + +export const OuContainerListResult: msRest.CompositeMapper = { + serializedName: "OuContainerListResult", + type: { + name: "Composite", + className: "OuContainerListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OuContainer" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/domainservices/arm-domainservices/src/models/ouContainerOperationsMappers.ts b/sdk/domainservices/arm-domainservices/src/models/ouContainerOperationsMappers.ts new file mode 100644 index 000000000000..a0ef9f388153 --- /dev/null +++ b/sdk/domainservices/arm-domainservices/src/models/ouContainerOperationsMappers.ts @@ -0,0 +1,14 @@ +/* + * 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 { + CloudError, + OperationDisplayInfo, + OperationEntity, + OperationEntityListResult +} from "../models/mappers"; diff --git a/sdk/domainservices/arm-domainservices/src/models/ouContainerOperationsOperationsMappers.ts b/sdk/domainservices/arm-domainservices/src/models/ouContainerOperationsOperationsMappers.ts new file mode 100644 index 000000000000..e17453d4cb8b --- /dev/null +++ b/sdk/domainservices/arm-domainservices/src/models/ouContainerOperationsOperationsMappers.ts @@ -0,0 +1,27 @@ +/* + * 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 { + BaseResource, + CloudError, + ContainerAccount, + DomainSecuritySettings, + DomainService, + ForestTrust, + HealthAlert, + HealthMonitor, + LdapsSettings, + MigrationProgress, + MigrationProperties, + NotificationSettings, + OuContainer, + OuContainerListResult, + ReplicaSet, + Resource, + ResourceForestSettings +} from "../models/mappers"; diff --git a/sdk/domainservices/arm-domainservices/src/models/parameters.ts b/sdk/domainservices/arm-domainservices/src/models/parameters.ts index 0b8765e628c5..12dd824109cb 100644 --- a/sdk/domainservices/arm-domainservices/src/models/parameters.ts +++ b/sdk/domainservices/arm-domainservices/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 @@ -51,6 +50,16 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const ouContainerName: msRest.OperationURLParameter = { + parameterPath: "ouContainerName", + mapper: { + required: true, + serializedName: "ouContainerName", + type: { + name: "String" + } + } +}; export const resourceGroupName: msRest.OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { diff --git a/sdk/domainservices/arm-domainservices/src/operations/domainServiceOperations.ts b/sdk/domainservices/arm-domainservices/src/operations/domainServiceOperations.ts index fa8d0ef0e300..2ed3f88e3c10 100644 --- a/sdk/domainservices/arm-domainservices/src/operations/domainServiceOperations.ts +++ b/sdk/domainservices/arm-domainservices/src/operations/domainServiceOperations.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/domainservices/arm-domainservices/src/operations/domainServices.ts b/sdk/domainservices/arm-domainservices/src/operations/domainServices.ts index 8899f044b84e..846948f5f9b3 100644 --- a/sdk/domainservices/arm-domainservices/src/operations/domainServices.ts +++ b/sdk/domainservices/arm-domainservices/src/operations/domainServices.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 @@ -30,7 +29,7 @@ export class DomainServices { /** * The List Domain Services in Subscription operation lists all the domain services available under * the given subscription (and across all resource groups within that subscription). - * @summary List Domain Services in Subscription (GET Resources) + * @summary List Domain Services in Subscription * @param [options] The optional parameters * @returns Promise */ @@ -56,7 +55,7 @@ export class DomainServices { /** * The List Domain Services in Resource Group operation lists all the domain services available * under the given resource group. - * @summary List Domain Services in Resource Group (GET Resources) + * @summary List Domain Services in Resource Group * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. * @param [options] The optional parameters @@ -105,7 +104,7 @@ export class DomainServices { /** * The Get Domain Service operation retrieves a json representation of the Domain Service. - * @summary Get Domain Service (GET Resources) + * @summary Get Domain Service * @param resourceGroupName The name of the resource group within the user's subscription. The name * is case insensitive. * @param domainServiceName The name of the domain service. @@ -146,11 +145,11 @@ export class DomainServices { * is case insensitive. * @param domainServiceName The name of the domain service. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - deleteMethod(resourceGroupName: string, domainServiceName: string, options?: msRest.RequestOptionsBase): Promise { + deleteMethod(resourceGroupName: string, domainServiceName: string, options?: msRest.RequestOptionsBase): Promise { return this.beginDeleteMethod(resourceGroupName,domainServiceName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -239,7 +238,7 @@ export class DomainServices { /** * The List Domain Services in Subscription operation lists all the domain services available under * the given subscription (and across all resource groups within that subscription). - * @summary List Domain Services in Subscription (GET Resources) + * @summary List Domain Services in Subscription * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -269,7 +268,7 @@ export class DomainServices { /** * The List Domain Services in Resource Group operation lists all the domain services available * under the given resource group. - * @summary List Domain Services in Resource Group (GET Resources) + * @summary List Domain Services in Resource Group * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -424,9 +423,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 202: { - bodyMapper: Mappers.DomainService - }, + 202: {}, 204: {}, default: { bodyMapper: Mappers.CloudError @@ -477,6 +474,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -498,6 +498,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/domainservices/arm-domainservices/src/operations/index.ts b/sdk/domainservices/arm-domainservices/src/operations/index.ts index ac0998013aee..c214201994d0 100644 --- a/sdk/domainservices/arm-domainservices/src/operations/index.ts +++ b/sdk/domainservices/arm-domainservices/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 @@ -10,3 +9,5 @@ export * from "./domainServiceOperations"; export * from "./domainServices"; +export * from "./ouContainerOperations"; +export * from "./ouContainerOperationsOperations"; diff --git a/sdk/domainservices/arm-domainservices/src/operations/ouContainerOperations.ts b/sdk/domainservices/arm-domainservices/src/operations/ouContainerOperations.ts new file mode 100644 index 000000000000..6c8fcf1b5641 --- /dev/null +++ b/sdk/domainservices/arm-domainservices/src/operations/ouContainerOperations.ts @@ -0,0 +1,125 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/ouContainerOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { DomainservicesManagementClientContext } from "../domainservicesManagementClientContext"; + +/** Class representing a OuContainerOperations. */ +export class OuContainerOperations { + private readonly client: DomainservicesManagementClientContext; + + /** + * Create a OuContainerOperations. + * @param {DomainservicesManagementClientContext} client Reference to the service client. + */ + constructor(client: DomainservicesManagementClientContext) { + this.client = client; + } + + /** + * Lists all the available OuContainer operations. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists all the available OuContainer operations. + * @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: "providers/Microsoft.Aad/operations", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationEntityListResult + }, + 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.OperationEntityListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/domainservices/arm-domainservices/src/operations/ouContainerOperationsOperations.ts b/sdk/domainservices/arm-domainservices/src/operations/ouContainerOperationsOperations.ts new file mode 100644 index 000000000000..1ae42823100f --- /dev/null +++ b/sdk/domainservices/arm-domainservices/src/operations/ouContainerOperationsOperations.ts @@ -0,0 +1,430 @@ +/* + * 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/ouContainerOperationsOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { DomainservicesManagementClientContext } from "../domainservicesManagementClientContext"; + +/** Class representing a OuContainerOperationsOperations. */ +export class OuContainerOperationsOperations { + private readonly client: DomainservicesManagementClientContext; + + /** + * Create a OuContainerOperationsOperations. + * @param {DomainservicesManagementClientContext} client Reference to the service client. + */ + constructor(client: DomainservicesManagementClientContext) { + this.client = client; + } + + /** + * The List of OuContainers in DomainService instance. + * @summary List of OuContainers in DomainService instance + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param domainServiceName The name of the domain service. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, domainServiceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param domainServiceName The name of the domain service. + * @param callback The callback + */ + list(resourceGroupName: string, domainServiceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param domainServiceName The name of the domain service. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, domainServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, domainServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + domainServiceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get OuContainer in DomainService instance. + * @summary Get particular OuContainer in DomainService instance + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param domainServiceName The name of the domain service. + * @param ouContainerName The name of the OuContainer. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, domainServiceName: string, ouContainerName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param domainServiceName The name of the domain service. + * @param ouContainerName The name of the OuContainer. + * @param callback The callback + */ + get(resourceGroupName: string, domainServiceName: string, ouContainerName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param domainServiceName The name of the domain service. + * @param ouContainerName The name of the OuContainer. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, domainServiceName: string, ouContainerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, domainServiceName: string, ouContainerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + domainServiceName, + ouContainerName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * The Create OuContainer operation creates a new OuContainer under the specified Domain Service + * instance. + * @summary Create OuContainer + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param domainServiceName The name of the domain service. + * @param ouContainerName The name of the OuContainer. + * @param containerAccount Container Account Description. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, domainServiceName: string, ouContainerName: string, containerAccount: Models.ContainerAccount, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,domainServiceName,ouContainerName,containerAccount,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The Delete OuContainer operation deletes specified OuContainer. + * @summary Delete OuContainer + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param domainServiceName The name of the domain service. + * @param ouContainerName The name of the OuContainer. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, domainServiceName: string, ouContainerName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,domainServiceName,ouContainerName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * The Update OuContainer operation can be used to update the existing OuContainers. + * @summary Update OuContainer (PATCH Resource) + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param domainServiceName The name of the domain service. + * @param ouContainerName The name of the OuContainer. + * @param containerAccount Container Account Description. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, domainServiceName: string, ouContainerName: string, containerAccount: Models.ContainerAccount, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,domainServiceName,ouContainerName,containerAccount,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * The Create OuContainer operation creates a new OuContainer under the specified Domain Service + * instance. + * @summary Create OuContainer + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param domainServiceName The name of the domain service. + * @param ouContainerName The name of the OuContainer. + * @param containerAccount Container Account Description. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreate(resourceGroupName: string, domainServiceName: string, ouContainerName: string, containerAccount: Models.ContainerAccount, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + domainServiceName, + ouContainerName, + containerAccount, + options + }, + beginCreateOperationSpec, + options); + } + + /** + * The Delete OuContainer operation deletes specified OuContainer. + * @summary Delete OuContainer + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param domainServiceName The name of the domain service. + * @param ouContainerName The name of the OuContainer. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, domainServiceName: string, ouContainerName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + domainServiceName, + ouContainerName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * The Update OuContainer operation can be used to update the existing OuContainers. + * @summary Update OuContainer (PATCH Resource) + * @param resourceGroupName The name of the resource group within the user's subscription. The name + * is case insensitive. + * @param domainServiceName The name of the domain service. + * @param ouContainerName The name of the OuContainer. + * @param containerAccount Container Account Description. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, domainServiceName: string, ouContainerName: string, containerAccount: Models.ContainerAccount, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + domainServiceName, + ouContainerName, + containerAccount, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * The List of OuContainers in DomainService instance. + * @summary List of OuContainers in DomainService instance + * @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.Aad/domainServices/{domainServiceName}/ouContainer", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.domainServiceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OuContainerListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Aad/domainServices/{domainServiceName}/ouContainer/{ouContainerName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.domainServiceName, + Parameters.ouContainerName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OuContainer + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Aad/domainServices/{domainServiceName}/ouContainer/{ouContainerName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.domainServiceName, + Parameters.ouContainerName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "containerAccount", + mapper: { + ...Mappers.ContainerAccount, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OuContainer + }, + 201: { + bodyMapper: Mappers.OuContainer + }, + 202: { + bodyMapper: Mappers.OuContainer + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Aad/domainServices/{domainServiceName}/ouContainer/{ouContainerName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.domainServiceName, + Parameters.ouContainerName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Aad/domainServices/{domainServiceName}/ouContainer/{ouContainerName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.domainServiceName, + Parameters.ouContainerName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "containerAccount", + mapper: { + ...Mappers.ContainerAccount, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OuContainer + }, + 202: { + bodyMapper: Mappers.OuContainer + }, + 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.OuContainerListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/domainservices/arm-domainservices/tsconfig.json b/sdk/domainservices/arm-domainservices/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/domainservices/arm-domainservices/tsconfig.json +++ b/sdk/domainservices/arm-domainservices/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true