harbor_swagger_client 1.0.4 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +1 -1
- data/README.md +119 -271
- data/docs/Access.md +10 -0
- data/docs/AdditionLink.md +9 -0
- data/docs/{QuotaRefObject.md → AdditionLinks.md} +1 -1
- data/docs/{EventType.md → Annotations.md} +1 -1
- data/docs/Artifact.md +25 -0
- data/docs/ArtifactApi.md +694 -0
- data/docs/AuditLog.md +13 -0
- data/docs/AuditlogApi.md +69 -0
- data/docs/AuthproxySetting.md +12 -0
- data/docs/CVEAllowlist.md +13 -0
- data/docs/{CVEWhitelistItem.md → CVEAllowlistItem.md} +1 -1
- data/docs/Error.md +9 -0
- data/docs/{Action.md → Errors.md} +2 -2
- data/docs/Execution.md +17 -0
- data/docs/{NotifyType.md → ExtraAttrs.md} +1 -1
- data/docs/GeneralInfo.md +4 -0
- data/docs/Icon.md +9 -0
- data/docs/IconApi.md +66 -0
- data/docs/Instance.md +19 -0
- data/docs/Label.md +8 -9
- data/docs/Metadata.md +13 -0
- data/docs/Metrics.md +14 -0
- data/docs/NativeReportSummary.md +15 -0
- data/docs/Permission.md +3 -2
- data/docs/PingApi.md +56 -0
- data/docs/Platform.md +12 -0
- data/docs/PreheatApi.md +1176 -0
- data/docs/PreheatPolicy.md +18 -0
- data/docs/Project.md +4 -3
- data/docs/ProjectApi.md +544 -0
- data/docs/ProjectDeletable.md +9 -0
- data/docs/ProjectMetadata.md +2 -1
- data/docs/ProjectReq.md +3 -2
- data/docs/ProjectSummary.md +3 -1
- data/docs/{ImmutableTagRule.md → ProviderUnderProject.md} +3 -3
- data/docs/Reference.md +13 -0
- data/docs/ReplicationApi.md +352 -0
- data/docs/ReplicationExecution.md +11 -11
- data/docs/ReplicationTask.md +10 -9
- data/docs/Repository.md +15 -0
- data/docs/RepositoryApi.md +256 -0
- data/docs/Robot.md +19 -0
- data/docs/RobotApi.md +363 -0
- data/docs/RobotCreate.md +14 -0
- data/docs/{RobotAccountCreate.md → RobotCreateV1.md} +2 -2
- data/docs/RobotCreated.md +12 -0
- data/docs/{Action1.md → RobotSec.md} +2 -2
- data/docs/Robotv1Api.md +317 -0
- data/docs/ScanApi.md +61 -27
- data/docs/{Labels.md → ScanOverview.md} +1 -1
- data/docs/StartReplicationExecution.md +8 -0
- data/docs/SysteminfoApi.md +152 -0
- data/docs/Tag.md +15 -0
- data/docs/Task.md +17 -0
- data/docs/VulnerabilitySummary.md +10 -0
- data/harbor_swagger_client-1.0.3.gem +0 -0
- data/harbor_swagger_client.gemspec +2 -1
- data/lib/harbor_swagger_client.rb +46 -106
- data/lib/harbor_swagger_client/api/artifact_api.rb +848 -0
- data/lib/harbor_swagger_client/api/auditlog_api.rb +91 -0
- data/lib/harbor_swagger_client/api/icon_api.rb +84 -0
- data/lib/harbor_swagger_client/api/ping_api.rb +71 -0
- data/lib/harbor_swagger_client/api/preheat_api.rb +1327 -0
- data/lib/harbor_swagger_client/api/project_api.rb +604 -0
- data/lib/harbor_swagger_client/api/replication_api.rb +380 -0
- data/lib/harbor_swagger_client/api/repository_api.rb +302 -0
- data/lib/harbor_swagger_client/api/robot_api.rb +406 -0
- data/lib/harbor_swagger_client/api/robotv1_api.rb +369 -0
- data/lib/harbor_swagger_client/api/scan_api.rb +89 -34
- data/lib/harbor_swagger_client/api/systeminfo_api.rb +167 -0
- data/lib/harbor_swagger_client/api_client.rb +6 -4
- data/lib/harbor_swagger_client/api_error.rb +1 -1
- data/lib/harbor_swagger_client/configuration.rb +4 -4
- data/lib/harbor_swagger_client/models/{robot_account_access.rb → access.rb} +20 -9
- data/lib/harbor_swagger_client/models/{namespace.rb → addition_link.rb} +19 -19
- data/lib/harbor_swagger_client/models/{quota_ref_object.rb → addition_links.rb} +4 -3
- data/lib/harbor_swagger_client/models/{labels.rb → annotations.rb} +4 -4
- data/lib/harbor_swagger_client/models/{chart_version.rb → artifact.rb} +133 -139
- data/lib/harbor_swagger_client/models/audit_log.rb +235 -0
- data/lib/harbor_swagger_client/models/{email_server_setting.rb → authproxy_setting.rb} +40 -49
- data/lib/harbor_swagger_client/models/{cve_whitelist.rb → cve_allowlist.rb} +32 -11
- data/lib/harbor_swagger_client/models/{cve_whitelist_item.rb → cve_allowlist_item.rb} +5 -4
- data/lib/harbor_swagger_client/models/{ldap_failed_import_users.rb → error.rb} +20 -18
- data/lib/harbor_swagger_client/models/{action_1.rb → errors.rb} +14 -10
- data/lib/harbor_swagger_client/models/{retention_execution.rb → execution.rb} +67 -31
- data/lib/harbor_swagger_client/models/{event_type.rb → extra_attrs.rb} +4 -4
- data/lib/harbor_swagger_client/models/general_info.rb +47 -6
- data/lib/harbor_swagger_client/models/{endpoint.rb → icon.rb} +19 -18
- data/lib/harbor_swagger_client/models/instance.rb +297 -0
- data/lib/harbor_swagger_client/models/label.rb +16 -25
- data/lib/harbor_swagger_client/models/{scanner.rb → metadata.rb} +49 -16
- data/lib/harbor_swagger_client/models/{webhook_job.rb → metrics.rb} +54 -64
- data/lib/harbor_swagger_client/models/{component_overview_entry.rb → native_report_summary.rb} +74 -13
- data/lib/harbor_swagger_client/models/permission.rb +29 -18
- data/lib/harbor_swagger_client/models/{retention_policy.rb → platform.rb} +42 -37
- data/lib/harbor_swagger_client/models/{webhook_policy.rb → preheat_policy.rb} +56 -48
- data/lib/harbor_swagger_client/models/project.rb +23 -12
- data/lib/harbor_swagger_client/models/{configurations_scan_all_policy.rb → project_deletable.rb} +19 -17
- data/lib/harbor_swagger_client/models/project_metadata.rb +21 -10
- data/lib/harbor_swagger_client/models/project_req.rb +34 -23
- data/lib/harbor_swagger_client/models/project_summary.rb +33 -13
- data/lib/harbor_swagger_client/models/project_summary_quota.rb +3 -2
- data/lib/harbor_swagger_client/models/{immutable_tag_rule.rb → provider_under_project.rb} +23 -22
- data/lib/harbor_swagger_client/models/{stats.rb → reference.rb} +52 -34
- data/lib/harbor_swagger_client/models/registry.rb +3 -2
- data/lib/harbor_swagger_client/models/registry_credential.rb +3 -2
- data/lib/harbor_swagger_client/models/replication_execution.rb +45 -44
- data/lib/harbor_swagger_client/models/replication_task.rb +43 -32
- data/lib/harbor_swagger_client/models/{robot_account.rb → repository.rb} +36 -36
- data/lib/harbor_swagger_client/models/resource_list.rb +3 -2
- data/lib/harbor_swagger_client/models/{replication_policy.rb → robot.rb} +62 -71
- data/lib/harbor_swagger_client/models/{put_registry.rb → robot_create.rb} +44 -41
- data/lib/harbor_swagger_client/models/{robot_account_create.rb → robot_create_v1.rb} +5 -4
- data/lib/harbor_swagger_client/models/{quota.rb → robot_created.rb} +30 -39
- data/lib/harbor_swagger_client/models/{input_secret.rb → robot_sec.rb} +6 -4
- data/lib/harbor_swagger_client/models/{notify_type.rb → scan_overview.rb} +5 -4
- data/lib/harbor_swagger_client/models/{action.rb → start_replication_execution.rb} +12 -10
- data/lib/harbor_swagger_client/models/storage.rb +3 -2
- data/lib/harbor_swagger_client/models/system_info.rb +3 -2
- data/lib/harbor_swagger_client/models/{retention_rule.rb → tag.rb} +55 -52
- data/lib/harbor_swagger_client/models/{retention_execution_task.rb → task.rb} +53 -52
- data/lib/harbor_swagger_client/models/{scanner_adapter_metadata.rb → vulnerability_summary.rb} +28 -26
- data/lib/harbor_swagger_client/version.rb +2 -2
- data/spec/api/artifact_api_spec.rb +209 -0
- data/spec/api/auditlog_api_spec.rb +50 -0
- data/spec/api/icon_api_spec.rb +48 -0
- data/spec/api/ping_api_spec.rb +46 -0
- data/spec/api/preheat_api_spec.rb +311 -0
- data/spec/api/project_api_spec.rb +161 -0
- data/spec/api/replication_api_spec.rb +116 -0
- data/spec/api/repository_api_spec.rb +94 -0
- data/spec/api/robot_api_spec.rb +117 -0
- data/spec/api/robotv1_api_spec.rb +108 -0
- data/spec/api/scan_api_spec.rb +20 -11
- data/spec/api/systeminfo_api_spec.rb +68 -0
- data/spec/api_client_spec.rb +18 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/{search_spec.rb → access_spec.rb} +10 -10
- data/spec/models/{password_spec.rb → addition_link_spec.rb} +9 -9
- data/spec/models/{quota_ref_object_spec.rb → addition_links_spec.rb} +7 -7
- data/spec/models/{labels_spec.rb → annotations_spec.rb} +7 -7
- data/spec/models/{chart_version_spec.rb → artifact_spec.rb} +39 -21
- data/spec/models/{search_repository_spec.rb → audit_log_spec.rb} +13 -13
- data/spec/models/authproxy_setting_spec.rb +65 -0
- data/spec/models/{cve_whitelist_item_spec.rb → cve_allowlist_item_spec.rb} +7 -7
- data/spec/models/{quota_spec.rb → cve_allowlist_spec.rb} +10 -10
- data/spec/models/{endpoint_spec.rb → error_spec.rb} +9 -9
- data/spec/models/{action_spec.rb → errors_spec.rb} +8 -8
- data/spec/models/{gc_result_spec.rb → execution_spec.rb} +21 -15
- data/spec/models/{event_type_spec.rb → extra_attrs_spec.rb} +7 -7
- data/spec/models/general_info_spec.rb +25 -1
- data/spec/models/{namespace_spec.rb → icon_spec.rb} +9 -9
- data/spec/models/{chart_metadata_spec.rb → instance_spec.rb} +23 -17
- data/spec/models/label_spec.rb +1 -7
- data/spec/models/{email_server_setting_spec.rb → metadata_spec.rb} +13 -13
- data/spec/models/{ping_registry_spec.rb → metrics_spec.rb} +14 -14
- data/spec/models/{ldap_conf_spec.rb → native_report_summary_spec.rb} +15 -15
- data/spec/models/permission_spec.rb +9 -3
- data/spec/models/{registry_info_spec.rb → platform_spec.rb} +17 -11
- data/spec/models/{webhook_policy_spec.rb → preheat_policy_spec.rb} +19 -13
- data/spec/models/{bool_config_item_spec.rb → project_deletable_spec.rb} +9 -9
- data/spec/models/project_metadata_spec.rb +8 -2
- data/spec/models/project_req_spec.rb +10 -4
- data/spec/models/project_spec.rb +8 -2
- data/spec/models/project_summary_quota_spec.rb +1 -1
- data/spec/models/project_summary_spec.rb +14 -2
- data/spec/models/{immutable_tag_rule_spec.rb → provider_under_project_spec.rb} +10 -10
- data/spec/models/{statistic_map_spec.rb → reference_spec.rb} +13 -13
- data/spec/models/registry_credential_spec.rb +1 -1
- data/spec/models/registry_spec.rb +1 -1
- data/spec/models/replication_execution_spec.rb +10 -10
- data/spec/models/replication_task_spec.rb +12 -6
- data/spec/models/{robot_account_spec.rb → repository_spec.rb} +12 -12
- data/spec/models/resource_list_spec.rb +1 -1
- data/spec/models/{put_registry_spec.rb → robot_create_spec.rb} +12 -12
- data/spec/models/{robot_account_create_spec.rb → robot_create_v1_spec.rb} +7 -7
- data/spec/models/{retention_policy_spec.rb → robot_created_spec.rb} +11 -11
- data/spec/models/{input_secret_spec.rb → robot_sec_spec.rb} +7 -7
- data/spec/models/{replication_policy_spec.rb → robot_spec.rb} +14 -20
- data/spec/models/{notify_type_spec.rb → scan_overview_spec.rb} +7 -7
- data/spec/models/{unauthorized_chart_api_error_spec.rb → start_replication_execution_spec.rb} +8 -8
- data/spec/models/storage_spec.rb +1 -1
- data/spec/models/system_info_spec.rb +1 -1
- data/spec/models/{webhook_job_spec.rb → tag_spec.rb} +14 -14
- data/spec/models/{retention_execution_task_spec.rb → task_spec.rb} +15 -21
- data/spec/models/{project_member_spec.rb → vulnerability_summary_spec.rb} +10 -10
- data/spec/spec_helper.rb +1 -1
- metadata +204 -423
- data/docs/AdminJobSchedule.md +0 -9
- data/docs/AdminJobScheduleObj.md +0 -9
- data/docs/BadRequestFormatedError.md +0 -8
- data/docs/BoolConfigItem.md +0 -9
- data/docs/CVEWhitelist.md +0 -11
- data/docs/ChartAPIError.md +0 -8
- data/docs/ChartMetadata.md +0 -18
- data/docs/ChartRepositoryApi.md +0 -191
- data/docs/ChartVersion.md +0 -22
- data/docs/ComponentHealthStatus.md +0 -10
- data/docs/ComponentOverviewEntry.md +0 -9
- data/docs/Configurations.md +0 -42
- data/docs/ConfigurationsResponse.md +0 -41
- data/docs/ConfigurationsScanAllPolicy.md +0 -9
- data/docs/ConfigurationsScanAllPolicyParameter.md +0 -8
- data/docs/ConflictFormatedError.md +0 -8
- data/docs/EmailServerSetting.md +0 -13
- data/docs/Endpoint.md +0 -9
- data/docs/FilterStyle.md +0 -10
- data/docs/ForbiddenChartAPIError.md +0 -8
- data/docs/GCResult.md +0 -16
- data/docs/InputSecret.md +0 -8
- data/docs/InsufficientStorageChartAPIError.md +0 -8
- data/docs/IntegerConfigItem.md +0 -9
- data/docs/InternalChartAPIError.md +0 -8
- data/docs/IsDefault.md +0 -8
- data/docs/LabelApi.md +0 -191
- data/docs/LdapConf.md +0 -15
- data/docs/LdapFailedImportUsers.md +0 -9
- data/docs/LdapImportUsers.md +0 -8
- data/docs/LdapUsers.md +0 -10
- data/docs/Namespace.md +0 -9
- data/docs/NotFoundChartAPIError.md +0 -8
- data/docs/OverallHealthStatus.md +0 -9
- data/docs/Password.md +0 -9
- data/docs/PingRegistry.md +0 -14
- data/docs/ProductsApi.md +0 -6768
- data/docs/ProjectMember.md +0 -10
- data/docs/ProjectMemberEntity.md +0 -14
- data/docs/ProjectScanner.md +0 -8
- data/docs/PutRegistry.md +0 -14
- data/docs/Quota.md +0 -13
- data/docs/QuotaApi.md +0 -118
- data/docs/QuotaSwitcher.md +0 -8
- data/docs/QuotaUpdateReq.md +0 -8
- data/docs/RegistryInfo.md +0 -11
- data/docs/ReplicationFilter.md +0 -9
- data/docs/ReplicationPolicy.md +0 -20
- data/docs/ReplicationTrigger.md +0 -9
- data/docs/RetentionApi.md +0 -449
- data/docs/RetentionExecution.md +0 -14
- data/docs/RetentionExecutionTask.md +0 -18
- data/docs/RetentionMetadata.md +0 -10
- data/docs/RetentionPolicy.md +0 -12
- data/docs/RetentionPolicyScope.md +0 -9
- data/docs/RetentionRule.md +0 -15
- data/docs/RetentionRuleMetadata.md +0 -11
- data/docs/RetentionRuleParamMetadata.md +0 -10
- data/docs/RetentionRuleTrigger.md +0 -10
- data/docs/RetentionSelector.md +0 -11
- data/docs/RetentionSelectorMetadata.md +0 -10
- data/docs/RobotAccount.md +0 -15
- data/docs/RobotAccountAccess.md +0 -9
- data/docs/RobotAccountApi.md +0 -291
- data/docs/RobotAccountPostRep.md +0 -9
- data/docs/RobotAccountUpdate.md +0 -8
- data/docs/Role.md +0 -11
- data/docs/RoleParam.md +0 -9
- data/docs/RoleRequest.md +0 -8
- data/docs/Scanner.md +0 -10
- data/docs/ScannerAdapterMetadata.md +0 -10
- data/docs/ScannerCapability.md +0 -9
- data/docs/ScannerRegistration.md +0 -21
- data/docs/ScannerRegistrationReq.md +0 -15
- data/docs/ScannerRegistrationSettings.md +0 -11
- data/docs/ScannersApi.md +0 -600
- data/docs/Search.md +0 -10
- data/docs/SearchRepository.md +0 -13
- data/docs/SearchResult.md +0 -10
- data/docs/StatisticMap.md +0 -13
- data/docs/Stats.md +0 -11
- data/docs/StringConfigItem.md +0 -9
- data/docs/SupportedWebhookEventTypes.md +0 -9
- data/docs/SysAdminFlag.md +0 -8
- data/docs/SystemApi.md +0 -163
- data/docs/TriggerSettings.md +0 -8
- data/docs/UnauthorizedChartAPIError.md +0 -8
- data/docs/User.md +0 -22
- data/docs/UserEntity.md +0 -9
- data/docs/UserGroup.md +0 -11
- data/docs/UserProfile.md +0 -10
- data/docs/UserSearch.md +0 -9
- data/docs/WebhookJob.md +0 -15
- data/docs/WebhookLastTrigger.md +0 -11
- data/docs/WebhookPolicy.md +0 -17
- data/docs/WebhookTargetObject.md +0 -11
- data/lib/harbor_swagger_client/api/chart_repository_api.rb +0 -230
- data/lib/harbor_swagger_client/api/label_api.rb +0 -230
- data/lib/harbor_swagger_client/api/products_api.rb +0 -6879
- data/lib/harbor_swagger_client/api/quota_api.rb +0 -136
- data/lib/harbor_swagger_client/api/retention_api.rb +0 -482
- data/lib/harbor_swagger_client/api/robot_account_api.rb +0 -321
- data/lib/harbor_swagger_client/api/scanners_api.rb +0 -624
- data/lib/harbor_swagger_client/api/system_api.rb +0 -173
- data/lib/harbor_swagger_client/models/admin_job_schedule.rb +0 -195
- data/lib/harbor_swagger_client/models/admin_job_schedule_obj.rb +0 -194
- data/lib/harbor_swagger_client/models/bad_request_formated_error.rb +0 -190
- data/lib/harbor_swagger_client/models/bool_config_item.rb +0 -194
- data/lib/harbor_swagger_client/models/chart_api_error.rb +0 -190
- data/lib/harbor_swagger_client/models/chart_metadata.rb +0 -319
- data/lib/harbor_swagger_client/models/component_health_status.rb +0 -205
- data/lib/harbor_swagger_client/models/configurations.rb +0 -523
- data/lib/harbor_swagger_client/models/configurations_response.rb +0 -513
- data/lib/harbor_swagger_client/models/configurations_scan_all_policy_parameter.rb +0 -185
- data/lib/harbor_swagger_client/models/conflict_formated_error.rb +0 -190
- data/lib/harbor_swagger_client/models/filter_style.rb +0 -207
- data/lib/harbor_swagger_client/models/forbidden_chart_api_error.rb +0 -190
- data/lib/harbor_swagger_client/models/gc_result.rb +0 -263
- data/lib/harbor_swagger_client/models/insufficient_storage_chart_api_error.rb +0 -190
- data/lib/harbor_swagger_client/models/integer_config_item.rb +0 -194
- data/lib/harbor_swagger_client/models/internal_chart_api_error.rb +0 -190
- data/lib/harbor_swagger_client/models/is_default.rb +0 -184
- data/lib/harbor_swagger_client/models/ldap_conf.rb +0 -254
- data/lib/harbor_swagger_client/models/ldap_import_users.rb +0 -186
- data/lib/harbor_swagger_client/models/ldap_users.rb +0 -204
- data/lib/harbor_swagger_client/models/not_found_chart_api_error.rb +0 -190
- data/lib/harbor_swagger_client/models/overall_health_status.rb +0 -196
- data/lib/harbor_swagger_client/models/password.rb +0 -194
- data/lib/harbor_swagger_client/models/ping_registry.rb +0 -244
- data/lib/harbor_swagger_client/models/project_member.rb +0 -202
- data/lib/harbor_swagger_client/models/project_member_entity.rb +0 -244
- data/lib/harbor_swagger_client/models/project_scanner.rb +0 -184
- data/lib/harbor_swagger_client/models/quota_switcher.rb +0 -184
- data/lib/harbor_swagger_client/models/quota_update_req.rb +0 -184
- data/lib/harbor_swagger_client/models/registry_info.rb +0 -219
- data/lib/harbor_swagger_client/models/replication_filter.rb +0 -194
- data/lib/harbor_swagger_client/models/replication_trigger.rb +0 -193
- data/lib/harbor_swagger_client/models/retention_metadata.rb +0 -211
- data/lib/harbor_swagger_client/models/retention_policy_scope.rb +0 -192
- data/lib/harbor_swagger_client/models/retention_rule_metadata.rb +0 -217
- data/lib/harbor_swagger_client/models/retention_rule_param_metadata.rb +0 -202
- data/lib/harbor_swagger_client/models/retention_rule_trigger.rb +0 -201
- data/lib/harbor_swagger_client/models/retention_selector.rb +0 -210
- data/lib/harbor_swagger_client/models/retention_selector_metadata.rb +0 -204
- data/lib/harbor_swagger_client/models/robot_account_post_rep.rb +0 -194
- data/lib/harbor_swagger_client/models/robot_account_update.rb +0 -184
- data/lib/harbor_swagger_client/models/role.rb +0 -213
- data/lib/harbor_swagger_client/models/role_param.rb +0 -196
- data/lib/harbor_swagger_client/models/role_request.rb +0 -184
- data/lib/harbor_swagger_client/models/scanner_capability.rb +0 -196
- data/lib/harbor_swagger_client/models/scanner_registration.rb +0 -327
- data/lib/harbor_swagger_client/models/scanner_registration_req.rb +0 -262
- data/lib/harbor_swagger_client/models/scanner_registration_settings.rb +0 -216
- data/lib/harbor_swagger_client/models/search.rb +0 -210
- data/lib/harbor_swagger_client/models/search_repository.rb +0 -234
- data/lib/harbor_swagger_client/models/search_result.rb +0 -204
- data/lib/harbor_swagger_client/models/statistic_map.rb +0 -234
- data/lib/harbor_swagger_client/models/string_config_item.rb +0 -194
- data/lib/harbor_swagger_client/models/supported_webhook_event_types.rb +0 -197
- data/lib/harbor_swagger_client/models/sys_admin_flag.rb +0 -184
- data/lib/harbor_swagger_client/models/trigger_settings.rb +0 -184
- data/lib/harbor_swagger_client/models/unauthorized_chart_api_error.rb +0 -190
- data/lib/harbor_swagger_client/models/user.rb +0 -311
- data/lib/harbor_swagger_client/models/user_entity.rb +0 -194
- data/lib/harbor_swagger_client/models/user_group.rb +0 -214
- data/lib/harbor_swagger_client/models/user_profile.rb +0 -204
- data/lib/harbor_swagger_client/models/user_search.rb +0 -193
- data/lib/harbor_swagger_client/models/webhook_last_trigger.rb +0 -215
- data/lib/harbor_swagger_client/models/webhook_target_object.rb +0 -215
- data/spec/api/chart_repository_api_spec.rb +0 -79
- data/spec/api/label_api_spec.rb +0 -79
- data/spec/api/products_api_spec.rb +0 -1581
- data/spec/api/quota_api_spec.rb +0 -60
- data/spec/api/retention_api_spec.rb +0 -136
- data/spec/api/robot_account_api_spec.rb +0 -100
- data/spec/api/scanners_api_spec.rb +0 -169
- data/spec/api/system_api_spec.rb +0 -70
- data/spec/models/action_1_spec.rb +0 -41
- data/spec/models/admin_job_schedule_obj_spec.rb +0 -47
- data/spec/models/admin_job_schedule_spec.rb +0 -47
- data/spec/models/bad_request_formated_error_spec.rb +0 -41
- data/spec/models/chart_api_error_spec.rb +0 -41
- data/spec/models/component_health_status_spec.rb +0 -53
- data/spec/models/component_overview_entry_spec.rb +0 -47
- data/spec/models/configurations_response_spec.rb +0 -239
- data/spec/models/configurations_scan_all_policy_parameter_spec.rb +0 -41
- data/spec/models/configurations_scan_all_policy_spec.rb +0 -47
- data/spec/models/configurations_spec.rb +0 -245
- data/spec/models/conflict_formated_error_spec.rb +0 -41
- data/spec/models/cve_whitelist_spec.rb +0 -59
- data/spec/models/filter_style_spec.rb +0 -53
- data/spec/models/forbidden_chart_api_error_spec.rb +0 -41
- data/spec/models/insufficient_storage_chart_api_error_spec.rb +0 -41
- data/spec/models/integer_config_item_spec.rb +0 -47
- data/spec/models/internal_chart_api_error_spec.rb +0 -41
- data/spec/models/is_default_spec.rb +0 -41
- data/spec/models/ldap_failed_import_users_spec.rb +0 -47
- data/spec/models/ldap_import_users_spec.rb +0 -41
- data/spec/models/ldap_users_spec.rb +0 -53
- data/spec/models/not_found_chart_api_error_spec.rb +0 -41
- data/spec/models/overall_health_status_spec.rb +0 -47
- data/spec/models/project_member_entity_spec.rb +0 -77
- data/spec/models/project_scanner_spec.rb +0 -41
- data/spec/models/quota_switcher_spec.rb +0 -41
- data/spec/models/quota_update_req_spec.rb +0 -41
- data/spec/models/replication_filter_spec.rb +0 -47
- data/spec/models/replication_trigger_spec.rb +0 -47
- data/spec/models/retention_execution_spec.rb +0 -77
- data/spec/models/retention_metadata_spec.rb +0 -53
- data/spec/models/retention_policy_scope_spec.rb +0 -47
- data/spec/models/retention_rule_metadata_spec.rb +0 -59
- data/spec/models/retention_rule_param_metadata_spec.rb +0 -53
- data/spec/models/retention_rule_spec.rb +0 -83
- data/spec/models/retention_rule_trigger_spec.rb +0 -53
- data/spec/models/retention_selector_metadata_spec.rb +0 -53
- data/spec/models/retention_selector_spec.rb +0 -59
- data/spec/models/robot_account_access_spec.rb +0 -47
- data/spec/models/robot_account_post_rep_spec.rb +0 -47
- data/spec/models/robot_account_update_spec.rb +0 -41
- data/spec/models/role_param_spec.rb +0 -47
- data/spec/models/role_request_spec.rb +0 -41
- data/spec/models/role_spec.rb +0 -59
- data/spec/models/scanner_adapter_metadata_spec.rb +0 -53
- data/spec/models/scanner_capability_spec.rb +0 -47
- data/spec/models/scanner_registration_req_spec.rb +0 -83
- data/spec/models/scanner_registration_settings_spec.rb +0 -59
- data/spec/models/scanner_registration_spec.rb +0 -119
- data/spec/models/scanner_spec.rb +0 -53
- data/spec/models/search_result_spec.rb +0 -53
- data/spec/models/stats_spec.rb +0 -59
- data/spec/models/string_config_item_spec.rb +0 -47
- data/spec/models/supported_webhook_event_types_spec.rb +0 -47
- data/spec/models/sys_admin_flag_spec.rb +0 -41
- data/spec/models/trigger_settings_spec.rb +0 -41
- data/spec/models/user_entity_spec.rb +0 -47
- data/spec/models/user_group_spec.rb +0 -59
- data/spec/models/user_profile_spec.rb +0 -53
- data/spec/models/user_search_spec.rb +0 -47
- data/spec/models/user_spec.rb +0 -125
- data/spec/models/webhook_last_trigger_spec.rb +0 -59
- data/spec/models/webhook_target_object_spec.rb +0 -59
data/docs/AuditLog.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# SwaggerClient::AuditLog
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | The ID of the audit log entry. | [optional]
|
7
|
+
**username** | **String** | Username of the user in this log entry. | [optional]
|
8
|
+
**resource** | **String** | Name of the repository in this log entry. | [optional]
|
9
|
+
**resource_type** | **String** | Tag of the repository in this log entry. | [optional]
|
10
|
+
**operation** | **String** | The operation against the repository in this log entry. | [optional]
|
11
|
+
**op_time** | **DateTime** | The time when this operation is triggered. | [optional]
|
12
|
+
|
13
|
+
|
data/docs/AuditlogApi.md
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
# SwaggerClient::AuditlogApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost/api/v2.0*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**list_audit_logs**](AuditlogApi.md#list_audit_logs) | **GET** /audit-logs | Get recent logs of the projects which the user is a member of
|
8
|
+
|
9
|
+
|
10
|
+
# **list_audit_logs**
|
11
|
+
> Array<AuditLog> list_audit_logs(opts)
|
12
|
+
|
13
|
+
Get recent logs of the projects which the user is a member of
|
14
|
+
|
15
|
+
This endpoint let user see the recent operation logs of the projects which he is member of
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'harbor_swagger_client'
|
21
|
+
# setup authorization
|
22
|
+
SwaggerClient.configure do |config|
|
23
|
+
# Configure HTTP basic authorization: basic
|
24
|
+
config.username = 'YOUR USERNAME'
|
25
|
+
config.password = 'YOUR PASSWORD'
|
26
|
+
end
|
27
|
+
|
28
|
+
api_instance = SwaggerClient::AuditlogApi.new
|
29
|
+
|
30
|
+
opts = {
|
31
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
32
|
+
q: 'q_example', # String | Query string to query resources. Supported query patterns are \"exact match(k=v)\", \"fuzzy match(k=~v)\", \"range(k=[min~max])\", \"list with union releationship(k={v1 v2 v3})\" and \"list with intersetion relationship(k=(v1 v2 v3))\". The value of range and list can be string(enclosed by \" or '), integer or time(in format \"2020-04-09 02:36:00\"). All of these query patterns should be put in the query string \"q=xxx\" and splitted by \",\". e.g. q=k1=v1,k2=~v2,k3=[min~max]
|
33
|
+
page: 1, # Integer | The page number
|
34
|
+
page_size: 10, # Integer | The size of per page
|
35
|
+
}
|
36
|
+
|
37
|
+
begin
|
38
|
+
#Get recent logs of the projects which the user is a member of
|
39
|
+
result = api_instance.list_audit_logs(opts)
|
40
|
+
p result
|
41
|
+
rescue SwaggerClient::ApiError => e
|
42
|
+
puts "Exception when calling AuditlogApi->list_audit_logs: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
### Parameters
|
47
|
+
|
48
|
+
Name | Type | Description | Notes
|
49
|
+
------------- | ------------- | ------------- | -------------
|
50
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
51
|
+
**q** | **String**| Query string to query resources. Supported query patterns are \"exact match(k=v)\", \"fuzzy match(k=~v)\", \"range(k=[min~max])\", \"list with union releationship(k={v1 v2 v3})\" and \"list with intersetion relationship(k=(v1 v2 v3))\". The value of range and list can be string(enclosed by \" or '), integer or time(in format \"2020-04-09 02:36:00\"). All of these query patterns should be put in the query string \"q=xxx\" and splitted by \",\". e.g. q=k1=v1,k2=~v2,k3=[min~max] | [optional]
|
52
|
+
**page** | **Integer**| The page number | [optional] [default to 1]
|
53
|
+
**page_size** | **Integer**| The size of per page | [optional] [default to 10]
|
54
|
+
|
55
|
+
### Return type
|
56
|
+
|
57
|
+
[**Array<AuditLog>**](AuditLog.md)
|
58
|
+
|
59
|
+
### Authorization
|
60
|
+
|
61
|
+
[basic](../README.md#basic)
|
62
|
+
|
63
|
+
### HTTP request headers
|
64
|
+
|
65
|
+
- **Content-Type**: application/json
|
66
|
+
- **Accept**: application/json
|
67
|
+
|
68
|
+
|
69
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# SwaggerClient::AuthproxySetting
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**endpoint** | **String** | The fully qualified URI of login endpoint of authproxy, such as 'https://192.168.1.2:8443/login' | [optional]
|
7
|
+
**tokenreivew_endpoint** | **String** | The fully qualified URI of token review endpoint of authproxy, such as 'https://192.168.1.2:8443/tokenreview' | [optional]
|
8
|
+
**skip_search** | **BOOLEAN** | The flag to determine whether Harbor can skip search the user/group when adding him as a member. | [optional]
|
9
|
+
**verify_cert** | **BOOLEAN** | The flag to determine whether Harbor should verify the certificate when connecting to the auth proxy. | [optional]
|
10
|
+
**server_certificate** | **String** | The certificate to be pinned when connecting auth proxy. | [optional]
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# SwaggerClient::CVEAllowlist
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | ID of the allowlist | [optional]
|
7
|
+
**project_id** | **Integer** | ID of the project which the allowlist belongs to. For system level allowlist this attribute is zero. | [optional]
|
8
|
+
**expires_at** | **Integer** | 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. | [optional]
|
9
|
+
**items** | [**Array<CVEAllowlistItem>**](CVEAllowlistItem.md) | | [optional]
|
10
|
+
**creation_time** | **DateTime** | The creation time of the allowlist. | [optional]
|
11
|
+
**update_time** | **DateTime** | The update time of the allowlist. | [optional]
|
12
|
+
|
13
|
+
|
data/docs/Error.md
ADDED
@@ -1,8 +1,8 @@
|
|
1
|
-
# SwaggerClient::
|
1
|
+
# SwaggerClient::Errors
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
6
|
+
**errors** | [**Array<Error>**](Error.md) | | [optional]
|
7
7
|
|
8
8
|
|
data/docs/Execution.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# SwaggerClient::Execution
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | The ID of execution | [optional]
|
7
|
+
**vendor_type** | **String** | The vendor type of execution | [optional]
|
8
|
+
**vendor_id** | **Integer** | The vendor id of execution | [optional]
|
9
|
+
**status** | **String** | The status of execution | [optional]
|
10
|
+
**status_message** | **String** | The status message of execution | [optional]
|
11
|
+
**metrics** | [**Metrics**](Metrics.md) | | [optional]
|
12
|
+
**trigger** | **String** | The trigger of execution | [optional]
|
13
|
+
**extra_attrs** | [**ExtraAttrs**](ExtraAttrs.md) | | [optional]
|
14
|
+
**start_time** | **String** | The start time of execution | [optional]
|
15
|
+
**end_time** | **String** | The end time of execution | [optional]
|
16
|
+
|
17
|
+
|
data/docs/GeneralInfo.md
CHANGED
@@ -12,5 +12,9 @@ Name | Type | Description | Notes
|
|
12
12
|
**self_registration** | **BOOLEAN** | Indicate whether the Harbor instance enable user to register himself. | [optional]
|
13
13
|
**has_ca_root** | **BOOLEAN** | Indicate whether there is a ca root cert file ready for download in the file system. | [optional]
|
14
14
|
**harbor_version** | **String** | The build version of Harbor. | [optional]
|
15
|
+
**registry_storage_provider_name** | **String** | The storage provider's name of Harbor registry | [optional]
|
16
|
+
**read_only** | **BOOLEAN** | The flag to indicate whether Harbor is in readonly mode. | [optional]
|
17
|
+
**notification_enable** | **BOOLEAN** | The flag to indicate whether notification mechanism is enabled on Harbor instance. | [optional]
|
18
|
+
**authproxy_settings** | [**AuthproxySetting**](AuthproxySetting.md) | The setting of auth proxy this is only available when Harbor relies on authproxy for authentication. | [optional]
|
15
19
|
|
16
20
|
|
data/docs/Icon.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# SwaggerClient::Icon
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**content_type** | **String** | The content type of the icon | [optional]
|
7
|
+
**content** | **String** | The base64 encoded content of the icon | [optional]
|
8
|
+
|
9
|
+
|
data/docs/IconApi.md
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
# SwaggerClient::IconApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost/api/v2.0*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_icon**](IconApi.md#get_icon) | **GET** /icons/{digest} | Get artifact icon
|
8
|
+
|
9
|
+
|
10
|
+
# **get_icon**
|
11
|
+
> Icon get_icon(digest, opts)
|
12
|
+
|
13
|
+
Get artifact icon
|
14
|
+
|
15
|
+
Get the artifact icon with the specified digest. As the original icon image is resized and encoded before returning, the parameter \"digest\" in the path doesn't match the hash of the returned content
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'harbor_swagger_client'
|
21
|
+
# setup authorization
|
22
|
+
SwaggerClient.configure do |config|
|
23
|
+
# Configure HTTP basic authorization: basic
|
24
|
+
config.username = 'YOUR USERNAME'
|
25
|
+
config.password = 'YOUR PASSWORD'
|
26
|
+
end
|
27
|
+
|
28
|
+
api_instance = SwaggerClient::IconApi.new
|
29
|
+
|
30
|
+
digest = 'digest_example' # String | The digest of the resource
|
31
|
+
|
32
|
+
opts = {
|
33
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
34
|
+
}
|
35
|
+
|
36
|
+
begin
|
37
|
+
#Get artifact icon
|
38
|
+
result = api_instance.get_icon(digest, opts)
|
39
|
+
p result
|
40
|
+
rescue SwaggerClient::ApiError => e
|
41
|
+
puts "Exception when calling IconApi->get_icon: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
### Parameters
|
46
|
+
|
47
|
+
Name | Type | Description | Notes
|
48
|
+
------------- | ------------- | ------------- | -------------
|
49
|
+
**digest** | **String**| The digest of the resource |
|
50
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
51
|
+
|
52
|
+
### Return type
|
53
|
+
|
54
|
+
[**Icon**](Icon.md)
|
55
|
+
|
56
|
+
### Authorization
|
57
|
+
|
58
|
+
[basic](../README.md#basic)
|
59
|
+
|
60
|
+
### HTTP request headers
|
61
|
+
|
62
|
+
- **Content-Type**: application/json
|
63
|
+
- **Accept**: application/json
|
64
|
+
|
65
|
+
|
66
|
+
|
data/docs/Instance.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# SwaggerClient::Instance
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | Unique ID | [optional]
|
7
|
+
**name** | **String** | Instance name | [optional]
|
8
|
+
**description** | **String** | Description of instance | [optional]
|
9
|
+
**vendor** | **String** | Based on which driver, identified by ID | [optional]
|
10
|
+
**endpoint** | **String** | The service endpoint of this instance | [optional]
|
11
|
+
**auth_mode** | **String** | The authentication way supported | [optional]
|
12
|
+
**auth_info** | **Hash<String, String>** | The auth credential data if exists | [optional]
|
13
|
+
**status** | **String** | The health status | [optional]
|
14
|
+
**enabled** | **BOOLEAN** | Whether the instance is activated or not | [optional]
|
15
|
+
**default** | **BOOLEAN** | Whether the instance is default or not | [optional]
|
16
|
+
**insecure** | **BOOLEAN** | Whether the instance endpoint is insecure or not | [optional]
|
17
|
+
**setup_timestamp** | **Integer** | The timestamp of instance setting up | [optional]
|
18
|
+
|
19
|
+
|
data/docs/Label.md
CHANGED
@@ -3,14 +3,13 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**id** | **Integer** | The ID of label
|
7
|
-
**name** | **String** | The name
|
8
|
-
**description** | **String** | The description
|
9
|
-
**color** | **String** | The color
|
10
|
-
**scope** | **String** | The scope
|
11
|
-
**project_id** | **Integer** | The project
|
12
|
-
**creation_time** | **
|
13
|
-
**update_time** | **
|
14
|
-
**deleted** | **BOOLEAN** | The label is deleted or not. | [optional]
|
6
|
+
**id** | **Integer** | The ID of the label | [optional]
|
7
|
+
**name** | **String** | The name the label | [optional]
|
8
|
+
**description** | **String** | The description the label | [optional]
|
9
|
+
**color** | **String** | The color the label | [optional]
|
10
|
+
**scope** | **String** | The scope the label | [optional]
|
11
|
+
**project_id** | **Integer** | The ID of project that the label belongs to | [optional]
|
12
|
+
**creation_time** | **DateTime** | The creation time the label | [optional]
|
13
|
+
**update_time** | **DateTime** | The update time of the label | [optional]
|
15
14
|
|
16
15
|
|
data/docs/Metadata.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# SwaggerClient::Metadata
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | id | [optional]
|
7
|
+
**name** | **String** | name | [optional]
|
8
|
+
**icon** | **String** | icon | [optional]
|
9
|
+
**maintainers** | **Array<String>** | maintainers | [optional]
|
10
|
+
**version** | **String** | version | [optional]
|
11
|
+
**source** | **String** | source | [optional]
|
12
|
+
|
13
|
+
|
data/docs/Metrics.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# SwaggerClient::Metrics
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**task_count** | **Integer** | The count of task | [optional]
|
7
|
+
**success_task_count** | **Integer** | The count of success task | [optional]
|
8
|
+
**error_task_count** | **Integer** | The count of error task | [optional]
|
9
|
+
**pending_task_count** | **Integer** | The count of pending task | [optional]
|
10
|
+
**running_task_count** | **Integer** | The count of running task | [optional]
|
11
|
+
**scheduled_task_count** | **Integer** | The count of scheduled task | [optional]
|
12
|
+
**stopped_task_count** | **Integer** | The count of stopped task | [optional]
|
13
|
+
|
14
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# SwaggerClient::NativeReportSummary
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**report_id** | **String** | id of the native scan report | [optional]
|
7
|
+
**scan_status** | **String** | The status of the report generating process | [optional]
|
8
|
+
**severity** | **String** | The overall severity | [optional]
|
9
|
+
**duration** | **Integer** | The seconds spent for generating the report | [optional]
|
10
|
+
**summary** | [**VulnerabilitySummary**](VulnerabilitySummary.md) | | [optional]
|
11
|
+
**start_time** | **DateTime** | The start time of the scan process that generating report | [optional]
|
12
|
+
**end_time** | **DateTime** | The end time of the scan process that generating report | [optional]
|
13
|
+
**complete_percent** | **Integer** | The complete percent of the scanning which value is between 0 and 100 | [optional]
|
14
|
+
|
15
|
+
|
data/docs/Permission.md
CHANGED
@@ -3,7 +3,8 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
7
|
-
**
|
6
|
+
**kind** | **String** | The kind of the permission | [optional]
|
7
|
+
**namespace** | **String** | The namespace of the permission | [optional]
|
8
|
+
**access** | [**Array<Access>**](Access.md) | | [optional]
|
8
9
|
|
9
10
|
|
data/docs/PingApi.md
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
# SwaggerClient::PingApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost/api/v2.0*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**ping_get**](PingApi.md#ping_get) | **GET** /ping | Ping Harbor to check if it's alive.
|
8
|
+
|
9
|
+
|
10
|
+
# **ping_get**
|
11
|
+
> String ping_get
|
12
|
+
|
13
|
+
Ping Harbor to check if it's alive.
|
14
|
+
|
15
|
+
This API simply replies a pong to indicate the process to handle API is up, disregarding the health status of dependent components.
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'harbor_swagger_client'
|
21
|
+
# setup authorization
|
22
|
+
SwaggerClient.configure do |config|
|
23
|
+
# Configure HTTP basic authorization: basic
|
24
|
+
config.username = 'YOUR USERNAME'
|
25
|
+
config.password = 'YOUR PASSWORD'
|
26
|
+
end
|
27
|
+
|
28
|
+
api_instance = SwaggerClient::PingApi.new
|
29
|
+
|
30
|
+
begin
|
31
|
+
#Ping Harbor to check if it's alive.
|
32
|
+
result = api_instance.ping_get
|
33
|
+
p result
|
34
|
+
rescue SwaggerClient::ApiError => e
|
35
|
+
puts "Exception when calling PingApi->ping_get: #{e}"
|
36
|
+
end
|
37
|
+
```
|
38
|
+
|
39
|
+
### Parameters
|
40
|
+
This endpoint does not need any parameter.
|
41
|
+
|
42
|
+
### Return type
|
43
|
+
|
44
|
+
**String**
|
45
|
+
|
46
|
+
### Authorization
|
47
|
+
|
48
|
+
[basic](../README.md#basic)
|
49
|
+
|
50
|
+
### HTTP request headers
|
51
|
+
|
52
|
+
- **Content-Type**: application/json
|
53
|
+
- **Accept**: text/plain
|
54
|
+
|
55
|
+
|
56
|
+
|
data/docs/Platform.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# SwaggerClient::Platform
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**architecture** | **String** | The architecture that the artifact applys to | [optional]
|
7
|
+
**os** | **String** | The OS that the artifact applys to | [optional]
|
8
|
+
**os_version** | **String** | The version of the OS that the artifact applys to | [optional]
|
9
|
+
**os_features** | **Array<String>** | The features of the OS that the artifact applys to | [optional]
|
10
|
+
**variant** | **String** | The variant of the CPU | [optional]
|
11
|
+
|
12
|
+
|
data/docs/PreheatApi.md
ADDED
@@ -0,0 +1,1176 @@
|
|
1
|
+
# SwaggerClient::PreheatApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost/api/v2.0*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_instance**](PreheatApi.md#create_instance) | **POST** /p2p/preheat/instances | Create p2p provider instances
|
8
|
+
[**create_policy**](PreheatApi.md#create_policy) | **POST** /projects/{project_name}/preheat/policies | Create a preheat policy under a project
|
9
|
+
[**delete_instance**](PreheatApi.md#delete_instance) | **DELETE** /p2p/preheat/instances/{preheat_instance_name} | Delete the specified P2P provider instance
|
10
|
+
[**delete_policy**](PreheatApi.md#delete_policy) | **DELETE** /projects/{project_name}/preheat/policies/{preheat_policy_name} | Delete a preheat policy
|
11
|
+
[**get_execution**](PreheatApi.md#get_execution) | **GET** /projects/{project_name}/preheat/policies/{preheat_policy_name}/executions/{execution_id} | Get a execution detail by id
|
12
|
+
[**get_instance**](PreheatApi.md#get_instance) | **GET** /p2p/preheat/instances/{preheat_instance_name} | Get a P2P provider instance
|
13
|
+
[**get_policy**](PreheatApi.md#get_policy) | **GET** /projects/{project_name}/preheat/policies/{preheat_policy_name} | Get a preheat policy
|
14
|
+
[**get_preheat_log**](PreheatApi.md#get_preheat_log) | **GET** /projects/{project_name}/preheat/policies/{preheat_policy_name}/executions/{execution_id}/tasks/{task_id}/logs | Get the log text stream of the specified task for the given execution
|
15
|
+
[**list_executions**](PreheatApi.md#list_executions) | **GET** /projects/{project_name}/preheat/policies/{preheat_policy_name}/executions | List executions for the given policy
|
16
|
+
[**list_instances**](PreheatApi.md#list_instances) | **GET** /p2p/preheat/instances | List P2P provider instances
|
17
|
+
[**list_policies**](PreheatApi.md#list_policies) | **GET** /projects/{project_name}/preheat/policies | List preheat policies
|
18
|
+
[**list_providers**](PreheatApi.md#list_providers) | **GET** /p2p/preheat/providers | List P2P providers
|
19
|
+
[**list_providers_under_project**](PreheatApi.md#list_providers_under_project) | **GET** /projects/{project_name}/preheat/providers | Get all providers at project level
|
20
|
+
[**list_tasks**](PreheatApi.md#list_tasks) | **GET** /projects/{project_name}/preheat/policies/{preheat_policy_name}/executions/{execution_id}/tasks | List all the related tasks for the given execution
|
21
|
+
[**manual_preheat**](PreheatApi.md#manual_preheat) | **POST** /projects/{project_name}/preheat/policies/{preheat_policy_name} | Manual preheat
|
22
|
+
[**ping_instances**](PreheatApi.md#ping_instances) | **POST** /p2p/preheat/instances/ping | Ping status of a instance.
|
23
|
+
[**stop_execution**](PreheatApi.md#stop_execution) | **PATCH** /projects/{project_name}/preheat/policies/{preheat_policy_name}/executions/{execution_id} | Stop a execution
|
24
|
+
[**update_instance**](PreheatApi.md#update_instance) | **PUT** /p2p/preheat/instances/{preheat_instance_name} | Update the specified P2P provider instance
|
25
|
+
[**update_policy**](PreheatApi.md#update_policy) | **PUT** /projects/{project_name}/preheat/policies/{preheat_policy_name} | Update preheat policy
|
26
|
+
|
27
|
+
|
28
|
+
# **create_instance**
|
29
|
+
> create_instance(instance, opts)
|
30
|
+
|
31
|
+
Create p2p provider instances
|
32
|
+
|
33
|
+
Create p2p provider instances
|
34
|
+
|
35
|
+
### Example
|
36
|
+
```ruby
|
37
|
+
# load the gem
|
38
|
+
require 'harbor_swagger_client'
|
39
|
+
# setup authorization
|
40
|
+
SwaggerClient.configure do |config|
|
41
|
+
# Configure HTTP basic authorization: basic
|
42
|
+
config.username = 'YOUR USERNAME'
|
43
|
+
config.password = 'YOUR PASSWORD'
|
44
|
+
end
|
45
|
+
|
46
|
+
api_instance = SwaggerClient::PreheatApi.new
|
47
|
+
|
48
|
+
instance = SwaggerClient::Instance.new # Instance | The JSON object of instance.
|
49
|
+
|
50
|
+
opts = {
|
51
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
52
|
+
}
|
53
|
+
|
54
|
+
begin
|
55
|
+
#Create p2p provider instances
|
56
|
+
api_instance.create_instance(instance, opts)
|
57
|
+
rescue SwaggerClient::ApiError => e
|
58
|
+
puts "Exception when calling PreheatApi->create_instance: #{e}"
|
59
|
+
end
|
60
|
+
```
|
61
|
+
|
62
|
+
### Parameters
|
63
|
+
|
64
|
+
Name | Type | Description | Notes
|
65
|
+
------------- | ------------- | ------------- | -------------
|
66
|
+
**instance** | [**Instance**](Instance.md)| The JSON object of instance. |
|
67
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
68
|
+
|
69
|
+
### Return type
|
70
|
+
|
71
|
+
nil (empty response body)
|
72
|
+
|
73
|
+
### Authorization
|
74
|
+
|
75
|
+
[basic](../README.md#basic)
|
76
|
+
|
77
|
+
### HTTP request headers
|
78
|
+
|
79
|
+
- **Content-Type**: application/json
|
80
|
+
- **Accept**: application/json
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
# **create_policy**
|
85
|
+
> create_policy(project_namepolicy, opts)
|
86
|
+
|
87
|
+
Create a preheat policy under a project
|
88
|
+
|
89
|
+
Create a preheat policy under a project
|
90
|
+
|
91
|
+
### Example
|
92
|
+
```ruby
|
93
|
+
# load the gem
|
94
|
+
require 'harbor_swagger_client'
|
95
|
+
# setup authorization
|
96
|
+
SwaggerClient.configure do |config|
|
97
|
+
# Configure HTTP basic authorization: basic
|
98
|
+
config.username = 'YOUR USERNAME'
|
99
|
+
config.password = 'YOUR PASSWORD'
|
100
|
+
end
|
101
|
+
|
102
|
+
api_instance = SwaggerClient::PreheatApi.new
|
103
|
+
|
104
|
+
project_name = 'project_name_example' # String | The name of the project
|
105
|
+
|
106
|
+
policy = SwaggerClient::PreheatPolicy.new # PreheatPolicy | The policy schema info
|
107
|
+
|
108
|
+
opts = {
|
109
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
110
|
+
}
|
111
|
+
|
112
|
+
begin
|
113
|
+
#Create a preheat policy under a project
|
114
|
+
api_instance.create_policy(project_namepolicy, opts)
|
115
|
+
rescue SwaggerClient::ApiError => e
|
116
|
+
puts "Exception when calling PreheatApi->create_policy: #{e}"
|
117
|
+
end
|
118
|
+
```
|
119
|
+
|
120
|
+
### Parameters
|
121
|
+
|
122
|
+
Name | Type | Description | Notes
|
123
|
+
------------- | ------------- | ------------- | -------------
|
124
|
+
**project_name** | **String**| The name of the project |
|
125
|
+
**policy** | [**PreheatPolicy**](PreheatPolicy.md)| The policy schema info |
|
126
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
127
|
+
|
128
|
+
### Return type
|
129
|
+
|
130
|
+
nil (empty response body)
|
131
|
+
|
132
|
+
### Authorization
|
133
|
+
|
134
|
+
[basic](../README.md#basic)
|
135
|
+
|
136
|
+
### HTTP request headers
|
137
|
+
|
138
|
+
- **Content-Type**: application/json
|
139
|
+
- **Accept**: application/json
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
# **delete_instance**
|
144
|
+
> delete_instance(preheat_instance_name, opts)
|
145
|
+
|
146
|
+
Delete the specified P2P provider instance
|
147
|
+
|
148
|
+
Delete the specified P2P provider instance
|
149
|
+
|
150
|
+
### Example
|
151
|
+
```ruby
|
152
|
+
# load the gem
|
153
|
+
require 'harbor_swagger_client'
|
154
|
+
# setup authorization
|
155
|
+
SwaggerClient.configure do |config|
|
156
|
+
# Configure HTTP basic authorization: basic
|
157
|
+
config.username = 'YOUR USERNAME'
|
158
|
+
config.password = 'YOUR PASSWORD'
|
159
|
+
end
|
160
|
+
|
161
|
+
api_instance = SwaggerClient::PreheatApi.new
|
162
|
+
|
163
|
+
preheat_instance_name = 'preheat_instance_name_example' # String | Instance Name
|
164
|
+
|
165
|
+
opts = {
|
166
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
167
|
+
}
|
168
|
+
|
169
|
+
begin
|
170
|
+
#Delete the specified P2P provider instance
|
171
|
+
api_instance.delete_instance(preheat_instance_name, opts)
|
172
|
+
rescue SwaggerClient::ApiError => e
|
173
|
+
puts "Exception when calling PreheatApi->delete_instance: #{e}"
|
174
|
+
end
|
175
|
+
```
|
176
|
+
|
177
|
+
### Parameters
|
178
|
+
|
179
|
+
Name | Type | Description | Notes
|
180
|
+
------------- | ------------- | ------------- | -------------
|
181
|
+
**preheat_instance_name** | **String**| Instance Name |
|
182
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
183
|
+
|
184
|
+
### Return type
|
185
|
+
|
186
|
+
nil (empty response body)
|
187
|
+
|
188
|
+
### Authorization
|
189
|
+
|
190
|
+
[basic](../README.md#basic)
|
191
|
+
|
192
|
+
### HTTP request headers
|
193
|
+
|
194
|
+
- **Content-Type**: application/json
|
195
|
+
- **Accept**: application/json
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
# **delete_policy**
|
200
|
+
> delete_policy(project_namepreheat_policy_name, , opts)
|
201
|
+
|
202
|
+
Delete a preheat policy
|
203
|
+
|
204
|
+
Delete a preheat policy
|
205
|
+
|
206
|
+
### Example
|
207
|
+
```ruby
|
208
|
+
# load the gem
|
209
|
+
require 'harbor_swagger_client'
|
210
|
+
# setup authorization
|
211
|
+
SwaggerClient.configure do |config|
|
212
|
+
# Configure HTTP basic authorization: basic
|
213
|
+
config.username = 'YOUR USERNAME'
|
214
|
+
config.password = 'YOUR PASSWORD'
|
215
|
+
end
|
216
|
+
|
217
|
+
api_instance = SwaggerClient::PreheatApi.new
|
218
|
+
|
219
|
+
project_name = 'project_name_example' # String | The name of the project
|
220
|
+
|
221
|
+
preheat_policy_name = 'preheat_policy_name_example' # String | Preheat Policy Name
|
222
|
+
|
223
|
+
opts = {
|
224
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
225
|
+
}
|
226
|
+
|
227
|
+
begin
|
228
|
+
#Delete a preheat policy
|
229
|
+
api_instance.delete_policy(project_namepreheat_policy_name, , opts)
|
230
|
+
rescue SwaggerClient::ApiError => e
|
231
|
+
puts "Exception when calling PreheatApi->delete_policy: #{e}"
|
232
|
+
end
|
233
|
+
```
|
234
|
+
|
235
|
+
### Parameters
|
236
|
+
|
237
|
+
Name | Type | Description | Notes
|
238
|
+
------------- | ------------- | ------------- | -------------
|
239
|
+
**project_name** | **String**| The name of the project |
|
240
|
+
**preheat_policy_name** | **String**| Preheat Policy Name |
|
241
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
242
|
+
|
243
|
+
### Return type
|
244
|
+
|
245
|
+
nil (empty response body)
|
246
|
+
|
247
|
+
### Authorization
|
248
|
+
|
249
|
+
[basic](../README.md#basic)
|
250
|
+
|
251
|
+
### HTTP request headers
|
252
|
+
|
253
|
+
- **Content-Type**: application/json
|
254
|
+
- **Accept**: application/json
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
# **get_execution**
|
259
|
+
> Execution get_execution(project_namepreheat_policy_name, execution_id, , opts)
|
260
|
+
|
261
|
+
Get a execution detail by id
|
262
|
+
|
263
|
+
Get a execution detail by id
|
264
|
+
|
265
|
+
### Example
|
266
|
+
```ruby
|
267
|
+
# load the gem
|
268
|
+
require 'harbor_swagger_client'
|
269
|
+
# setup authorization
|
270
|
+
SwaggerClient.configure do |config|
|
271
|
+
# Configure HTTP basic authorization: basic
|
272
|
+
config.username = 'YOUR USERNAME'
|
273
|
+
config.password = 'YOUR PASSWORD'
|
274
|
+
end
|
275
|
+
|
276
|
+
api_instance = SwaggerClient::PreheatApi.new
|
277
|
+
|
278
|
+
project_name = 'project_name_example' # String | The name of the project
|
279
|
+
|
280
|
+
preheat_policy_name = 'preheat_policy_name_example' # String | Preheat Policy Name
|
281
|
+
|
282
|
+
execution_id = 56 # Integer | Execution ID
|
283
|
+
|
284
|
+
opts = {
|
285
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
286
|
+
}
|
287
|
+
|
288
|
+
begin
|
289
|
+
#Get a execution detail by id
|
290
|
+
result = api_instance.get_execution(project_namepreheat_policy_name, execution_id, , opts)
|
291
|
+
p result
|
292
|
+
rescue SwaggerClient::ApiError => e
|
293
|
+
puts "Exception when calling PreheatApi->get_execution: #{e}"
|
294
|
+
end
|
295
|
+
```
|
296
|
+
|
297
|
+
### Parameters
|
298
|
+
|
299
|
+
Name | Type | Description | Notes
|
300
|
+
------------- | ------------- | ------------- | -------------
|
301
|
+
**project_name** | **String**| The name of the project |
|
302
|
+
**preheat_policy_name** | **String**| Preheat Policy Name |
|
303
|
+
**execution_id** | **Integer**| Execution ID |
|
304
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
305
|
+
|
306
|
+
### Return type
|
307
|
+
|
308
|
+
[**Execution**](Execution.md)
|
309
|
+
|
310
|
+
### Authorization
|
311
|
+
|
312
|
+
[basic](../README.md#basic)
|
313
|
+
|
314
|
+
### HTTP request headers
|
315
|
+
|
316
|
+
- **Content-Type**: application/json
|
317
|
+
- **Accept**: application/json
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
# **get_instance**
|
322
|
+
> Instance get_instance(preheat_instance_name, opts)
|
323
|
+
|
324
|
+
Get a P2P provider instance
|
325
|
+
|
326
|
+
Get a P2P provider instance
|
327
|
+
|
328
|
+
### Example
|
329
|
+
```ruby
|
330
|
+
# load the gem
|
331
|
+
require 'harbor_swagger_client'
|
332
|
+
# setup authorization
|
333
|
+
SwaggerClient.configure do |config|
|
334
|
+
# Configure HTTP basic authorization: basic
|
335
|
+
config.username = 'YOUR USERNAME'
|
336
|
+
config.password = 'YOUR PASSWORD'
|
337
|
+
end
|
338
|
+
|
339
|
+
api_instance = SwaggerClient::PreheatApi.new
|
340
|
+
|
341
|
+
preheat_instance_name = 'preheat_instance_name_example' # String | Instance Name
|
342
|
+
|
343
|
+
opts = {
|
344
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
345
|
+
}
|
346
|
+
|
347
|
+
begin
|
348
|
+
#Get a P2P provider instance
|
349
|
+
result = api_instance.get_instance(preheat_instance_name, opts)
|
350
|
+
p result
|
351
|
+
rescue SwaggerClient::ApiError => e
|
352
|
+
puts "Exception when calling PreheatApi->get_instance: #{e}"
|
353
|
+
end
|
354
|
+
```
|
355
|
+
|
356
|
+
### Parameters
|
357
|
+
|
358
|
+
Name | Type | Description | Notes
|
359
|
+
------------- | ------------- | ------------- | -------------
|
360
|
+
**preheat_instance_name** | **String**| Instance Name |
|
361
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
362
|
+
|
363
|
+
### Return type
|
364
|
+
|
365
|
+
[**Instance**](Instance.md)
|
366
|
+
|
367
|
+
### Authorization
|
368
|
+
|
369
|
+
[basic](../README.md#basic)
|
370
|
+
|
371
|
+
### HTTP request headers
|
372
|
+
|
373
|
+
- **Content-Type**: application/json
|
374
|
+
- **Accept**: application/json
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
# **get_policy**
|
379
|
+
> PreheatPolicy get_policy(project_namepreheat_policy_name, , opts)
|
380
|
+
|
381
|
+
Get a preheat policy
|
382
|
+
|
383
|
+
Get a preheat policy
|
384
|
+
|
385
|
+
### Example
|
386
|
+
```ruby
|
387
|
+
# load the gem
|
388
|
+
require 'harbor_swagger_client'
|
389
|
+
# setup authorization
|
390
|
+
SwaggerClient.configure do |config|
|
391
|
+
# Configure HTTP basic authorization: basic
|
392
|
+
config.username = 'YOUR USERNAME'
|
393
|
+
config.password = 'YOUR PASSWORD'
|
394
|
+
end
|
395
|
+
|
396
|
+
api_instance = SwaggerClient::PreheatApi.new
|
397
|
+
|
398
|
+
project_name = 'project_name_example' # String | The name of the project
|
399
|
+
|
400
|
+
preheat_policy_name = 'preheat_policy_name_example' # String | Preheat Policy Name
|
401
|
+
|
402
|
+
opts = {
|
403
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
404
|
+
}
|
405
|
+
|
406
|
+
begin
|
407
|
+
#Get a preheat policy
|
408
|
+
result = api_instance.get_policy(project_namepreheat_policy_name, , opts)
|
409
|
+
p result
|
410
|
+
rescue SwaggerClient::ApiError => e
|
411
|
+
puts "Exception when calling PreheatApi->get_policy: #{e}"
|
412
|
+
end
|
413
|
+
```
|
414
|
+
|
415
|
+
### Parameters
|
416
|
+
|
417
|
+
Name | Type | Description | Notes
|
418
|
+
------------- | ------------- | ------------- | -------------
|
419
|
+
**project_name** | **String**| The name of the project |
|
420
|
+
**preheat_policy_name** | **String**| Preheat Policy Name |
|
421
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
422
|
+
|
423
|
+
### Return type
|
424
|
+
|
425
|
+
[**PreheatPolicy**](PreheatPolicy.md)
|
426
|
+
|
427
|
+
### Authorization
|
428
|
+
|
429
|
+
[basic](../README.md#basic)
|
430
|
+
|
431
|
+
### HTTP request headers
|
432
|
+
|
433
|
+
- **Content-Type**: application/json
|
434
|
+
- **Accept**: application/json
|
435
|
+
|
436
|
+
|
437
|
+
|
438
|
+
# **get_preheat_log**
|
439
|
+
> String get_preheat_log(project_namepreheat_policy_name, execution_id, task_id, opts)
|
440
|
+
|
441
|
+
Get the log text stream of the specified task for the given execution
|
442
|
+
|
443
|
+
Get the log text stream of the specified task for the given execution
|
444
|
+
|
445
|
+
### Example
|
446
|
+
```ruby
|
447
|
+
# load the gem
|
448
|
+
require 'harbor_swagger_client'
|
449
|
+
# setup authorization
|
450
|
+
SwaggerClient.configure do |config|
|
451
|
+
# Configure HTTP basic authorization: basic
|
452
|
+
config.username = 'YOUR USERNAME'
|
453
|
+
config.password = 'YOUR PASSWORD'
|
454
|
+
end
|
455
|
+
|
456
|
+
api_instance = SwaggerClient::PreheatApi.new
|
457
|
+
|
458
|
+
project_name = 'project_name_example' # String | The name of the project
|
459
|
+
|
460
|
+
preheat_policy_name = 'preheat_policy_name_example' # String | Preheat Policy Name
|
461
|
+
|
462
|
+
execution_id = 56 # Integer | Execution ID
|
463
|
+
|
464
|
+
task_id = 56 # Integer | Task ID
|
465
|
+
|
466
|
+
opts = {
|
467
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
468
|
+
}
|
469
|
+
|
470
|
+
begin
|
471
|
+
#Get the log text stream of the specified task for the given execution
|
472
|
+
result = api_instance.get_preheat_log(project_namepreheat_policy_name, execution_id, task_id, opts)
|
473
|
+
p result
|
474
|
+
rescue SwaggerClient::ApiError => e
|
475
|
+
puts "Exception when calling PreheatApi->get_preheat_log: #{e}"
|
476
|
+
end
|
477
|
+
```
|
478
|
+
|
479
|
+
### Parameters
|
480
|
+
|
481
|
+
Name | Type | Description | Notes
|
482
|
+
------------- | ------------- | ------------- | -------------
|
483
|
+
**project_name** | **String**| The name of the project |
|
484
|
+
**preheat_policy_name** | **String**| Preheat Policy Name |
|
485
|
+
**execution_id** | **Integer**| Execution ID |
|
486
|
+
**task_id** | **Integer**| Task ID |
|
487
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
488
|
+
|
489
|
+
### Return type
|
490
|
+
|
491
|
+
**String**
|
492
|
+
|
493
|
+
### Authorization
|
494
|
+
|
495
|
+
[basic](../README.md#basic)
|
496
|
+
|
497
|
+
### HTTP request headers
|
498
|
+
|
499
|
+
- **Content-Type**: application/json
|
500
|
+
- **Accept**: text/plain
|
501
|
+
|
502
|
+
|
503
|
+
|
504
|
+
# **list_executions**
|
505
|
+
> Array<Execution> list_executions(project_namepreheat_policy_name, , opts)
|
506
|
+
|
507
|
+
List executions for the given policy
|
508
|
+
|
509
|
+
List executions for the given policy
|
510
|
+
|
511
|
+
### Example
|
512
|
+
```ruby
|
513
|
+
# load the gem
|
514
|
+
require 'harbor_swagger_client'
|
515
|
+
# setup authorization
|
516
|
+
SwaggerClient.configure do |config|
|
517
|
+
# Configure HTTP basic authorization: basic
|
518
|
+
config.username = 'YOUR USERNAME'
|
519
|
+
config.password = 'YOUR PASSWORD'
|
520
|
+
end
|
521
|
+
|
522
|
+
api_instance = SwaggerClient::PreheatApi.new
|
523
|
+
|
524
|
+
project_name = 'project_name_example' # String | The name of the project
|
525
|
+
|
526
|
+
preheat_policy_name = 'preheat_policy_name_example' # String | Preheat Policy Name
|
527
|
+
|
528
|
+
opts = {
|
529
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
530
|
+
page: 1, # Integer | The page number
|
531
|
+
page_size: 10, # Integer | The size of per page
|
532
|
+
q: 'q_example', # String | Query string to query resources. Supported query patterns are \"exact match(k=v)\", \"fuzzy match(k=~v)\", \"range(k=[min~max])\", \"list with union releationship(k={v1 v2 v3})\" and \"list with intersetion relationship(k=(v1 v2 v3))\". The value of range and list can be string(enclosed by \" or '), integer or time(in format \"2020-04-09 02:36:00\"). All of these query patterns should be put in the query string \"q=xxx\" and splitted by \",\". e.g. q=k1=v1,k2=~v2,k3=[min~max]
|
533
|
+
}
|
534
|
+
|
535
|
+
begin
|
536
|
+
#List executions for the given policy
|
537
|
+
result = api_instance.list_executions(project_namepreheat_policy_name, , opts)
|
538
|
+
p result
|
539
|
+
rescue SwaggerClient::ApiError => e
|
540
|
+
puts "Exception when calling PreheatApi->list_executions: #{e}"
|
541
|
+
end
|
542
|
+
```
|
543
|
+
|
544
|
+
### Parameters
|
545
|
+
|
546
|
+
Name | Type | Description | Notes
|
547
|
+
------------- | ------------- | ------------- | -------------
|
548
|
+
**project_name** | **String**| The name of the project |
|
549
|
+
**preheat_policy_name** | **String**| Preheat Policy Name |
|
550
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
551
|
+
**page** | **Integer**| The page number | [optional] [default to 1]
|
552
|
+
**page_size** | **Integer**| The size of per page | [optional] [default to 10]
|
553
|
+
**q** | **String**| Query string to query resources. Supported query patterns are \"exact match(k=v)\", \"fuzzy match(k=~v)\", \"range(k=[min~max])\", \"list with union releationship(k={v1 v2 v3})\" and \"list with intersetion relationship(k=(v1 v2 v3))\". The value of range and list can be string(enclosed by \" or '), integer or time(in format \"2020-04-09 02:36:00\"). All of these query patterns should be put in the query string \"q=xxx\" and splitted by \",\". e.g. q=k1=v1,k2=~v2,k3=[min~max] | [optional]
|
554
|
+
|
555
|
+
### Return type
|
556
|
+
|
557
|
+
[**Array<Execution>**](Execution.md)
|
558
|
+
|
559
|
+
### Authorization
|
560
|
+
|
561
|
+
[basic](../README.md#basic)
|
562
|
+
|
563
|
+
### HTTP request headers
|
564
|
+
|
565
|
+
- **Content-Type**: application/json
|
566
|
+
- **Accept**: application/json
|
567
|
+
|
568
|
+
|
569
|
+
|
570
|
+
# **list_instances**
|
571
|
+
> Array<Instance> list_instances(opts)
|
572
|
+
|
573
|
+
List P2P provider instances
|
574
|
+
|
575
|
+
List P2P provider instances
|
576
|
+
|
577
|
+
### Example
|
578
|
+
```ruby
|
579
|
+
# load the gem
|
580
|
+
require 'harbor_swagger_client'
|
581
|
+
# setup authorization
|
582
|
+
SwaggerClient.configure do |config|
|
583
|
+
# Configure HTTP basic authorization: basic
|
584
|
+
config.username = 'YOUR USERNAME'
|
585
|
+
config.password = 'YOUR PASSWORD'
|
586
|
+
end
|
587
|
+
|
588
|
+
api_instance = SwaggerClient::PreheatApi.new
|
589
|
+
|
590
|
+
opts = {
|
591
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
592
|
+
page: 1, # Integer | The page number
|
593
|
+
page_size: 10, # Integer | The size of per page
|
594
|
+
q: 'q_example', # String | Query string to query resources. Supported query patterns are \"exact match(k=v)\", \"fuzzy match(k=~v)\", \"range(k=[min~max])\", \"list with union releationship(k={v1 v2 v3})\" and \"list with intersetion relationship(k=(v1 v2 v3))\". The value of range and list can be string(enclosed by \" or '), integer or time(in format \"2020-04-09 02:36:00\"). All of these query patterns should be put in the query string \"q=xxx\" and splitted by \",\". e.g. q=k1=v1,k2=~v2,k3=[min~max]
|
595
|
+
}
|
596
|
+
|
597
|
+
begin
|
598
|
+
#List P2P provider instances
|
599
|
+
result = api_instance.list_instances(opts)
|
600
|
+
p result
|
601
|
+
rescue SwaggerClient::ApiError => e
|
602
|
+
puts "Exception when calling PreheatApi->list_instances: #{e}"
|
603
|
+
end
|
604
|
+
```
|
605
|
+
|
606
|
+
### Parameters
|
607
|
+
|
608
|
+
Name | Type | Description | Notes
|
609
|
+
------------- | ------------- | ------------- | -------------
|
610
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
611
|
+
**page** | **Integer**| The page number | [optional] [default to 1]
|
612
|
+
**page_size** | **Integer**| The size of per page | [optional] [default to 10]
|
613
|
+
**q** | **String**| Query string to query resources. Supported query patterns are \"exact match(k=v)\", \"fuzzy match(k=~v)\", \"range(k=[min~max])\", \"list with union releationship(k={v1 v2 v3})\" and \"list with intersetion relationship(k=(v1 v2 v3))\". The value of range and list can be string(enclosed by \" or '), integer or time(in format \"2020-04-09 02:36:00\"). All of these query patterns should be put in the query string \"q=xxx\" and splitted by \",\". e.g. q=k1=v1,k2=~v2,k3=[min~max] | [optional]
|
614
|
+
|
615
|
+
### Return type
|
616
|
+
|
617
|
+
[**Array<Instance>**](Instance.md)
|
618
|
+
|
619
|
+
### Authorization
|
620
|
+
|
621
|
+
[basic](../README.md#basic)
|
622
|
+
|
623
|
+
### HTTP request headers
|
624
|
+
|
625
|
+
- **Content-Type**: application/json
|
626
|
+
- **Accept**: application/json
|
627
|
+
|
628
|
+
|
629
|
+
|
630
|
+
# **list_policies**
|
631
|
+
> Array<PreheatPolicy> list_policies(project_name, opts)
|
632
|
+
|
633
|
+
List preheat policies
|
634
|
+
|
635
|
+
List preheat policies
|
636
|
+
|
637
|
+
### Example
|
638
|
+
```ruby
|
639
|
+
# load the gem
|
640
|
+
require 'harbor_swagger_client'
|
641
|
+
# setup authorization
|
642
|
+
SwaggerClient.configure do |config|
|
643
|
+
# Configure HTTP basic authorization: basic
|
644
|
+
config.username = 'YOUR USERNAME'
|
645
|
+
config.password = 'YOUR PASSWORD'
|
646
|
+
end
|
647
|
+
|
648
|
+
api_instance = SwaggerClient::PreheatApi.new
|
649
|
+
|
650
|
+
project_name = 'project_name_example' # String | The name of the project
|
651
|
+
|
652
|
+
opts = {
|
653
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
654
|
+
page: 1, # Integer | The page number
|
655
|
+
page_size: 10, # Integer | The size of per page
|
656
|
+
q: 'q_example', # String | Query string to query resources. Supported query patterns are \"exact match(k=v)\", \"fuzzy match(k=~v)\", \"range(k=[min~max])\", \"list with union releationship(k={v1 v2 v3})\" and \"list with intersetion relationship(k=(v1 v2 v3))\". The value of range and list can be string(enclosed by \" or '), integer or time(in format \"2020-04-09 02:36:00\"). All of these query patterns should be put in the query string \"q=xxx\" and splitted by \",\". e.g. q=k1=v1,k2=~v2,k3=[min~max]
|
657
|
+
}
|
658
|
+
|
659
|
+
begin
|
660
|
+
#List preheat policies
|
661
|
+
result = api_instance.list_policies(project_name, opts)
|
662
|
+
p result
|
663
|
+
rescue SwaggerClient::ApiError => e
|
664
|
+
puts "Exception when calling PreheatApi->list_policies: #{e}"
|
665
|
+
end
|
666
|
+
```
|
667
|
+
|
668
|
+
### Parameters
|
669
|
+
|
670
|
+
Name | Type | Description | Notes
|
671
|
+
------------- | ------------- | ------------- | -------------
|
672
|
+
**project_name** | **String**| The name of the project |
|
673
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
674
|
+
**page** | **Integer**| The page number | [optional] [default to 1]
|
675
|
+
**page_size** | **Integer**| The size of per page | [optional] [default to 10]
|
676
|
+
**q** | **String**| Query string to query resources. Supported query patterns are \"exact match(k=v)\", \"fuzzy match(k=~v)\", \"range(k=[min~max])\", \"list with union releationship(k={v1 v2 v3})\" and \"list with intersetion relationship(k=(v1 v2 v3))\". The value of range and list can be string(enclosed by \" or '), integer or time(in format \"2020-04-09 02:36:00\"). All of these query patterns should be put in the query string \"q=xxx\" and splitted by \",\". e.g. q=k1=v1,k2=~v2,k3=[min~max] | [optional]
|
677
|
+
|
678
|
+
### Return type
|
679
|
+
|
680
|
+
[**Array<PreheatPolicy>**](PreheatPolicy.md)
|
681
|
+
|
682
|
+
### Authorization
|
683
|
+
|
684
|
+
[basic](../README.md#basic)
|
685
|
+
|
686
|
+
### HTTP request headers
|
687
|
+
|
688
|
+
- **Content-Type**: application/json
|
689
|
+
- **Accept**: application/json
|
690
|
+
|
691
|
+
|
692
|
+
|
693
|
+
# **list_providers**
|
694
|
+
> Array<Metadata> list_providers(opts)
|
695
|
+
|
696
|
+
List P2P providers
|
697
|
+
|
698
|
+
List P2P providers
|
699
|
+
|
700
|
+
### Example
|
701
|
+
```ruby
|
702
|
+
# load the gem
|
703
|
+
require 'harbor_swagger_client'
|
704
|
+
# setup authorization
|
705
|
+
SwaggerClient.configure do |config|
|
706
|
+
# Configure HTTP basic authorization: basic
|
707
|
+
config.username = 'YOUR USERNAME'
|
708
|
+
config.password = 'YOUR PASSWORD'
|
709
|
+
end
|
710
|
+
|
711
|
+
api_instance = SwaggerClient::PreheatApi.new
|
712
|
+
|
713
|
+
opts = {
|
714
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
715
|
+
}
|
716
|
+
|
717
|
+
begin
|
718
|
+
#List P2P providers
|
719
|
+
result = api_instance.list_providers(opts)
|
720
|
+
p result
|
721
|
+
rescue SwaggerClient::ApiError => e
|
722
|
+
puts "Exception when calling PreheatApi->list_providers: #{e}"
|
723
|
+
end
|
724
|
+
```
|
725
|
+
|
726
|
+
### Parameters
|
727
|
+
|
728
|
+
Name | Type | Description | Notes
|
729
|
+
------------- | ------------- | ------------- | -------------
|
730
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
731
|
+
|
732
|
+
### Return type
|
733
|
+
|
734
|
+
[**Array<Metadata>**](Metadata.md)
|
735
|
+
|
736
|
+
### Authorization
|
737
|
+
|
738
|
+
[basic](../README.md#basic)
|
739
|
+
|
740
|
+
### HTTP request headers
|
741
|
+
|
742
|
+
- **Content-Type**: application/json
|
743
|
+
- **Accept**: application/json
|
744
|
+
|
745
|
+
|
746
|
+
|
747
|
+
# **list_providers_under_project**
|
748
|
+
> Array<ProviderUnderProject> list_providers_under_project(project_name, opts)
|
749
|
+
|
750
|
+
Get all providers at project level
|
751
|
+
|
752
|
+
Get all providers at project level
|
753
|
+
|
754
|
+
### Example
|
755
|
+
```ruby
|
756
|
+
# load the gem
|
757
|
+
require 'harbor_swagger_client'
|
758
|
+
# setup authorization
|
759
|
+
SwaggerClient.configure do |config|
|
760
|
+
# Configure HTTP basic authorization: basic
|
761
|
+
config.username = 'YOUR USERNAME'
|
762
|
+
config.password = 'YOUR PASSWORD'
|
763
|
+
end
|
764
|
+
|
765
|
+
api_instance = SwaggerClient::PreheatApi.new
|
766
|
+
|
767
|
+
project_name = 'project_name_example' # String | The name of the project
|
768
|
+
|
769
|
+
opts = {
|
770
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
771
|
+
}
|
772
|
+
|
773
|
+
begin
|
774
|
+
#Get all providers at project level
|
775
|
+
result = api_instance.list_providers_under_project(project_name, opts)
|
776
|
+
p result
|
777
|
+
rescue SwaggerClient::ApiError => e
|
778
|
+
puts "Exception when calling PreheatApi->list_providers_under_project: #{e}"
|
779
|
+
end
|
780
|
+
```
|
781
|
+
|
782
|
+
### Parameters
|
783
|
+
|
784
|
+
Name | Type | Description | Notes
|
785
|
+
------------- | ------------- | ------------- | -------------
|
786
|
+
**project_name** | **String**| The name of the project |
|
787
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
788
|
+
|
789
|
+
### Return type
|
790
|
+
|
791
|
+
[**Array<ProviderUnderProject>**](ProviderUnderProject.md)
|
792
|
+
|
793
|
+
### Authorization
|
794
|
+
|
795
|
+
[basic](../README.md#basic)
|
796
|
+
|
797
|
+
### HTTP request headers
|
798
|
+
|
799
|
+
- **Content-Type**: application/json
|
800
|
+
- **Accept**: application/json
|
801
|
+
|
802
|
+
|
803
|
+
|
804
|
+
# **list_tasks**
|
805
|
+
> Array<Task> list_tasks(project_namepreheat_policy_name, execution_id, , opts)
|
806
|
+
|
807
|
+
List all the related tasks for the given execution
|
808
|
+
|
809
|
+
List all the related tasks for the given execution
|
810
|
+
|
811
|
+
### Example
|
812
|
+
```ruby
|
813
|
+
# load the gem
|
814
|
+
require 'harbor_swagger_client'
|
815
|
+
# setup authorization
|
816
|
+
SwaggerClient.configure do |config|
|
817
|
+
# Configure HTTP basic authorization: basic
|
818
|
+
config.username = 'YOUR USERNAME'
|
819
|
+
config.password = 'YOUR PASSWORD'
|
820
|
+
end
|
821
|
+
|
822
|
+
api_instance = SwaggerClient::PreheatApi.new
|
823
|
+
|
824
|
+
project_name = 'project_name_example' # String | The name of the project
|
825
|
+
|
826
|
+
preheat_policy_name = 'preheat_policy_name_example' # String | Preheat Policy Name
|
827
|
+
|
828
|
+
execution_id = 56 # Integer | Execution ID
|
829
|
+
|
830
|
+
opts = {
|
831
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
832
|
+
page: 1, # Integer | The page number
|
833
|
+
page_size: 10, # Integer | The size of per page
|
834
|
+
q: 'q_example', # String | Query string to query resources. Supported query patterns are \"exact match(k=v)\", \"fuzzy match(k=~v)\", \"range(k=[min~max])\", \"list with union releationship(k={v1 v2 v3})\" and \"list with intersetion relationship(k=(v1 v2 v3))\". The value of range and list can be string(enclosed by \" or '), integer or time(in format \"2020-04-09 02:36:00\"). All of these query patterns should be put in the query string \"q=xxx\" and splitted by \",\". e.g. q=k1=v1,k2=~v2,k3=[min~max]
|
835
|
+
}
|
836
|
+
|
837
|
+
begin
|
838
|
+
#List all the related tasks for the given execution
|
839
|
+
result = api_instance.list_tasks(project_namepreheat_policy_name, execution_id, , opts)
|
840
|
+
p result
|
841
|
+
rescue SwaggerClient::ApiError => e
|
842
|
+
puts "Exception when calling PreheatApi->list_tasks: #{e}"
|
843
|
+
end
|
844
|
+
```
|
845
|
+
|
846
|
+
### Parameters
|
847
|
+
|
848
|
+
Name | Type | Description | Notes
|
849
|
+
------------- | ------------- | ------------- | -------------
|
850
|
+
**project_name** | **String**| The name of the project |
|
851
|
+
**preheat_policy_name** | **String**| Preheat Policy Name |
|
852
|
+
**execution_id** | **Integer**| Execution ID |
|
853
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
854
|
+
**page** | **Integer**| The page number | [optional] [default to 1]
|
855
|
+
**page_size** | **Integer**| The size of per page | [optional] [default to 10]
|
856
|
+
**q** | **String**| Query string to query resources. Supported query patterns are \"exact match(k=v)\", \"fuzzy match(k=~v)\", \"range(k=[min~max])\", \"list with union releationship(k={v1 v2 v3})\" and \"list with intersetion relationship(k=(v1 v2 v3))\". The value of range and list can be string(enclosed by \" or '), integer or time(in format \"2020-04-09 02:36:00\"). All of these query patterns should be put in the query string \"q=xxx\" and splitted by \",\". e.g. q=k1=v1,k2=~v2,k3=[min~max] | [optional]
|
857
|
+
|
858
|
+
### Return type
|
859
|
+
|
860
|
+
[**Array<Task>**](Task.md)
|
861
|
+
|
862
|
+
### Authorization
|
863
|
+
|
864
|
+
[basic](../README.md#basic)
|
865
|
+
|
866
|
+
### HTTP request headers
|
867
|
+
|
868
|
+
- **Content-Type**: application/json
|
869
|
+
- **Accept**: application/json
|
870
|
+
|
871
|
+
|
872
|
+
|
873
|
+
# **manual_preheat**
|
874
|
+
> manual_preheat(project_namepreheat_policy_name, policy, opts)
|
875
|
+
|
876
|
+
Manual preheat
|
877
|
+
|
878
|
+
Manual preheat
|
879
|
+
|
880
|
+
### Example
|
881
|
+
```ruby
|
882
|
+
# load the gem
|
883
|
+
require 'harbor_swagger_client'
|
884
|
+
# setup authorization
|
885
|
+
SwaggerClient.configure do |config|
|
886
|
+
# Configure HTTP basic authorization: basic
|
887
|
+
config.username = 'YOUR USERNAME'
|
888
|
+
config.password = 'YOUR PASSWORD'
|
889
|
+
end
|
890
|
+
|
891
|
+
api_instance = SwaggerClient::PreheatApi.new
|
892
|
+
|
893
|
+
project_name = 'project_name_example' # String | The name of the project
|
894
|
+
|
895
|
+
preheat_policy_name = 'preheat_policy_name_example' # String | Preheat Policy Name
|
896
|
+
|
897
|
+
policy = SwaggerClient::PreheatPolicy.new # PreheatPolicy | The policy schema info
|
898
|
+
|
899
|
+
opts = {
|
900
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
901
|
+
}
|
902
|
+
|
903
|
+
begin
|
904
|
+
#Manual preheat
|
905
|
+
api_instance.manual_preheat(project_namepreheat_policy_name, policy, opts)
|
906
|
+
rescue SwaggerClient::ApiError => e
|
907
|
+
puts "Exception when calling PreheatApi->manual_preheat: #{e}"
|
908
|
+
end
|
909
|
+
```
|
910
|
+
|
911
|
+
### Parameters
|
912
|
+
|
913
|
+
Name | Type | Description | Notes
|
914
|
+
------------- | ------------- | ------------- | -------------
|
915
|
+
**project_name** | **String**| The name of the project |
|
916
|
+
**preheat_policy_name** | **String**| Preheat Policy Name |
|
917
|
+
**policy** | [**PreheatPolicy**](PreheatPolicy.md)| The policy schema info |
|
918
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
919
|
+
|
920
|
+
### Return type
|
921
|
+
|
922
|
+
nil (empty response body)
|
923
|
+
|
924
|
+
### Authorization
|
925
|
+
|
926
|
+
[basic](../README.md#basic)
|
927
|
+
|
928
|
+
### HTTP request headers
|
929
|
+
|
930
|
+
- **Content-Type**: application/json
|
931
|
+
- **Accept**: application/json
|
932
|
+
|
933
|
+
|
934
|
+
|
935
|
+
# **ping_instances**
|
936
|
+
> ping_instances(instance, opts)
|
937
|
+
|
938
|
+
Ping status of a instance.
|
939
|
+
|
940
|
+
This endpoint checks status of a instance, the instance can be given by ID or Endpoint URL (together with credential)
|
941
|
+
|
942
|
+
### Example
|
943
|
+
```ruby
|
944
|
+
# load the gem
|
945
|
+
require 'harbor_swagger_client'
|
946
|
+
# setup authorization
|
947
|
+
SwaggerClient.configure do |config|
|
948
|
+
# Configure HTTP basic authorization: basic
|
949
|
+
config.username = 'YOUR USERNAME'
|
950
|
+
config.password = 'YOUR PASSWORD'
|
951
|
+
end
|
952
|
+
|
953
|
+
api_instance = SwaggerClient::PreheatApi.new
|
954
|
+
|
955
|
+
instance = SwaggerClient::Instance.new # Instance | The JSON object of instance.
|
956
|
+
|
957
|
+
opts = {
|
958
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
959
|
+
}
|
960
|
+
|
961
|
+
begin
|
962
|
+
#Ping status of a instance.
|
963
|
+
api_instance.ping_instances(instance, opts)
|
964
|
+
rescue SwaggerClient::ApiError => e
|
965
|
+
puts "Exception when calling PreheatApi->ping_instances: #{e}"
|
966
|
+
end
|
967
|
+
```
|
968
|
+
|
969
|
+
### Parameters
|
970
|
+
|
971
|
+
Name | Type | Description | Notes
|
972
|
+
------------- | ------------- | ------------- | -------------
|
973
|
+
**instance** | [**Instance**](Instance.md)| The JSON object of instance. |
|
974
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
975
|
+
|
976
|
+
### Return type
|
977
|
+
|
978
|
+
nil (empty response body)
|
979
|
+
|
980
|
+
### Authorization
|
981
|
+
|
982
|
+
[basic](../README.md#basic)
|
983
|
+
|
984
|
+
### HTTP request headers
|
985
|
+
|
986
|
+
- **Content-Type**: application/json
|
987
|
+
- **Accept**: application/json
|
988
|
+
|
989
|
+
|
990
|
+
|
991
|
+
# **stop_execution**
|
992
|
+
> stop_execution(project_namepreheat_policy_name, execution_id, execution, opts)
|
993
|
+
|
994
|
+
Stop a execution
|
995
|
+
|
996
|
+
Stop a execution
|
997
|
+
|
998
|
+
### Example
|
999
|
+
```ruby
|
1000
|
+
# load the gem
|
1001
|
+
require 'harbor_swagger_client'
|
1002
|
+
# setup authorization
|
1003
|
+
SwaggerClient.configure do |config|
|
1004
|
+
# Configure HTTP basic authorization: basic
|
1005
|
+
config.username = 'YOUR USERNAME'
|
1006
|
+
config.password = 'YOUR PASSWORD'
|
1007
|
+
end
|
1008
|
+
|
1009
|
+
api_instance = SwaggerClient::PreheatApi.new
|
1010
|
+
|
1011
|
+
project_name = 'project_name_example' # String | The name of the project
|
1012
|
+
|
1013
|
+
preheat_policy_name = 'preheat_policy_name_example' # String | Preheat Policy Name
|
1014
|
+
|
1015
|
+
execution_id = 56 # Integer | Execution ID
|
1016
|
+
|
1017
|
+
execution = SwaggerClient::Execution.new # Execution | The data of execution
|
1018
|
+
|
1019
|
+
opts = {
|
1020
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
1021
|
+
}
|
1022
|
+
|
1023
|
+
begin
|
1024
|
+
#Stop a execution
|
1025
|
+
api_instance.stop_execution(project_namepreheat_policy_name, execution_id, execution, opts)
|
1026
|
+
rescue SwaggerClient::ApiError => e
|
1027
|
+
puts "Exception when calling PreheatApi->stop_execution: #{e}"
|
1028
|
+
end
|
1029
|
+
```
|
1030
|
+
|
1031
|
+
### Parameters
|
1032
|
+
|
1033
|
+
Name | Type | Description | Notes
|
1034
|
+
------------- | ------------- | ------------- | -------------
|
1035
|
+
**project_name** | **String**| The name of the project |
|
1036
|
+
**preheat_policy_name** | **String**| Preheat Policy Name |
|
1037
|
+
**execution_id** | **Integer**| Execution ID |
|
1038
|
+
**execution** | [**Execution**](Execution.md)| The data of execution |
|
1039
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
1040
|
+
|
1041
|
+
### Return type
|
1042
|
+
|
1043
|
+
nil (empty response body)
|
1044
|
+
|
1045
|
+
### Authorization
|
1046
|
+
|
1047
|
+
[basic](../README.md#basic)
|
1048
|
+
|
1049
|
+
### HTTP request headers
|
1050
|
+
|
1051
|
+
- **Content-Type**: application/json
|
1052
|
+
- **Accept**: application/json
|
1053
|
+
|
1054
|
+
|
1055
|
+
|
1056
|
+
# **update_instance**
|
1057
|
+
> update_instance(preheat_instance_nameinstance, opts)
|
1058
|
+
|
1059
|
+
Update the specified P2P provider instance
|
1060
|
+
|
1061
|
+
Update the specified P2P provider instance
|
1062
|
+
|
1063
|
+
### Example
|
1064
|
+
```ruby
|
1065
|
+
# load the gem
|
1066
|
+
require 'harbor_swagger_client'
|
1067
|
+
# setup authorization
|
1068
|
+
SwaggerClient.configure do |config|
|
1069
|
+
# Configure HTTP basic authorization: basic
|
1070
|
+
config.username = 'YOUR USERNAME'
|
1071
|
+
config.password = 'YOUR PASSWORD'
|
1072
|
+
end
|
1073
|
+
|
1074
|
+
api_instance = SwaggerClient::PreheatApi.new
|
1075
|
+
|
1076
|
+
preheat_instance_name = 'preheat_instance_name_example' # String | Instance Name
|
1077
|
+
|
1078
|
+
instance = SwaggerClient::Instance.new # Instance | The instance to update
|
1079
|
+
|
1080
|
+
opts = {
|
1081
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
1082
|
+
}
|
1083
|
+
|
1084
|
+
begin
|
1085
|
+
#Update the specified P2P provider instance
|
1086
|
+
api_instance.update_instance(preheat_instance_nameinstance, opts)
|
1087
|
+
rescue SwaggerClient::ApiError => e
|
1088
|
+
puts "Exception when calling PreheatApi->update_instance: #{e}"
|
1089
|
+
end
|
1090
|
+
```
|
1091
|
+
|
1092
|
+
### Parameters
|
1093
|
+
|
1094
|
+
Name | Type | Description | Notes
|
1095
|
+
------------- | ------------- | ------------- | -------------
|
1096
|
+
**preheat_instance_name** | **String**| Instance Name |
|
1097
|
+
**instance** | [**Instance**](Instance.md)| The instance to update |
|
1098
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
1099
|
+
|
1100
|
+
### Return type
|
1101
|
+
|
1102
|
+
nil (empty response body)
|
1103
|
+
|
1104
|
+
### Authorization
|
1105
|
+
|
1106
|
+
[basic](../README.md#basic)
|
1107
|
+
|
1108
|
+
### HTTP request headers
|
1109
|
+
|
1110
|
+
- **Content-Type**: application/json
|
1111
|
+
- **Accept**: application/json
|
1112
|
+
|
1113
|
+
|
1114
|
+
|
1115
|
+
# **update_policy**
|
1116
|
+
> update_policy(project_namepreheat_policy_name, policy, opts)
|
1117
|
+
|
1118
|
+
Update preheat policy
|
1119
|
+
|
1120
|
+
Update preheat policy
|
1121
|
+
|
1122
|
+
### Example
|
1123
|
+
```ruby
|
1124
|
+
# load the gem
|
1125
|
+
require 'harbor_swagger_client'
|
1126
|
+
# setup authorization
|
1127
|
+
SwaggerClient.configure do |config|
|
1128
|
+
# Configure HTTP basic authorization: basic
|
1129
|
+
config.username = 'YOUR USERNAME'
|
1130
|
+
config.password = 'YOUR PASSWORD'
|
1131
|
+
end
|
1132
|
+
|
1133
|
+
api_instance = SwaggerClient::PreheatApi.new
|
1134
|
+
|
1135
|
+
project_name = 'project_name_example' # String | The name of the project
|
1136
|
+
|
1137
|
+
preheat_policy_name = 'preheat_policy_name_example' # String | Preheat Policy Name
|
1138
|
+
|
1139
|
+
policy = SwaggerClient::PreheatPolicy.new # PreheatPolicy | The policy schema info
|
1140
|
+
|
1141
|
+
opts = {
|
1142
|
+
x_request_id: 'x_request_id_example' # String | An unique ID for the request
|
1143
|
+
}
|
1144
|
+
|
1145
|
+
begin
|
1146
|
+
#Update preheat policy
|
1147
|
+
api_instance.update_policy(project_namepreheat_policy_name, policy, opts)
|
1148
|
+
rescue SwaggerClient::ApiError => e
|
1149
|
+
puts "Exception when calling PreheatApi->update_policy: #{e}"
|
1150
|
+
end
|
1151
|
+
```
|
1152
|
+
|
1153
|
+
### Parameters
|
1154
|
+
|
1155
|
+
Name | Type | Description | Notes
|
1156
|
+
------------- | ------------- | ------------- | -------------
|
1157
|
+
**project_name** | **String**| The name of the project |
|
1158
|
+
**preheat_policy_name** | **String**| Preheat Policy Name |
|
1159
|
+
**policy** | [**PreheatPolicy**](PreheatPolicy.md)| The policy schema info |
|
1160
|
+
**x_request_id** | **String**| An unique ID for the request | [optional]
|
1161
|
+
|
1162
|
+
### Return type
|
1163
|
+
|
1164
|
+
nil (empty response body)
|
1165
|
+
|
1166
|
+
### Authorization
|
1167
|
+
|
1168
|
+
[basic](../README.md#basic)
|
1169
|
+
|
1170
|
+
### HTTP request headers
|
1171
|
+
|
1172
|
+
- **Content-Type**: application/json
|
1173
|
+
- **Accept**: application/json
|
1174
|
+
|
1175
|
+
|
1176
|
+
|