Skip to content

Add missing cloud workload security fields #1575

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

Merged
Merged
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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.5",
"regenerated": "2023-07-11 16:39:33.303769",
"spec_repo_commit": "824086bb"
"regenerated": "2023-07-13 19:08:05.234547",
"spec_repo_commit": "9ad4f63e"
},
"v2": {
"apigentools_version": "1.6.5",
"regenerated": "2023-07-11 16:39:33.412435",
"spec_repo_commit": "824086bb"
"regenerated": "2023-07-13 19:08:05.246545",
"spec_repo_commit": "9ad4f63e"
}
}
}
16 changes: 16 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2756,10 +2756,17 @@ components:
CloudWorkloadSecurityAgentRuleAttributes:
description: A Cloud Workload Security Agent rule returned by the API.
properties:
agentConstraint:
description: The version of the agent.
type: string
category:
description: The category of the Agent rule.
example: Process Activity
type: string
creationAuthorUuId:
description: The ID of the user who created the rule.
example: e51c9744-d158-11ec-ad23-da7ad0900002
type: string
creationDate:
description: When the Agent rule was created, timestamp in milliseconds.
example: 1624366480320
Expand Down Expand Up @@ -2787,6 +2794,15 @@ components:
description: The name of the Agent rule.
example: my_agent_rule
type: string
updateAuthorUuId:
description: The ID of the user who updated the rule.
example: e51c9744-d158-11ec-ad23-da7ad0900002
type: string
updateDate:
description: Timestamp in milliseconds when the Agent rule was last updated.
example: 1624366480320
format: int64
type: integer
updatedAt:
description: When the Agent rule was last updated, timestamp in milliseconds.
example: 1624366480320
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,43 +33,55 @@ def openapi_types(_):
)

return {
"agent_constraint": (str,),
"category": (str,),
"creation_author_uu_id": (str,),
"creation_date": (int,),
"creator": (CloudWorkloadSecurityAgentRuleCreatorAttributes,),
"default_rule": (bool,),
"description": (str,),
"enabled": (bool,),
"expression": (str,),
"name": (str,),
"update_author_uu_id": (str,),
"update_date": (int,),
"updated_at": (int,),
"updater": (CloudWorkloadSecurityAgentRuleUpdaterAttributes,),
"version": (int,),
}

attribute_map = {
"agent_constraint": "agentConstraint",
"category": "category",
"creation_author_uu_id": "creationAuthorUuId",
"creation_date": "creationDate",
"creator": "creator",
"default_rule": "defaultRule",
"description": "description",
"enabled": "enabled",
"expression": "expression",
"name": "name",
"update_author_uu_id": "updateAuthorUuId",
"update_date": "updateDate",
"updated_at": "updatedAt",
"updater": "updater",
"version": "version",
}

def __init__(
self_,
agent_constraint: Union[str, UnsetType] = unset,
category: Union[str, UnsetType] = unset,
creation_author_uu_id: Union[str, UnsetType] = unset,
creation_date: Union[int, UnsetType] = unset,
creator: Union[CloudWorkloadSecurityAgentRuleCreatorAttributes, UnsetType] = unset,
default_rule: Union[bool, UnsetType] = unset,
description: Union[str, UnsetType] = unset,
enabled: Union[bool, UnsetType] = unset,
expression: Union[str, UnsetType] = unset,
name: Union[str, UnsetType] = unset,
update_author_uu_id: Union[str, UnsetType] = unset,
update_date: Union[int, UnsetType] = unset,
updated_at: Union[int, UnsetType] = unset,
updater: Union[CloudWorkloadSecurityAgentRuleUpdaterAttributes, UnsetType] = unset,
version: Union[int, UnsetType] = unset,
Expand All @@ -78,9 +90,15 @@ def __init__(
"""
A Cloud Workload Security Agent rule returned by the API.

:param agent_constraint: The version of the agent.
:type agent_constraint: str, optional

:param category: The category of the Agent rule.
:type category: str, optional

:param creation_author_uu_id: The ID of the user who created the rule.
:type creation_author_uu_id: str, optional

:param creation_date: When the Agent rule was created, timestamp in milliseconds.
:type creation_date: int, optional

Expand All @@ -102,6 +120,12 @@ def __init__(
:param name: The name of the Agent rule.
:type name: str, optional

:param update_author_uu_id: The ID of the user who updated the rule.
:type update_author_uu_id: str, optional

:param update_date: Timestamp in milliseconds when the Agent rule was last updated.
:type update_date: int, optional

:param updated_at: When the Agent rule was last updated, timestamp in milliseconds.
:type updated_at: int, optional

Expand All @@ -111,8 +135,12 @@ def __init__(
:param version: The version of the Agent rule.
:type version: int, optional
"""
if agent_constraint is not unset:
kwargs["agent_constraint"] = agent_constraint
if category is not unset:
kwargs["category"] = category
if creation_author_uu_id is not unset:
kwargs["creation_author_uu_id"] = creation_author_uu_id
if creation_date is not unset:
kwargs["creation_date"] = creation_date
if creator is not unset:
Expand All @@ -127,6 +155,10 @@ def __init__(
kwargs["expression"] = expression
if name is not unset:
kwargs["name"] = name
if update_author_uu_id is not unset:
kwargs["update_author_uu_id"] = update_author_uu_id
if update_date is not unset:
kwargs["update_date"] = update_date
if updated_at is not unset:
kwargs["updated_at"] = updated_at
if updater is not unset:
Expand Down