diff --git a/sdk/policyinsights/arm-policyinsights/README.md b/sdk/policyinsights/arm-policyinsights/README.md index 5657fbc25a19..6e4136a878bc 100644 --- a/sdk/policyinsights/arm-policyinsights/README.md +++ b/sdk/policyinsights/arm-policyinsights/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-policyinsights ### How to use -#### nodejs - Authentication, client creation and listForManagementGroup remediations as an example written in TypeScript. +#### nodejs - client creation and listForManagementGroup remediations as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { PolicyInsightsClient, PolicyInsightsModels, PolicyInsightsMappers } from "@azure/arm-policyinsights"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { PolicyInsightsClient } = require("@azure/arm-policyinsights"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { diff --git a/sdk/policyinsights/arm-policyinsights/rollup.config.js b/sdk/policyinsights/arm-policyinsights/rollup.config.js index b2e84583edf8..7ff1dc95eeb3 100644 --- a/sdk/policyinsights/arm-policyinsights/rollup.config.js +++ b/sdk/policyinsights/arm-policyinsights/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/policyinsights/arm-policyinsights/src/models/index.ts b/sdk/policyinsights/arm-policyinsights/src/models/index.ts index 091f0a349986..57d1668e10b9 100644 --- a/sdk/policyinsights/arm-policyinsights/src/models/index.ts +++ b/sdk/policyinsights/arm-policyinsights/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -313,6 +313,45 @@ export interface ErrorResponse { error?: ErrorDefinition; } +/** + * Component event details. + */ +export interface ComponentEventDetails { + /** + * Component Id. + */ + id?: string; + /** + * Component type. + */ + type?: string; + /** + * Component name. + */ + name?: string; + /** + * Timestamp for component policy event record. + */ + timestamp?: Date; + /** + * Tenant ID for the policy event record. + */ + tenantId?: string; + /** + * Principal object ID for the user who initiated the resource component operation that triggered + * the policy event. + */ + principalOid?: string; + /** + * Policy definition action, i.e. effect. + */ + policyDefinitionAction?: string; + /** + * Describes unknown properties. The value of an unknown property can be of "any" type. + */ + [property: string]: any; +} + /** * Policy event record. */ @@ -428,6 +467,10 @@ export interface PolicyEvent { * a policy set. */ policyDefinitionReferenceId?: string; + /** + * Compliance state of the resource. + */ + complianceState?: string; /** * Tenant ID for the policy event record. */ @@ -438,27 +481,13 @@ export interface PolicyEvent { */ principalOid?: string; /** - * Describes unknown properties. The value of an unknown property can be of "any" type. + * Components events records populated only when URL contains $expand=components clause. */ - [property: string]: any; -} - -/** - * Query results. - */ -export interface PolicyEventsQueryResults { - /** - * OData context string; used by OData clients to resolve type information based on metadata. - */ - odatacontext?: string; + components?: ComponentEventDetails[]; /** - * OData entity count; represents the number of policy event records returned. - */ - odatacount?: number; - /** - * Query results. + * Describes unknown properties. The value of an unknown property can be of "any" type. */ - value?: PolicyEvent[]; + [property: string]: any; } /** @@ -519,6 +548,36 @@ export interface PolicyEvaluationDetails { ifNotExistsDetails?: IfNotExistsEvaluationDetails; } +/** + * Component state details. + */ +export interface ComponentStateDetails { + /** + * Component Id. + */ + id?: string; + /** + * Component type. + */ + type?: string; + /** + * Component name. + */ + name?: string; + /** + * Component compliance evaluation timestamp. + */ + timestamp?: Date; + /** + * Component compliance state. + */ + complianceState?: string; + /** + * Describes unknown properties. The value of an unknown property can be of "any" type. + */ + [property: string]: any; +} + /** * Policy state record. */ @@ -646,6 +705,11 @@ export interface PolicyState { * Policy definition group names. */ policyDefinitionGroupNames?: string[]; + /** + * Components state compliance records populated only when URL contains $expand=components + * clause. + */ + components?: ComponentStateDetails[]; /** * Evaluated policy definition version. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -667,24 +731,6 @@ export interface PolicyState { [property: string]: any; } -/** - * Query results. - */ -export interface PolicyStatesQueryResults { - /** - * OData context string; used by OData clients to resolve type information based on metadata. - */ - odatacontext?: string; - /** - * OData entity count; represents the number of policy state records returned. - */ - odatacount?: number; - /** - * Query results. - */ - value?: PolicyState[]; -} - /** * The compliance state rollup. */ @@ -1037,8 +1083,12 @@ export interface QueryOptions { */ apply?: string; /** - * The $expand query parameter. For example, to expand policyEvaluationDetails, use - * $expand=policyEvaluationDetails + * Skiptoken is only provided if a previous response returned a partial result as a part of + * nextLink element. + */ + skipToken?: string; + /** + * The $expand query parameter. For example, to expand components use $expand=components */ expand?: string; } @@ -1459,6 +1509,46 @@ export interface RemediationListResult extends Array { readonly nextLink?: string; } +/** + * @interface + * Query results. + * @extends Array + */ +export interface PolicyEventsQueryResults extends Array { + /** + * OData context string; used by OData clients to resolve type information based on metadata. + */ + odatacontext?: string; + /** + * OData entity count; represents the number of policy event records returned. + */ + odatacount?: number; + /** + * Odata next link; URL to get the next set of results. + */ + odatanextLink?: string; +} + +/** + * @interface + * Query results. + * @extends Array + */ +export interface PolicyStatesQueryResults extends Array { + /** + * OData context string; used by OData clients to resolve type information based on metadata. + */ + odatacontext?: string; + /** + * OData entity count; represents the number of policy state records returned. + */ + odatacount?: number; + /** + * Odata next link; URL to get the next set of results. + */ + odatanextLink?: string; +} + /** * @interface * Collection of policy metadata resources. @@ -2449,14 +2539,151 @@ export type PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentRes }; /** - * Contains response data for the getMetadata operation. + * Contains response data for the listQueryResultsForManagementGroupNext operation. + */ +export type PolicyEventsListQueryResultsForManagementGroupNextResponse = PolicyEventsQueryResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyEventsQueryResults; + }; +}; + +/** + * Contains response data for the listQueryResultsForSubscriptionNext operation. + */ +export type PolicyEventsListQueryResultsForSubscriptionNextResponse = PolicyEventsQueryResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyEventsQueryResults; + }; +}; + +/** + * Contains response data for the listQueryResultsForResourceGroupNext operation. + */ +export type PolicyEventsListQueryResultsForResourceGroupNextResponse = PolicyEventsQueryResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyEventsQueryResults; + }; +}; + +/** + * Contains response data for the listQueryResultsForResourceNext operation. + */ +export type PolicyEventsListQueryResultsForResourceNextResponse = PolicyEventsQueryResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyEventsQueryResults; + }; +}; + +/** + * Contains response data for the listQueryResultsForPolicySetDefinitionNext operation. + */ +export type PolicyEventsListQueryResultsForPolicySetDefinitionNextResponse = PolicyEventsQueryResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyEventsQueryResults; + }; +}; + +/** + * Contains response data for the listQueryResultsForPolicyDefinitionNext operation. + */ +export type PolicyEventsListQueryResultsForPolicyDefinitionNextResponse = PolicyEventsQueryResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyEventsQueryResults; + }; +}; + +/** + * Contains response data for the listQueryResultsForSubscriptionLevelPolicyAssignmentNext + * operation. */ -export type PolicyEventsGetMetadataResponse = { +export type PolicyEventsListQueryResultsForSubscriptionLevelPolicyAssignmentNextResponse = PolicyEventsQueryResults & { /** - * The parsed response body. + * The underlying HTTP response. */ - body: string; + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyEventsQueryResults; + }; +}; +/** + * Contains response data for the listQueryResultsForResourceGroupLevelPolicyAssignmentNext + * operation. + */ +export type PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentNextResponse = PolicyEventsQueryResults & { /** * The underlying HTTP response. */ @@ -2469,7 +2696,7 @@ export type PolicyEventsGetMetadataResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: string; + parsedBody: PolicyEventsQueryResults; }; }; @@ -2793,6 +3020,168 @@ export type PolicyStatesSummarizeForResourceGroupLevelPolicyAssignmentResponse = }; }; +/** + * Contains response data for the listQueryResultsForManagementGroupNext operation. + */ +export type PolicyStatesListQueryResultsForManagementGroupNextResponse = PolicyStatesQueryResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyStatesQueryResults; + }; +}; + +/** + * Contains response data for the listQueryResultsForSubscriptionNext operation. + */ +export type PolicyStatesListQueryResultsForSubscriptionNextResponse = PolicyStatesQueryResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyStatesQueryResults; + }; +}; + +/** + * Contains response data for the listQueryResultsForResourceGroupNext operation. + */ +export type PolicyStatesListQueryResultsForResourceGroupNextResponse = PolicyStatesQueryResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyStatesQueryResults; + }; +}; + +/** + * Contains response data for the listQueryResultsForResourceNext operation. + */ +export type PolicyStatesListQueryResultsForResourceNextResponse = PolicyStatesQueryResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyStatesQueryResults; + }; +}; + +/** + * Contains response data for the listQueryResultsForPolicySetDefinitionNext operation. + */ +export type PolicyStatesListQueryResultsForPolicySetDefinitionNextResponse = PolicyStatesQueryResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyStatesQueryResults; + }; +}; + +/** + * Contains response data for the listQueryResultsForPolicyDefinitionNext operation. + */ +export type PolicyStatesListQueryResultsForPolicyDefinitionNextResponse = PolicyStatesQueryResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyStatesQueryResults; + }; +}; + +/** + * Contains response data for the listQueryResultsForSubscriptionLevelPolicyAssignmentNext + * operation. + */ +export type PolicyStatesListQueryResultsForSubscriptionLevelPolicyAssignmentNextResponse = PolicyStatesQueryResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyStatesQueryResults; + }; +}; + +/** + * Contains response data for the listQueryResultsForResourceGroupLevelPolicyAssignmentNext + * operation. + */ +export type PolicyStatesListQueryResultsForResourceGroupLevelPolicyAssignmentNextResponse = PolicyStatesQueryResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyStatesQueryResults; + }; +}; + /** * Contains response data for the list operation. */ diff --git a/sdk/policyinsights/arm-policyinsights/src/models/mappers.ts b/sdk/policyinsights/arm-policyinsights/src/models/mappers.ts index 909fcae126c3..940810fdde6d 100644 --- a/sdk/policyinsights/arm-policyinsights/src/models/mappers.ts +++ b/sdk/policyinsights/arm-policyinsights/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -480,6 +480,63 @@ export const ErrorResponse: msRest.CompositeMapper = { } }; +export const ComponentEventDetails: msRest.CompositeMapper = { + serializedName: "ComponentEventDetails", + type: { + name: "Composite", + className: "ComponentEventDetails", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + timestamp: { + serializedName: "timestamp", + type: { + name: "DateTime" + } + }, + tenantId: { + serializedName: "tenantId", + type: { + name: "String" + } + }, + principalOid: { + serializedName: "principalOid", + type: { + name: "String" + } + }, + policyDefinitionAction: { + serializedName: "policyDefinitionAction", + type: { + name: "String" + } + } + }, + additionalProperties: { + type: { + name: "Object" + } + } + } +}; + export const PolicyEvent: msRest.CompositeMapper = { serializedName: "PolicyEvent", type: { @@ -648,6 +705,12 @@ export const PolicyEvent: msRest.CompositeMapper = { name: "String" } }, + complianceState: { + serializedName: "complianceState", + type: { + name: "String" + } + }, tenantId: { serializedName: "tenantId", type: { @@ -659,45 +722,15 @@ export const PolicyEvent: msRest.CompositeMapper = { type: { name: "String" } - } - }, - additionalProperties: { - type: { - name: "Object" - } - } - } -}; - -export const PolicyEventsQueryResults: msRest.CompositeMapper = { - serializedName: "PolicyEventsQueryResults", - type: { - name: "Composite", - className: "PolicyEventsQueryResults", - modelProperties: { - odatacontext: { - serializedName: "@odata\\.context", - type: { - name: "String" - } }, - odatacount: { - serializedName: "@odata\\.count", - constraints: { - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - value: { - serializedName: "value", + components: { + serializedName: "components", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PolicyEvent", + className: "ComponentEventDetails", additionalProperties: { type: { name: "Object" @@ -707,6 +740,11 @@ export const PolicyEventsQueryResults: msRest.CompositeMapper = { } } } + }, + additionalProperties: { + type: { + name: "Object" + } } } }; @@ -808,6 +846,51 @@ export const PolicyEvaluationDetails: msRest.CompositeMapper = { } }; +export const ComponentStateDetails: msRest.CompositeMapper = { + serializedName: "ComponentStateDetails", + type: { + name: "Composite", + className: "ComponentStateDetails", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + timestamp: { + serializedName: "timestamp", + type: { + name: "DateTime" + } + }, + complianceState: { + serializedName: "complianceState", + type: { + name: "String" + } + } + }, + additionalProperties: { + type: { + name: "Object" + } + } + } +}; + export const PolicyState: msRest.CompositeMapper = { serializedName: "PolicyState", type: { @@ -1000,6 +1083,23 @@ export const PolicyState: msRest.CompositeMapper = { } } }, + components: { + serializedName: "components", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComponentStateDetails", + additionalProperties: { + type: { + name: "Object" + } + } + } + } + } + }, policyDefinitionVersion: { readOnly: true, serializedName: "policyDefinitionVersion", @@ -1030,48 +1130,6 @@ export const PolicyState: msRest.CompositeMapper = { } }; -export const PolicyStatesQueryResults: msRest.CompositeMapper = { - serializedName: "PolicyStatesQueryResults", - type: { - name: "Composite", - className: "PolicyStatesQueryResults", - modelProperties: { - odatacontext: { - serializedName: "@odata\\.context", - type: { - name: "String" - } - }, - odatacount: { - serializedName: "@odata\\.count", - constraints: { - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PolicyState", - additionalProperties: { - type: { - name: "Object" - } - } - } - } - } - } - } - } -}; - export const ComplianceDetail: msRest.CompositeMapper = { serializedName: "ComplianceDetail", type: { @@ -1653,6 +1711,11 @@ export const QueryOptions: msRest.CompositeMapper = { name: "String" } }, + skipToken: { + type: { + name: "String" + } + }, expand: { type: { name: "String" @@ -1752,6 +1815,102 @@ export const RemediationListResult: msRest.CompositeMapper = { } }; +export const PolicyEventsQueryResults: msRest.CompositeMapper = { + serializedName: "PolicyEventsQueryResults", + type: { + name: "Composite", + className: "PolicyEventsQueryResults", + modelProperties: { + odatacontext: { + serializedName: "@odata\\.context", + type: { + name: "String" + } + }, + odatacount: { + serializedName: "@odata\\.count", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + odatanextLink: { + serializedName: "@odata\\.nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicyEvent", + additionalProperties: { + type: { + name: "Object" + } + } + } + } + } + } + } + } +}; + +export const PolicyStatesQueryResults: msRest.CompositeMapper = { + serializedName: "PolicyStatesQueryResults", + type: { + name: "Composite", + className: "PolicyStatesQueryResults", + modelProperties: { + odatacontext: { + serializedName: "@odata\\.context", + type: { + name: "String" + } + }, + odatacount: { + serializedName: "@odata\\.count", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + odatanextLink: { + serializedName: "@odata\\.nextLink", + type: { + name: "String" + } + }, + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicyState", + additionalProperties: { + type: { + name: "Object" + } + } + } + } + } + } + } + } +}; + export const PolicyMetadataCollection: msRest.CompositeMapper = { serializedName: "PolicyMetadataCollection", type: { diff --git a/sdk/policyinsights/arm-policyinsights/src/models/operationsMappers.ts b/sdk/policyinsights/arm-policyinsights/src/models/operationsMappers.ts index bb2ed8c329be..6ffbd6a5e379 100644 --- a/sdk/policyinsights/arm-policyinsights/src/models/operationsMappers.ts +++ b/sdk/policyinsights/arm-policyinsights/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/policyinsights/arm-policyinsights/src/models/parameters.ts b/sdk/policyinsights/arm-policyinsights/src/models/parameters.ts index 759b127fd2da..7445618f3b52 100644 --- a/sdk/policyinsights/arm-policyinsights/src/models/parameters.ts +++ b/sdk/policyinsights/arm-policyinsights/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -45,18 +44,6 @@ export const apiVersion1: msRest.OperationQueryParameter = { } }; export const apiVersion2: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2018-04-04', - type: { - name: "String" - } - } -}; -export const apiVersion3: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, @@ -306,25 +293,27 @@ export const resourceName: msRest.OperationURLParameter = { }, skipEncoding: true }; -export const scope: msRest.OperationURLParameter = { - parameterPath: "scope", +export const select: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "queryOptions", + "select" + ], mapper: { - required: true, - serializedName: "scope", + serializedName: "$select", type: { name: "String" } - }, - skipEncoding: true + } }; -export const select: msRest.OperationQueryParameter = { +export const skipToken: msRest.OperationQueryParameter = { parameterPath: [ "options", "queryOptions", - "select" + "skipToken" ], mapper: { - serializedName: "$select", + serializedName: "$skiptoken", type: { name: "String" } diff --git a/sdk/policyinsights/arm-policyinsights/src/models/policyEventsMappers.ts b/sdk/policyinsights/arm-policyinsights/src/models/policyEventsMappers.ts index 52e0196d1a79..4ca299f43fe0 100644 --- a/sdk/policyinsights/arm-policyinsights/src/models/policyEventsMappers.ts +++ b/sdk/policyinsights/arm-policyinsights/src/models/policyEventsMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + ComponentEventDetails, PolicyEvent, PolicyEventsQueryResults, QueryFailure, diff --git a/sdk/policyinsights/arm-policyinsights/src/models/policyMetadataOperationsMappers.ts b/sdk/policyinsights/arm-policyinsights/src/models/policyMetadataOperationsMappers.ts index 2fc27718cd64..68820531d620 100644 --- a/sdk/policyinsights/arm-policyinsights/src/models/policyMetadataOperationsMappers.ts +++ b/sdk/policyinsights/arm-policyinsights/src/models/policyMetadataOperationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/policyinsights/arm-policyinsights/src/models/policyStatesMappers.ts b/sdk/policyinsights/arm-policyinsights/src/models/policyStatesMappers.ts index 106f475069c2..6f4233b0fa5f 100644 --- a/sdk/policyinsights/arm-policyinsights/src/models/policyStatesMappers.ts +++ b/sdk/policyinsights/arm-policyinsights/src/models/policyStatesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,6 +8,7 @@ export { ComplianceDetail, + ComponentStateDetails, ExpressionEvaluationDetails, IfNotExistsEvaluationDetails, PolicyAssignmentSummary, diff --git a/sdk/policyinsights/arm-policyinsights/src/models/policyTrackedResourcesMappers.ts b/sdk/policyinsights/arm-policyinsights/src/models/policyTrackedResourcesMappers.ts index b2dc2065bce1..17b2d08e9634 100644 --- a/sdk/policyinsights/arm-policyinsights/src/models/policyTrackedResourcesMappers.ts +++ b/sdk/policyinsights/arm-policyinsights/src/models/policyTrackedResourcesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/policyinsights/arm-policyinsights/src/models/remediationsMappers.ts b/sdk/policyinsights/arm-policyinsights/src/models/remediationsMappers.ts index 392d3a1ec022..9e4ea0ef211c 100644 --- a/sdk/policyinsights/arm-policyinsights/src/models/remediationsMappers.ts +++ b/sdk/policyinsights/arm-policyinsights/src/models/remediationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/policyinsights/arm-policyinsights/src/operations/index.ts b/sdk/policyinsights/arm-policyinsights/src/operations/index.ts index 2c6e7a664f19..7200c7f81b07 100644 --- a/sdk/policyinsights/arm-policyinsights/src/operations/index.ts +++ b/sdk/policyinsights/arm-policyinsights/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/policyinsights/arm-policyinsights/src/operations/operations.ts b/sdk/policyinsights/arm-policyinsights/src/operations/operations.ts index 72f7a71d5852..72e2f9fea023 100644 --- a/sdk/policyinsights/arm-policyinsights/src/operations/operations.ts +++ b/sdk/policyinsights/arm-policyinsights/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -57,7 +56,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.PolicyInsights/operations", queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/policyinsights/arm-policyinsights/src/operations/policyEvents.ts b/sdk/policyinsights/arm-policyinsights/src/operations/policyEvents.ts index c018de3bc4b1..abcdb8bee075 100644 --- a/sdk/policyinsights/arm-policyinsights/src/operations/policyEvents.ts +++ b/sdk/policyinsights/arm-policyinsights/src/operations/policyEvents.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -277,34 +276,229 @@ export class PolicyEvents { } /** - * Gets OData metadata XML document. - * @param scope A valid scope, i.e. management group, subscription, resource group, or resource ID. - * Scope used has no effect on metadata returned. + * Queries policy events for the resources under the management group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listQueryResultsForManagementGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listQueryResultsForManagementGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listQueryResultsForManagementGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listQueryResultsForManagementGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listQueryResultsForManagementGroupNextOperationSpec, + callback) as Promise; + } + + /** + * Queries policy events for the resources under the subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listQueryResultsForSubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listQueryResultsForSubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listQueryResultsForSubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listQueryResultsForSubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listQueryResultsForSubscriptionNextOperationSpec, + callback) as Promise; + } + + /** + * Queries policy events for the resources under the resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listQueryResultsForResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listQueryResultsForResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listQueryResultsForResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listQueryResultsForResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listQueryResultsForResourceGroupNextOperationSpec, + callback) as Promise; + } + + /** + * Queries policy events for the resource. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listQueryResultsForResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listQueryResultsForResourceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listQueryResultsForResourceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listQueryResultsForResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listQueryResultsForResourceNextOperationSpec, + callback) as Promise; + } + + /** + * Queries policy events for the subscription level policy set definition. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listQueryResultsForPolicySetDefinitionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listQueryResultsForPolicySetDefinitionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listQueryResultsForPolicySetDefinitionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listQueryResultsForPolicySetDefinitionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listQueryResultsForPolicySetDefinitionNextOperationSpec, + callback) as Promise; + } + + /** + * Queries policy events for the subscription level policy definition. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listQueryResultsForPolicyDefinitionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listQueryResultsForPolicyDefinitionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listQueryResultsForPolicyDefinitionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listQueryResultsForPolicyDefinitionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listQueryResultsForPolicyDefinitionNextOperationSpec, + callback) as Promise; + } + + /** + * Queries policy events for the subscription level policy assignment. + * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns + * Promise */ - getMetadata(scope: string, options?: msRest.RequestOptionsBase): Promise; + listQueryResultsForSubscriptionLevelPolicyAssignmentNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param scope A valid scope, i.e. management group, subscription, resource group, or resource ID. - * Scope used has no effect on metadata returned. + * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - getMetadata(scope: string, callback: msRest.ServiceCallback): void; + listQueryResultsForSubscriptionLevelPolicyAssignmentNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** - * @param scope A valid scope, i.e. management group, subscription, resource group, or resource ID. - * Scope used has no effect on metadata returned. + * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - getMetadata(scope: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getMetadata(scope: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listQueryResultsForSubscriptionLevelPolicyAssignmentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listQueryResultsForSubscriptionLevelPolicyAssignmentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - scope, + nextPageLink, options }, - getMetadataOperationSpec, - callback) as Promise; + listQueryResultsForSubscriptionLevelPolicyAssignmentNextOperationSpec, + callback) as Promise; + } + + /** + * Queries policy events for the resource group level policy assignment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns + * Promise + */ + listQueryResultsForResourceGroupLevelPolicyAssignmentNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listQueryResultsForResourceGroupLevelPolicyAssignmentNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listQueryResultsForResourceGroupLevelPolicyAssignmentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listQueryResultsForResourceGroupLevelPolicyAssignmentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listQueryResultsForResourceGroupLevelPolicyAssignmentNextOperationSpec, + callback) as Promise; } } @@ -326,7 +520,8 @@ const listQueryResultsForManagementGroupOperationSpec: msRest.OperationSpec = { Parameters.from, Parameters.to, Parameters.filter, - Parameters.apply + Parameters.apply, + Parameters.skipToken ], headerParameters: [ Parameters.acceptLanguage @@ -357,7 +552,8 @@ const listQueryResultsForSubscriptionOperationSpec: msRest.OperationSpec = { Parameters.from, Parameters.to, Parameters.filter, - Parameters.apply + Parameters.apply, + Parameters.skipToken ], headerParameters: [ Parameters.acceptLanguage @@ -389,7 +585,8 @@ const listQueryResultsForResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.from, Parameters.to, Parameters.filter, - Parameters.apply + Parameters.apply, + Parameters.skipToken ], headerParameters: [ Parameters.acceptLanguage @@ -420,7 +617,9 @@ const listQueryResultsForResourceOperationSpec: msRest.OperationSpec = { Parameters.from, Parameters.to, Parameters.filter, - Parameters.apply + Parameters.apply, + Parameters.expand, + Parameters.skipToken ], headerParameters: [ Parameters.acceptLanguage @@ -453,7 +652,8 @@ const listQueryResultsForPolicySetDefinitionOperationSpec: msRest.OperationSpec Parameters.from, Parameters.to, Parameters.filter, - Parameters.apply + Parameters.apply, + Parameters.skipToken ], headerParameters: [ Parameters.acceptLanguage @@ -486,7 +686,8 @@ const listQueryResultsForPolicyDefinitionOperationSpec: msRest.OperationSpec = { Parameters.from, Parameters.to, Parameters.filter, - Parameters.apply + Parameters.apply, + Parameters.skipToken ], headerParameters: [ Parameters.acceptLanguage @@ -519,7 +720,8 @@ const listQueryResultsForSubscriptionLevelPolicyAssignmentOperationSpec: msRest. Parameters.from, Parameters.to, Parameters.filter, - Parameters.apply + Parameters.apply, + Parameters.skipToken ], headerParameters: [ Parameters.acceptLanguage @@ -553,7 +755,152 @@ const listQueryResultsForResourceGroupLevelPolicyAssignmentOperationSpec: msRest Parameters.from, Parameters.to, Parameters.filter, - Parameters.apply + Parameters.apply, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyEventsQueryResults + }, + default: { + bodyMapper: Mappers.QueryFailure + } + }, + serializer +}; + +const listQueryResultsForManagementGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyEventsQueryResults + }, + default: { + bodyMapper: Mappers.QueryFailure + } + }, + serializer +}; + +const listQueryResultsForSubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyEventsQueryResults + }, + default: { + bodyMapper: Mappers.QueryFailure + } + }, + serializer +}; + +const listQueryResultsForResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyEventsQueryResults + }, + default: { + bodyMapper: Mappers.QueryFailure + } + }, + serializer +}; + +const listQueryResultsForResourceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyEventsQueryResults + }, + default: { + bodyMapper: Mappers.QueryFailure + } + }, + serializer +}; + +const listQueryResultsForPolicySetDefinitionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyEventsQueryResults + }, + default: { + bodyMapper: Mappers.QueryFailure + } + }, + serializer +}; + +const listQueryResultsForPolicyDefinitionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -569,11 +916,12 @@ const listQueryResultsForResourceGroupLevelPolicyAssignmentOperationSpec: msRest serializer }; -const getMetadataOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "{scope}/providers/Microsoft.PolicyInsights/policyEvents/$metadata", +const listQueryResultsForSubscriptionLevelPolicyAssignmentNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", urlParameters: [ - Parameters.scope + Parameters.nextPageLink ], queryParameters: [ Parameters.apiVersion2 @@ -583,12 +931,31 @@ const getMetadataOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "String" - } - } + bodyMapper: Mappers.PolicyEventsQueryResults + }, + default: { + bodyMapper: Mappers.QueryFailure + } + }, + serializer +}; + +const listQueryResultsForResourceGroupLevelPolicyAssignmentNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyEventsQueryResults }, default: { bodyMapper: Mappers.QueryFailure diff --git a/sdk/policyinsights/arm-policyinsights/src/operations/policyMetadataOperations.ts b/sdk/policyinsights/arm-policyinsights/src/operations/policyMetadataOperations.ts index 34e6cab97ff7..8222a4c4b60b 100644 --- a/sdk/policyinsights/arm-policyinsights/src/operations/policyMetadataOperations.ts +++ b/sdk/policyinsights/arm-policyinsights/src/operations/policyMetadataOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -116,7 +115,7 @@ const getResourceOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -136,7 +135,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.PolicyInsights/policyMetadata", queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.top ], headerParameters: [ @@ -160,6 +159,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion2 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/policyinsights/arm-policyinsights/src/operations/policyStates.ts b/sdk/policyinsights/arm-policyinsights/src/operations/policyStates.ts index 6dc820943728..473cf16dddfe 100644 --- a/sdk/policyinsights/arm-policyinsights/src/operations/policyStates.ts +++ b/sdk/policyinsights/arm-policyinsights/src/operations/policyStates.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -661,6 +660,232 @@ export class PolicyStates { beginTriggerResourceGroupEvaluationOperationSpec, options); } + + /** + * Queries policy states for the resources under the management group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listQueryResultsForManagementGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listQueryResultsForManagementGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listQueryResultsForManagementGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listQueryResultsForManagementGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listQueryResultsForManagementGroupNextOperationSpec, + callback) as Promise; + } + + /** + * Queries policy states for the resources under the subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listQueryResultsForSubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listQueryResultsForSubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listQueryResultsForSubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listQueryResultsForSubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listQueryResultsForSubscriptionNextOperationSpec, + callback) as Promise; + } + + /** + * Queries policy states for the resources under the resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listQueryResultsForResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listQueryResultsForResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listQueryResultsForResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listQueryResultsForResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listQueryResultsForResourceGroupNextOperationSpec, + callback) as Promise; + } + + /** + * Queries policy states for the resource. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listQueryResultsForResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listQueryResultsForResourceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listQueryResultsForResourceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listQueryResultsForResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listQueryResultsForResourceNextOperationSpec, + callback) as Promise; + } + + /** + * Queries policy states for the subscription level policy set definition. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listQueryResultsForPolicySetDefinitionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listQueryResultsForPolicySetDefinitionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listQueryResultsForPolicySetDefinitionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listQueryResultsForPolicySetDefinitionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listQueryResultsForPolicySetDefinitionNextOperationSpec, + callback) as Promise; + } + + /** + * Queries policy states for the subscription level policy definition. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listQueryResultsForPolicyDefinitionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listQueryResultsForPolicyDefinitionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listQueryResultsForPolicyDefinitionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listQueryResultsForPolicyDefinitionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listQueryResultsForPolicyDefinitionNextOperationSpec, + callback) as Promise; + } + + /** + * Queries policy states for the subscription level policy assignment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns + * Promise + */ + listQueryResultsForSubscriptionLevelPolicyAssignmentNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listQueryResultsForSubscriptionLevelPolicyAssignmentNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listQueryResultsForSubscriptionLevelPolicyAssignmentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listQueryResultsForSubscriptionLevelPolicyAssignmentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listQueryResultsForSubscriptionLevelPolicyAssignmentNextOperationSpec, + callback) as Promise; + } + + /** + * Queries policy states for the resource group level policy assignment. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns + * Promise + */ + listQueryResultsForResourceGroupLevelPolicyAssignmentNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listQueryResultsForResourceGroupLevelPolicyAssignmentNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listQueryResultsForResourceGroupLevelPolicyAssignmentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listQueryResultsForResourceGroupLevelPolicyAssignmentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listQueryResultsForResourceGroupLevelPolicyAssignmentNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -674,14 +899,15 @@ const listQueryResultsForManagementGroupOperationSpec: msRest.OperationSpec = { Parameters.managementGroupName ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.top, Parameters.orderBy, Parameters.select, Parameters.from, Parameters.to, Parameters.filter, - Parameters.apply + Parameters.apply, + Parameters.skipToken ], headerParameters: [ Parameters.acceptLanguage @@ -706,7 +932,7 @@ const summarizeForManagementGroupOperationSpec: msRest.OperationSpec = { Parameters.managementGroupName ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.top, Parameters.from, Parameters.to, @@ -734,14 +960,15 @@ const listQueryResultsForSubscriptionOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.top, Parameters.orderBy, Parameters.select, Parameters.from, Parameters.to, Parameters.filter, - Parameters.apply + Parameters.apply, + Parameters.skipToken ], headerParameters: [ Parameters.acceptLanguage @@ -765,7 +992,7 @@ const summarizeForSubscriptionOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.top, Parameters.from, Parameters.to, @@ -794,14 +1021,15 @@ const listQueryResultsForResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.top, Parameters.orderBy, Parameters.select, Parameters.from, Parameters.to, Parameters.filter, - Parameters.apply + Parameters.apply, + Parameters.skipToken ], headerParameters: [ Parameters.acceptLanguage @@ -826,7 +1054,7 @@ const summarizeForResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.top, Parameters.from, Parameters.to, @@ -854,7 +1082,7 @@ const listQueryResultsForResourceOperationSpec: msRest.OperationSpec = { Parameters.resourceId ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.top, Parameters.orderBy, Parameters.select, @@ -862,7 +1090,8 @@ const listQueryResultsForResourceOperationSpec: msRest.OperationSpec = { Parameters.to, Parameters.filter, Parameters.apply, - Parameters.expand + Parameters.expand, + Parameters.skipToken ], headerParameters: [ Parameters.acceptLanguage @@ -886,7 +1115,7 @@ const summarizeForResourceOperationSpec: msRest.OperationSpec = { Parameters.resourceId ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.top, Parameters.from, Parameters.to, @@ -916,14 +1145,15 @@ const listQueryResultsForPolicySetDefinitionOperationSpec: msRest.OperationSpec Parameters.policySetDefinitionName ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.top, Parameters.orderBy, Parameters.select, Parameters.from, Parameters.to, Parameters.filter, - Parameters.apply + Parameters.apply, + Parameters.skipToken ], headerParameters: [ Parameters.acceptLanguage @@ -949,7 +1179,7 @@ const summarizeForPolicySetDefinitionOperationSpec: msRest.OperationSpec = { Parameters.policySetDefinitionName ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.top, Parameters.from, Parameters.to, @@ -979,14 +1209,15 @@ const listQueryResultsForPolicyDefinitionOperationSpec: msRest.OperationSpec = { Parameters.policyDefinitionName ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.top, Parameters.orderBy, Parameters.select, Parameters.from, Parameters.to, Parameters.filter, - Parameters.apply + Parameters.apply, + Parameters.skipToken ], headerParameters: [ Parameters.acceptLanguage @@ -1012,7 +1243,7 @@ const summarizeForPolicyDefinitionOperationSpec: msRest.OperationSpec = { Parameters.policyDefinitionName ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.top, Parameters.from, Parameters.to, @@ -1042,14 +1273,15 @@ const listQueryResultsForSubscriptionLevelPolicyAssignmentOperationSpec: msRest. Parameters.policyAssignmentName ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.top, Parameters.orderBy, Parameters.select, Parameters.from, Parameters.to, Parameters.filter, - Parameters.apply + Parameters.apply, + Parameters.skipToken ], headerParameters: [ Parameters.acceptLanguage @@ -1075,7 +1307,7 @@ const summarizeForSubscriptionLevelPolicyAssignmentOperationSpec: msRest.Operati Parameters.policyAssignmentName ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.top, Parameters.from, Parameters.to, @@ -1106,14 +1338,15 @@ const listQueryResultsForResourceGroupLevelPolicyAssignmentOperationSpec: msRest Parameters.policyAssignmentName ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.top, Parameters.orderBy, Parameters.select, Parameters.from, Parameters.to, Parameters.filter, - Parameters.apply + Parameters.apply, + Parameters.skipToken ], headerParameters: [ Parameters.acceptLanguage @@ -1140,7 +1373,7 @@ const summarizeForResourceGroupLevelPolicyAssignmentOperationSpec: msRest.Operat Parameters.policyAssignmentName ], queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion2, Parameters.top, Parameters.from, Parameters.to, @@ -1167,7 +1400,7 @@ const beginTriggerSubscriptionEvaluationOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -1190,7 +1423,7 @@ const beginTriggerResourceGroupEvaluationOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion3 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -1204,3 +1437,195 @@ const beginTriggerResourceGroupEvaluationOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listQueryResultsForManagementGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyStatesQueryResults + }, + default: { + bodyMapper: Mappers.QueryFailure + } + }, + serializer +}; + +const listQueryResultsForSubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyStatesQueryResults + }, + default: { + bodyMapper: Mappers.QueryFailure + } + }, + serializer +}; + +const listQueryResultsForResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyStatesQueryResults + }, + default: { + bodyMapper: Mappers.QueryFailure + } + }, + serializer +}; + +const listQueryResultsForResourceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyStatesQueryResults + }, + default: { + bodyMapper: Mappers.QueryFailure + } + }, + serializer +}; + +const listQueryResultsForPolicySetDefinitionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyStatesQueryResults + }, + default: { + bodyMapper: Mappers.QueryFailure + } + }, + serializer +}; + +const listQueryResultsForPolicyDefinitionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyStatesQueryResults + }, + default: { + bodyMapper: Mappers.QueryFailure + } + }, + serializer +}; + +const listQueryResultsForSubscriptionLevelPolicyAssignmentNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyStatesQueryResults + }, + default: { + bodyMapper: Mappers.QueryFailure + } + }, + serializer +}; + +const listQueryResultsForResourceGroupLevelPolicyAssignmentNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion2 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyStatesQueryResults + }, + default: { + bodyMapper: Mappers.QueryFailure + } + }, + serializer +}; diff --git a/sdk/policyinsights/arm-policyinsights/src/operations/policyTrackedResources.ts b/sdk/policyinsights/arm-policyinsights/src/operations/policyTrackedResources.ts index 76d76cddd053..4d7ba140c313 100644 --- a/sdk/policyinsights/arm-policyinsights/src/operations/policyTrackedResources.ts +++ b/sdk/policyinsights/arm-policyinsights/src/operations/policyTrackedResources.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -370,6 +369,9 @@ const listQueryResultsForManagementGroupNextOperationSpec: msRest.OperationSpec urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -391,6 +393,9 @@ const listQueryResultsForSubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -412,6 +417,9 @@ const listQueryResultsForResourceGroupNextOperationSpec: msRest.OperationSpec = urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -433,6 +441,9 @@ const listQueryResultsForResourceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/policyinsights/arm-policyinsights/src/operations/remediations.ts b/sdk/policyinsights/arm-policyinsights/src/operations/remediations.ts index adc3753690f6..baac8c2db718 100644 --- a/sdk/policyinsights/arm-policyinsights/src/operations/remediations.ts +++ b/sdk/policyinsights/arm-policyinsights/src/operations/remediations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -1692,6 +1691,9 @@ const listDeploymentsAtManagementGroupNextOperationSpec: msRest.OperationSpec = urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion1 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1713,6 +1715,9 @@ const listForManagementGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion1 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1734,6 +1739,9 @@ const listDeploymentsAtSubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion1 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1755,6 +1763,9 @@ const listForSubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion1 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1776,6 +1787,9 @@ const listDeploymentsAtResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion1 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1797,6 +1811,9 @@ const listForResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion1 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1818,6 +1835,9 @@ const listDeploymentsAtResourceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion1 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1839,6 +1859,9 @@ const listForResourceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion1 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/policyinsights/arm-policyinsights/src/policyInsightsClient.ts b/sdk/policyinsights/arm-policyinsights/src/policyInsightsClient.ts index 650cf5780b26..9a6e23996468 100644 --- a/sdk/policyinsights/arm-policyinsights/src/policyInsightsClient.ts +++ b/sdk/policyinsights/arm-policyinsights/src/policyInsightsClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/policyinsights/arm-policyinsights/src/policyInsightsClientContext.ts b/sdk/policyinsights/arm-policyinsights/src/policyInsightsClientContext.ts index f59b5167e744..3d3b557ca818 100644 --- a/sdk/policyinsights/arm-policyinsights/src/policyInsightsClientContext.ts +++ b/sdk/policyinsights/arm-policyinsights/src/policyInsightsClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is