otcextensions.sdk.swr.v2.repository¶
The Repository Class¶
The repository
class inherits from
Resource
.
- class otcextensions.sdk.swr.v2.repository.Repository(_synchronized=False, connection=None, **attrs)¶
The base resource
- Parameters:
_synchronized (bool) – This is not intended to be used directly. See
new()
andexisting()
.connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of
self._connection
in Resource code should protect itself with a check for None.
- base_path: str = '/manage/namespaces/%(namespace)s/repos'¶
The base part of the URI for this resource.
- allow_create = True¶
Allow create operation for this resource.
- allow_delete = True¶
Allow delete operation for this resource.
- allow_fetch = True¶
Allow get operation for this resource.
- allow_list = True¶
Allow list operation for this resource.
- allow_commit = True¶
Allow update operation for this resource.
- commit_method = 'PATCH'¶
Method for committing a resource (PUT, PATCH, POST)
- namespace¶
Organization namespace Type:str
- repository¶
Image repository name Type:str
- category¶
Repository type The value can be app_server, linux, framework_app, database, lang, other, windows or arm. Type:str
- description¶
Brief description of the image repository Type:str
- is_public¶
Whether the repository is a public repository When the value is true, it indicates the repository is public. When the value is false, it indicates the repository is private. Type:bool
- id¶
Image repository ID Type:int
- ns_id¶
Organization ID Type:int
- name: ty.Union[Body, URI]¶
Image repository name Type:str
- creator_id¶
Image repository creator ID Type:str
- creator_name¶
Image repository creator Type:str
- size¶
Image repository size Type:str
- num_images¶
Number of images in an image repository Type:int
- num_download¶
Download times of an image repository Type:int
- url¶
URL of the image repository logo image This field has been discarded and is left empty by default Type:str
- path¶
External image pull address. The format is {Repository address}/{Namespace name}/{Repository name}. Type:str
- internal_path¶
Internal image pull address. The format is {Repository address}/{Namespace name}/{Repository name}. Type:str
- created¶
Time when an image repository is created. It is the UTC standard time Type:str
- updated¶
Time when an image repository is updated. It is the UTC standard time Type:str
- domain_id¶
Account ID Type:str
- priority¶
Image sorting priority Type:int
- tags¶
Image tag list Type:list
- status¶
Status Type:bool
- total_range¶
Total number of records Type:int
The Repository Permission Class¶
The Permission
class inherits from
Resource
.
- class otcextensions.sdk.swr.v2.repository.Permission(_synchronized=False, connection=None, **attrs)¶
The base resource
- Parameters:
_synchronized (bool) – This is not intended to be used directly. See
new()
andexisting()
.connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow Resource objects to be used without an active Connection, such as in unit tests. Use of
self._connection
in Resource code should protect itself with a check for None.
- base_path: str = '/manage/namespaces/%(namespace)s/repos/%(repository)s/access'¶
The base part of the URI for this resource.
- allow_create = True¶
Allow create operation for this resource.
- allow_delete = True¶
Allow delete operation for this resource.
- allow_list = True¶
Allow list operation for this resource.
- allow_commit = True¶
Allow update operation for this resource.
- commit_method = 'PATCH'¶
Method for committing a resource (PUT, PATCH, POST)
- requires_id = False¶
Do calls for this resource require an id
- namespace¶
Organization namespace Type:str
- repository¶
Image repository name Type:str
- permissions¶
Information required for creating image permissions. Type:list
- id¶
Permission ID Type:int
- name: ty.Union[Body, URI]¶
Image name Type:str
- self_auth¶
Permissions of the current user Type:dict
- others_auths¶
Permissions of other users Type:dict