diff --git a/sdk/logz/arm-logz/LICENSE.txt b/sdk/logz/arm-logz/LICENSE.txt
new file mode 100644
index 000000000000..2d3163745319
--- /dev/null
+++ b/sdk/logz/arm-logz/LICENSE.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2021 Microsoft
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/sdk/logz/arm-logz/README.md b/sdk/logz/arm-logz/README.md
new file mode 100644
index 000000000000..ad0bdf3c2fc5
--- /dev/null
+++ b/sdk/logz/arm-logz/README.md
@@ -0,0 +1,98 @@
+## Azure MicrosoftLogz SDK for JavaScript
+
+This package contains an isomorphic SDK for MicrosoftLogz.
+
+### Currently supported environments
+
+- Node.js version 6.x.x or higher
+- Browser JavaScript
+
+### How to Install
+
+```bash
+npm install @azure/arm-logz
+```
+
+### How to use
+
+#### nodejs - client creation and listBySubscription monitors as an example written in TypeScript.
+
+##### Install @azure/ms-rest-nodeauth
+
+- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
+```bash
+npm install @azure/ms-rest-nodeauth@"^3.0.0"
+```
+
+##### Sample code
+
+While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
+```typescript
+const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
+const { MicrosoftLogz } = require("@azure/arm-logz");
+const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
+
+msRestNodeAuth.interactiveLogin().then((creds) => {
+ const client = new MicrosoftLogz(creds, subscriptionId);
+ client.monitors.listBySubscription().then((result) => {
+ console.log("The result is:");
+ console.log(result);
+ });
+}).catch((err) => {
+ console.error(err);
+});
+```
+
+#### browser - Authentication, client creation and listBySubscription monitors as an example written in JavaScript.
+
+##### Install @azure/ms-rest-browserauth
+
+```bash
+npm install @azure/ms-rest-browserauth
+```
+
+##### Sample code
+
+See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
+
+- index.html
+```html
+
+
+
+ @azure/arm-logz sample
+
+
+
+
+
+
+
+
+```
+
+## Related projects
+
+- [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/sdk/logz/arm-logz/README.png)
diff --git a/sdk/logz/arm-logz/package.json b/sdk/logz/arm-logz/package.json
new file mode 100644
index 000000000000..7a1dea73feee
--- /dev/null
+++ b/sdk/logz/arm-logz/package.json
@@ -0,0 +1,58 @@
+{
+ "name": "@azure/arm-logz",
+ "author": "Microsoft Corporation",
+ "description": "MicrosoftLogz Library with typescript type definitions for node.js and browser.",
+ "version": "1.0.0",
+ "dependencies": {
+ "@azure/ms-rest-azure-js": "^2.0.1",
+ "@azure/ms-rest-js": "^2.0.4",
+ "tslib": "^1.10.0"
+ },
+ "keywords": [
+ "node",
+ "azure",
+ "typescript",
+ "browser",
+ "isomorphic"
+ ],
+ "license": "MIT",
+ "main": "./dist/arm-logz.js",
+ "module": "./esm/microsoftLogz.js",
+ "types": "./esm/microsoftLogz.d.ts",
+ "devDependencies": {
+ "typescript": "^3.5.3",
+ "rollup": "^1.18.0",
+ "rollup-plugin-node-resolve": "^5.2.0",
+ "rollup-plugin-sourcemaps": "^0.4.2",
+ "uglify-js": "^3.6.0"
+ },
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/logz/arm-logz",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/Azure/azure-sdk-for-js.git"
+ },
+ "bugs": {
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
+ },
+ "files": [
+ "dist/**/*.js",
+ "dist/**/*.js.map",
+ "dist/**/*.d.ts",
+ "dist/**/*.d.ts.map",
+ "esm/**/*.js",
+ "esm/**/*.js.map",
+ "esm/**/*.d.ts",
+ "esm/**/*.d.ts.map",
+ "src/**/*.ts",
+ "README.md",
+ "rollup.config.js",
+ "tsconfig.json"
+ ],
+ "scripts": {
+ "build": "tsc && rollup -c rollup.config.js && npm run minify",
+ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-logz.js.map'\" -o ./dist/arm-logz.min.js ./dist/arm-logz.js",
+ "prepack": "npm install && npm run build"
+ },
+ "sideEffects": false,
+ "autoPublish": true
+}
diff --git a/sdk/logz/arm-logz/rollup.config.js b/sdk/logz/arm-logz/rollup.config.js
new file mode 100644
index 000000000000..57551e75578c
--- /dev/null
+++ b/sdk/logz/arm-logz/rollup.config.js
@@ -0,0 +1,37 @@
+import rollup from "rollup";
+import nodeResolve from "rollup-plugin-node-resolve";
+import sourcemaps from "rollup-plugin-sourcemaps";
+
+/**
+ * @type {rollup.RollupFileOptions}
+ */
+const config = {
+ input: "./esm/microsoftLogz.js",
+ external: [
+ "@azure/ms-rest-js",
+ "@azure/ms-rest-azure-js"
+ ],
+ output: {
+ file: "./dist/arm-logz.js",
+ format: "umd",
+ name: "Azure.ArmLogz",
+ sourcemap: true,
+ globals: {
+ "@azure/ms-rest-js": "msRest",
+ "@azure/ms-rest-azure-js": "msRestAzure"
+ },
+ banner: `/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */`
+ },
+ plugins: [
+ nodeResolve({ mainFields: ['module', 'main'] }),
+ sourcemaps()
+ ]
+};
+
+export default config;
diff --git a/sdk/logz/arm-logz/src/microsoftLogz.ts b/sdk/logz/arm-logz/src/microsoftLogz.ts
new file mode 100644
index 000000000000..dff5f992d3e9
--- /dev/null
+++ b/sdk/logz/arm-logz/src/microsoftLogz.ts
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+import * as Models from "./models";
+import * as Mappers from "./models/mappers";
+import * as operations from "./operations";
+import { MicrosoftLogzContext } from "./microsoftLogzContext";
+
+
+class MicrosoftLogz extends MicrosoftLogzContext {
+ // Operation groups
+ monitors: operations.Monitors;
+ operations: operations.Operations;
+ tagRules: operations.TagRules;
+ singleSignOn: operations.SingleSignOn;
+ subAccount: operations.SubAccount;
+ subAccountTagRules: operations.SubAccountTagRules;
+ monitor: operations.Monitor;
+
+ /**
+ * Initializes a new instance of the MicrosoftLogz class.
+ * @param credentials Credentials needed for the client to connect to Azure.
+ * @param subscriptionId The ID of the target subscription.
+ * @param [options] The parameter options
+ */
+ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MicrosoftLogzOptions) {
+ super(credentials, subscriptionId, options);
+ this.monitors = new operations.Monitors(this);
+ this.operations = new operations.Operations(this);
+ this.tagRules = new operations.TagRules(this);
+ this.singleSignOn = new operations.SingleSignOn(this);
+ this.subAccount = new operations.SubAccount(this);
+ this.subAccountTagRules = new operations.SubAccountTagRules(this);
+ this.monitor = new operations.Monitor(this);
+ }
+}
+
+// Operation Specifications
+
+export {
+ MicrosoftLogz,
+ MicrosoftLogzContext,
+ Models as MicrosoftLogzModels,
+ Mappers as MicrosoftLogzMappers
+};
+export * from "./operations";
diff --git a/sdk/logz/arm-logz/src/microsoftLogzContext.ts b/sdk/logz/arm-logz/src/microsoftLogzContext.ts
new file mode 100644
index 000000000000..e60115cc6142
--- /dev/null
+++ b/sdk/logz/arm-logz/src/microsoftLogzContext.ts
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+import * as Models from "./models";
+import * as msRest from "@azure/ms-rest-js";
+import * as msRestAzure from "@azure/ms-rest-azure-js";
+
+const packageName = "@azure/arm-logz";
+const packageVersion = "1.0.0";
+
+export class MicrosoftLogzContext extends msRestAzure.AzureServiceClient {
+ credentials: msRest.ServiceClientCredentials;
+ apiVersion?: string;
+ subscriptionId: string;
+
+ /**
+ * Initializes a new instance of the MicrosoftLogz class.
+ * @param credentials Credentials needed for the client to connect to Azure.
+ * @param subscriptionId The ID of the target subscription.
+ * @param [options] The parameter options
+ */
+ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.MicrosoftLogzOptions) {
+ if (credentials == undefined) {
+ throw new Error('\'credentials\' cannot be null.');
+ }
+ if (subscriptionId == undefined) {
+ throw new Error('\'subscriptionId\' cannot be null.');
+ }
+
+ if (!options) {
+ options = {};
+ }
+ if(!options.userAgent) {
+ const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
+ options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
+ }
+
+ super(credentials, options);
+
+ this.apiVersion = '2020-10-01-preview';
+ this.acceptLanguage = 'en-US';
+ this.longRunningOperationRetryTimeout = 30;
+ this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
+ this.requestContentType = "application/json; charset=utf-8";
+ this.credentials = credentials;
+ this.subscriptionId = subscriptionId;
+
+ if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
+ this.acceptLanguage = options.acceptLanguage;
+ }
+ if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
+ this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
+ }
+ }
+}
diff --git a/sdk/logz/arm-logz/src/models/index.ts b/sdk/logz/arm-logz/src/models/index.ts
new file mode 100644
index 000000000000..e5c445d4372d
--- /dev/null
+++ b/sdk/logz/arm-logz/src/models/index.ts
@@ -0,0 +1,1805 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
+import * as msRest from "@azure/ms-rest-js";
+
+export { BaseResource, CloudError };
+
+/**
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+export interface SystemData {
+ /**
+ * The identity that created the resource.
+ */
+ createdBy?: string;
+ /**
+ * The type of identity that created the resource. Possible values include: 'User',
+ * 'Application', 'ManagedIdentity', 'Key'
+ */
+ createdByType?: CreatedByType;
+ /**
+ * The timestamp of resource creation (UTC).
+ */
+ createdAt?: Date;
+ /**
+ * The identity that last modified the resource.
+ */
+ lastModifiedBy?: string;
+ /**
+ * The type of identity that last modified the resource. Possible values include: 'User',
+ * 'Application', 'ManagedIdentity', 'Key'
+ */
+ lastModifiedByType?: CreatedByType;
+ /**
+ * The timestamp of resource last modification (UTC)
+ */
+ lastModifiedAt?: Date;
+}
+
+/**
+ * The properties of a resource currently being monitored by the Logz monitor resource.
+ */
+export interface MonitoredResource {
+ /**
+ * The ARM id of the resource.
+ */
+ id?: string;
+ /**
+ * Flag indicating if resource is sending metrics to Logz.
+ */
+ sendingMetrics?: boolean;
+ /**
+ * Reason for why the resource is sending metrics (or why it is not sending).
+ */
+ reasonForMetricsStatus?: string;
+ /**
+ * Flag indicating if resource is sending logs to Logz.
+ */
+ sendingLogs?: boolean;
+ systemData?: SystemData;
+ /**
+ * Reason for why the resource is sending logs (or why it is not sending).
+ */
+ reasonForLogsStatus?: string;
+}
+
+/**
+ * The object that represents the operation.
+ */
+export interface OperationDisplay {
+ /**
+ * Service provider, i.e., Microsoft.Logz.
+ */
+ provider?: string;
+ /**
+ * Type on which the operation is performed, e.g., 'monitors'.
+ */
+ resource?: string;
+ /**
+ * Operation type, e.g., read, write, delete, etc.
+ */
+ operation?: string;
+ /**
+ * Description of the operation, e.g., 'Write monitors'.
+ */
+ description?: string;
+}
+
+/**
+ * A Microsoft.Logz REST API operation.
+ */
+export interface OperationResult {
+ /**
+ * Operation name, i.e., {provider}/{resource}/{operation}.
+ */
+ name?: string;
+ /**
+ * Indicates whether the operation is a data action
+ */
+ isDataAction?: boolean;
+ display?: OperationDisplay;
+ /**
+ * Origin of the operation
+ */
+ origin?: string;
+}
+
+/**
+ * An interface representing LogzOrganizationProperties.
+ */
+export interface LogzOrganizationProperties {
+ /**
+ * Name of the Logz organization.
+ */
+ companyName?: string;
+ /**
+ * Id of the Logz organization.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly id?: string;
+ /**
+ * The Id of the Enterprise App used for Single sign on.
+ */
+ enterpriseAppId?: string;
+ /**
+ * The login URL specific to this Logz Organization.
+ */
+ singleSignOnUrl?: string;
+}
+
+/**
+ * An interface representing UserInfo.
+ */
+export interface UserInfo {
+ /**
+ * First Name of the user
+ */
+ firstName?: string;
+ /**
+ * Last Name of the user
+ */
+ lastName?: string;
+ /**
+ * Email of the user used by Logz for contacting them if needed
+ */
+ emailAddress?: string;
+ /**
+ * Phone number of the user used by Logz for contacting them if needed
+ */
+ phoneNumber?: string;
+}
+
+/**
+ * An interface representing PlanData.
+ */
+export interface PlanData {
+ /**
+ * different usage type like PAYG/COMMITTED. this could be enum
+ */
+ usageType?: string;
+ /**
+ * different billing cycles like MONTHLY/WEEKLY. this could be enum
+ */
+ billingCycle?: string;
+ /**
+ * plan id as published by Logz
+ */
+ planDetails?: string;
+ /**
+ * date when plan was applied
+ */
+ effectiveDate?: Date;
+}
+
+/**
+ * Properties specific to the monitor resource.
+ */
+export interface MonitorProperties {
+ /**
+ * Possible values include: 'Accepted', 'Creating', 'Updating', 'Deleting', 'Succeeded',
+ * 'Failed', 'Canceled', 'Deleted', 'NotSpecified'
+ */
+ provisioningState?: ProvisioningState;
+ /**
+ * Possible values include: 'Enabled', 'Disabled'
+ */
+ monitoringStatus?: MonitoringStatus;
+ /**
+ * Possible values include: 'Active', 'Suspended'
+ */
+ marketplaceSubscriptionStatus?: MarketplaceSubscriptionStatus;
+ logzOrganizationProperties?: LogzOrganizationProperties;
+ userInfo?: UserInfo;
+ planData?: PlanData;
+ /**
+ * Possible values include: 'Unknown', 'MonitorLogs'
+ */
+ liftrResourceCategory?: LiftrResourceCategories;
+ /**
+ * The priority of the resource.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly liftrResourcePreference?: number;
+}
+
+/**
+ * An interface representing IdentityProperties.
+ */
+export interface IdentityProperties {
+ /**
+ * The identity ID.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly principalId?: string;
+ /**
+ * The tenant ID of resource.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly tenantId?: string;
+ /**
+ * Possible values include: 'SystemAssigned', 'UserAssigned'
+ */
+ type?: ManagedIdentityTypes;
+}
+
+/**
+ * An interface representing LogzMonitorResource.
+ */
+export interface LogzMonitorResource extends BaseResource {
+ /**
+ * ARM id of the monitor resource.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly id?: string;
+ /**
+ * The system metadata relating to this resource
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly systemData?: SystemData;
+ /**
+ * Name of the monitor resource.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly name?: string;
+ /**
+ * The type of the monitor resource.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly type?: string;
+ properties?: MonitorProperties;
+ identity?: IdentityProperties;
+ tags?: { [propertyName: string]: string };
+ location: string;
+}
+
+/**
+ * The set of properties that can be update in a PATCH request to a monitor resource.
+ */
+export interface MonitorUpdateProperties {
+ /**
+ * Possible values include: 'Enabled', 'Disabled'
+ */
+ monitoringStatus?: MonitoringStatus;
+}
+
+/**
+ * The parameters for a PATCH request to a monitor resource.
+ */
+export interface LogzMonitorResourceUpdateParameters {
+ properties?: MonitorUpdateProperties;
+ /**
+ * The new tags of the monitor resource.
+ */
+ tags?: { [propertyName: string]: string };
+}
+
+/**
+ * The definition of a filtering tag. Filtering tags are used for capturing resources and
+ * include/exclude them from being monitored.
+ */
+export interface FilteringTag {
+ /**
+ * The name (also known as the key) of the tag.
+ */
+ name?: string;
+ /**
+ * The value of the tag.
+ */
+ value?: string;
+ /**
+ * Possible values include: 'Include', 'Exclude'
+ */
+ action?: TagAction;
+}
+
+/**
+ * Set of rules for sending logs for the Monitor resource.
+ */
+export interface LogRules {
+ /**
+ * Flag specifying if AAD logs should be sent for the Monitor resource.
+ */
+ sendAadLogs?: boolean;
+ /**
+ * Flag specifying if subscription logs should be sent for the Monitor resource.
+ */
+ sendSubscriptionLogs?: boolean;
+ /**
+ * Flag specifying if activity logs from Azure resources should be sent for the Monitor resource.
+ */
+ sendActivityLogs?: boolean;
+ /**
+ * List of filtering tags to be used for capturing logs. This only takes effect if
+ * SendActivityLogs flag is enabled. If empty, all resources will be captured. If only Exclude
+ * action is specified, the rules will apply to the list of all available resources. If Include
+ * actions are specified, the rules will only include resources with the associated tags.
+ */
+ filteringTags?: FilteringTag[];
+}
+
+/**
+ * Definition of the properties for a TagRules resource.
+ */
+export interface MonitoringTagRulesProperties {
+ /**
+ * Possible values include: 'Accepted', 'Creating', 'Updating', 'Deleting', 'Succeeded',
+ * 'Failed', 'Canceled', 'Deleted', 'NotSpecified'
+ */
+ provisioningState?: ProvisioningState;
+ logRules?: LogRules;
+ systemData?: SystemData;
+}
+
+/**
+ * Capture logs and metrics of Azure resources based on ARM tags.
+ */
+export interface MonitoringTagRules extends BaseResource {
+ /**
+ * Name of the rule set.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly name?: string;
+ /**
+ * The id of the rule set.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly id?: string;
+ /**
+ * The type of the rule set.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly type?: string;
+ /**
+ * The system metadata relating to this resource
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly systemData?: SystemData;
+ properties?: MonitoringTagRulesProperties;
+}
+
+/**
+ * An interface representing LogzSingleSignOnProperties.
+ */
+export interface LogzSingleSignOnProperties {
+ /**
+ * Possible values include: 'Initial', 'Enable', 'Disable', 'Existing'
+ */
+ singleSignOnState?: SingleSignOnStates;
+ /**
+ * The Id of the Enterprise App used for Single sign-on.
+ */
+ enterpriseAppId?: string;
+ /**
+ * The login URL specific to this Logz Organization.
+ */
+ singleSignOnUrl?: string;
+ /**
+ * Possible values include: 'Accepted', 'Creating', 'Updating', 'Deleting', 'Succeeded',
+ * 'Failed', 'Canceled', 'Deleted', 'NotSpecified'
+ */
+ provisioningState?: ProvisioningState;
+}
+
+/**
+ * An interface representing LogzSingleSignOnResource.
+ */
+export interface LogzSingleSignOnResource extends BaseResource {
+ /**
+ * ARM id of the resource.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly id?: string;
+ /**
+ * Name of the configuration.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly name?: string;
+ /**
+ * The type of the resource.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly type?: string;
+ systemData?: SystemData;
+ properties?: LogzSingleSignOnProperties;
+}
+
+/**
+ * Response of payload to be passed while installing VM agent.
+ */
+export interface VMExtensionPayload {
+ /**
+ * API Key corresponding to the resource.
+ */
+ apiKey?: string;
+ /**
+ * Logz.io region where the resource has been created.
+ */
+ region?: string;
+}
+
+/**
+ * VM Resource Ids
+ */
+export interface VMResources {
+ /**
+ * Request of a list vm host update operation.
+ */
+ id?: string;
+ /**
+ * Version of the Logz agent installed on the VM.
+ */
+ agentVersion?: string;
+}
+
+/**
+ * Request of a list VM Host Update Operation.
+ */
+export interface VMHostUpdateRequest {
+ /**
+ * Request of a list vm host update operation.
+ */
+ vmResourceIds?: VMResources[];
+ /**
+ * Specifies the state of the operation - install/ delete. Possible values include: 'Install',
+ * 'Delete'
+ */
+ state?: VMHostUpdateStates;
+}
+
+/**
+ * Request for checking user's role for Logz.io account.
+ */
+export interface UserRoleRequest {
+ /**
+ * Email of the user used by Logz for contacting them if needed
+ */
+ emailAddress?: string;
+}
+
+/**
+ * Response for checking user's role for Logz.io account.
+ */
+export interface UserRoleResponse {
+ /**
+ * Possible values include: 'None', 'User', 'Admin'
+ */
+ role?: UserRole;
+}
+
+/**
+ * The resource management error additional info.
+ */
+export interface ErrorAdditionalInfo {
+ /**
+ * The additional info type.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly type?: string;
+ /**
+ * The additional info.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly info?: any;
+}
+
+/**
+ * The error detail.
+ */
+export interface ErrorDetail {
+ /**
+ * The error code.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly code?: string;
+ /**
+ * The error message.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly message?: string;
+ /**
+ * The error target.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly target?: string;
+ /**
+ * The error details.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly details?: ErrorDetail[];
+ /**
+ * The error additional info.
+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ */
+ readonly additionalInfo?: ErrorAdditionalInfo[];
+}
+
+/**
+ * Common error response for all Azure Resource Manager APIs to return error details for failed
+ * operations. (This also follows the OData error response format.).
+ * @summary Error response
+ */
+export interface ErrorResponse {
+ /**
+ * The error object.
+ */
+ error?: ErrorDetail;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface MonitorsCreateOptionalParams extends msRest.RequestOptionsBase {
+ body?: LogzMonitorResource;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface MonitorsUpdateOptionalParams extends msRest.RequestOptionsBase {
+ body?: LogzMonitorResourceUpdateParameters;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface MonitorsListUserRolesOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * Email of the user used by Logz for contacting them if needed
+ */
+ emailAddress?: string;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface MonitorsBeginCreateOptionalParams extends msRest.RequestOptionsBase {
+ body?: LogzMonitorResource;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface TagRulesCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase {
+ properties?: MonitoringTagRulesProperties;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface SingleSignOnCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase {
+ body?: LogzSingleSignOnResource;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface SingleSignOnBeginCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase {
+ body?: LogzSingleSignOnResource;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface SubAccountCreateOptionalParams extends msRest.RequestOptionsBase {
+ body?: LogzMonitorResource;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface SubAccountUpdateOptionalParams extends msRest.RequestOptionsBase {
+ body?: LogzMonitorResourceUpdateParameters;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface SubAccountListVmHostUpdateOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * Request body to update the collection for agent installed in the given monitor.
+ */
+ body?: VMHostUpdateRequest;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface SubAccountBeginCreateOptionalParams extends msRest.RequestOptionsBase {
+ body?: LogzMonitorResource;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface SubAccountTagRulesCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase {
+ properties?: MonitoringTagRulesProperties;
+}
+
+/**
+ * Optional Parameters.
+ */
+export interface MonitorListVmHostUpdateOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * Request body to update the collection for agent installed in the given monitor.
+ */
+ body?: VMHostUpdateRequest;
+}
+
+/**
+ * An interface representing MicrosoftLogzOptions.
+ */
+export interface MicrosoftLogzOptions extends AzureServiceClientOptions {
+ baseUri?: string;
+}
+
+/**
+ * Defines headers for Delete operation.
+ */
+export interface MonitorsDeleteHeaders {
+ /**
+ * URL to query for status of the operation.
+ */
+ location: string;
+}
+
+/**
+ * Defines headers for Delete operation.
+ */
+export interface TagRulesDeleteHeaders {
+ /**
+ * URL to query for status of the operation.
+ */
+ location: string;
+}
+
+/**
+ * Defines headers for Delete operation.
+ */
+export interface SubAccountDeleteHeaders {
+ /**
+ * URL to query for status of the operation.
+ */
+ location: string;
+}
+
+/**
+ * Defines headers for Delete operation.
+ */
+export interface SubAccountTagRulesDeleteHeaders {
+ /**
+ * URL to query for status of the operation.
+ */
+ location: string;
+}
+
+/**
+ * @interface
+ * Response of a list operation.
+ * @extends Array
+ */
+export interface MonitoredResourceListResponse extends Array {
+ /**
+ * Link to the next set of results, if any.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * Response of a list operation.
+ * @extends Array
+ */
+export interface LogzMonitorResourceListResponse extends Array {
+ /**
+ * Link to the next set of results, if any.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * Response for list of user's role for Logz.io account.
+ * @extends Array
+ */
+export interface UserRoleListResponse extends Array {
+ /**
+ * Link to the next set of results, if any.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * Result of GET request to list the Microsoft.Logz operations.
+ * @extends Array
+ */
+export interface OperationListResult extends Array {
+ /**
+ * URL to get the next set of operation list results if there are any.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * Response of a list operation.
+ * @extends Array
+ */
+export interface MonitoringTagRulesListResponse extends Array {
+ /**
+ * Link to the next set of results, if any.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * Response of a list operation.
+ * @extends Array
+ */
+export interface LogzSingleSignOnResourceListResponse extends Array {
+ /**
+ * Link to the next set of results, if any.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * Response of a list VM Host Update Operation.
+ * @extends Array
+ */
+export interface VMResourcesListResponse extends Array {
+ /**
+ * Link to the next set of results, if any.
+ */
+ nextLink?: string;
+}
+
+/**
+ * Defines values for CreatedByType.
+ * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'
+ * @readonly
+ * @enum {string}
+ */
+export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key';
+
+/**
+ * Defines values for ProvisioningState.
+ * Possible values include: 'Accepted', 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed',
+ * 'Canceled', 'Deleted', 'NotSpecified'
+ * @readonly
+ * @enum {string}
+ */
+export type ProvisioningState = 'Accepted' | 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled' | 'Deleted' | 'NotSpecified';
+
+/**
+ * Defines values for MonitoringStatus.
+ * Possible values include: 'Enabled', 'Disabled'
+ * @readonly
+ * @enum {string}
+ */
+export type MonitoringStatus = 'Enabled' | 'Disabled';
+
+/**
+ * Defines values for MarketplaceSubscriptionStatus.
+ * Possible values include: 'Active', 'Suspended'
+ * @readonly
+ * @enum {string}
+ */
+export type MarketplaceSubscriptionStatus = 'Active' | 'Suspended';
+
+/**
+ * Defines values for LiftrResourceCategories.
+ * Possible values include: 'Unknown', 'MonitorLogs'
+ * @readonly
+ * @enum {string}
+ */
+export type LiftrResourceCategories = 'Unknown' | 'MonitorLogs';
+
+/**
+ * Defines values for ManagedIdentityTypes.
+ * Possible values include: 'SystemAssigned', 'UserAssigned'
+ * @readonly
+ * @enum {string}
+ */
+export type ManagedIdentityTypes = 'SystemAssigned' | 'UserAssigned';
+
+/**
+ * Defines values for TagAction.
+ * Possible values include: 'Include', 'Exclude'
+ * @readonly
+ * @enum {string}
+ */
+export type TagAction = 'Include' | 'Exclude';
+
+/**
+ * Defines values for SingleSignOnStates.
+ * Possible values include: 'Initial', 'Enable', 'Disable', 'Existing'
+ * @readonly
+ * @enum {string}
+ */
+export type SingleSignOnStates = 'Initial' | 'Enable' | 'Disable' | 'Existing';
+
+/**
+ * Defines values for VMHostUpdateStates.
+ * Possible values include: 'Install', 'Delete'
+ * @readonly
+ * @enum {string}
+ */
+export type VMHostUpdateStates = 'Install' | 'Delete';
+
+/**
+ * Defines values for UserRole.
+ * Possible values include: 'None', 'User', 'Admin'
+ * @readonly
+ * @enum {string}
+ */
+export type UserRole = 'None' | 'User' | 'Admin';
+
+/**
+ * Contains response data for the listMonitoredResources operation.
+ */
+export type MonitorsListMonitoredResourcesResponse = MonitoredResourceListResponse & {
+ /**
+ * 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: MonitoredResourceListResponse;
+ };
+};
+
+/**
+ * Contains response data for the listBySubscription operation.
+ */
+export type MonitorsListBySubscriptionResponse = LogzMonitorResourceListResponse & {
+ /**
+ * 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: LogzMonitorResourceListResponse;
+ };
+};
+
+/**
+ * Contains response data for the listByResourceGroup operation.
+ */
+export type MonitorsListByResourceGroupResponse = LogzMonitorResourceListResponse & {
+ /**
+ * 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: LogzMonitorResourceListResponse;
+ };
+};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type MonitorsGetResponse = LogzMonitorResource & {
+ /**
+ * 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: LogzMonitorResource;
+ };
+};
+
+/**
+ * Contains response data for the create operation.
+ */
+export type MonitorsCreateResponse = LogzMonitorResource & {
+ /**
+ * 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: LogzMonitorResource;
+ };
+};
+
+/**
+ * Contains response data for the update operation.
+ */
+export type MonitorsUpdateResponse = LogzMonitorResource & {
+ /**
+ * 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: LogzMonitorResource;
+ };
+};
+
+/**
+ * Contains response data for the deleteMethod operation.
+ */
+export type MonitorsDeleteResponse = MonitorsDeleteHeaders & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The parsed HTTP response headers.
+ */
+ parsedHeaders: MonitorsDeleteHeaders;
+ };
+};
+
+/**
+ * Contains response data for the listUserRoles operation.
+ */
+export type MonitorsListUserRolesResponse = UserRoleListResponse & {
+ /**
+ * 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: UserRoleListResponse;
+ };
+};
+
+/**
+ * Contains response data for the beginCreate operation.
+ */
+export type MonitorsBeginCreateResponse = LogzMonitorResource & {
+ /**
+ * 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: LogzMonitorResource;
+ };
+};
+
+/**
+ * Contains response data for the listMonitoredResourcesNext operation.
+ */
+export type MonitorsListMonitoredResourcesNextResponse = MonitoredResourceListResponse & {
+ /**
+ * 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: MonitoredResourceListResponse;
+ };
+};
+
+/**
+ * Contains response data for the listBySubscriptionNext operation.
+ */
+export type MonitorsListBySubscriptionNextResponse = LogzMonitorResourceListResponse & {
+ /**
+ * 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: LogzMonitorResourceListResponse;
+ };
+};
+
+/**
+ * Contains response data for the listByResourceGroupNext operation.
+ */
+export type MonitorsListByResourceGroupNextResponse = LogzMonitorResourceListResponse & {
+ /**
+ * 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: LogzMonitorResourceListResponse;
+ };
+};
+
+/**
+ * Contains response data for the listUserRolesNext operation.
+ */
+export type MonitorsListUserRolesNextResponse = UserRoleListResponse & {
+ /**
+ * 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: UserRoleListResponse;
+ };
+};
+
+/**
+ * Contains response data for the list operation.
+ */
+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;
+ };
+};
+
+/**
+ * Contains response data for the listNext operation.
+ */
+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;
+ };
+};
+
+/**
+ * Contains response data for the list operation.
+ */
+export type TagRulesListResponse = MonitoringTagRulesListResponse & {
+ /**
+ * 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: MonitoringTagRulesListResponse;
+ };
+};
+
+/**
+ * Contains response data for the createOrUpdate operation.
+ */
+export type TagRulesCreateOrUpdateResponse = MonitoringTagRules & {
+ /**
+ * 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: MonitoringTagRules;
+ };
+};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type TagRulesGetResponse = MonitoringTagRules & {
+ /**
+ * 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: MonitoringTagRules;
+ };
+};
+
+/**
+ * Contains response data for the deleteMethod operation.
+ */
+export type TagRulesDeleteResponse = TagRulesDeleteHeaders & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The parsed HTTP response headers.
+ */
+ parsedHeaders: TagRulesDeleteHeaders;
+ };
+};
+
+/**
+ * Contains response data for the listNext operation.
+ */
+export type TagRulesListNextResponse = MonitoringTagRulesListResponse & {
+ /**
+ * 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: MonitoringTagRulesListResponse;
+ };
+};
+
+/**
+ * Contains response data for the list operation.
+ */
+export type SingleSignOnListResponse = LogzSingleSignOnResourceListResponse & {
+ /**
+ * 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: LogzSingleSignOnResourceListResponse;
+ };
+};
+
+/**
+ * Contains response data for the createOrUpdate operation.
+ */
+export type SingleSignOnCreateOrUpdateResponse = LogzSingleSignOnResource & {
+ /**
+ * 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: LogzSingleSignOnResource;
+ };
+};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type SingleSignOnGetResponse = LogzSingleSignOnResource & {
+ /**
+ * 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: LogzSingleSignOnResource;
+ };
+};
+
+/**
+ * Contains response data for the beginCreateOrUpdate operation.
+ */
+export type SingleSignOnBeginCreateOrUpdateResponse = LogzSingleSignOnResource & {
+ /**
+ * 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: LogzSingleSignOnResource;
+ };
+};
+
+/**
+ * Contains response data for the listNext operation.
+ */
+export type SingleSignOnListNextResponse = LogzSingleSignOnResourceListResponse & {
+ /**
+ * 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: LogzSingleSignOnResourceListResponse;
+ };
+};
+
+/**
+ * Contains response data for the list operation.
+ */
+export type SubAccountListResponse = LogzMonitorResourceListResponse & {
+ /**
+ * 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: LogzMonitorResourceListResponse;
+ };
+};
+
+/**
+ * Contains response data for the create operation.
+ */
+export type SubAccountCreateResponse = LogzMonitorResource & {
+ /**
+ * 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: LogzMonitorResource;
+ };
+};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type SubAccountGetResponse = LogzMonitorResource & {
+ /**
+ * 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: LogzMonitorResource;
+ };
+};
+
+/**
+ * Contains response data for the deleteMethod operation.
+ */
+export type SubAccountDeleteResponse = SubAccountDeleteHeaders & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The parsed HTTP response headers.
+ */
+ parsedHeaders: SubAccountDeleteHeaders;
+ };
+};
+
+/**
+ * Contains response data for the update operation.
+ */
+export type SubAccountUpdateResponse = LogzMonitorResource & {
+ /**
+ * 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: LogzMonitorResource;
+ };
+};
+
+/**
+ * Contains response data for the listMonitoredResources operation.
+ */
+export type SubAccountListMonitoredResourcesResponse = MonitoredResourceListResponse & {
+ /**
+ * 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: MonitoredResourceListResponse;
+ };
+};
+
+/**
+ * Contains response data for the vMHostPayload operation.
+ */
+export type SubAccountVMHostPayloadResponse = VMExtensionPayload & {
+ /**
+ * 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: VMExtensionPayload;
+ };
+};
+
+/**
+ * Contains response data for the listVmHostUpdate operation.
+ */
+export type SubAccountListVmHostUpdateResponse = VMResourcesListResponse & {
+ /**
+ * 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: VMResourcesListResponse;
+ };
+};
+
+/**
+ * Contains response data for the listVMHosts operation.
+ */
+export type SubAccountListVMHostsResponse = VMResourcesListResponse & {
+ /**
+ * 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: VMResourcesListResponse;
+ };
+};
+
+/**
+ * Contains response data for the beginCreate operation.
+ */
+export type SubAccountBeginCreateResponse = LogzMonitorResource & {
+ /**
+ * 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: LogzMonitorResource;
+ };
+};
+
+/**
+ * Contains response data for the listNext operation.
+ */
+export type SubAccountListNextResponse = LogzMonitorResourceListResponse & {
+ /**
+ * 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: LogzMonitorResourceListResponse;
+ };
+};
+
+/**
+ * Contains response data for the listMonitoredResourcesNext operation.
+ */
+export type SubAccountListMonitoredResourcesNextResponse = MonitoredResourceListResponse & {
+ /**
+ * 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: MonitoredResourceListResponse;
+ };
+};
+
+/**
+ * Contains response data for the listVmHostUpdateNext operation.
+ */
+export type SubAccountListVmHostUpdateNextResponse = VMResourcesListResponse & {
+ /**
+ * 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: VMResourcesListResponse;
+ };
+};
+
+/**
+ * Contains response data for the listVMHostsNext operation.
+ */
+export type SubAccountListVMHostsNextResponse = VMResourcesListResponse & {
+ /**
+ * 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: VMResourcesListResponse;
+ };
+};
+
+/**
+ * Contains response data for the list operation.
+ */
+export type SubAccountTagRulesListResponse = MonitoringTagRulesListResponse & {
+ /**
+ * 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: MonitoringTagRulesListResponse;
+ };
+};
+
+/**
+ * Contains response data for the createOrUpdate operation.
+ */
+export type SubAccountTagRulesCreateOrUpdateResponse = MonitoringTagRules & {
+ /**
+ * 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: MonitoringTagRules;
+ };
+};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type SubAccountTagRulesGetResponse = MonitoringTagRules & {
+ /**
+ * 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: MonitoringTagRules;
+ };
+};
+
+/**
+ * Contains response data for the deleteMethod operation.
+ */
+export type SubAccountTagRulesDeleteResponse = SubAccountTagRulesDeleteHeaders & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The parsed HTTP response headers.
+ */
+ parsedHeaders: SubAccountTagRulesDeleteHeaders;
+ };
+};
+
+/**
+ * Contains response data for the listNext operation.
+ */
+export type SubAccountTagRulesListNextResponse = MonitoringTagRulesListResponse & {
+ /**
+ * 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: MonitoringTagRulesListResponse;
+ };
+};
+
+/**
+ * Contains response data for the vMHostPayload operation.
+ */
+export type MonitorVMHostPayloadResponse = VMExtensionPayload & {
+ /**
+ * 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: VMExtensionPayload;
+ };
+};
+
+/**
+ * Contains response data for the listVmHostUpdate operation.
+ */
+export type MonitorListVmHostUpdateResponse = VMResourcesListResponse & {
+ /**
+ * 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: VMResourcesListResponse;
+ };
+};
+
+/**
+ * Contains response data for the listVMHosts operation.
+ */
+export type MonitorListVMHostsResponse = VMResourcesListResponse & {
+ /**
+ * 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: VMResourcesListResponse;
+ };
+};
+
+/**
+ * Contains response data for the listVmHostUpdateNext operation.
+ */
+export type MonitorListVmHostUpdateNextResponse = VMResourcesListResponse & {
+ /**
+ * 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: VMResourcesListResponse;
+ };
+};
+
+/**
+ * Contains response data for the listVMHostsNext operation.
+ */
+export type MonitorListVMHostsNextResponse = VMResourcesListResponse & {
+ /**
+ * 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: VMResourcesListResponse;
+ };
+};
diff --git a/sdk/logz/arm-logz/src/models/mappers.ts b/sdk/logz/arm-logz/src/models/mappers.ts
new file mode 100644
index 000000000000..8f2ba9fa364f
--- /dev/null
+++ b/sdk/logz/arm-logz/src/models/mappers.ts
@@ -0,0 +1,1194 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
+import * as msRest from "@azure/ms-rest-js";
+
+export const CloudError = CloudErrorMapper;
+export const BaseResource = BaseResourceMapper;
+
+export const SystemData: msRest.CompositeMapper = {
+ serializedName: "systemData",
+ type: {
+ name: "Composite",
+ className: "SystemData",
+ modelProperties: {
+ createdBy: {
+ serializedName: "createdBy",
+ type: {
+ name: "String"
+ }
+ },
+ createdByType: {
+ serializedName: "createdByType",
+ type: {
+ name: "String"
+ }
+ },
+ createdAt: {
+ serializedName: "createdAt",
+ type: {
+ name: "DateTime"
+ }
+ },
+ lastModifiedBy: {
+ serializedName: "lastModifiedBy",
+ type: {
+ name: "String"
+ }
+ },
+ lastModifiedByType: {
+ serializedName: "lastModifiedByType",
+ type: {
+ name: "String"
+ }
+ },
+ lastModifiedAt: {
+ serializedName: "lastModifiedAt",
+ type: {
+ name: "DateTime"
+ }
+ }
+ }
+ }
+};
+
+export const MonitoredResource: msRest.CompositeMapper = {
+ serializedName: "MonitoredResource",
+ type: {
+ name: "Composite",
+ className: "MonitoredResource",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ sendingMetrics: {
+ serializedName: "sendingMetrics",
+ type: {
+ name: "Boolean"
+ }
+ },
+ reasonForMetricsStatus: {
+ serializedName: "reasonForMetricsStatus",
+ type: {
+ name: "String"
+ }
+ },
+ sendingLogs: {
+ serializedName: "sendingLogs",
+ type: {
+ name: "Boolean"
+ }
+ },
+ systemData: {
+ serializedName: "systemData",
+ type: {
+ name: "Composite",
+ className: "SystemData"
+ }
+ },
+ reasonForLogsStatus: {
+ serializedName: "reasonForLogsStatus",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const OperationDisplay: msRest.CompositeMapper = {
+ serializedName: "OperationDisplay",
+ type: {
+ name: "Composite",
+ className: "OperationDisplay",
+ modelProperties: {
+ provider: {
+ serializedName: "provider",
+ type: {
+ name: "String"
+ }
+ },
+ resource: {
+ serializedName: "resource",
+ type: {
+ name: "String"
+ }
+ },
+ operation: {
+ serializedName: "operation",
+ type: {
+ name: "String"
+ }
+ },
+ description: {
+ serializedName: "description",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const OperationResult: msRest.CompositeMapper = {
+ serializedName: "OperationResult",
+ type: {
+ name: "Composite",
+ className: "OperationResult",
+ modelProperties: {
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ isDataAction: {
+ serializedName: "isDataAction",
+ type: {
+ name: "Boolean"
+ }
+ },
+ display: {
+ serializedName: "display",
+ type: {
+ name: "Composite",
+ className: "OperationDisplay"
+ }
+ },
+ origin: {
+ serializedName: "origin",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const LogzOrganizationProperties: msRest.CompositeMapper = {
+ serializedName: "LogzOrganizationProperties",
+ type: {
+ name: "Composite",
+ className: "LogzOrganizationProperties",
+ modelProperties: {
+ companyName: {
+ serializedName: "companyName",
+ type: {
+ name: "String"
+ }
+ },
+ id: {
+ readOnly: true,
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ enterpriseAppId: {
+ serializedName: "enterpriseAppId",
+ type: {
+ name: "String"
+ }
+ },
+ singleSignOnUrl: {
+ serializedName: "singleSignOnUrl",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const UserInfo: msRest.CompositeMapper = {
+ serializedName: "UserInfo",
+ type: {
+ name: "Composite",
+ className: "UserInfo",
+ modelProperties: {
+ firstName: {
+ serializedName: "firstName",
+ constraints: {
+ MaxLength: 50
+ },
+ type: {
+ name: "String"
+ }
+ },
+ lastName: {
+ serializedName: "lastName",
+ constraints: {
+ MaxLength: 50
+ },
+ type: {
+ name: "String"
+ }
+ },
+ emailAddress: {
+ serializedName: "emailAddress",
+ constraints: {
+ Pattern: /^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\.)+[A-Za-z]{2,}$/
+ },
+ type: {
+ name: "String"
+ }
+ },
+ phoneNumber: {
+ serializedName: "phoneNumber",
+ constraints: {
+ MaxLength: 40
+ },
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const PlanData: msRest.CompositeMapper = {
+ serializedName: "PlanData",
+ type: {
+ name: "Composite",
+ className: "PlanData",
+ modelProperties: {
+ usageType: {
+ serializedName: "usageType",
+ constraints: {
+ MaxLength: 50
+ },
+ type: {
+ name: "String"
+ }
+ },
+ billingCycle: {
+ serializedName: "billingCycle",
+ constraints: {
+ MaxLength: 50
+ },
+ type: {
+ name: "String"
+ }
+ },
+ planDetails: {
+ serializedName: "planDetails",
+ constraints: {
+ MaxLength: 50
+ },
+ type: {
+ name: "String"
+ }
+ },
+ effectiveDate: {
+ serializedName: "effectiveDate",
+ type: {
+ name: "DateTime"
+ }
+ }
+ }
+ }
+};
+
+export const MonitorProperties: msRest.CompositeMapper = {
+ serializedName: "MonitorProperties",
+ type: {
+ name: "Composite",
+ className: "MonitorProperties",
+ modelProperties: {
+ provisioningState: {
+ serializedName: "provisioningState",
+ type: {
+ name: "String"
+ }
+ },
+ monitoringStatus: {
+ serializedName: "monitoringStatus",
+ type: {
+ name: "String"
+ }
+ },
+ marketplaceSubscriptionStatus: {
+ serializedName: "marketplaceSubscriptionStatus",
+ type: {
+ name: "String"
+ }
+ },
+ logzOrganizationProperties: {
+ serializedName: "logzOrganizationProperties",
+ type: {
+ name: "Composite",
+ className: "LogzOrganizationProperties"
+ }
+ },
+ userInfo: {
+ serializedName: "userInfo",
+ type: {
+ name: "Composite",
+ className: "UserInfo"
+ }
+ },
+ planData: {
+ serializedName: "planData",
+ type: {
+ name: "Composite",
+ className: "PlanData"
+ }
+ },
+ liftrResourceCategory: {
+ serializedName: "liftrResourceCategory",
+ type: {
+ name: "String"
+ }
+ },
+ liftrResourcePreference: {
+ readOnly: true,
+ serializedName: "liftrResourcePreference",
+ type: {
+ name: "Number"
+ }
+ }
+ }
+ }
+};
+
+export const IdentityProperties: msRest.CompositeMapper = {
+ serializedName: "IdentityProperties",
+ type: {
+ name: "Composite",
+ className: "IdentityProperties",
+ modelProperties: {
+ principalId: {
+ readOnly: true,
+ serializedName: "principalId",
+ type: {
+ name: "String"
+ }
+ },
+ tenantId: {
+ readOnly: true,
+ serializedName: "tenantId",
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const LogzMonitorResource: msRest.CompositeMapper = {
+ serializedName: "LogzMonitorResource",
+ type: {
+ name: "Composite",
+ className: "LogzMonitorResource",
+ modelProperties: {
+ id: {
+ readOnly: true,
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ systemData: {
+ readOnly: true,
+ serializedName: "systemData",
+ type: {
+ name: "Composite",
+ className: "SystemData"
+ }
+ },
+ name: {
+ readOnly: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ readOnly: true,
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ },
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "MonitorProperties"
+ }
+ },
+ identity: {
+ serializedName: "identity",
+ type: {
+ name: "Composite",
+ className: "IdentityProperties"
+ }
+ },
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ location: {
+ required: true,
+ serializedName: "location",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const MonitorUpdateProperties: msRest.CompositeMapper = {
+ serializedName: "MonitorUpdateProperties",
+ type: {
+ name: "Composite",
+ className: "MonitorUpdateProperties",
+ modelProperties: {
+ monitoringStatus: {
+ serializedName: "monitoringStatus",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const LogzMonitorResourceUpdateParameters: msRest.CompositeMapper = {
+ serializedName: "LogzMonitorResourceUpdateParameters",
+ type: {
+ name: "Composite",
+ className: "LogzMonitorResourceUpdateParameters",
+ modelProperties: {
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "MonitorUpdateProperties"
+ }
+ },
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const FilteringTag: msRest.CompositeMapper = {
+ serializedName: "FilteringTag",
+ type: {
+ name: "Composite",
+ className: "FilteringTag",
+ modelProperties: {
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ value: {
+ serializedName: "value",
+ type: {
+ name: "String"
+ }
+ },
+ action: {
+ serializedName: "action",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const LogRules: msRest.CompositeMapper = {
+ serializedName: "LogRules",
+ type: {
+ name: "Composite",
+ className: "LogRules",
+ modelProperties: {
+ sendAadLogs: {
+ serializedName: "sendAadLogs",
+ type: {
+ name: "Boolean"
+ }
+ },
+ sendSubscriptionLogs: {
+ serializedName: "sendSubscriptionLogs",
+ type: {
+ name: "Boolean"
+ }
+ },
+ sendActivityLogs: {
+ serializedName: "sendActivityLogs",
+ type: {
+ name: "Boolean"
+ }
+ },
+ filteringTags: {
+ serializedName: "filteringTags",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "FilteringTag"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const MonitoringTagRulesProperties: msRest.CompositeMapper = {
+ serializedName: "MonitoringTagRulesProperties",
+ type: {
+ name: "Composite",
+ className: "MonitoringTagRulesProperties",
+ modelProperties: {
+ provisioningState: {
+ serializedName: "provisioningState",
+ type: {
+ name: "String"
+ }
+ },
+ logRules: {
+ serializedName: "logRules",
+ type: {
+ name: "Composite",
+ className: "LogRules"
+ }
+ },
+ systemData: {
+ serializedName: "systemData",
+ type: {
+ name: "Composite",
+ className: "SystemData"
+ }
+ }
+ }
+ }
+};
+
+export const MonitoringTagRules: msRest.CompositeMapper = {
+ serializedName: "MonitoringTagRules",
+ type: {
+ name: "Composite",
+ className: "MonitoringTagRules",
+ modelProperties: {
+ name: {
+ readOnly: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ id: {
+ readOnly: true,
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ readOnly: true,
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ },
+ systemData: {
+ readOnly: true,
+ serializedName: "systemData",
+ type: {
+ name: "Composite",
+ className: "SystemData"
+ }
+ },
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "MonitoringTagRulesProperties"
+ }
+ }
+ }
+ }
+};
+
+export const LogzSingleSignOnProperties: msRest.CompositeMapper = {
+ serializedName: "LogzSingleSignOnProperties",
+ type: {
+ name: "Composite",
+ className: "LogzSingleSignOnProperties",
+ modelProperties: {
+ singleSignOnState: {
+ serializedName: "singleSignOnState",
+ type: {
+ name: "String"
+ }
+ },
+ enterpriseAppId: {
+ serializedName: "enterpriseAppId",
+ type: {
+ name: "String"
+ }
+ },
+ singleSignOnUrl: {
+ serializedName: "singleSignOnUrl",
+ type: {
+ name: "String"
+ }
+ },
+ provisioningState: {
+ serializedName: "provisioningState",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const LogzSingleSignOnResource: msRest.CompositeMapper = {
+ serializedName: "LogzSingleSignOnResource",
+ type: {
+ name: "Composite",
+ className: "LogzSingleSignOnResource",
+ modelProperties: {
+ id: {
+ readOnly: true,
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ readOnly: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ readOnly: true,
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ },
+ systemData: {
+ serializedName: "systemData",
+ type: {
+ name: "Composite",
+ className: "SystemData"
+ }
+ },
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "LogzSingleSignOnProperties"
+ }
+ }
+ }
+ }
+};
+
+export const VMExtensionPayload: msRest.CompositeMapper = {
+ serializedName: "VMExtensionPayload",
+ type: {
+ name: "Composite",
+ className: "VMExtensionPayload",
+ modelProperties: {
+ apiKey: {
+ serializedName: "apiKey",
+ type: {
+ name: "String"
+ }
+ },
+ region: {
+ serializedName: "region",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const VMResources: msRest.CompositeMapper = {
+ serializedName: "VMResources",
+ type: {
+ name: "Composite",
+ className: "VMResources",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ agentVersion: {
+ serializedName: "agentVersion",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const VMHostUpdateRequest: msRest.CompositeMapper = {
+ serializedName: "VMHostUpdateRequest",
+ type: {
+ name: "Composite",
+ className: "VMHostUpdateRequest",
+ modelProperties: {
+ vmResourceIds: {
+ serializedName: "vmResourceIds",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "VMResources"
+ }
+ }
+ }
+ },
+ state: {
+ serializedName: "state",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const UserRoleRequest: msRest.CompositeMapper = {
+ serializedName: "UserRoleRequest",
+ type: {
+ name: "Composite",
+ className: "UserRoleRequest",
+ modelProperties: {
+ emailAddress: {
+ serializedName: "emailAddress",
+ constraints: {
+ Pattern: /^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\.)+[A-Za-z]{2,}$/
+ },
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const UserRoleResponse: msRest.CompositeMapper = {
+ serializedName: "UserRoleResponse",
+ type: {
+ name: "Composite",
+ className: "UserRoleResponse",
+ modelProperties: {
+ role: {
+ serializedName: "role",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ErrorAdditionalInfo: msRest.CompositeMapper = {
+ serializedName: "ErrorAdditionalInfo",
+ type: {
+ name: "Composite",
+ className: "ErrorAdditionalInfo",
+ modelProperties: {
+ type: {
+ readOnly: true,
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ },
+ info: {
+ readOnly: true,
+ serializedName: "info",
+ type: {
+ name: "Object"
+ }
+ }
+ }
+ }
+};
+
+export const ErrorDetail: msRest.CompositeMapper = {
+ serializedName: "ErrorDetail",
+ type: {
+ name: "Composite",
+ className: "ErrorDetail",
+ modelProperties: {
+ code: {
+ readOnly: true,
+ serializedName: "code",
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ readOnly: true,
+ serializedName: "message",
+ type: {
+ name: "String"
+ }
+ },
+ target: {
+ readOnly: true,
+ serializedName: "target",
+ type: {
+ name: "String"
+ }
+ },
+ details: {
+ readOnly: true,
+ serializedName: "details",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ErrorDetail"
+ }
+ }
+ }
+ },
+ additionalInfo: {
+ readOnly: true,
+ serializedName: "additionalInfo",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ErrorAdditionalInfo"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const ErrorResponse: msRest.CompositeMapper = {
+ serializedName: "ErrorResponse",
+ type: {
+ name: "Composite",
+ className: "ErrorResponse",
+ modelProperties: {
+ error: {
+ serializedName: "error",
+ type: {
+ name: "Composite",
+ className: "ErrorDetail"
+ }
+ }
+ }
+ }
+};
+
+export const MonitorsDeleteHeaders: msRest.CompositeMapper = {
+ serializedName: "monitors-delete-headers",
+ type: {
+ name: "Composite",
+ className: "MonitorsDeleteHeaders",
+ modelProperties: {
+ location: {
+ serializedName: "location",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const TagRulesDeleteHeaders: msRest.CompositeMapper = {
+ serializedName: "tagrules-delete-headers",
+ type: {
+ name: "Composite",
+ className: "TagRulesDeleteHeaders",
+ modelProperties: {
+ location: {
+ serializedName: "location",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const SubAccountDeleteHeaders: msRest.CompositeMapper = {
+ serializedName: "subaccount-delete-headers",
+ type: {
+ name: "Composite",
+ className: "SubAccountDeleteHeaders",
+ modelProperties: {
+ location: {
+ serializedName: "location",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const SubAccountTagRulesDeleteHeaders: msRest.CompositeMapper = {
+ serializedName: "subaccounttagrules-delete-headers",
+ type: {
+ name: "Composite",
+ className: "SubAccountTagRulesDeleteHeaders",
+ modelProperties: {
+ location: {
+ serializedName: "location",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const MonitoredResourceListResponse: msRest.CompositeMapper = {
+ serializedName: "MonitoredResourceListResponse",
+ type: {
+ name: "Composite",
+ className: "MonitoredResourceListResponse",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "MonitoredResource"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const LogzMonitorResourceListResponse: msRest.CompositeMapper = {
+ serializedName: "LogzMonitorResourceListResponse",
+ type: {
+ name: "Composite",
+ className: "LogzMonitorResourceListResponse",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "LogzMonitorResource"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const UserRoleListResponse: msRest.CompositeMapper = {
+ serializedName: "UserRoleListResponse",
+ type: {
+ name: "Composite",
+ className: "UserRoleListResponse",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "UserRoleResponse"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const OperationListResult: msRest.CompositeMapper = {
+ serializedName: "OperationListResult",
+ type: {
+ name: "Composite",
+ className: "OperationListResult",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "OperationResult"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const MonitoringTagRulesListResponse: msRest.CompositeMapper = {
+ serializedName: "MonitoringTagRulesListResponse",
+ type: {
+ name: "Composite",
+ className: "MonitoringTagRulesListResponse",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "MonitoringTagRules"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const LogzSingleSignOnResourceListResponse: msRest.CompositeMapper = {
+ serializedName: "LogzSingleSignOnResourceListResponse",
+ type: {
+ name: "Composite",
+ className: "LogzSingleSignOnResourceListResponse",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "LogzSingleSignOnResource"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const VMResourcesListResponse: msRest.CompositeMapper = {
+ serializedName: "VMResourcesListResponse",
+ type: {
+ name: "Composite",
+ className: "VMResourcesListResponse",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "VMResources"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
diff --git a/sdk/logz/arm-logz/src/models/monitorMappers.ts b/sdk/logz/arm-logz/src/models/monitorMappers.ts
new file mode 100644
index 000000000000..dc44fb05e7d4
--- /dev/null
+++ b/sdk/logz/arm-logz/src/models/monitorMappers.ts
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+export {
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
+ VMExtensionPayload,
+ VMHostUpdateRequest,
+ VMResources,
+ VMResourcesListResponse
+} from "../models/mappers";
diff --git a/sdk/logz/arm-logz/src/models/monitorsMappers.ts b/sdk/logz/arm-logz/src/models/monitorsMappers.ts
new file mode 100644
index 000000000000..6bc7ad4255e0
--- /dev/null
+++ b/sdk/logz/arm-logz/src/models/monitorsMappers.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+export {
+ BaseResource,
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
+ FilteringTag,
+ IdentityProperties,
+ LogRules,
+ LogzMonitorResource,
+ LogzMonitorResourceListResponse,
+ LogzMonitorResourceUpdateParameters,
+ LogzOrganizationProperties,
+ LogzSingleSignOnProperties,
+ LogzSingleSignOnResource,
+ MonitoredResource,
+ MonitoredResourceListResponse,
+ MonitoringTagRules,
+ MonitoringTagRulesProperties,
+ MonitorProperties,
+ MonitorsDeleteHeaders,
+ MonitorUpdateProperties,
+ PlanData,
+ SystemData,
+ UserInfo,
+ UserRoleListResponse,
+ UserRoleRequest,
+ UserRoleResponse
+} from "../models/mappers";
diff --git a/sdk/logz/arm-logz/src/models/operationsMappers.ts b/sdk/logz/arm-logz/src/models/operationsMappers.ts
new file mode 100644
index 000000000000..e8a08c7f2128
--- /dev/null
+++ b/sdk/logz/arm-logz/src/models/operationsMappers.ts
@@ -0,0 +1,16 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+export {
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
+ OperationDisplay,
+ OperationListResult,
+ OperationResult
+} from "../models/mappers";
diff --git a/sdk/logz/arm-logz/src/models/parameters.ts b/sdk/logz/arm-logz/src/models/parameters.ts
new file mode 100644
index 000000000000..53d067bb790a
--- /dev/null
+++ b/sdk/logz/arm-logz/src/models/parameters.ts
@@ -0,0 +1,113 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+
+export const acceptLanguage: msRest.OperationParameter = {
+ parameterPath: "acceptLanguage",
+ mapper: {
+ serializedName: "accept-language",
+ defaultValue: 'en-US',
+ type: {
+ name: "String"
+ }
+ }
+};
+export const apiVersion: msRest.OperationQueryParameter = {
+ parameterPath: "apiVersion",
+ mapper: {
+ required: true,
+ serializedName: "api-version",
+ constraints: {
+ MinLength: 1
+ },
+ type: {
+ name: "String"
+ }
+ }
+};
+export const configurationName: msRest.OperationURLParameter = {
+ parameterPath: "configurationName",
+ mapper: {
+ required: true,
+ serializedName: "configurationName",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const monitorName: msRest.OperationURLParameter = {
+ parameterPath: "monitorName",
+ mapper: {
+ required: true,
+ serializedName: "monitorName",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const nextPageLink: msRest.OperationURLParameter = {
+ parameterPath: "nextPageLink",
+ mapper: {
+ required: true,
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ },
+ skipEncoding: true
+};
+export const resourceGroupName: msRest.OperationURLParameter = {
+ parameterPath: "resourceGroupName",
+ mapper: {
+ required: true,
+ serializedName: "resourceGroupName",
+ constraints: {
+ MaxLength: 90,
+ MinLength: 1,
+ Pattern: /^[-\w\._\(\)]+$/
+ },
+ type: {
+ name: "String"
+ }
+ }
+};
+export const ruleSetName: msRest.OperationURLParameter = {
+ parameterPath: "ruleSetName",
+ mapper: {
+ required: true,
+ serializedName: "ruleSetName",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const subAccountName: msRest.OperationURLParameter = {
+ parameterPath: "subAccountName",
+ mapper: {
+ required: true,
+ serializedName: "subAccountName",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const subscriptionId: msRest.OperationURLParameter = {
+ parameterPath: "subscriptionId",
+ mapper: {
+ required: true,
+ serializedName: "subscriptionId",
+ constraints: {
+ MinLength: 1
+ },
+ type: {
+ name: "String"
+ }
+ }
+};
diff --git a/sdk/logz/arm-logz/src/models/singleSignOnMappers.ts b/sdk/logz/arm-logz/src/models/singleSignOnMappers.ts
new file mode 100644
index 000000000000..8aaad6036f42
--- /dev/null
+++ b/sdk/logz/arm-logz/src/models/singleSignOnMappers.ts
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+export {
+ BaseResource,
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
+ FilteringTag,
+ IdentityProperties,
+ LogRules,
+ LogzMonitorResource,
+ LogzOrganizationProperties,
+ LogzSingleSignOnProperties,
+ LogzSingleSignOnResource,
+ LogzSingleSignOnResourceListResponse,
+ MonitoringTagRules,
+ MonitoringTagRulesProperties,
+ MonitorProperties,
+ PlanData,
+ SystemData,
+ UserInfo
+} from "../models/mappers";
diff --git a/sdk/logz/arm-logz/src/models/subAccountMappers.ts b/sdk/logz/arm-logz/src/models/subAccountMappers.ts
new file mode 100644
index 000000000000..69a749de6ce9
--- /dev/null
+++ b/sdk/logz/arm-logz/src/models/subAccountMappers.ts
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+export {
+ BaseResource,
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
+ FilteringTag,
+ IdentityProperties,
+ LogRules,
+ LogzMonitorResource,
+ LogzMonitorResourceListResponse,
+ LogzMonitorResourceUpdateParameters,
+ LogzOrganizationProperties,
+ LogzSingleSignOnProperties,
+ LogzSingleSignOnResource,
+ MonitoredResource,
+ MonitoredResourceListResponse,
+ MonitoringTagRules,
+ MonitoringTagRulesProperties,
+ MonitorProperties,
+ MonitorUpdateProperties,
+ PlanData,
+ SubAccountDeleteHeaders,
+ SystemData,
+ UserInfo,
+ VMExtensionPayload,
+ VMHostUpdateRequest,
+ VMResources,
+ VMResourcesListResponse
+} from "../models/mappers";
diff --git a/sdk/logz/arm-logz/src/models/subAccountTagRulesMappers.ts b/sdk/logz/arm-logz/src/models/subAccountTagRulesMappers.ts
new file mode 100644
index 000000000000..4c36f3698314
--- /dev/null
+++ b/sdk/logz/arm-logz/src/models/subAccountTagRulesMappers.ts
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+export {
+ BaseResource,
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
+ FilteringTag,
+ IdentityProperties,
+ LogRules,
+ LogzMonitorResource,
+ LogzOrganizationProperties,
+ LogzSingleSignOnProperties,
+ LogzSingleSignOnResource,
+ MonitoringTagRules,
+ MonitoringTagRulesListResponse,
+ MonitoringTagRulesProperties,
+ MonitorProperties,
+ PlanData,
+ SubAccountTagRulesDeleteHeaders,
+ SystemData,
+ UserInfo
+} from "../models/mappers";
diff --git a/sdk/logz/arm-logz/src/models/tagRulesMappers.ts b/sdk/logz/arm-logz/src/models/tagRulesMappers.ts
new file mode 100644
index 000000000000..52122030cf72
--- /dev/null
+++ b/sdk/logz/arm-logz/src/models/tagRulesMappers.ts
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+export {
+ BaseResource,
+ ErrorAdditionalInfo,
+ ErrorDetail,
+ ErrorResponse,
+ FilteringTag,
+ IdentityProperties,
+ LogRules,
+ LogzMonitorResource,
+ LogzOrganizationProperties,
+ LogzSingleSignOnProperties,
+ LogzSingleSignOnResource,
+ MonitoringTagRules,
+ MonitoringTagRulesListResponse,
+ MonitoringTagRulesProperties,
+ MonitorProperties,
+ PlanData,
+ SystemData,
+ TagRulesDeleteHeaders,
+ UserInfo
+} from "../models/mappers";
diff --git a/sdk/logz/arm-logz/src/operations/index.ts b/sdk/logz/arm-logz/src/operations/index.ts
new file mode 100644
index 000000000000..9a49d6473960
--- /dev/null
+++ b/sdk/logz/arm-logz/src/operations/index.ts
@@ -0,0 +1,16 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+export * from "./monitors";
+export * from "./operations";
+export * from "./tagRules";
+export * from "./singleSignOn";
+export * from "./subAccount";
+export * from "./subAccountTagRules";
+export * from "./monitor";
diff --git a/sdk/logz/arm-logz/src/operations/monitor.ts b/sdk/logz/arm-logz/src/operations/monitor.ts
new file mode 100644
index 000000000000..80d52cbdc2e4
--- /dev/null
+++ b/sdk/logz/arm-logz/src/operations/monitor.ts
@@ -0,0 +1,314 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+import * as Models from "../models";
+import * as Mappers from "../models/monitorMappers";
+import * as Parameters from "../models/parameters";
+import { MicrosoftLogzContext } from "../microsoftLogzContext";
+
+/** Class representing a Monitor. */
+export class Monitor {
+ private readonly client: MicrosoftLogzContext;
+
+ /**
+ * Create a Monitor.
+ * @param {MicrosoftLogzContext} client Reference to the service client.
+ */
+ constructor(client: MicrosoftLogzContext) {
+ this.client = client;
+ }
+
+ /**
+ * @summary Returns the payload that needs to be passed in the request body for installing Logz.io
+ * agent on a VM.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ vMHostPayload(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param callback The callback
+ */
+ vMHostPayload(resourceGroupName: string, monitorName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ vMHostPayload(resourceGroupName: string, monitorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ vMHostPayload(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ monitorName,
+ options
+ },
+ vMHostPayloadOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary Sending request to update the collection when Logz.io agent has been installed on a VM
+ * for a given monitor.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listVmHostUpdate(resourceGroupName: string, monitorName: string, options?: Models.MonitorListVmHostUpdateOptionalParams): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param callback The callback
+ */
+ listVmHostUpdate(resourceGroupName: string, monitorName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listVmHostUpdate(resourceGroupName: string, monitorName: string, options: Models.MonitorListVmHostUpdateOptionalParams, callback: msRest.ServiceCallback): void;
+ listVmHostUpdate(resourceGroupName: string, monitorName: string, options?: Models.MonitorListVmHostUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ monitorName,
+ options
+ },
+ listVmHostUpdateOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary List the compute resources currently being monitored by the Logz main account resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listVMHosts(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param callback The callback
+ */
+ listVMHosts(resourceGroupName: string, monitorName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listVMHosts(resourceGroupName: string, monitorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listVMHosts(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ monitorName,
+ options
+ },
+ listVMHostsOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary Sending request to update the collection when Logz.io agent has been installed on a VM
+ * for a given monitor.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listVmHostUpdateNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listVmHostUpdateNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listVmHostUpdateNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listVmHostUpdateNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listVmHostUpdateNextOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary List the compute resources currently being monitored by the Logz main account resource.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listVMHostsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listVMHostsNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listVMHostsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listVMHostsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listVMHostsNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const vMHostPayloadOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/vmHostPayload",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.monitorName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.VMExtensionPayload
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listVmHostUpdateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/vmHostUpdate",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.monitorName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: [
+ "options",
+ "body"
+ ],
+ mapper: Mappers.VMHostUpdateRequest
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.VMResourcesListResponse
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listVMHostsOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/listVMHosts",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.monitorName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.VMResourcesListResponse
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listVmHostUpdateNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.VMResourcesListResponse
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listVMHostsNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.VMResourcesListResponse
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
diff --git a/sdk/logz/arm-logz/src/operations/monitors.ts b/sdk/logz/arm-logz/src/operations/monitors.ts
new file mode 100644
index 000000000000..17b477bacc31
--- /dev/null
+++ b/sdk/logz/arm-logz/src/operations/monitors.ts
@@ -0,0 +1,710 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+import * as msRestAzure from "@azure/ms-rest-azure-js";
+import * as Models from "../models";
+import * as Mappers from "../models/monitorsMappers";
+import * as Parameters from "../models/parameters";
+import { MicrosoftLogzContext } from "../microsoftLogzContext";
+
+/** Class representing a Monitors. */
+export class Monitors {
+ private readonly client: MicrosoftLogzContext;
+
+ /**
+ * Create a Monitors.
+ * @param {MicrosoftLogzContext} client Reference to the service client.
+ */
+ constructor(client: MicrosoftLogzContext) {
+ this.client = client;
+ }
+
+ /**
+ * @summary List the resources currently being monitored by the Logz monitor resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listMonitoredResources(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param callback The callback
+ */
+ listMonitoredResources(resourceGroupName: string, monitorName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listMonitoredResources(resourceGroupName: string, monitorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listMonitoredResources(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ monitorName,
+ options
+ },
+ listMonitoredResourcesOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary List all monitors under the specified subscription.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listBySubscription(options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param callback The callback
+ */
+ listBySubscription(callback: msRest.ServiceCallback): void;
+ /**
+ * @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 {
+ return this.client.sendOperationRequest(
+ {
+ options
+ },
+ listBySubscriptionOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary List all monitors under the specified resource group.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param callback The callback
+ */
+ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ options
+ },
+ listByResourceGroupOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary Get the properties of a specific monitor resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ get(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, monitorName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, monitorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ get(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ monitorName,
+ options
+ },
+ getOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary Create a monitor resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ create(resourceGroupName: string, monitorName: string, options?: Models.MonitorsCreateOptionalParams): Promise {
+ return this.beginCreate(resourceGroupName,monitorName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * @summary Update a monitor resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ update(resourceGroupName: string, monitorName: string, options?: Models.MonitorsUpdateOptionalParams): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param callback The callback
+ */
+ update(resourceGroupName: string, monitorName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ update(resourceGroupName: string, monitorName: string, options: Models.MonitorsUpdateOptionalParams, callback: msRest.ServiceCallback): void;
+ update(resourceGroupName: string, monitorName: string, options?: Models.MonitorsUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ monitorName,
+ options
+ },
+ updateOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary Delete a monitor resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ deleteMethod(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginDeleteMethod(resourceGroupName,monitorName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * @summary List the user's roles configured on Logz.io side for the account corresponding to the
+ * monitor resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listUserRoles(resourceGroupName: string, monitorName: string, options?: Models.MonitorsListUserRolesOptionalParams): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param callback The callback
+ */
+ listUserRoles(resourceGroupName: string, monitorName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listUserRoles(resourceGroupName: string, monitorName: string, options: Models.MonitorsListUserRolesOptionalParams, callback: msRest.ServiceCallback): void;
+ listUserRoles(resourceGroupName: string, monitorName: string, options?: Models.MonitorsListUserRolesOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ monitorName,
+ options
+ },
+ listUserRolesOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary Create a monitor resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginCreate(resourceGroupName: string, monitorName: string, options?: Models.MonitorsBeginCreateOptionalParams): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ monitorName,
+ options
+ },
+ beginCreateOperationSpec,
+ options);
+ }
+
+ /**
+ * @summary Delete a monitor resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginDeleteMethod(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ monitorName,
+ options
+ },
+ beginDeleteMethodOperationSpec,
+ options);
+ }
+
+ /**
+ * @summary List the resources currently being monitored by the Logz monitor resource.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listMonitoredResourcesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listMonitoredResourcesNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listMonitoredResourcesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listMonitoredResourcesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listMonitoredResourcesNextOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary List all monitors under the specified subscription.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listBySubscriptionNextOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary List all monitors under the specified resource group.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listByResourceGroupNextOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary List the user's roles configured on Logz.io side for the account corresponding to the
+ * monitor resource.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listUserRolesNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listUserRolesNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listUserRolesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listUserRolesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listUserRolesNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const listMonitoredResourcesOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/listMonitoredResources",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.monitorName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.MonitoredResourceListResponse
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listBySubscriptionOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/providers/Microsoft.Logz/monitors",
+ urlParameters: [
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.LogzMonitorResourceListResponse
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listByResourceGroupOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.LogzMonitorResourceListResponse
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const getOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.monitorName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.LogzMonitorResource
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const updateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PATCH",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.monitorName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: [
+ "options",
+ "body"
+ ],
+ mapper: Mappers.LogzMonitorResourceUpdateParameters
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.LogzMonitorResource
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listUserRolesOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/listUserRoles",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.monitorName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: {
+ emailAddress: [
+ "options",
+ "emailAddress"
+ ]
+ },
+ mapper: Mappers.UserRoleRequest
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.UserRoleListResponse
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const beginCreateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PUT",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.monitorName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: [
+ "options",
+ "body"
+ ],
+ mapper: Mappers.LogzMonitorResource
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.LogzMonitorResource
+ },
+ 201: {
+ bodyMapper: Mappers.LogzMonitorResource
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
+ httpMethod: "DELETE",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.monitorName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ headersMapper: Mappers.MonitorsDeleteHeaders
+ },
+ 202: {
+ headersMapper: Mappers.MonitorsDeleteHeaders
+ },
+ 204: {
+ headersMapper: Mappers.MonitorsDeleteHeaders
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse,
+ headersMapper: Mappers.MonitorsDeleteHeaders
+ }
+ },
+ serializer
+};
+
+const listMonitoredResourcesNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.MonitoredResourceListResponse
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.LogzMonitorResourceListResponse
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.LogzMonitorResourceListResponse
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listUserRolesNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.UserRoleListResponse
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
diff --git a/sdk/logz/arm-logz/src/operations/operations.ts b/sdk/logz/arm-logz/src/operations/operations.ts
new file mode 100644
index 000000000000..3138e85ac770
--- /dev/null
+++ b/sdk/logz/arm-logz/src/operations/operations.ts
@@ -0,0 +1,119 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+import * as Models from "../models";
+import * as Mappers from "../models/operationsMappers";
+import * as Parameters from "../models/parameters";
+import { MicrosoftLogzContext } from "../microsoftLogzContext";
+
+/** Class representing a Operations. */
+export class Operations {
+ private readonly client: MicrosoftLogzContext;
+
+ /**
+ * Create a Operations.
+ * @param {MicrosoftLogzContext} client Reference to the service client.
+ */
+ constructor(client: MicrosoftLogzContext) {
+ this.client = client;
+ }
+
+ /**
+ * @summary List all operations provided by Microsoft.Logz.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ list(options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param callback The callback
+ */
+ list(callback: msRest.ServiceCallback): void;
+ /**
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ options
+ },
+ listOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary List all operations provided by Microsoft.Logz.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const listOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "providers/Microsoft.Logz/operations",
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.OperationListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.OperationListResult
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
diff --git a/sdk/logz/arm-logz/src/operations/singleSignOn.ts b/sdk/logz/arm-logz/src/operations/singleSignOn.ts
new file mode 100644
index 000000000000..57e2f3edd8eb
--- /dev/null
+++ b/sdk/logz/arm-logz/src/operations/singleSignOn.ts
@@ -0,0 +1,270 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+import * as msRestAzure from "@azure/ms-rest-azure-js";
+import * as Models from "../models";
+import * as Mappers from "../models/singleSignOnMappers";
+import * as Parameters from "../models/parameters";
+import { MicrosoftLogzContext } from "../microsoftLogzContext";
+
+/** Class representing a SingleSignOn. */
+export class SingleSignOn {
+ private readonly client: MicrosoftLogzContext;
+
+ /**
+ * Create a SingleSignOn.
+ * @param {MicrosoftLogzContext} client Reference to the service client.
+ */
+ constructor(client: MicrosoftLogzContext) {
+ this.client = client;
+ }
+
+ /**
+ * @summary List the single sign-on configurations for a given monitor resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ list(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param callback The callback
+ */
+ list(resourceGroupName: string, monitorName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ list(resourceGroupName: string, monitorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ list(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ monitorName,
+ options
+ },
+ listOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary Configures single-sign-on for this resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param configurationName
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ createOrUpdate(resourceGroupName: string, monitorName: string, configurationName: string, options?: Models.SingleSignOnCreateOrUpdateOptionalParams): Promise {
+ return this.beginCreateOrUpdate(resourceGroupName,monitorName,configurationName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * @summary Gets the Logz single sign-on resource for the given Monitor.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param configurationName
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ get(resourceGroupName: string, monitorName: string, configurationName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param configurationName
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, monitorName: string, configurationName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param configurationName
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, monitorName: string, configurationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ get(resourceGroupName: string, monitorName: string, configurationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ monitorName,
+ configurationName,
+ options
+ },
+ getOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary Configures single-sign-on for this resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param configurationName
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginCreateOrUpdate(resourceGroupName: string, monitorName: string, configurationName: string, options?: Models.SingleSignOnBeginCreateOrUpdateOptionalParams): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ monitorName,
+ configurationName,
+ options
+ },
+ beginCreateOrUpdateOperationSpec,
+ options);
+ }
+
+ /**
+ * @summary List the single sign-on configurations for a given monitor resource.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const listOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/singleSignOnConfigurations",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.monitorName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.LogzSingleSignOnResourceListResponse
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const getOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/singleSignOnConfigurations/{configurationName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.monitorName,
+ Parameters.configurationName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.LogzSingleSignOnResource
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PUT",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}/singleSignOnConfigurations/{configurationName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.monitorName,
+ Parameters.configurationName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: [
+ "options",
+ "body"
+ ],
+ mapper: Mappers.LogzSingleSignOnResource
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.LogzSingleSignOnResource
+ },
+ 201: {
+ bodyMapper: Mappers.LogzSingleSignOnResource
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
+
+const listNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.LogzSingleSignOnResourceListResponse
+ },
+ default: {
+ bodyMapper: Mappers.ErrorResponse
+ }
+ },
+ serializer
+};
diff --git a/sdk/logz/arm-logz/src/operations/subAccount.ts b/sdk/logz/arm-logz/src/operations/subAccount.ts
new file mode 100644
index 000000000000..cd7f36083d87
--- /dev/null
+++ b/sdk/logz/arm-logz/src/operations/subAccount.ts
@@ -0,0 +1,819 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+import * as msRestAzure from "@azure/ms-rest-azure-js";
+import * as Models from "../models";
+import * as Mappers from "../models/subAccountMappers";
+import * as Parameters from "../models/parameters";
+import { MicrosoftLogzContext } from "../microsoftLogzContext";
+
+/** Class representing a SubAccount. */
+export class SubAccount {
+ private readonly client: MicrosoftLogzContext;
+
+ /**
+ * Create a SubAccount.
+ * @param {MicrosoftLogzContext} client Reference to the service client.
+ */
+ constructor(client: MicrosoftLogzContext) {
+ this.client = client;
+ }
+
+ /**
+ * @summary List the sub account under a given monitor resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ list(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param callback The callback
+ */
+ list(resourceGroupName: string, monitorName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ list(resourceGroupName: string, monitorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ list(resourceGroupName: string, monitorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ monitorName,
+ options
+ },
+ listOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary Create sub account under a given monitor resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ create(resourceGroupName: string, monitorName: string, subAccountName: string, options?: Models.SubAccountCreateOptionalParams): Promise {
+ return this.beginCreate(resourceGroupName,monitorName,subAccountName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * @summary Get a sub account under a given monitor resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ get(resourceGroupName: string, monitorName: string, subAccountName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, monitorName: string, subAccountName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, monitorName: string, subAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ get(resourceGroupName: string, monitorName: string, subAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ monitorName,
+ subAccountName,
+ options
+ },
+ getOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary Delete a sub account resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ deleteMethod(resourceGroupName: string, monitorName: string, subAccountName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginDeleteMethod(resourceGroupName,monitorName,subAccountName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * @summary Update a monitor resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ update(resourceGroupName: string, monitorName: string, subAccountName: string, options?: Models.SubAccountUpdateOptionalParams): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param callback The callback
+ */
+ update(resourceGroupName: string, monitorName: string, subAccountName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ update(resourceGroupName: string, monitorName: string, subAccountName: string, options: Models.SubAccountUpdateOptionalParams, callback: msRest.ServiceCallback): void;
+ update(resourceGroupName: string, monitorName: string, subAccountName: string, options?: Models.SubAccountUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ monitorName,
+ subAccountName,
+ options
+ },
+ updateOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary List the resources currently being monitored by the Logz sub account resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listMonitoredResources(resourceGroupName: string, monitorName: string, subAccountName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param callback The callback
+ */
+ listMonitoredResources(resourceGroupName: string, monitorName: string, subAccountName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listMonitoredResources(resourceGroupName: string, monitorName: string, subAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listMonitoredResources(resourceGroupName: string, monitorName: string, subAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ monitorName,
+ subAccountName,
+ options
+ },
+ listMonitoredResourcesOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary Returns the payload that needs to be passed as a request for installing Logz.io agent
+ * on a VM.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ vMHostPayload(resourceGroupName: string, monitorName: string, subAccountName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param callback The callback
+ */
+ vMHostPayload(resourceGroupName: string, monitorName: string, subAccountName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ vMHostPayload(resourceGroupName: string, monitorName: string, subAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ vMHostPayload(resourceGroupName: string, monitorName: string, subAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ monitorName,
+ subAccountName,
+ options
+ },
+ vMHostPayloadOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary Sending request to update the collection when Logz.io agent has been installed on a VM
+ * for a given monitor.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listVmHostUpdate(resourceGroupName: string, monitorName: string, subAccountName: string, options?: Models.SubAccountListVmHostUpdateOptionalParams): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param callback The callback
+ */
+ listVmHostUpdate(resourceGroupName: string, monitorName: string, subAccountName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listVmHostUpdate(resourceGroupName: string, monitorName: string, subAccountName: string, options: Models.SubAccountListVmHostUpdateOptionalParams, callback: msRest.ServiceCallback): void;
+ listVmHostUpdate(resourceGroupName: string, monitorName: string, subAccountName: string, options?: Models.SubAccountListVmHostUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ monitorName,
+ subAccountName,
+ options
+ },
+ listVmHostUpdateOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary List the compute resources currently being monitored by the Logz sub account resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listVMHosts(resourceGroupName: string, monitorName: string, subAccountName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param callback The callback
+ */
+ listVMHosts(resourceGroupName: string, monitorName: string, subAccountName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listVMHosts(resourceGroupName: string, monitorName: string, subAccountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listVMHosts(resourceGroupName: string, monitorName: string, subAccountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ monitorName,
+ subAccountName,
+ options
+ },
+ listVMHostsOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * @summary Create sub account under a given monitor resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginCreate(resourceGroupName: string, monitorName: string, subAccountName: string, options?: Models.SubAccountBeginCreateOptionalParams): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ monitorName,
+ subAccountName,
+ options
+ },
+ beginCreateOperationSpec,
+ options);
+ }
+
+ /**
+ * @summary Delete a sub account resource.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param monitorName Monitor resource name
+ * @param subAccountName Sub Account resource name
+ * @param [options] The optional parameters
+ * @returns Promise