Skip to content

Commit

Permalink
[Fleet] Remove unused enrollement rules (#56753)
Browse files Browse the repository at this point in the history
  • Loading branch information
nchaulet committed Feb 4, 2020
1 parent fba1137 commit 0ba7763
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 2,911 deletions.
23 changes: 0 additions & 23 deletions x-pack/legacy/plugins/fleet/common/types/domain_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,28 +175,6 @@ export type PolicyUpdatedEvent =
policyId: string;
};

export const RuntimeEnrollmentRuleData = t.partial(
{
ip_ranges: t.array(t.string),
window_duration: t.interface(
{
from: t.string,
to: t.string,
},
'WindowDuration'
),
types: t.array(RuntimeAgentType),
},
'EnrollmentRuleData'
);

export type EnrollmentRuleData = t.TypeOf<typeof RuntimeEnrollmentRuleData>;

export type EnrollmentRule = EnrollmentRuleData & {
id: string;
created_at: string;
updated_at?: string;
};
export interface EnrollmentApiKey {
id: string;
api_key_id: string;
Expand All @@ -205,7 +183,6 @@ export interface EnrollmentApiKey {
created_at: string;
expire_at?: string;
active: boolean;
enrollment_rules: EnrollmentRule[];
policy_id?: string;
[k: string]: any; // allow to use it as saved object attributes type
}

This file was deleted.

Loading

0 comments on commit 0ba7763

Please sign in to comment.