openstack.cluster.v1.cluster_policy¶
The ClusterPolicy Class¶
The ClusterPolicy
class inherits from
Resource
.
-
class
openstack.cluster.v1.cluster_policy.
ClusterPolicy
(attrs=None, loaded=False)¶ Construct a Resource to interact with a service’s REST API.
The Resource class offers two class methods to construct resource objects, which are preferrable to entering through this initializer. See
Resource.new()
andResource.existing()
.Parameters: - attrs (dict) – The attributes to set when constructing this Resource.
- loaded (bool) –
True
if this Resource exists on the server,False
if it does not.
-
policy_id
= None¶ ID of the policy object.
-
policy_name
= None¶ Name of the policy object.
-
cluster_id
= None¶ ID of the cluster object.
-
cluster_name
= None¶ Name of the cluster object.
-
policy_type
= None¶ Type string of the policy.
-
enabled
= None¶ Whether the policy is enabled on the cluster.
-
data
= None¶ Data associated with the cluster-policy binding.