GenericProjectInfo
(project_id: str, project_keystone_api_version: str, domain_id: Optional[str] = None, name: Optional[str] = None, description: Optional[str] = None)¶Bases: object
Abstraction layer for Keystone V2 and V3 project objects
add_visible_admin_metadata
(volume) → None¶Add user-visible admin metadata to regular metadata.
Extracts the admin metadata keys that are to be made visible to non-administrators, and adds them to the regular metadata structure for the passed-in volume.
get_project
(context: context.RequestContext, project_id: str) → GenericProjectInfo¶Method to verify project exists in keystone
is_none_string
(val: Any) → bool¶Check if a string represents a None value.
remove_invalid_filter_options
(context: context.RequestContext, filters: dict, allowed_search_options: Iterable[str]) → None¶Remove search options that are not valid for non-admin API/context.
validate_integer
(value: int, name: str, min_value: Optional[int] = None, max_value: Optional[int] = None) → int¶Make sure that value is a valid integer, potentially within range.
value – the value of the integer
name – the name of the integer
min_value – the min value of the integer
max_value – the max value of the integer
integer
walk_class_hierarchy
(clazz: type, encountered: Optional[list] = None) → Generator[type, None, None]¶Walk class hierarchy, yielding most derived classes first.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.