Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR policyinsights/resource-manager] [Hub Generated] Review request for Microsoft.PolicyInsights to add version preview/2017-08-09-preview #2254

Closed
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
1,351 changes: 992 additions & 359 deletions packages/@azure/arm-policyinsights/lib/models/index.ts

Large diffs are not rendered by default.

186 changes: 100 additions & 86 deletions packages/@azure/arm-policyinsights/lib/models/mappers.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* 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.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
Expand Down Expand Up @@ -659,48 +661,6 @@ export const PolicyEvent: 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"
}
},
value: {
serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "PolicyEvent",
additionalProperties: {
type: {
name: "Object"
}
}
}
}
}
}
}
}
};

export const ExpressionEvaluationDetails: msRest.CompositeMapper = {
serializedName: "ExpressionEvaluationDetails",
type: {
Expand Down Expand Up @@ -988,48 +948,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 SummaryResults: msRest.CompositeMapper = {
serializedName: "SummaryResults",
type: {
Expand Down Expand Up @@ -1445,3 +1363,99 @@ 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"
}
},
value: {
serializedName: "",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "PolicyEvent",
additionalProperties: {
type: {
name: "Object"
}
}
}
}
}
},
odatanextLink: {
serializedName: "@odata\\.nextLink",
type: {
name: "String"
}
}
}
}
};

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: "",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "PolicyState",
additionalProperties: {
type: {
name: "Object"
}
}
}
}
}
},
odatanextLink: {
serializedName: "@odata\\.nextLink",
type: {
name: "String"
}
}
}
}
};
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* 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.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

export {
OperationsListResults,
Operation,
OperationDisplay,
OperationsListResults,
QueryFailure,
QueryFailureError
} from "../models/mappers";

16 changes: 1 addition & 15 deletions packages/@azure/arm-policyinsights/lib/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,11 @@ export const acceptLanguage: msRest.OperationParameter = {
}
}
};
export const apiVersion0: msRest.OperationQueryParameter = {
export const apiVersion: msRest.OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
required: true,
isConstant: true,
serializedName: "api-version",
defaultValue: '2018-07-01-preview',
type: {
name: "String"
}
}
};
export const apiVersion1: msRest.OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
required: true,
isConstant: true,
serializedName: "api-version",
defaultValue: '2018-04-04',
type: {
name: "String"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* 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.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

export {
PolicyEvent,
PolicyEventsQueryResults,
PolicyEvent,
QueryFailure,
QueryFailureError
} from "../models/mappers";

Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* 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.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

export {
PolicyStatesQueryResults,
PolicyState,
PolicyEvaluationDetails,
ExpressionEvaluationDetails,
IfNotExistsEvaluationDetails,
PolicyAssignmentSummary,
PolicyDefinitionSummary,
PolicyEvaluationDetails,
PolicyState,
PolicyStatesQueryResults,
QueryFailure,
QueryFailureError,
SummarizeResults,
Summary,
SummaryResults
SummaryResults,
PolicyAssignmentSummary,
PolicyDefinitionSummary
} from "../models/mappers";

Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* 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.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

export {
PolicyDetails,
PolicyTrackedResource,
PolicyTrackedResourcesQueryResults,
PolicyTrackedResource,
PolicyDetails,
TrackedResourceModificationDetails,
QueryFailure,
QueryFailureError,
TrackedResourceModificationDetails
QueryFailureError
} from "../models/mappers";

Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* 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.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

export {
BaseResource,
RemediationDeploymentsListResult,
RemediationDeployment,
ErrorDefinition,
TypedErrorInfo,
ErrorResponse,
Remediation,
RemediationDeployment,
RemediationDeploymentsListResult,
RemediationDeploymentSummary,
BaseResource,
RemediationFilters,
RemediationListResult,
TypedErrorInfo
RemediationDeploymentSummary,
RemediationListResult
} from "../models/mappers";

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.apiVersion0
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
Expand Down
Loading