From f37e08f174255d0e6a0710e7c98667999d32c492 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Thu, 5 Dec 2019 00:48:07 +0000 Subject: [PATCH] Generated from 15fe7acd34f45813c9bf5433f74fd9eb58e45b4b DomainService: Add new api-version 2020-01-01 --- .../arm-domainservices/LICENSE.txt | 2 +- .../arm-domainservices/README.md | 11 +- .../arm-domainservices/package.json | 14 +- .../arm-domainservices/rollup.config.js | 22 +- .../domainservicesManagementClientContext.ts | 2 +- .../models/domainServiceOperationsMappers.ts | 13 +- .../src/models/domainServicesMappers.ts | 21 +- .../arm-domainservices/src/models/index.ts | 312 ++++++------------ .../arm-domainservices/src/models/mappers.ts | 6 +- .../src/operations/domainServices.ts | 20 +- 10 files changed, 152 insertions(+), 271 deletions(-) diff --git a/sdk/domainservices/arm-domainservices/LICENSE.txt b/sdk/domainservices/arm-domainservices/LICENSE.txt index a70e8cf66038..b73b4a1293c3 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) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/domainservices/arm-domainservices/README.md b/sdk/domainservices/arm-domainservices/README.md index 40c93925e577..a538e6a0cf5c 100644 --- a/sdk/domainservices/arm-domainservices/README.md +++ b/sdk/domainservices/arm-domainservices/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for DomainservicesManagementClient. ### How to Install -``` +```bash npm install @azure/arm-domainservices ``` @@ -19,13 +19,13 @@ npm install @azure/arm-domainservices ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; @@ -47,7 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -95,5 +95,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fdomainservices%2Farm-domainservices%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/domainservices/arm-domainservices/README.png) diff --git a/sdk/domainservices/arm-domainservices/package.json b/sdk/domainservices/arm-domainservices/package.json index c5266904614e..d88903e876dc 100644 --- a/sdk/domainservices/arm-domainservices/package.json +++ b/sdk/domainservices/arm-domainservices/package.json @@ -4,8 +4,8 @@ "description": "DomainservicesManagementClient Library with typescript type definitions for node.js and browser.", "version": "3.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.3.2", + "@azure/ms-rest-js": "^1.8.1", "tslib": "^1.9.3" }, "keywords": [ @@ -23,15 +23,16 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/domainservices/arm-domainservices", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/domainservices/arm-domainservices", "repository": { "type": "git", - "url": "https://github.com/azure/azure-sdk-for-js.git" + "url": "https://github.com/Azure/azure-sdk-for-js.git" }, "bugs": { - "url": "https://github.com/azure/azure-sdk-for-js/issues" + "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", @@ -43,6 +44,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], @@ -52,5 +54,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/sdk/domainservices/arm-domainservices/rollup.config.js b/sdk/domainservices/arm-domainservices/rollup.config.js index 70ceaf439e29..3d0e4aa79648 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", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * 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({ module: true }), + sourcemaps() ] }; + export default config; diff --git a/sdk/domainservices/arm-domainservices/src/domainservicesManagementClientContext.ts b/sdk/domainservices/arm-domainservices/src/domainservicesManagementClientContext.ts index 83b1b9c3eecd..0377fc5a695b 100644 --- a/sdk/domainservices/arm-domainservices/src/domainservicesManagementClientContext.ts +++ b/sdk/domainservices/arm-domainservices/src/domainservicesManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-domainservices"; -const packageVersion = "0.1.0"; +const packageVersion = "3.1.0"; export class DomainservicesManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/sdk/domainservices/arm-domainservices/src/models/domainServiceOperationsMappers.ts b/sdk/domainservices/arm-domainservices/src/models/domainServiceOperationsMappers.ts index aba5d8bf047b..c83dbeabcc21 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. + * Licensed under the MIT License. See License.txt in the project root for license information. * * 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..e7cfe6b1d61a 100644 --- a/sdk/domainservices/arm-domainservices/src/models/domainServicesMappers.ts +++ b/sdk/domainservices/arm-domainservices/src/models/domainServicesMappers.ts @@ -1,23 +1,20 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * 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, + DomainSecuritySettings, + DomainService, + DomainServiceListResult, HealthAlert, + HealthMonitor, + LdapsSettings, NotificationSettings, - DomainSecuritySettings, - CloudError + Resource } 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..52db32edfd1b 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. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,413 +11,326 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing Resource. * The Resource model definition. - * - * @extends BaseResource */ export interface Resource extends BaseResource { /** - * @member {string} [id] Resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [location] Resource location + * Resource location */ location?: string; /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags + * Resource tags */ tags?: { [propertyName: string]: string }; /** - * @member {string} [etag] Resource etag + * Resource etag */ etag?: string; } /** - * @interface - * An interface representing LdapsSettings. * Secure LDAP Settings - * */ export interface LdapsSettings { /** - * @member {Ldaps} [ldaps] A flag to determine whether or not Secure LDAP is - * enabled or disabled. Possible values include: 'Enabled', 'Disabled' + * A flag to determine whether or not Secure LDAP is enabled or disabled. Possible values + * include: 'Enabled', 'Disabled' */ ldaps?: Ldaps; /** - * @member {string} [pfxCertificate] The certificate required to configure - * Secure LDAP. The parameter passed here should be a base64encoded - * representation of the certificate pfx file. + * The certificate required to configure Secure LDAP. The parameter passed here should be a + * base64encoded representation of the certificate pfx file. */ pfxCertificate?: string; /** - * @member {string} [pfxCertificatePassword] The password to decrypt the - * provided Secure LDAP certificate pfx file. + * The password to decrypt the provided Secure LDAP certificate pfx file. */ pfxCertificatePassword?: string; /** - * @member {string} [publicCertificate] Public certificate used to configure - * secure ldap. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Public certificate used to configure secure ldap. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly publicCertificate?: string; /** - * @member {string} [certificateThumbprint] Thumbprint of configure ldaps - * certificate. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Thumbprint of configure ldaps certificate. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly certificateThumbprint?: string; /** - * @member {Date} [certificateNotAfter] NotAfter DateTime of configure ldaps - * certificate. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * NotAfter DateTime of configure ldaps certificate. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly certificateNotAfter?: Date; /** - * @member {ExternalAccess} [externalAccess] A flag to determine whether or - * not Secure LDAP access over the internet is enabled or disabled. Possible - * values include: 'Enabled', 'Disabled' + * A flag to determine whether or not Secure LDAP access over the internet is enabled or + * disabled. Possible values include: 'Enabled', 'Disabled' */ externalAccess?: ExternalAccess; /** - * @member {string} [externalAccessIpAddress] External access ip address. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * External access ip address. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly externalAccessIpAddress?: string; } /** - * @interface - * An interface representing HealthMonitor. * Health Monitor Description - * */ export interface HealthMonitor { /** - * @member {string} [id] Health Monitor Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Health Monitor Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Health Monitor Name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Health Monitor Name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [details] Health Monitor Details - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Health Monitor Details + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly details?: string; } /** - * @interface - * An interface representing HealthAlert. * Health Alert Description - * */ export interface HealthAlert { /** - * @member {string} [id] Health Alert Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Health Alert Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Health Alert Name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Health Alert Name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [issue] Health Alert Issue - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Health Alert Issue + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly issue?: string; /** - * @member {string} [severity] Health Alert Severity - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Health Alert Severity + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly severity?: string; /** - * @member {Date} [raised] Health Alert Raised DateTime - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Health Alert Raised DateTime + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly raised?: Date; /** - * @member {Date} [lastDetected] Health Alert Last Detected DateTime - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Health Alert Last Detected DateTime + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly lastDetected?: Date; /** - * @member {string} [resolutionUri] Health Alert TSG Link - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Health Alert TSG Link + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly resolutionUri?: string; } /** - * @interface - * An interface representing NotificationSettings. * Settings for notification - * */ export interface NotificationSettings { /** - * @member {NotifyGlobalAdmins} [notifyGlobalAdmins] Should global admins be - * notified. Possible values include: 'Enabled', 'Disabled' + * Should global admins be notified. Possible values include: 'Enabled', 'Disabled' */ notifyGlobalAdmins?: NotifyGlobalAdmins; /** - * @member {NotifyDcAdmins} [notifyDcAdmins] Should domain controller admins - * be notified. Possible values include: 'Enabled', 'Disabled' + * Should domain controller admins be notified. Possible values include: 'Enabled', 'Disabled' */ notifyDcAdmins?: NotifyDcAdmins; /** - * @member {string[]} [additionalRecipients] The list of additional - * recipients + * The list of additional recipients */ additionalRecipients?: string[]; } /** - * @interface - * An interface representing DomainSecuritySettings. * Domain Security Settings - * */ export interface DomainSecuritySettings { /** - * @member {NtlmV1} [ntlmV1] A flag to determine whether or not NtlmV1 is - * enabled or disabled. Possible values include: 'Enabled', 'Disabled' + * A flag to determine whether or not NtlmV1 is enabled or disabled. Possible values include: + * 'Enabled', 'Disabled' */ ntlmV1?: NtlmV1; /** - * @member {TlsV1} [tlsV1] A flag to determine whether or not TlsV1 is - * enabled or disabled. Possible values include: 'Enabled', 'Disabled' + * A flag to determine whether or not TlsV1 is enabled or disabled. Possible values include: + * 'Enabled', 'Disabled' */ tlsV1?: TlsV1; /** - * @member {SyncNtlmPasswords} [syncNtlmPasswords] A flag to determine - * whether or not SyncNtlmPasswords is enabled or disabled. Possible values + * A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. Possible values * include: 'Enabled', 'Disabled' */ syncNtlmPasswords?: SyncNtlmPasswords; } /** - * @interface - * An interface representing DomainService. * Domain service. - * - * @extends Resource */ export interface DomainService extends Resource { /** - * @member {string} [tenantId] Azure Active Directory tenant id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * 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.** + * Virtual network site id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly vnetSiteId?: string; /** - * @member {string} [subnetId] The name of the virtual network that Domain - * Services will be deployed on. The id of the subnet that Domain Services - * will be deployed on. /virtualNetwork/vnetName/subnets/subnetName. + * The name of the virtual network that Domain Services will be deployed on. The id of the subnet + * that Domain Services will be deployed on. /virtualNetwork/vnetName/subnets/subnetName. */ subnetId?: string; /** - * @member {LdapsSettings} [ldapsSettings] Secure LDAP Settings + * Secure LDAP Settings */ ldapsSettings?: LdapsSettings; /** - * @member {Date} [healthLastEvaluated] Last domain evaluation run DateTime - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Last domain evaluation run DateTime + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly healthLastEvaluated?: Date; /** - * @member {HealthMonitor[]} [healthMonitors] List of Domain Health Monitors - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * List of Domain Health Monitors + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly healthMonitors?: HealthMonitor[]; /** - * @member {HealthAlert[]} [healthAlerts] List of Domain Health Alerts - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * List of Domain Health Alerts + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly healthAlerts?: HealthAlert[]; /** - * @member {NotificationSettings} [notificationSettings] Notification - * Settings + * Notification Settings */ notificationSettings?: NotificationSettings; /** - * @member {DomainSecuritySettings} [domainSecuritySettings] DomainSecurity - * Settings + * DomainSecurity Settings */ domainSecuritySettings?: DomainSecuritySettings; /** - * @member {FilteredSync} [filteredSync] Enabled or Disabled flag to turn on - * Group-based filtered sync. Possible values include: 'Enabled', 'Disabled' + * Enabled or Disabled flag to turn on Group-based filtered sync. Possible values include: + * 'Enabled', 'Disabled' */ filteredSync?: FilteredSync; /** - * @member {string[]} [domainControllerIpAddress] List of Domain Controller - * IP Address - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * List of Domain Controller IP Address + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly domainControllerIpAddress?: string[]; /** - * @member {string} [serviceStatus] Status of Domain Service instance - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Status of Domain Service instance + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly serviceStatus?: string; /** - * @member {string} [provisioningState] the current deployment or - * provisioning state, which only appears in the response. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * the current deployment or provisioning state, which only appears in the response. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: string; } /** - * @interface - * An interface representing OperationDisplayInfo. * The operation supported by Domain Services. - * */ export interface OperationDisplayInfo { /** - * @member {string} [description] The description of the operation. + * The description of the operation. */ description?: string; /** - * @member {string} [operation] The action that users can perform, based on - * their permission level. + * The action that users can perform, based on their permission level. */ operation?: string; /** - * @member {string} [provider] Service provider: Domain Services. + * Service provider: Domain Services. */ provider?: string; /** - * @member {string} [resource] Resource on which the operation is performed. + * Resource on which the operation is performed. */ resource?: string; } /** - * @interface - * An interface representing OperationEntity. * The operation supported by Domain Services. - * */ export interface OperationEntity { /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation}. + * Operation name: {provider}/{resource}/{operation}. */ name?: string; /** - * @member {OperationDisplayInfo} [display] The operation supported by Domain - * Services. + * The operation supported by Domain Services. */ display?: OperationDisplayInfo; /** - * @member {string} [origin] The origin of the operation. + * The origin of the operation. */ origin?: string; } /** - * @interface * An interface representing DomainservicesManagementClientOptions. - * @extends AzureServiceClientOptions */ export interface DomainservicesManagementClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ 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; } @@ -500,6 +411,7 @@ export type DomainServiceOperationsListResponse = OperationEntityListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -519,6 +431,7 @@ export type DomainServiceOperationsListNextResponse = OperationEntityListResult * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -538,6 +451,7 @@ export type DomainServicesListResponse = DomainServiceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -557,6 +471,7 @@ export type DomainServicesListByResourceGroupResponse = DomainServiceListResult * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -576,6 +491,7 @@ export type DomainServicesCreateOrUpdateResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -595,25 +511,7 @@ export type DomainServicesGetResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DomainService; - }; -}; -/** - * Contains response data for the deleteMethod operation. - */ -export type DomainServicesDeleteMethodResponse = DomainService & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; /** * The response body as parsed JSON or XML */ @@ -633,6 +531,7 @@ export type DomainServicesUpdateResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -652,25 +551,7 @@ export type DomainServicesBeginCreateOrUpdateResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: DomainService; - }; -}; -/** - * Contains response data for the beginDeleteMethod operation. - */ -export type DomainServicesBeginDeleteMethodResponse = DomainService & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; /** * The response body as parsed JSON or XML */ @@ -690,6 +571,7 @@ export type DomainServicesBeginUpdateResponse = DomainService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -709,6 +591,7 @@ export type DomainServicesListNextResponse = DomainServiceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -728,6 +611,7 @@ export type DomainServicesListByResourceGroupNextResponse = DomainServiceListRes * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/domainservices/arm-domainservices/src/models/mappers.ts b/sdk/domainservices/arm-domainservices/src/models/mappers.ts index 5f8b614e7804..a2eaaf244317 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. + * Licensed under the MIT License. See License.txt in the project root for license information. * * 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"; diff --git a/sdk/domainservices/arm-domainservices/src/operations/domainServices.ts b/sdk/domainservices/arm-domainservices/src/operations/domainServices.ts index 8899f044b84e..347834ec3dee 100644 --- a/sdk/domainservices/arm-domainservices/src/operations/domainServices.ts +++ b/sdk/domainservices/arm-domainservices/src/operations/domainServices.ts @@ -30,7 +30,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 +56,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 +105,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 +146,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 +239,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 +269,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 +424,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 202: { - bodyMapper: Mappers.DomainService - }, + 202: {}, 204: {}, default: { bodyMapper: Mappers.CloudError