1717 from datadog_api_client .v2 .model .cloud_workload_security_agent_policy_updater_attributes import (
1818 CloudWorkloadSecurityAgentPolicyUpdaterAttributes ,
1919 )
20+ from datadog_api_client .v2 .model .cloud_workload_security_agent_policy_version import (
21+ CloudWorkloadSecurityAgentPolicyVersion ,
22+ )
2023
2124
2225class CloudWorkloadSecurityAgentPolicyAttributes (ModelNormal ):
@@ -40,6 +43,9 @@ def openapi_types(_):
4043 from datadog_api_client .v2 .model .cloud_workload_security_agent_policy_updater_attributes import (
4144 CloudWorkloadSecurityAgentPolicyUpdaterAttributes ,
4245 )
46+ from datadog_api_client .v2 .model .cloud_workload_security_agent_policy_version import (
47+ CloudWorkloadSecurityAgentPolicyVersion ,
48+ )
4349
4450 return {
4551 "blocking_rules_count" : (int ,),
@@ -51,12 +57,14 @@ def openapi_types(_):
5157 "host_tags_lists" : ([[str ]],),
5258 "monitoring_rules_count" : (int ,),
5359 "name" : (str ,),
60+ "pinned" : (bool ,),
5461 "policy_version" : (str ,),
5562 "priority" : (int ,),
5663 "rule_count" : (int ,),
5764 "update_date" : (int ,),
5865 "updated_at" : (int ,),
5966 "updater" : (CloudWorkloadSecurityAgentPolicyUpdaterAttributes ,),
67+ "versions" : ([CloudWorkloadSecurityAgentPolicyVersion ],),
6068 }
6169
6270 attribute_map = {
@@ -69,12 +77,14 @@ def openapi_types(_):
6977 "host_tags_lists" : "hostTagsLists" ,
7078 "monitoring_rules_count" : "monitoringRulesCount" ,
7179 "name" : "name" ,
80+ "pinned" : "pinned" ,
7281 "policy_version" : "policyVersion" ,
7382 "priority" : "priority" ,
7483 "rule_count" : "ruleCount" ,
7584 "update_date" : "updateDate" ,
7685 "updated_at" : "updatedAt" ,
7786 "updater" : "updater" ,
87+ "versions" : "versions" ,
7888 }
7989
8090 def __init__ (
@@ -88,12 +98,14 @@ def __init__(
8898 host_tags_lists : Union [List [List [str ]], UnsetType ] = unset ,
8999 monitoring_rules_count : Union [int , UnsetType ] = unset ,
90100 name : Union [str , UnsetType ] = unset ,
101+ pinned : Union [bool , UnsetType ] = unset ,
91102 policy_version : Union [str , UnsetType ] = unset ,
92103 priority : Union [int , UnsetType ] = unset ,
93104 rule_count : Union [int , UnsetType ] = unset ,
94105 update_date : Union [int , UnsetType ] = unset ,
95106 updated_at : Union [int , UnsetType ] = unset ,
96107 updater : Union [CloudWorkloadSecurityAgentPolicyUpdaterAttributes , UnsetType ] = unset ,
108+ versions : Union [List [CloudWorkloadSecurityAgentPolicyVersion ], UnsetType ] = unset ,
97109 ** kwargs ,
98110 ):
99111 """
@@ -126,6 +138,9 @@ def __init__(
126138 :param name: The name of the policy
127139 :type name: str, optional
128140
141+ :param pinned: Whether the policy is pinned
142+ :type pinned: bool, optional
143+
129144 :param policy_version: The version of the policy
130145 :type policy_version: str, optional
131146
@@ -143,6 +158,9 @@ def __init__(
143158
144159 :param updater: The attributes of the user who last updated the policy
145160 :type updater: CloudWorkloadSecurityAgentPolicyUpdaterAttributes, optional
161+
162+ :param versions: The versions of the policy
163+ :type versions: [CloudWorkloadSecurityAgentPolicyVersion], optional
146164 """
147165 if blocking_rules_count is not unset :
148166 kwargs ["blocking_rules_count" ] = blocking_rules_count
@@ -162,6 +180,8 @@ def __init__(
162180 kwargs ["monitoring_rules_count" ] = monitoring_rules_count
163181 if name is not unset :
164182 kwargs ["name" ] = name
183+ if pinned is not unset :
184+ kwargs ["pinned" ] = pinned
165185 if policy_version is not unset :
166186 kwargs ["policy_version" ] = policy_version
167187 if priority is not unset :
@@ -174,4 +194,6 @@ def __init__(
174194 kwargs ["updated_at" ] = updated_at
175195 if updater is not unset :
176196 kwargs ["updater" ] = updater
197+ if versions is not unset :
198+ kwargs ["versions" ] = versions
177199 super ().__init__ (kwargs )
0 commit comments