From bc62f242c2463a77fed6c26f5c1d682ac8f0a118 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 24 Nov 2020 04:08:47 +0000 Subject: [PATCH] CodeGen from PR 11793 in Azure/azure-rest-api-specs Merge 8f6dcce300a0e071507028daa1d9df971225935c into d4d7ea6c660f853323ce6dc0ab9f3c239767169c --- .../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 | 7 +- .../models/domainServiceOperationsMappers.ts | 17 +- .../src/models/domainServicesMappers.ts | 29 +- .../arm-domainservices/src/models/index.ts | 740 ++++++++++++------ .../arm-domainservices/src/models/mappers.ts | 421 +++++++++- .../models/ouContainerOperationsMappers.ts | 14 + .../ouContainerOperationsOperationsMappers.ts | 24 + .../src/models/parameters.ts | 15 +- .../src/operations/domainServiceOperations.ts | 12 +- .../src/operations/domainServices.ts | 47 +- .../src/operations/index.ts | 7 +- .../src/operations/ouContainerOperations.ts | 125 +++ .../ouContainerOperationsOperations.ts | 430 ++++++++++ .../arm-domainservices/tsconfig.json | 2 +- 19 files changed, 1609 insertions(+), 361 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..ea8fb1516028 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) 2020 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..39761592f9d5 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; diff --git a/sdk/domainservices/arm-domainservices/src/models/domainServiceOperationsMappers.ts b/sdk/domainservices/arm-domainservices/src/models/domainServiceOperationsMappers.ts index aba5d8bf047b..b68055283dfd 100644 --- a/sdk/domainservices/arm-domainservices/src/models/domainServiceOperationsMappers.ts +++ b/sdk/domainservices/arm-domainservices/src/models/domainServiceOperationsMappers.ts @@ -1,17 +1,16 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - OperationEntityListResult, - OperationEntity, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem, 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..e9484b692e64 100644 --- a/sdk/domainservices/arm-domainservices/src/models/domainServicesMappers.ts +++ b/sdk/domainservices/arm-domainservices/src/models/domainServicesMappers.ts @@ -1,23 +1,26 @@ /* - * 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, + ContainerAccount, + DefaultErrorResponse, + DefaultErrorResponseError, + DefaultErrorResponseErrorDetailsItem, + DomainSecuritySettings, + DomainService, + DomainServiceListResult, + ForestTrust, HealthAlert, + HealthMonitor, + LdapsSettings, NotificationSettings, - DomainSecuritySettings, - CloudError + OuContainer, + 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..8ab9606e5709 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,536 @@ 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. * 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' */ 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' */ externalAccess?: ExternalAccess; /** - * @member {string} [externalAccessIpAddress] External access ip address. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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. + * Domain Security Settings + */ +export interface DomainSecuritySettings { + /** + * A flag to determine whether or not NtlmV1 is enabled or disabled. Possible values include: + * 'Enabled', 'Disabled' + */ + ntlmV1?: NtlmV1; + /** + * A flag to determine whether or not TlsV1 is enabled or disabled. Possible values include: + * 'Enabled', 'Disabled' + */ + tlsV1?: TlsV1; + /** + * A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. Possible values + * include: 'Enabled', 'Disabled' + */ + syncNtlmPasswords?: SyncNtlmPasswords; + /** + * A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. Possible + * values include: 'Enabled', 'Disabled' + */ + syncKerberosPasswords?: SyncKerberosPasswords; + /** + * A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. Possible values + * include: 'Enabled', 'Disabled' + */ + syncOnPremPasswords?: SyncOnPremPasswords; +} + +/** + * Forest Trust Setting + */ +export interface ForestTrust { + /** + * Trusted Domain FQDN + */ + trustedDomainFqdn?: string; + /** + * Trust Direction + */ + trustDirection?: string; + /** + * Friendly Name + */ + friendlyName?: string; + /** + * Remote Dns ips + */ + remoteDnsIps?: string; + /** + * Trust Password + */ + trustPassword?: string; +} + +/** + * Settings for Resource Forest + */ +export interface ResourceForestSettings { + /** + * List of settings for Resource Forest + */ + settings?: ForestTrust[]; + /** + * Resource Forest + */ + resourceForest?: string; +} + +/** * Health Monitor Description - * */ export interface HealthMonitor { /** - * @member {string} [id] Health Monitor Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Health Monitor Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Health Monitor Name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Health Monitor Name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [details] Health Monitor Details - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Health Monitor Details + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly details?: string; } /** - * @interface - * An interface representing HealthAlert. * Health Alert Description - * */ export interface HealthAlert { /** - * @member {string} [id] Health Alert Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Health Alert Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Health Alert Name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Health Alert Name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [issue] Health Alert Issue - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Health Alert Issue + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly issue?: string; /** - * @member {string} [severity] Health Alert Severity - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Health Alert Severity + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly severity?: string; /** - * @member {Date} [raised] Health Alert Raised DateTime - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Health Alert Raised DateTime + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly raised?: Date; /** - * @member {Date} [lastDetected] Health Alert Last Detected DateTime - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Health Alert Last Detected DateTime + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly lastDetected?: Date; /** - * @member {string} [resolutionUri] Health Alert TSG Link - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Health Alert TSG Link + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly resolutionUri?: string; } /** - * @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 - * - */ -export interface DomainSecuritySettings { - /** - * @member {NtlmV1} [ntlmV1] A flag to determine whether or not NtlmV1 is - * enabled or disabled. Possible values include: 'Enabled', 'Disabled' - */ - ntlmV1?: NtlmV1; - /** - * @member {TlsV1} [tlsV1] A flag to determine whether or not TlsV1 is - * enabled or disabled. Possible values include: 'Enabled', 'Disabled' - */ - tlsV1?: TlsV1; - /** - * @member {SyncNtlmPasswords} [syncNtlmPasswords] A flag to determine - * whether or not SyncNtlmPasswords is enabled or disabled. Possible values - * include: 'Enabled', 'Disabled' - */ - syncNtlmPasswords?: SyncNtlmPasswords; -} - -/** - * @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 deploymentId?: string; + /** + * Virtual network site id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly vnetSiteId?: 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. + * 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; /** - * @member {LdapsSettings} [ldapsSettings] Secure LDAP Settings + * Secure LDAP Settings */ ldapsSettings?: LdapsSettings; /** - * @member {Date} [healthLastEvaluated] Last domain evaluation run DateTime - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * DomainSecurity Settings + */ + domainSecuritySettings?: DomainSecuritySettings; + /** + * Resource Forest Settings + */ + resourceForestSettings?: ResourceForestSettings; + /** + * Domain Configuration Type + */ + domainConfigurationType?: string; + /** + * Sku Type + */ + sku?: string; + /** + * Last domain evaluation run DateTime + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly healthLastEvaluated?: Date; /** - * @member {HealthMonitor[]} [healthMonitors] List of Domain Health Monitors - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * List of Domain Health Monitors + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly healthMonitors?: HealthMonitor[]; /** - * @member {HealthAlert[]} [healthAlerts] List of Domain Health Alerts - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * List of Domain Health Alerts + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly healthAlerts?: HealthAlert[]; /** - * @member {NotificationSettings} [notificationSettings] Notification - * Settings + * Notification Settings */ notificationSettings?: NotificationSettings; /** - * @member {DomainSecuritySettings} [domainSecuritySettings] DomainSecurity - * Settings - */ - domainSecuritySettings?: DomainSecuritySettings; - /** - * @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.** + * List of Domain Controller IP Address + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly domainControllerIpAddress?: string[]; /** - * @member {string} [serviceStatus] Status of Domain Service instance - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Status of Domain Service instance + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly serviceStatus?: string; /** - * @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 + * Detailed errors. */ -export interface DomainservicesManagementClientOptions extends AzureServiceClientOptions { +export interface DefaultErrorResponseErrorDetailsItem { /** - * @member {string} [baseUri] + * Standardized string to programmatically identify the error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - baseUri?: string; + readonly code?: string; + /** + * Detailed error description and debugging information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; + /** + * Detailed error description and debugging information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly target?: string; } +/** + * Error model. + */ +export interface DefaultErrorResponseError { + /** + * Standardized string to programmatically identify the error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly code?: string; + /** + * Detailed error description and debugging information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; + /** + * Detailed error description and debugging information. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly target?: string; + /** + * Error details. + */ + details?: DefaultErrorResponseErrorDetailsItem[]; + /** + * More information to debug error. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly innererror?: string; +} + +/** + * Domain Service error response. + */ +export interface DefaultErrorResponse { + /** + * Error model. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly error?: DefaultErrorResponseError; +} + +/** + * Container Account Description + */ +export interface ContainerAccount { + /** + * The account name + */ + 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 +562,60 @@ 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 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'; /** * Defines values for FilteredSync. @@ -500,6 +637,7 @@ export type DomainServiceOperationsListResponse = OperationEntityListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -519,6 +657,7 @@ export type DomainServiceOperationsListNextResponse = OperationEntityListResult * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -538,6 +677,7 @@ export type DomainServicesListResponse = DomainServiceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -557,6 +697,7 @@ export type DomainServicesListByResourceGroupResponse = DomainServiceListResult * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -576,6 +717,7 @@ export type DomainServicesCreateOrUpdateResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -595,6 +737,7 @@ export type DomainServicesGetResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -603,9 +746,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 +757,7 @@ export type DomainServicesDeleteMethodResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -622,9 +766,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 +777,7 @@ export type DomainServicesUpdateResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -641,9 +786,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 +797,7 @@ export type DomainServicesBeginCreateOrUpdateResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -660,9 +806,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 +817,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 +837,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 +877,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 +897,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..a07a3d68ba07 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"; @@ -130,6 +128,114 @@ export const LdapsSettings: msRest.CompositeMapper = { } }; +export const DomainSecuritySettings: msRest.CompositeMapper = { + serializedName: "DomainSecuritySettings", + type: { + name: "Composite", + className: "DomainSecuritySettings", + modelProperties: { + ntlmV1: { + serializedName: "ntlmV1", + type: { + name: "String" + } + }, + tlsV1: { + serializedName: "tlsV1", + type: { + name: "String" + } + }, + syncNtlmPasswords: { + serializedName: "syncNtlmPasswords", + type: { + name: "String" + } + }, + syncKerberosPasswords: { + serializedName: "syncKerberosPasswords", + type: { + name: "String" + } + }, + syncOnPremPasswords: { + serializedName: "syncOnPremPasswords", + type: { + name: "String" + } + } + } + } +}; + +export const ForestTrust: msRest.CompositeMapper = { + serializedName: "ForestTrust", + type: { + name: "Composite", + className: "ForestTrust", + modelProperties: { + trustedDomainFqdn: { + serializedName: "trustedDomainFqdn", + type: { + name: "String" + } + }, + trustDirection: { + serializedName: "trustDirection", + type: { + name: "String" + } + }, + friendlyName: { + serializedName: "friendlyName", + type: { + name: "String" + } + }, + remoteDnsIps: { + serializedName: "remoteDnsIps", + type: { + name: "String" + } + }, + trustPassword: { + serializedName: "trustPassword", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceForestSettings: msRest.CompositeMapper = { + serializedName: "ResourceForestSettings", + type: { + name: "Composite", + className: "ResourceForestSettings", + modelProperties: { + settings: { + serializedName: "settings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ForestTrust" + } + } + } + }, + resourceForest: { + serializedName: "resourceForest", + type: { + name: "String" + } + } + } + } +}; + export const HealthMonitor: msRest.CompositeMapper = { serializedName: "HealthMonitor", type: { @@ -253,34 +359,6 @@ export const NotificationSettings: msRest.CompositeMapper = { } }; -export const DomainSecuritySettings: msRest.CompositeMapper = { - serializedName: "DomainSecuritySettings", - type: { - name: "Composite", - className: "DomainSecuritySettings", - modelProperties: { - ntlmV1: { - serializedName: "ntlmV1", - type: { - name: "String" - } - }, - tlsV1: { - serializedName: "tlsV1", - type: { - name: "String" - } - }, - syncNtlmPasswords: { - serializedName: "syncNtlmPasswords", - type: { - name: "String" - } - } - } - } -}; - export const DomainService: msRest.CompositeMapper = { serializedName: "DomainService", type: { @@ -288,6 +366,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,6 +386,13 @@ export const DomainService: msRest.CompositeMapper = { name: "String" } }, + deploymentId: { + readOnly: true, + serializedName: "properties.deploymentId", + type: { + name: "String" + } + }, vnetSiteId: { readOnly: true, serializedName: "properties.vnetSiteId", @@ -321,11 +413,37 @@ export const DomainService: msRest.CompositeMapper = { className: "LdapsSettings" } }, + domainSecuritySettings: { + serializedName: "properties.domainSecuritySettings", + type: { + name: "Composite", + className: "DomainSecuritySettings" + } + }, + resourceForestSettings: { + serializedName: "properties.resourceForestSettings", + type: { + name: "Composite", + className: "ResourceForestSettings" + } + }, + domainConfigurationType: { + serializedName: "properties.domainConfigurationType", + type: { + name: "String" + } + }, + sku: { + serializedName: "properties.sku", + type: { + name: "String" + } + }, healthLastEvaluated: { readOnly: true, serializedName: "properties.healthLastEvaluated", type: { - name: "DateTime" + name: "DateTimeRfc1123" } }, healthMonitors: { @@ -361,13 +479,6 @@ export const DomainService: msRest.CompositeMapper = { className: "NotificationSettings" } }, - domainSecuritySettings: { - serializedName: "properties.domainSecuritySettings", - type: { - name: "Composite", - className: "DomainSecuritySettings" - } - }, filteredSync: { serializedName: "properties.filteredSync", type: { @@ -467,6 +578,205 @@ export const OperationEntity: msRest.CompositeMapper = { } }; +export const DefaultErrorResponseErrorDetailsItem: msRest.CompositeMapper = { + serializedName: "DefaultErrorResponse_error_detailsItem", + type: { + name: "Composite", + className: "DefaultErrorResponseErrorDetailsItem", + modelProperties: { + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + }, + target: { + readOnly: true, + serializedName: "target", + type: { + name: "String" + } + } + } + } +}; + +export const DefaultErrorResponseError: msRest.CompositeMapper = { + serializedName: "DefaultErrorResponse_error", + type: { + name: "Composite", + className: "DefaultErrorResponseError", + modelProperties: { + code: { + readOnly: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + }, + target: { + readOnly: true, + serializedName: "target", + type: { + name: "String" + } + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DefaultErrorResponseErrorDetailsItem" + } + } + } + }, + innererror: { + readOnly: true, + serializedName: "innererror", + type: { + name: "String" + } + } + } + } +}; + +export const DefaultErrorResponse: msRest.CompositeMapper = { + serializedName: "DefaultErrorResponse", + type: { + name: "Composite", + className: "DefaultErrorResponse", + modelProperties: { + error: { + readOnly: true, + serializedName: "error", + type: { + name: "Composite", + className: "DefaultErrorResponseError" + } + } + } + } +}; + +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 +834,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..706e050f33b3 --- /dev/null +++ b/sdk/domainservices/arm-domainservices/src/models/ouContainerOperationsOperationsMappers.ts @@ -0,0 +1,24 @@ +/* + * 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, + NotificationSettings, + OuContainer, + OuContainerListResult, + 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..318294ef5f37 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 @@ -95,7 +94,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.OperationEntityListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.DefaultErrorResponse } }, serializer @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -116,7 +118,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.OperationEntityListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.DefaultErrorResponse } }, serializer diff --git a/sdk/domainservices/arm-domainservices/src/operations/domainServices.ts b/sdk/domainservices/arm-domainservices/src/operations/domainServices.ts index 8899f044b84e..b0f8685a5f55 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 @@ -316,7 +315,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.DomainServiceListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.DefaultErrorResponse } }, serializer @@ -340,7 +339,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.DomainServiceListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.DefaultErrorResponse } }, serializer @@ -365,7 +364,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.DomainService }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.DefaultErrorResponse } }, serializer @@ -403,7 +402,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.DomainService }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.DefaultErrorResponse } }, serializer @@ -424,12 +423,10 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 202: { - bodyMapper: Mappers.DomainService - }, + 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.DefaultErrorResponse } }, serializer @@ -464,7 +461,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.DomainService }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.DefaultErrorResponse } }, serializer @@ -477,6 +474,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -485,7 +485,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.DomainServiceListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.DefaultErrorResponse } }, serializer @@ -498,6 +498,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -506,7 +509,7 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.DomainServiceListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.DefaultErrorResponse } }, serializer 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