diff --git a/lib/services/policyinsightsManagement/LICENSE.txt b/lib/services/policyinsightsManagement/LICENSE.txt index 5431ba98b9..8f3d856145 100644 --- a/lib/services/policyinsightsManagement/LICENSE.txt +++ b/lib/services/policyinsightsManagement/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/lib/services/policyinsightsManagement/lib/models/expressionEvaluationDetails.js b/lib/services/policyinsightsManagement/lib/models/expressionEvaluationDetails.js new file mode 100644 index 0000000000..b62369c1ce --- /dev/null +++ b/lib/services/policyinsightsManagement/lib/models/expressionEvaluationDetails.js @@ -0,0 +1,95 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Evaluation details of policy language expressions. + * + */ +class ExpressionEvaluationDetails { + /** + * Create a ExpressionEvaluationDetails. + * @property {string} [result] Evaluation result. + * @property {string} [expression] Expression evaluated. + * @property {string} [path] Property path if the expression is a field or an + * aliase. + * @property {string} [expressionValue] Value of the expression. + * @property {string} [targetValue] Target value to be compared with the + * expression value. + * @property {string} [operator] Operator to compare the expression value and + * the target value. + */ + constructor() { + } + + /** + * Defines the metadata of ExpressionEvaluationDetails + * + * @returns {object} metadata of ExpressionEvaluationDetails + * + */ + mapper() { + return { + required: false, + serializedName: 'ExpressionEvaluationDetails', + type: { + name: 'Composite', + className: 'ExpressionEvaluationDetails', + modelProperties: { + result: { + required: false, + serializedName: 'result', + type: { + name: 'String' + } + }, + expression: { + required: false, + serializedName: 'expression', + type: { + name: 'String' + } + }, + path: { + required: false, + serializedName: 'path', + type: { + name: 'String' + } + }, + expressionValue: { + required: false, + serializedName: 'expressionValue', + type: { + name: 'String' + } + }, + targetValue: { + required: false, + serializedName: 'targetValue', + type: { + name: 'String' + } + }, + operator: { + required: false, + serializedName: 'operator', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ExpressionEvaluationDetails; diff --git a/lib/services/policyinsightsManagement/lib/models/ifNotExistsEvaluationDetails.js b/lib/services/policyinsightsManagement/lib/models/ifNotExistsEvaluationDetails.js new file mode 100644 index 0000000000..b1c2399294 --- /dev/null +++ b/lib/services/policyinsightsManagement/lib/models/ifNotExistsEvaluationDetails.js @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Evaluation details of IfNotExists effect. + * + */ +class IfNotExistsEvaluationDetails { + /** + * Create a IfNotExistsEvaluationDetails. + * @property {string} [resourceId] ID of the last evaluated resource for + * IfNotExists effect. + * @property {number} [totalResources] Total number of resources to which the + * existence condition is applicable. + */ + constructor() { + } + + /** + * Defines the metadata of IfNotExistsEvaluationDetails + * + * @returns {object} metadata of IfNotExistsEvaluationDetails + * + */ + mapper() { + return { + required: false, + serializedName: 'IfNotExistsEvaluationDetails', + type: { + name: 'Composite', + className: 'IfNotExistsEvaluationDetails', + modelProperties: { + resourceId: { + required: false, + serializedName: 'resourceId', + type: { + name: 'String' + } + }, + totalResources: { + required: false, + serializedName: 'totalResources', + type: { + name: 'Number' + } + } + } + } + }; + } +} + +module.exports = IfNotExistsEvaluationDetails; diff --git a/lib/services/policyinsightsManagement/lib/models/index.d.ts b/lib/services/policyinsightsManagement/lib/models/index.d.ts index baaa07bbb2..825b00ee05 100644 --- a/lib/services/policyinsightsManagement/lib/models/index.d.ts +++ b/lib/services/policyinsightsManagement/lib/models/index.d.ts @@ -420,6 +420,64 @@ export interface PolicyEventsQueryResults { value?: PolicyEvent[]; } +/** + * Evaluation details of policy language expressions. + */ +export interface ExpressionEvaluationDetails { + /** + * Evaluation result. + */ + result?: string; + /** + * Expression evaluated. + */ + expression?: string; + /** + * Property path if the expression is a field or an aliase. + */ + path?: string; + /** + * Value of the expression. + */ + expressionValue?: string; + /** + * Target value to be compared with the expression value. + */ + targetValue?: string; + /** + * Operator to compare the expression value and the target value. + */ + operator?: string; +} + +/** + * Evaluation details of IfNotExists effect. + */ +export interface IfNotExistsEvaluationDetails { + /** + * ID of the last evaluated resource for IfNotExists effect. + */ + resourceId?: string; + /** + * Total number of resources to which the existence condition is applicable. + */ + totalResources?: number; +} + +/** + * Policy evaluation details. + */ +export interface PolicyEvaluationDetails { + /** + * Details of the evaluated expressions. + */ + evaluatedExpressions?: ExpressionEvaluationDetails[]; + /** + * Evaluation details of IfNotExists effect. + */ + ifNotExistsDetails?: IfNotExistsEvaluationDetails; +} + /** * Policy state record. */ @@ -535,6 +593,14 @@ export interface PolicyState { * a policy set. */ policyDefinitionReferenceId?: string; + /** + * Compliance state of the resource. + */ + complianceState?: string; + /** + * Policy evaluation details. + */ + policyEvaluationDetails?: PolicyEvaluationDetails; /** * Describes unknown properties. The value of an unknown property can be of "any" type. */ @@ -748,6 +814,11 @@ export interface QueryOptions { * OData apply expression for aggregations. */ apply?: string; + /** + * The $expand query parameter. For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + */ + expand?: string; } /** diff --git a/lib/services/policyinsightsManagement/lib/models/index.js b/lib/services/policyinsightsManagement/lib/models/index.js index ca8c8f5b31..73039997a1 100644 --- a/lib/services/policyinsightsManagement/lib/models/index.js +++ b/lib/services/policyinsightsManagement/lib/models/index.js @@ -32,6 +32,9 @@ exports.RemediationDeployment = require('./remediationDeployment'); exports.ErrorResponse = require('./errorResponse'); exports.PolicyEvent = require('./policyEvent'); exports.PolicyEventsQueryResults = require('./policyEventsQueryResults'); +exports.ExpressionEvaluationDetails = require('./expressionEvaluationDetails'); +exports.IfNotExistsEvaluationDetails = require('./ifNotExistsEvaluationDetails'); +exports.PolicyEvaluationDetails = require('./policyEvaluationDetails'); exports.PolicyState = require('./policyState'); exports.PolicyStatesQueryResults = require('./policyStatesQueryResults'); exports.SummaryResults = require('./summaryResults'); diff --git a/lib/services/policyinsightsManagement/lib/models/policyEvaluationDetails.js b/lib/services/policyinsightsManagement/lib/models/policyEvaluationDetails.js new file mode 100644 index 0000000000..8859938d01 --- /dev/null +++ b/lib/services/policyinsightsManagement/lib/models/policyEvaluationDetails.js @@ -0,0 +1,75 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +'use strict'; + +/** + * Policy evaluation details. + * + */ +class PolicyEvaluationDetails { + /** + * Create a PolicyEvaluationDetails. + * @property {array} [evaluatedExpressions] Details of the evaluated + * expressions. + * @property {object} [ifNotExistsDetails] Evaluation details of IfNotExists + * effect. + * @property {string} [ifNotExistsDetails.resourceId] ID of the last + * evaluated resource for IfNotExists effect. + * @property {number} [ifNotExistsDetails.totalResources] Total number of + * resources to which the existence condition is applicable. + */ + constructor() { + } + + /** + * Defines the metadata of PolicyEvaluationDetails + * + * @returns {object} metadata of PolicyEvaluationDetails + * + */ + mapper() { + return { + required: false, + serializedName: 'PolicyEvaluationDetails', + type: { + name: 'Composite', + className: 'PolicyEvaluationDetails', + modelProperties: { + evaluatedExpressions: { + required: false, + serializedName: 'evaluatedExpressions', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ExpressionEvaluationDetailsElementType', + type: { + name: 'Composite', + className: 'ExpressionEvaluationDetails' + } + } + } + }, + ifNotExistsDetails: { + required: false, + serializedName: 'ifNotExistsDetails', + type: { + name: 'Composite', + className: 'IfNotExistsEvaluationDetails' + } + } + } + } + }; + } +} + +module.exports = PolicyEvaluationDetails; diff --git a/lib/services/policyinsightsManagement/lib/models/policyState.js b/lib/services/policyinsightsManagement/lib/models/policyState.js index 229b46a885..fa216cbc0f 100644 --- a/lib/services/policyinsightsManagement/lib/models/policyState.js +++ b/lib/services/policyinsightsManagement/lib/models/policyState.js @@ -59,6 +59,17 @@ class PolicyState { * @property {string} [policyDefinitionReferenceId] Reference ID for the * policy definition inside the policy set, if the policy assignment is for a * policy set. + * @property {string} [complianceState] Compliance state of the resource. + * @property {object} [policyEvaluationDetails] Policy evaluation details. + * @property {array} [policyEvaluationDetails.evaluatedExpressions] Details + * of the evaluated expressions. + * @property {object} [policyEvaluationDetails.ifNotExistsDetails] Evaluation + * details of IfNotExists effect. + * @property {string} [policyEvaluationDetails.ifNotExistsDetails.resourceId] + * ID of the last evaluated resource for IfNotExists effect. + * @property {number} + * [policyEvaluationDetails.ifNotExistsDetails.totalResources] Total number + * of resources to which the existence condition is applicable. */ constructor() { } @@ -277,6 +288,21 @@ class PolicyState { type: { name: 'String' } + }, + complianceState: { + required: false, + serializedName: 'complianceState', + type: { + name: 'String' + } + }, + policyEvaluationDetails: { + required: false, + serializedName: 'policyEvaluationDetails', + type: { + name: 'Composite', + className: 'PolicyEvaluationDetails' + } } } } diff --git a/lib/services/policyinsightsManagement/lib/models/queryOptions.js b/lib/services/policyinsightsManagement/lib/models/queryOptions.js index a1d23786c6..491c939f1f 100644 --- a/lib/services/policyinsightsManagement/lib/models/queryOptions.js +++ b/lib/services/policyinsightsManagement/lib/models/queryOptions.js @@ -32,6 +32,8 @@ class QueryOptions { * of the interval to query. When not specified, the service uses request * time. * @property {string} [apply] OData apply expression for aggregations. + * @property {string} [expand] The $expand query parameter. For example, to + * expand policyEvaluationDetails, use $expand=policyEvaluationDetails */ constructor() { } @@ -90,6 +92,12 @@ class QueryOptions { type: { name: 'String' } + }, + expand: { + required: false, + type: { + name: 'String' + } } } } diff --git a/lib/services/policyinsightsManagement/lib/operations/index.d.ts b/lib/services/policyinsightsManagement/lib/operations/index.d.ts index 50a21081e5..458621b5b8 100644 --- a/lib/services/policyinsightsManagement/lib/operations/index.d.ts +++ b/lib/services/policyinsightsManagement/lib/operations/index.d.ts @@ -56,6 +56,10 @@ export interface PolicyTrackedResources { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -102,6 +106,10 @@ export interface PolicyTrackedResources { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -168,6 +176,10 @@ export interface PolicyTrackedResources { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -214,6 +226,10 @@ export interface PolicyTrackedResources { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -282,6 +298,10 @@ export interface PolicyTrackedResources { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -330,6 +350,10 @@ export interface PolicyTrackedResources { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -396,6 +420,10 @@ export interface PolicyTrackedResources { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -442,6 +470,10 @@ export interface PolicyTrackedResources { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -751,6 +783,10 @@ export interface Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -799,6 +835,10 @@ export interface Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -924,6 +964,10 @@ export interface Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -970,6 +1014,10 @@ export interface Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1270,6 +1318,10 @@ export interface Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1318,6 +1370,10 @@ export interface Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1443,6 +1499,10 @@ export interface Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1489,6 +1549,10 @@ export interface Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1791,6 +1855,10 @@ export interface Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1841,6 +1909,10 @@ export interface Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1972,6 +2044,10 @@ export interface Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2020,6 +2096,10 @@ export interface Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2332,6 +2412,10 @@ export interface Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2380,6 +2464,10 @@ export interface Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2505,6 +2593,10 @@ export interface Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2551,6 +2643,10 @@ export interface Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3318,6 +3414,10 @@ export interface PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3364,6 +3464,10 @@ export interface PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3430,6 +3534,10 @@ export interface PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3476,6 +3584,10 @@ export interface PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3544,6 +3656,10 @@ export interface PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3592,6 +3708,10 @@ export interface PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3658,6 +3778,10 @@ export interface PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3704,6 +3828,10 @@ export interface PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3772,6 +3900,10 @@ export interface PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3820,6 +3952,10 @@ export interface PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3888,6 +4024,10 @@ export interface PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3936,6 +4076,10 @@ export interface PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4004,6 +4148,10 @@ export interface PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4052,6 +4200,10 @@ export interface PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4122,6 +4274,10 @@ export interface PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4172,6 +4328,10 @@ export interface PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4310,6 +4470,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4361,6 +4525,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4427,6 +4595,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4473,6 +4645,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4543,6 +4719,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4594,6 +4774,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4660,6 +4844,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4706,6 +4894,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4778,6 +4970,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4831,6 +5027,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4899,6 +5099,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4947,6 +5151,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5017,6 +5225,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5068,6 +5280,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5134,6 +5350,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5180,6 +5400,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5252,6 +5476,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5305,6 +5533,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5373,6 +5605,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5421,6 +5657,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5493,6 +5733,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5546,6 +5790,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5614,6 +5862,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5662,6 +5914,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5734,6 +5990,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5787,6 +6047,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5855,6 +6119,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5903,6 +6171,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5977,6 +6249,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6032,6 +6308,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6102,6 +6382,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6152,6 +6436,10 @@ export interface PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * diff --git a/lib/services/policyinsightsManagement/lib/operations/operations.js b/lib/services/policyinsightsManagement/lib/operations/operations.js index 192b31c5be..b53ab55164 100644 --- a/lib/services/policyinsightsManagement/lib/operations/operations.js +++ b/lib/services/policyinsightsManagement/lib/operations/operations.js @@ -45,7 +45,7 @@ function _list(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-04-04'; + let apiVersion = '2018-07-01-preview'; // Validate try { if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { diff --git a/lib/services/policyinsightsManagement/lib/operations/policyEvents.js b/lib/services/policyinsightsManagement/lib/operations/policyEvents.js index b5ea1a66ad..f4235f3f53 100644 --- a/lib/services/policyinsightsManagement/lib/operations/policyEvents.js +++ b/lib/services/policyinsightsManagement/lib/operations/policyEvents.js @@ -49,6 +49,10 @@ const WebResource = msRest.WebResource; * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -300,6 +304,10 @@ function _listQueryResultsForManagementGroup(managementGroupName, options, callb * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -551,6 +559,10 @@ function _listQueryResultsForSubscription(subscriptionId, options, callback) { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -804,6 +816,10 @@ function _listQueryResultsForResourceGroup(subscriptionId, resourceGroupName, op * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1055,6 +1071,10 @@ function _listQueryResultsForResource(resourceId, options, callback) { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1312,6 +1332,10 @@ function _listQueryResultsForPolicySetDefinition(subscriptionId, policySetDefini * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1569,6 +1593,10 @@ function _listQueryResultsForPolicyDefinition(subscriptionId, policyDefinitionNa * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1828,6 +1856,10 @@ function _listQueryResultsForSubscriptionLevelPolicyAssignment(subscriptionId, p * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2247,6 +2279,10 @@ class PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2305,6 +2341,10 @@ class PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2386,6 +2426,10 @@ class PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2444,6 +2488,10 @@ class PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2527,6 +2575,10 @@ class PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2587,6 +2639,10 @@ class PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2668,6 +2724,10 @@ class PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2726,6 +2786,10 @@ class PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2809,6 +2873,10 @@ class PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2869,6 +2937,10 @@ class PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2952,6 +3024,10 @@ class PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3012,6 +3088,10 @@ class PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3095,6 +3175,10 @@ class PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3155,6 +3239,10 @@ class PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3240,6 +3328,10 @@ class PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3302,6 +3394,10 @@ class PolicyEvents { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * diff --git a/lib/services/policyinsightsManagement/lib/operations/policyStates.js b/lib/services/policyinsightsManagement/lib/operations/policyStates.js index 7e7409dbeb..e431608f7b 100644 --- a/lib/services/policyinsightsManagement/lib/operations/policyStates.js +++ b/lib/services/policyinsightsManagement/lib/operations/policyStates.js @@ -54,6 +54,10 @@ const WebResource = msRest.WebResource; * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -83,7 +87,7 @@ function _listQueryResultsForManagementGroup(policyStatesResource, managementGro } let queryOptions = (options && options.queryOptions !== undefined) ? options.queryOptions : undefined; let managementGroupsNamespace = 'Microsoft.Management'; - let apiVersion = '2018-04-04'; + let apiVersion = '2018-07-01-preview'; // Validate try { if (policyStatesResource === null || policyStatesResource === undefined || typeof policyStatesResource.valueOf() !== 'string') { @@ -307,6 +311,10 @@ function _listQueryResultsForManagementGroup(policyStatesResource, managementGro * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -336,7 +344,7 @@ function _summarizeForManagementGroup(managementGroupName, options, callback) { let queryOptions = (options && options.queryOptions !== undefined) ? options.queryOptions : undefined; let policyStatesSummaryResource = 'latest'; let managementGroupsNamespace = 'Microsoft.Management'; - let apiVersion = '2018-04-04'; + let apiVersion = '2018-07-01-preview'; // Validate try { if (managementGroupName === null || managementGroupName === undefined || typeof managementGroupName.valueOf() !== 'string') { @@ -529,6 +537,10 @@ function _summarizeForManagementGroup(managementGroupName, options, callback) { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -557,7 +569,7 @@ function _listQueryResultsForSubscription(policyStatesResource, subscriptionId, throw new Error('callback cannot be null.'); } let queryOptions = (options && options.queryOptions !== undefined) ? options.queryOptions : undefined; - let apiVersion = '2018-04-04'; + let apiVersion = '2018-07-01-preview'; // Validate try { if (policyStatesResource === null || policyStatesResource === undefined || typeof policyStatesResource.valueOf() !== 'string') { @@ -780,6 +792,10 @@ function _listQueryResultsForSubscription(policyStatesResource, subscriptionId, * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -808,7 +824,7 @@ function _summarizeForSubscription(subscriptionId, options, callback) { } let queryOptions = (options && options.queryOptions !== undefined) ? options.queryOptions : undefined; let policyStatesSummaryResource = 'latest'; - let apiVersion = '2018-04-04'; + let apiVersion = '2018-07-01-preview'; // Validate try { if (subscriptionId === null || subscriptionId === undefined || typeof subscriptionId.valueOf() !== 'string') { @@ -1002,6 +1018,10 @@ function _summarizeForSubscription(subscriptionId, options, callback) { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1030,7 +1050,7 @@ function _listQueryResultsForResourceGroup(policyStatesResource, subscriptionId, throw new Error('callback cannot be null.'); } let queryOptions = (options && options.queryOptions !== undefined) ? options.queryOptions : undefined; - let apiVersion = '2018-04-04'; + let apiVersion = '2018-07-01-preview'; // Validate try { if (policyStatesResource === null || policyStatesResource === undefined || typeof policyStatesResource.valueOf() !== 'string') { @@ -1259,6 +1279,10 @@ function _listQueryResultsForResourceGroup(policyStatesResource, subscriptionId, * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1287,7 +1311,7 @@ function _summarizeForResourceGroup(subscriptionId, resourceGroupName, options, } let queryOptions = (options && options.queryOptions !== undefined) ? options.queryOptions : undefined; let policyStatesSummaryResource = 'latest'; - let apiVersion = '2018-04-04'; + let apiVersion = '2018-07-01-preview'; // Validate try { if (subscriptionId === null || subscriptionId === undefined || typeof subscriptionId.valueOf() !== 'string') { @@ -1483,6 +1507,10 @@ function _summarizeForResourceGroup(subscriptionId, resourceGroupName, options, * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1511,7 +1539,7 @@ function _listQueryResultsForResource(policyStatesResource, resourceId, options, throw new Error('callback cannot be null.'); } let queryOptions = (options && options.queryOptions !== undefined) ? options.queryOptions : undefined; - let apiVersion = '2018-04-04'; + let apiVersion = '2018-07-01-preview'; // Validate try { if (policyStatesResource === null || policyStatesResource === undefined || typeof policyStatesResource.valueOf() !== 'string') { @@ -1533,6 +1561,7 @@ function _listQueryResultsForResource(policyStatesResource, resourceId, options, let to; let filter; let apply; + let expand; try { if (queryOptions !== null && queryOptions !== undefined) { @@ -1585,6 +1614,13 @@ function _listQueryResultsForResource(policyStatesResource, resourceId, options, throw new Error('apply must be of type string.'); } } + if (queryOptions !== null && queryOptions !== undefined) + { + expand = queryOptions.expand; + if (expand !== null && expand !== undefined && typeof expand.valueOf() !== 'string') { + throw new Error('expand must be of type string.'); + } + } } catch (error) { return callback(error); } @@ -1617,6 +1653,9 @@ function _listQueryResultsForResource(policyStatesResource, resourceId, options, if (apply !== null && apply !== undefined) { queryParameters.push('$apply=' + encodeURIComponent(apply)); } + if (expand !== null && expand !== undefined) { + queryParameters.push('$expand=' + encodeURIComponent(expand)); + } if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -1734,6 +1773,10 @@ function _listQueryResultsForResource(policyStatesResource, resourceId, options, * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1762,7 +1805,7 @@ function _summarizeForResource(resourceId, options, callback) { } let queryOptions = (options && options.queryOptions !== undefined) ? options.queryOptions : undefined; let policyStatesSummaryResource = 'latest'; - let apiVersion = '2018-04-04'; + let apiVersion = '2018-07-01-preview'; // Validate try { if (resourceId === null || resourceId === undefined || typeof resourceId.valueOf() !== 'string') { @@ -1956,6 +1999,10 @@ function _summarizeForResource(resourceId, options, callback) { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1985,7 +2032,7 @@ function _listQueryResultsForPolicySetDefinition(policyStatesResource, subscript } let queryOptions = (options && options.queryOptions !== undefined) ? options.queryOptions : undefined; let authorizationNamespace = 'Microsoft.Authorization'; - let apiVersion = '2018-04-04'; + let apiVersion = '2018-07-01-preview'; // Validate try { if (policyStatesResource === null || policyStatesResource === undefined || typeof policyStatesResource.valueOf() !== 'string') { @@ -2215,6 +2262,10 @@ function _listQueryResultsForPolicySetDefinition(policyStatesResource, subscript * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2244,7 +2295,7 @@ function _summarizeForPolicySetDefinition(subscriptionId, policySetDefinitionNam let queryOptions = (options && options.queryOptions !== undefined) ? options.queryOptions : undefined; let policyStatesSummaryResource = 'latest'; let authorizationNamespace = 'Microsoft.Authorization'; - let apiVersion = '2018-04-04'; + let apiVersion = '2018-07-01-preview'; // Validate try { if (subscriptionId === null || subscriptionId === undefined || typeof subscriptionId.valueOf() !== 'string') { @@ -2443,6 +2494,10 @@ function _summarizeForPolicySetDefinition(subscriptionId, policySetDefinitionNam * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2472,7 +2527,7 @@ function _listQueryResultsForPolicyDefinition(policyStatesResource, subscription } let queryOptions = (options && options.queryOptions !== undefined) ? options.queryOptions : undefined; let authorizationNamespace = 'Microsoft.Authorization'; - let apiVersion = '2018-04-04'; + let apiVersion = '2018-07-01-preview'; // Validate try { if (policyStatesResource === null || policyStatesResource === undefined || typeof policyStatesResource.valueOf() !== 'string') { @@ -2702,6 +2757,10 @@ function _listQueryResultsForPolicyDefinition(policyStatesResource, subscription * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2731,7 +2790,7 @@ function _summarizeForPolicyDefinition(subscriptionId, policyDefinitionName, opt let queryOptions = (options && options.queryOptions !== undefined) ? options.queryOptions : undefined; let policyStatesSummaryResource = 'latest'; let authorizationNamespace = 'Microsoft.Authorization'; - let apiVersion = '2018-04-04'; + let apiVersion = '2018-07-01-preview'; // Validate try { if (subscriptionId === null || subscriptionId === undefined || typeof subscriptionId.valueOf() !== 'string') { @@ -2930,6 +2989,10 @@ function _summarizeForPolicyDefinition(subscriptionId, policyDefinitionName, opt * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2959,7 +3022,7 @@ function _listQueryResultsForSubscriptionLevelPolicyAssignment(policyStatesResou } let queryOptions = (options && options.queryOptions !== undefined) ? options.queryOptions : undefined; let authorizationNamespace = 'Microsoft.Authorization'; - let apiVersion = '2018-04-04'; + let apiVersion = '2018-07-01-preview'; // Validate try { if (policyStatesResource === null || policyStatesResource === undefined || typeof policyStatesResource.valueOf() !== 'string') { @@ -3189,6 +3252,10 @@ function _listQueryResultsForSubscriptionLevelPolicyAssignment(policyStatesResou * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3218,7 +3285,7 @@ function _summarizeForSubscriptionLevelPolicyAssignment(subscriptionId, policyAs let queryOptions = (options && options.queryOptions !== undefined) ? options.queryOptions : undefined; let policyStatesSummaryResource = 'latest'; let authorizationNamespace = 'Microsoft.Authorization'; - let apiVersion = '2018-04-04'; + let apiVersion = '2018-07-01-preview'; // Validate try { if (subscriptionId === null || subscriptionId === undefined || typeof subscriptionId.valueOf() !== 'string') { @@ -3419,6 +3486,10 @@ function _summarizeForSubscriptionLevelPolicyAssignment(subscriptionId, policyAs * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3448,7 +3519,7 @@ function _listQueryResultsForResourceGroupLevelPolicyAssignment(policyStatesReso } let queryOptions = (options && options.queryOptions !== undefined) ? options.queryOptions : undefined; let authorizationNamespace = 'Microsoft.Authorization'; - let apiVersion = '2018-04-04'; + let apiVersion = '2018-07-01-preview'; // Validate try { if (policyStatesResource === null || policyStatesResource === undefined || typeof policyStatesResource.valueOf() !== 'string') { @@ -3684,6 +3755,10 @@ function _listQueryResultsForResourceGroupLevelPolicyAssignment(policyStatesReso * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3713,7 +3788,7 @@ function _summarizeForResourceGroupLevelPolicyAssignment(subscriptionId, resourc let queryOptions = (options && options.queryOptions !== undefined) ? options.queryOptions : undefined; let policyStatesSummaryResource = 'latest'; let authorizationNamespace = 'Microsoft.Authorization'; - let apiVersion = '2018-04-04'; + let apiVersion = '2018-07-01-preview'; // Validate try { if (subscriptionId === null || subscriptionId === undefined || typeof subscriptionId.valueOf() !== 'string') { @@ -3908,7 +3983,7 @@ function _getMetadata(scope, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2018-04-04'; + let apiVersion = '2018-07-01-preview'; // Validate try { if (scope === null || scope === undefined || typeof scope.valueOf() !== 'string') { @@ -4082,6 +4157,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4145,6 +4224,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4226,6 +4309,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4284,6 +4371,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4369,6 +4460,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4432,6 +4527,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4513,6 +4612,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4571,6 +4674,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4658,6 +4765,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4723,6 +4834,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4806,6 +4921,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4866,6 +4985,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -4951,6 +5074,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5014,6 +5141,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5095,6 +5226,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5153,6 +5288,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5240,6 +5379,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5305,6 +5448,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5388,6 +5535,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5448,6 +5599,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5535,6 +5690,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5600,6 +5759,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5683,6 +5846,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5743,6 +5910,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5830,6 +6001,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5895,6 +6070,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5978,6 +6157,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6038,6 +6221,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6127,6 +6314,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6194,6 +6385,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6279,6 +6474,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6341,6 +6540,10 @@ class PolicyStates { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * diff --git a/lib/services/policyinsightsManagement/lib/operations/policyTrackedResources.js b/lib/services/policyinsightsManagement/lib/operations/policyTrackedResources.js index ca441c27ff..df6648cebf 100644 --- a/lib/services/policyinsightsManagement/lib/operations/policyTrackedResources.js +++ b/lib/services/policyinsightsManagement/lib/operations/policyTrackedResources.js @@ -49,6 +49,10 @@ const WebResource = msRest.WebResource; * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -243,6 +247,10 @@ function _listQueryResultsForManagementGroup(managementGroupName, options, callb * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -437,6 +445,10 @@ function _listQueryResultsForSubscription(subscriptionId, options, callback) { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -633,6 +645,10 @@ function _listQueryResultsForResourceGroup(resourceGroupName, subscriptionId, op * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1359,6 +1375,10 @@ class PolicyTrackedResources { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1417,6 +1437,10 @@ class PolicyTrackedResources { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1498,6 +1522,10 @@ class PolicyTrackedResources { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1556,6 +1584,10 @@ class PolicyTrackedResources { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1639,6 +1671,10 @@ class PolicyTrackedResources { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1699,6 +1735,10 @@ class PolicyTrackedResources { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1780,6 +1820,10 @@ class PolicyTrackedResources { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1838,6 +1882,10 @@ class PolicyTrackedResources { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * diff --git a/lib/services/policyinsightsManagement/lib/operations/remediations.js b/lib/services/policyinsightsManagement/lib/operations/remediations.js index ba29be735b..e03a6ccb54 100644 --- a/lib/services/policyinsightsManagement/lib/operations/remediations.js +++ b/lib/services/policyinsightsManagement/lib/operations/remediations.js @@ -51,6 +51,10 @@ const WebResource = msRest.WebResource; * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -378,6 +382,10 @@ function _cancelAtManagementGroup(managementGroupId, remediationName, options, c * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1059,6 +1067,10 @@ function _deleteAtManagementGroup(managementGroupId, remediationName, options, c * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -1382,6 +1394,10 @@ function _cancelAtSubscription(subscriptionId, remediationName, options, callbac * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2057,6 +2073,10 @@ function _deleteAtSubscription(subscriptionId, remediationName, options, callbac * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -2392,6 +2412,10 @@ function _cancelAtResourceGroup(subscriptionId, resourceGroupName, remediationNa * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3087,6 +3111,10 @@ function _deleteAtResourceGroup(subscriptionId, resourceGroupName, remediationNa * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -3410,6 +3438,10 @@ function _cancelAtResource(resourceId, remediationName, options, callback) { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5153,6 +5185,10 @@ class Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5213,6 +5249,10 @@ class Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5380,6 +5420,10 @@ class Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5438,6 +5482,10 @@ class Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5834,6 +5882,10 @@ class Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5894,6 +5946,10 @@ class Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6061,6 +6117,10 @@ class Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6119,6 +6179,10 @@ class Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6517,6 +6581,10 @@ class Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6579,6 +6647,10 @@ class Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6752,6 +6824,10 @@ class Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6812,6 +6888,10 @@ class Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -7220,6 +7300,10 @@ class Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -7280,6 +7364,10 @@ class Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -7447,6 +7535,10 @@ class Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -7505,6 +7597,10 @@ class Remediations { * @param {string} [options.queryOptions.apply] OData apply expression for * aggregations. * + * @param {string} [options.queryOptions.expand] The $expand query parameter. + * For example, to expand policyEvaluationDetails, use + * $expand=policyEvaluationDetails + * * @param {object} [options.customHeaders] Headers that will be added to the * request *