Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
729 changes: 669 additions & 60 deletions sdk/policyinsights/arm-policyinsights/src/models/index.ts

Large diffs are not rendered by default.

600 changes: 525 additions & 75 deletions sdk/policyinsights/arm-policyinsights/src/models/mappers.ts

Large diffs are not rendered by default.

59 changes: 46 additions & 13 deletions sdk/policyinsights/arm-policyinsights/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const apiVersion2: msRest.OperationQueryParameter = {
required: true,
isConstant: true,
serializedName: "api-version",
defaultValue: '2018-04-04',
defaultValue: '2019-10-01',
type: {
name: "String"
}
Expand All @@ -62,7 +62,10 @@ export const apiVersion3: msRest.OperationQueryParameter = {
required: true,
isConstant: true,
serializedName: "api-version",
defaultValue: '2019-10-01',
defaultValue: '2020-07-01',
constraints: {
MinLength: 1
},
type: {
name: "String"
}
Expand Down Expand Up @@ -274,11 +277,26 @@ export const remediationName: msRest.OperationURLParameter = {
}
}
};
export const resourceGroupName: msRest.OperationURLParameter = {
export const resourceGroupName0: msRest.OperationURLParameter = {
parameterPath: "resourceGroupName",
mapper: {
required: true,
serializedName: "resourceGroupName",
type: {
name: "String"
}
}
};
export const resourceGroupName1: msRest.OperationURLParameter = {
parameterPath: "resourceGroupName",
mapper: {
required: true,
serializedName: "resourceGroupName",
constraints: {
MaxLength: 90,
MinLength: 1,
Pattern: /^[-\w\._\(\)]+$/
},
type: {
name: "String"
}
Expand Down Expand Up @@ -306,35 +324,50 @@ 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"
}
}
};
export const subscriptionId0: msRest.OperationURLParameter = {
parameterPath: "subscriptionId",
mapper: {
required: true,
serializedName: "subscriptionId",
type: {
name: "String"
}
}
};
export const subscriptionId: msRest.OperationURLParameter = {
export const subscriptionId1: msRest.OperationURLParameter = {
parameterPath: "subscriptionId",
mapper: {
required: true,
serializedName: "subscriptionId",
constraints: {
MinLength: 1
},
type: {
name: "String"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

export {
ComponentEventDetails,
PolicyEvent,
PolicyEventsQueryResults,
QueryFailure,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* 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.
*/

export {
CheckRestrictionsRequest,
CheckRestrictionsResourceDetails,
CheckRestrictionsResult,
CheckRestrictionsResultContentEvaluationResult,
ErrorDefinition,
ErrorResponse,
ExpressionEvaluationDetails,
FieldRestriction,
FieldRestrictions,
IfNotExistsEvaluationDetails,
PendingField,
PolicyEvaluationDetails,
PolicyEvaluationResult,
PolicyReference,
TypedErrorInfo
} from "../models/mappers";
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

export {
ComplianceDetail,
ComponentStateDetails,
ExpressionEvaluationDetails,
IfNotExistsEvaluationDetails,
PolicyAssignmentSummary,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ export * from "./policyEvents";
export * from "./policyStates";
export * from "./operations";
export * from "./policyMetadataOperations";
export * from "./policyRestrictions";
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const listOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
path: "providers/Microsoft.PolicyInsights/operations",
queryParameters: [
Parameters.apiVersion3
Parameters.apiVersion2
],
headerParameters: [
Parameters.acceptLanguage
Expand Down
Loading