Skip to content

Commit

Permalink
Update from master
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed Jul 20, 2020
1 parent 74d1b7c commit 383263a
Show file tree
Hide file tree
Showing 9 changed files with 1,489 additions and 203 deletions.
475 changes: 432 additions & 43 deletions sdk/policyinsights/arm-policyinsights/src/models/index.ts

Large diffs are not rendered by default.

309 changes: 234 additions & 75 deletions sdk/policyinsights/arm-policyinsights/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -648,6 +705,12 @@ export const PolicyEvent: msRest.CompositeMapper = {
name: "String"
}
},
complianceState: {
serializedName: "complianceState",
type: {
name: "String"
}
},
tenantId: {
serializedName: "tenantId",
type: {
Expand All @@ -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"
Expand All @@ -707,6 +740,11 @@ export const PolicyEventsQueryResults: msRest.CompositeMapper = {
}
}
}
},
additionalProperties: {
type: {
name: "Object"
}
}
}
};
Expand Down Expand Up @@ -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: {
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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: {
Expand Down Expand Up @@ -1653,6 +1711,11 @@ export const QueryOptions: msRest.CompositeMapper = {
name: "String"
}
},
skipToken: {
type: {
name: "String"
}
},
expand: {
type: {
name: "String"
Expand Down Expand Up @@ -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: {
Expand Down
Loading

0 comments on commit 383263a

Please sign in to comment.