Skip to content

Commit

Permalink
Generated from 42b6b0b2ecee34b71e7f4a28f958d0a10fda47cf
Browse files Browse the repository at this point in the history
Merge branch 'master' into najagasi/compliance_paging
  • Loading branch information
SDK Automation committed Apr 27, 2020
1 parent e6e944a commit 3e2de92
Show file tree
Hide file tree
Showing 9 changed files with 936 additions and 204 deletions.
319 changes: 274 additions & 45 deletions sdk/policyinsights/arm-policyinsights/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand All @@ -437,6 +480,10 @@ export interface PolicyEvent {
* policy event.
*/
principalOid?: string;
/**
* Components events records populated only when URL contains $expand=components clause.
*/
components?: ComponentEventDetails[];
/**
* Describes unknown properties. The value of an unknown property can be of "any" type.
*/
Expand All @@ -455,6 +502,10 @@ export interface PolicyEventsQueryResults {
* 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;
/**
* Query results.
*/
Expand Down Expand Up @@ -519,6 +570,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.
*/
Expand Down Expand Up @@ -646,6 +727,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.**
Expand All @@ -667,24 +753,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.
*/
Expand Down Expand Up @@ -1037,8 +1105,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;
}
Expand Down Expand Up @@ -1459,6 +1531,26 @@ export interface RemediationListResult extends Array<Remediation> {
readonly nextLink?: string;
}

/**
* @interface
* Query results.
* @extends Array<PolicyState>
*/
export interface PolicyStatesQueryResults extends Array<PolicyState> {
/**
* 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.
Expand Down Expand Up @@ -2448,31 +2540,6 @@ export type PolicyEventsListQueryResultsForResourceGroupLevelPolicyAssignmentRes
};
};

/**
* Contains response data for the getMetadata operation.
*/
export type PolicyEventsGetMetadataResponse = {
/**
* The parsed response body.
*/
body: string;

/**
* 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: string;
};
};

/**
* Contains response data for the listQueryResultsForManagementGroup operation.
*/
Expand Down Expand Up @@ -2793,6 +2860,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.
*/
Expand Down
Loading

0 comments on commit 3e2de92

Please sign in to comment.