harborapi.models._models
These models have been generated from the official Harbor REST API Swagger 2.0 Schema using datamodel-code-generator version 0.13.0.
DEPRECATED: This module will be removed in a future version. Module kept only for backwards compatibility with old code generation scheme.
logger = logging.getLogger('harborapi')
module-attribute
StrDictRootModel
Source code in harborapi/models/base.py
__iter__()
Source code in harborapi/models/base.py
__getitem__(item)
__getattr__(attr)
StrRootModel
BaseModel
Source code in harborapi/models/base.py
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 |
|
model_config = ConfigDict(extra='allow', validate_assignment=True, strict=False)
class-attribute
instance-attribute
__rich_table_title__: str
property
The title to use for the table representation of the model. By default, the model's class name is be used.
__rich_panel_title__: Optional[str]
property
Title of the panel that wraps the table representation of the model.
convert_to(model, extra=False)
Converts the model to a different model type.
By default, only fields that are defined in the destination model are included in the converted model.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model |
Type[BaseModelType]
|
The model type to convert to. |
required |
extra |
bool
|
Whether to include fields that are not defined in the destination model. |
False
|
Returns:
Type | Description |
---|---|
BaseModelType
|
The converted model. |
Source code in harborapi/models/base.py
get_model_fields()
classmethod
Get a list of the names of the model's fields.
Returns:
Type | Description |
---|---|
List[str]
|
The names of the model's fields. |
__rich_console__(console, options)
Rich console representation of the model. Returns a panel containing tables representing the model's fields and values. If the model has a nested model, the nested model's table representation is printed after the main table.
See: https://rich.readthedocs.io/en/latest/protocol.html#console-render
Source code in harborapi/models/base.py
as_panel(title=None, **kwargs)
Returns table representation of model wrapped in a Panel.
Passes all keyword arguments to as_table
.
Returns:
Type | Description |
---|---|
Panel
|
A Rich panel containing the table representation of the model. |
Source code in harborapi/models/base.py
as_table(with_description=False, max_depth=None, parent_field=None, _depth=1)
Returns a Rich table representation of the model, and any nested models.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
with_description |
bool
|
Whether to include the description of the model fields. |
False
|
max_depth |
Optional[int]
|
The maximum depth to print nested models.
|
None
|
parent_field |
Optional[str]
|
The title of the parent field that contains this model. Used when printing submodels. |
None
|
_depth |
int
|
DO NOT SET THIS. This is used internally to track the current depth level. |
1
|
Returns:
Type | Description |
---|---|
Iterable[Table]
|
A generator of Rich tables representing the model and any nested models. |
Source code in harborapi/models/base.py
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 |
|
Severity
A standard scale for measuring the severity of a vulnerability.
Unknown
- either a security problem that has not been assigned to a priority yet or a priority that the scanner did not recognize.Negligible
- technically a security problem, but is only theoretical in nature, requires a very special situation, has almost no install base, or does no real damage.Low
- a security problem, but is hard to exploit due to environment, requires a user-assisted attack, a small install base, or does very little damage.Medium
- a real security problem, and is exploitable for many people. Includes network daemon denial of service attacks, cross-site scripting, and gaining user privileges.High
- a real problem, exploitable for many people in a default installation. Includes serious remote denial of service, local root privilege escalations, or data loss.Critical
- a world-burning problem, exploitable for nearly all people in a default installation. Includes remote root privilege escalations, or massive data loss.
Source code in harborapi/models/scanner.py
unknown = 'Unknown'
class-attribute
instance-attribute
negligible = 'Negligible'
class-attribute
instance-attribute
low = 'Low'
class-attribute
instance-attribute
medium = 'Medium'
class-attribute
instance-attribute
high = 'High'
class-attribute
instance-attribute
critical = 'Critical'
class-attribute
instance-attribute
none = 'None'
class-attribute
instance-attribute
__gt__(other)
__ge__(other)
__lt__(other)
Error
Error response from Harbor.
Source code in harborapi/models/models.py
code: Optional[str] = Field(default=None, description='The error code')
class-attribute
instance-attribute
message: Optional[str] = Field(default=None, description='The error message')
class-attribute
instance-attribute
SearchRepository
Repository search result.
Source code in harborapi/models/models.py
project_id: Optional[int] = Field(default=None, description='The ID of the project that the repository belongs to')
class-attribute
instance-attribute
project_name: Optional[str] = Field(default=None, description='The name of the project that the repository belongs to')
class-attribute
instance-attribute
project_public: Optional[bool] = Field(default=None, description='The flag to indicate the publicity of the project that the repository belongs to (1 is public, 0 is not)')
class-attribute
instance-attribute
repository_name: Optional[str] = Field(default=None, description='The name of the repository')
class-attribute
instance-attribute
pull_count: Optional[int] = Field(default=None, description='The count how many times the repository is pulled')
class-attribute
instance-attribute
artifact_count: Optional[int] = Field(default=None, description='The count of artifacts in the repository')
class-attribute
instance-attribute
Repository
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The ID of the repository')
class-attribute
instance-attribute
project_id: Optional[int] = Field(default=None, description='The ID of the project that the repository belongs to')
class-attribute
instance-attribute
name: Optional[str] = Field(default=None, description='The name of the repository')
class-attribute
instance-attribute
description: Optional[str] = Field(default=None, description='The description of the repository')
class-attribute
instance-attribute
artifact_count: Optional[int] = Field(default=None, description='The count of the artifacts inside the repository')
class-attribute
instance-attribute
pull_count: Optional[int] = Field(default=None, description='The count that the artifact inside the repository pulled')
class-attribute
instance-attribute
creation_time: Optional[AwareDatetime] = Field(default=None, description='The creation time of the repository')
class-attribute
instance-attribute
update_time: Optional[AwareDatetime] = Field(default=None, description='The update time of the repository')
class-attribute
instance-attribute
base_name: str
property
project_name: str
property
split_name()
Split name into tuple of project and repository name
Returns:
Type | Description |
---|---|
Optional[Tuple[str, str]]
|
Tuple of project name and repo name |
Source code in harborapi/models/models.py
Tag
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The ID of the tag')
class-attribute
instance-attribute
repository_id: Optional[int] = Field(default=None, description='The ID of the repository that the tag belongs to')
class-attribute
instance-attribute
artifact_id: Optional[int] = Field(default=None, description='The ID of the artifact that the tag attached to')
class-attribute
instance-attribute
name: Optional[str] = Field(default=None, description='The name of the tag')
class-attribute
instance-attribute
push_time: Optional[AwareDatetime] = Field(default=None, description='The push time of the tag')
class-attribute
instance-attribute
pull_time: Optional[AwareDatetime] = Field(default=None, description='The latest pull time of the tag')
class-attribute
instance-attribute
immutable: Optional[bool] = Field(default=None, description='The immutable status of the tag')
class-attribute
instance-attribute
ExtraAttrs
Annotations
AdditionLink
Source code in harborapi/models/models.py
href: Optional[str] = Field(default=None, description='The link of the addition')
class-attribute
instance-attribute
absolute: Optional[bool] = Field(default=None, description='Determine whether the link is an absolute URL or not')
class-attribute
instance-attribute
Platform
Source code in harborapi/models/models.py
architecture: Optional[str] = Field(default=None, description='The architecture that the artifact applys to')
class-attribute
instance-attribute
os: Optional[str] = Field(default=None, description='The OS that the artifact applys to')
class-attribute
instance-attribute
field_os_version_: Optional[str] = Field(default=None, alias="'os.version'", description='The version of the OS that the artifact applys to')
class-attribute
instance-attribute
field_os_features_: Optional[List[str]] = Field(default=None, alias="'os.features'", description='The features of the OS that the artifact applys to')
class-attribute
instance-attribute
variant: Optional[str] = Field(default=None, description='The variant of the CPU')
class-attribute
instance-attribute
Label
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The ID of the label')
class-attribute
instance-attribute
name: Optional[str] = Field(default=None, description='The name the label')
class-attribute
instance-attribute
description: Optional[str] = Field(default=None, description='The description the label')
class-attribute
instance-attribute
color: Optional[str] = Field(default=None, description='The color the label')
class-attribute
instance-attribute
scope: Optional[str] = Field(default=None, description='The scope the label')
class-attribute
instance-attribute
project_id: Optional[int] = Field(default=None, description='The ID of project that the label belongs to')
class-attribute
instance-attribute
creation_time: Optional[AwareDatetime] = Field(default=None, description='The creation time the label')
class-attribute
instance-attribute
update_time: Optional[AwareDatetime] = Field(default=None, description='The update time of the label')
class-attribute
instance-attribute
Scanner
Source code in harborapi/models/models.py
name: Optional[str] = Field(default=None, description='Name of the scanner', examples=['Trivy'])
class-attribute
instance-attribute
vendor: Optional[str] = Field(default=None, description='Name of the scanner provider', examples=['Aqua Security'])
class-attribute
instance-attribute
version: Optional[str] = Field(default=None, description='Version of the scanner adapter', examples=['v0.9.1'])
class-attribute
instance-attribute
SBOMOverview
The generate SBOM overview information
Source code in harborapi/models/models.py
start_time: Optional[AwareDatetime] = Field(default=None, description='The start time of the generating sbom report task', examples=['2006-01-02T14:04:05Z'])
class-attribute
instance-attribute
end_time: Optional[AwareDatetime] = Field(default=None, description='The end time of the generating sbom report task', examples=['2006-01-02T15:04:05Z'])
class-attribute
instance-attribute
scan_status: Optional[str] = Field(default=None, description='The status of the generating SBOM task')
class-attribute
instance-attribute
sbom_digest: Optional[str] = Field(default=None, description='The digest of the generated SBOM accessory')
class-attribute
instance-attribute
report_id: Optional[str] = Field(default=None, description='id of the native scan report', examples=['5f62c830-f996-11e9-957f-0242c0a89008'])
class-attribute
instance-attribute
duration: Optional[int] = Field(default=None, description='Time in seconds required to create the report', examples=[300])
class-attribute
instance-attribute
scanner: Optional[Scanner] = None
class-attribute
instance-attribute
VulnerabilitySummary
Summary of vulnerabilities found in a scan.
Source code in harborapi/models/models.py
total: Optional[int] = Field(default=None, description='The total number of the found vulnerabilities', examples=[500])
class-attribute
instance-attribute
fixable: Optional[int] = Field(default=None, description='The number of the fixable vulnerabilities', examples=[100])
class-attribute
instance-attribute
summary: Optional[Dict[str, int]] = Field(default=None, description='Numbers of the vulnerabilities with different severity', examples=[{'Critical': 5, 'High': 5}])
class-attribute
instance-attribute
critical: int = Field(default=0, alias='Critical', description='The number of critical vulnerabilities detected.')
class-attribute
instance-attribute
high: int = Field(default=0, alias='High', description='The number of critical vulnerabilities detected.')
class-attribute
instance-attribute
medium: int = Field(default=0, alias='Medium', description='The number of critical vulnerabilities detected.')
class-attribute
instance-attribute
low: int = Field(default=0, alias='Low', description='The number of critical vulnerabilities detected.')
class-attribute
instance-attribute
unknown: int = Field(default=0, alias='Unknown', description='The number of critical vulnerabilities detected.')
class-attribute
instance-attribute
AuditLog
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The ID of the audit log entry.')
class-attribute
instance-attribute
username: Optional[str] = Field(default=None, description='Username of the user in this log entry.')
class-attribute
instance-attribute
resource: Optional[str] = Field(default=None, description='Name of the repository in this log entry.')
class-attribute
instance-attribute
resource_type: Optional[str] = Field(default=None, description='Tag of the repository in this log entry.')
class-attribute
instance-attribute
operation: Optional[str] = Field(default=None, description='The operation against the repository in this log entry.')
class-attribute
instance-attribute
op_time: Optional[AwareDatetime] = Field(default=None, description='The time when this operation is triggered.', examples=['2006-01-02T15:04:05Z'])
class-attribute
instance-attribute
Metadata
Source code in harborapi/models/models.py
id: Optional[str] = Field(default=None, description='id')
class-attribute
instance-attribute
name: Optional[str] = Field(default=None, description='name')
class-attribute
instance-attribute
icon: Optional[str] = Field(default=None, description='icon')
class-attribute
instance-attribute
maintainers: Optional[List[str]] = Field(default=None, description='maintainers')
class-attribute
instance-attribute
version: Optional[str] = Field(default=None, description='version')
class-attribute
instance-attribute
source: Optional[str] = Field(default=None, description='source')
class-attribute
instance-attribute
Instance
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='Unique ID')
class-attribute
instance-attribute
name: Optional[str] = Field(default=None, description='Instance name')
class-attribute
instance-attribute
description: Optional[str] = Field(default=None, description='Description of instance')
class-attribute
instance-attribute
vendor: Optional[str] = Field(default=None, description='Based on which driver, identified by ID')
class-attribute
instance-attribute
endpoint: Optional[str] = Field(default=None, description='The service endpoint of this instance')
class-attribute
instance-attribute
auth_mode: Optional[str] = Field(default=None, description='The authentication way supported')
class-attribute
instance-attribute
auth_info: Optional[Dict[str, str]] = Field(default=None, description='The auth credential data if exists')
class-attribute
instance-attribute
status: Optional[str] = Field(default=None, description='The health status')
class-attribute
instance-attribute
enabled: Optional[bool] = Field(default=None, description='Whether the instance is activated or not')
class-attribute
instance-attribute
default: Optional[bool] = Field(default=None, description='Whether the instance is default or not')
class-attribute
instance-attribute
insecure: Optional[bool] = Field(default=None, description='Whether the instance endpoint is insecure or not')
class-attribute
instance-attribute
setup_timestamp: Optional[int] = Field(default=None, description='The timestamp of instance setting up')
class-attribute
instance-attribute
PreheatPolicy
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The ID of preheat policy')
class-attribute
instance-attribute
name: Optional[str] = Field(default=None, description='The Name of preheat policy')
class-attribute
instance-attribute
description: Optional[str] = Field(default=None, description='The Description of preheat policy')
class-attribute
instance-attribute
project_id: Optional[int] = Field(default=None, description='The ID of preheat policy project')
class-attribute
instance-attribute
provider_id: Optional[int] = Field(default=None, description='The ID of preheat policy provider')
class-attribute
instance-attribute
provider_name: Optional[str] = Field(default=None, description='The Name of preheat policy provider')
class-attribute
instance-attribute
filters: Optional[str] = Field(default=None, description='The Filters of preheat policy')
class-attribute
instance-attribute
trigger: Optional[str] = Field(default=None, description='The Trigger of preheat policy')
class-attribute
instance-attribute
enabled: Optional[bool] = Field(default=None, description='Whether the preheat policy enabled')
class-attribute
instance-attribute
creation_time: Optional[AwareDatetime] = Field(default=None, description='The Create Time of preheat policy')
class-attribute
instance-attribute
update_time: Optional[AwareDatetime] = Field(default=None, description='The Update Time of preheat policy')
class-attribute
instance-attribute
Metrics
Source code in harborapi/models/models.py
task_count: Optional[int] = Field(default=None, description='The count of task')
class-attribute
instance-attribute
success_task_count: Optional[int] = Field(default=None, description='The count of success task')
class-attribute
instance-attribute
error_task_count: Optional[int] = Field(default=None, description='The count of error task')
class-attribute
instance-attribute
pending_task_count: Optional[int] = Field(default=None, description='The count of pending task')
class-attribute
instance-attribute
running_task_count: Optional[int] = Field(default=None, description='The count of running task')
class-attribute
instance-attribute
scheduled_task_count: Optional[int] = Field(default=None, description='The count of scheduled task')
class-attribute
instance-attribute
stopped_task_count: Optional[int] = Field(default=None, description='The count of stopped task')
class-attribute
instance-attribute
Execution
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The ID of execution')
class-attribute
instance-attribute
vendor_type: Optional[str] = Field(default=None, description='The vendor type of execution')
class-attribute
instance-attribute
vendor_id: Optional[int] = Field(default=None, description='The vendor id of execution')
class-attribute
instance-attribute
status: Optional[str] = Field(default=None, description='The status of execution')
class-attribute
instance-attribute
status_message: Optional[str] = Field(default=None, description='The status message of execution')
class-attribute
instance-attribute
metrics: Optional[Metrics] = None
class-attribute
instance-attribute
trigger: Optional[str] = Field(default=None, description='The trigger of execution')
class-attribute
instance-attribute
extra_attrs: Optional[ExtraAttrs] = None
class-attribute
instance-attribute
start_time: Optional[str] = Field(default=None, description='The start time of execution')
class-attribute
instance-attribute
end_time: Optional[str] = Field(default=None, description='The end time of execution')
class-attribute
instance-attribute
Task
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The ID of task')
class-attribute
instance-attribute
execution_id: Optional[int] = Field(default=None, description='The ID of task execution')
class-attribute
instance-attribute
status: Optional[str] = Field(default=None, description='The status of task')
class-attribute
instance-attribute
status_message: Optional[str] = Field(default=None, description='The status message of task')
class-attribute
instance-attribute
run_count: Optional[int] = Field(default=None, description='The count of task run')
class-attribute
instance-attribute
extra_attrs: Optional[ExtraAttrs] = None
class-attribute
instance-attribute
creation_time: Optional[str] = Field(default=None, description='The creation time of task')
class-attribute
instance-attribute
update_time: Optional[str] = Field(default=None, description='The update time of task')
class-attribute
instance-attribute
start_time: Optional[str] = Field(default=None, description='The start time of task')
class-attribute
instance-attribute
end_time: Optional[str] = Field(default=None, description='The end time of task')
class-attribute
instance-attribute
ProviderUnderProject
Source code in harborapi/models/models.py
id: Optional[int] = None
class-attribute
instance-attribute
provider: Optional[str] = None
class-attribute
instance-attribute
enabled: Optional[bool] = None
class-attribute
instance-attribute
default: Optional[bool] = None
class-attribute
instance-attribute
Icon
Source code in harborapi/models/models.py
content_type: Optional[str] = Field(default=None, alias='content-type', description='The content type of the icon')
class-attribute
instance-attribute
content: Optional[str] = Field(default=None, description='The base64 encoded content of the icon')
class-attribute
instance-attribute
ProjectDeletable
Source code in harborapi/models/models.py
deletable: Optional[bool] = Field(default=None, description='Whether the project can be deleted.')
class-attribute
instance-attribute
message: Optional[str] = Field(default=None, description='The detail message when the project can not be deleted.')
class-attribute
instance-attribute
ProjectMetadata
Source code in harborapi/models/models.py
public: Optional[str] = Field(default=None, description='The public status of the project. The valid values are "true", "false".')
class-attribute
instance-attribute
enable_content_trust: Optional[str] = Field(default=None, description='Whether content trust is enabled or not. If it is enabled, user can\'t pull unsigned images from this project. The valid values are "true", "false".')
class-attribute
instance-attribute
enable_content_trust_cosign: Optional[str] = Field(default=None, description='Whether cosign content trust is enabled or not. If it is enabled, user can\'t pull images without cosign signature from this project. The valid values are "true", "false".')
class-attribute
instance-attribute
prevent_vul: Optional[str] = Field(default=None, description='Whether prevent the vulnerable images from running. The valid values are "true", "false".')
class-attribute
instance-attribute
severity: Optional[str] = Field(default=None, description='If the vulnerability is high than severity defined here, the images can\'t be pulled. The valid values are "none", "low", "medium", "high", "critical".')
class-attribute
instance-attribute
auto_scan: Optional[str] = Field(default=None, description='Whether scan images automatically when pushing. The valid values are "true", "false".')
class-attribute
instance-attribute
auto_sbom_generation: Optional[str] = Field(default=None, description='Whether generating SBOM automatically when pushing a subject artifact. The valid values are "true", "false".')
class-attribute
instance-attribute
reuse_sys_cve_allowlist: Optional[str] = Field(default=None, description='Whether this project reuse the system level CVE allowlist as the allowlist of its own. The valid values are "true", "false". If it is set to "true" the actual allowlist associate with this project, if any, will be ignored.')
class-attribute
instance-attribute
retention_id: Optional[Union[str, int]] = Field(default=None, description='The ID of the tag retention policy for the project')
class-attribute
instance-attribute
proxy_speed_kb: Optional[str] = Field(default=None, description='The bandwidth limit of proxy cache, in Kbps (kilobits per second). It limits the communication between Harbor and the upstream registry, not the client and the Harbor.')
class-attribute
instance-attribute
ProjectScanner
CVEAllowlistItem
CVE allowlist item.
Source code in harborapi/models/models.py
cve_id: Optional[str] = Field(default=None, description='The ID of the CVE, such as "CVE-2019-10164"')
class-attribute
instance-attribute
ReplicationTriggerSettings
Source code in harborapi/models/models.py
cron: Optional[str] = Field(default=None, description='The cron string for scheduled trigger')
class-attribute
instance-attribute
ReplicationFilter
Source code in harborapi/models/models.py
type: Optional[str] = Field(default=None, description='The replication policy filter type.')
class-attribute
instance-attribute
value: Union[str, Dict[str, Any], None] = Field(default=None, description='The value of replication policy filter.')
class-attribute
instance-attribute
decoration: Optional[str] = Field(default=None, description='matches or excludes the result')
class-attribute
instance-attribute
RegistryCredential
Source code in harborapi/models/models.py
type: Optional[str] = Field(default=None, description="Credential type, such as 'basic', 'oauth'.")
class-attribute
instance-attribute
access_key: Optional[str] = Field(default=None, description="Access key, e.g. user name when credential type is 'basic'.")
class-attribute
instance-attribute
access_secret: Optional[str] = Field(default=None, description="Access secret, e.g. password when credential type is 'basic'.")
class-attribute
instance-attribute
Registry
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The registry ID.')
class-attribute
instance-attribute
url: Optional[str] = Field(default=None, description='The registry URL string.')
class-attribute
instance-attribute
name: Optional[str] = Field(default=None, description='The registry name.')
class-attribute
instance-attribute
credential: Optional[RegistryCredential] = None
class-attribute
instance-attribute
type: Optional[str] = Field(default=None, description="Type of the registry, e.g. 'harbor'.")
class-attribute
instance-attribute
insecure: Optional[bool] = Field(default=None, description='Whether or not the certificate will be verified when Harbor tries to access the server.')
class-attribute
instance-attribute
description: Optional[str] = Field(default=None, description='Description of the registry.')
class-attribute
instance-attribute
status: Optional[str] = Field(default=None, description='Health status of the registry.')
class-attribute
instance-attribute
creation_time: Optional[AwareDatetime] = Field(default=None, description='The create time of the policy.')
class-attribute
instance-attribute
update_time: Optional[AwareDatetime] = Field(default=None, description='The update time of the policy.')
class-attribute
instance-attribute
RegistryUpdate
Source code in harborapi/models/models.py
name: Optional[str] = Field(default=None, description='The registry name.')
class-attribute
instance-attribute
description: Optional[str] = Field(default=None, description='Description of the registry.')
class-attribute
instance-attribute
url: Optional[str] = Field(default=None, description='The registry URL.')
class-attribute
instance-attribute
credential_type: Optional[str] = Field(default=None, description="Credential type of the registry, e.g. 'basic'.")
class-attribute
instance-attribute
access_key: Optional[str] = Field(default=None, description='The registry access key.')
class-attribute
instance-attribute
access_secret: Optional[str] = Field(default=None, description='The registry access secret.')
class-attribute
instance-attribute
insecure: Optional[bool] = Field(default=None, description='Whether or not the certificate will be verified when Harbor tries to access the server.')
class-attribute
instance-attribute
RegistryPing
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The registry ID.')
class-attribute
instance-attribute
type: Optional[str] = Field(default=None, description="Type of the registry, e.g. 'harbor'.")
class-attribute
instance-attribute
url: Optional[str] = Field(default=None, description='The registry URL.')
class-attribute
instance-attribute
credential_type: Optional[str] = Field(default=None, description="Credential type of the registry, e.g. 'basic'.")
class-attribute
instance-attribute
access_key: Optional[str] = Field(default=None, description='The registry access key.')
class-attribute
instance-attribute
access_secret: Optional[str] = Field(default=None, description='The registry access secret.')
class-attribute
instance-attribute
insecure: Optional[bool] = Field(default=None, description='Whether or not the certificate will be verified when Harbor tries to access the server.')
class-attribute
instance-attribute
RegistryProviderCredentialPattern
Pattern for a registry credential.
Source code in harborapi/models/models.py
access_key_type: Optional[str] = Field(default=None, description='The access key type')
class-attribute
instance-attribute
access_key_data: Optional[str] = Field(default=None, description='The access key data')
class-attribute
instance-attribute
access_secret_type: Optional[str] = Field(default=None, description='The access secret type')
class-attribute
instance-attribute
access_secret_data: Optional[str] = Field(default=None, description='The access secret data')
class-attribute
instance-attribute
RegistryEndpoint
Registry endpoint configuration.
Source code in harborapi/models/models.py
key: Optional[str] = Field(default=None, description='The endpoint key')
class-attribute
instance-attribute
value: Optional[str] = Field(default=None, description='The endpoint value')
class-attribute
instance-attribute
FilterStyle
Style of the resource filter.
Source code in harborapi/models/models.py
type: Optional[str] = Field(default=None, description='The filter type')
class-attribute
instance-attribute
style: Optional[str] = Field(default=None, description='The filter style')
class-attribute
instance-attribute
values: Optional[List[str]] = Field(default=None, description='The filter values')
class-attribute
instance-attribute
ResourceList
ReplicationExecution
The execution of a replication job.
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The ID of the execution')
class-attribute
instance-attribute
policy_id: Optional[int] = Field(default=None, description='The ID if the policy that the execution belongs to')
class-attribute
instance-attribute
status: Optional[str] = Field(default=None, description='The status of the execution')
class-attribute
instance-attribute
trigger: Optional[str] = Field(default=None, description='The trigger mode')
class-attribute
instance-attribute
start_time: Optional[AwareDatetime] = Field(default=None, description='The start time')
class-attribute
instance-attribute
end_time: Optional[AwareDatetime] = Field(default=None, description='The end time')
class-attribute
instance-attribute
status_text: Optional[str] = Field(default=None, description='The status text')
class-attribute
instance-attribute
total: Optional[int] = Field(default=None, description='The total count of all executions')
class-attribute
instance-attribute
failed: Optional[int] = Field(default=None, description='The count of failed executions')
class-attribute
instance-attribute
succeed: Optional[int] = Field(default=None, description='The count of succeed executions')
class-attribute
instance-attribute
in_progress: Optional[int] = Field(default=None, description='The count of in_progress executions')
class-attribute
instance-attribute
stopped: Optional[int] = Field(default=None, description='The count of stopped executions')
class-attribute
instance-attribute
StartReplicationExecution
Source code in harborapi/models/models.py
policy_id: Optional[int] = Field(default=None, description='The ID of policy that the execution belongs to.')
class-attribute
instance-attribute
ReplicationTask
A task that is a part of a replication job.
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The ID of the task')
class-attribute
instance-attribute
execution_id: Optional[int] = Field(default=None, description='The ID of the execution that the task belongs to')
class-attribute
instance-attribute
status: Optional[str] = Field(default=None, description='The status of the task')
class-attribute
instance-attribute
job_id: Optional[str] = Field(default=None, description='The ID of the underlying job that the task related to')
class-attribute
instance-attribute
operation: Optional[str] = Field(default=None, description='The operation of the task')
class-attribute
instance-attribute
resource_type: Optional[str] = Field(default=None, description='The type of the resource that the task operates')
class-attribute
instance-attribute
src_resource: Optional[str] = Field(default=None, description='The source resource that the task operates')
class-attribute
instance-attribute
dst_resource: Optional[str] = Field(default=None, description='The destination resource that the task operates')
class-attribute
instance-attribute
start_time: Optional[AwareDatetime] = Field(default=None, description='The start time of the task')
class-attribute
instance-attribute
end_time: Optional[AwareDatetime] = Field(default=None, description='The end time of the task')
class-attribute
instance-attribute
RobotCreated
Response for robot account creation.
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The ID of the robot')
class-attribute
instance-attribute
name: Optional[str] = Field(default=None, description='The name of the robot')
class-attribute
instance-attribute
secret: Optional[str] = Field(default=None, description='The secret of the robot')
class-attribute
instance-attribute
creation_time: Optional[AwareDatetime] = Field(default=None, description='The creation time of the robot.')
class-attribute
instance-attribute
expires_at: Optional[int] = Field(default=None, description='The expiration date of the robot')
class-attribute
instance-attribute
RobotSec
Response for robot account secret refresh/update.
Source code in harborapi/models/models.py
secret: Optional[str] = Field(default=None, description='The secret of the robot')
class-attribute
instance-attribute
Access
Source code in harborapi/models/models.py
resource: Optional[str] = Field(default=None, description='The resource of the access. Possible resources are listed here for system and project level https://github.com/goharbor/harbor/blob/main/src/common/rbac/const.go')
class-attribute
instance-attribute
action: Optional[str] = Field(default=None, description='The action of the access. Possible actions are *, pull, push, create, read, update, delete, list, operate, scanner-pull and stop.')
class-attribute
instance-attribute
effect: Optional[str] = Field(default=None, description='The effect of the access')
class-attribute
instance-attribute
RobotCreateV1
Source code in harborapi/models/models.py
name: Optional[str] = Field(default=None, description='The name of robot account')
class-attribute
instance-attribute
description: Optional[str] = Field(default=None, description='The description of robot account')
class-attribute
instance-attribute
expires_at: Optional[int] = Field(default=None, description='The expiration time on or after which the JWT MUST NOT be accepted for processing.')
class-attribute
instance-attribute
access: Optional[List[Access]] = Field(default=None, description='The permission of robot account')
class-attribute
instance-attribute
Storage
Source code in harborapi/models/models.py
total: Optional[int] = Field(default=None, description='Total volume size.')
class-attribute
instance-attribute
free: Optional[int] = Field(default=None, description='Free volume size.')
class-attribute
instance-attribute
AuthproxySetting
Source code in harborapi/models/models.py
endpoint: Optional[str] = Field(default=None, description="The fully qualified URI of login endpoint of authproxy, such as 'https://192.168.1.2:8443/login'")
class-attribute
instance-attribute
tokenreivew_endpoint: Optional[str] = Field(default=None, description="The fully qualified URI of token review endpoint of authproxy, such as 'https://192.168.1.2:8443/tokenreview'")
class-attribute
instance-attribute
skip_search: Optional[bool] = Field(default=None, description='The flag to determine whether Harbor can skip search the user/group when adding him as a member.')
class-attribute
instance-attribute
verify_cert: Optional[bool] = Field(default=None, description='The flag to determine whether Harbor should verify the certificate when connecting to the auth proxy.')
class-attribute
instance-attribute
server_certificate: Optional[str] = Field(default=None, description='The certificate to be pinned when connecting auth proxy.')
class-attribute
instance-attribute
SystemInfo
Source code in harborapi/models/models.py
storage: Optional[List[Storage]] = Field(default=None, description='The storage of system.')
class-attribute
instance-attribute
Type
The schedule type. The valid values are 'Hourly', 'Daily', 'Weekly', 'Custom', 'Manual', 'None' and 'Schedule'. 'Manual' means to trigger it right away, 'Schedule' means to trigger it by a specified cron schedule and 'None' means to cancel the schedule.
Source code in harborapi/models/models.py
hourly = 'Hourly'
class-attribute
instance-attribute
daily = 'Daily'
class-attribute
instance-attribute
weekly = 'Weekly'
class-attribute
instance-attribute
custom = 'Custom'
class-attribute
instance-attribute
manual = 'Manual'
class-attribute
instance-attribute
Trigger schedule right away.
none = 'None'
class-attribute
instance-attribute
Cancel the schedule.
schedule = 'Schedule'
class-attribute
instance-attribute
Trigger based on cron schedule.
ScheduleObj
Source code in harborapi/models/models.py
type: Optional[Type] = Field(default=None, description="The schedule type. The valid values are 'Hourly', 'Daily', 'Weekly', 'Custom', 'Manual', 'None' and 'Schedule'.\n'Manual' means to trigger it right away, 'Schedule' means to trigger it by a specified cron schedule and\n'None' means to cancel the schedule.\n")
class-attribute
instance-attribute
cron: Optional[str] = Field(default=None, description='A cron expression, a time-based job scheduler.')
class-attribute
instance-attribute
next_scheduled_time: Optional[AwareDatetime] = Field(default=None, description='The next time to schedule to run the job.')
class-attribute
instance-attribute
Trigger
Trigger type for a 'scan all' job.
Source code in harborapi/models/models.py
manual = 'Manual'
class-attribute
instance-attribute
schedule = 'Schedule'
class-attribute
instance-attribute
event = 'Event'
class-attribute
instance-attribute
Stats
Progress of the 'scan all' process.
Source code in harborapi/models/models.py
total: Optional[int] = Field(default=None, description='The total number of scan processes triggered by the scan all action', examples=[100])
class-attribute
instance-attribute
completed: Optional[int] = Field(default=None, description='The number of the finished scan processes triggered by the scan all action', examples=[90])
class-attribute
instance-attribute
metrics: Optional[Dict[str, int]] = Field(default=None, description='The metrics data for the each status', examples=[{'Success': 5, 'Error': 2, 'Running': 3}])
class-attribute
instance-attribute
ongoing: Optional[bool] = Field(default=None, description='A flag indicating job status of scan all.')
class-attribute
instance-attribute
trigger: Optional[Trigger] = Field(default=None, description='The trigger of the scan all job.')
class-attribute
instance-attribute
RetentionRuleParamMetadata
Parameters for a retention rule.
Source code in harborapi/models/models.py
type: Optional[str] = None
class-attribute
instance-attribute
unit: Optional[str] = None
class-attribute
instance-attribute
required: Optional[bool] = None
class-attribute
instance-attribute
RetentionSelectorMetadata
Metadata for a retention rule selector.
Source code in harborapi/models/models.py
display_text: Optional[str] = None
class-attribute
instance-attribute
kind: Optional[str] = None
class-attribute
instance-attribute
decorations: Optional[List[str]] = None
class-attribute
instance-attribute
RetentionRuleTrigger
Source code in harborapi/models/models.py
kind: Optional[str] = None
class-attribute
instance-attribute
settings: Optional[Dict[str, Any]] = None
class-attribute
instance-attribute
references: Optional[Dict[str, Any]] = None
class-attribute
instance-attribute
RetentionPolicyScope
RetentionSelector
Source code in harborapi/models/models.py
kind: Optional[str] = None
class-attribute
instance-attribute
decoration: Optional[str] = None
class-attribute
instance-attribute
pattern: Optional[str] = None
class-attribute
instance-attribute
extras: Optional[str] = None
class-attribute
instance-attribute
RetentionExecution
Source code in harborapi/models/models.py
id: Optional[int] = None
class-attribute
instance-attribute
policy_id: Optional[int] = None
class-attribute
instance-attribute
start_time: Optional[str] = None
class-attribute
instance-attribute
end_time: Optional[str] = None
class-attribute
instance-attribute
status: Optional[str] = None
class-attribute
instance-attribute
trigger: Optional[str] = None
class-attribute
instance-attribute
dry_run: Optional[bool] = None
class-attribute
instance-attribute
RetentionExecutionTask
Source code in harborapi/models/models.py
id: Optional[int] = None
class-attribute
instance-attribute
execution_id: Optional[int] = None
class-attribute
instance-attribute
repository: Optional[str] = None
class-attribute
instance-attribute
job_id: Optional[str] = None
class-attribute
instance-attribute
status: Optional[str] = None
class-attribute
instance-attribute
status_code: Optional[int] = None
class-attribute
instance-attribute
status_revision: Optional[int] = None
class-attribute
instance-attribute
start_time: Optional[str] = None
class-attribute
instance-attribute
end_time: Optional[str] = None
class-attribute
instance-attribute
total: Optional[int] = None
class-attribute
instance-attribute
retained: Optional[int] = None
class-attribute
instance-attribute
QuotaUpdateReq
QuotaRefObject
Quota
Quota object.
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='ID of the quota')
class-attribute
instance-attribute
ref: Optional[QuotaRefObject] = None
class-attribute
instance-attribute
hard: Optional[ResourceList] = None
class-attribute
instance-attribute
used: Optional[ResourceList] = None
class-attribute
instance-attribute
creation_time: Optional[AwareDatetime] = Field(default=None, description='the creation time of the quota')
class-attribute
instance-attribute
update_time: Optional[AwareDatetime] = Field(default=None, description='the update time of the quota')
class-attribute
instance-attribute
ScannerRegistration
A registered scanner adapter.
Source code in harborapi/models/models.py
1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 |
|
uuid: Optional[str] = Field(default=None, description='The unique identifier of this registration.')
class-attribute
instance-attribute
name: Optional[str] = Field(default=None, description='The name of this registration.', examples=['Trivy'])
class-attribute
instance-attribute
description: Optional[str] = Field(default=None, description='An optional description of this registration.', examples=['A free-to-use tool that scans container images for package vulnerabilities.\n'])
class-attribute
instance-attribute
url: Optional[AnyUrl] = Field(default=None, description='A base URL of the scanner adapter', examples=['http://harbor-scanner-trivy:8080'])
class-attribute
instance-attribute
disabled: Optional[bool] = Field(default=False, description='Indicate whether the registration is enabled or not')
class-attribute
instance-attribute
is_default: Optional[bool] = Field(default=False, description='Indicate if the registration is set as the system default one')
class-attribute
instance-attribute
auth: Optional[str] = Field(default='', description='Specify what authentication approach is adopted for the HTTP communications.\nSupported types Basic", "Bearer" and api key header "X-ScannerAdapter-API-Key"\n', examples=['Bearer'])
class-attribute
instance-attribute
access_credential: Optional[str] = Field(default=None, description='An optional value of the HTTP Authorization header sent with each request to the Scanner Adapter API.\n', examples=['Bearer: JWTTOKENGOESHERE'])
class-attribute
instance-attribute
skip_cert_verify: Optional[bool] = Field(default=False, alias='skip_certVerify', description='Indicate if skip the certificate verification when sending HTTP requests')
class-attribute
instance-attribute
use_internal_addr: Optional[bool] = Field(default=False, description='Indicate whether use internal registry addr for the scanner to pull content or not')
class-attribute
instance-attribute
create_time: Optional[AwareDatetime] = Field(default=None, description='The creation time of this registration')
class-attribute
instance-attribute
update_time: Optional[AwareDatetime] = Field(default=None, description='The update time of this registration')
class-attribute
instance-attribute
adapter: Optional[str] = Field(default=None, description='Optional property to describe the name of the scanner registration', examples=['Trivy'])
class-attribute
instance-attribute
vendor: Optional[str] = Field(default=None, description='Optional property to describe the vendor of the scanner registration', examples=['CentOS'])
class-attribute
instance-attribute
version: Optional[str] = Field(default=None, description='Optional property to describe the version of the scanner registration', examples=['1.0.1'])
class-attribute
instance-attribute
health: Optional[str] = Field(default='', description='Indicate the healthy of the registration', examples=['healthy'])
class-attribute
instance-attribute
capabilities: Optional[Dict[str, Any]] = Field(default=None, description='Indicates the capabilities of the scanner, e.g. support_vulnerability or support_sbom.', examples=[{'support_vulnerability': True, 'support_sbom': True}])
class-attribute
instance-attribute
ScannerRegistrationReq
Source code in harborapi/models/models.py
name: str = Field(..., description='The name of this registration', examples=['Trivy'])
class-attribute
instance-attribute
description: Optional[str] = Field(default=None, description='An optional description of this registration.', examples=['A free-to-use tool that scans container images for package vulnerabilities.\n'])
class-attribute
instance-attribute
url: AnyUrl = Field(..., description='A base URL of the scanner adapter.', examples=['http://harbor-scanner-trivy:8080'])
class-attribute
instance-attribute
auth: Optional[str] = Field(default=None, description='Specify what authentication approach is adopted for the HTTP communications.\nSupported types Basic", "Bearer" and api key header "X-ScannerAdapter-API-Key"\n', examples=['Bearer'])
class-attribute
instance-attribute
access_credential: Optional[str] = Field(default=None, description='An optional value of the HTTP Authorization header sent with each request to the Scanner Adapter API.\n', examples=['Bearer: JWTTOKENGOESHERE'])
class-attribute
instance-attribute
skip_cert_verify: Optional[bool] = Field(default=False, alias='skip_certVerify', description='Indicate if skip the certificate verification when sending HTTP requests')
class-attribute
instance-attribute
use_internal_addr: Optional[bool] = Field(default=False, description='Indicate whether use internal registry addr for the scanner to pull content or not')
class-attribute
instance-attribute
disabled: Optional[bool] = Field(default=False, description='Indicate whether the registration is enabled or not')
class-attribute
instance-attribute
ScannerRegistrationSettings
Source code in harborapi/models/models.py
name: str = Field(..., description='The name of this registration', examples=['Trivy'])
class-attribute
instance-attribute
url: AnyUrl = Field(..., description='A base URL of the scanner adapter.', examples=['http://harbor-scanner-trivy:8080'])
class-attribute
instance-attribute
auth: Optional[str] = Field(default='', description='Specify what authentication approach is adopted for the HTTP communications.\nSupported types Basic", "Bearer" and api key header "X-ScannerAdapter-API-Key"\n')
class-attribute
instance-attribute
access_credential: Optional[str] = Field(default=None, description='An optional value of the HTTP Authorization header sent with each request to the Scanner Adapter API.\n', examples=['Bearer: JWTTOKENGOESHERE'])
class-attribute
instance-attribute
IsDefault
Source code in harborapi/models/models.py
is_default: Optional[bool] = Field(default=None, description='A flag indicating whether a scanner registration is default.')
class-attribute
instance-attribute
ScannerCapability
Source code in harborapi/models/models.py
type: Optional[str] = Field(default=None, description='Specify the type of scanner capability, like vulnerability or sbom\n', examples=['sbom'])
class-attribute
instance-attribute
consumes_mime_types: Optional[List[str]] = None
class-attribute
instance-attribute
produces_mime_types: Optional[List[str]] = None
class-attribute
instance-attribute
ScannerAdapterMetadata
Metadata for a scanner adapter.
Source code in harborapi/models/models.py
scanner: Optional[Scanner] = None
class-attribute
instance-attribute
capabilities: Optional[List[ScannerCapability]] = None
class-attribute
instance-attribute
properties: Optional[Dict[str, str]] = Field(default=None, examples=[{'harbor.scanner-adapter/registry-authorization-type': 'Bearer'}])
class-attribute
instance-attribute
ImmutableSelector
Source code in harborapi/models/models.py
kind: Optional[str] = None
class-attribute
instance-attribute
decoration: Optional[str] = None
class-attribute
instance-attribute
pattern: Optional[str] = None
class-attribute
instance-attribute
extras: Optional[str] = None
class-attribute
instance-attribute
LdapConf
LDAP configuration properties.
Source code in harborapi/models/models.py
ldap_url: Optional[str] = Field(default=None, description='The url of ldap service.')
class-attribute
instance-attribute
ldap_search_dn: Optional[str] = Field(default=None, description='The search dn of ldap service.')
class-attribute
instance-attribute
ldap_search_password: Optional[str] = Field(default=None, description='The search password of ldap service.')
class-attribute
instance-attribute
ldap_base_dn: Optional[str] = Field(default=None, description='The base dn of ldap service.')
class-attribute
instance-attribute
ldap_filter: Optional[str] = Field(default=None, description='The serach filter of ldap service.')
class-attribute
instance-attribute
ldap_uid: Optional[str] = Field(default=None, description='The serach uid from ldap service attributes.')
class-attribute
instance-attribute
ldap_scope: Optional[int] = Field(default=None, description='The serach scope of ldap service.')
class-attribute
instance-attribute
ldap_connection_timeout: Optional[int] = Field(default=None, description='The connect timeout of ldap service(second).')
class-attribute
instance-attribute
ldap_verify_cert: Optional[bool] = Field(default=None, description='Verify Ldap server certificate.')
class-attribute
instance-attribute
LdapPingResult
Result of a ping to an LDAP server.
Source code in harborapi/models/models.py
success: Optional[bool] = Field(default=None, description='Test success')
class-attribute
instance-attribute
message: Optional[str] = Field(default=None, description='The ping operation output message.')
class-attribute
instance-attribute
LdapImportUsers
Source code in harborapi/models/models.py
ldap_uid_list: Optional[List[str]] = Field(default=None, description='selected uid list')
class-attribute
instance-attribute
LdapFailedImportUser
Source code in harborapi/models/models.py
uid: Optional[str] = Field(default=None, description="the uid can't add to system.")
class-attribute
instance-attribute
error: Optional[str] = Field(default=None, description='fail reason.')
class-attribute
instance-attribute
LdapUser
Source code in harborapi/models/models.py
username: Optional[str] = Field(default=None, description='ldap username.')
class-attribute
instance-attribute
realname: Optional[str] = Field(default=None, description='The user realname from "uid" or "cn" attribute.')
class-attribute
instance-attribute
email: Optional[str] = Field(default=None, description='The user email address from "mail" or "email" attribute.')
class-attribute
instance-attribute
UserGroup
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The ID of the user group')
class-attribute
instance-attribute
group_name: Optional[str] = Field(default=None, description='The name of the user group')
class-attribute
instance-attribute
group_type: Optional[int] = Field(default=None, description='The group type, 1 for LDAP group, 2 for HTTP group, 3 for OIDC group.')
class-attribute
instance-attribute
ldap_group_dn: Optional[str] = Field(default=None, description='The DN of the LDAP group if group type is 1 (LDAP group).')
class-attribute
instance-attribute
UserGroupSearchItem
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The ID of the user group')
class-attribute
instance-attribute
group_name: Optional[str] = Field(default=None, description='The name of the user group')
class-attribute
instance-attribute
group_type: Optional[int] = Field(default=None, description='The group type, 1 for LDAP group, 2 for HTTP group, 3 for OIDC group.')
class-attribute
instance-attribute
EventType
Source code in harborapi/models/models.py
root: str = Field(..., description='Webhook supported event type.', examples=['PULL_ARTIFACT'])
class-attribute
instance-attribute
NotifyType
Source code in harborapi/models/models.py
root: str = Field(..., description='Webhook supported notify type.', examples=['http'])
class-attribute
instance-attribute
PayloadFormatType
Source code in harborapi/models/models.py
root: str = Field(..., description='The type of webhook paylod format.', examples=['CloudEvents'])
class-attribute
instance-attribute
PayloadFormat
Webhook payload format types.
Source code in harborapi/models/models.py
notify_type: Optional[NotifyType] = None
class-attribute
instance-attribute
formats: Optional[List[PayloadFormatType]] = Field(default=None, description='The supported payload formats for this notify type.')
class-attribute
instance-attribute
WebhookTargetObject
Webhook target
Source code in harborapi/models/models.py
type: Optional[str] = Field(default=None, description='The webhook target notify type.')
class-attribute
instance-attribute
address: Optional[str] = Field(default=None, description='The webhook target address.')
class-attribute
instance-attribute
auth_header: Optional[str] = Field(default=None, description='The webhook auth header.')
class-attribute
instance-attribute
skip_cert_verify: Optional[bool] = Field(default=None, description='Whether or not to skip cert verify.')
class-attribute
instance-attribute
payload_format: Optional[PayloadFormatType] = None
class-attribute
instance-attribute
WebhookPolicy
Webhook policy definition.
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The webhook policy ID.')
class-attribute
instance-attribute
name: Optional[str] = Field(default=None, description='The name of webhook policy.')
class-attribute
instance-attribute
description: Optional[str] = Field(default=None, description='The description of webhook policy.')
class-attribute
instance-attribute
project_id: Optional[int] = Field(default=None, description='The project ID of webhook policy.')
class-attribute
instance-attribute
targets: Optional[List[WebhookTargetObject]] = None
class-attribute
instance-attribute
event_types: Optional[List[str]] = None
class-attribute
instance-attribute
creator: Optional[str] = Field(default=None, description='The creator of the webhook policy.')
class-attribute
instance-attribute
creation_time: Optional[AwareDatetime] = Field(default=None, description='The create time of the webhook policy.')
class-attribute
instance-attribute
update_time: Optional[AwareDatetime] = Field(default=None, description='The update time of the webhook policy.')
class-attribute
instance-attribute
enabled: Optional[bool] = Field(default=None, description='Whether the webhook policy is enabled or not.')
class-attribute
instance-attribute
WebhookLastTrigger
Last trigger of the webhook and the event type of the trigger.
Source code in harborapi/models/models.py
policy_name: Optional[str] = Field(default=None, description='The webhook policy name.')
class-attribute
instance-attribute
event_type: Optional[str] = Field(default=None, description='The webhook event type.')
class-attribute
instance-attribute
enabled: Optional[bool] = Field(default=None, description='Whether or not the webhook policy enabled.')
class-attribute
instance-attribute
creation_time: Optional[AwareDatetime] = Field(default=None, description='The creation time of webhook policy.')
class-attribute
instance-attribute
last_trigger_time: Optional[AwareDatetime] = Field(default=None, description='The last trigger time of webhook policy.')
class-attribute
instance-attribute
WebhookJob
A webhook job.
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The webhook job ID.')
class-attribute
instance-attribute
policy_id: Optional[int] = Field(default=None, description='The webhook policy ID.')
class-attribute
instance-attribute
event_type: Optional[str] = Field(default=None, description='The webhook job event type.')
class-attribute
instance-attribute
notify_type: Optional[str] = Field(default=None, description='The webhook job notify type.')
class-attribute
instance-attribute
status: Optional[str] = Field(default=None, description='The webhook job status.')
class-attribute
instance-attribute
job_detail: Optional[str] = Field(default=None, description='The webhook job notify detailed data.')
class-attribute
instance-attribute
creation_time: Optional[AwareDatetime] = Field(default=None, description='The webhook job creation time.')
class-attribute
instance-attribute
update_time: Optional[AwareDatetime] = Field(default=None, description='The webhook job update time.')
class-attribute
instance-attribute
InternalConfigurationValue
Source code in harborapi/models/models.py
value: Optional[Dict[str, Any]] = Field(default=None, description='The value of current config item')
class-attribute
instance-attribute
editable: Optional[bool] = Field(default=None, description='The configure item can be updated or not')
class-attribute
instance-attribute
Parameter
Parameters for a 'scan all' policy.
Source code in harborapi/models/models.py
daily_time: Optional[int] = Field(default=None, description='The offset in seconds of UTC 0 o\'clock, only valid when the policy type is "daily"')
class-attribute
instance-attribute
ScanAllPolicy
Source code in harborapi/models/models.py
type: Optional[str] = Field(default=None, description='The type of scan all policy, currently the valid values are "none" and "daily"')
class-attribute
instance-attribute
parameter: Optional[Parameter] = Field(default=None, description='The parameters of the policy, the values are dependent on the type of the policy.')
class-attribute
instance-attribute
Configurations
Source code in harborapi/models/models.py
1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 |
|
auth_mode: Optional[str] = Field(default=None, description='The auth mode of current system, such as "db_auth", "ldap_auth", "oidc_auth"')
class-attribute
instance-attribute
primary_auth_mode: Optional[bool] = Field(default=None, description='The flag to indicate whether the current auth mode should consider as a primary one.')
class-attribute
instance-attribute
ldap_base_dn: Optional[str] = Field(default=None, description='The Base DN for LDAP binding.')
class-attribute
instance-attribute
ldap_filter: Optional[str] = Field(default=None, description='The filter for LDAP search')
class-attribute
instance-attribute
ldap_group_base_dn: Optional[str] = Field(default=None, description='The base DN to search LDAP group.')
class-attribute
instance-attribute
ldap_group_admin_dn: Optional[str] = Field(default=None, description='Specify the ldap group which have the same privilege with Harbor admin')
class-attribute
instance-attribute
ldap_group_attribute_name: Optional[str] = Field(default=None, description="The attribute which is used as identity of the LDAP group, default is cn.'")
class-attribute
instance-attribute
ldap_group_search_filter: Optional[str] = Field(default=None, description='The filter to search the ldap group')
class-attribute
instance-attribute
ldap_group_search_scope: Optional[int] = Field(default=None, description="The scope to search ldap group. ''0-LDAP_SCOPE_BASE, 1-LDAP_SCOPE_ONELEVEL, 2-LDAP_SCOPE_SUBTREE''")
class-attribute
instance-attribute
ldap_group_attach_parallel: Optional[bool] = Field(default=None, description='Attach LDAP user group information in parallel, the parallel worker count is 5')
class-attribute
instance-attribute
ldap_scope: Optional[int] = Field(default=None, description="The scope to search ldap users,'0-LDAP_SCOPE_BASE, 1-LDAP_SCOPE_ONELEVEL, 2-LDAP_SCOPE_SUBTREE'")
class-attribute
instance-attribute
ldap_search_dn: Optional[str] = Field(default=None, description='The DN of the user to do the search.')
class-attribute
instance-attribute
ldap_search_password: Optional[str] = Field(default=None, description='The password of the ldap search dn')
class-attribute
instance-attribute
ldap_timeout: Optional[int] = Field(default=None, description='Timeout in seconds for connection to LDAP server')
class-attribute
instance-attribute
ldap_uid: Optional[str] = Field(default=None, description='The attribute which is used as identity for the LDAP binding, such as "CN" or "SAMAccountname"')
class-attribute
instance-attribute
ldap_url: Optional[str] = Field(default=None, description='The URL of LDAP server')
class-attribute
instance-attribute
ldap_verify_cert: Optional[bool] = Field(default=None, description='Whether verify your OIDC server certificate, disable it if your OIDC server is hosted via self-hosted certificate.')
class-attribute
instance-attribute
ldap_group_membership_attribute: Optional[str] = Field(default=None, description='The user attribute to identify the group membership')
class-attribute
instance-attribute
project_creation_restriction: Optional[str] = Field(default=None, description="Indicate who can create projects, it could be ''adminonly'' or ''everyone''.")
class-attribute
instance-attribute
read_only: Optional[bool] = Field(default=None, description='The flag to indicate whether Harbor is in readonly mode.')
class-attribute
instance-attribute
self_registration: Optional[bool] = Field(default=None, description="Whether the Harbor instance supports self-registration. If it''s set to false, admin need to add user to the instance.")
class-attribute
instance-attribute
token_expiration: Optional[int] = Field(default=None, description='The expiration time of the token for internal Registry, in minutes.')
class-attribute
instance-attribute
uaa_client_id: Optional[str] = Field(default=None, description='The client id of UAA')
class-attribute
instance-attribute
uaa_client_secret: Optional[str] = Field(default=None, description='The client secret of the UAA')
class-attribute
instance-attribute
uaa_endpoint: Optional[str] = Field(default=None, description='The endpoint of the UAA')
class-attribute
instance-attribute
uaa_verify_cert: Optional[bool] = Field(default=None, description='Verify the certificate in UAA server')
class-attribute
instance-attribute
http_authproxy_endpoint: Optional[str] = Field(default=None, description='The endpoint of the HTTP auth')
class-attribute
instance-attribute
http_authproxy_tokenreview_endpoint: Optional[str] = Field(default=None, description='The token review endpoint')
class-attribute
instance-attribute
http_authproxy_admin_groups: Optional[str] = Field(default=None, description='The group which has the harbor admin privileges')
class-attribute
instance-attribute
http_authproxy_admin_usernames: Optional[str] = Field(default=None, description='The username which has the harbor admin privileges')
class-attribute
instance-attribute
http_authproxy_verify_cert: Optional[bool] = Field(default=None, description="Verify the HTTP auth provider's certificate")
class-attribute
instance-attribute
http_authproxy_skip_search: Optional[bool] = Field(default=None, description='Search user before onboard')
class-attribute
instance-attribute
http_authproxy_server_certificate: Optional[str] = Field(default=None, description='The certificate of the HTTP auth provider')
class-attribute
instance-attribute
oidc_name: Optional[str] = Field(default=None, description='The OIDC provider name')
class-attribute
instance-attribute
oidc_endpoint: Optional[str] = Field(default=None, description='The endpoint of the OIDC provider')
class-attribute
instance-attribute
oidc_client_id: Optional[str] = Field(default=None, description='The client ID of the OIDC provider')
class-attribute
instance-attribute
oidc_client_secret: Optional[str] = Field(default=None, description='The OIDC provider secret')
class-attribute
instance-attribute
oidc_groups_claim: Optional[str] = Field(default=None, description='The attribute claims the group name')
class-attribute
instance-attribute
oidc_admin_group: Optional[str] = Field(default=None, description='The OIDC group which has the harbor admin privileges')
class-attribute
instance-attribute
oidc_group_filter: Optional[str] = Field(default=None, description="The OIDC group filter which filters out the group name doesn't match the regular expression")
class-attribute
instance-attribute
oidc_scope: Optional[str] = Field(default=None, description='The scope of the OIDC provider')
class-attribute
instance-attribute
oidc_user_claim: Optional[str] = Field(default=None, description='The attribute claims the username')
class-attribute
instance-attribute
oidc_verify_cert: Optional[bool] = Field(default=None, description="Verify the OIDC provider's certificate'")
class-attribute
instance-attribute
oidc_auto_onboard: Optional[bool] = Field(default=None, description='Auto onboard the OIDC user')
class-attribute
instance-attribute
oidc_extra_redirect_parms: Optional[str] = Field(default=None, description='Extra parameters to add when redirect request to OIDC provider')
class-attribute
instance-attribute
robot_token_duration: Optional[int] = Field(default=None, description='The robot account token duration in days')
class-attribute
instance-attribute
robot_name_prefix: Optional[str] = Field(default=None, description='The rebot account name prefix')
class-attribute
instance-attribute
notification_enable: Optional[bool] = Field(default=None, description='Enable notification')
class-attribute
instance-attribute
quota_per_project_enable: Optional[bool] = Field(default=None, description='Enable quota per project')
class-attribute
instance-attribute
storage_per_project: Optional[int] = Field(default=None, description='The storage quota per project')
class-attribute
instance-attribute
audit_log_forward_endpoint: Optional[str] = Field(default=None, description='The audit log forward endpoint')
class-attribute
instance-attribute
skip_audit_log_database: Optional[bool] = Field(default=None, description='Skip audit log database')
class-attribute
instance-attribute
session_timeout: Optional[int] = Field(default=None, description='The session timeout for harbor, in minutes.')
class-attribute
instance-attribute
scanner_skip_update_pulltime: Optional[bool] = Field(default=None, description='Whether or not to skip update pull time for scanner')
class-attribute
instance-attribute
banner_message: Optional[str] = Field(default=None, description='The banner message for the UI.It is the stringified result of the banner message object')
class-attribute
instance-attribute
StringConfigItem
Source code in harborapi/models/models.py
value: Optional[str] = Field(default=None, description='The string value of current config item')
class-attribute
instance-attribute
editable: Optional[bool] = Field(default=None, description='The configure item can be updated or not')
class-attribute
instance-attribute
BoolConfigItem
Source code in harborapi/models/models.py
value: Optional[bool] = Field(default=None, description='The boolean value of current config item')
class-attribute
instance-attribute
editable: Optional[bool] = Field(default=None, description='The configure item can be updated or not')
class-attribute
instance-attribute
IntegerConfigItem
Source code in harborapi/models/models.py
value: Optional[int] = Field(default=None, description='The integer value of current config item')
class-attribute
instance-attribute
editable: Optional[bool] = Field(default=None, description='The configure item can be updated or not')
class-attribute
instance-attribute
ProjectMemberEntity
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='the project member id')
class-attribute
instance-attribute
project_id: Optional[int] = Field(default=None, description='the project id')
class-attribute
instance-attribute
entity_name: Optional[str] = Field(default=None, description='the name of the group member.')
class-attribute
instance-attribute
role_name: Optional[str] = Field(default=None, description='the name of the role')
class-attribute
instance-attribute
role_id: Optional[int] = Field(default=None, description='the role id')
class-attribute
instance-attribute
entity_id: Optional[int] = Field(default=None, description="the id of entity, if the member is a user, it is user_id in user table. if the member is a user group, it is the user group's ID in user_group table.")
class-attribute
instance-attribute
entity_type: Optional[str] = Field(default=None, description="the entity's type, u for user entity, g for group entity.")
class-attribute
instance-attribute
RoleRequest
Source code in harborapi/models/models.py
role_id: Optional[int] = Field(default=None, description='The role id 1 for projectAdmin, 2 for developer, 3 for guest, 4 for maintainer')
class-attribute
instance-attribute
UserEntity
Source code in harborapi/models/models.py
user_id: Optional[int] = Field(default=None, description='The ID of the user.')
class-attribute
instance-attribute
username: Optional[str] = Field(default=None, description='The name of the user.')
class-attribute
instance-attribute
UserProfile
Source code in harborapi/models/models.py
email: Optional[str] = None
class-attribute
instance-attribute
realname: Optional[str] = None
class-attribute
instance-attribute
comment: Optional[str] = None
class-attribute
instance-attribute
UserCreationReq
Source code in harborapi/models/models.py
email: Optional[str] = Field(default=None, max_length=255)
class-attribute
instance-attribute
realname: Optional[str] = None
class-attribute
instance-attribute
comment: Optional[str] = None
class-attribute
instance-attribute
password: Optional[str] = None
class-attribute
instance-attribute
username: Optional[str] = Field(default=None, max_length=255)
class-attribute
instance-attribute
OIDCUserInfo
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='the ID of the OIDC info record')
class-attribute
instance-attribute
user_id: Optional[int] = Field(default=None, description='the ID of the user')
class-attribute
instance-attribute
subiss: Optional[str] = Field(default=None, description='the concatenation of sub and issuer in the ID token')
class-attribute
instance-attribute
secret: Optional[str] = Field(default=None, description='the secret of the OIDC user that can be used for CLI to push/pull artifacts')
class-attribute
instance-attribute
creation_time: Optional[AwareDatetime] = Field(default=None, description='The creation time of the OIDC user info record.')
class-attribute
instance-attribute
update_time: Optional[AwareDatetime] = Field(default=None, description='The update time of the OIDC user info record.')
class-attribute
instance-attribute
UserResp
Source code in harborapi/models/models.py
email: Optional[str] = None
class-attribute
instance-attribute
realname: Optional[str] = None
class-attribute
instance-attribute
comment: Optional[str] = None
class-attribute
instance-attribute
user_id: Optional[int] = None
class-attribute
instance-attribute
username: Optional[str] = None
class-attribute
instance-attribute
sysadmin_flag: Optional[bool] = None
class-attribute
instance-attribute
admin_role_in_auth: Optional[bool] = Field(default=None, description='indicate the admin privilege is grant by authenticator (LDAP), is always false unless it is the current login user')
class-attribute
instance-attribute
oidc_user_meta: Optional[OIDCUserInfo] = None
class-attribute
instance-attribute
creation_time: Optional[AwareDatetime] = Field(default=None, description='The creation time of the user.')
class-attribute
instance-attribute
update_time: Optional[AwareDatetime] = Field(default=None, description='The update time of the user.')
class-attribute
instance-attribute
UserSysAdminFlag
Source code in harborapi/models/models.py
sysadmin_flag: Optional[bool] = Field(default=None, description='true-admin, false-not admin.')
class-attribute
instance-attribute
UserSearch
Source code in harborapi/models/models.py
user_id: Optional[int] = Field(default=None, description='The ID of the user.')
class-attribute
instance-attribute
username: Optional[str] = None
class-attribute
instance-attribute
PasswordReq
Source code in harborapi/models/models.py
old_password: Optional[str] = Field(default=None, description="The user's existing password.")
class-attribute
instance-attribute
new_password: Optional[str] = Field(default=None, description='New password for marking as to be updated.')
class-attribute
instance-attribute
UserSearchRespItem
Source code in harborapi/models/models.py
user_id: Optional[int] = Field(default=None, description='The ID of the user.')
class-attribute
instance-attribute
username: Optional[str] = None
class-attribute
instance-attribute
Permission
Source code in harborapi/models/models.py
resource: Optional[str] = Field(default=None, description='The permission resoruce')
class-attribute
instance-attribute
action: Optional[str] = Field(default=None, description='The permission action')
class-attribute
instance-attribute
Permissions
Source code in harborapi/models/models.py
system: Optional[List[Permission]] = Field(default=None, description='The system level permissions')
class-attribute
instance-attribute
project: Optional[List[Permission]] = Field(default=None, description='The project level permissions')
class-attribute
instance-attribute
OIDCCliSecretReq
ComponentHealthStatus
Health status of a component.
Source code in harborapi/models/models.py
name: Optional[str] = Field(default=None, description='The component name')
class-attribute
instance-attribute
status: Optional[str] = Field(default=None, description='The health status of component. Is either "healthy" or "unhealthy".')
class-attribute
instance-attribute
error: Optional[str] = Field(default=None, description='(optional) The error message when the status is "unhealthy"')
class-attribute
instance-attribute
Statistic
Source code in harborapi/models/models.py
private_project_count: Optional[int] = Field(default=None, description='The count of the private projects')
class-attribute
instance-attribute
private_repo_count: Optional[int] = Field(default=None, description='The count of the private repositories')
class-attribute
instance-attribute
public_project_count: Optional[int] = Field(default=None, description='The count of the public projects')
class-attribute
instance-attribute
public_repo_count: Optional[int] = Field(default=None, description='The count of the public repositories')
class-attribute
instance-attribute
total_project_count: Optional[int] = Field(default=None, description='The count of the total projects, only be seen by the system admin')
class-attribute
instance-attribute
total_repo_count: Optional[int] = Field(default=None, description='The count of the total repositories, only be seen by the system admin')
class-attribute
instance-attribute
total_storage_consumption: Optional[int] = Field(default=None, description='The total storage consumption of blobs, only be seen by the system admin')
class-attribute
instance-attribute
Accessory
Accessory of an artifact.
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The ID of the accessory')
class-attribute
instance-attribute
artifact_id: Optional[int] = Field(default=None, description='The artifact id of the accessory')
class-attribute
instance-attribute
subject_artifact_id: Optional[int] = Field(default=None, description='Going to be deprecated, use repo and digest for insteand. The subject artifact id of the accessory.')
class-attribute
instance-attribute
subject_artifact_digest: Optional[str] = Field(default=None, description='The subject artifact digest of the accessory')
class-attribute
instance-attribute
subject_artifact_repo: Optional[str] = Field(default=None, description='The subject artifact repository name of the accessory')
class-attribute
instance-attribute
size: Optional[int] = Field(default=None, description='The artifact size of the accessory')
class-attribute
instance-attribute
digest: Optional[str] = Field(default=None, description='The artifact digest of the accessory')
class-attribute
instance-attribute
type: Optional[str] = Field(default=None, description='The artifact size of the accessory')
class-attribute
instance-attribute
icon: Optional[str] = Field(default=None, description='The icon of the accessory')
class-attribute
instance-attribute
creation_time: Optional[AwareDatetime] = Field(default=None, description='The creation time of the accessory')
class-attribute
instance-attribute
ScanDataExportRequest
Criteria for selecting scan data to export.
Source code in harborapi/models/models.py
job_name: Optional[str] = Field(default=None, description='Name of the scan data export job')
class-attribute
instance-attribute
projects: Optional[List[int]] = Field(default=None, description='A list of one or more projects for which to export the scan data, currently only one project is supported due to performance concerns, but define as array for extension in the future.')
class-attribute
instance-attribute
labels: Optional[List[int]] = Field(default=None, description='A list of one or more labels for which to export the scan data, defaults to all if empty')
class-attribute
instance-attribute
repositories: Optional[str] = Field(default=None, description='A list of repositories for which to export the scan data, defaults to all if empty')
class-attribute
instance-attribute
cve_ids: Optional[str] = Field(default=None, alias='cveIds', description="CVE-IDs for which to export data. Multiple CVE-IDs can be specified by separating using ',' and enclosed between '{}'. Defaults to all if empty")
class-attribute
instance-attribute
tags: Optional[str] = Field(default=None, description="A list of tags enclosed within '{}'. Defaults to all if empty")
class-attribute
instance-attribute
ScanDataExportJob
Metadata for a scan data export job.
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The id of the scan data export job')
class-attribute
instance-attribute
ScanDataExportExecution
Execution of a scan data export job.
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The ID of the execution')
class-attribute
instance-attribute
user_id: Optional[int] = Field(default=None, description='The ID if the user triggering the export job')
class-attribute
instance-attribute
status: Optional[str] = Field(default=None, description='The status of the execution')
class-attribute
instance-attribute
trigger: Optional[str] = Field(default=None, description='The trigger mode')
class-attribute
instance-attribute
start_time: Optional[AwareDatetime] = Field(default=None, description='The start time')
class-attribute
instance-attribute
end_time: Optional[AwareDatetime] = Field(default=None, description='The end time')
class-attribute
instance-attribute
status_text: Optional[str] = Field(default=None, description='The status text')
class-attribute
instance-attribute
user_name: Optional[str] = Field(default=None, description='The name of the user triggering the job')
class-attribute
instance-attribute
file_present: Optional[bool] = Field(default=None, description='Indicates whether the export artifact is present in registry')
class-attribute
instance-attribute
ScanDataExportExecutionList
List of executed scan data export jobs.
Source code in harborapi/models/models.py
items: Optional[List[ScanDataExportExecution]] = Field(default=None, description='The list of scan data export executions')
class-attribute
instance-attribute
WorkerPool
Worker pool for job service.
Source code in harborapi/models/models.py
pid: Optional[int] = Field(default=None, description='the process id of jobservice')
class-attribute
instance-attribute
worker_pool_id: Optional[str] = Field(default=None, description='the id of the worker pool')
class-attribute
instance-attribute
start_at: Optional[AwareDatetime] = Field(default=None, description='The start time of the work pool')
class-attribute
instance-attribute
heartbeat_at: Optional[AwareDatetime] = Field(default=None, description='The heartbeat time of the work pool')
class-attribute
instance-attribute
concurrency: Optional[int] = Field(default=None, description='The concurrency of the work pool')
class-attribute
instance-attribute
host: Optional[str] = Field(default=None, description='The host of the work pool')
class-attribute
instance-attribute
Worker
Worker in a pool.
Source code in harborapi/models/models.py
id: Optional[str] = Field(default=None, description='the id of the worker')
class-attribute
instance-attribute
pool_id: Optional[str] = Field(default=None, description='the id of the worker pool')
class-attribute
instance-attribute
job_name: Optional[str] = Field(default=None, description='the name of the running job in the worker')
class-attribute
instance-attribute
job_id: Optional[str] = Field(default=None, description='the id of the running job in the worker')
class-attribute
instance-attribute
start_at: Optional[AwareDatetime] = Field(default=None, description='The start time of the worker')
class-attribute
instance-attribute
check_in: Optional[str] = Field(default=None, description='the checkin of the running job in the worker')
class-attribute
instance-attribute
checkin_at: Optional[AwareDatetime] = Field(default=None, description='The checkin time of the worker')
class-attribute
instance-attribute
Action
Action to perform. Should be 'stop', 'pause', or 'resume'.
Source code in harborapi/models/models.py
stop = 'stop'
class-attribute
instance-attribute
pause = 'pause'
class-attribute
instance-attribute
resume = 'resume'
class-attribute
instance-attribute
ActionRequest
Request to perform an action.
Source code in harborapi/models/models.py
action: Optional[Action] = Field(default=None, description='The action of the request, should be stop, pause or resume')
class-attribute
instance-attribute
JobQueue
Information about a job queue.
Source code in harborapi/models/models.py
job_type: Optional[str] = Field(default=None, description='The type of the job queue')
class-attribute
instance-attribute
count: Optional[int] = Field(default=None, description='The count of jobs in the job queue')
class-attribute
instance-attribute
latency: Optional[int] = Field(default=None, description='The latency the job queue (seconds)')
class-attribute
instance-attribute
paused: Optional[bool] = Field(default=None, description='The paused status of the job queue')
class-attribute
instance-attribute
ScheduleTask
Information about a scheduled task.
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='the id of the Schedule task')
class-attribute
instance-attribute
vendor_type: Optional[str] = Field(default=None, description='the vendor type of the current schedule task')
class-attribute
instance-attribute
vendor_id: Optional[int] = Field(default=None, description='the vendor id of the current task')
class-attribute
instance-attribute
cron: Optional[str] = Field(default=None, description='the cron of the current schedule task')
class-attribute
instance-attribute
update_time: Optional[AwareDatetime] = Field(default=None, description='the update time of the schedule task')
class-attribute
instance-attribute
SchedulerStatus
Status of the scheduler.
Source code in harborapi/models/models.py
paused: Optional[bool] = Field(default=None, description='if the scheduler is paused')
class-attribute
instance-attribute
DangerousCVE
A CVE marked as dangerous.
Source code in harborapi/models/models.py
cve_id: Optional[str] = Field(default=None, description='the cve id')
class-attribute
instance-attribute
severity: Optional[str] = Field(default=None, description='the severity of the CVE')
class-attribute
instance-attribute
cvss_score_v3: Optional[float] = Field(default=None, description='the cvss score v3')
class-attribute
instance-attribute
desc: Optional[str] = Field(default=None, description='the description of the CVE')
class-attribute
instance-attribute
package: Optional[str] = Field(default=None, description='the package of the CVE')
class-attribute
instance-attribute
version: Optional[str] = Field(default=None, description='the version of the package')
class-attribute
instance-attribute
DangerousArtifact
An artifact marked as dangerous.
Source code in harborapi/models/models.py
project_id: Optional[int] = Field(default=None, description='the project id of the artifact')
class-attribute
instance-attribute
repository_name: Optional[str] = Field(default=None, description='the repository name of the artifact')
class-attribute
instance-attribute
digest: Optional[str] = Field(default=None, description='the digest of the artifact')
class-attribute
instance-attribute
critical_cnt: Optional[int] = Field(default=None, description='the count of critical vulnerabilities')
class-attribute
instance-attribute
high_cnt: Optional[int] = Field(default=None, description='the count of high vulnerabilities')
class-attribute
instance-attribute
medium_cnt: Optional[int] = Field(default=None, description='the count of medium vulnerabilities')
class-attribute
instance-attribute
VulnerabilityItem
Vulnerability found by a scan.
Source code in harborapi/models/models.py
project_id: Optional[int] = Field(default=None, description='the project ID of the artifact')
class-attribute
instance-attribute
repository_name: Optional[str] = Field(default=None, description='the repository name of the artifact')
class-attribute
instance-attribute
digest: Optional[str] = Field(default=None, description='the digest of the artifact')
class-attribute
instance-attribute
tags: Optional[List[str]] = Field(default=None, description='the tags of the artifact')
class-attribute
instance-attribute
cve_id: Optional[str] = Field(default=None, description='the CVE id of the vulnerability.')
class-attribute
instance-attribute
severity: Optional[str] = Field(default=None, description='the severity of the vulnerability')
class-attribute
instance-attribute
cvss_v3_score: Optional[float] = Field(default=None, description='the nvd cvss v3 score of the vulnerability')
class-attribute
instance-attribute
package: Optional[str] = Field(default=None, description='the package of the vulnerability')
class-attribute
instance-attribute
version: Optional[str] = Field(default=None, description='the version of the package')
class-attribute
instance-attribute
fixed_version: Optional[str] = Field(default=None, description='the fixed version of the package')
class-attribute
instance-attribute
desc: Optional[str] = Field(default=None, description='The description of the vulnerability')
class-attribute
instance-attribute
links: Optional[List[str]] = Field(default=None, description='Links of the vulnerability')
class-attribute
instance-attribute
ScanType1
The scan type for the scan request. Two options are currently supported, vulnerability and sbom
Source code in harborapi/models/models.py
vulnerability = 'vulnerability'
class-attribute
instance-attribute
sbom = 'sbom'
class-attribute
instance-attribute
ScanType
Source code in harborapi/models/models.py
scan_type: Optional[ScanType1] = Field(default=None, description='The scan type for the scan request. Two options are currently supported, vulnerability and sbom')
class-attribute
instance-attribute
Errors
AdditionLinks
Reference
Source code in harborapi/models/models.py
parent_id: Optional[int] = Field(default=None, description='The parent ID of the reference')
class-attribute
instance-attribute
child_id: Optional[int] = Field(default=None, description='The child ID of the reference')
class-attribute
instance-attribute
child_digest: Optional[str] = Field(default=None, description='The digest of the child artifact')
class-attribute
instance-attribute
platform: Optional[Platform] = None
class-attribute
instance-attribute
annotations: Optional[Annotations] = None
class-attribute
instance-attribute
urls: Optional[List[str]] = Field(default=None, description='The download URLs')
class-attribute
instance-attribute
NativeReportSummary
Summary of a native scan report.
Source code in harborapi/models/models.py
report_id: Optional[str] = Field(default=None, description='id of the native scan report', examples=['5f62c830-f996-11e9-957f-0242c0a89008'])
class-attribute
instance-attribute
scan_status: Optional[str] = Field(default=None, description='The status of the report generating process', examples=['Success'])
class-attribute
instance-attribute
severity: Optional[str] = Field(default=None, description='The overall severity', examples=['High'])
class-attribute
instance-attribute
duration: Optional[int] = Field(default=None, description='The seconds spent for generating the report', examples=[300])
class-attribute
instance-attribute
summary: Optional[VulnerabilitySummary] = None
class-attribute
instance-attribute
start_time: Optional[AwareDatetime] = Field(default=None, description='The start time of the scan process that generating report', examples=['2006-01-02T14:04:05Z'])
class-attribute
instance-attribute
end_time: Optional[AwareDatetime] = Field(default=None, description='The end time of the scan process that generating report', examples=['2006-01-02T15:04:05Z'])
class-attribute
instance-attribute
complete_percent: Optional[int] = Field(default=None, description='The complete percent of the scanning which value is between 0 and 100', examples=[100])
class-attribute
instance-attribute
scanner: Optional[Scanner] = None
class-attribute
instance-attribute
ProjectSummaryQuota
Source code in harborapi/models/models.py
hard: Optional[ResourceList] = None
class-attribute
instance-attribute
used: Optional[ResourceList] = None
class-attribute
instance-attribute
CVEAllowlist
CVE allowlist for a system or project.
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='ID of the allowlist')
class-attribute
instance-attribute
project_id: Optional[int] = Field(default=None, description='ID of the project which the allowlist belongs to. For system level allowlist this attribute is zero.')
class-attribute
instance-attribute
expires_at: Optional[int] = Field(default=None, description="the time for expiration of the allowlist, in the form of seconds since epoch. This is an optional attribute, if it's not set the CVE allowlist does not expire.")
class-attribute
instance-attribute
items: Optional[List[CVEAllowlistItem]] = None
class-attribute
instance-attribute
creation_time: Optional[AwareDatetime] = Field(default=None, description='The creation time of the allowlist.')
class-attribute
instance-attribute
update_time: Optional[AwareDatetime] = Field(default=None, description='The update time of the allowlist.')
class-attribute
instance-attribute
ReplicationTrigger
Source code in harborapi/models/models.py
type: Optional[str] = Field(default=None, description='The replication policy trigger type. The valid values are manual, event_based and scheduled.')
class-attribute
instance-attribute
trigger_settings: Optional[ReplicationTriggerSettings] = None
class-attribute
instance-attribute
RegistryInfo
Registry information, including base info and capabilities.
Source code in harborapi/models/models.py
type: Optional[str] = Field(default=None, description='The registry type')
class-attribute
instance-attribute
description: Optional[str] = Field(default=None, description='The description')
class-attribute
instance-attribute
supported_resource_filters: Optional[List[FilterStyle]] = Field(default=None, description='The filters that the registry supports')
class-attribute
instance-attribute
supported_triggers: Optional[List[str]] = Field(default=None, description='The triggers that the registry supports')
class-attribute
instance-attribute
supported_copy_by_chunk: Optional[bool] = Field(default=None, description='The registry whether support copy by chunk.')
class-attribute
instance-attribute
RegistryProviderEndpointPattern
Pattern for a registry provider endpoint.
Source code in harborapi/models/models.py
endpoint_type: Optional[str] = Field(default=None, description='The endpoint type')
class-attribute
instance-attribute
endpoints: Optional[List[RegistryEndpoint]] = Field(default=None, description='The endpoint list')
class-attribute
instance-attribute
RobotPermission
Source code in harborapi/models/models.py
kind: Optional[str] = Field(default=None, description='The kind of the permission')
class-attribute
instance-attribute
namespace: Optional[str] = Field(default=None, description='The namespace of the permission')
class-attribute
instance-attribute
access: Optional[List[Access]] = None
class-attribute
instance-attribute
GeneralInfo
Source code in harborapi/models/models.py
banner_message: Optional[str] = Field(default=None, description='The banner message for the UI. It is the stringified result of the banner message object.', examples=['{"closable":true,"message":"your banner message content","type":"warning","fromDate":"06/19/2023","toDate":"06/21/2023"}'])
class-attribute
instance-attribute
current_time: Optional[AwareDatetime] = Field(default=None, description='The current time of the server.')
class-attribute
instance-attribute
registry_url: Optional[str] = Field(default=None, description='The url of registry against which the docker command should be issued.')
class-attribute
instance-attribute
external_url: Optional[str] = Field(default=None, description='The external URL of Harbor, with protocol.')
class-attribute
instance-attribute
auth_mode: Optional[str] = Field(default=None, description='The auth mode of current Harbor instance.')
class-attribute
instance-attribute
primary_auth_mode: Optional[bool] = Field(default=None, description='The flag to indicate whether the current auth mode should consider as a primary one.')
class-attribute
instance-attribute
project_creation_restriction: Optional[str] = Field(default=None, description="Indicate who can create projects, it could be 'adminonly' or 'everyone'.")
class-attribute
instance-attribute
self_registration: Optional[bool] = Field(default=None, description='Indicate whether the Harbor instance enable user to register himself.')
class-attribute
instance-attribute
has_ca_root: Optional[bool] = Field(default=None, description='Indicate whether there is a ca root cert file ready for download in the file system.')
class-attribute
instance-attribute
harbor_version: Optional[str] = Field(default=None, description='The build version of Harbor.')
class-attribute
instance-attribute
registry_storage_provider_name: Optional[str] = Field(default=None, description="The storage provider's name of Harbor registry")
class-attribute
instance-attribute
read_only: Optional[bool] = Field(default=None, description='The flag to indicate whether Harbor is in readonly mode.')
class-attribute
instance-attribute
notification_enable: Optional[bool] = Field(default=None, description='The flag to indicate whether notification mechanism is enabled on Harbor instance.')
class-attribute
instance-attribute
authproxy_settings: Optional[AuthproxySetting] = None
class-attribute
instance-attribute
oidc_provider_name: Optional[str] = Field(default=None, description='The OIDC provider name, empty if current auth is not OIDC_auth or OIDC provider is not configured.')
class-attribute
instance-attribute
with_chartmuseum: Optional[bool] = Field(default=None, description='DEPRECATED: Harbor instance is deployed with nested chartmuseum.')
class-attribute
instance-attribute
GCHistory
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='the id of gc job.')
class-attribute
instance-attribute
job_name: Optional[str] = Field(default=None, description='the job name of gc job.')
class-attribute
instance-attribute
job_kind: Optional[str] = Field(default=None, description='the job kind of gc job.')
class-attribute
instance-attribute
job_parameters: Optional[str] = Field(default=None, description='the job parameters of gc job.')
class-attribute
instance-attribute
schedule: Optional[ScheduleObj] = None
class-attribute
instance-attribute
job_status: Optional[str] = Field(default=None, description='the status of gc job.')
class-attribute
instance-attribute
deleted: Optional[bool] = Field(default=None, description='if gc job was deleted.')
class-attribute
instance-attribute
creation_time: Optional[AwareDatetime] = Field(default=None, description='the creation time of gc job.')
class-attribute
instance-attribute
update_time: Optional[AwareDatetime] = Field(default=None, description='the update time of gc job.')
class-attribute
instance-attribute
ExecHistory
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='the id of purge job.')
class-attribute
instance-attribute
job_name: Optional[str] = Field(default=None, description='the job name of purge job.')
class-attribute
instance-attribute
job_kind: Optional[str] = Field(default=None, description='the job kind of purge job.')
class-attribute
instance-attribute
job_parameters: Optional[str] = Field(default=None, description='the job parameters of purge job.')
class-attribute
instance-attribute
schedule: Optional[ScheduleObj] = None
class-attribute
instance-attribute
job_status: Optional[str] = Field(default=None, description='the status of purge job.')
class-attribute
instance-attribute
deleted: Optional[bool] = Field(default=None, description='if purge job was deleted.')
class-attribute
instance-attribute
creation_time: Optional[AwareDatetime] = Field(default=None, description='the creation time of purge job.')
class-attribute
instance-attribute
update_time: Optional[AwareDatetime] = Field(default=None, description='the update time of purge job.')
class-attribute
instance-attribute
Schedule
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The id of the schedule.')
class-attribute
instance-attribute
status: Optional[str] = Field(default=None, description='The status of the schedule.')
class-attribute
instance-attribute
creation_time: Optional[AwareDatetime] = Field(default=None, description='the creation time of the schedule.')
class-attribute
instance-attribute
update_time: Optional[AwareDatetime] = Field(default=None, description='the update time of the schedule.')
class-attribute
instance-attribute
schedule: Optional[ScheduleObj] = None
class-attribute
instance-attribute
parameters: Optional[Dict[str, Any]] = Field(default=None, description='The parameters of schedule job')
class-attribute
instance-attribute
RetentionRuleMetadata
Metadata for a tag retention rule.
Source code in harborapi/models/models.py
rule_template: Optional[str] = Field(default=None, description='rule id')
class-attribute
instance-attribute
display_text: Optional[str] = Field(default=None, description='rule display text')
class-attribute
instance-attribute
action: Optional[str] = Field(default=None, description='rule action')
class-attribute
instance-attribute
params: Optional[List[RetentionRuleParamMetadata]] = Field(default=None, description='rule params')
class-attribute
instance-attribute
RetentionRule
Source code in harborapi/models/models.py
id: Optional[int] = None
class-attribute
instance-attribute
priority: Optional[int] = None
class-attribute
instance-attribute
disabled: Optional[bool] = None
class-attribute
instance-attribute
action: Optional[str] = None
class-attribute
instance-attribute
template: Optional[str] = None
class-attribute
instance-attribute
params: Optional[Dict[str, Any]] = None
class-attribute
instance-attribute
tag_selectors: Optional[List[RetentionSelector]] = None
class-attribute
instance-attribute
scope_selectors: Optional[Dict[str, List[RetentionSelector]]] = None
class-attribute
instance-attribute
ImmutableRule
Source code in harborapi/models/models.py
id: Optional[int] = None
class-attribute
instance-attribute
priority: Optional[int] = None
class-attribute
instance-attribute
disabled: Optional[bool] = None
class-attribute
instance-attribute
action: Optional[str] = None
class-attribute
instance-attribute
template: Optional[str] = None
class-attribute
instance-attribute
params: Optional[Dict[str, Any]] = None
class-attribute
instance-attribute
tag_selectors: Optional[List[ImmutableSelector]] = None
class-attribute
instance-attribute
scope_selectors: Optional[Dict[str, List[ImmutableSelector]]] = None
class-attribute
instance-attribute
SupportedWebhookEventTypes
Supported event and notification types for webhooks.
Source code in harborapi/models/models.py
event_type: Optional[List[EventType]] = None
class-attribute
instance-attribute
notify_type: Optional[List[NotifyType]] = None
class-attribute
instance-attribute
payload_formats: Optional[List[PayloadFormat]] = None
class-attribute
instance-attribute
InternalConfigurationsResponse
ConfigurationsResponse
Source code in harborapi/models/models.py
auth_mode: Optional[StringConfigItem] = None
class-attribute
instance-attribute
primary_auth_mode: Optional[BoolConfigItem] = None
class-attribute
instance-attribute
ldap_base_dn: Optional[StringConfigItem] = None
class-attribute
instance-attribute
ldap_filter: Optional[StringConfigItem] = None
class-attribute
instance-attribute
ldap_group_base_dn: Optional[StringConfigItem] = None
class-attribute
instance-attribute
ldap_group_admin_dn: Optional[StringConfigItem] = None
class-attribute
instance-attribute
ldap_group_attribute_name: Optional[StringConfigItem] = None
class-attribute
instance-attribute
ldap_group_search_filter: Optional[StringConfigItem] = None
class-attribute
instance-attribute
ldap_group_search_scope: Optional[IntegerConfigItem] = None
class-attribute
instance-attribute
ldap_group_attach_parallel: Optional[BoolConfigItem] = None
class-attribute
instance-attribute
ldap_scope: Optional[IntegerConfigItem] = None
class-attribute
instance-attribute
ldap_search_dn: Optional[StringConfigItem] = None
class-attribute
instance-attribute
ldap_timeout: Optional[IntegerConfigItem] = None
class-attribute
instance-attribute
ldap_uid: Optional[StringConfigItem] = None
class-attribute
instance-attribute
ldap_url: Optional[StringConfigItem] = None
class-attribute
instance-attribute
ldap_verify_cert: Optional[BoolConfigItem] = None
class-attribute
instance-attribute
ldap_group_membership_attribute: Optional[StringConfigItem] = None
class-attribute
instance-attribute
project_creation_restriction: Optional[StringConfigItem] = None
class-attribute
instance-attribute
read_only: Optional[BoolConfigItem] = None
class-attribute
instance-attribute
self_registration: Optional[BoolConfigItem] = None
class-attribute
instance-attribute
token_expiration: Optional[IntegerConfigItem] = None
class-attribute
instance-attribute
uaa_client_id: Optional[StringConfigItem] = None
class-attribute
instance-attribute
uaa_client_secret: Optional[StringConfigItem] = None
class-attribute
instance-attribute
uaa_endpoint: Optional[StringConfigItem] = None
class-attribute
instance-attribute
uaa_verify_cert: Optional[BoolConfigItem] = None
class-attribute
instance-attribute
http_authproxy_endpoint: Optional[StringConfigItem] = None
class-attribute
instance-attribute
http_authproxy_tokenreview_endpoint: Optional[StringConfigItem] = None
class-attribute
instance-attribute
http_authproxy_admin_groups: Optional[StringConfigItem] = None
class-attribute
instance-attribute
http_authproxy_admin_usernames: Optional[StringConfigItem] = None
class-attribute
instance-attribute
http_authproxy_verify_cert: Optional[BoolConfigItem] = None
class-attribute
instance-attribute
http_authproxy_skip_search: Optional[BoolConfigItem] = None
class-attribute
instance-attribute
http_authproxy_server_certificate: Optional[StringConfigItem] = None
class-attribute
instance-attribute
oidc_name: Optional[StringConfigItem] = None
class-attribute
instance-attribute
oidc_endpoint: Optional[StringConfigItem] = None
class-attribute
instance-attribute
oidc_client_id: Optional[StringConfigItem] = None
class-attribute
instance-attribute
oidc_groups_claim: Optional[StringConfigItem] = None
class-attribute
instance-attribute
oidc_admin_group: Optional[StringConfigItem] = None
class-attribute
instance-attribute
oidc_group_filter: Optional[StringConfigItem] = None
class-attribute
instance-attribute
oidc_scope: Optional[StringConfigItem] = None
class-attribute
instance-attribute
oidc_user_claim: Optional[StringConfigItem] = None
class-attribute
instance-attribute
oidc_verify_cert: Optional[BoolConfigItem] = None
class-attribute
instance-attribute
oidc_auto_onboard: Optional[BoolConfigItem] = None
class-attribute
instance-attribute
oidc_extra_redirect_parms: Optional[StringConfigItem] = None
class-attribute
instance-attribute
robot_token_duration: Optional[IntegerConfigItem] = None
class-attribute
instance-attribute
robot_name_prefix: Optional[StringConfigItem] = None
class-attribute
instance-attribute
notification_enable: Optional[BoolConfigItem] = None
class-attribute
instance-attribute
quota_per_project_enable: Optional[BoolConfigItem] = None
class-attribute
instance-attribute
storage_per_project: Optional[IntegerConfigItem] = None
class-attribute
instance-attribute
audit_log_forward_endpoint: Optional[StringConfigItem] = None
class-attribute
instance-attribute
skip_audit_log_database: Optional[BoolConfigItem] = None
class-attribute
instance-attribute
scanner_skip_update_pulltime: Optional[BoolConfigItem] = None
class-attribute
instance-attribute
scan_all_policy: Optional[ScanAllPolicy] = None
class-attribute
instance-attribute
session_timeout: Optional[IntegerConfigItem] = None
class-attribute
instance-attribute
banner_message: Optional[StringConfigItem] = None
class-attribute
instance-attribute
ProjectMember
Source code in harborapi/models/models.py
role_id: Optional[int] = Field(default=None, description='The role id 1 for projectAdmin, 2 for developer, 3 for guest, 4 for maintainer')
class-attribute
instance-attribute
member_user: Optional[UserEntity] = None
class-attribute
instance-attribute
member_group: Optional[UserGroup] = None
class-attribute
instance-attribute
OverallHealthStatus
Overall health status of the system.
Source code in harborapi/models/models.py
status: Optional[str] = Field(default=None, description='The overall health status. It is "healthy" only when all the components\' status are "healthy"')
class-attribute
instance-attribute
components: Optional[List[ComponentHealthStatus]] = None
class-attribute
instance-attribute
SecuritySummary
Artifact security summary.
Source code in harborapi/models/models.py
critical_cnt: Optional[int] = Field(default=None, description='the count of critical vulnerabilities')
class-attribute
instance-attribute
high_cnt: Optional[int] = Field(default=None, description='the count of high vulnerabilities')
class-attribute
instance-attribute
medium_cnt: Optional[int] = Field(default=None, description='the count of medium vulnerabilities')
class-attribute
instance-attribute
low_cnt: Optional[int] = Field(default=None, description='the count of low vulnerabilities')
class-attribute
instance-attribute
none_cnt: Optional[int] = Field(default=None, description='the count of none vulnerabilities')
class-attribute
instance-attribute
unknown_cnt: Optional[int] = Field(default=None, description='the count of unknown vulnerabilities')
class-attribute
instance-attribute
total_vuls: Optional[int] = Field(default=None, description='the count of total vulnerabilities')
class-attribute
instance-attribute
scanned_cnt: Optional[int] = Field(default=None, description='the count of scanned artifacts')
class-attribute
instance-attribute
total_artifact: Optional[int] = Field(default=None, description='the total count of artifacts')
class-attribute
instance-attribute
fixable_cnt: Optional[int] = Field(default=None, description='the count of fixable vulnerabilities')
class-attribute
instance-attribute
dangerous_cves: Optional[List[DangerousCVE]] = Field(default=None, description='the list of dangerous CVEs')
class-attribute
instance-attribute
dangerous_artifacts: Optional[List[DangerousArtifact]] = Field(default=None, description='the list of dangerous artifacts')
class-attribute
instance-attribute
ScanOverview
Overview of scan results.
Source code in harborapi/models/models.py
root: Optional[Dict[str, NativeReportSummary]] = None
class-attribute
instance-attribute
ProjectReq
Source code in harborapi/models/models.py
project_name: Optional[str] = Field(default=None, description='The name of the project.', max_length=255)
class-attribute
instance-attribute
public: Optional[bool] = Field(default=None, description='deprecated, reserved for project creation in replication')
class-attribute
instance-attribute
metadata: Optional[ProjectMetadata] = None
class-attribute
instance-attribute
cve_allowlist: Optional[CVEAllowlist] = None
class-attribute
instance-attribute
storage_limit: Optional[int] = Field(default=None, description='The storage quota of the project.')
class-attribute
instance-attribute
registry_id: Optional[int] = Field(default=None, description='The ID of referenced registry when creating the proxy cache project')
class-attribute
instance-attribute
Project
Source code in harborapi/models/models.py
project_id: Optional[int] = Field(default=None, description='Project ID')
class-attribute
instance-attribute
owner_id: Optional[int] = Field(default=None, description='The owner ID of the project always means the creator of the project.')
class-attribute
instance-attribute
name: Optional[str] = Field(default=None, description='The name of the project.')
class-attribute
instance-attribute
registry_id: Optional[int] = Field(default=None, description='The ID of referenced registry when the project is a proxy cache project.')
class-attribute
instance-attribute
creation_time: Optional[AwareDatetime] = Field(default=None, description='The creation time of the project.')
class-attribute
instance-attribute
update_time: Optional[AwareDatetime] = Field(default=None, description='The update time of the project.')
class-attribute
instance-attribute
deleted: Optional[bool] = Field(default=None, description='A deletion mark of the project.')
class-attribute
instance-attribute
owner_name: Optional[str] = Field(default=None, description='The owner name of the project.')
class-attribute
instance-attribute
togglable: Optional[bool] = Field(default=None, description="Correspond to the UI about whether the project's publicity is updatable (for UI)")
class-attribute
instance-attribute
current_user_role_id: Optional[int] = Field(default=None, description='The role ID with highest permission of the current user who triggered the API (for UI). This attribute is deprecated and will be removed in future versions.')
class-attribute
instance-attribute
current_user_role_ids: Optional[List[int]] = Field(default=None, description='The list of role ID of the current user who triggered the API (for UI)')
class-attribute
instance-attribute
repo_count: Optional[int] = Field(default=None, description='The number of the repositories under this project.')
class-attribute
instance-attribute
metadata: Optional[ProjectMetadata] = None
class-attribute
instance-attribute
cve_allowlist: Optional[CVEAllowlist] = None
class-attribute
instance-attribute
ProjectSummary
Source code in harborapi/models/models.py
repo_count: Optional[int] = Field(default=None, description='The number of the repositories under this project.')
class-attribute
instance-attribute
project_admin_count: Optional[int] = Field(default=None, description='The total number of project admin members.')
class-attribute
instance-attribute
maintainer_count: Optional[int] = Field(default=None, description='The total number of maintainer members.')
class-attribute
instance-attribute
developer_count: Optional[int] = Field(default=None, description='The total number of developer members.')
class-attribute
instance-attribute
guest_count: Optional[int] = Field(default=None, description='The total number of guest members.')
class-attribute
instance-attribute
limited_guest_count: Optional[int] = Field(default=None, description='The total number of limited guest members.')
class-attribute
instance-attribute
quota: Optional[ProjectSummaryQuota] = None
class-attribute
instance-attribute
registry: Optional[Registry] = None
class-attribute
instance-attribute
ReplicationPolicy
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The policy ID.')
class-attribute
instance-attribute
name: Optional[str] = Field(default=None, description='The policy name.')
class-attribute
instance-attribute
description: Optional[str] = Field(default=None, description='The description of the policy.')
class-attribute
instance-attribute
src_registry: Optional[Registry] = None
class-attribute
instance-attribute
dest_registry: Optional[Registry] = None
class-attribute
instance-attribute
dest_namespace: Optional[str] = Field(default=None, description='The destination namespace.')
class-attribute
instance-attribute
dest_namespace_replace_count: Optional[int] = Field(default=None, description='Specify how many path components will be replaced by the provided destination namespace.\nThe default value is -1 in which case the legacy mode will be applied.')
class-attribute
instance-attribute
trigger: Optional[ReplicationTrigger] = None
class-attribute
instance-attribute
filters: Optional[List[ReplicationFilter]] = Field(default=None, description='The replication policy filter array.')
class-attribute
instance-attribute
replicate_deletion: Optional[bool] = Field(default=None, description='Whether to replicate the deletion operation.')
class-attribute
instance-attribute
deletion: Optional[bool] = Field(default=None, description='Deprecated, use "replicate_deletion" instead. Whether to replicate the deletion operation.')
class-attribute
instance-attribute
override: Optional[bool] = Field(default=None, description='Whether to override the resources on the destination registry.')
class-attribute
instance-attribute
enabled: Optional[bool] = Field(default=None, description='Whether the policy is enabled or not.')
class-attribute
instance-attribute
creation_time: Optional[AwareDatetime] = Field(default=None, description='The create time of the policy.')
class-attribute
instance-attribute
update_time: Optional[AwareDatetime] = Field(default=None, description='The update time of the policy.')
class-attribute
instance-attribute
speed: Optional[int] = Field(default=None, description='speed limit for each task')
class-attribute
instance-attribute
copy_by_chunk: Optional[bool] = Field(default=None, description='Whether to enable copy by chunk.')
class-attribute
instance-attribute
RegistryProviderInfo
Registry provider information, including base info and capabilities.
Source code in harborapi/models/models.py
endpoint_pattern: Optional[RegistryProviderEndpointPattern] = None
class-attribute
instance-attribute
credential_pattern: Optional[RegistryProviderCredentialPattern] = None
class-attribute
instance-attribute
Robot
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The ID of the robot')
class-attribute
instance-attribute
name: Optional[str] = Field(default=None, description='The name of the robot')
class-attribute
instance-attribute
description: Optional[str] = Field(default=None, description='The description of the robot')
class-attribute
instance-attribute
secret: Optional[str] = Field(default=None, description='The secret of the robot')
class-attribute
instance-attribute
level: Optional[str] = Field(default=None, description='The level of the robot, project or system')
class-attribute
instance-attribute
duration: Optional[int] = Field(default=None, description='The duration of the robot in days, duration must be either -1(Never) or a positive integer')
class-attribute
instance-attribute
editable: Optional[bool] = Field(default=None, description='The editable status of the robot')
class-attribute
instance-attribute
disable: Optional[bool] = Field(default=None, description='The disable status of the robot')
class-attribute
instance-attribute
expires_at: Optional[int] = Field(default=None, description='The expiration date of the robot')
class-attribute
instance-attribute
permissions: Optional[List[RobotPermission]] = None
class-attribute
instance-attribute
creator: Optional[str] = Field(default=None, description='The creator of the robot')
class-attribute
instance-attribute
creation_time: Optional[AwareDatetime] = Field(default=None, description='The creation time of the robot.')
class-attribute
instance-attribute
update_time: Optional[AwareDatetime] = Field(default=None, description='The update time of the robot.')
class-attribute
instance-attribute
RobotCreate
Request for robot account creation.
Source code in harborapi/models/models.py
name: Optional[str] = Field(default=None, description='The name of the robot')
class-attribute
instance-attribute
description: Optional[str] = Field(default=None, description='The description of the robot')
class-attribute
instance-attribute
secret: Optional[str] = Field(default=None, description='The secret of the robot')
class-attribute
instance-attribute
level: Optional[str] = Field(default=None, description='The level of the robot, project or system')
class-attribute
instance-attribute
disable: Optional[bool] = Field(default=None, description='The disable status of the robot')
class-attribute
instance-attribute
duration: Optional[int] = Field(default=None, description='The duration of the robot in days, duration must be either -1(Never) or a positive integer')
class-attribute
instance-attribute
permissions: Optional[List[RobotPermission]] = None
class-attribute
instance-attribute
RetentionMetadata
Metadata for a tag retention rule.
Source code in harborapi/models/models.py
templates: Optional[List[RetentionRuleMetadata]] = Field(default=None, description='templates')
class-attribute
instance-attribute
scope_selectors: Optional[List[RetentionSelectorMetadata]] = Field(default=None, description='supported scope selectors')
class-attribute
instance-attribute
tag_selectors: Optional[List[RetentionSelectorMetadata]] = Field(default=None, description='supported tag selectors')
class-attribute
instance-attribute
RetentionPolicy
Retention policy.
Source code in harborapi/models/models.py
id: Optional[int] = None
class-attribute
instance-attribute
algorithm: Optional[str] = None
class-attribute
instance-attribute
rules: Optional[List[RetentionRule]] = None
class-attribute
instance-attribute
trigger: Optional[RetentionRuleTrigger] = None
class-attribute
instance-attribute
scope: Optional[RetentionPolicyScope] = None
class-attribute
instance-attribute
Search
Source code in harborapi/models/models.py
project: Optional[List[Project]] = Field(default=None, description='Search results of the projects that matched the filter keywords.')
class-attribute
instance-attribute
repository: Optional[List[SearchRepository]] = Field(default=None, description='Search results of the repositories that matched the filter keywords.')
class-attribute
instance-attribute
Artifact
Source code in harborapi/models/models.py
id: Optional[int] = Field(default=None, description='The ID of the artifact')
class-attribute
instance-attribute
type: Optional[str] = Field(default=None, description='The type of the artifact, e.g. image, chart, etc')
class-attribute
instance-attribute
media_type: Optional[str] = Field(default=None, description='The media type of the artifact')
class-attribute
instance-attribute
manifest_media_type: Optional[str] = Field(default=None, description='The manifest media type of the artifact')
class-attribute
instance-attribute
artifact_type: Optional[str] = Field(default=None, description='The artifact_type in the manifest of the artifact')
class-attribute
instance-attribute
project_id: Optional[int] = Field(default=None, description='The ID of the project that the artifact belongs to')
class-attribute
instance-attribute
repository_id: Optional[int] = Field(default=None, description='The ID of the repository that the artifact belongs to')
class-attribute
instance-attribute
repository_name: Optional[str] = Field(default=None, description='The name of the repository that the artifact belongs to')
class-attribute
instance-attribute
digest: Optional[str] = Field(default=None, description='The digest of the artifact')
class-attribute
instance-attribute
size: Optional[int] = Field(default=None, description='The size of the artifact')
class-attribute
instance-attribute
icon: Optional[str] = Field(default=None, description='The digest of the icon')
class-attribute
instance-attribute
push_time: Optional[AwareDatetime] = Field(default=None, description='The push time of the artifact')
class-attribute
instance-attribute
pull_time: Optional[AwareDatetime] = Field(default=None, description='The latest pull time of the artifact')
class-attribute
instance-attribute
extra_attrs: Optional[ExtraAttrs] = None
class-attribute
instance-attribute
annotations: Optional[Annotations] = None
class-attribute
instance-attribute
references: Optional[List[Reference]] = None
class-attribute
instance-attribute
tags: Optional[List[Tag]] = None
class-attribute
instance-attribute
addition_links: Optional[AdditionLinks] = None
class-attribute
instance-attribute
labels: Optional[List[Label]] = None
class-attribute
instance-attribute
scan_overview: Optional[ScanOverview] = None
class-attribute
instance-attribute
sbom_overview: Optional[SBOMOverview] = None
class-attribute
instance-attribute
accessories: Optional[List[Accessory]] = None
class-attribute
instance-attribute
scan: Optional[NativeReportSummary]
property
Returns the first scan overview found for the Artifact, or None if there are none.
Artifacts are typically scanned in a single format, represented by its MIME type. Thus, most Artifacts will have only one scan overview. This property provides a quick access to it.