pulpcore_client 3.5.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +88 -44
- data/docs/AccessPoliciesApi.md +244 -0
- data/docs/AccessPolicy.md +21 -0
- data/docs/AccessPolicyResponse.md +25 -0
- data/docs/Artifact.md +2 -6
- data/docs/ArtifactResponse.md +35 -0
- data/docs/ArtifactsApi.md +40 -34
- data/docs/{ContentAppStatus.md → ContentAppStatusResponse.md} +2 -2
- data/docs/{DatabaseConnection.md → DatabaseConnectionResponse.md} +2 -2
- data/docs/ExportersCoreExportsApi.md +33 -33
- data/docs/ExportersPulpApi.md +51 -51
- data/docs/Group.md +17 -0
- data/docs/{GroupProgressReport.md → GroupProgressReportResponse.md} +2 -2
- data/docs/GroupResponse.md +21 -0
- data/docs/GroupUser.md +17 -0
- data/docs/GroupUserResponse.md +19 -0
- data/docs/GroupsApi.md +351 -0
- data/docs/GroupsModelPermissionsApi.md +128 -0
- data/docs/GroupsObjectPermissionsApi.md +247 -0
- data/docs/GroupsUsersApi.md +183 -0
- data/docs/{Import.md → ImportResponse.md} +2 -2
- data/docs/ImportersCoreImportsApi.md +33 -33
- data/docs/ImportersPulpApi.md +51 -51
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse20010.md +23 -0
- data/docs/InlineResponse20011.md +23 -0
- data/docs/InlineResponse20012.md +23 -0
- data/docs/InlineResponse20013.md +23 -0
- data/docs/InlineResponse20014.md +23 -0
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/InlineResponse2005.md +3 -3
- data/docs/InlineResponse2006.md +3 -3
- data/docs/InlineResponse2007.md +3 -3
- data/docs/InlineResponse2008.md +3 -3
- data/docs/InlineResponse2009.md +3 -3
- data/docs/OrphansApi.md +2 -2
- data/docs/PatchedAccessPolicy.md +21 -0
- data/docs/PatchedGroup.md +17 -0
- data/docs/PatchedPulpExporter.md +23 -0
- data/docs/PatchedPulpImporter.md +19 -0
- data/docs/{TaskCancel.md → PatchedTaskCancel.md} +3 -3
- data/docs/PermissionResponse.md +23 -0
- data/docs/{ProgressReport.md → ProgressReportResponse.md} +2 -2
- data/docs/PulpExport.md +11 -11
- data/docs/PulpExportResponse.md +27 -0
- data/docs/PulpExporter.md +1 -5
- data/docs/PulpExporterResponse.md +27 -0
- data/docs/PulpImport.md +4 -2
- data/docs/PulpImporter.md +2 -6
- data/docs/PulpImporterResponse.md +23 -0
- data/docs/{RedisConnection.md → RedisConnectionResponse.md} +2 -2
- data/docs/{SigningService.md → SigningServiceResponse.md} +2 -2
- data/docs/SigningServicesApi.md +14 -14
- data/docs/StatusApi.md +8 -22
- data/docs/StatusResponse.md +27 -0
- data/docs/{Storage.md → StorageResponse.md} +2 -2
- data/docs/{TaskGroup.md → TaskGroupResponse.md} +3 -3
- data/docs/TaskGroupsApi.md +16 -12
- data/docs/{Task.md → TaskResponse.md} +5 -7
- data/docs/TasksApi.md +144 -88
- data/docs/Upload.md +1 -7
- data/docs/UploadChunk.md +2 -6
- data/docs/UploadChunkResponse.md +19 -0
- data/docs/{UploadDetail.md → UploadDetailResponse.md} +3 -3
- data/docs/UploadResponse.md +23 -0
- data/docs/UploadsApi.md +42 -40
- data/docs/UserGroupResponse.md +19 -0
- data/docs/UserResponse.md +35 -0
- data/docs/UsersApi.md +191 -0
- data/docs/{Version.md → VersionResponse.md} +2 -2
- data/docs/{Worker.md → WorkerResponse.md} +2 -2
- data/docs/WorkersApi.md +36 -32
- data/lib/pulpcore_client/api/access_policies_api.rb +301 -0
- data/lib/pulpcore_client/api/artifacts_api.rb +47 -65
- data/lib/pulpcore_client/api/exporters_core_exports_api.rb +51 -51
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +71 -71
- data/lib/pulpcore_client/api/groups_api.rb +425 -0
- data/lib/pulpcore_client/api/groups_model_permissions_api.rb +161 -0
- data/lib/pulpcore_client/api/groups_object_permissions_api.rb +295 -0
- data/lib/pulpcore_client/api/groups_users_api.rb +229 -0
- data/lib/pulpcore_client/api/importers_core_imports_api.rb +51 -51
- data/lib/pulpcore_client/api/importers_pulp_api.rb +71 -71
- data/lib/pulpcore_client/api/orphans_api.rb +3 -3
- data/lib/pulpcore_client/api/signing_services_api.rb +18 -18
- data/lib/pulpcore_client/api/status_api.rb +11 -17
- data/lib/pulpcore_client/api/task_groups_api.rb +19 -15
- data/lib/pulpcore_client/api/tasks_api.rb +203 -125
- data/lib/pulpcore_client/api/uploads_api.rb +60 -66
- data/lib/pulpcore_client/api/users_api.rb +227 -0
- data/lib/pulpcore_client/api/workers_api.rb +46 -42
- data/lib/pulpcore_client/api_client.rb +2 -2
- data/lib/pulpcore_client/api_error.rb +2 -2
- data/lib/pulpcore_client/configuration.rb +3 -3
- data/lib/pulpcore_client/models/access_policy.rb +247 -0
- data/lib/pulpcore_client/models/access_policy_response.rb +266 -0
- data/lib/pulpcore_client/models/artifact.rb +8 -111
- data/lib/pulpcore_client/models/artifact_response.rb +308 -0
- data/lib/pulpcore_client/models/async_operation_response.rb +3 -2
- data/lib/pulpcore_client/models/{content_app_status.rb → content_app_status_response.rb} +6 -21
- data/lib/pulpcore_client/models/{database_connection.rb → database_connection_response.rb} +6 -6
- data/lib/pulpcore_client/models/group.rb +232 -0
- data/lib/pulpcore_client/models/{group_progress_report.rb → group_progress_report_response.rb} +6 -50
- data/lib/pulpcore_client/models/group_response.rb +250 -0
- data/lib/pulpcore_client/models/group_user.rb +232 -0
- data/lib/pulpcore_client/models/group_user_response.rb +241 -0
- data/lib/pulpcore_client/models/{import.rb → import_response.rb} +6 -5
- data/lib/pulpcore_client/models/inline_response200.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2001.rb +3 -13
- data/lib/pulpcore_client/models/inline_response20010.rb +237 -0
- data/lib/pulpcore_client/models/inline_response20011.rb +237 -0
- data/lib/pulpcore_client/models/inline_response20012.rb +237 -0
- data/lib/pulpcore_client/models/inline_response20013.rb +237 -0
- data/lib/pulpcore_client/models/inline_response20014.rb +237 -0
- data/lib/pulpcore_client/models/inline_response2002.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2003.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2004.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2005.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2006.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2007.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2008.rb +3 -13
- data/lib/pulpcore_client/models/inline_response2009.rb +3 -13
- data/lib/pulpcore_client/models/patched_access_policy.rb +232 -0
- data/lib/pulpcore_client/models/patched_group.rb +223 -0
- data/lib/pulpcore_client/models/patched_pulp_exporter.rb +240 -0
- data/lib/pulpcore_client/models/patched_pulp_importer.rb +218 -0
- data/lib/pulpcore_client/models/{task_cancel.rb → patched_task_cancel.rb} +6 -29
- data/lib/pulpcore_client/models/permission_response.rb +235 -0
- data/lib/pulpcore_client/models/{progress_report.rb → progress_report_response.rb} +6 -65
- data/lib/pulpcore_client/models/pulp_export.rb +50 -42
- data/lib/pulpcore_client/models/pulp_export_response.rb +260 -0
- data/lib/pulpcore_client/models/pulp_exporter.rb +4 -60
- data/lib/pulpcore_client/models/pulp_exporter_response.rb +274 -0
- data/lib/pulpcore_client/models/pulp_import.rb +17 -30
- data/lib/pulpcore_client/models/pulp_importer.rb +6 -45
- data/lib/pulpcore_client/models/pulp_importer_response.rb +242 -0
- data/lib/pulpcore_client/models/{redis_connection.rb → redis_connection_response.rb} +6 -6
- data/lib/pulpcore_client/models/{signing_service.rb → signing_service_response.rb} +6 -43
- data/lib/pulpcore_client/models/{status.rb → status_response.rb} +15 -11
- data/lib/pulpcore_client/models/{storage.rb → storage_response.rb} +6 -6
- data/lib/pulpcore_client/models/{task_group.rb → task_group_response.rb} +7 -25
- data/lib/pulpcore_client/models/{task.rb → task_response.rb} +13 -59
- data/lib/pulpcore_client/models/upload.rb +7 -35
- data/lib/pulpcore_client/models/upload_chunk.rb +11 -39
- data/lib/pulpcore_client/models/upload_chunk_response.rb +215 -0
- data/lib/pulpcore_client/models/upload_commit.rb +2 -21
- data/lib/pulpcore_client/models/{upload_detail.rb → upload_detail_response.rb} +7 -6
- data/lib/pulpcore_client/models/upload_response.rb +242 -0
- data/lib/pulpcore_client/models/user_group_response.rb +241 -0
- data/lib/pulpcore_client/models/user_response.rb +378 -0
- data/lib/pulpcore_client/models/{version.rb → version_response.rb} +6 -44
- data/lib/pulpcore_client/models/{worker.rb → worker_response.rb} +6 -21
- data/lib/pulpcore_client/version.rb +3 -3
- data/lib/pulpcore_client.rb +47 -17
- data/pulpcore_client.gemspec +4 -4
- data/spec/api/access_policies_api_spec.rb +91 -0
- data/spec/api/artifacts_api_spec.rb +18 -15
- data/spec/api/exporters_core_exports_api_spec.rb +10 -10
- data/spec/api/exporters_pulp_api_spec.rb +18 -18
- data/spec/api/groups_api_spec.rb +115 -0
- data/spec/api/groups_model_permissions_api_spec.rb +64 -0
- data/spec/api/groups_object_permissions_api_spec.rb +92 -0
- data/spec/api/groups_users_api_spec.rb +77 -0
- data/spec/api/importers_core_imports_api_spec.rb +10 -10
- data/spec/api/importers_pulp_api_spec.rb +18 -18
- data/spec/api/orphans_api_spec.rb +2 -2
- data/spec/api/signing_services_api_spec.rb +7 -7
- data/spec/api/status_api_spec.rb +5 -7
- data/spec/api/task_groups_api_spec.rb +8 -6
- data/spec/api/tasks_api_spec.rb +69 -42
- data/spec/api/uploads_api_spec.rb +14 -13
- data/spec/api/users_api_spec.rb +78 -0
- data/spec/api/workers_api_spec.rb +18 -16
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/access_policy_response_spec.rb +65 -0
- data/spec/models/access_policy_spec.rb +53 -0
- data/spec/models/artifact_response_spec.rb +95 -0
- data/spec/models/artifact_spec.rb +2 -14
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/{content_app_status_spec.rb → content_app_status_response_spec.rb} +8 -8
- data/spec/models/{database_connection_spec.rb → database_connection_response_spec.rb} +8 -8
- data/spec/models/{group_progress_report_spec.rb → group_progress_report_response_spec.rb} +8 -8
- data/spec/models/group_response_spec.rb +53 -0
- data/spec/models/group_spec.rb +41 -0
- data/spec/models/group_user_response_spec.rb +47 -0
- data/spec/models/group_user_spec.rb +41 -0
- data/spec/models/{import_spec.rb → import_response_spec.rb} +8 -8
- data/spec/models/inline_response20010_spec.rb +59 -0
- data/spec/models/inline_response20011_spec.rb +59 -0
- data/spec/models/inline_response20012_spec.rb +59 -0
- data/spec/models/inline_response20013_spec.rb +59 -0
- data/spec/models/inline_response20014_spec.rb +59 -0
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +2 -2
- data/spec/models/inline_response2004_spec.rb +2 -2
- data/spec/models/inline_response2005_spec.rb +2 -2
- data/spec/models/inline_response2006_spec.rb +2 -2
- data/spec/models/inline_response2007_spec.rb +2 -2
- data/spec/models/inline_response2008_spec.rb +2 -2
- data/spec/models/inline_response2009_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/patched_access_policy_spec.rb +53 -0
- data/spec/models/patched_group_spec.rb +41 -0
- data/spec/models/patched_pulp_exporter_spec.rb +59 -0
- data/spec/models/patched_pulp_importer_spec.rb +47 -0
- data/spec/models/{task_cancel_spec.rb → patched_task_cancel_spec.rb} +8 -8
- data/spec/models/permission_response_spec.rb +59 -0
- data/spec/models/{progress_report_spec.rb → progress_report_response_spec.rb} +8 -8
- data/spec/models/pulp_export_response_spec.rb +71 -0
- data/spec/models/pulp_export_spec.rb +8 -8
- data/spec/models/pulp_exporter_response_spec.rb +71 -0
- data/spec/models/pulp_exporter_spec.rb +2 -14
- data/spec/models/pulp_import_spec.rb +8 -2
- data/spec/models/pulp_importer_response_spec.rb +59 -0
- data/spec/models/pulp_importer_spec.rb +2 -14
- data/spec/models/{redis_connection_spec.rb → redis_connection_response_spec.rb} +8 -8
- data/spec/models/{signing_service_spec.rb → signing_service_response_spec.rb} +8 -8
- data/spec/models/{status_spec.rb → status_response_spec.rb} +8 -8
- data/spec/models/{storage_spec.rb → storage_response_spec.rb} +8 -8
- data/spec/models/{task_group_spec.rb → task_group_response_spec.rb} +8 -8
- data/spec/models/{task_spec.rb → task_response_spec.rb} +8 -14
- data/spec/models/upload_chunk_response_spec.rb +47 -0
- data/spec/models/upload_chunk_spec.rb +2 -14
- data/spec/models/upload_commit_spec.rb +2 -2
- data/spec/models/{upload_detail_spec.rb → upload_detail_response_spec.rb} +8 -8
- data/spec/models/upload_response_spec.rb +59 -0
- data/spec/models/upload_spec.rb +2 -20
- data/spec/models/user_group_response_spec.rb +47 -0
- data/spec/models/user_response_spec.rb +95 -0
- data/spec/models/{version_spec.rb → version_response_spec.rb} +8 -8
- data/spec/models/{worker_spec.rb → worker_response_spec.rb} +8 -8
- data/spec/spec_helper.rb +2 -2
- metadata +204 -84
- data/docs/Status.md +0 -27
|
@@ -0,0 +1,242 @@
|
|
|
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.2.3
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module PulpcoreClient
|
|
16
|
+
# Serializer for PulpImporters.
|
|
17
|
+
class PulpImporterResponse
|
|
18
|
+
attr_accessor :pulp_href
|
|
19
|
+
|
|
20
|
+
# Timestamp of creation.
|
|
21
|
+
attr_accessor :pulp_created
|
|
22
|
+
|
|
23
|
+
# Unique name of the Importer.
|
|
24
|
+
attr_accessor :name
|
|
25
|
+
|
|
26
|
+
# Mapping of repo names in an export file to the repo names in Pulp. For example, if the export has a repo named 'foo' and the repo to import content into was 'bar', the mapping would be \"{'foo': 'bar'}\".
|
|
27
|
+
attr_accessor :repo_mapping
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
def self.attribute_map
|
|
31
|
+
{
|
|
32
|
+
:'pulp_href' => :'pulp_href',
|
|
33
|
+
:'pulp_created' => :'pulp_created',
|
|
34
|
+
:'name' => :'name',
|
|
35
|
+
:'repo_mapping' => :'repo_mapping'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Attribute type mapping.
|
|
40
|
+
def self.openapi_types
|
|
41
|
+
{
|
|
42
|
+
:'pulp_href' => :'String',
|
|
43
|
+
:'pulp_created' => :'DateTime',
|
|
44
|
+
:'name' => :'String',
|
|
45
|
+
:'repo_mapping' => :'Object'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# List of attributes with nullable: true
|
|
50
|
+
def self.openapi_nullable
|
|
51
|
+
Set.new([
|
|
52
|
+
])
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Initializes the object
|
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
57
|
+
def initialize(attributes = {})
|
|
58
|
+
if (!attributes.is_a?(Hash))
|
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::PulpImporterResponse` initialize method"
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
63
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::PulpImporterResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
66
|
+
end
|
|
67
|
+
h[k.to_sym] = v
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if attributes.key?(:'pulp_href')
|
|
71
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'pulp_created')
|
|
75
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'name')
|
|
79
|
+
self.name = attributes[:'name']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'repo_mapping')
|
|
83
|
+
self.repo_mapping = attributes[:'repo_mapping']
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
88
|
+
# @return Array for valid properties with the reasons
|
|
89
|
+
def list_invalid_properties
|
|
90
|
+
invalid_properties = Array.new
|
|
91
|
+
if @name.nil?
|
|
92
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
invalid_properties
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Check to see if the all the properties in the model are valid
|
|
99
|
+
# @return true if the model is valid
|
|
100
|
+
def valid?
|
|
101
|
+
return false if @name.nil?
|
|
102
|
+
true
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Checks equality by comparing each attribute.
|
|
106
|
+
# @param [Object] Object to be compared
|
|
107
|
+
def ==(o)
|
|
108
|
+
return true if self.equal?(o)
|
|
109
|
+
self.class == o.class &&
|
|
110
|
+
pulp_href == o.pulp_href &&
|
|
111
|
+
pulp_created == o.pulp_created &&
|
|
112
|
+
name == o.name &&
|
|
113
|
+
repo_mapping == o.repo_mapping
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# @see the `==` method
|
|
117
|
+
# @param [Object] Object to be compared
|
|
118
|
+
def eql?(o)
|
|
119
|
+
self == o
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Calculates hash code according to all attributes.
|
|
123
|
+
# @return [Integer] Hash code
|
|
124
|
+
def hash
|
|
125
|
+
[pulp_href, pulp_created, name, repo_mapping].hash
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Builds the object from hash
|
|
129
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
130
|
+
# @return [Object] Returns the model itself
|
|
131
|
+
def self.build_from_hash(attributes)
|
|
132
|
+
new.build_from_hash(attributes)
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Builds the object from hash
|
|
136
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
137
|
+
# @return [Object] Returns the model itself
|
|
138
|
+
def build_from_hash(attributes)
|
|
139
|
+
return nil unless attributes.is_a?(Hash)
|
|
140
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
141
|
+
if type =~ /\AArray<(.*)>/i
|
|
142
|
+
# check to ensure the input is an array given that the attribute
|
|
143
|
+
# is documented as an array but the input is not
|
|
144
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
145
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
146
|
+
end
|
|
147
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
148
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
149
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
self
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Deserializes the data based on type
|
|
156
|
+
# @param string type Data type
|
|
157
|
+
# @param string value Value to be deserialized
|
|
158
|
+
# @return [Object] Deserialized data
|
|
159
|
+
def _deserialize(type, value)
|
|
160
|
+
case type.to_sym
|
|
161
|
+
when :DateTime
|
|
162
|
+
DateTime.parse(value)
|
|
163
|
+
when :Date
|
|
164
|
+
Date.parse(value)
|
|
165
|
+
when :String
|
|
166
|
+
value.to_s
|
|
167
|
+
when :Integer
|
|
168
|
+
value.to_i
|
|
169
|
+
when :Float
|
|
170
|
+
value.to_f
|
|
171
|
+
when :Boolean
|
|
172
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
173
|
+
true
|
|
174
|
+
else
|
|
175
|
+
false
|
|
176
|
+
end
|
|
177
|
+
when :Object
|
|
178
|
+
# generic object (usually a Hash), return directly
|
|
179
|
+
value
|
|
180
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
181
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
182
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
183
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
184
|
+
k_type = Regexp.last_match[:k_type]
|
|
185
|
+
v_type = Regexp.last_match[:v_type]
|
|
186
|
+
{}.tap do |hash|
|
|
187
|
+
value.each do |k, v|
|
|
188
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
else # model
|
|
192
|
+
PulpcoreClient.const_get(type).build_from_hash(value)
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Returns the string representation of the object
|
|
197
|
+
# @return [String] String presentation of the object
|
|
198
|
+
def to_s
|
|
199
|
+
to_hash.to_s
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
203
|
+
# @return [Hash] Returns the object in the form of hash
|
|
204
|
+
def to_body
|
|
205
|
+
to_hash
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Returns the object in the form of hash
|
|
209
|
+
# @return [Hash] Returns the object in the form of hash
|
|
210
|
+
def to_hash
|
|
211
|
+
hash = {}
|
|
212
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
213
|
+
value = self.send(attr)
|
|
214
|
+
if value.nil?
|
|
215
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
216
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
hash[param] = _to_hash(value)
|
|
220
|
+
end
|
|
221
|
+
hash
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Outputs non-array value in the form of hash
|
|
225
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
226
|
+
# @param [Object] value Any valid value
|
|
227
|
+
# @return [Hash] Returns the value in the form of hash
|
|
228
|
+
def _to_hash(value)
|
|
229
|
+
if value.is_a?(Array)
|
|
230
|
+
value.compact.map { |v| _to_hash(v) }
|
|
231
|
+
elsif value.is_a?(Hash)
|
|
232
|
+
{}.tap do |hash|
|
|
233
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
234
|
+
end
|
|
235
|
+
elsif value.respond_to? :to_hash
|
|
236
|
+
value.to_hash
|
|
237
|
+
else
|
|
238
|
+
value
|
|
239
|
+
end
|
|
240
|
+
end
|
|
241
|
+
end
|
|
242
|
+
end
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
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
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -13,8 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module PulpcoreClient
|
|
16
|
-
# Redis connection
|
|
17
|
-
class
|
|
16
|
+
# Serializer for information about the Redis connection
|
|
17
|
+
class RedisConnectionResponse
|
|
18
18
|
# Info about whether the app can connect to Redis
|
|
19
19
|
attr_accessor :connected
|
|
20
20
|
|
|
@@ -42,13 +42,13 @@ module PulpcoreClient
|
|
|
42
42
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
43
43
|
def initialize(attributes = {})
|
|
44
44
|
if (!attributes.is_a?(Hash))
|
|
45
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::
|
|
45
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::RedisConnectionResponse` initialize method"
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
49
49
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
50
50
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
51
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::
|
|
51
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::RedisConnectionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
52
52
|
end
|
|
53
53
|
h[k.to_sym] = v
|
|
54
54
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
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
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -13,7 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module PulpcoreClient
|
|
16
|
-
|
|
16
|
+
# A serializer for the model declaring a signing service.
|
|
17
|
+
class SigningServiceResponse
|
|
17
18
|
attr_accessor :pulp_href
|
|
18
19
|
|
|
19
20
|
# Timestamp of creation.
|
|
@@ -55,13 +56,13 @@ module PulpcoreClient
|
|
|
55
56
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
56
57
|
def initialize(attributes = {})
|
|
57
58
|
if (!attributes.is_a?(Hash))
|
|
58
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::
|
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::SigningServiceResponse` initialize method"
|
|
59
60
|
end
|
|
60
61
|
|
|
61
62
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
63
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
63
64
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
64
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::
|
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::SigningServiceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
65
66
|
end
|
|
66
67
|
h[k.to_sym] = v
|
|
67
68
|
}
|
|
@@ -91,18 +92,10 @@ module PulpcoreClient
|
|
|
91
92
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
92
93
|
end
|
|
93
94
|
|
|
94
|
-
if @name.to_s.length < 1
|
|
95
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
96
|
-
end
|
|
97
|
-
|
|
98
95
|
if @script.nil?
|
|
99
96
|
invalid_properties.push('invalid value for "script", script cannot be nil.')
|
|
100
97
|
end
|
|
101
98
|
|
|
102
|
-
if @script.to_s.length < 1
|
|
103
|
-
invalid_properties.push('invalid value for "script", the character length must be great than or equal to 1.')
|
|
104
|
-
end
|
|
105
|
-
|
|
106
99
|
invalid_properties
|
|
107
100
|
end
|
|
108
101
|
|
|
@@ -110,40 +103,10 @@ module PulpcoreClient
|
|
|
110
103
|
# @return true if the model is valid
|
|
111
104
|
def valid?
|
|
112
105
|
return false if @name.nil?
|
|
113
|
-
return false if @name.to_s.length < 1
|
|
114
106
|
return false if @script.nil?
|
|
115
|
-
return false if @script.to_s.length < 1
|
|
116
107
|
true
|
|
117
108
|
end
|
|
118
109
|
|
|
119
|
-
# Custom attribute writer method with validation
|
|
120
|
-
# @param [Object] name Value to be assigned
|
|
121
|
-
def name=(name)
|
|
122
|
-
if name.nil?
|
|
123
|
-
fail ArgumentError, 'name cannot be nil'
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
if name.to_s.length < 1
|
|
127
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
@name = name
|
|
131
|
-
end
|
|
132
|
-
|
|
133
|
-
# Custom attribute writer method with validation
|
|
134
|
-
# @param [Object] script Value to be assigned
|
|
135
|
-
def script=(script)
|
|
136
|
-
if script.nil?
|
|
137
|
-
fail ArgumentError, 'script cannot be nil'
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
if script.to_s.length < 1
|
|
141
|
-
fail ArgumentError, 'invalid value for "script", the character length must be great than or equal to 1.'
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
@script = script
|
|
145
|
-
end
|
|
146
|
-
|
|
147
110
|
# Checks equality by comparing each attribute.
|
|
148
111
|
# @param [Object] Object to be compared
|
|
149
112
|
def ==(o)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
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
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -13,7 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module PulpcoreClient
|
|
16
|
-
|
|
16
|
+
# Serializer for the status information of the app
|
|
17
|
+
class StatusResponse
|
|
17
18
|
# Version information of Pulp components
|
|
18
19
|
attr_accessor :versions
|
|
19
20
|
|
|
@@ -23,10 +24,13 @@ module PulpcoreClient
|
|
|
23
24
|
# List of online content apps known to the application. An online content app is actively heartbeating and can serve data to clients
|
|
24
25
|
attr_accessor :online_content_apps
|
|
25
26
|
|
|
27
|
+
# Database connection information
|
|
26
28
|
attr_accessor :database_connection
|
|
27
29
|
|
|
30
|
+
# Redis connection information
|
|
28
31
|
attr_accessor :redis_connection
|
|
29
32
|
|
|
33
|
+
# Storage information
|
|
30
34
|
attr_accessor :storage
|
|
31
35
|
|
|
32
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -44,12 +48,12 @@ module PulpcoreClient
|
|
|
44
48
|
# Attribute type mapping.
|
|
45
49
|
def self.openapi_types
|
|
46
50
|
{
|
|
47
|
-
:'versions' => :'Array<
|
|
48
|
-
:'online_workers' => :'Array<
|
|
49
|
-
:'online_content_apps' => :'Array<
|
|
50
|
-
:'database_connection' => :'
|
|
51
|
-
:'redis_connection' => :'
|
|
52
|
-
:'storage' => :'
|
|
51
|
+
:'versions' => :'Array<VersionResponse>',
|
|
52
|
+
:'online_workers' => :'Array<WorkerResponse>',
|
|
53
|
+
:'online_content_apps' => :'Array<ContentAppStatusResponse>',
|
|
54
|
+
:'database_connection' => :'DatabaseConnectionResponse',
|
|
55
|
+
:'redis_connection' => :'RedisConnectionResponse',
|
|
56
|
+
:'storage' => :'StorageResponse'
|
|
53
57
|
}
|
|
54
58
|
end
|
|
55
59
|
|
|
@@ -63,13 +67,13 @@ module PulpcoreClient
|
|
|
63
67
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
68
|
def initialize(attributes = {})
|
|
65
69
|
if (!attributes.is_a?(Hash))
|
|
66
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::
|
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::StatusResponse` initialize method"
|
|
67
71
|
end
|
|
68
72
|
|
|
69
73
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
74
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
75
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
72
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::
|
|
76
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::StatusResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
73
77
|
end
|
|
74
78
|
h[k.to_sym] = v
|
|
75
79
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
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
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -13,8 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module PulpcoreClient
|
|
16
|
-
#
|
|
17
|
-
class
|
|
16
|
+
# Serializer for information about the storage system
|
|
17
|
+
class StorageResponse
|
|
18
18
|
# Total number of bytes
|
|
19
19
|
attr_accessor :total
|
|
20
20
|
|
|
@@ -52,13 +52,13 @@ module PulpcoreClient
|
|
|
52
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
53
|
def initialize(attributes = {})
|
|
54
54
|
if (!attributes.is_a?(Hash))
|
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::StorageResponse` initialize method"
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
60
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::
|
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::StorageResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
62
62
|
end
|
|
63
63
|
h[k.to_sym] = v
|
|
64
64
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
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
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -13,7 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module PulpcoreClient
|
|
16
|
-
class
|
|
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
|
+
class TaskGroupResponse
|
|
17
18
|
attr_accessor :pulp_href
|
|
18
19
|
|
|
19
20
|
# A description of the task group.
|
|
@@ -70,7 +71,7 @@ module PulpcoreClient
|
|
|
70
71
|
:'completed' => :'Integer',
|
|
71
72
|
:'canceled' => :'Integer',
|
|
72
73
|
:'failed' => :'Integer',
|
|
73
|
-
:'group_progress_reports' => :'Array<
|
|
74
|
+
:'group_progress_reports' => :'Array<GroupProgressReportResponse>'
|
|
74
75
|
}
|
|
75
76
|
end
|
|
76
77
|
|
|
@@ -84,13 +85,13 @@ module PulpcoreClient
|
|
|
84
85
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
85
86
|
def initialize(attributes = {})
|
|
86
87
|
if (!attributes.is_a?(Hash))
|
|
87
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::
|
|
88
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::TaskGroupResponse` initialize method"
|
|
88
89
|
end
|
|
89
90
|
|
|
90
91
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
91
92
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
92
93
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
93
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::
|
|
94
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::TaskGroupResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
94
95
|
end
|
|
95
96
|
h[k.to_sym] = v
|
|
96
97
|
}
|
|
@@ -146,10 +147,6 @@ module PulpcoreClient
|
|
|
146
147
|
invalid_properties.push('invalid value for "description", description cannot be nil.')
|
|
147
148
|
end
|
|
148
149
|
|
|
149
|
-
if @description.to_s.length < 1
|
|
150
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
151
|
-
end
|
|
152
|
-
|
|
153
150
|
if @all_tasks_dispatched.nil?
|
|
154
151
|
invalid_properties.push('invalid value for "all_tasks_dispatched", all_tasks_dispatched cannot be nil.')
|
|
155
152
|
end
|
|
@@ -161,25 +158,10 @@ module PulpcoreClient
|
|
|
161
158
|
# @return true if the model is valid
|
|
162
159
|
def valid?
|
|
163
160
|
return false if @description.nil?
|
|
164
|
-
return false if @description.to_s.length < 1
|
|
165
161
|
return false if @all_tasks_dispatched.nil?
|
|
166
162
|
true
|
|
167
163
|
end
|
|
168
164
|
|
|
169
|
-
# Custom attribute writer method with validation
|
|
170
|
-
# @param [Object] description Value to be assigned
|
|
171
|
-
def description=(description)
|
|
172
|
-
if description.nil?
|
|
173
|
-
fail ArgumentError, 'description cannot be nil'
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
if description.to_s.length < 1
|
|
177
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
178
|
-
end
|
|
179
|
-
|
|
180
|
-
@description = description
|
|
181
|
-
end
|
|
182
|
-
|
|
183
165
|
# Checks equality by comparing each attribute.
|
|
184
166
|
# @param [Object] Object to be compared
|
|
185
167
|
def ==(o)
|