pulpcore_client 3.13.0 → 3.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +17 -13
- data/docs/{ExportersCoreExportsApi.md → ExportersPulpExportsApi.md} +13 -13
- data/docs/{ImportersCoreImportCheckApi.md → ImportersPulpImportCheckApi.md} +4 -4
- data/docs/{ImportersCoreImportsApi.md → ImportersPulpImportsApi.md} +13 -13
- data/docs/MinimalTaskResponse.md +29 -0
- data/docs/OrphansApi.md +1 -1
- data/docs/OrphansCleanup.md +17 -0
- data/docs/OrphansCleanupApi.md +61 -0
- data/docs/ProgressReportResponse.md +1 -1
- data/docs/PulpExportResponse.md +1 -1
- data/docs/Repair.md +17 -0
- data/docs/RepairApi.md +8 -4
- data/docs/TaskGroupResponse.md +5 -1
- data/docs/TaskResponse.md +2 -2
- data/docs/TasksApi.md +6 -2
- data/docs/WorkerResponse.md +3 -3
- data/lib/pulpcore_client/api/access_policies_api.rb +1 -1
- data/lib/pulpcore_client/api/artifacts_api.rb +1 -1
- data/lib/pulpcore_client/api/content_api.rb +1 -1
- data/lib/pulpcore_client/api/contentguards_api.rb +1 -1
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +1 -1
- data/lib/pulpcore_client/api/{exporters_core_exports_api.rb → exporters_pulp_exports_api.rb} +15 -15
- data/lib/pulpcore_client/api/groups_api.rb +1 -1
- data/lib/pulpcore_client/api/groups_model_permissions_api.rb +1 -1
- data/lib/pulpcore_client/api/groups_object_permissions_api.rb +1 -1
- data/lib/pulpcore_client/api/groups_users_api.rb +1 -1
- data/lib/pulpcore_client/api/importers_pulp_api.rb +1 -1
- data/lib/pulpcore_client/api/{importers_core_import_check_api.rb → importers_pulp_import_check_api.rb} +5 -5
- data/lib/pulpcore_client/api/{importers_core_imports_api.rb → importers_pulp_imports_api.rb} +15 -15
- data/lib/pulpcore_client/api/orphans_api.rb +3 -3
- data/lib/pulpcore_client/api/orphans_cleanup_api.rb +84 -0
- data/lib/pulpcore_client/api/publications_api.rb +1 -1
- data/lib/pulpcore_client/api/repair_api.rb +13 -5
- data/lib/pulpcore_client/api/repositories_api.rb +1 -1
- data/lib/pulpcore_client/api/repository_versions_api.rb +1 -1
- data/lib/pulpcore_client/api/signing_services_api.rb +1 -1
- data/lib/pulpcore_client/api/status_api.rb +1 -1
- data/lib/pulpcore_client/api/task_groups_api.rb +1 -1
- data/lib/pulpcore_client/api/tasks_api.rb +11 -5
- data/lib/pulpcore_client/api/uploads_api.rb +1 -1
- data/lib/pulpcore_client/api/users_api.rb +1 -1
- data/lib/pulpcore_client/api/workers_api.rb +1 -1
- data/lib/pulpcore_client/api_client.rb +12 -8
- data/lib/pulpcore_client/api_error.rb +1 -1
- data/lib/pulpcore_client/configuration.rb +8 -1
- data/lib/pulpcore_client/models/access_policy.rb +1 -1
- data/lib/pulpcore_client/models/access_policy_response.rb +1 -1
- data/lib/pulpcore_client/models/artifact.rb +1 -1
- data/lib/pulpcore_client/models/artifact_response.rb +1 -1
- data/lib/pulpcore_client/models/async_operation_response.rb +1 -1
- data/lib/pulpcore_client/models/content_app_status_response.rb +1 -1
- data/lib/pulpcore_client/models/content_guard_response.rb +1 -1
- data/lib/pulpcore_client/models/content_summary_response.rb +1 -1
- data/lib/pulpcore_client/models/database_connection_response.rb +1 -1
- data/lib/pulpcore_client/models/evaluation_response.rb +1 -1
- data/lib/pulpcore_client/models/group.rb +1 -1
- data/lib/pulpcore_client/models/group_progress_report_response.rb +1 -1
- data/lib/pulpcore_client/models/group_response.rb +1 -1
- data/lib/pulpcore_client/models/group_user.rb +1 -1
- data/lib/pulpcore_client/models/group_user_response.rb +1 -1
- data/lib/pulpcore_client/models/import_response.rb +1 -1
- data/lib/pulpcore_client/models/minimal_task_response.rb +272 -0
- data/lib/pulpcore_client/models/multiple_artifact_content_response.rb +1 -1
- data/lib/pulpcore_client/models/orphans_cleanup.rb +209 -0
- data/lib/pulpcore_client/models/paginated_access_policy_response_list.rb +1 -1
- data/lib/pulpcore_client/models/paginated_artifact_response_list.rb +1 -1
- data/lib/pulpcore_client/models/paginated_content_guard_response_list.rb +1 -1
- data/lib/pulpcore_client/models/paginated_group_response_list.rb +1 -1
- data/lib/pulpcore_client/models/paginated_group_user_response_list.rb +1 -1
- data/lib/pulpcore_client/models/paginated_import_response_list.rb +1 -1
- data/lib/pulpcore_client/models/paginated_multiple_artifact_content_response_list.rb +1 -1
- data/lib/pulpcore_client/models/paginated_permission_response_list.rb +1 -1
- data/lib/pulpcore_client/models/paginated_publication_response_list.rb +1 -1
- data/lib/pulpcore_client/models/paginated_pulp_export_response_list.rb +1 -1
- data/lib/pulpcore_client/models/paginated_pulp_exporter_response_list.rb +1 -1
- data/lib/pulpcore_client/models/paginated_pulp_importer_response_list.rb +1 -1
- data/lib/pulpcore_client/models/paginated_repository_response_list.rb +1 -1
- data/lib/pulpcore_client/models/paginated_repository_version_response_list.rb +1 -1
- data/lib/pulpcore_client/models/paginated_signing_service_response_list.rb +1 -1
- data/lib/pulpcore_client/models/paginated_task_group_response_list.rb +1 -1
- data/lib/pulpcore_client/models/paginated_task_response_list.rb +1 -1
- data/lib/pulpcore_client/models/paginated_upload_response_list.rb +1 -1
- data/lib/pulpcore_client/models/paginated_user_response_list.rb +1 -1
- data/lib/pulpcore_client/models/paginated_worker_response_list.rb +1 -1
- data/lib/pulpcore_client/models/patched_access_policy.rb +1 -1
- data/lib/pulpcore_client/models/patched_group.rb +1 -1
- data/lib/pulpcore_client/models/patched_pulp_exporter.rb +1 -1
- data/lib/pulpcore_client/models/patched_pulp_importer.rb +1 -1
- data/lib/pulpcore_client/models/patched_task_cancel.rb +1 -1
- data/lib/pulpcore_client/models/permission_response.rb +1 -1
- data/lib/pulpcore_client/models/progress_report_response.rb +2 -2
- data/lib/pulpcore_client/models/publication_response.rb +1 -1
- data/lib/pulpcore_client/models/pulp_export.rb +1 -1
- data/lib/pulpcore_client/models/pulp_export_response.rb +2 -2
- data/lib/pulpcore_client/models/pulp_exporter.rb +1 -1
- data/lib/pulpcore_client/models/pulp_exporter_response.rb +1 -1
- data/lib/pulpcore_client/models/pulp_import.rb +1 -1
- data/lib/pulpcore_client/models/pulp_import_check.rb +1 -1
- data/lib/pulpcore_client/models/pulp_import_check_response.rb +1 -1
- data/lib/pulpcore_client/models/pulp_importer.rb +1 -1
- data/lib/pulpcore_client/models/pulp_importer_response.rb +1 -1
- data/lib/pulpcore_client/models/redis_connection_response.rb +1 -1
- data/lib/pulpcore_client/models/repair.rb +209 -0
- data/lib/pulpcore_client/models/repository_response.rb +1 -1
- data/lib/pulpcore_client/models/repository_version_response.rb +1 -1
- data/lib/pulpcore_client/models/signing_service_response.rb +1 -1
- data/lib/pulpcore_client/models/status_response.rb +1 -1
- data/lib/pulpcore_client/models/storage_response.rb +1 -1
- data/lib/pulpcore_client/models/task_group_response.rb +26 -5
- data/lib/pulpcore_client/models/task_response.rb +4 -3
- data/lib/pulpcore_client/models/upload.rb +1 -1
- data/lib/pulpcore_client/models/upload_chunk.rb +1 -1
- data/lib/pulpcore_client/models/upload_chunk_response.rb +1 -1
- data/lib/pulpcore_client/models/upload_commit.rb +1 -1
- data/lib/pulpcore_client/models/upload_detail_response.rb +1 -1
- data/lib/pulpcore_client/models/upload_response.rb +1 -1
- data/lib/pulpcore_client/models/user_group_response.rb +1 -1
- data/lib/pulpcore_client/models/user_response.rb +1 -1
- data/lib/pulpcore_client/models/version_response.rb +1 -1
- data/lib/pulpcore_client/models/worker_response.rb +11 -11
- data/lib/pulpcore_client/version.rb +2 -2
- data/lib/pulpcore_client.rb +8 -4
- data/pulpcore_client.gemspec +1 -1
- data/spec/api/access_policies_api_spec.rb +1 -1
- data/spec/api/artifacts_api_spec.rb +1 -1
- data/spec/api/content_api_spec.rb +1 -1
- data/spec/api/contentguards_api_spec.rb +1 -1
- data/spec/api/exporters_pulp_api_spec.rb +1 -1
- data/spec/api/{exporters_core_exports_api_spec.rb → exporters_pulp_exports_api_spec.rb} +7 -7
- data/spec/api/groups_api_spec.rb +1 -1
- data/spec/api/groups_model_permissions_api_spec.rb +1 -1
- data/spec/api/groups_object_permissions_api_spec.rb +1 -1
- data/spec/api/groups_users_api_spec.rb +1 -1
- data/spec/api/importers_pulp_api_spec.rb +1 -1
- data/spec/api/{importers_core_import_check_api_spec.rb → importers_pulp_import_check_api_spec.rb} +7 -7
- data/spec/api/{importers_core_imports_api_spec.rb → importers_pulp_imports_api_spec.rb} +7 -7
- data/spec/api/orphans_api_spec.rb +2 -2
- data/spec/api/orphans_cleanup_api_spec.rb +46 -0
- data/spec/api/publications_api_spec.rb +1 -1
- data/spec/api/repair_api_spec.rb +2 -1
- data/spec/api/repositories_api_spec.rb +1 -1
- data/spec/api/repository_versions_api_spec.rb +1 -1
- data/spec/api/signing_services_api_spec.rb +1 -1
- data/spec/api/status_api_spec.rb +1 -1
- data/spec/api/task_groups_api_spec.rb +1 -1
- data/spec/api/tasks_api_spec.rb +4 -2
- data/spec/api/uploads_api_spec.rb +1 -1
- data/spec/api/users_api_spec.rb +1 -1
- data/spec/api/workers_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/access_policy_response_spec.rb +1 -1
- data/spec/models/access_policy_spec.rb +1 -1
- data/spec/models/artifact_response_spec.rb +1 -1
- data/spec/models/artifact_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_app_status_response_spec.rb +1 -1
- data/spec/models/content_guard_response_spec.rb +1 -1
- data/spec/models/content_summary_response_spec.rb +1 -1
- data/spec/models/database_connection_response_spec.rb +1 -1
- data/spec/models/evaluation_response_spec.rb +1 -1
- data/spec/models/group_progress_report_response_spec.rb +1 -1
- data/spec/models/group_response_spec.rb +1 -1
- data/spec/models/group_spec.rb +1 -1
- data/spec/models/group_user_response_spec.rb +1 -1
- data/spec/models/group_user_spec.rb +1 -1
- data/spec/models/import_response_spec.rb +1 -1
- data/spec/models/minimal_task_response_spec.rb +77 -0
- data/spec/models/multiple_artifact_content_response_spec.rb +1 -1
- data/spec/models/orphans_cleanup_spec.rb +41 -0
- data/spec/models/paginated_access_policy_response_list_spec.rb +1 -1
- data/spec/models/paginated_artifact_response_list_spec.rb +1 -1
- data/spec/models/paginated_content_guard_response_list_spec.rb +1 -1
- data/spec/models/paginated_group_response_list_spec.rb +1 -1
- data/spec/models/paginated_group_user_response_list_spec.rb +1 -1
- data/spec/models/paginated_import_response_list_spec.rb +1 -1
- data/spec/models/paginated_multiple_artifact_content_response_list_spec.rb +1 -1
- data/spec/models/paginated_permission_response_list_spec.rb +1 -1
- data/spec/models/paginated_publication_response_list_spec.rb +1 -1
- data/spec/models/paginated_pulp_export_response_list_spec.rb +1 -1
- data/spec/models/paginated_pulp_exporter_response_list_spec.rb +1 -1
- data/spec/models/paginated_pulp_importer_response_list_spec.rb +1 -1
- data/spec/models/paginated_repository_response_list_spec.rb +1 -1
- data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
- data/spec/models/paginated_signing_service_response_list_spec.rb +1 -1
- data/spec/models/paginated_task_group_response_list_spec.rb +1 -1
- data/spec/models/paginated_task_response_list_spec.rb +1 -1
- data/spec/models/paginated_upload_response_list_spec.rb +1 -1
- data/spec/models/paginated_user_response_list_spec.rb +1 -1
- data/spec/models/paginated_worker_response_list_spec.rb +1 -1
- data/spec/models/patched_access_policy_spec.rb +1 -1
- data/spec/models/patched_group_spec.rb +1 -1
- data/spec/models/patched_pulp_exporter_spec.rb +1 -1
- data/spec/models/patched_pulp_importer_spec.rb +1 -1
- data/spec/models/patched_task_cancel_spec.rb +1 -1
- data/spec/models/permission_response_spec.rb +1 -1
- data/spec/models/progress_report_response_spec.rb +1 -1
- data/spec/models/publication_response_spec.rb +1 -1
- data/spec/models/pulp_export_response_spec.rb +1 -1
- data/spec/models/pulp_export_spec.rb +1 -1
- data/spec/models/pulp_exporter_response_spec.rb +1 -1
- data/spec/models/pulp_exporter_spec.rb +1 -1
- data/spec/models/pulp_import_check_response_spec.rb +1 -1
- data/spec/models/pulp_import_check_spec.rb +1 -1
- data/spec/models/pulp_import_spec.rb +1 -1
- data/spec/models/pulp_importer_response_spec.rb +1 -1
- data/spec/models/pulp_importer_spec.rb +1 -1
- data/spec/models/redis_connection_response_spec.rb +1 -1
- data/spec/models/repair_spec.rb +41 -0
- data/spec/models/repository_response_spec.rb +1 -1
- data/spec/models/repository_version_response_spec.rb +1 -1
- data/spec/models/signing_service_response_spec.rb +1 -1
- data/spec/models/status_response_spec.rb +1 -1
- data/spec/models/storage_response_spec.rb +1 -1
- data/spec/models/task_group_response_spec.rb +13 -1
- data/spec/models/task_response_spec.rb +1 -1
- data/spec/models/upload_chunk_response_spec.rb +1 -1
- data/spec/models/upload_chunk_spec.rb +1 -1
- data/spec/models/upload_commit_spec.rb +1 -1
- data/spec/models/upload_detail_response_spec.rb +1 -1
- data/spec/models/upload_response_spec.rb +1 -1
- data/spec/models/upload_spec.rb +1 -1
- data/spec/models/user_group_response_spec.rb +1 -1
- data/spec/models/user_response_spec.rb +1 -1
- data/spec/models/version_response_spec.rb +1 -1
- data/spec/models/worker_response_spec.rb +3 -3
- data/spec/spec_helper.rb +1 -1
- metadata +106 -90
@@ -0,0 +1,209 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpcoreClient
|
16
|
+
class Repair
|
17
|
+
# Will verify that the checksum of all stored files matches what saved in the database. Otherwise only the existence of the files will be checked. Enabled by default
|
18
|
+
attr_accessor :verify_checksums
|
19
|
+
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
21
|
+
def self.attribute_map
|
22
|
+
{
|
23
|
+
:'verify_checksums' => :'verify_checksums'
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
# Attribute type mapping.
|
28
|
+
def self.openapi_types
|
29
|
+
{
|
30
|
+
:'verify_checksums' => :'Boolean'
|
31
|
+
}
|
32
|
+
end
|
33
|
+
|
34
|
+
# List of attributes with nullable: true
|
35
|
+
def self.openapi_nullable
|
36
|
+
Set.new([
|
37
|
+
])
|
38
|
+
end
|
39
|
+
|
40
|
+
# Initializes the object
|
41
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
42
|
+
def initialize(attributes = {})
|
43
|
+
if (!attributes.is_a?(Hash))
|
44
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::Repair` initialize method"
|
45
|
+
end
|
46
|
+
|
47
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
48
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
49
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
50
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::Repair`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
51
|
+
end
|
52
|
+
h[k.to_sym] = v
|
53
|
+
}
|
54
|
+
|
55
|
+
if attributes.key?(:'verify_checksums')
|
56
|
+
self.verify_checksums = attributes[:'verify_checksums']
|
57
|
+
else
|
58
|
+
self.verify_checksums = true
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
63
|
+
# @return Array for valid properties with the reasons
|
64
|
+
def list_invalid_properties
|
65
|
+
invalid_properties = Array.new
|
66
|
+
invalid_properties
|
67
|
+
end
|
68
|
+
|
69
|
+
# Check to see if the all the properties in the model are valid
|
70
|
+
# @return true if the model is valid
|
71
|
+
def valid?
|
72
|
+
true
|
73
|
+
end
|
74
|
+
|
75
|
+
# Checks equality by comparing each attribute.
|
76
|
+
# @param [Object] Object to be compared
|
77
|
+
def ==(o)
|
78
|
+
return true if self.equal?(o)
|
79
|
+
self.class == o.class &&
|
80
|
+
verify_checksums == o.verify_checksums
|
81
|
+
end
|
82
|
+
|
83
|
+
# @see the `==` method
|
84
|
+
# @param [Object] Object to be compared
|
85
|
+
def eql?(o)
|
86
|
+
self == o
|
87
|
+
end
|
88
|
+
|
89
|
+
# Calculates hash code according to all attributes.
|
90
|
+
# @return [Integer] Hash code
|
91
|
+
def hash
|
92
|
+
[verify_checksums].hash
|
93
|
+
end
|
94
|
+
|
95
|
+
# Builds the object from hash
|
96
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
97
|
+
# @return [Object] Returns the model itself
|
98
|
+
def self.build_from_hash(attributes)
|
99
|
+
new.build_from_hash(attributes)
|
100
|
+
end
|
101
|
+
|
102
|
+
# Builds the object from hash
|
103
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
104
|
+
# @return [Object] Returns the model itself
|
105
|
+
def build_from_hash(attributes)
|
106
|
+
return nil unless attributes.is_a?(Hash)
|
107
|
+
self.class.openapi_types.each_pair do |key, type|
|
108
|
+
if type =~ /\AArray<(.*)>/i
|
109
|
+
# check to ensure the input is an array given that the attribute
|
110
|
+
# is documented as an array but the input is not
|
111
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
112
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
113
|
+
end
|
114
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
115
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
116
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
117
|
+
end
|
118
|
+
|
119
|
+
self
|
120
|
+
end
|
121
|
+
|
122
|
+
# Deserializes the data based on type
|
123
|
+
# @param string type Data type
|
124
|
+
# @param string value Value to be deserialized
|
125
|
+
# @return [Object] Deserialized data
|
126
|
+
def _deserialize(type, value)
|
127
|
+
case type.to_sym
|
128
|
+
when :DateTime
|
129
|
+
DateTime.parse(value)
|
130
|
+
when :Date
|
131
|
+
Date.parse(value)
|
132
|
+
when :String
|
133
|
+
value.to_s
|
134
|
+
when :Integer
|
135
|
+
value.to_i
|
136
|
+
when :Float
|
137
|
+
value.to_f
|
138
|
+
when :Boolean
|
139
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
140
|
+
true
|
141
|
+
else
|
142
|
+
false
|
143
|
+
end
|
144
|
+
when :Object
|
145
|
+
# generic object (usually a Hash), return directly
|
146
|
+
value
|
147
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
148
|
+
inner_type = Regexp.last_match[:inner_type]
|
149
|
+
value.map { |v| _deserialize(inner_type, v) }
|
150
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
151
|
+
k_type = Regexp.last_match[:k_type]
|
152
|
+
v_type = Regexp.last_match[:v_type]
|
153
|
+
{}.tap do |hash|
|
154
|
+
value.each do |k, v|
|
155
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
156
|
+
end
|
157
|
+
end
|
158
|
+
else # model
|
159
|
+
PulpcoreClient.const_get(type).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
|
+
if value.nil?
|
182
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
183
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
184
|
+
end
|
185
|
+
|
186
|
+
hash[param] = _to_hash(value)
|
187
|
+
end
|
188
|
+
hash
|
189
|
+
end
|
190
|
+
|
191
|
+
# Outputs non-array value in the form of hash
|
192
|
+
# For object, use to_hash. Otherwise, just return the value
|
193
|
+
# @param [Object] value Any valid value
|
194
|
+
# @return [Hash] Returns the value in the form of hash
|
195
|
+
def _to_hash(value)
|
196
|
+
if value.is_a?(Array)
|
197
|
+
value.compact.map { |v| _to_hash(v) }
|
198
|
+
elsif value.is_a?(Hash)
|
199
|
+
{}.tap do |hash|
|
200
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
201
|
+
end
|
202
|
+
elsif value.respond_to? :to_hash
|
203
|
+
value.to_hash
|
204
|
+
else
|
205
|
+
value
|
206
|
+
end
|
207
|
+
end
|
208
|
+
end
|
209
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -41,8 +41,13 @@ module PulpcoreClient
|
|
41
41
|
# Number of tasks in the 'failed' state
|
42
42
|
attr_accessor :failed
|
43
43
|
|
44
|
+
# Number of tasks in the 'canceling' state
|
45
|
+
attr_accessor :canceling
|
46
|
+
|
44
47
|
attr_accessor :group_progress_reports
|
45
48
|
|
49
|
+
attr_accessor :tasks
|
50
|
+
|
46
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
52
|
def self.attribute_map
|
48
53
|
{
|
@@ -55,7 +60,9 @@ module PulpcoreClient
|
|
55
60
|
:'completed' => :'completed',
|
56
61
|
:'canceled' => :'canceled',
|
57
62
|
:'failed' => :'failed',
|
58
|
-
:'
|
63
|
+
:'canceling' => :'canceling',
|
64
|
+
:'group_progress_reports' => :'group_progress_reports',
|
65
|
+
:'tasks' => :'tasks'
|
59
66
|
}
|
60
67
|
end
|
61
68
|
|
@@ -71,7 +78,9 @@ module PulpcoreClient
|
|
71
78
|
:'completed' => :'Integer',
|
72
79
|
:'canceled' => :'Integer',
|
73
80
|
:'failed' => :'Integer',
|
74
|
-
:'
|
81
|
+
:'canceling' => :'Integer',
|
82
|
+
:'group_progress_reports' => :'Array<GroupProgressReportResponse>',
|
83
|
+
:'tasks' => :'Array<MinimalTaskResponse>'
|
75
84
|
}
|
76
85
|
end
|
77
86
|
|
@@ -132,11 +141,21 @@ module PulpcoreClient
|
|
132
141
|
self.failed = attributes[:'failed']
|
133
142
|
end
|
134
143
|
|
144
|
+
if attributes.key?(:'canceling')
|
145
|
+
self.canceling = attributes[:'canceling']
|
146
|
+
end
|
147
|
+
|
135
148
|
if attributes.key?(:'group_progress_reports')
|
136
149
|
if (value = attributes[:'group_progress_reports']).is_a?(Array)
|
137
150
|
self.group_progress_reports = value
|
138
151
|
end
|
139
152
|
end
|
153
|
+
|
154
|
+
if attributes.key?(:'tasks')
|
155
|
+
if (value = attributes[:'tasks']).is_a?(Array)
|
156
|
+
self.tasks = value
|
157
|
+
end
|
158
|
+
end
|
140
159
|
end
|
141
160
|
|
142
161
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -176,7 +195,9 @@ module PulpcoreClient
|
|
176
195
|
completed == o.completed &&
|
177
196
|
canceled == o.canceled &&
|
178
197
|
failed == o.failed &&
|
179
|
-
|
198
|
+
canceling == o.canceling &&
|
199
|
+
group_progress_reports == o.group_progress_reports &&
|
200
|
+
tasks == o.tasks
|
180
201
|
end
|
181
202
|
|
182
203
|
# @see the `==` method
|
@@ -188,7 +209,7 @@ module PulpcoreClient
|
|
188
209
|
# Calculates hash code according to all attributes.
|
189
210
|
# @return [Integer] Hash code
|
190
211
|
def hash
|
191
|
-
[pulp_href, description, all_tasks_dispatched, waiting, skipped, running, completed, canceled, failed, group_progress_reports].hash
|
212
|
+
[pulp_href, description, all_tasks_dispatched, waiting, skipped, running, completed, canceled, failed, canceling, group_progress_reports, tasks].hash
|
192
213
|
end
|
193
214
|
|
194
215
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,7 +20,7 @@ module PulpcoreClient
|
|
20
20
|
# Timestamp of creation.
|
21
21
|
attr_accessor :pulp_created
|
22
22
|
|
23
|
-
# The current state of the task. The possible values include: 'waiting', 'skipped', 'running', 'completed', 'failed' and '
|
23
|
+
# The current state of the task. The possible values include: 'waiting', 'skipped', 'running', 'completed', 'failed', 'canceled' and 'canceling'.
|
24
24
|
attr_accessor :state
|
25
25
|
|
26
26
|
# The name of task.
|
@@ -55,6 +55,7 @@ module PulpcoreClient
|
|
55
55
|
# Resources created by this task.
|
56
56
|
attr_accessor :created_resources
|
57
57
|
|
58
|
+
# A list of resources required by that task.
|
58
59
|
attr_accessor :reserved_resources_record
|
59
60
|
|
60
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -95,7 +96,7 @@ module PulpcoreClient
|
|
95
96
|
:'task_group' => :'String',
|
96
97
|
:'progress_reports' => :'Array<ProgressReportResponse>',
|
97
98
|
:'created_resources' => :'Array<String>',
|
98
|
-
:'reserved_resources_record' => :'Array<
|
99
|
+
:'reserved_resources_record' => :'Array<String>'
|
99
100
|
}
|
100
101
|
end
|
101
102
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,11 +15,11 @@ require 'date'
|
|
15
15
|
module PulpcoreClient
|
16
16
|
# Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
|
17
17
|
class WorkerResponse
|
18
|
-
attr_accessor :pulp_href
|
19
|
-
|
20
18
|
# Timestamp of creation.
|
21
19
|
attr_accessor :pulp_created
|
22
20
|
|
21
|
+
attr_accessor :pulp_href
|
22
|
+
|
23
23
|
# The name of the worker.
|
24
24
|
attr_accessor :name
|
25
25
|
|
@@ -29,8 +29,8 @@ module PulpcoreClient
|
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
|
-
:'pulp_href' => :'pulp_href',
|
33
32
|
:'pulp_created' => :'pulp_created',
|
33
|
+
:'pulp_href' => :'pulp_href',
|
34
34
|
:'name' => :'name',
|
35
35
|
:'last_heartbeat' => :'last_heartbeat'
|
36
36
|
}
|
@@ -39,8 +39,8 @@ module PulpcoreClient
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'pulp_href' => :'String',
|
43
42
|
:'pulp_created' => :'DateTime',
|
43
|
+
:'pulp_href' => :'String',
|
44
44
|
:'name' => :'String',
|
45
45
|
:'last_heartbeat' => :'DateTime'
|
46
46
|
}
|
@@ -67,14 +67,14 @@ module PulpcoreClient
|
|
67
67
|
h[k.to_sym] = v
|
68
68
|
}
|
69
69
|
|
70
|
-
if attributes.key?(:'pulp_href')
|
71
|
-
self.pulp_href = attributes[:'pulp_href']
|
72
|
-
end
|
73
|
-
|
74
70
|
if attributes.key?(:'pulp_created')
|
75
71
|
self.pulp_created = attributes[:'pulp_created']
|
76
72
|
end
|
77
73
|
|
74
|
+
if attributes.key?(:'pulp_href')
|
75
|
+
self.pulp_href = attributes[:'pulp_href']
|
76
|
+
end
|
77
|
+
|
78
78
|
if attributes.key?(:'name')
|
79
79
|
self.name = attributes[:'name']
|
80
80
|
end
|
@@ -102,8 +102,8 @@ module PulpcoreClient
|
|
102
102
|
def ==(o)
|
103
103
|
return true if self.equal?(o)
|
104
104
|
self.class == o.class &&
|
105
|
-
pulp_href == o.pulp_href &&
|
106
105
|
pulp_created == o.pulp_created &&
|
106
|
+
pulp_href == o.pulp_href &&
|
107
107
|
name == o.name &&
|
108
108
|
last_heartbeat == o.last_heartbeat
|
109
109
|
end
|
@@ -117,7 +117,7 @@ module PulpcoreClient
|
|
117
117
|
# Calculates hash code according to all attributes.
|
118
118
|
# @return [Integer] Hash code
|
119
119
|
def hash
|
120
|
-
[
|
120
|
+
[pulp_created, pulp_href, name, last_heartbeat].hash
|
121
121
|
end
|
122
122
|
|
123
123
|
# Builds the object from hash
|
@@ -6,10 +6,10 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module PulpcoreClient
|
14
|
-
VERSION = '3.
|
14
|
+
VERSION = '3.14.0'
|
15
15
|
end
|
data/lib/pulpcore_client.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -33,7 +33,9 @@ require 'pulpcore_client/models/group_response'
|
|
33
33
|
require 'pulpcore_client/models/group_user'
|
34
34
|
require 'pulpcore_client/models/group_user_response'
|
35
35
|
require 'pulpcore_client/models/import_response'
|
36
|
+
require 'pulpcore_client/models/minimal_task_response'
|
36
37
|
require 'pulpcore_client/models/multiple_artifact_content_response'
|
38
|
+
require 'pulpcore_client/models/orphans_cleanup'
|
37
39
|
require 'pulpcore_client/models/paginated_access_policy_response_list'
|
38
40
|
require 'pulpcore_client/models/paginated_artifact_response_list'
|
39
41
|
require 'pulpcore_client/models/paginated_content_guard_response_list'
|
@@ -72,6 +74,7 @@ require 'pulpcore_client/models/pulp_import_check_response'
|
|
72
74
|
require 'pulpcore_client/models/pulp_importer'
|
73
75
|
require 'pulpcore_client/models/pulp_importer_response'
|
74
76
|
require 'pulpcore_client/models/redis_connection_response'
|
77
|
+
require 'pulpcore_client/models/repair'
|
75
78
|
require 'pulpcore_client/models/repository_response'
|
76
79
|
require 'pulpcore_client/models/repository_version_response'
|
77
80
|
require 'pulpcore_client/models/signing_service_response'
|
@@ -95,16 +98,17 @@ require 'pulpcore_client/api/access_policies_api'
|
|
95
98
|
require 'pulpcore_client/api/artifacts_api'
|
96
99
|
require 'pulpcore_client/api/content_api'
|
97
100
|
require 'pulpcore_client/api/contentguards_api'
|
98
|
-
require 'pulpcore_client/api/exporters_core_exports_api'
|
99
101
|
require 'pulpcore_client/api/exporters_pulp_api'
|
102
|
+
require 'pulpcore_client/api/exporters_pulp_exports_api'
|
100
103
|
require 'pulpcore_client/api/groups_api'
|
101
104
|
require 'pulpcore_client/api/groups_model_permissions_api'
|
102
105
|
require 'pulpcore_client/api/groups_object_permissions_api'
|
103
106
|
require 'pulpcore_client/api/groups_users_api'
|
104
|
-
require 'pulpcore_client/api/importers_core_import_check_api'
|
105
|
-
require 'pulpcore_client/api/importers_core_imports_api'
|
106
107
|
require 'pulpcore_client/api/importers_pulp_api'
|
108
|
+
require 'pulpcore_client/api/importers_pulp_import_check_api'
|
109
|
+
require 'pulpcore_client/api/importers_pulp_imports_api'
|
107
110
|
require 'pulpcore_client/api/orphans_api'
|
111
|
+
require 'pulpcore_client/api/orphans_cleanup_api'
|
108
112
|
require 'pulpcore_client/api/publications_api'
|
109
113
|
require 'pulpcore_client/api/repair_api'
|
110
114
|
require 'pulpcore_client/api/repositories_api'
|
data/pulpcore_client.gemspec
CHANGED