From 1f03016914f4e8a5917b6a3bb24578bbe3877265 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 22 Nov 2021 03:54:46 +0000 Subject: [PATCH] CodeGen from PR 15921 in Azure/azure-rest-api-specs track2 modify azureactivedirectory,domainservices readme.go.md (#15921) * track2 modify azureactivedirectory,domainservices readme.go.md * add swagger-to-sdk repo go track2 * fix namespace * add resourcemanager --- .../arm-domainservices/LICENSE.txt | 2 +- .../arm-domainservices/README.md | 9 +- .../arm-domainservices/package.json | 20 +- .../arm-domainservices/rollup.config.js | 24 +- .../src/domainservicesManagementClient.ts | 9 +- .../domainservicesManagementClientContext.ts | 9 +- .../models/domainServiceOperationsMappers.ts | 15 +- .../src/models/domainServicesMappers.ts | 34 +- .../arm-domainservices/src/models/index.ts | 902 +++++++++++++----- .../arm-domainservices/src/models/mappers.ts | 884 +++++++++++++---- .../models/ouContainerOperationsMappers.ts | 14 + .../ouContainerOperationsOperationsMappers.ts | 31 + .../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, 2073 insertions(+), 498 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 49b77e9cb854..1830a2c5a12f 100644 --- a/sdk/domainservices/arm-domainservices/README.md +++ b/sdk/domainservices/arm-domainservices/README.md @@ -1,11 +1,11 @@ ## Azure DomainservicesManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for DomainservicesManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for DomainservicesManagementClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-domainservices @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - #### nodejs - Authentication, client creation, and list domainServiceOperations as an example written in JavaScript. ##### Sample code @@ -51,7 +49,6 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; // Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. const creds = new DefaultAzureCredential(); const client = new DomainservicesManagementClient(creds, subscriptionId); - client.domainServiceOperations.list().then((result) => { console.log("The result is:"); console.log(result); @@ -86,7 +83,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmDomainservices.DomainservicesManagementClient(creds, subscriptionId); client.domainServiceOperations.list().then((result) => { diff --git a/sdk/domainservices/arm-domainservices/package.json b/sdk/domainservices/arm-domainservices/package.json index 37d167ea36e8..537c86f9f9a1 100644 --- a/sdk/domainservices/arm-domainservices/package.json +++ b/sdk/domainservices/arm-domainservices/package.json @@ -4,10 +4,10 @@ "description": "DomainservicesManagementClient Library with typescript type definitions for node.js and browser.", "version": "3.2.1", "dependencies": { - "@azure/ms-rest-azure-js": "^1.4.0", - "@azure/ms-rest-js": "^1.11.0", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", "@azure/core-auth": "^1.1.4", - "tslib": "^1.9.3" + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -22,17 +22,18 @@ "types": "./esm/domainservicesManagementClient.d.ts", "devDependencies": { "typescript": "^3.6.0", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", - "uglify-js": "^3.4.9" + "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/feature/v4/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", @@ -44,6 +45,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 0bb81ecbda52..ce21c0213003 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 @@ -20,6 +19,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. @@ -37,6 +38,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 0a9bbe03b0ea..5bc4c57a0231 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 @@ -10,8 +9,8 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-domainservices"; const packageVersion = "3.2.1"; @@ -51,7 +50,7 @@ export class DomainservicesManagementClientContext extends msRestAzure.AzureServ super(credentials, options); - this.apiVersion = '2017-06-01'; + this.apiVersion = '2021-05-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..dc45986ca18d 100644 --- a/sdk/domainservices/arm-domainservices/src/models/domainServicesMappers.ts +++ b/sdk/domainservices/arm-domainservices/src/models/domainServicesMappers.ts @@ -1,23 +1,31 @@ /* - * 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, + ConfigDiagnostics, + ConfigDiagnosticsValidatorResult, + ConfigDiagnosticsValidatorResultIssue, + ContainerAccount, + DomainSecuritySettings, + DomainService, + DomainServiceListResult, + ForestTrust, HealthAlert, + HealthMonitor, + LdapsSettings, + MigrationProgress, + MigrationProperties, NotificationSettings, - DomainSecuritySettings, - CloudError + OuContainer, + ReplicaSet, + Resource, + ResourceForestSettings, + SystemData } 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..47d96771d9ff 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,417 +11,652 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; +/** + * Metadata pertaining to creation and last modification of the resource. + */ +export interface SystemData { + /** + * The identity that created the resource. + */ + createdBy?: string; + /** + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + createdByType?: CreatedByType; + /** + * The timestamp of resource creation (UTC). + */ + createdAt?: Date; + /** + * The identity that last modified the resource. + */ + lastModifiedBy?: string; + /** + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + lastModifiedByType?: CreatedByType; + /** + * The timestamp of resource last modification (UTC) + */ + lastModifiedAt?: Date; +} /** - * @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; + /** + * The system meta data relating to this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * 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[]; } /** - * @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'. 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; + /** + * A flag to determine whether or not KerberosRc4Encryption is enabled or disabled. Possible + * values include: 'Enabled', 'Disabled'. Default value: 'Enabled'. + */ + kerberosRc4Encryption?: KerberosRc4Encryption; + /** + * A flag to determine whether or not KerberosArmoring is enabled or disabled. Possible values + * include: 'Enabled', 'Disabled'. Default value: 'Disabled'. + */ + kerberosArmoring?: KerberosArmoring; } /** - * @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; +} + +/** + * Specific issue for a particular config diagnostics validator + */ +export interface ConfigDiagnosticsValidatorResultIssue { + /** + * Validation issue identifier. + */ + id?: string; + /** + * List of domain resource property name or values used to compose a rich description. + */ + descriptionParams?: string[]; +} + +/** + * Config Diagnostics validator result data + */ +export interface ConfigDiagnosticsValidatorResult { + /** + * Validator identifier + */ + validatorId?: string; + /** + * Replica set location and subnet name + */ + replicaSetSubnetDisplayName?: string; + /** + * Status for individual validator after running diagnostics. Possible values include: 'None', + * 'Running', 'OK', 'Failure', 'Warning', 'Skipped'. Default value: 'None'. + */ + status?: Status; + /** + * List of resource config validation issues. + */ + issues?: ConfigDiagnosticsValidatorResultIssue[]; +} + +/** + * Configuration Diagnostics + */ +export interface ConfigDiagnostics { + /** + * Last domain configuration diagnostics DateTime + */ + lastExecuted?: Date; + /** + * List of Configuration Diagnostics validator results. + */ + validatorResults?: ConfigDiagnosticsValidatorResult[]; } /** - * @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; + /** + * Configuration diagnostics data containing latest execution from client. + */ + configDiagnostics?: ConfigDiagnostics; } /** - * @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; } +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + /** * Defines values for Ldaps. * Possible values include: 'Enabled', 'Disabled' @@ -441,44 +674,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 KerberosRc4Encryption. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type KerberosRc4Encryption = 'Enabled' | 'Disabled'; + +/** + * Defines values for KerberosArmoring. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type KerberosArmoring = 'Enabled' | 'Disabled'; /** * Defines values for FilteredSync. @@ -488,6 +737,30 @@ 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'; + +/** + * Defines values for Status. + * Possible values include: 'None', 'Running', 'OK', 'Failure', 'Warning', 'Skipped' + * @readonly + * @enum {string} + */ +export type Status = 'None' | 'Running' | 'OK' | 'Failure' | 'Warning' | 'Skipped'; + /** * Contains response data for the list operation. */ @@ -500,6 +773,7 @@ export type DomainServiceOperationsListResponse = OperationEntityListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -519,6 +793,7 @@ export type DomainServiceOperationsListNextResponse = OperationEntityListResult * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -538,6 +813,7 @@ export type DomainServicesListResponse = DomainServiceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -557,6 +833,7 @@ export type DomainServicesListByResourceGroupResponse = DomainServiceListResult * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -576,6 +853,7 @@ export type DomainServicesCreateOrUpdateResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -595,6 +873,7 @@ export type DomainServicesGetResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -603,9 +882,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 +893,7 @@ export type DomainServicesDeleteMethodResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -622,9 +902,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 +913,7 @@ export type DomainServicesUpdateResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -641,9 +922,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 +933,7 @@ export type DomainServicesBeginCreateOrUpdateResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -660,9 +942,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 +953,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 +973,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 +1013,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 +1033,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..e22031c89a56 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"; @@ -14,116 +12,108 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", type: { name: "Composite", - className: "Resource", + className: "SystemData", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, - type: { - readOnly: true, - serializedName: "type", + createdAt: { + serializedName: "createdAt", type: { - name: "String" + name: "DateTime" } }, - location: { - serializedName: "location", + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - tags: { - serializedName: "tags", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "String" } }, - etag: { - serializedName: "etag", + lastModifiedAt: { + serializedName: "lastModifiedAt", type: { - name: "String" + name: "DateTime" } } } } }; -export const LdapsSettings: msRest.CompositeMapper = { - serializedName: "LdapsSettings", +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", type: { name: "Composite", - className: "LdapsSettings", + className: "Resource", modelProperties: { - ldaps: { - serializedName: "ldaps", - type: { - name: "String" - } - }, - pfxCertificate: { - serializedName: "pfxCertificate", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - pfxCertificatePassword: { - serializedName: "pfxCertificatePassword", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - publicCertificate: { + type: { readOnly: true, - serializedName: "publicCertificate", + serializedName: "type", type: { name: "String" } }, - certificateThumbprint: { - readOnly: true, - serializedName: "certificateThumbprint", + location: { + serializedName: "location", type: { name: "String" } }, - certificateNotAfter: { - readOnly: true, - serializedName: "certificateNotAfter", + tags: { + serializedName: "tags", type: { - name: "DateTime" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } }, - externalAccess: { - serializedName: "externalAccess", + etag: { + serializedName: "etag", type: { name: "String" } }, - externalAccessIpAddress: { + systemData: { readOnly: true, - serializedName: "externalAccessIpAddress", + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } } } @@ -220,117 +210,74 @@ export const HealthAlert: msRest.CompositeMapper = { } }; -export const NotificationSettings: msRest.CompositeMapper = { - serializedName: "NotificationSettings", +export const ReplicaSet: msRest.CompositeMapper = { + serializedName: "ReplicaSet", type: { name: "Composite", - className: "NotificationSettings", + className: "ReplicaSet", modelProperties: { - notifyGlobalAdmins: { - serializedName: "notifyGlobalAdmins", + replicaSetId: { + readOnly: true, + serializedName: "replicaSetId", type: { name: "String" } }, - notifyDcAdmins: { - serializedName: "notifyDcAdmins", + location: { + serializedName: "location", type: { name: "String" } }, - additionalRecipients: { - serializedName: "additionalRecipients", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const DomainSecuritySettings: msRest.CompositeMapper = { - serializedName: "DomainSecuritySettings", - type: { - name: "Composite", - className: "DomainSecuritySettings", - modelProperties: { - ntlmV1: { - serializedName: "ntlmV1", + vnetSiteId: { + readOnly: true, + serializedName: "vnetSiteId", type: { name: "String" } }, - tlsV1: { - serializedName: "tlsV1", + subnetId: { + serializedName: "subnetId", type: { name: "String" } }, - syncNtlmPasswords: { - serializedName: "syncNtlmPasswords", - type: { - name: "String" - } - } - } - } -}; - -export const DomainService: msRest.CompositeMapper = { - serializedName: "DomainService", - type: { - name: "Composite", - className: "DomainService", - modelProperties: { - ...Resource.type.modelProperties, - tenantId: { + domainControllerIpAddress: { readOnly: true, - serializedName: "properties.tenantId", - type: { - name: "String" - } - }, - domainName: { - serializedName: "properties.domainName", + serializedName: "domainControllerIpAddress", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - vnetSiteId: { + externalAccessIpAddress: { readOnly: true, - serializedName: "properties.vnetSiteId", + serializedName: "externalAccessIpAddress", type: { name: "String" } }, - subnetId: { - serializedName: "properties.subnetId", + serviceStatus: { + readOnly: true, + serializedName: "serviceStatus", type: { name: "String" } }, - ldapsSettings: { - serializedName: "properties.ldapsSettings", - type: { - name: "Composite", - className: "LdapsSettings" - } - }, healthLastEvaluated: { readOnly: true, - serializedName: "properties.healthLastEvaluated", + serializedName: "healthLastEvaluated", type: { - name: "DateTime" + name: "DateTimeRfc1123" } }, healthMonitors: { readOnly: true, - serializedName: "properties.healthMonitors", + serializedName: "healthMonitors", type: { name: "Sequence", element: { @@ -343,7 +290,7 @@ export const DomainService: msRest.CompositeMapper = { }, healthAlerts: { readOnly: true, - serializedName: "properties.healthAlerts", + serializedName: "healthAlerts", type: { name: "Sequence", element: { @@ -353,49 +300,60 @@ export const DomainService: msRest.CompositeMapper = { } } } - }, - notificationSettings: { - serializedName: "properties.notificationSettings", + } + } + } +}; + +export const LdapsSettings: msRest.CompositeMapper = { + serializedName: "LdapsSettings", + type: { + name: "Composite", + className: "LdapsSettings", + modelProperties: { + ldaps: { + serializedName: "ldaps", + defaultValue: 'Disabled', type: { - name: "Composite", - className: "NotificationSettings" + name: "String" } }, - domainSecuritySettings: { - serializedName: "properties.domainSecuritySettings", + pfxCertificate: { + serializedName: "pfxCertificate", type: { - name: "Composite", - className: "DomainSecuritySettings" + name: "String" } }, - filteredSync: { - serializedName: "properties.filteredSync", + pfxCertificatePassword: { + serializedName: "pfxCertificatePassword", type: { name: "String" } }, - domainControllerIpAddress: { + publicCertificate: { readOnly: true, - serializedName: "properties.domainControllerIpAddress", + serializedName: "publicCertificate", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - serviceStatus: { + certificateThumbprint: { readOnly: true, - serializedName: "properties.serviceStatus", + serializedName: "certificateThumbprint", type: { name: "String" } }, - provisioningState: { + certificateNotAfter: { readOnly: true, - serializedName: "properties.provisioningState", + serializedName: "certificateNotAfter", + type: { + name: "DateTime" + } + }, + externalAccess: { + serializedName: "externalAccess", + defaultValue: 'Disabled', type: { name: "String" } @@ -404,32 +362,38 @@ export const DomainService: msRest.CompositeMapper = { } }; -export const OperationDisplayInfo: msRest.CompositeMapper = { - serializedName: "OperationDisplayInfo", +export const ForestTrust: msRest.CompositeMapper = { + serializedName: "ForestTrust", type: { name: "Composite", - className: "OperationDisplayInfo", + className: "ForestTrust", modelProperties: { - description: { - serializedName: "description", + trustedDomainFqdn: { + serializedName: "trustedDomainFqdn", type: { name: "String" } }, - operation: { - serializedName: "operation", + trustDirection: { + serializedName: "trustDirection", type: { name: "String" } }, - provider: { - serializedName: "provider", + friendlyName: { + serializedName: "friendlyName", type: { name: "String" } }, - resource: { - serializedName: "resource", + remoteDnsIps: { + serializedName: "remoteDnsIps", + type: { + name: "String" + } + }, + trustPassword: { + serializedName: "trustPassword", type: { name: "String" } @@ -438,27 +402,26 @@ export const OperationDisplayInfo: msRest.CompositeMapper = { } }; -export const OperationEntity: msRest.CompositeMapper = { - serializedName: "OperationEntity", +export const ResourceForestSettings: msRest.CompositeMapper = { + serializedName: "ResourceForestSettings", type: { name: "Composite", - className: "OperationEntity", + className: "ResourceForestSettings", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - display: { - serializedName: "display", + settings: { + serializedName: "settings", type: { - name: "Composite", - className: "OperationDisplayInfo" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ForestTrust" + } + } } }, - origin: { - serializedName: "origin", + resourceForest: { + serializedName: "resourceForest", type: { name: "String" } @@ -467,7 +430,537 @@ export const OperationEntity: msRest.CompositeMapper = { } }; -export const OperationEntityListResult: msRest.CompositeMapper = { +export const DomainSecuritySettings: msRest.CompositeMapper = { + serializedName: "DomainSecuritySettings", + type: { + name: "Composite", + className: "DomainSecuritySettings", + modelProperties: { + ntlmV1: { + serializedName: "ntlmV1", + defaultValue: 'Enabled', + type: { + name: "String" + } + }, + tlsV1: { + serializedName: "tlsV1", + defaultValue: 'Enabled', + type: { + name: "String" + } + }, + syncNtlmPasswords: { + serializedName: "syncNtlmPasswords", + defaultValue: 'Enabled', + type: { + name: "String" + } + }, + syncKerberosPasswords: { + serializedName: "syncKerberosPasswords", + defaultValue: 'Enabled', + type: { + name: "String" + } + }, + syncOnPremPasswords: { + serializedName: "syncOnPremPasswords", + defaultValue: 'Enabled', + type: { + name: "String" + } + }, + kerberosRc4Encryption: { + serializedName: "kerberosRc4Encryption", + defaultValue: 'Enabled', + type: { + name: "String" + } + }, + kerberosArmoring: { + serializedName: "kerberosArmoring", + defaultValue: 'Disabled', + type: { + name: "String" + } + } + } + } +}; + +export const NotificationSettings: msRest.CompositeMapper = { + serializedName: "NotificationSettings", + type: { + name: "Composite", + className: "NotificationSettings", + modelProperties: { + notifyGlobalAdmins: { + serializedName: "notifyGlobalAdmins", + type: { + name: "String" + } + }, + notifyDcAdmins: { + serializedName: "notifyDcAdmins", + type: { + name: "String" + } + }, + additionalRecipients: { + serializedName: "additionalRecipients", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const MigrationProgress: msRest.CompositeMapper = { + serializedName: "MigrationProgress", + type: { + name: "Composite", + className: "MigrationProgress", + modelProperties: { + completionPercentage: { + serializedName: "completionPercentage", + type: { + name: "Number" + } + }, + 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" + } + }, + oldVnetSiteId: { + readOnly: true, + serializedName: "oldVnetSiteId", + type: { + name: "String" + } + }, + migrationProgress: { + readOnly: true, + serializedName: "migrationProgress", + type: { + name: "Composite", + className: "MigrationProgress" + } + } + } + } +}; + +export const ConfigDiagnosticsValidatorResultIssue: msRest.CompositeMapper = { + serializedName: "ConfigDiagnosticsValidatorResultIssue", + type: { + name: "Composite", + className: "ConfigDiagnosticsValidatorResultIssue", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + descriptionParams: { + serializedName: "descriptionParams", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ConfigDiagnosticsValidatorResult: msRest.CompositeMapper = { + serializedName: "ConfigDiagnosticsValidatorResult", + type: { + name: "Composite", + className: "ConfigDiagnosticsValidatorResult", + modelProperties: { + validatorId: { + serializedName: "validatorId", + type: { + name: "String" + } + }, + replicaSetSubnetDisplayName: { + serializedName: "replicaSetSubnetDisplayName", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + defaultValue: 'None', + type: { + name: "String" + } + }, + issues: { + serializedName: "issues", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConfigDiagnosticsValidatorResultIssue" + } + } + } + } + } + } +}; + +export const ConfigDiagnostics: msRest.CompositeMapper = { + serializedName: "ConfigDiagnostics", + type: { + name: "Composite", + className: "ConfigDiagnostics", + modelProperties: { + lastExecuted: { + serializedName: "lastExecuted", + type: { + name: "DateTimeRfc1123" + } + }, + validatorResults: { + serializedName: "validatorResults", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConfigDiagnosticsValidatorResult" + } + } + } + } + } + } +}; + +export const DomainService: msRest.CompositeMapper = { + serializedName: "DomainService", + type: { + name: "Composite", + className: "DomainService", + modelProperties: { + ...Resource.type.modelProperties, + version: { + readOnly: true, + serializedName: "properties.version", + type: { + name: "Number" + } + }, + tenantId: { + readOnly: true, + serializedName: "properties.tenantId", + type: { + name: "String" + } + }, + domainName: { + serializedName: "properties.domainName", + type: { + name: "String" + } + }, + deploymentId: { + readOnly: true, + serializedName: "properties.deploymentId", + type: { + name: "String" + } + }, + syncOwner: { + readOnly: true, + serializedName: "properties.syncOwner", + type: { + name: "String" + } + }, + replicaSets: { + serializedName: "properties.replicaSets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReplicaSet" + } + } + } + }, + ldapsSettings: { + serializedName: "properties.ldapsSettings", + type: { + name: "Composite", + className: "LdapsSettings" + } + }, + resourceForestSettings: { + serializedName: "properties.resourceForestSettings", + type: { + name: "Composite", + className: "ResourceForestSettings" + } + }, + domainSecuritySettings: { + serializedName: "properties.domainSecuritySettings", + type: { + name: "Composite", + className: "DomainSecuritySettings" + } + }, + domainConfigurationType: { + serializedName: "properties.domainConfigurationType", + type: { + name: "String" + } + }, + sku: { + serializedName: "properties.sku", + type: { + name: "String" + } + }, + filteredSync: { + serializedName: "properties.filteredSync", + type: { + name: "String" + } + }, + notificationSettings: { + serializedName: "properties.notificationSettings", + type: { + name: "Composite", + className: "NotificationSettings" + } + }, + migrationProperties: { + readOnly: true, + serializedName: "properties.migrationProperties", + type: { + name: "Composite", + className: "MigrationProperties" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + configDiagnostics: { + serializedName: "properties.configDiagnostics", + type: { + name: "Composite", + className: "ConfigDiagnostics" + } + } + } + } +}; + +export const OperationDisplayInfo: msRest.CompositeMapper = { + serializedName: "OperationDisplayInfo", + type: { + name: "Composite", + className: "OperationDisplayInfo", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + } + } + } +}; + +export const OperationEntity: msRest.CompositeMapper = { + serializedName: "OperationEntity", + type: { + name: "Composite", + className: "OperationEntity", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplayInfo" + } + }, + origin: { + serializedName: "origin", + type: { + name: "String" + } + } + } + } +}; + +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: { name: "Composite", @@ -524,3 +1017,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..d1a5e98169b1 --- /dev/null +++ b/sdk/domainservices/arm-domainservices/src/models/ouContainerOperationsOperationsMappers.ts @@ -0,0 +1,31 @@ +/* + * 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, + ConfigDiagnostics, + ConfigDiagnosticsValidatorResult, + ConfigDiagnosticsValidatorResultIssue, + ContainerAccount, + DomainSecuritySettings, + DomainService, + ForestTrust, + HealthAlert, + HealthMonitor, + LdapsSettings, + MigrationProgress, + MigrationProperties, + NotificationSettings, + OuContainer, + OuContainerListResult, + ReplicaSet, + Resource, + ResourceForestSettings, + SystemData +} 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