diff --git a/sdk/iothub/arm-iothub/README.md b/sdk/iothub/arm-iothub/README.md
index ddb6fdb5c5ca..342c769ef2bd 100644
--- a/sdk/iothub/arm-iothub/README.md
+++ b/sdk/iothub/arm-iothub/README.md
@@ -1,65 +1,71 @@
## Azure IotHubClient SDK for JavaScript
-This package contains an isomorphic SDK for IotHubClient.
+This package contains an isomorphic SDK (runs both in node.js and in browsers) for IotHubClient.
### Currently supported environments
-- Node.js version 6.x.x or higher
-- Browser JavaScript
+- [LTS versions of Node.js](https://nodejs.org/about/releases/)
+- Latest versions of Safari, Chrome, Edge and Firefox.
-### How to Install
+### Prerequisites
+You must have an [Azure subscription](https://azure.microsoft.com/free/).
+
+### How to install
+
+To use this SDK in your project, you will need to install two packages.
+- `@azure/arm-iothub` that contains the client.
+- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory.
+
+Install both packages using the below command:
```bash
-npm install @azure/arm-iothub
+npm install --save @azure/arm-iothub @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.
### How to use
-#### nodejs - client creation and list operations as an example written in TypeScript.
+- If you are writing a client side browser application,
+ - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions.
+ - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below.
+- If you are writing a server side application,
+ - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples)
+ - Complete the set up steps required by the credential if any.
+ - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below.
-##### Install @azure/ms-rest-nodeauth
-
-- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
-
-```bash
-npm install @azure/ms-rest-nodeauth@"^3.0.0"
-```
+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 operations as an example written in JavaScript.
##### Sample code
-While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
-
-```typescript
-const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
+```javascript
+const { DefaultAzureCredential } = require("@azure/identity");
const { IotHubClient } = require("@azure/arm-iothub");
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
-msRestNodeAuth
- .interactiveLogin()
- .then((creds) => {
- const client = new IotHubClient(creds, subscriptionId);
- client.operations.list().then((result) => {
- console.log("The result is:");
- console.log(result);
- });
- })
- .catch((err) => {
- console.error(err);
- });
+// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples
+// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
+const creds = new DefaultAzureCredential();
+const client = new IotHubClient(creds, subscriptionId);
+client.operations.list().then((result) => {
+ console.log("The result is:");
+ console.log(result);
+}).catch((err) => {
+ console.log("An error occurred:");
+ console.error(err);
+});
```
-#### browser - Authentication, client creation and list operations as an example written in JavaScript.
-
-##### Install @azure/ms-rest-browserauth
+#### browser - Authentication, client creation, and list operations as an example written in JavaScript.
-```bash
-npm install @azure/ms-rest-browserauth
-```
+In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser.
+ - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser.
+ - Note down the client Id from the previous step and use it in the browser sample below.
##### Sample code
-See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
-
- index.html
```html
@@ -67,32 +73,25 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
@azure/arm-iothub sample
-
-
+
diff --git a/sdk/iothub/arm-iothub/package.json b/sdk/iothub/arm-iothub/package.json
index 7824a6ad8e67..93146b5e3f72 100644
--- a/sdk/iothub/arm-iothub/package.json
+++ b/sdk/iothub/arm-iothub/package.json
@@ -4,8 +4,9 @@
"description": "IotHubClient Library with typescript type definitions for node.js and browser.",
"version": "5.0.0",
"dependencies": {
- "@azure/ms-rest-azure-js": "^2.0.1",
- "@azure/ms-rest-js": "^2.0.4",
+ "@azure/ms-rest-azure-js": "^2.1.0",
+ "@azure/ms-rest-js": "^2.2.0",
+ "@azure/core-auth": "^1.1.4",
"tslib": "^1.10.0"
},
"keywords": [
@@ -20,13 +21,13 @@
"module": "./esm/iotHubClient.js",
"types": "./esm/iotHubClient.d.ts",
"devDependencies": {
- "typescript": "^3.5.3",
+ "typescript": "^3.6.0",
"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/main/sdk/iothub/arm-iothub",
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/iothub/arm-iothub",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
diff --git a/sdk/iothub/arm-iothub/rollup.config.js b/sdk/iothub/arm-iothub/rollup.config.js
index 23da7f53f189..148271feabca 100644
--- a/sdk/iothub/arm-iothub/rollup.config.js
+++ b/sdk/iothub/arm-iothub/rollup.config.js
@@ -7,7 +7,10 @@ import sourcemaps from "rollup-plugin-sourcemaps";
*/
const config = {
input: "./esm/iotHubClient.js",
- external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
+ external: [
+ "@azure/ms-rest-js",
+ "@azure/ms-rest-azure-js"
+ ],
output: {
file: "./dist/arm-iothub.js",
format: "umd",
@@ -25,7 +28,10 @@ const config = {
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/`
},
- plugins: [nodeResolve({ mainFields: ["module", "main"] }), sourcemaps()]
+ plugins: [
+ nodeResolve({ mainFields: ['module', 'main'] }),
+ sourcemaps()
+ ]
};
export default config;
diff --git a/sdk/iothub/arm-iothub/src/iotHubClient.ts b/sdk/iothub/arm-iothub/src/iotHubClient.ts
index a21e31f2cd97..4df13a40e0ac 100644
--- a/sdk/iothub/arm-iothub/src/iotHubClient.ts
+++ b/sdk/iothub/arm-iothub/src/iotHubClient.ts
@@ -8,11 +8,13 @@
*/
import * as msRest from "@azure/ms-rest-js";
+import { TokenCredential } from "@azure/core-auth";
import * as Models from "./models";
import * as Mappers from "./models/mappers";
import * as operations from "./operations";
import { IotHubClientContext } from "./iotHubClientContext";
+
class IotHubClient extends IotHubClientContext {
// Operation groups
operations: operations.Operations;
@@ -25,15 +27,16 @@ class IotHubClient extends IotHubClientContext {
/**
* Initializes a new instance of the IotHubClient class.
- * @param credentials Credentials needed for the client to connect to Azure.
+ * @param credentials Credentials needed for the client to connect to Azure. Credentials
+ * implementing the TokenCredential interface from the @azure/identity package are recommended. For
+ * more information about these credentials, see
+ * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
+ * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
+ * @azure/ms-rest-browserauth are also supported.
* @param subscriptionId The subscription identifier.
* @param [options] The parameter options
*/
- constructor(
- credentials: msRest.ServiceClientCredentials,
- subscriptionId: string,
- options?: Models.IotHubClientOptions
- ) {
+ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.IotHubClientOptions) {
super(credentials, subscriptionId, options);
this.operations = new operations.Operations(this);
this.iotHubResource = new operations.IotHubResource(this);
@@ -47,5 +50,10 @@ class IotHubClient extends IotHubClientContext {
// Operation Specifications
-export { IotHubClient, IotHubClientContext, Models as IotHubModels, Mappers as IotHubMappers };
+export {
+ IotHubClient,
+ IotHubClientContext,
+ Models as IotHubModels,
+ Mappers as IotHubMappers
+};
export * from "./operations";
diff --git a/sdk/iothub/arm-iothub/src/iotHubClientContext.ts b/sdk/iothub/arm-iothub/src/iotHubClientContext.ts
index 22840bd1bf8e..0cd81fdd7e62 100644
--- a/sdk/iothub/arm-iothub/src/iotHubClientContext.ts
+++ b/sdk/iothub/arm-iothub/src/iotHubClientContext.ts
@@ -10,31 +10,33 @@
import * as Models from "./models";
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
+import { TokenCredential } from "@azure/core-auth";
const packageName = "@azure/arm-iothub";
const packageVersion = "5.0.0";
export class IotHubClientContext extends msRestAzure.AzureServiceClient {
- credentials: msRest.ServiceClientCredentials;
+ credentials: msRest.ServiceClientCredentials | TokenCredential;
subscriptionId: string;
apiVersion?: string;
/**
* Initializes a new instance of the IotHubClient class.
- * @param credentials Credentials needed for the client to connect to Azure.
+ * @param credentials Credentials needed for the client to connect to Azure. Credentials
+ * implementing the TokenCredential interface from the @azure/identity package are recommended. For
+ * more information about these credentials, see
+ * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
+ * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
+ * @azure/ms-rest-browserauth are also supported.
* @param subscriptionId The subscription identifier.
* @param [options] The parameter options
*/
- constructor(
- credentials: msRest.ServiceClientCredentials,
- subscriptionId: string,
- options?: Models.IotHubClientOptions
- ) {
+ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.IotHubClientOptions) {
if (credentials == undefined) {
- throw new Error("'credentials' cannot be null.");
+ throw new Error('\'credentials\' cannot be null.');
}
if (subscriptionId == undefined) {
- throw new Error("'subscriptionId' cannot be null.");
+ throw new Error('\'subscriptionId\' cannot be null.');
}
if (!options) {
@@ -47,8 +49,8 @@ export class IotHubClientContext extends msRestAzure.AzureServiceClient {
super(credentials, options);
- this.apiVersion = "2021-03-31";
- this.acceptLanguage = "en-US";
+ this.apiVersion = '2021-07-01';
+ this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
this.requestContentType = "application/json; charset=utf-8";
@@ -58,10 +60,7 @@ export class IotHubClientContext extends msRestAzure.AzureServiceClient {
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
- if (
- options.longRunningOperationRetryTimeout !== null &&
- options.longRunningOperationRetryTimeout !== undefined
- ) {
+ if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
}
diff --git a/sdk/iothub/arm-iothub/src/models/index.ts b/sdk/iothub/arm-iothub/src/models/index.ts
index 5404171a2105..18d4ae254a2c 100644
--- a/sdk/iothub/arm-iothub/src/models/index.ts
+++ b/sdk/iothub/arm-iothub/src/models/index.ts
@@ -106,6 +106,11 @@ export interface CertificateBodyDescription {
* base-64 representation of the X509 leaf certificate .cer file or just .pem file content.
*/
certificate?: string;
+ /**
+ * True indicates that the certificate will be created in verified state and proof of possession
+ * will not be required.
+ */
+ isVerified?: boolean;
}
/**
@@ -818,6 +823,28 @@ export interface IotHubProperties {
* The shared access policies you can use to secure a connection to the IoT hub.
*/
authorizationPolicies?: SharedAccessSignatureAuthorizationRule[];
+ /**
+ * If true, SAS tokens with Iot hub scoped SAS keys cannot be used for authentication.
+ */
+ disableLocalAuth?: boolean;
+ /**
+ * If true, all device(including Edge devices but excluding modules) scoped SAS keys cannot be
+ * used for authentication.
+ */
+ disableDeviceSAS?: boolean;
+ /**
+ * If true, all module scoped SAS keys cannot be used for authentication.
+ */
+ disableModuleSAS?: boolean;
+ /**
+ * If true, egress from IotHub will be restricted to only the allowed FQDNs that are configured
+ * via allowedFqdnList.
+ */
+ restrictOutboundNetworkAccess?: boolean;
+ /**
+ * List of allowed FQDNs(Fully Qualified Domain Name) for egress from Iot Hub.
+ */
+ allowedFqdnList?: string[];
/**
* Whether requests from Public Network are allowed. Possible values include: 'Enabled',
* 'Disabled'
@@ -1860,8 +1887,7 @@ export interface EndpointHealthDataListResult extends Array
* The list of shared access policies with a next link.
* @extends Array
*/
-export interface SharedAccessSignatureAuthorizationRuleListResult
- extends Array {
+export interface SharedAccessSignatureAuthorizationRuleListResult extends Array {
/**
* The next link.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
@@ -1880,22 +1906,7 @@ export interface SharedAccessSignatureAuthorizationRuleListResult
* @readonly
* @enum {string}
*/
-export type AccessRights =
- | "RegistryRead"
- | "RegistryWrite"
- | "ServiceConnect"
- | "DeviceConnect"
- | "RegistryRead, RegistryWrite"
- | "RegistryRead, ServiceConnect"
- | "RegistryRead, DeviceConnect"
- | "RegistryWrite, ServiceConnect"
- | "RegistryWrite, DeviceConnect"
- | "ServiceConnect, DeviceConnect"
- | "RegistryRead, RegistryWrite, ServiceConnect"
- | "RegistryRead, RegistryWrite, DeviceConnect"
- | "RegistryRead, ServiceConnect, DeviceConnect"
- | "RegistryWrite, ServiceConnect, DeviceConnect"
- | "RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect";
+export type AccessRights = 'RegistryRead' | 'RegistryWrite' | 'ServiceConnect' | 'DeviceConnect' | 'RegistryRead, RegistryWrite' | 'RegistryRead, ServiceConnect' | 'RegistryRead, DeviceConnect' | 'RegistryWrite, ServiceConnect' | 'RegistryWrite, DeviceConnect' | 'ServiceConnect, DeviceConnect' | 'RegistryRead, RegistryWrite, ServiceConnect' | 'RegistryRead, RegistryWrite, DeviceConnect' | 'RegistryRead, ServiceConnect, DeviceConnect' | 'RegistryWrite, ServiceConnect, DeviceConnect' | 'RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect';
/**
* Defines values for PublicNetworkAccess.
@@ -1903,7 +1914,7 @@ export type AccessRights =
* @readonly
* @enum {string}
*/
-export type PublicNetworkAccess = "Enabled" | "Disabled";
+export type PublicNetworkAccess = 'Enabled' | 'Disabled';
/**
* Defines values for IpFilterActionType.
@@ -1911,7 +1922,7 @@ export type PublicNetworkAccess = "Enabled" | "Disabled";
* @readonly
* @enum {string}
*/
-export type IpFilterActionType = "Accept" | "Reject";
+export type IpFilterActionType = 'Accept' | 'Reject';
/**
* Defines values for DefaultAction.
@@ -1919,7 +1930,7 @@ export type IpFilterActionType = "Accept" | "Reject";
* @readonly
* @enum {string}
*/
-export type DefaultAction = "Deny" | "Allow";
+export type DefaultAction = 'Deny' | 'Allow';
/**
* Defines values for NetworkRuleIPAction.
@@ -1927,7 +1938,7 @@ export type DefaultAction = "Deny" | "Allow";
* @readonly
* @enum {string}
*/
-export type NetworkRuleIPAction = "Allow";
+export type NetworkRuleIPAction = 'Allow';
/**
* Defines values for PrivateLinkServiceConnectionStatus.
@@ -1935,11 +1946,7 @@ export type NetworkRuleIPAction = "Allow";
* @readonly
* @enum {string}
*/
-export type PrivateLinkServiceConnectionStatus =
- | "Pending"
- | "Approved"
- | "Rejected"
- | "Disconnected";
+export type PrivateLinkServiceConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected';
/**
* Defines values for AuthenticationType.
@@ -1947,7 +1954,7 @@ export type PrivateLinkServiceConnectionStatus =
* @readonly
* @enum {string}
*/
-export type AuthenticationType = "keyBased" | "identityBased";
+export type AuthenticationType = 'keyBased' | 'identityBased';
/**
* Defines values for RoutingSource.
@@ -1956,13 +1963,7 @@ export type AuthenticationType = "keyBased" | "identityBased";
* @readonly
* @enum {string}
*/
-export type RoutingSource =
- | "Invalid"
- | "DeviceMessages"
- | "TwinChangeEvents"
- | "DeviceLifecycleEvents"
- | "DeviceJobLifecycleEvents"
- | "DeviceConnectionStateEvents";
+export type RoutingSource = 'Invalid' | 'DeviceMessages' | 'TwinChangeEvents' | 'DeviceLifecycleEvents' | 'DeviceJobLifecycleEvents' | 'DeviceConnectionStateEvents';
/**
* Defines values for Capabilities.
@@ -1970,7 +1971,7 @@ export type RoutingSource =
* @readonly
* @enum {string}
*/
-export type Capabilities = "None" | "DeviceManagement";
+export type Capabilities = 'None' | 'DeviceManagement';
/**
* Defines values for IotHubReplicaRoleType.
@@ -1978,7 +1979,7 @@ export type Capabilities = "None" | "DeviceManagement";
* @readonly
* @enum {string}
*/
-export type IotHubReplicaRoleType = "primary" | "secondary";
+export type IotHubReplicaRoleType = 'primary' | 'secondary';
/**
* Defines values for IotHubSku.
@@ -1986,7 +1987,7 @@ export type IotHubReplicaRoleType = "primary" | "secondary";
* @readonly
* @enum {string}
*/
-export type IotHubSku = "F1" | "S1" | "S2" | "S3" | "B1" | "B2" | "B3";
+export type IotHubSku = 'F1' | 'S1' | 'S2' | 'S3' | 'B1' | 'B2' | 'B3';
/**
* Defines values for IotHubSkuTier.
@@ -1994,7 +1995,7 @@ export type IotHubSku = "F1" | "S1" | "S2" | "S3" | "B1" | "B2" | "B3";
* @readonly
* @enum {string}
*/
-export type IotHubSkuTier = "Free" | "Standard" | "Basic";
+export type IotHubSkuTier = 'Free' | 'Standard' | 'Basic';
/**
* Defines values for ResourceIdentityType.
@@ -2003,11 +2004,7 @@ export type IotHubSkuTier = "Free" | "Standard" | "Basic";
* @readonly
* @enum {string}
*/
-export type ResourceIdentityType =
- | "SystemAssigned"
- | "UserAssigned"
- | "SystemAssigned, UserAssigned"
- | "None";
+export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned' | 'None';
/**
* Defines values for EndpointHealthStatus.
@@ -2015,7 +2012,7 @@ export type ResourceIdentityType =
* @readonly
* @enum {string}
*/
-export type EndpointHealthStatus = "unknown" | "healthy" | "degraded" | "unhealthy" | "dead";
+export type EndpointHealthStatus = 'unknown' | 'healthy' | 'degraded' | 'unhealthy' | 'dead';
/**
* Defines values for JobType.
@@ -2025,17 +2022,7 @@ export type EndpointHealthStatus = "unknown" | "healthy" | "degraded" | "unhealt
* @readonly
* @enum {string}
*/
-export type JobType =
- | "unknown"
- | "export"
- | "import"
- | "backup"
- | "readDeviceProperties"
- | "writeDeviceProperties"
- | "updateDeviceConfiguration"
- | "rebootDevice"
- | "factoryResetDevice"
- | "firmwareUpdate";
+export type JobType = 'unknown' | 'export' | 'import' | 'backup' | 'readDeviceProperties' | 'writeDeviceProperties' | 'updateDeviceConfiguration' | 'rebootDevice' | 'factoryResetDevice' | 'firmwareUpdate';
/**
* Defines values for JobStatus.
@@ -2043,7 +2030,7 @@ export type JobType =
* @readonly
* @enum {string}
*/
-export type JobStatus = "unknown" | "enqueued" | "running" | "completed" | "failed" | "cancelled";
+export type JobStatus = 'unknown' | 'enqueued' | 'running' | 'completed' | 'failed' | 'cancelled';
/**
* Defines values for IotHubScaleType.
@@ -2051,7 +2038,7 @@ export type JobStatus = "unknown" | "enqueued" | "running" | "completed" | "fail
* @readonly
* @enum {string}
*/
-export type IotHubScaleType = "Automatic" | "Manual" | "None";
+export type IotHubScaleType = 'Automatic' | 'Manual' | 'None';
/**
* Defines values for IotHubNameUnavailabilityReason.
@@ -2059,7 +2046,7 @@ export type IotHubScaleType = "Automatic" | "Manual" | "None";
* @readonly
* @enum {string}
*/
-export type IotHubNameUnavailabilityReason = "Invalid" | "AlreadyExists";
+export type IotHubNameUnavailabilityReason = 'Invalid' | 'AlreadyExists';
/**
* Defines values for TestResultStatus.
@@ -2067,7 +2054,7 @@ export type IotHubNameUnavailabilityReason = "Invalid" | "AlreadyExists";
* @readonly
* @enum {string}
*/
-export type TestResultStatus = "undefined" | "false" | "true";
+export type TestResultStatus = 'undefined' | 'false' | 'true';
/**
* Defines values for RouteErrorSeverity.
@@ -2075,7 +2062,7 @@ export type TestResultStatus = "undefined" | "false" | "true";
* @readonly
* @enum {string}
*/
-export type RouteErrorSeverity = "error" | "warning";
+export type RouteErrorSeverity = 'error' | 'warning';
/**
* Defines values for Encoding.
@@ -2083,7 +2070,7 @@ export type RouteErrorSeverity = "error" | "warning";
* @readonly
* @enum {string}
*/
-export type Encoding = "Avro" | "AvroDeflate" | "JSON";
+export type Encoding = 'Avro' | 'AvroDeflate' | 'JSON';
/**
* Contains response data for the list operation.
@@ -2093,16 +2080,16 @@ export type OperationsListResponse = OperationListResult & {
* 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: OperationListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: OperationListResult;
+ };
};
/**
@@ -2113,16 +2100,16 @@ export type OperationsListNextResponse = OperationListResult & {
* 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: OperationListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: OperationListResult;
+ };
};
/**
@@ -2133,16 +2120,16 @@ export type IotHubResourceGetResponse = IotHubDescription & {
* 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: IotHubDescription;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: IotHubDescription;
+ };
};
/**
@@ -2153,16 +2140,16 @@ export type IotHubResourceCreateOrUpdateResponse = IotHubDescription & {
* 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: IotHubDescription;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: IotHubDescription;
+ };
};
/**
@@ -2173,16 +2160,16 @@ export type IotHubResourceUpdateResponse = IotHubDescription & {
* 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: IotHubDescription;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: IotHubDescription;
+ };
};
/**
@@ -2198,16 +2185,16 @@ export type IotHubResourceDeleteMethodResponse = {
* 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: any;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: any;
+ };
};
/**
@@ -2218,16 +2205,16 @@ export type IotHubResourceListBySubscriptionResponse = IotHubDescriptionListResu
* 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: IotHubDescriptionListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: IotHubDescriptionListResult;
+ };
};
/**
@@ -2238,16 +2225,16 @@ export type IotHubResourceListByResourceGroupResponse = IotHubDescriptionListRes
* 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: IotHubDescriptionListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: IotHubDescriptionListResult;
+ };
};
/**
@@ -2258,16 +2245,16 @@ export type IotHubResourceGetStatsResponse = RegistryStatistics & {
* 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: RegistryStatistics;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: RegistryStatistics;
+ };
};
/**
@@ -2278,16 +2265,16 @@ export type IotHubResourceGetValidSkusResponse = IotHubSkuDescriptionListResult
* 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: IotHubSkuDescriptionListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: IotHubSkuDescriptionListResult;
+ };
};
/**
@@ -2298,16 +2285,16 @@ export type IotHubResourceListEventHubConsumerGroupsResponse = EventHubConsumerG
* 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: EventHubConsumerGroupsListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: EventHubConsumerGroupsListResult;
+ };
};
/**
@@ -2318,16 +2305,16 @@ export type IotHubResourceGetEventHubConsumerGroupResponse = EventHubConsumerGro
* 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: EventHubConsumerGroupInfo;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: EventHubConsumerGroupInfo;
+ };
};
/**
@@ -2338,16 +2325,16 @@ export type IotHubResourceCreateEventHubConsumerGroupResponse = EventHubConsumer
* 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: EventHubConsumerGroupInfo;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: EventHubConsumerGroupInfo;
+ };
};
/**
@@ -2358,16 +2345,16 @@ export type IotHubResourceListJobsResponse = JobResponseListResult & {
* 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: JobResponseListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: JobResponseListResult;
+ };
};
/**
@@ -2378,16 +2365,16 @@ export type IotHubResourceGetJobResponse = JobResponse & {
* 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: JobResponse;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: JobResponse;
+ };
};
/**
@@ -2398,16 +2385,16 @@ export type IotHubResourceGetQuotaMetricsResponse = IotHubQuotaMetricInfoListRes
* 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: IotHubQuotaMetricInfoListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: IotHubQuotaMetricInfoListResult;
+ };
};
/**
@@ -2418,16 +2405,16 @@ export type IotHubResourceGetEndpointHealthResponse = EndpointHealthDataListResu
* 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: EndpointHealthDataListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: EndpointHealthDataListResult;
+ };
};
/**
@@ -2438,16 +2425,16 @@ export type IotHubResourceCheckNameAvailabilityResponse = IotHubNameAvailability
* 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: IotHubNameAvailabilityInfo;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: IotHubNameAvailabilityInfo;
+ };
};
/**
@@ -2458,16 +2445,16 @@ export type IotHubResourceTestAllRoutesResponse = TestAllRoutesResult & {
* 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: TestAllRoutesResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: TestAllRoutesResult;
+ };
};
/**
@@ -2478,16 +2465,16 @@ export type IotHubResourceTestRouteResponse = TestRouteResult & {
* 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: TestRouteResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: TestRouteResult;
+ };
};
/**
@@ -2498,16 +2485,16 @@ export type IotHubResourceListKeysResponse = SharedAccessSignatureAuthorizationR
* 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: SharedAccessSignatureAuthorizationRuleListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: SharedAccessSignatureAuthorizationRuleListResult;
+ };
};
/**
@@ -2518,16 +2505,16 @@ export type IotHubResourceGetKeysForKeyNameResponse = SharedAccessSignatureAutho
* 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: SharedAccessSignatureAuthorizationRule;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: SharedAccessSignatureAuthorizationRule;
+ };
};
/**
@@ -2538,16 +2525,16 @@ export type IotHubResourceExportDevicesResponse = JobResponse & {
* 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: JobResponse;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: JobResponse;
+ };
};
/**
@@ -2558,16 +2545,16 @@ export type IotHubResourceImportDevicesResponse = JobResponse & {
* 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: JobResponse;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: JobResponse;
+ };
};
/**
@@ -2578,16 +2565,16 @@ export type IotHubResourceBeginCreateOrUpdateResponse = IotHubDescription & {
* 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: IotHubDescription;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: IotHubDescription;
+ };
};
/**
@@ -2598,16 +2585,16 @@ export type IotHubResourceBeginUpdateResponse = IotHubDescription & {
* 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: IotHubDescription;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: IotHubDescription;
+ };
};
/**
@@ -2623,16 +2610,16 @@ export type IotHubResourceBeginDeleteMethodResponse = {
* 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: any;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: any;
+ };
};
/**
@@ -2643,16 +2630,16 @@ export type IotHubResourceListBySubscriptionNextResponse = IotHubDescriptionList
* 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: IotHubDescriptionListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: IotHubDescriptionListResult;
+ };
};
/**
@@ -2663,16 +2650,16 @@ export type IotHubResourceListByResourceGroupNextResponse = IotHubDescriptionLis
* 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: IotHubDescriptionListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: IotHubDescriptionListResult;
+ };
};
/**
@@ -2683,16 +2670,16 @@ export type IotHubResourceGetValidSkusNextResponse = IotHubSkuDescriptionListRes
* 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: IotHubSkuDescriptionListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: IotHubSkuDescriptionListResult;
+ };
};
/**
@@ -2703,16 +2690,16 @@ export type IotHubResourceListEventHubConsumerGroupsNextResponse = EventHubConsu
* 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: EventHubConsumerGroupsListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: EventHubConsumerGroupsListResult;
+ };
};
/**
@@ -2723,16 +2710,16 @@ export type IotHubResourceListJobsNextResponse = JobResponseListResult & {
* 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: JobResponseListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: JobResponseListResult;
+ };
};
/**
@@ -2743,16 +2730,16 @@ export type IotHubResourceGetQuotaMetricsNextResponse = IotHubQuotaMetricInfoLis
* 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: IotHubQuotaMetricInfoListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: IotHubQuotaMetricInfoListResult;
+ };
};
/**
@@ -2763,16 +2750,16 @@ export type IotHubResourceGetEndpointHealthNextResponse = EndpointHealthDataList
* 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: EndpointHealthDataListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: EndpointHealthDataListResult;
+ };
};
/**
@@ -2783,16 +2770,16 @@ export type IotHubResourceListKeysNextResponse = SharedAccessSignatureAuthorizat
* 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: SharedAccessSignatureAuthorizationRuleListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: SharedAccessSignatureAuthorizationRuleListResult;
+ };
};
/**
@@ -2803,16 +2790,16 @@ export type ResourceProviderCommonGetSubscriptionQuotaResponse = UserSubscriptio
* 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: UserSubscriptionQuotaListResult;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: UserSubscriptionQuotaListResult;
+ };
};
/**
@@ -2823,16 +2810,16 @@ export type CertificatesListByIotHubResponse = CertificateListDescription & {
* 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: CertificateListDescription;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: CertificateListDescription;
+ };
};
/**
@@ -2843,16 +2830,16 @@ export type CertificatesGetResponse = CertificateDescription & {
* 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: CertificateDescription;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: CertificateDescription;
+ };
};
/**
@@ -2863,16 +2850,16 @@ export type CertificatesCreateOrUpdateResponse = CertificateDescription & {
* 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: CertificateDescription;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: CertificateDescription;
+ };
};
/**
@@ -2883,16 +2870,16 @@ export type CertificatesGenerateVerificationCodeResponse = CertificateWithNonceD
* 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: CertificateWithNonceDescription;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: CertificateWithNonceDescription;
+ };
};
/**
@@ -2903,16 +2890,16 @@ export type CertificatesVerifyResponse = CertificateDescription & {
* 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: CertificateDescription;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: CertificateDescription;
+ };
};
/**
@@ -2923,16 +2910,16 @@ export type PrivateLinkResourcesListResponse = PrivateLinkResources & {
* 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: PrivateLinkResources;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: PrivateLinkResources;
+ };
};
/**
@@ -2943,16 +2930,16 @@ export type PrivateLinkResourcesGetResponse = GroupIdInformation & {
* 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: GroupIdInformation;
- };
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: GroupIdInformation;
+ };
};
/**
@@ -2963,16 +2950,16 @@ export type PrivateEndpointConnectionsListResponse = Array
*/
- listByIotHub(
- resourceGroupName: string,
- resourceName: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ listByIotHub(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
* @param callback The callback
*/
- listByIotHub(
- resourceGroupName: string,
- resourceName: string,
- callback: msRest.ServiceCallback
- ): void;
+ listByIotHub(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
* @param options The optional parameters
* @param callback The callback
*/
- listByIotHub(
- resourceGroupName: string,
- resourceName: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- listByIotHub(
- resourceGroupName: string,
- resourceName: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ listByIotHub(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByIotHub(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -73,8 +55,7 @@ export class Certificates {
options
},
listByIotHubOperationSpec,
- callback
- ) as Promise;
+ callback) as Promise;
}
/**
@@ -86,24 +67,14 @@ export class Certificates {
* @param [options] The optional parameters
* @returns Promise
*/
- get(
- resourceGroupName: string,
- resourceName: string,
- certificateName: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ get(resourceGroupName: string, resourceName: string, certificateName: string, options?: msRest.RequestOptionsBase): Promise;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
* @param certificateName The name of the certificate
* @param callback The callback
*/
- get(
- resourceGroupName: string,
- resourceName: string,
- certificateName: string,
- callback: msRest.ServiceCallback
- ): void;
+ get(resourceGroupName: string, resourceName: string, certificateName: string, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -111,20 +82,8 @@ export class Certificates {
* @param options The optional parameters
* @param callback The callback
*/
- get(
- resourceGroupName: string,
- resourceName: string,
- certificateName: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- get(
- resourceGroupName: string,
- resourceName: string,
- certificateName: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ get(resourceGroupName: string, resourceName: string, certificateName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ get(resourceGroupName: string, resourceName: string, certificateName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -133,8 +92,7 @@ export class Certificates {
options
},
getOperationSpec,
- callback
- ) as Promise;
+ callback) as Promise;
}
/**
@@ -146,24 +104,14 @@ export class Certificates {
* @param [options] The optional parameters
* @returns Promise
*/
- createOrUpdate(
- resourceGroupName: string,
- resourceName: string,
- certificateName: string,
- options?: Models.CertificatesCreateOrUpdateOptionalParams
- ): Promise;
+ createOrUpdate(resourceGroupName: string, resourceName: string, certificateName: string, options?: Models.CertificatesCreateOrUpdateOptionalParams): Promise;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
* @param certificateName The name of the certificate
* @param callback The callback
*/
- createOrUpdate(
- resourceGroupName: string,
- resourceName: string,
- certificateName: string,
- callback: msRest.ServiceCallback
- ): void;
+ createOrUpdate(resourceGroupName: string, resourceName: string, certificateName: string, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -171,22 +119,8 @@ export class Certificates {
* @param options The optional parameters
* @param callback The callback
*/
- createOrUpdate(
- resourceGroupName: string,
- resourceName: string,
- certificateName: string,
- options: Models.CertificatesCreateOrUpdateOptionalParams,
- callback: msRest.ServiceCallback
- ): void;
- createOrUpdate(
- resourceGroupName: string,
- resourceName: string,
- certificateName: string,
- options?:
- | Models.CertificatesCreateOrUpdateOptionalParams
- | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ createOrUpdate(resourceGroupName: string, resourceName: string, certificateName: string, options: Models.CertificatesCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void;
+ createOrUpdate(resourceGroupName: string, resourceName: string, certificateName: string, options?: Models.CertificatesCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -195,8 +129,7 @@ export class Certificates {
options
},
createOrUpdateOperationSpec,
- callback
- ) as Promise;
+ callback) as Promise;
}
/**
@@ -209,13 +142,7 @@ export class Certificates {
* @param [options] The optional parameters
* @returns Promise
*/
- deleteMethod(
- resourceGroupName: string,
- resourceName: string,
- certificateName: string,
- ifMatch: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ deleteMethod(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options?: msRest.RequestOptionsBase): Promise;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -223,13 +150,7 @@ export class Certificates {
* @param ifMatch ETag of the Certificate.
* @param callback The callback
*/
- deleteMethod(
- resourceGroupName: string,
- resourceName: string,
- certificateName: string,
- ifMatch: string,
- callback: msRest.ServiceCallback
- ): void;
+ deleteMethod(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -238,22 +159,8 @@ export class Certificates {
* @param options The optional parameters
* @param callback The callback
*/
- deleteMethod(
- resourceGroupName: string,
- resourceName: string,
- certificateName: string,
- ifMatch: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- deleteMethod(
- resourceGroupName: string,
- resourceName: string,
- certificateName: string,
- ifMatch: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ deleteMethod(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ deleteMethod(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -263,8 +170,7 @@ export class Certificates {
options
},
deleteMethodOperationSpec,
- callback
- );
+ callback);
}
/**
@@ -278,13 +184,7 @@ export class Certificates {
* @param [options] The optional parameters
* @returns Promise
*/
- generateVerificationCode(
- resourceGroupName: string,
- resourceName: string,
- certificateName: string,
- ifMatch: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ generateVerificationCode(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options?: msRest.RequestOptionsBase): Promise;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -292,13 +192,7 @@ export class Certificates {
* @param ifMatch ETag of the Certificate.
* @param callback The callback
*/
- generateVerificationCode(
- resourceGroupName: string,
- resourceName: string,
- certificateName: string,
- ifMatch: string,
- callback: msRest.ServiceCallback
- ): void;
+ generateVerificationCode(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -307,24 +201,8 @@ export class Certificates {
* @param options The optional parameters
* @param callback The callback
*/
- generateVerificationCode(
- resourceGroupName: string,
- resourceName: string,
- certificateName: string,
- ifMatch: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- generateVerificationCode(
- resourceGroupName: string,
- resourceName: string,
- certificateName: string,
- ifMatch: string,
- options?:
- | msRest.RequestOptionsBase
- | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ generateVerificationCode(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ generateVerificationCode(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -334,8 +212,7 @@ export class Certificates {
options
},
generateVerificationCodeOperationSpec,
- callback
- ) as Promise;
+ callback) as Promise;
}
/**
@@ -349,13 +226,7 @@ export class Certificates {
* @param [options] The optional parameters
* @returns Promise
*/
- verify(
- resourceGroupName: string,
- resourceName: string,
- certificateName: string,
- ifMatch: string,
- options?: Models.CertificatesVerifyOptionalParams
- ): Promise;
+ verify(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options?: Models.CertificatesVerifyOptionalParams): Promise;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -363,13 +234,7 @@ export class Certificates {
* @param ifMatch ETag of the Certificate.
* @param callback The callback
*/
- verify(
- resourceGroupName: string,
- resourceName: string,
- certificateName: string,
- ifMatch: string,
- callback: msRest.ServiceCallback
- ): void;
+ verify(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -378,24 +243,8 @@ export class Certificates {
* @param options The optional parameters
* @param callback The callback
*/
- verify(
- resourceGroupName: string,
- resourceName: string,
- certificateName: string,
- ifMatch: string,
- options: Models.CertificatesVerifyOptionalParams,
- callback: msRest.ServiceCallback
- ): void;
- verify(
- resourceGroupName: string,
- resourceName: string,
- certificateName: string,
- ifMatch: string,
- options?:
- | Models.CertificatesVerifyOptionalParams
- | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ verify(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options: Models.CertificatesVerifyOptionalParams, callback: msRest.ServiceCallback): void;
+ verify(resourceGroupName: string, resourceName: string, certificateName: string, ifMatch: string, options?: Models.CertificatesVerifyOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -405,8 +254,7 @@ export class Certificates {
options
},
verifyOperationSpec,
- callback
- ) as Promise;
+ callback) as Promise;
}
}
@@ -414,11 +262,18 @@ export class Certificates {
const serializer = new msRest.Serializer(Mappers);
const listByIotHubOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates",
- urlParameters: [Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.resourceName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
responses: {
200: {
bodyMapper: Mappers.CertificateListDescription
@@ -432,16 +287,19 @@ const listByIotHubOperationSpec: msRest.OperationSpec = {
const getOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.resourceName,
Parameters.certificateName
],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
responses: {
200: {
bodyMapper: Mappers.CertificateDescription
@@ -455,19 +313,26 @@ const getOperationSpec: msRest.OperationSpec = {
const createOrUpdateOperationSpec: msRest.OperationSpec = {
httpMethod: "PUT",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.resourceName,
Parameters.certificateName
],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.ifMatch0, Parameters.acceptLanguage],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.ifMatch0,
+ Parameters.acceptLanguage
+ ],
requestBody: {
parameterPath: {
- properties: ["options", "properties"]
+ properties: [
+ "options",
+ "properties"
+ ]
},
mapper: {
...Mappers.CertificateDescription,
@@ -490,16 +355,20 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
const deleteMethodOperationSpec: msRest.OperationSpec = {
httpMethod: "DELETE",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.resourceName,
Parameters.certificateName
],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.ifMatch1, Parameters.acceptLanguage],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.ifMatch1,
+ Parameters.acceptLanguage
+ ],
responses: {
200: {},
204: {},
@@ -512,16 +381,20 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
const generateVerificationCodeOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}/generateVerificationCode",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}/generateVerificationCode",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.resourceName,
Parameters.certificateName
],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.ifMatch1, Parameters.acceptLanguage],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.ifMatch1,
+ Parameters.acceptLanguage
+ ],
responses: {
200: {
bodyMapper: Mappers.CertificateWithNonceDescription
@@ -535,19 +408,26 @@ const generateVerificationCodeOperationSpec: msRest.OperationSpec = {
const verifyOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}/verify",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}/verify",
urlParameters: [
Parameters.subscriptionId,
Parameters.resourceGroupName,
Parameters.resourceName,
Parameters.certificateName
],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.ifMatch1, Parameters.acceptLanguage],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.ifMatch1,
+ Parameters.acceptLanguage
+ ],
requestBody: {
parameterPath: {
- certificate: ["options", "certificate"]
+ certificate: [
+ "options",
+ "certificate"
+ ]
},
mapper: {
...Mappers.CertificateVerificationDescription,
diff --git a/sdk/iothub/arm-iothub/src/operations/iotHub.ts b/sdk/iothub/arm-iothub/src/operations/iotHub.ts
index 4613127cff36..0f0f2d75ce7c 100644
--- a/sdk/iothub/arm-iothub/src/operations/iotHub.ts
+++ b/sdk/iothub/arm-iothub/src/operations/iotHub.ts
@@ -35,18 +35,9 @@ export class IotHub {
* @param [options] The optional parameters
* @returns Promise
*/
- manualFailover(
- iotHubName: string,
- resourceGroupName: string,
- failoverRegion: string,
- options?: msRest.RequestOptionsBase
- ): Promise {
- return this.beginManualFailover(
- iotHubName,
- resourceGroupName,
- failoverRegion,
- options
- ).then((lroPoller) => lroPoller.pollUntilFinished());
+ manualFailover(iotHubName: string, resourceGroupName: string, failoverRegion: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginManualFailover(iotHubName,resourceGroupName,failoverRegion,options)
+ .then(lroPoller => lroPoller.pollUntilFinished());
}
/**
@@ -59,12 +50,7 @@ export class IotHub {
* @param [options] The optional parameters
* @returns Promise
*/
- beginManualFailover(
- iotHubName: string,
- resourceGroupName: string,
- failoverRegion: string,
- options?: msRest.RequestOptionsBase
- ): Promise {
+ beginManualFailover(iotHubName: string, resourceGroupName: string, failoverRegion: string, options?: msRest.RequestOptionsBase): Promise {
return this.client.sendLRORequest(
{
iotHubName,
@@ -73,8 +59,7 @@ export class IotHub {
options
},
beginManualFailoverOperationSpec,
- options
- );
+ options);
}
}
@@ -82,11 +67,18 @@ export class IotHub {
const serializer = new msRest.Serializer(Mappers);
const beginManualFailoverOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
- path:
- "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/failover",
- urlParameters: [Parameters.iotHubName, Parameters.subscriptionId, Parameters.resourceGroupName],
- queryParameters: [Parameters.apiVersion],
- headerParameters: [Parameters.acceptLanguage],
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/failover",
+ urlParameters: [
+ Parameters.iotHubName,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
requestBody: {
parameterPath: {
failoverRegion: "failoverRegion"
diff --git a/sdk/iothub/arm-iothub/src/operations/iotHubResource.ts b/sdk/iothub/arm-iothub/src/operations/iotHubResource.ts
index d6348e15e785..8067f51cefdf 100644
--- a/sdk/iothub/arm-iothub/src/operations/iotHubResource.ts
+++ b/sdk/iothub/arm-iothub/src/operations/iotHubResource.ts
@@ -34,39 +34,21 @@ export class IotHubResource {
* @param [options] The optional parameters
* @returns Promise
*/
- get(
- resourceGroupName: string,
- resourceName: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
* @param callback The callback
*/
- get(
- resourceGroupName: string,
- resourceName: string,
- callback: msRest.ServiceCallback
- ): void;
+ get(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
* @param options The optional parameters
* @param callback The callback
*/
- get(
- resourceGroupName: string,
- resourceName: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- get(
- resourceGroupName: string,
- resourceName: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ get(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -74,8 +56,7 @@ export class IotHubResource {
options
},
getOperationSpec,
- callback
- ) as Promise;
+ callback) as Promise;
}
/**
@@ -91,20 +72,9 @@ export class IotHubResource {
* @param [options] The optional parameters
* @returns Promise
*/
- createOrUpdate(
- resourceGroupName: string,
- resourceName: string,
- iotHubDescription: Models.IotHubDescription,
- options?: Models.IotHubResourceCreateOrUpdateOptionalParams
- ): Promise {
- return this.beginCreateOrUpdate(
- resourceGroupName,
- resourceName,
- iotHubDescription,
- options
- ).then((lroPoller) => lroPoller.pollUntilFinished()) as Promise<
- Models.IotHubResourceCreateOrUpdateResponse
- >;
+ createOrUpdate(resourceGroupName: string, resourceName: string, iotHubDescription: Models.IotHubDescription, options?: Models.IotHubResourceCreateOrUpdateOptionalParams): Promise {
+ return this.beginCreateOrUpdate(resourceGroupName,resourceName,iotHubDescription,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
}
/**
@@ -115,14 +85,9 @@ export class IotHubResource {
* @param [options] The optional parameters
* @returns Promise
*/
- update(
- resourceGroupName: string,
- resourceName: string,
- options?: Models.IotHubResourceUpdateOptionalParams
- ): Promise {
- return this.beginUpdate(resourceGroupName, resourceName, options).then((lroPoller) =>
- lroPoller.pollUntilFinished()
- ) as Promise;
+ update(resourceGroupName: string, resourceName: string, options?: Models.IotHubResourceUpdateOptionalParams): Promise {
+ return this.beginUpdate(resourceGroupName,resourceName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
}
/**
@@ -133,14 +98,9 @@ export class IotHubResource {
* @param [options] The optional parameters
* @returns Promise
*/
- deleteMethod(
- resourceGroupName: string,
- resourceName: string,
- options?: msRest.RequestOptionsBase
- ): Promise {
- return this.beginDeleteMethod(resourceGroupName, resourceName, options).then((lroPoller) =>
- lroPoller.pollUntilFinished()
- ) as Promise;
+ deleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginDeleteMethod(resourceGroupName,resourceName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
}
/**
@@ -149,9 +109,7 @@ export class IotHubResource {
* @param [options] The optional parameters
* @returns Promise
*/
- listBySubscription(
- options?: msRest.RequestOptionsBase
- ): Promise;
+ listBySubscription(options?: msRest.RequestOptionsBase): Promise;
/**
* @param callback The callback
*/
@@ -160,23 +118,14 @@ export class IotHubResource {
* @param options The optional parameters
* @param callback The callback
*/
- listBySubscription(
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- listBySubscription(
- options?:
- | msRest.RequestOptionsBase
- | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
},
listBySubscriptionOperationSpec,
- callback
- ) as Promise;
+ callback) as Promise;
}
/**
@@ -186,43 +135,26 @@ export class IotHubResource {
* @param [options] The optional parameters
* @returns Promise
*/
- listByResourceGroup(
- resourceGroupName: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param callback The callback
*/
- listByResourceGroup(
- resourceGroupName: string,
- callback: msRest.ServiceCallback
- ): void;
+ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param options The optional parameters
* @param callback The callback
*/
- listByResourceGroup(
- resourceGroupName: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- listByResourceGroup(
- resourceGroupName: string,
- options?:
- | msRest.RequestOptionsBase
- | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
options
},
listByResourceGroupOperationSpec,
- callback
- ) as Promise;
+ callback) as Promise;
}
/**
@@ -233,39 +165,21 @@ export class IotHubResource {
* @param [options] The optional parameters
* @returns Promise
*/
- getStats(
- resourceGroupName: string,
- resourceName: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ getStats(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
* @param callback The callback
*/
- getStats(
- resourceGroupName: string,
- resourceName: string,
- callback: msRest.ServiceCallback
- ): void;
+ getStats(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
* @param options The optional parameters
* @param callback The callback
*/
- getStats(
- resourceGroupName: string,
- resourceName: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- getStats(
- resourceGroupName: string,
- resourceName: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ getStats(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ getStats(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -273,8 +187,7 @@ export class IotHubResource {
options
},
getStatsOperationSpec,
- callback
- ) as Promise;
+ callback) as Promise;
}
/**
@@ -285,41 +198,21 @@ export class IotHubResource {
* @param [options] The optional parameters
* @returns Promise
*/
- getValidSkus(
- resourceGroupName: string,
- resourceName: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ getValidSkus(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
* @param callback The callback
*/
- getValidSkus(
- resourceGroupName: string,
- resourceName: string,
- callback: msRest.ServiceCallback
- ): void;
+ getValidSkus(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
* @param options The optional parameters
* @param callback The callback
*/
- getValidSkus(
- resourceGroupName: string,
- resourceName: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- getValidSkus(
- resourceGroupName: string,
- resourceName: string,
- options?:
- | msRest.RequestOptionsBase
- | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ getValidSkus(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ getValidSkus(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -327,8 +220,7 @@ export class IotHubResource {
options
},
getValidSkusOperationSpec,
- callback
- ) as Promise;
+ callback) as Promise;
}
/**
@@ -342,24 +234,14 @@ export class IotHubResource {
* @param [options] The optional parameters
* @returns Promise
*/
- listEventHubConsumerGroups(
- resourceGroupName: string,
- resourceName: string,
- eventHubEndpointName: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ listEventHubConsumerGroups(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, options?: msRest.RequestOptionsBase): Promise;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
* @param eventHubEndpointName The name of the Event Hub-compatible endpoint.
* @param callback The callback
*/
- listEventHubConsumerGroups(
- resourceGroupName: string,
- resourceName: string,
- eventHubEndpointName: string,
- callback: msRest.ServiceCallback
- ): void;
+ listEventHubConsumerGroups(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -367,22 +249,8 @@ export class IotHubResource {
* @param options The optional parameters
* @param callback The callback
*/
- listEventHubConsumerGroups(
- resourceGroupName: string,
- resourceName: string,
- eventHubEndpointName: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- listEventHubConsumerGroups(
- resourceGroupName: string,
- resourceName: string,
- eventHubEndpointName: string,
- options?:
- | msRest.RequestOptionsBase
- | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ listEventHubConsumerGroups(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listEventHubConsumerGroups(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -391,8 +259,7 @@ export class IotHubResource {
options
},
listEventHubConsumerGroupsOperationSpec,
- callback
- ) as Promise;
+ callback) as Promise;
}
/**
@@ -406,13 +273,7 @@ export class IotHubResource {
* @param [options] The optional parameters
* @returns Promise
*/
- getEventHubConsumerGroup(
- resourceGroupName: string,
- resourceName: string,
- eventHubEndpointName: string,
- name: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ getEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options?: msRest.RequestOptionsBase): Promise;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -420,13 +281,7 @@ export class IotHubResource {
* @param name The name of the consumer group to retrieve.
* @param callback The callback
*/
- getEventHubConsumerGroup(
- resourceGroupName: string,
- resourceName: string,
- eventHubEndpointName: string,
- name: string,
- callback: msRest.ServiceCallback
- ): void;
+ getEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -435,22 +290,8 @@ export class IotHubResource {
* @param options The optional parameters
* @param callback The callback
*/
- getEventHubConsumerGroup(
- resourceGroupName: string,
- resourceName: string,
- eventHubEndpointName: string,
- name: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- getEventHubConsumerGroup(
- resourceGroupName: string,
- resourceName: string,
- eventHubEndpointName: string,
- name: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ getEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ getEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -460,8 +301,7 @@ export class IotHubResource {
options
},
getEventHubConsumerGroupOperationSpec,
- callback
- ) as Promise;
+ callback) as Promise;
}
/**
@@ -475,14 +315,7 @@ export class IotHubResource {
* @param [options] The optional parameters
* @returns Promise
*/
- createEventHubConsumerGroup(
- resourceGroupName: string,
- resourceName: string,
- eventHubEndpointName: string,
- name: string,
- properties: Models.EventHubConsumerGroupName,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ createEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, properties: Models.EventHubConsumerGroupName, options?: msRest.RequestOptionsBase): Promise;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -491,14 +324,7 @@ export class IotHubResource {
* @param properties
* @param callback The callback
*/
- createEventHubConsumerGroup(
- resourceGroupName: string,
- resourceName: string,
- eventHubEndpointName: string,
- name: string,
- properties: Models.EventHubConsumerGroupName,
- callback: msRest.ServiceCallback
- ): void;
+ createEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, properties: Models.EventHubConsumerGroupName, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -508,24 +334,8 @@ export class IotHubResource {
* @param options The optional parameters
* @param callback The callback
*/
- createEventHubConsumerGroup(
- resourceGroupName: string,
- resourceName: string,
- eventHubEndpointName: string,
- name: string,
- properties: Models.EventHubConsumerGroupName,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- createEventHubConsumerGroup(
- resourceGroupName: string,
- resourceName: string,
- eventHubEndpointName: string,
- name: string,
- properties: Models.EventHubConsumerGroupName,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ createEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, properties: Models.EventHubConsumerGroupName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ createEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, properties: Models.EventHubConsumerGroupName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -536,8 +346,7 @@ export class IotHubResource {
options
},
createEventHubConsumerGroupOperationSpec,
- callback
- ) as Promise;
+ callback) as Promise;
}
/**
@@ -550,13 +359,7 @@ export class IotHubResource {
* @param [options] The optional parameters
* @returns Promise
*/
- deleteEventHubConsumerGroup(
- resourceGroupName: string,
- resourceName: string,
- eventHubEndpointName: string,
- name: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ deleteEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options?: msRest.RequestOptionsBase): Promise;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -564,13 +367,7 @@ export class IotHubResource {
* @param name The name of the consumer group to delete.
* @param callback The callback
*/
- deleteEventHubConsumerGroup(
- resourceGroupName: string,
- resourceName: string,
- eventHubEndpointName: string,
- name: string,
- callback: msRest.ServiceCallback
- ): void;
+ deleteEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
@@ -579,22 +376,8 @@ export class IotHubResource {
* @param options The optional parameters
* @param callback The callback
*/
- deleteEventHubConsumerGroup(
- resourceGroupName: string,
- resourceName: string,
- eventHubEndpointName: string,
- name: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- deleteEventHubConsumerGroup(
- resourceGroupName: string,
- resourceName: string,
- eventHubEndpointName: string,
- name: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ deleteEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ deleteEventHubConsumerGroup(resourceGroupName: string, resourceName: string, eventHubEndpointName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -604,8 +387,7 @@ export class IotHubResource {
options
},
deleteEventHubConsumerGroupOperationSpec,
- callback
- );
+ callback);
}
/**
@@ -618,39 +400,21 @@ export class IotHubResource {
* @param [options] The optional parameters
* @returns Promise
*/
- listJobs(
- resourceGroupName: string,
- resourceName: string,
- options?: msRest.RequestOptionsBase
- ): Promise;
+ listJobs(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
* @param callback The callback
*/
- listJobs(
- resourceGroupName: string,
- resourceName: string,
- callback: msRest.ServiceCallback
- ): void;
+ listJobs(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void;
/**
* @param resourceGroupName The name of the resource group that contains the IoT hub.
* @param resourceName The name of the IoT hub.
* @param options The optional parameters
* @param callback The callback
*/
- listJobs(
- resourceGroupName: string,
- resourceName: string,
- options: msRest.RequestOptionsBase,
- callback: msRest.ServiceCallback
- ): void;
- listJobs(
- resourceGroupName: string,
- resourceName: string,
- options?: msRest.RequestOptionsBase | msRest.ServiceCallback,
- callback?: msRest.ServiceCallback
- ): Promise {
+ listJobs(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listJobs(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback