harbor_swagger_client 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -80
- data/docs/AdminJobSchedule.md +1 -0
- data/docs/ChartRepositoryApi.md +1 -508
- data/{spec/docs/Labels.md → docs/EventType.md} +1 -1
- data/docs/GCResult.md +1 -0
- data/docs/GeneralInfo.md +1 -5
- data/docs/LabelApi.md +1 -1
- data/docs/{ScanOverview.md → NotifyType.md} +1 -1
- data/docs/ProductsApi.md +944 -2770
- data/docs/Project.md +1 -1
- data/docs/QuotaApi.md +1 -1
- data/docs/RetentionApi.md +1 -1
- data/docs/RetentionSelector.md +1 -0
- data/docs/RobotAccountApi.md +1 -1
- data/docs/RobotAccountCreate.md +1 -0
- data/docs/ScanApi.md +1 -178
- data/docs/ScannersApi.md +1 -1
- data/docs/SearchRepository.md +1 -1
- data/docs/SupportedWebhookEventTypes.md +9 -0
- data/docs/{SecurityReport.md → SysAdminFlag.md} +2 -2
- data/docs/SystemApi.md +1 -1
- data/docs/User.md +2 -1
- data/harbor_swagger_client.gemspec +1 -1
- data/lib/harbor_swagger_client.rb +5 -27
- data/lib/harbor_swagger_client/api/chart_repository_api.rb +1 -533
- data/lib/harbor_swagger_client/api/label_api.rb +1 -1
- data/lib/harbor_swagger_client/api/products_api.rb +1634 -3538
- data/lib/harbor_swagger_client/api/quota_api.rb +1 -1
- data/lib/harbor_swagger_client/api/retention_api.rb +1 -1
- data/lib/harbor_swagger_client/api/robot_account_api.rb +1 -1
- data/lib/harbor_swagger_client/api/scan_api.rb +1 -189
- data/lib/harbor_swagger_client/api/scanners_api.rb +1 -1
- data/lib/harbor_swagger_client/api/system_api.rb +1 -1
- data/lib/harbor_swagger_client/api_client.rb +1 -1
- data/lib/harbor_swagger_client/api_error.rb +1 -1
- data/lib/harbor_swagger_client/configuration.rb +2 -2
- data/lib/harbor_swagger_client/models/action.rb +1 -1
- data/lib/harbor_swagger_client/models/action_1.rb +1 -1
- data/lib/harbor_swagger_client/models/admin_job_schedule.rb +17 -5
- data/lib/harbor_swagger_client/models/admin_job_schedule_obj.rb +1 -1
- data/lib/harbor_swagger_client/models/bad_request_formated_error.rb +1 -1
- data/lib/harbor_swagger_client/models/bool_config_item.rb +1 -1
- data/lib/harbor_swagger_client/models/chart_api_error.rb +1 -1
- data/lib/harbor_swagger_client/models/chart_metadata.rb +1 -1
- data/lib/harbor_swagger_client/models/chart_version.rb +1 -1
- data/lib/harbor_swagger_client/models/component_health_status.rb +1 -1
- data/lib/harbor_swagger_client/models/component_overview_entry.rb +1 -1
- data/lib/harbor_swagger_client/models/configurations.rb +1 -1
- data/lib/harbor_swagger_client/models/configurations_response.rb +1 -1
- data/lib/harbor_swagger_client/models/configurations_scan_all_policy.rb +1 -1
- data/lib/harbor_swagger_client/models/configurations_scan_all_policy_parameter.rb +1 -1
- data/lib/harbor_swagger_client/models/conflict_formated_error.rb +1 -1
- data/lib/harbor_swagger_client/models/cve_whitelist.rb +1 -1
- data/lib/harbor_swagger_client/models/cve_whitelist_item.rb +1 -1
- data/lib/harbor_swagger_client/models/email_server_setting.rb +1 -1
- data/lib/harbor_swagger_client/models/endpoint.rb +1 -1
- data/{spec/lib/harbor_swagger_client/models/chart_versions.rb → lib/harbor_swagger_client/models/event_type.rb} +3 -3
- data/lib/harbor_swagger_client/models/filter_style.rb +1 -1
- data/lib/harbor_swagger_client/models/forbidden_chart_api_error.rb +1 -1
- data/lib/harbor_swagger_client/models/gc_result.rb +12 -2
- data/lib/harbor_swagger_client/models/general_info.rb +12 -51
- data/lib/harbor_swagger_client/models/immutable_tag_rule.rb +1 -1
- data/lib/harbor_swagger_client/models/input_secret.rb +1 -1
- data/lib/harbor_swagger_client/models/insufficient_storage_chart_api_error.rb +1 -1
- data/lib/harbor_swagger_client/models/integer_config_item.rb +1 -1
- data/lib/harbor_swagger_client/models/internal_chart_api_error.rb +1 -1
- data/lib/harbor_swagger_client/models/is_default.rb +1 -1
- data/lib/harbor_swagger_client/models/label.rb +1 -1
- data/lib/harbor_swagger_client/models/labels.rb +1 -1
- data/lib/harbor_swagger_client/models/ldap_conf.rb +1 -1
- data/lib/harbor_swagger_client/models/ldap_failed_import_users.rb +1 -1
- data/lib/harbor_swagger_client/models/ldap_import_users.rb +1 -1
- data/lib/harbor_swagger_client/models/ldap_users.rb +1 -1
- data/lib/harbor_swagger_client/models/namespace.rb +1 -1
- data/lib/harbor_swagger_client/models/not_found_chart_api_error.rb +1 -1
- data/lib/harbor_swagger_client/models/{chart_versions.rb → notify_type.rb} +3 -3
- data/lib/harbor_swagger_client/models/overall_health_status.rb +1 -1
- data/lib/harbor_swagger_client/models/password.rb +1 -1
- data/lib/harbor_swagger_client/models/permission.rb +1 -1
- data/lib/harbor_swagger_client/models/ping_registry.rb +1 -1
- data/lib/harbor_swagger_client/models/project.rb +2 -2
- data/lib/harbor_swagger_client/models/project_member.rb +1 -1
- data/lib/harbor_swagger_client/models/project_member_entity.rb +1 -1
- data/lib/harbor_swagger_client/models/project_metadata.rb +1 -1
- data/lib/harbor_swagger_client/models/project_req.rb +1 -1
- data/lib/harbor_swagger_client/models/project_scanner.rb +1 -1
- data/lib/harbor_swagger_client/models/project_summary.rb +1 -1
- data/lib/harbor_swagger_client/models/project_summary_quota.rb +1 -1
- data/lib/harbor_swagger_client/models/put_registry.rb +1 -1
- data/lib/harbor_swagger_client/models/quota.rb +1 -1
- data/lib/harbor_swagger_client/models/quota_ref_object.rb +1 -1
- data/lib/harbor_swagger_client/models/quota_switcher.rb +1 -1
- data/lib/harbor_swagger_client/models/quota_update_req.rb +1 -1
- data/lib/harbor_swagger_client/models/registry.rb +1 -1
- data/lib/harbor_swagger_client/models/registry_credential.rb +1 -1
- data/lib/harbor_swagger_client/models/registry_info.rb +1 -1
- data/lib/harbor_swagger_client/models/replication_execution.rb +1 -1
- data/lib/harbor_swagger_client/models/replication_filter.rb +1 -1
- data/lib/harbor_swagger_client/models/replication_policy.rb +1 -1
- data/lib/harbor_swagger_client/models/replication_task.rb +1 -1
- data/lib/harbor_swagger_client/models/replication_trigger.rb +1 -1
- data/lib/harbor_swagger_client/models/resource_list.rb +1 -1
- data/lib/harbor_swagger_client/models/retention_execution.rb +1 -1
- data/lib/harbor_swagger_client/models/retention_execution_task.rb +1 -1
- data/lib/harbor_swagger_client/models/retention_metadata.rb +1 -1
- data/lib/harbor_swagger_client/models/retention_policy.rb +1 -1
- data/lib/harbor_swagger_client/models/retention_policy_scope.rb +1 -1
- data/lib/harbor_swagger_client/models/retention_rule.rb +1 -1
- data/lib/harbor_swagger_client/models/retention_rule_metadata.rb +1 -1
- data/lib/harbor_swagger_client/models/retention_rule_param_metadata.rb +1 -1
- data/lib/harbor_swagger_client/models/retention_rule_trigger.rb +1 -1
- data/lib/harbor_swagger_client/models/retention_selector.rb +14 -5
- data/lib/harbor_swagger_client/models/retention_selector_metadata.rb +1 -1
- data/lib/harbor_swagger_client/models/robot_account.rb +1 -1
- data/lib/harbor_swagger_client/models/robot_account_access.rb +1 -1
- data/lib/harbor_swagger_client/models/robot_account_create.rb +12 -2
- data/lib/harbor_swagger_client/models/robot_account_post_rep.rb +1 -1
- data/lib/harbor_swagger_client/models/robot_account_update.rb +1 -1
- data/lib/harbor_swagger_client/models/role.rb +1 -1
- data/lib/harbor_swagger_client/models/role_param.rb +1 -1
- data/lib/harbor_swagger_client/models/role_request.rb +1 -1
- data/lib/harbor_swagger_client/models/scanner.rb +1 -1
- data/lib/harbor_swagger_client/models/scanner_adapter_metadata.rb +1 -1
- data/lib/harbor_swagger_client/models/scanner_capability.rb +1 -1
- data/lib/harbor_swagger_client/models/scanner_registration.rb +1 -1
- data/lib/harbor_swagger_client/models/scanner_registration_req.rb +1 -1
- data/lib/harbor_swagger_client/models/scanner_registration_settings.rb +1 -1
- data/lib/harbor_swagger_client/models/search.rb +1 -1
- data/lib/harbor_swagger_client/models/search_repository.rb +9 -9
- data/lib/harbor_swagger_client/models/search_result.rb +1 -1
- data/lib/harbor_swagger_client/models/statistic_map.rb +1 -1
- data/lib/harbor_swagger_client/models/stats.rb +1 -1
- data/lib/harbor_swagger_client/models/storage.rb +1 -1
- data/lib/harbor_swagger_client/models/string_config_item.rb +1 -1
- data/{spec/lib/harbor_swagger_client/models/overall_health_status.rb → lib/harbor_swagger_client/models/supported_webhook_event_types.rb} +19 -18
- data/lib/harbor_swagger_client/models/{inline_response_200.rb → sys_admin_flag.rb} +10 -9
- data/lib/harbor_swagger_client/models/system_info.rb +1 -1
- data/lib/harbor_swagger_client/models/trigger_settings.rb +1 -1
- data/lib/harbor_swagger_client/models/unauthorized_chart_api_error.rb +1 -1
- data/lib/harbor_swagger_client/models/user.rb +18 -8
- data/lib/harbor_swagger_client/models/user_entity.rb +1 -1
- data/lib/harbor_swagger_client/models/user_group.rb +1 -1
- data/lib/harbor_swagger_client/models/user_profile.rb +1 -1
- data/lib/harbor_swagger_client/models/user_search.rb +1 -1
- data/lib/harbor_swagger_client/models/webhook_job.rb +1 -1
- data/lib/harbor_swagger_client/models/webhook_last_trigger.rb +1 -1
- data/lib/harbor_swagger_client/models/webhook_policy.rb +1 -1
- data/lib/harbor_swagger_client/models/webhook_target_object.rb +1 -1
- data/lib/harbor_swagger_client/version.rb +2 -2
- data/spec/api/chart_repository_api_spec.rb +1 -118
- data/spec/api/label_api_spec.rb +1 -1
- data/spec/api/products_api_spec.rb +14 -443
- data/spec/api/quota_api_spec.rb +1 -1
- data/spec/api/retention_api_spec.rb +1 -1
- data/spec/api/robot_account_api_spec.rb +1 -1
- data/spec/api/scan_api_spec.rb +1 -42
- data/spec/api/scanners_api_spec.rb +1 -1
- data/spec/api/system_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/action_1_spec.rb +1 -1
- data/spec/models/action_spec.rb +1 -1
- data/spec/models/admin_job_schedule_obj_spec.rb +1 -1
- data/spec/models/admin_job_schedule_spec.rb +7 -1
- data/spec/models/bad_request_formated_error_spec.rb +1 -1
- data/spec/models/bool_config_item_spec.rb +1 -1
- data/spec/models/chart_api_error_spec.rb +1 -1
- data/spec/models/chart_metadata_spec.rb +1 -1
- data/spec/models/chart_version_spec.rb +1 -1
- data/spec/models/component_health_status_spec.rb +1 -1
- data/spec/models/component_overview_entry_spec.rb +1 -1
- data/spec/models/configurations_response_spec.rb +1 -1
- data/spec/models/configurations_scan_all_policy_parameter_spec.rb +1 -1
- data/spec/models/configurations_scan_all_policy_spec.rb +1 -1
- data/spec/models/configurations_spec.rb +1 -1
- data/spec/models/conflict_formated_error_spec.rb +1 -1
- data/spec/models/cve_whitelist_item_spec.rb +1 -1
- data/spec/models/cve_whitelist_spec.rb +1 -1
- data/spec/models/email_server_setting_spec.rb +1 -1
- data/spec/models/endpoint_spec.rb +1 -1
- data/spec/models/{scan_overview_spec.rb → event_type_spec.rb} +7 -7
- data/spec/models/filter_style_spec.rb +1 -1
- data/spec/models/forbidden_chart_api_error_spec.rb +1 -1
- data/spec/models/gc_result_spec.rb +7 -1
- data/spec/models/general_info_spec.rb +2 -26
- data/spec/models/immutable_tag_rule_spec.rb +1 -1
- data/spec/models/input_secret_spec.rb +1 -1
- data/spec/models/insufficient_storage_chart_api_error_spec.rb +1 -1
- data/spec/models/integer_config_item_spec.rb +1 -1
- data/spec/models/internal_chart_api_error_spec.rb +1 -1
- data/spec/models/is_default_spec.rb +1 -1
- data/spec/models/label_spec.rb +1 -1
- data/spec/models/labels_spec.rb +1 -1
- data/spec/models/ldap_conf_spec.rb +1 -1
- data/spec/models/ldap_failed_import_users_spec.rb +1 -1
- data/spec/models/ldap_import_users_spec.rb +1 -1
- data/spec/models/ldap_users_spec.rb +1 -1
- data/spec/models/namespace_spec.rb +1 -1
- data/spec/models/not_found_chart_api_error_spec.rb +1 -1
- data/spec/models/{chart_info_list_spec.rb → notify_type_spec.rb} +7 -7
- data/spec/models/overall_health_status_spec.rb +1 -1
- data/spec/models/password_spec.rb +1 -1
- data/spec/models/permission_spec.rb +1 -1
- data/spec/models/ping_registry_spec.rb +1 -1
- data/spec/models/project_member_entity_spec.rb +1 -1
- data/spec/models/project_member_spec.rb +1 -1
- data/spec/models/project_metadata_spec.rb +1 -1
- data/spec/models/project_req_spec.rb +1 -1
- data/spec/models/project_scanner_spec.rb +1 -1
- data/spec/models/project_spec.rb +1 -1
- data/spec/models/project_summary_quota_spec.rb +1 -1
- data/spec/models/project_summary_spec.rb +1 -1
- data/spec/models/put_registry_spec.rb +1 -1
- data/spec/models/quota_ref_object_spec.rb +1 -1
- data/spec/models/quota_spec.rb +1 -1
- data/spec/models/quota_switcher_spec.rb +1 -1
- data/spec/models/quota_update_req_spec.rb +1 -1
- data/spec/models/registry_credential_spec.rb +1 -1
- data/spec/models/registry_info_spec.rb +1 -1
- data/spec/models/registry_spec.rb +1 -1
- data/spec/models/replication_execution_spec.rb +1 -1
- data/spec/models/replication_filter_spec.rb +1 -1
- data/spec/models/replication_policy_spec.rb +1 -1
- data/spec/models/replication_task_spec.rb +1 -1
- data/spec/models/replication_trigger_spec.rb +1 -1
- data/spec/models/resource_list_spec.rb +1 -1
- data/spec/models/retention_execution_spec.rb +1 -1
- data/spec/models/retention_execution_task_spec.rb +1 -1
- data/spec/models/retention_metadata_spec.rb +1 -1
- data/spec/models/retention_policy_scope_spec.rb +1 -1
- data/spec/models/retention_policy_spec.rb +1 -1
- data/spec/models/retention_rule_metadata_spec.rb +1 -1
- data/spec/models/retention_rule_param_metadata_spec.rb +1 -1
- data/spec/models/retention_rule_spec.rb +1 -1
- data/spec/models/retention_rule_trigger_spec.rb +1 -1
- data/spec/models/retention_selector_metadata_spec.rb +1 -1
- data/spec/models/retention_selector_spec.rb +7 -1
- data/spec/models/robot_account_access_spec.rb +1 -1
- data/spec/models/robot_account_create_spec.rb +7 -1
- data/spec/models/robot_account_post_rep_spec.rb +1 -1
- data/spec/models/robot_account_spec.rb +1 -1
- data/spec/models/robot_account_update_spec.rb +1 -1
- data/spec/models/role_param_spec.rb +1 -1
- data/spec/models/role_request_spec.rb +1 -1
- data/spec/models/role_spec.rb +1 -1
- data/spec/models/scanner_adapter_metadata_spec.rb +1 -1
- data/spec/models/scanner_capability_spec.rb +1 -1
- data/spec/models/scanner_registration_req_spec.rb +1 -1
- data/spec/models/scanner_registration_settings_spec.rb +1 -1
- data/spec/models/scanner_registration_spec.rb +1 -1
- data/spec/models/scanner_spec.rb +1 -1
- data/spec/models/search_repository_spec.rb +2 -2
- data/spec/models/search_result_spec.rb +1 -1
- data/spec/models/search_spec.rb +1 -1
- data/spec/models/statistic_map_spec.rb +1 -1
- data/spec/models/stats_spec.rb +1 -1
- data/spec/models/storage_spec.rb +1 -1
- data/spec/models/string_config_item_spec.rb +1 -1
- data/spec/models/{repo_signature_spec.rb → supported_webhook_event_types_spec.rb} +9 -9
- data/spec/models/{tags_spec.rb → sys_admin_flag_spec.rb} +8 -8
- data/spec/models/system_info_spec.rb +1 -1
- data/spec/models/trigger_settings_spec.rb +1 -1
- data/spec/models/unauthorized_chart_api_error_spec.rb +1 -1
- data/spec/models/user_entity_spec.rb +1 -1
- data/spec/models/user_group_spec.rb +1 -1
- data/spec/models/user_profile_spec.rb +1 -1
- data/spec/models/user_search_spec.rb +1 -1
- data/spec/models/user_spec.rb +8 -2
- data/spec/models/webhook_job_spec.rb +1 -1
- data/spec/models/webhook_last_trigger_spec.rb +1 -1
- data/spec/models/webhook_policy_spec.rb +1 -1
- data/spec/models/webhook_target_object_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +18 -710
- data/docs/AccessLog.md +0 -13
- data/docs/ChartInfoEntry.md +0 -15
- data/docs/ChartInfoList.md +0 -7
- data/docs/ChartVersionDetails.md +0 -13
- data/docs/ChartVersions.md +0 -7
- data/docs/Dependency.md +0 -10
- data/docs/DetailedTag.md +0 -18
- data/docs/DetailedTagScanOverview.md +0 -13
- data/docs/DetailedTagScanOverviewComponents.md +0 -9
- data/docs/DigitalSignature.md +0 -9
- data/docs/GeneralInfoClairVulnerabilityStatus.md +0 -9
- data/docs/HasAdminRole.md +0 -8
- data/docs/InlineResponse200.md +0 -8
- data/docs/InlineResponse2001.md +0 -8
- data/docs/JobStatus.md +0 -15
- data/docs/Manifest.md +0 -9
- data/docs/NativeReportSummary.md +0 -14
- data/docs/RepoSignature.md +0 -9
- data/docs/Report.md +0 -11
- data/docs/Repository.md +0 -17
- data/docs/RepositoryDescription.md +0 -8
- data/docs/Resource.md +0 -8
- data/docs/RetagReq.md +0 -10
- data/docs/Tags.md +0 -8
- data/docs/VulnNamespaceTimestamp.md +0 -9
- data/docs/VulnerabilityItem.md +0 -14
- data/docs/VulnerabilitySummary.md +0 -10
- data/lib/harbor_swagger_client/models/access_log.rb +0 -234
- data/lib/harbor_swagger_client/models/chart_info_entry.rb +0 -270
- data/lib/harbor_swagger_client/models/chart_info_list.rb +0 -175
- data/lib/harbor_swagger_client/models/chart_version_details.rb +0 -235
- data/lib/harbor_swagger_client/models/dependency.rb +0 -215
- data/lib/harbor_swagger_client/models/detailed_tag.rb +0 -286
- data/lib/harbor_swagger_client/models/detailed_tag_scan_overview.rb +0 -234
- data/lib/harbor_swagger_client/models/detailed_tag_scan_overview_components.rb +0 -197
- data/lib/harbor_swagger_client/models/digital_signature.rb +0 -195
- data/lib/harbor_swagger_client/models/general_info_clair_vulnerability_status.rb +0 -197
- data/lib/harbor_swagger_client/models/has_admin_role.rb +0 -184
- data/lib/harbor_swagger_client/models/inline_response_200_1.rb +0 -183
- data/lib/harbor_swagger_client/models/job_status.rb +0 -256
- data/lib/harbor_swagger_client/models/manifest.rb +0 -194
- data/lib/harbor_swagger_client/models/native_report_summary.rb +0 -244
- data/lib/harbor_swagger_client/models/repo_signature.rb +0 -194
- data/lib/harbor_swagger_client/models/report.rb +0 -215
- data/lib/harbor_swagger_client/models/repository.rb +0 -276
- data/lib/harbor_swagger_client/models/repository_description.rb +0 -184
- data/lib/harbor_swagger_client/models/resource.rb +0 -186
- data/lib/harbor_swagger_client/models/retag_req.rb +0 -204
- data/lib/harbor_swagger_client/models/scan_overview.rb +0 -175
- data/lib/harbor_swagger_client/models/security_report.rb +0 -184
- data/lib/harbor_swagger_client/models/tags.rb +0 -184
- data/lib/harbor_swagger_client/models/vuln_namespace_timestamp.rb +0 -194
- data/lib/harbor_swagger_client/models/vulnerability_item.rb +0 -246
- data/lib/harbor_swagger_client/models/vulnerability_summary.rb +0 -207
- data/spec/Gemfile +0 -7
- data/spec/README.md +0 -438
- data/spec/Rakefile +0 -8
- data/spec/docs/AccessLog.md +0 -13
- data/spec/docs/Action.md +0 -8
- data/spec/docs/Action1.md +0 -8
- data/spec/docs/AdminJobSchedule.md +0 -8
- data/spec/docs/AdminJobScheduleObj.md +0 -9
- data/spec/docs/BadRequestFormatedError.md +0 -8
- data/spec/docs/BoolConfigItem.md +0 -9
- data/spec/docs/CVEWhitelist.md +0 -11
- data/spec/docs/CVEWhitelistItem.md +0 -8
- data/spec/docs/ChartAPIError.md +0 -8
- data/spec/docs/ChartInfoEntry.md +0 -15
- data/spec/docs/ChartInfoList.md +0 -7
- data/spec/docs/ChartMetadata.md +0 -18
- data/spec/docs/ChartRepositoryApi.md +0 -698
- data/spec/docs/ChartVersion.md +0 -22
- data/spec/docs/ChartVersionDetails.md +0 -13
- data/spec/docs/ChartVersions.md +0 -7
- data/spec/docs/ComponentHealthStatus.md +0 -10
- data/spec/docs/ComponentOverviewEntry.md +0 -9
- data/spec/docs/Configurations.md +0 -42
- data/spec/docs/ConfigurationsResponse.md +0 -41
- data/spec/docs/ConfigurationsScanAllPolicy.md +0 -9
- data/spec/docs/ConfigurationsScanAllPolicyParameter.md +0 -8
- data/spec/docs/ConflictFormatedError.md +0 -8
- data/spec/docs/Dependency.md +0 -10
- data/spec/docs/DetailedTag.md +0 -18
- data/spec/docs/DigitalSignature.md +0 -9
- data/spec/docs/EmailServerSetting.md +0 -13
- data/spec/docs/Endpoint.md +0 -9
- data/spec/docs/FilterStyle.md +0 -10
- data/spec/docs/ForbiddenChartAPIError.md +0 -8
- data/spec/docs/GCResult.md +0 -15
- data/spec/docs/GeneralInfo.md +0 -20
- data/spec/docs/GeneralInfoClairVulnerabilityStatus.md +0 -9
- data/spec/docs/HasAdminRole.md +0 -8
- data/spec/docs/ImmutableTagRule.md +0 -11
- data/spec/docs/InlineResponse200.md +0 -8
- data/spec/docs/InputSecret.md +0 -8
- data/spec/docs/InsufficientStorageChartAPIError.md +0 -8
- data/spec/docs/IntegerConfigItem.md +0 -9
- data/spec/docs/InternalChartAPIError.md +0 -8
- data/spec/docs/IsDefault.md +0 -8
- data/spec/docs/JobStatus.md +0 -15
- data/spec/docs/Label.md +0 -16
- data/spec/docs/LabelApi.md +0 -191
- data/spec/docs/LdapConf.md +0 -15
- data/spec/docs/LdapFailedImportUsers.md +0 -9
- data/spec/docs/LdapImportUsers.md +0 -8
- data/spec/docs/LdapUsers.md +0 -10
- data/spec/docs/Manifest.md +0 -9
- data/spec/docs/Namespace.md +0 -9
- data/spec/docs/NativeReportSummary.md +0 -14
- data/spec/docs/NotFoundChartAPIError.md +0 -8
- data/spec/docs/OverallHealthStatus.md +0 -9
- data/spec/docs/Password.md +0 -9
- data/spec/docs/Permission.md +0 -9
- data/spec/docs/PingRegistry.md +0 -14
- data/spec/docs/ProductsApi.md +0 -8594
- data/spec/docs/Project.md +0 -21
- data/spec/docs/ProjectMember.md +0 -10
- data/spec/docs/ProjectMemberEntity.md +0 -14
- data/spec/docs/ProjectMetadata.md +0 -13
- data/spec/docs/ProjectReq.md +0 -12
- data/spec/docs/ProjectScanner.md +0 -8
- data/spec/docs/ProjectSummary.md +0 -14
- data/spec/docs/ProjectSummaryQuota.md +0 -9
- data/spec/docs/PutRegistry.md +0 -14
- data/spec/docs/Quota.md +0 -13
- data/spec/docs/QuotaApi.md +0 -118
- data/spec/docs/QuotaRefObject.md +0 -7
- data/spec/docs/QuotaSwitcher.md +0 -8
- data/spec/docs/QuotaUpdateReq.md +0 -8
- data/spec/docs/Registry.md +0 -17
- data/spec/docs/RegistryCredential.md +0 -10
- data/spec/docs/RegistryInfo.md +0 -11
- data/spec/docs/ReplicationExecution.md +0 -19
- data/spec/docs/ReplicationFilter.md +0 -9
- data/spec/docs/ReplicationPolicy.md +0 -20
- data/spec/docs/ReplicationTask.md +0 -16
- data/spec/docs/ReplicationTrigger.md +0 -9
- data/spec/docs/RepoSignature.md +0 -9
- data/spec/docs/Report.md +0 -11
- data/spec/docs/Repository.md +0 -17
- data/spec/docs/RepositoryDescription.md +0 -8
- data/spec/docs/Resource.md +0 -8
- data/spec/docs/ResourceList.md +0 -7
- data/spec/docs/RetagReq.md +0 -10
- data/spec/docs/RetentionApi.md +0 -449
- data/spec/docs/RetentionExecution.md +0 -14
- data/spec/docs/RetentionExecutionTask.md +0 -18
- data/spec/docs/RetentionMetadata.md +0 -10
- data/spec/docs/RetentionPolicy.md +0 -12
- data/spec/docs/RetentionPolicyScope.md +0 -9
- data/spec/docs/RetentionRule.md +0 -15
- data/spec/docs/RetentionRuleMetadata.md +0 -11
- data/spec/docs/RetentionRuleParamMetadata.md +0 -10
- data/spec/docs/RetentionRuleTrigger.md +0 -10
- data/spec/docs/RetentionSelector.md +0 -10
- data/spec/docs/RetentionSelectorMetadata.md +0 -10
- data/spec/docs/RobotAccount.md +0 -15
- data/spec/docs/RobotAccountAccess.md +0 -9
- data/spec/docs/RobotAccountApi.md +0 -291
- data/spec/docs/RobotAccountCreate.md +0 -10
- data/spec/docs/RobotAccountPostRep.md +0 -9
- data/spec/docs/RobotAccountUpdate.md +0 -8
- data/spec/docs/Role.md +0 -11
- data/spec/docs/RoleParam.md +0 -9
- data/spec/docs/RoleRequest.md +0 -8
- data/spec/docs/ScanApi.md +0 -281
- data/spec/docs/ScanOverview.md +0 -7
- data/spec/docs/Scanner.md +0 -10
- data/spec/docs/ScannerAdapterMetadata.md +0 -10
- data/spec/docs/ScannerCapability.md +0 -9
- data/spec/docs/ScannerRegistration.md +0 -21
- data/spec/docs/ScannerRegistrationReq.md +0 -15
- data/spec/docs/ScannerRegistrationSettings.md +0 -11
- data/spec/docs/ScannersApi.md +0 -600
- data/spec/docs/Search.md +0 -10
- data/spec/docs/SearchRepository.md +0 -13
- data/spec/docs/SearchResult.md +0 -10
- data/spec/docs/SecurityReport.md +0 -8
- data/spec/docs/StatisticMap.md +0 -13
- data/spec/docs/Stats.md +0 -11
- data/spec/docs/Storage.md +0 -9
- data/spec/docs/StringConfigItem.md +0 -9
- data/spec/docs/SystemApi.md +0 -163
- data/spec/docs/SystemInfo.md +0 -8
- data/spec/docs/Tags.md +0 -8
- data/spec/docs/TriggerSettings.md +0 -8
- data/spec/docs/UnauthorizedChartAPIError.md +0 -8
- data/spec/docs/User.md +0 -21
- data/spec/docs/UserEntity.md +0 -9
- data/spec/docs/UserGroup.md +0 -11
- data/spec/docs/UserProfile.md +0 -10
- data/spec/docs/UserSearch.md +0 -9
- data/spec/docs/VulnNamespaceTimestamp.md +0 -9
- data/spec/docs/VulnerabilityItem.md +0 -14
- data/spec/docs/VulnerabilitySummary.md +0 -10
- data/spec/docs/WebhookJob.md +0 -15
- data/spec/docs/WebhookLastTrigger.md +0 -11
- data/spec/docs/WebhookPolicy.md +0 -17
- data/spec/docs/WebhookTargetObject.md +0 -11
- data/spec/git_push.sh +0 -55
- data/spec/harbor_swagger_client.gemspec +0 -45
- data/spec/lib/harbor_swagger_client.rb +0 -182
- data/spec/lib/harbor_swagger_client/api/chart_repository_api.rb +0 -762
- data/spec/lib/harbor_swagger_client/api/label_api.rb +0 -230
- data/spec/lib/harbor_swagger_client/api/products_api.rb +0 -8783
- data/spec/lib/harbor_swagger_client/api/quota_api.rb +0 -136
- data/spec/lib/harbor_swagger_client/api/retention_api.rb +0 -482
- data/spec/lib/harbor_swagger_client/api/robot_account_api.rb +0 -321
- data/spec/lib/harbor_swagger_client/api/scan_api.rb +0 -307
- data/spec/lib/harbor_swagger_client/api/scanners_api.rb +0 -624
- data/spec/lib/harbor_swagger_client/api/system_api.rb +0 -173
- data/spec/lib/harbor_swagger_client/api_client.rb +0 -389
- data/spec/lib/harbor_swagger_client/api_error.rb +0 -38
- data/spec/lib/harbor_swagger_client/configuration.rb +0 -209
- data/spec/lib/harbor_swagger_client/models/access_log.rb +0 -234
- data/spec/lib/harbor_swagger_client/models/action.rb +0 -183
- data/spec/lib/harbor_swagger_client/models/action_1.rb +0 -183
- data/spec/lib/harbor_swagger_client/models/admin_job_schedule.rb +0 -183
- data/spec/lib/harbor_swagger_client/models/admin_job_schedule_obj.rb +0 -194
- data/spec/lib/harbor_swagger_client/models/bad_request_formated_error.rb +0 -190
- data/spec/lib/harbor_swagger_client/models/bool_config_item.rb +0 -194
- data/spec/lib/harbor_swagger_client/models/chart_api_error.rb +0 -190
- data/spec/lib/harbor_swagger_client/models/chart_info_entry.rb +0 -270
- data/spec/lib/harbor_swagger_client/models/chart_info_list.rb +0 -175
- data/spec/lib/harbor_swagger_client/models/chart_metadata.rb +0 -319
- data/spec/lib/harbor_swagger_client/models/chart_version.rb +0 -361
- data/spec/lib/harbor_swagger_client/models/chart_version_details.rb +0 -235
- data/spec/lib/harbor_swagger_client/models/component_health_status.rb +0 -205
- data/spec/lib/harbor_swagger_client/models/component_overview_entry.rb +0 -194
- data/spec/lib/harbor_swagger_client/models/configurations.rb +0 -523
- data/spec/lib/harbor_swagger_client/models/configurations_response.rb +0 -513
- data/spec/lib/harbor_swagger_client/models/configurations_scan_all_policy.rb +0 -193
- data/spec/lib/harbor_swagger_client/models/configurations_scan_all_policy_parameter.rb +0 -185
- data/spec/lib/harbor_swagger_client/models/conflict_formated_error.rb +0 -190
- data/spec/lib/harbor_swagger_client/models/cve_whitelist.rb +0 -216
- data/spec/lib/harbor_swagger_client/models/cve_whitelist_item.rb +0 -185
- data/spec/lib/harbor_swagger_client/models/dependency.rb +0 -215
- data/spec/lib/harbor_swagger_client/models/detailed_tag.rb +0 -286
- data/spec/lib/harbor_swagger_client/models/digital_signature.rb +0 -195
- data/spec/lib/harbor_swagger_client/models/email_server_setting.rb +0 -234
- data/spec/lib/harbor_swagger_client/models/endpoint.rb +0 -194
- data/spec/lib/harbor_swagger_client/models/filter_style.rb +0 -207
- data/spec/lib/harbor_swagger_client/models/forbidden_chart_api_error.rb +0 -190
- data/spec/lib/harbor_swagger_client/models/gc_result.rb +0 -253
- data/spec/lib/harbor_swagger_client/models/general_info.rb +0 -303
- data/spec/lib/harbor_swagger_client/models/general_info_clair_vulnerability_status.rb +0 -197
- data/spec/lib/harbor_swagger_client/models/has_admin_role.rb +0 -184
- data/spec/lib/harbor_swagger_client/models/immutable_tag_rule.rb +0 -210
- data/spec/lib/harbor_swagger_client/models/inline_response_200.rb +0 -183
- data/spec/lib/harbor_swagger_client/models/input_secret.rb +0 -184
- data/spec/lib/harbor_swagger_client/models/insufficient_storage_chart_api_error.rb +0 -190
- data/spec/lib/harbor_swagger_client/models/integer_config_item.rb +0 -194
- data/spec/lib/harbor_swagger_client/models/internal_chart_api_error.rb +0 -190
- data/spec/lib/harbor_swagger_client/models/is_default.rb +0 -184
- data/spec/lib/harbor_swagger_client/models/job_status.rb +0 -256
- data/spec/lib/harbor_swagger_client/models/label.rb +0 -264
- data/spec/lib/harbor_swagger_client/models/labels.rb +0 -175
- data/spec/lib/harbor_swagger_client/models/ldap_conf.rb +0 -254
- data/spec/lib/harbor_swagger_client/models/ldap_failed_import_users.rb +0 -194
- data/spec/lib/harbor_swagger_client/models/ldap_import_users.rb +0 -186
- data/spec/lib/harbor_swagger_client/models/ldap_users.rb +0 -204
- data/spec/lib/harbor_swagger_client/models/manifest.rb +0 -194
- data/spec/lib/harbor_swagger_client/models/namespace.rb +0 -195
- data/spec/lib/harbor_swagger_client/models/native_report_summary.rb +0 -244
- data/spec/lib/harbor_swagger_client/models/not_found_chart_api_error.rb +0 -190
- data/spec/lib/harbor_swagger_client/models/password.rb +0 -194
- data/spec/lib/harbor_swagger_client/models/permission.rb +0 -195
- data/spec/lib/harbor_swagger_client/models/ping_registry.rb +0 -244
- data/spec/lib/harbor_swagger_client/models/project.rb +0 -316
- data/spec/lib/harbor_swagger_client/models/project_member.rb +0 -202
- data/spec/lib/harbor_swagger_client/models/project_member_entity.rb +0 -244
- data/spec/lib/harbor_swagger_client/models/project_metadata.rb +0 -234
- data/spec/lib/harbor_swagger_client/models/project_req.rb +0 -224
- data/spec/lib/harbor_swagger_client/models/project_scanner.rb +0 -184
- data/spec/lib/harbor_swagger_client/models/project_summary.rb +0 -243
- data/spec/lib/harbor_swagger_client/models/project_summary_quota.rb +0 -194
- data/spec/lib/harbor_swagger_client/models/put_registry.rb +0 -244
- data/spec/lib/harbor_swagger_client/models/quota.rb +0 -235
- data/spec/lib/harbor_swagger_client/models/quota_ref_object.rb +0 -174
- data/spec/lib/harbor_swagger_client/models/quota_switcher.rb +0 -184
- data/spec/lib/harbor_swagger_client/models/quota_update_req.rb +0 -184
- data/spec/lib/harbor_swagger_client/models/registry.rb +0 -273
- data/spec/lib/harbor_swagger_client/models/registry_credential.rb +0 -204
- data/spec/lib/harbor_swagger_client/models/registry_info.rb +0 -219
- data/spec/lib/harbor_swagger_client/models/replication_execution.rb +0 -295
- data/spec/lib/harbor_swagger_client/models/replication_filter.rb +0 -194
- data/spec/lib/harbor_swagger_client/models/replication_policy.rb +0 -305
- data/spec/lib/harbor_swagger_client/models/replication_task.rb +0 -265
- data/spec/lib/harbor_swagger_client/models/replication_trigger.rb +0 -193
- data/spec/lib/harbor_swagger_client/models/repo_signature.rb +0 -194
- data/spec/lib/harbor_swagger_client/models/report.rb +0 -215
- data/spec/lib/harbor_swagger_client/models/repository.rb +0 -276
- data/spec/lib/harbor_swagger_client/models/repository_description.rb +0 -184
- data/spec/lib/harbor_swagger_client/models/resource.rb +0 -186
- data/spec/lib/harbor_swagger_client/models/resource_list.rb +0 -174
- data/spec/lib/harbor_swagger_client/models/retag_req.rb +0 -204
- data/spec/lib/harbor_swagger_client/models/retention_execution.rb +0 -237
- data/spec/lib/harbor_swagger_client/models/retention_execution_task.rb +0 -273
- data/spec/lib/harbor_swagger_client/models/retention_metadata.rb +0 -211
- data/spec/lib/harbor_swagger_client/models/retention_policy.rb +0 -222
- data/spec/lib/harbor_swagger_client/models/retention_policy_scope.rb +0 -192
- data/spec/lib/harbor_swagger_client/models/retention_rule.rb +0 -252
- data/spec/lib/harbor_swagger_client/models/retention_rule_metadata.rb +0 -217
- data/spec/lib/harbor_swagger_client/models/retention_rule_param_metadata.rb +0 -202
- data/spec/lib/harbor_swagger_client/models/retention_rule_trigger.rb +0 -201
- data/spec/lib/harbor_swagger_client/models/retention_selector.rb +0 -201
- data/spec/lib/harbor_swagger_client/models/retention_selector_metadata.rb +0 -204
- data/spec/lib/harbor_swagger_client/models/robot_account.rb +0 -255
- data/spec/lib/harbor_swagger_client/models/robot_account_access.rb +0 -194
- data/spec/lib/harbor_swagger_client/models/robot_account_create.rb +0 -206
- data/spec/lib/harbor_swagger_client/models/robot_account_post_rep.rb +0 -194
- data/spec/lib/harbor_swagger_client/models/robot_account_update.rb +0 -184
- data/spec/lib/harbor_swagger_client/models/role.rb +0 -213
- data/spec/lib/harbor_swagger_client/models/role_param.rb +0 -196
- data/spec/lib/harbor_swagger_client/models/role_request.rb +0 -184
- data/spec/lib/harbor_swagger_client/models/scan_overview.rb +0 -175
- data/spec/lib/harbor_swagger_client/models/scanner.rb +0 -204
- data/spec/lib/harbor_swagger_client/models/scanner_adapter_metadata.rb +0 -206
- data/spec/lib/harbor_swagger_client/models/scanner_capability.rb +0 -196
- data/spec/lib/harbor_swagger_client/models/scanner_registration.rb +0 -327
- data/spec/lib/harbor_swagger_client/models/scanner_registration_req.rb +0 -262
- data/spec/lib/harbor_swagger_client/models/scanner_registration_settings.rb +0 -216
- data/spec/lib/harbor_swagger_client/models/search.rb +0 -210
- data/spec/lib/harbor_swagger_client/models/search_repository.rb +0 -234
- data/spec/lib/harbor_swagger_client/models/search_result.rb +0 -204
- data/spec/lib/harbor_swagger_client/models/security_report.rb +0 -184
- data/spec/lib/harbor_swagger_client/models/statistic_map.rb +0 -234
- data/spec/lib/harbor_swagger_client/models/stats.rb +0 -217
- data/spec/lib/harbor_swagger_client/models/storage.rb +0 -194
- data/spec/lib/harbor_swagger_client/models/string_config_item.rb +0 -194
- data/spec/lib/harbor_swagger_client/models/system_info.rb +0 -186
- data/spec/lib/harbor_swagger_client/models/tags.rb +0 -184
- data/spec/lib/harbor_swagger_client/models/trigger_settings.rb +0 -184
- data/spec/lib/harbor_swagger_client/models/unauthorized_chart_api_error.rb +0 -190
- data/spec/lib/harbor_swagger_client/models/user.rb +0 -301
- data/spec/lib/harbor_swagger_client/models/user_entity.rb +0 -194
- data/spec/lib/harbor_swagger_client/models/user_group.rb +0 -214
- data/spec/lib/harbor_swagger_client/models/user_profile.rb +0 -204
- data/spec/lib/harbor_swagger_client/models/user_search.rb +0 -193
- data/spec/lib/harbor_swagger_client/models/vuln_namespace_timestamp.rb +0 -194
- data/spec/lib/harbor_swagger_client/models/vulnerability_item.rb +0 -246
- data/spec/lib/harbor_swagger_client/models/vulnerability_summary.rb +0 -207
- data/spec/lib/harbor_swagger_client/models/webhook_job.rb +0 -255
- data/spec/lib/harbor_swagger_client/models/webhook_last_trigger.rb +0 -215
- data/spec/lib/harbor_swagger_client/models/webhook_policy.rb +0 -277
- data/spec/lib/harbor_swagger_client/models/webhook_target_object.rb +0 -215
- data/spec/lib/harbor_swagger_client/version.rb +0 -15
- data/spec/models/access_log_spec.rb +0 -71
- data/spec/models/chart_info_entry_spec.rb +0 -83
- data/spec/models/chart_version_details_spec.rb +0 -71
- data/spec/models/chart_versions_spec.rb +0 -35
- data/spec/models/dependency_spec.rb +0 -53
- data/spec/models/detailed_tag_scan_overview_components_spec.rb +0 -47
- data/spec/models/detailed_tag_scan_overview_spec.rb +0 -71
- data/spec/models/detailed_tag_spec.rb +0 -101
- data/spec/models/digital_signature_spec.rb +0 -47
- data/spec/models/general_info_clair_vulnerability_status_spec.rb +0 -47
- data/spec/models/has_admin_role_spec.rb +0 -41
- data/spec/models/inline_response_200_1_spec.rb +0 -41
- data/spec/models/inline_response_200_spec.rb +0 -41
- data/spec/models/job_status_spec.rb +0 -83
- data/spec/models/manifest_spec.rb +0 -47
- data/spec/models/native_report_summary_spec.rb +0 -77
- data/spec/models/report_spec.rb +0 -59
- data/spec/models/repository_description_spec.rb +0 -41
- data/spec/models/repository_spec.rb +0 -95
- data/spec/models/resource_spec.rb +0 -41
- data/spec/models/retag_req_spec.rb +0 -53
- data/spec/models/security_report_spec.rb +0 -41
- data/spec/models/vuln_namespace_timestamp_spec.rb +0 -47
- data/spec/models/vulnerability_item_spec.rb +0 -77
- data/spec/models/vulnerability_summary_spec.rb +0 -53
@@ -1,205 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Harbor API
|
3
|
-
|
4
|
-
#These APIs provide services for manipulating Harbor project.
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.10.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.7
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module SwaggerClient
|
16
|
-
# The health status of component
|
17
|
-
class ComponentHealthStatus
|
18
|
-
# The component name
|
19
|
-
attr_accessor :name
|
20
|
-
|
21
|
-
# The health status of component
|
22
|
-
attr_accessor :status
|
23
|
-
|
24
|
-
# (optional) The error message when the status is \"unhealthy\"
|
25
|
-
attr_accessor :error
|
26
|
-
|
27
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
-
def self.attribute_map
|
29
|
-
{
|
30
|
-
:'name' => :'name',
|
31
|
-
:'status' => :'status',
|
32
|
-
:'error' => :'error'
|
33
|
-
}
|
34
|
-
end
|
35
|
-
|
36
|
-
# Attribute type mapping.
|
37
|
-
def self.swagger_types
|
38
|
-
{
|
39
|
-
:'name' => :'String',
|
40
|
-
:'status' => :'String',
|
41
|
-
:'error' => :'String'
|
42
|
-
}
|
43
|
-
end
|
44
|
-
|
45
|
-
# Initializes the object
|
46
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
-
def initialize(attributes = {})
|
48
|
-
return unless attributes.is_a?(Hash)
|
49
|
-
|
50
|
-
# convert string to symbol for hash key
|
51
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
52
|
-
|
53
|
-
if attributes.has_key?(:'name')
|
54
|
-
self.name = attributes[:'name']
|
55
|
-
end
|
56
|
-
|
57
|
-
if attributes.has_key?(:'status')
|
58
|
-
self.status = attributes[:'status']
|
59
|
-
end
|
60
|
-
|
61
|
-
if attributes.has_key?(:'error')
|
62
|
-
self.error = attributes[:'error']
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
67
|
-
# @return Array for valid properties with the reasons
|
68
|
-
def list_invalid_properties
|
69
|
-
invalid_properties = Array.new
|
70
|
-
invalid_properties
|
71
|
-
end
|
72
|
-
|
73
|
-
# Check to see if the all the properties in the model are valid
|
74
|
-
# @return true if the model is valid
|
75
|
-
def valid?
|
76
|
-
true
|
77
|
-
end
|
78
|
-
|
79
|
-
# Checks equality by comparing each attribute.
|
80
|
-
# @param [Object] Object to be compared
|
81
|
-
def ==(o)
|
82
|
-
return true if self.equal?(o)
|
83
|
-
self.class == o.class &&
|
84
|
-
name == o.name &&
|
85
|
-
status == o.status &&
|
86
|
-
error == o.error
|
87
|
-
end
|
88
|
-
|
89
|
-
# @see the `==` method
|
90
|
-
# @param [Object] Object to be compared
|
91
|
-
def eql?(o)
|
92
|
-
self == o
|
93
|
-
end
|
94
|
-
|
95
|
-
# Calculates hash code according to all attributes.
|
96
|
-
# @return [Fixnum] Hash code
|
97
|
-
def hash
|
98
|
-
[name, status, error].hash
|
99
|
-
end
|
100
|
-
|
101
|
-
# Builds the object from hash
|
102
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
103
|
-
# @return [Object] Returns the model itself
|
104
|
-
def build_from_hash(attributes)
|
105
|
-
return nil unless attributes.is_a?(Hash)
|
106
|
-
self.class.swagger_types.each_pair do |key, type|
|
107
|
-
if type =~ /\AArray<(.*)>/i
|
108
|
-
# check to ensure the input is an array given that the the attribute
|
109
|
-
# is documented as an array but the input is not
|
110
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
111
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
112
|
-
end
|
113
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
114
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
115
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
116
|
-
end
|
117
|
-
|
118
|
-
self
|
119
|
-
end
|
120
|
-
|
121
|
-
# Deserializes the data based on type
|
122
|
-
# @param string type Data type
|
123
|
-
# @param string value Value to be deserialized
|
124
|
-
# @return [Object] Deserialized data
|
125
|
-
def _deserialize(type, value)
|
126
|
-
case type.to_sym
|
127
|
-
when :DateTime
|
128
|
-
DateTime.parse(value)
|
129
|
-
when :Date
|
130
|
-
Date.parse(value)
|
131
|
-
when :String
|
132
|
-
value.to_s
|
133
|
-
when :Integer
|
134
|
-
value.to_i
|
135
|
-
when :Float
|
136
|
-
value.to_f
|
137
|
-
when :BOOLEAN
|
138
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
139
|
-
true
|
140
|
-
else
|
141
|
-
false
|
142
|
-
end
|
143
|
-
when :Object
|
144
|
-
# generic object (usually a Hash), return directly
|
145
|
-
value
|
146
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
147
|
-
inner_type = Regexp.last_match[:inner_type]
|
148
|
-
value.map { |v| _deserialize(inner_type, v) }
|
149
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
150
|
-
k_type = Regexp.last_match[:k_type]
|
151
|
-
v_type = Regexp.last_match[:v_type]
|
152
|
-
{}.tap do |hash|
|
153
|
-
value.each do |k, v|
|
154
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
155
|
-
end
|
156
|
-
end
|
157
|
-
else # model
|
158
|
-
temp_model = SwaggerClient.const_get(type).new
|
159
|
-
temp_model.build_from_hash(value)
|
160
|
-
end
|
161
|
-
end
|
162
|
-
|
163
|
-
# Returns the string representation of the object
|
164
|
-
# @return [String] String presentation of the object
|
165
|
-
def to_s
|
166
|
-
to_hash.to_s
|
167
|
-
end
|
168
|
-
|
169
|
-
# to_body is an alias to to_hash (backward compatibility)
|
170
|
-
# @return [Hash] Returns the object in the form of hash
|
171
|
-
def to_body
|
172
|
-
to_hash
|
173
|
-
end
|
174
|
-
|
175
|
-
# Returns the object in the form of hash
|
176
|
-
# @return [Hash] Returns the object in the form of hash
|
177
|
-
def to_hash
|
178
|
-
hash = {}
|
179
|
-
self.class.attribute_map.each_pair do |attr, param|
|
180
|
-
value = self.send(attr)
|
181
|
-
next if value.nil?
|
182
|
-
hash[param] = _to_hash(value)
|
183
|
-
end
|
184
|
-
hash
|
185
|
-
end
|
186
|
-
|
187
|
-
# Outputs non-array value in the form of hash
|
188
|
-
# For object, use to_hash. Otherwise, just return the value
|
189
|
-
# @param [Object] value Any valid value
|
190
|
-
# @return [Hash] Returns the value in the form of hash
|
191
|
-
def _to_hash(value)
|
192
|
-
if value.is_a?(Array)
|
193
|
-
value.compact.map { |v| _to_hash(v) }
|
194
|
-
elsif value.is_a?(Hash)
|
195
|
-
{}.tap do |hash|
|
196
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
197
|
-
end
|
198
|
-
elsif value.respond_to? :to_hash
|
199
|
-
value.to_hash
|
200
|
-
else
|
201
|
-
value
|
202
|
-
end
|
203
|
-
end
|
204
|
-
end
|
205
|
-
end
|
@@ -1,194 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Harbor API
|
3
|
-
|
4
|
-
#These APIs provide services for manipulating Harbor project.
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.10.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.7
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module SwaggerClient
|
16
|
-
class ComponentOverviewEntry
|
17
|
-
# 1-None/Negligible, 2-Unknown, 3-Low, 4-Medium, 5-High
|
18
|
-
attr_accessor :severity
|
19
|
-
|
20
|
-
# number of the components with certain severity.
|
21
|
-
attr_accessor :count
|
22
|
-
|
23
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
-
def self.attribute_map
|
25
|
-
{
|
26
|
-
:'severity' => :'severity',
|
27
|
-
:'count' => :'count'
|
28
|
-
}
|
29
|
-
end
|
30
|
-
|
31
|
-
# Attribute type mapping.
|
32
|
-
def self.swagger_types
|
33
|
-
{
|
34
|
-
:'severity' => :'Integer',
|
35
|
-
:'count' => :'Integer'
|
36
|
-
}
|
37
|
-
end
|
38
|
-
|
39
|
-
# Initializes the object
|
40
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
41
|
-
def initialize(attributes = {})
|
42
|
-
return unless attributes.is_a?(Hash)
|
43
|
-
|
44
|
-
# convert string to symbol for hash key
|
45
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
46
|
-
|
47
|
-
if attributes.has_key?(:'severity')
|
48
|
-
self.severity = attributes[:'severity']
|
49
|
-
end
|
50
|
-
|
51
|
-
if attributes.has_key?(:'count')
|
52
|
-
self.count = attributes[:'count']
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
57
|
-
# @return Array for valid properties with the reasons
|
58
|
-
def list_invalid_properties
|
59
|
-
invalid_properties = Array.new
|
60
|
-
invalid_properties
|
61
|
-
end
|
62
|
-
|
63
|
-
# Check to see if the all the properties in the model are valid
|
64
|
-
# @return true if the model is valid
|
65
|
-
def valid?
|
66
|
-
true
|
67
|
-
end
|
68
|
-
|
69
|
-
# Checks equality by comparing each attribute.
|
70
|
-
# @param [Object] Object to be compared
|
71
|
-
def ==(o)
|
72
|
-
return true if self.equal?(o)
|
73
|
-
self.class == o.class &&
|
74
|
-
severity == o.severity &&
|
75
|
-
count == o.count
|
76
|
-
end
|
77
|
-
|
78
|
-
# @see the `==` method
|
79
|
-
# @param [Object] Object to be compared
|
80
|
-
def eql?(o)
|
81
|
-
self == o
|
82
|
-
end
|
83
|
-
|
84
|
-
# Calculates hash code according to all attributes.
|
85
|
-
# @return [Fixnum] Hash code
|
86
|
-
def hash
|
87
|
-
[severity, count].hash
|
88
|
-
end
|
89
|
-
|
90
|
-
# Builds the object from hash
|
91
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
92
|
-
# @return [Object] Returns the model itself
|
93
|
-
def build_from_hash(attributes)
|
94
|
-
return nil unless attributes.is_a?(Hash)
|
95
|
-
self.class.swagger_types.each_pair do |key, type|
|
96
|
-
if type =~ /\AArray<(.*)>/i
|
97
|
-
# check to ensure the input is an array given that the the attribute
|
98
|
-
# is documented as an array but the input is not
|
99
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
100
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
101
|
-
end
|
102
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
103
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
104
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
105
|
-
end
|
106
|
-
|
107
|
-
self
|
108
|
-
end
|
109
|
-
|
110
|
-
# Deserializes the data based on type
|
111
|
-
# @param string type Data type
|
112
|
-
# @param string value Value to be deserialized
|
113
|
-
# @return [Object] Deserialized data
|
114
|
-
def _deserialize(type, value)
|
115
|
-
case type.to_sym
|
116
|
-
when :DateTime
|
117
|
-
DateTime.parse(value)
|
118
|
-
when :Date
|
119
|
-
Date.parse(value)
|
120
|
-
when :String
|
121
|
-
value.to_s
|
122
|
-
when :Integer
|
123
|
-
value.to_i
|
124
|
-
when :Float
|
125
|
-
value.to_f
|
126
|
-
when :BOOLEAN
|
127
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
128
|
-
true
|
129
|
-
else
|
130
|
-
false
|
131
|
-
end
|
132
|
-
when :Object
|
133
|
-
# generic object (usually a Hash), return directly
|
134
|
-
value
|
135
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
136
|
-
inner_type = Regexp.last_match[:inner_type]
|
137
|
-
value.map { |v| _deserialize(inner_type, v) }
|
138
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
139
|
-
k_type = Regexp.last_match[:k_type]
|
140
|
-
v_type = Regexp.last_match[:v_type]
|
141
|
-
{}.tap do |hash|
|
142
|
-
value.each do |k, v|
|
143
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
144
|
-
end
|
145
|
-
end
|
146
|
-
else # model
|
147
|
-
temp_model = SwaggerClient.const_get(type).new
|
148
|
-
temp_model.build_from_hash(value)
|
149
|
-
end
|
150
|
-
end
|
151
|
-
|
152
|
-
# Returns the string representation of the object
|
153
|
-
# @return [String] String presentation of the object
|
154
|
-
def to_s
|
155
|
-
to_hash.to_s
|
156
|
-
end
|
157
|
-
|
158
|
-
# to_body is an alias to to_hash (backward compatibility)
|
159
|
-
# @return [Hash] Returns the object in the form of hash
|
160
|
-
def to_body
|
161
|
-
to_hash
|
162
|
-
end
|
163
|
-
|
164
|
-
# Returns the object in the form of hash
|
165
|
-
# @return [Hash] Returns the object in the form of hash
|
166
|
-
def to_hash
|
167
|
-
hash = {}
|
168
|
-
self.class.attribute_map.each_pair do |attr, param|
|
169
|
-
value = self.send(attr)
|
170
|
-
next if value.nil?
|
171
|
-
hash[param] = _to_hash(value)
|
172
|
-
end
|
173
|
-
hash
|
174
|
-
end
|
175
|
-
|
176
|
-
# Outputs non-array value in the form of hash
|
177
|
-
# For object, use to_hash. Otherwise, just return the value
|
178
|
-
# @param [Object] value Any valid value
|
179
|
-
# @return [Hash] Returns the value in the form of hash
|
180
|
-
def _to_hash(value)
|
181
|
-
if value.is_a?(Array)
|
182
|
-
value.compact.map { |v| _to_hash(v) }
|
183
|
-
elsif value.is_a?(Hash)
|
184
|
-
{}.tap do |hash|
|
185
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
186
|
-
end
|
187
|
-
elsif value.respond_to? :to_hash
|
188
|
-
value.to_hash
|
189
|
-
else
|
190
|
-
value
|
191
|
-
end
|
192
|
-
end
|
193
|
-
end
|
194
|
-
end
|
@@ -1,523 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Harbor API
|
3
|
-
|
4
|
-
#These APIs provide services for manipulating Harbor project.
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.10.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.7
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module SwaggerClient
|
16
|
-
class Configurations
|
17
|
-
# The auth mode of current system, such as \"db_auth\", \"ldap_auth\"
|
18
|
-
attr_accessor :auth_mode
|
19
|
-
|
20
|
-
# The default count quota for the new created projects.
|
21
|
-
attr_accessor :count_per_project
|
22
|
-
|
23
|
-
# The sender name for Email notification.
|
24
|
-
attr_accessor :email_from
|
25
|
-
|
26
|
-
# The hostname of SMTP server that sends Email notification.
|
27
|
-
attr_accessor :email_host
|
28
|
-
|
29
|
-
# The port of SMTP server.
|
30
|
-
attr_accessor :email_port
|
31
|
-
|
32
|
-
# By default it's empty so the email_username is picked.
|
33
|
-
attr_accessor :email_identity
|
34
|
-
|
35
|
-
# The username for authenticate against SMTP server.
|
36
|
-
attr_accessor :email_username
|
37
|
-
|
38
|
-
# When it's set to true the system will access Email server via TLS by default. If it's set to false, it still will handle \"STARTTLS\" from server side.
|
39
|
-
attr_accessor :email_ssl
|
40
|
-
|
41
|
-
# Whether or not the certificate will be verified when Harbor tries to access the email server.
|
42
|
-
attr_accessor :email_insecure
|
43
|
-
|
44
|
-
# The URL of LDAP server.
|
45
|
-
attr_accessor :ldap_url
|
46
|
-
|
47
|
-
# The Base DN for LDAP binding.
|
48
|
-
attr_accessor :ldap_base_dn
|
49
|
-
|
50
|
-
# The filter for LDAP binding.
|
51
|
-
attr_accessor :ldap_filter
|
52
|
-
|
53
|
-
# 0-LDAP_SCOPE_BASE, 1-LDAP_SCOPE_ONELEVEL, 2-LDAP_SCOPE_SUBTREE
|
54
|
-
attr_accessor :ldap_scope
|
55
|
-
|
56
|
-
# The attribute which is used as identity for the LDAP binding, such as \"CN\" or \"SAMAccountname\"
|
57
|
-
attr_accessor :ldap_uid
|
58
|
-
|
59
|
-
# The DN of the user to do the search.
|
60
|
-
attr_accessor :ldap_search_dn
|
61
|
-
|
62
|
-
# timeout in seconds for connection to LDAP server.
|
63
|
-
attr_accessor :ldap_timeout
|
64
|
-
|
65
|
-
# The attribute which is used as identity of the LDAP group, default is cn.
|
66
|
-
attr_accessor :ldap_group_attribute_name
|
67
|
-
|
68
|
-
# The base DN to search LDAP group.
|
69
|
-
attr_accessor :ldap_group_base_dn
|
70
|
-
|
71
|
-
# The filter to search the ldap group.
|
72
|
-
attr_accessor :ldap_group_search_filter
|
73
|
-
|
74
|
-
# The scope to search ldap. '0-LDAP_SCOPE_BASE, 1-LDAP_SCOPE_ONELEVEL, 2-LDAP_SCOPE_SUBTREE'
|
75
|
-
attr_accessor :ldap_group_search_scope
|
76
|
-
|
77
|
-
# Specify the ldap group which have the same privilege with Harbor admin.
|
78
|
-
attr_accessor :ldap_group_admin_dn
|
79
|
-
|
80
|
-
# The client id of the OIDC.
|
81
|
-
attr_accessor :oidc_client_id
|
82
|
-
|
83
|
-
# The client secret of the OIDC.
|
84
|
-
attr_accessor :oidc_client_secret
|
85
|
-
|
86
|
-
# The URL of an OIDC-complaint server, must start with 'https://'.
|
87
|
-
attr_accessor :oidc_endpoint
|
88
|
-
|
89
|
-
# The name of the OIDC provider.
|
90
|
-
attr_accessor :oidc_name
|
91
|
-
|
92
|
-
# The scope sent to OIDC server during authentication, should be separated by comma. It has to contain “openid”, and “offline_access”. If you are using google, please remove “offline_access” from this field.
|
93
|
-
attr_accessor :oidc_scope
|
94
|
-
|
95
|
-
# Whether verify your OIDC server certificate, disable it if your OIDC server is hosted via self-hosted certificate.
|
96
|
-
attr_accessor :oidc_verify_cert
|
97
|
-
|
98
|
-
# This attribute restricts what users have the permission to create project. It can be \"everyone\" or \"adminonly\".
|
99
|
-
attr_accessor :project_creation_restriction
|
100
|
-
|
101
|
-
# This attribute indicates whether quota per project enabled in harbor
|
102
|
-
attr_accessor :quota_per_project_enable
|
103
|
-
|
104
|
-
# 'docker push' is prohibited by Harbor if you set it to true.
|
105
|
-
attr_accessor :read_only
|
106
|
-
|
107
|
-
# Whether the Harbor instance supports self-registration. If it's set to false, admin need to add user to the instance.
|
108
|
-
attr_accessor :self_registration
|
109
|
-
|
110
|
-
# The default storage quota for the new created projects.
|
111
|
-
attr_accessor :storage_per_project
|
112
|
-
|
113
|
-
# The expiration time of the token for internal Registry, in minutes.
|
114
|
-
attr_accessor :token_expiration
|
115
|
-
|
116
|
-
# Whether or not the certificate will be verified when Harbor tries to access a remote Harbor instance for replication.
|
117
|
-
attr_accessor :verify_remote_cert
|
118
|
-
|
119
|
-
attr_accessor :scan_all_policy
|
120
|
-
|
121
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
122
|
-
def self.attribute_map
|
123
|
-
{
|
124
|
-
:'auth_mode' => :'auth_mode',
|
125
|
-
:'count_per_project' => :'count_per_project',
|
126
|
-
:'email_from' => :'email_from',
|
127
|
-
:'email_host' => :'email_host',
|
128
|
-
:'email_port' => :'email_port',
|
129
|
-
:'email_identity' => :'email_identity',
|
130
|
-
:'email_username' => :'email_username',
|
131
|
-
:'email_ssl' => :'email_ssl',
|
132
|
-
:'email_insecure' => :'email_insecure',
|
133
|
-
:'ldap_url' => :'ldap_url',
|
134
|
-
:'ldap_base_dn' => :'ldap_base_dn',
|
135
|
-
:'ldap_filter' => :'ldap_filter',
|
136
|
-
:'ldap_scope' => :'ldap_scope',
|
137
|
-
:'ldap_uid' => :'ldap_uid',
|
138
|
-
:'ldap_search_dn' => :'ldap_search_dn',
|
139
|
-
:'ldap_timeout' => :'ldap_timeout',
|
140
|
-
:'ldap_group_attribute_name' => :'ldap_group_attribute_name',
|
141
|
-
:'ldap_group_base_dn' => :'ldap_group_base_dn',
|
142
|
-
:'ldap_group_search_filter' => :'ldap_group_search_filter',
|
143
|
-
:'ldap_group_search_scope' => :'ldap_group_search_scope',
|
144
|
-
:'ldap_group_admin_dn' => :'ldap_group_admin_dn',
|
145
|
-
:'oidc_client_id' => :'oidc_client_id',
|
146
|
-
:'oidc_client_secret' => :'oidc_client_secret',
|
147
|
-
:'oidc_endpoint' => :'oidc_endpoint',
|
148
|
-
:'oidc_name' => :'oidc_name',
|
149
|
-
:'oidc_scope' => :'oidc_scope',
|
150
|
-
:'oidc_verify_cert' => :'oidc_verify_cert',
|
151
|
-
:'project_creation_restriction' => :'project_creation_restriction',
|
152
|
-
:'quota_per_project_enable' => :'quota_per_project_enable',
|
153
|
-
:'read_only' => :'read_only',
|
154
|
-
:'self_registration' => :'self_registration',
|
155
|
-
:'storage_per_project' => :'storage_per_project',
|
156
|
-
:'token_expiration' => :'token_expiration',
|
157
|
-
:'verify_remote_cert' => :'verify_remote_cert',
|
158
|
-
:'scan_all_policy' => :'scan_all_policy'
|
159
|
-
}
|
160
|
-
end
|
161
|
-
|
162
|
-
# Attribute type mapping.
|
163
|
-
def self.swagger_types
|
164
|
-
{
|
165
|
-
:'auth_mode' => :'String',
|
166
|
-
:'count_per_project' => :'String',
|
167
|
-
:'email_from' => :'String',
|
168
|
-
:'email_host' => :'String',
|
169
|
-
:'email_port' => :'Integer',
|
170
|
-
:'email_identity' => :'String',
|
171
|
-
:'email_username' => :'String',
|
172
|
-
:'email_ssl' => :'BOOLEAN',
|
173
|
-
:'email_insecure' => :'BOOLEAN',
|
174
|
-
:'ldap_url' => :'String',
|
175
|
-
:'ldap_base_dn' => :'String',
|
176
|
-
:'ldap_filter' => :'String',
|
177
|
-
:'ldap_scope' => :'Integer',
|
178
|
-
:'ldap_uid' => :'String',
|
179
|
-
:'ldap_search_dn' => :'String',
|
180
|
-
:'ldap_timeout' => :'Integer',
|
181
|
-
:'ldap_group_attribute_name' => :'String',
|
182
|
-
:'ldap_group_base_dn' => :'String',
|
183
|
-
:'ldap_group_search_filter' => :'String',
|
184
|
-
:'ldap_group_search_scope' => :'Integer',
|
185
|
-
:'ldap_group_admin_dn' => :'String',
|
186
|
-
:'oidc_client_id' => :'String',
|
187
|
-
:'oidc_client_secret' => :'String',
|
188
|
-
:'oidc_endpoint' => :'String',
|
189
|
-
:'oidc_name' => :'String',
|
190
|
-
:'oidc_scope' => :'String',
|
191
|
-
:'oidc_verify_cert' => :'BOOLEAN',
|
192
|
-
:'project_creation_restriction' => :'String',
|
193
|
-
:'quota_per_project_enable' => :'BOOLEAN',
|
194
|
-
:'read_only' => :'BOOLEAN',
|
195
|
-
:'self_registration' => :'BOOLEAN',
|
196
|
-
:'storage_per_project' => :'String',
|
197
|
-
:'token_expiration' => :'Integer',
|
198
|
-
:'verify_remote_cert' => :'BOOLEAN',
|
199
|
-
:'scan_all_policy' => :'ConfigurationsScanAllPolicy'
|
200
|
-
}
|
201
|
-
end
|
202
|
-
|
203
|
-
# Initializes the object
|
204
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
205
|
-
def initialize(attributes = {})
|
206
|
-
return unless attributes.is_a?(Hash)
|
207
|
-
|
208
|
-
# convert string to symbol for hash key
|
209
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
210
|
-
|
211
|
-
if attributes.has_key?(:'auth_mode')
|
212
|
-
self.auth_mode = attributes[:'auth_mode']
|
213
|
-
end
|
214
|
-
|
215
|
-
if attributes.has_key?(:'count_per_project')
|
216
|
-
self.count_per_project = attributes[:'count_per_project']
|
217
|
-
end
|
218
|
-
|
219
|
-
if attributes.has_key?(:'email_from')
|
220
|
-
self.email_from = attributes[:'email_from']
|
221
|
-
end
|
222
|
-
|
223
|
-
if attributes.has_key?(:'email_host')
|
224
|
-
self.email_host = attributes[:'email_host']
|
225
|
-
end
|
226
|
-
|
227
|
-
if attributes.has_key?(:'email_port')
|
228
|
-
self.email_port = attributes[:'email_port']
|
229
|
-
end
|
230
|
-
|
231
|
-
if attributes.has_key?(:'email_identity')
|
232
|
-
self.email_identity = attributes[:'email_identity']
|
233
|
-
end
|
234
|
-
|
235
|
-
if attributes.has_key?(:'email_username')
|
236
|
-
self.email_username = attributes[:'email_username']
|
237
|
-
end
|
238
|
-
|
239
|
-
if attributes.has_key?(:'email_ssl')
|
240
|
-
self.email_ssl = attributes[:'email_ssl']
|
241
|
-
end
|
242
|
-
|
243
|
-
if attributes.has_key?(:'email_insecure')
|
244
|
-
self.email_insecure = attributes[:'email_insecure']
|
245
|
-
end
|
246
|
-
|
247
|
-
if attributes.has_key?(:'ldap_url')
|
248
|
-
self.ldap_url = attributes[:'ldap_url']
|
249
|
-
end
|
250
|
-
|
251
|
-
if attributes.has_key?(:'ldap_base_dn')
|
252
|
-
self.ldap_base_dn = attributes[:'ldap_base_dn']
|
253
|
-
end
|
254
|
-
|
255
|
-
if attributes.has_key?(:'ldap_filter')
|
256
|
-
self.ldap_filter = attributes[:'ldap_filter']
|
257
|
-
end
|
258
|
-
|
259
|
-
if attributes.has_key?(:'ldap_scope')
|
260
|
-
self.ldap_scope = attributes[:'ldap_scope']
|
261
|
-
end
|
262
|
-
|
263
|
-
if attributes.has_key?(:'ldap_uid')
|
264
|
-
self.ldap_uid = attributes[:'ldap_uid']
|
265
|
-
end
|
266
|
-
|
267
|
-
if attributes.has_key?(:'ldap_search_dn')
|
268
|
-
self.ldap_search_dn = attributes[:'ldap_search_dn']
|
269
|
-
end
|
270
|
-
|
271
|
-
if attributes.has_key?(:'ldap_timeout')
|
272
|
-
self.ldap_timeout = attributes[:'ldap_timeout']
|
273
|
-
end
|
274
|
-
|
275
|
-
if attributes.has_key?(:'ldap_group_attribute_name')
|
276
|
-
self.ldap_group_attribute_name = attributes[:'ldap_group_attribute_name']
|
277
|
-
end
|
278
|
-
|
279
|
-
if attributes.has_key?(:'ldap_group_base_dn')
|
280
|
-
self.ldap_group_base_dn = attributes[:'ldap_group_base_dn']
|
281
|
-
end
|
282
|
-
|
283
|
-
if attributes.has_key?(:'ldap_group_search_filter')
|
284
|
-
self.ldap_group_search_filter = attributes[:'ldap_group_search_filter']
|
285
|
-
end
|
286
|
-
|
287
|
-
if attributes.has_key?(:'ldap_group_search_scope')
|
288
|
-
self.ldap_group_search_scope = attributes[:'ldap_group_search_scope']
|
289
|
-
end
|
290
|
-
|
291
|
-
if attributes.has_key?(:'ldap_group_admin_dn')
|
292
|
-
self.ldap_group_admin_dn = attributes[:'ldap_group_admin_dn']
|
293
|
-
end
|
294
|
-
|
295
|
-
if attributes.has_key?(:'oidc_client_id')
|
296
|
-
self.oidc_client_id = attributes[:'oidc_client_id']
|
297
|
-
end
|
298
|
-
|
299
|
-
if attributes.has_key?(:'oidc_client_secret')
|
300
|
-
self.oidc_client_secret = attributes[:'oidc_client_secret']
|
301
|
-
end
|
302
|
-
|
303
|
-
if attributes.has_key?(:'oidc_endpoint')
|
304
|
-
self.oidc_endpoint = attributes[:'oidc_endpoint']
|
305
|
-
end
|
306
|
-
|
307
|
-
if attributes.has_key?(:'oidc_name')
|
308
|
-
self.oidc_name = attributes[:'oidc_name']
|
309
|
-
end
|
310
|
-
|
311
|
-
if attributes.has_key?(:'oidc_scope')
|
312
|
-
self.oidc_scope = attributes[:'oidc_scope']
|
313
|
-
end
|
314
|
-
|
315
|
-
if attributes.has_key?(:'oidc_verify_cert')
|
316
|
-
self.oidc_verify_cert = attributes[:'oidc_verify_cert']
|
317
|
-
end
|
318
|
-
|
319
|
-
if attributes.has_key?(:'project_creation_restriction')
|
320
|
-
self.project_creation_restriction = attributes[:'project_creation_restriction']
|
321
|
-
end
|
322
|
-
|
323
|
-
if attributes.has_key?(:'quota_per_project_enable')
|
324
|
-
self.quota_per_project_enable = attributes[:'quota_per_project_enable']
|
325
|
-
end
|
326
|
-
|
327
|
-
if attributes.has_key?(:'read_only')
|
328
|
-
self.read_only = attributes[:'read_only']
|
329
|
-
end
|
330
|
-
|
331
|
-
if attributes.has_key?(:'self_registration')
|
332
|
-
self.self_registration = attributes[:'self_registration']
|
333
|
-
end
|
334
|
-
|
335
|
-
if attributes.has_key?(:'storage_per_project')
|
336
|
-
self.storage_per_project = attributes[:'storage_per_project']
|
337
|
-
end
|
338
|
-
|
339
|
-
if attributes.has_key?(:'token_expiration')
|
340
|
-
self.token_expiration = attributes[:'token_expiration']
|
341
|
-
end
|
342
|
-
|
343
|
-
if attributes.has_key?(:'verify_remote_cert')
|
344
|
-
self.verify_remote_cert = attributes[:'verify_remote_cert']
|
345
|
-
end
|
346
|
-
|
347
|
-
if attributes.has_key?(:'scan_all_policy')
|
348
|
-
self.scan_all_policy = attributes[:'scan_all_policy']
|
349
|
-
end
|
350
|
-
end
|
351
|
-
|
352
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
353
|
-
# @return Array for valid properties with the reasons
|
354
|
-
def list_invalid_properties
|
355
|
-
invalid_properties = Array.new
|
356
|
-
invalid_properties
|
357
|
-
end
|
358
|
-
|
359
|
-
# Check to see if the all the properties in the model are valid
|
360
|
-
# @return true if the model is valid
|
361
|
-
def valid?
|
362
|
-
true
|
363
|
-
end
|
364
|
-
|
365
|
-
# Checks equality by comparing each attribute.
|
366
|
-
# @param [Object] Object to be compared
|
367
|
-
def ==(o)
|
368
|
-
return true if self.equal?(o)
|
369
|
-
self.class == o.class &&
|
370
|
-
auth_mode == o.auth_mode &&
|
371
|
-
count_per_project == o.count_per_project &&
|
372
|
-
email_from == o.email_from &&
|
373
|
-
email_host == o.email_host &&
|
374
|
-
email_port == o.email_port &&
|
375
|
-
email_identity == o.email_identity &&
|
376
|
-
email_username == o.email_username &&
|
377
|
-
email_ssl == o.email_ssl &&
|
378
|
-
email_insecure == o.email_insecure &&
|
379
|
-
ldap_url == o.ldap_url &&
|
380
|
-
ldap_base_dn == o.ldap_base_dn &&
|
381
|
-
ldap_filter == o.ldap_filter &&
|
382
|
-
ldap_scope == o.ldap_scope &&
|
383
|
-
ldap_uid == o.ldap_uid &&
|
384
|
-
ldap_search_dn == o.ldap_search_dn &&
|
385
|
-
ldap_timeout == o.ldap_timeout &&
|
386
|
-
ldap_group_attribute_name == o.ldap_group_attribute_name &&
|
387
|
-
ldap_group_base_dn == o.ldap_group_base_dn &&
|
388
|
-
ldap_group_search_filter == o.ldap_group_search_filter &&
|
389
|
-
ldap_group_search_scope == o.ldap_group_search_scope &&
|
390
|
-
ldap_group_admin_dn == o.ldap_group_admin_dn &&
|
391
|
-
oidc_client_id == o.oidc_client_id &&
|
392
|
-
oidc_client_secret == o.oidc_client_secret &&
|
393
|
-
oidc_endpoint == o.oidc_endpoint &&
|
394
|
-
oidc_name == o.oidc_name &&
|
395
|
-
oidc_scope == o.oidc_scope &&
|
396
|
-
oidc_verify_cert == o.oidc_verify_cert &&
|
397
|
-
project_creation_restriction == o.project_creation_restriction &&
|
398
|
-
quota_per_project_enable == o.quota_per_project_enable &&
|
399
|
-
read_only == o.read_only &&
|
400
|
-
self_registration == o.self_registration &&
|
401
|
-
storage_per_project == o.storage_per_project &&
|
402
|
-
token_expiration == o.token_expiration &&
|
403
|
-
verify_remote_cert == o.verify_remote_cert &&
|
404
|
-
scan_all_policy == o.scan_all_policy
|
405
|
-
end
|
406
|
-
|
407
|
-
# @see the `==` method
|
408
|
-
# @param [Object] Object to be compared
|
409
|
-
def eql?(o)
|
410
|
-
self == o
|
411
|
-
end
|
412
|
-
|
413
|
-
# Calculates hash code according to all attributes.
|
414
|
-
# @return [Fixnum] Hash code
|
415
|
-
def hash
|
416
|
-
[auth_mode, count_per_project, email_from, email_host, email_port, email_identity, email_username, email_ssl, email_insecure, ldap_url, ldap_base_dn, ldap_filter, ldap_scope, ldap_uid, ldap_search_dn, ldap_timeout, ldap_group_attribute_name, ldap_group_base_dn, ldap_group_search_filter, ldap_group_search_scope, ldap_group_admin_dn, oidc_client_id, oidc_client_secret, oidc_endpoint, oidc_name, oidc_scope, oidc_verify_cert, project_creation_restriction, quota_per_project_enable, read_only, self_registration, storage_per_project, token_expiration, verify_remote_cert, scan_all_policy].hash
|
417
|
-
end
|
418
|
-
|
419
|
-
# Builds the object from hash
|
420
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
421
|
-
# @return [Object] Returns the model itself
|
422
|
-
def build_from_hash(attributes)
|
423
|
-
return nil unless attributes.is_a?(Hash)
|
424
|
-
self.class.swagger_types.each_pair do |key, type|
|
425
|
-
if type =~ /\AArray<(.*)>/i
|
426
|
-
# check to ensure the input is an array given that the the attribute
|
427
|
-
# is documented as an array but the input is not
|
428
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
429
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
430
|
-
end
|
431
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
432
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
433
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
434
|
-
end
|
435
|
-
|
436
|
-
self
|
437
|
-
end
|
438
|
-
|
439
|
-
# Deserializes the data based on type
|
440
|
-
# @param string type Data type
|
441
|
-
# @param string value Value to be deserialized
|
442
|
-
# @return [Object] Deserialized data
|
443
|
-
def _deserialize(type, value)
|
444
|
-
case type.to_sym
|
445
|
-
when :DateTime
|
446
|
-
DateTime.parse(value)
|
447
|
-
when :Date
|
448
|
-
Date.parse(value)
|
449
|
-
when :String
|
450
|
-
value.to_s
|
451
|
-
when :Integer
|
452
|
-
value.to_i
|
453
|
-
when :Float
|
454
|
-
value.to_f
|
455
|
-
when :BOOLEAN
|
456
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
457
|
-
true
|
458
|
-
else
|
459
|
-
false
|
460
|
-
end
|
461
|
-
when :Object
|
462
|
-
# generic object (usually a Hash), return directly
|
463
|
-
value
|
464
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
465
|
-
inner_type = Regexp.last_match[:inner_type]
|
466
|
-
value.map { |v| _deserialize(inner_type, v) }
|
467
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
468
|
-
k_type = Regexp.last_match[:k_type]
|
469
|
-
v_type = Regexp.last_match[:v_type]
|
470
|
-
{}.tap do |hash|
|
471
|
-
value.each do |k, v|
|
472
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
473
|
-
end
|
474
|
-
end
|
475
|
-
else # model
|
476
|
-
temp_model = SwaggerClient.const_get(type).new
|
477
|
-
temp_model.build_from_hash(value)
|
478
|
-
end
|
479
|
-
end
|
480
|
-
|
481
|
-
# Returns the string representation of the object
|
482
|
-
# @return [String] String presentation of the object
|
483
|
-
def to_s
|
484
|
-
to_hash.to_s
|
485
|
-
end
|
486
|
-
|
487
|
-
# to_body is an alias to to_hash (backward compatibility)
|
488
|
-
# @return [Hash] Returns the object in the form of hash
|
489
|
-
def to_body
|
490
|
-
to_hash
|
491
|
-
end
|
492
|
-
|
493
|
-
# Returns the object in the form of hash
|
494
|
-
# @return [Hash] Returns the object in the form of hash
|
495
|
-
def to_hash
|
496
|
-
hash = {}
|
497
|
-
self.class.attribute_map.each_pair do |attr, param|
|
498
|
-
value = self.send(attr)
|
499
|
-
next if value.nil?
|
500
|
-
hash[param] = _to_hash(value)
|
501
|
-
end
|
502
|
-
hash
|
503
|
-
end
|
504
|
-
|
505
|
-
# Outputs non-array value in the form of hash
|
506
|
-
# For object, use to_hash. Otherwise, just return the value
|
507
|
-
# @param [Object] value Any valid value
|
508
|
-
# @return [Hash] Returns the value in the form of hash
|
509
|
-
def _to_hash(value)
|
510
|
-
if value.is_a?(Array)
|
511
|
-
value.compact.map { |v| _to_hash(v) }
|
512
|
-
elsif value.is_a?(Hash)
|
513
|
-
{}.tap do |hash|
|
514
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
515
|
-
end
|
516
|
-
elsif value.respond_to? :to_hash
|
517
|
-
value.to_hash
|
518
|
-
else
|
519
|
-
value
|
520
|
-
end
|
521
|
-
end
|
522
|
-
end
|
523
|
-
end
|