openstack.baremetal_introspection.v1.introspection_rule¶
IntrospectionRule 类¶
IntrospectionRule 类继承自 Resource。
- class openstack.baremetal_introspection.v1.introspection_rule.IntrospectionRule(_synchronized=False, connection=None, **attrs)¶
基础资源
- 参数:
_synchronized (bool) – 这不打算直接使用。请参阅
new()和existing()。connection (openstack.connection.Connection) – 对正在使用的 Connection 的引用。默认为 None,允许在单元测试中等情况下使用不带活动 Connection 的 Resource 对象。Resource 代码中对
self._connection的使用应使用 None 检查进行保护。
- resources_key = 'rules'¶
资源的复数形式的键。
- base_path = '/rules'¶
此资源的 URI 的基本部分。
- allow_create = True¶
允许对此资源进行创建操作。
- allow_fetch = True¶
允许对此资源进行获取操作。
- allow_commit = False¶
允许对此资源进行更新操作。
- allow_delete = True¶
允许对此资源进行删除操作。
- allow_list = True¶
允许对此资源进行列表操作。
- create_method = 'POST'¶
创建资源的 HTTP 方法 (POST、PUT)
- create_requires_id = True¶
创建是否需要 ID(如果为 None,则由方法确定)。
- id¶
资源的 UUID。
- conditions¶
规则中逻辑语句或操作的列表
- actions¶
如果规则的条件得到满足,将执行的操作列表。
- description¶
规则的人性化描述
- scope¶
内省规则的范围
- links¶
相对链接列表,包括 self 和 bookmark 链接。