pulpcore_client 3.5.0 → 3.6.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,378 @@
|
|
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 User.
|
17
|
+
class UserResponse
|
18
|
+
attr_accessor :pulp_href
|
19
|
+
|
20
|
+
attr_accessor :id
|
21
|
+
|
22
|
+
# Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
|
23
|
+
attr_accessor :username
|
24
|
+
|
25
|
+
# First name
|
26
|
+
attr_accessor :first_name
|
27
|
+
|
28
|
+
# Last name
|
29
|
+
attr_accessor :last_name
|
30
|
+
|
31
|
+
# Email address
|
32
|
+
attr_accessor :email
|
33
|
+
|
34
|
+
# Designates whether the user can log into this admin site.
|
35
|
+
attr_accessor :is_staff
|
36
|
+
|
37
|
+
# Designates whether this user should be treated as active.
|
38
|
+
attr_accessor :is_active
|
39
|
+
|
40
|
+
# Date joined
|
41
|
+
attr_accessor :date_joined
|
42
|
+
|
43
|
+
attr_accessor :groups
|
44
|
+
|
45
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
46
|
+
def self.attribute_map
|
47
|
+
{
|
48
|
+
:'pulp_href' => :'pulp_href',
|
49
|
+
:'id' => :'id',
|
50
|
+
:'username' => :'username',
|
51
|
+
:'first_name' => :'first_name',
|
52
|
+
:'last_name' => :'last_name',
|
53
|
+
:'email' => :'email',
|
54
|
+
:'is_staff' => :'is_staff',
|
55
|
+
:'is_active' => :'is_active',
|
56
|
+
:'date_joined' => :'date_joined',
|
57
|
+
:'groups' => :'groups'
|
58
|
+
}
|
59
|
+
end
|
60
|
+
|
61
|
+
# Attribute type mapping.
|
62
|
+
def self.openapi_types
|
63
|
+
{
|
64
|
+
:'pulp_href' => :'String',
|
65
|
+
:'id' => :'Integer',
|
66
|
+
:'username' => :'String',
|
67
|
+
:'first_name' => :'String',
|
68
|
+
:'last_name' => :'String',
|
69
|
+
:'email' => :'String',
|
70
|
+
:'is_staff' => :'Boolean',
|
71
|
+
:'is_active' => :'Boolean',
|
72
|
+
:'date_joined' => :'DateTime',
|
73
|
+
:'groups' => :'Array<UserGroupResponse>'
|
74
|
+
}
|
75
|
+
end
|
76
|
+
|
77
|
+
# List of attributes with nullable: true
|
78
|
+
def self.openapi_nullable
|
79
|
+
Set.new([
|
80
|
+
])
|
81
|
+
end
|
82
|
+
|
83
|
+
# Initializes the object
|
84
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
85
|
+
def initialize(attributes = {})
|
86
|
+
if (!attributes.is_a?(Hash))
|
87
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::UserResponse` initialize method"
|
88
|
+
end
|
89
|
+
|
90
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
91
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
92
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
93
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::UserResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
94
|
+
end
|
95
|
+
h[k.to_sym] = v
|
96
|
+
}
|
97
|
+
|
98
|
+
if attributes.key?(:'pulp_href')
|
99
|
+
self.pulp_href = attributes[:'pulp_href']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.key?(:'id')
|
103
|
+
self.id = attributes[:'id']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.key?(:'username')
|
107
|
+
self.username = attributes[:'username']
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes.key?(:'first_name')
|
111
|
+
self.first_name = attributes[:'first_name']
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.key?(:'last_name')
|
115
|
+
self.last_name = attributes[:'last_name']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.key?(:'email')
|
119
|
+
self.email = attributes[:'email']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'is_staff')
|
123
|
+
self.is_staff = attributes[:'is_staff']
|
124
|
+
else
|
125
|
+
self.is_staff = false
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.key?(:'is_active')
|
129
|
+
self.is_active = attributes[:'is_active']
|
130
|
+
else
|
131
|
+
self.is_active = true
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes.key?(:'date_joined')
|
135
|
+
self.date_joined = attributes[:'date_joined']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes.key?(:'groups')
|
139
|
+
if (value = attributes[:'groups']).is_a?(Array)
|
140
|
+
self.groups = value
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
146
|
+
# @return Array for valid properties with the reasons
|
147
|
+
def list_invalid_properties
|
148
|
+
invalid_properties = Array.new
|
149
|
+
if @username.nil?
|
150
|
+
invalid_properties.push('invalid value for "username", username cannot be nil.')
|
151
|
+
end
|
152
|
+
|
153
|
+
if @username.to_s.length > 150
|
154
|
+
invalid_properties.push('invalid value for "username", the character length must be smaller than or equal to 150.')
|
155
|
+
end
|
156
|
+
|
157
|
+
if @first_name.nil?
|
158
|
+
invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
|
159
|
+
end
|
160
|
+
|
161
|
+
if @first_name.to_s.length > 150
|
162
|
+
invalid_properties.push('invalid value for "first_name", the character length must be smaller than or equal to 150.')
|
163
|
+
end
|
164
|
+
|
165
|
+
if @last_name.nil?
|
166
|
+
invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
|
167
|
+
end
|
168
|
+
|
169
|
+
if @last_name.to_s.length > 150
|
170
|
+
invalid_properties.push('invalid value for "last_name", the character length must be smaller than or equal to 150.')
|
171
|
+
end
|
172
|
+
|
173
|
+
if @email.nil?
|
174
|
+
invalid_properties.push('invalid value for "email", email cannot be nil.')
|
175
|
+
end
|
176
|
+
|
177
|
+
invalid_properties
|
178
|
+
end
|
179
|
+
|
180
|
+
# Check to see if the all the properties in the model are valid
|
181
|
+
# @return true if the model is valid
|
182
|
+
def valid?
|
183
|
+
return false if @username.nil?
|
184
|
+
return false if @username.to_s.length > 150
|
185
|
+
return false if @first_name.nil?
|
186
|
+
return false if @first_name.to_s.length > 150
|
187
|
+
return false if @last_name.nil?
|
188
|
+
return false if @last_name.to_s.length > 150
|
189
|
+
return false if @email.nil?
|
190
|
+
true
|
191
|
+
end
|
192
|
+
|
193
|
+
# Custom attribute writer method with validation
|
194
|
+
# @param [Object] username Value to be assigned
|
195
|
+
def username=(username)
|
196
|
+
if username.nil?
|
197
|
+
fail ArgumentError, 'username cannot be nil'
|
198
|
+
end
|
199
|
+
|
200
|
+
if username.to_s.length > 150
|
201
|
+
fail ArgumentError, 'invalid value for "username", the character length must be smaller than or equal to 150.'
|
202
|
+
end
|
203
|
+
|
204
|
+
@username = username
|
205
|
+
end
|
206
|
+
|
207
|
+
# Custom attribute writer method with validation
|
208
|
+
# @param [Object] first_name Value to be assigned
|
209
|
+
def first_name=(first_name)
|
210
|
+
if first_name.nil?
|
211
|
+
fail ArgumentError, 'first_name cannot be nil'
|
212
|
+
end
|
213
|
+
|
214
|
+
if first_name.to_s.length > 150
|
215
|
+
fail ArgumentError, 'invalid value for "first_name", the character length must be smaller than or equal to 150.'
|
216
|
+
end
|
217
|
+
|
218
|
+
@first_name = first_name
|
219
|
+
end
|
220
|
+
|
221
|
+
# Custom attribute writer method with validation
|
222
|
+
# @param [Object] last_name Value to be assigned
|
223
|
+
def last_name=(last_name)
|
224
|
+
if last_name.nil?
|
225
|
+
fail ArgumentError, 'last_name cannot be nil'
|
226
|
+
end
|
227
|
+
|
228
|
+
if last_name.to_s.length > 150
|
229
|
+
fail ArgumentError, 'invalid value for "last_name", the character length must be smaller than or equal to 150.'
|
230
|
+
end
|
231
|
+
|
232
|
+
@last_name = last_name
|
233
|
+
end
|
234
|
+
|
235
|
+
# Checks equality by comparing each attribute.
|
236
|
+
# @param [Object] Object to be compared
|
237
|
+
def ==(o)
|
238
|
+
return true if self.equal?(o)
|
239
|
+
self.class == o.class &&
|
240
|
+
pulp_href == o.pulp_href &&
|
241
|
+
id == o.id &&
|
242
|
+
username == o.username &&
|
243
|
+
first_name == o.first_name &&
|
244
|
+
last_name == o.last_name &&
|
245
|
+
email == o.email &&
|
246
|
+
is_staff == o.is_staff &&
|
247
|
+
is_active == o.is_active &&
|
248
|
+
date_joined == o.date_joined &&
|
249
|
+
groups == o.groups
|
250
|
+
end
|
251
|
+
|
252
|
+
# @see the `==` method
|
253
|
+
# @param [Object] Object to be compared
|
254
|
+
def eql?(o)
|
255
|
+
self == o
|
256
|
+
end
|
257
|
+
|
258
|
+
# Calculates hash code according to all attributes.
|
259
|
+
# @return [Integer] Hash code
|
260
|
+
def hash
|
261
|
+
[pulp_href, id, username, first_name, last_name, email, is_staff, is_active, date_joined, groups].hash
|
262
|
+
end
|
263
|
+
|
264
|
+
# Builds the object from hash
|
265
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
266
|
+
# @return [Object] Returns the model itself
|
267
|
+
def self.build_from_hash(attributes)
|
268
|
+
new.build_from_hash(attributes)
|
269
|
+
end
|
270
|
+
|
271
|
+
# Builds the object from hash
|
272
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
273
|
+
# @return [Object] Returns the model itself
|
274
|
+
def build_from_hash(attributes)
|
275
|
+
return nil unless attributes.is_a?(Hash)
|
276
|
+
self.class.openapi_types.each_pair do |key, type|
|
277
|
+
if type =~ /\AArray<(.*)>/i
|
278
|
+
# check to ensure the input is an array given that the attribute
|
279
|
+
# is documented as an array but the input is not
|
280
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
281
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
282
|
+
end
|
283
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
284
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
285
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
286
|
+
end
|
287
|
+
|
288
|
+
self
|
289
|
+
end
|
290
|
+
|
291
|
+
# Deserializes the data based on type
|
292
|
+
# @param string type Data type
|
293
|
+
# @param string value Value to be deserialized
|
294
|
+
# @return [Object] Deserialized data
|
295
|
+
def _deserialize(type, value)
|
296
|
+
case type.to_sym
|
297
|
+
when :DateTime
|
298
|
+
DateTime.parse(value)
|
299
|
+
when :Date
|
300
|
+
Date.parse(value)
|
301
|
+
when :String
|
302
|
+
value.to_s
|
303
|
+
when :Integer
|
304
|
+
value.to_i
|
305
|
+
when :Float
|
306
|
+
value.to_f
|
307
|
+
when :Boolean
|
308
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
309
|
+
true
|
310
|
+
else
|
311
|
+
false
|
312
|
+
end
|
313
|
+
when :Object
|
314
|
+
# generic object (usually a Hash), return directly
|
315
|
+
value
|
316
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
317
|
+
inner_type = Regexp.last_match[:inner_type]
|
318
|
+
value.map { |v| _deserialize(inner_type, v) }
|
319
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
320
|
+
k_type = Regexp.last_match[:k_type]
|
321
|
+
v_type = Regexp.last_match[:v_type]
|
322
|
+
{}.tap do |hash|
|
323
|
+
value.each do |k, v|
|
324
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
325
|
+
end
|
326
|
+
end
|
327
|
+
else # model
|
328
|
+
PulpcoreClient.const_get(type).build_from_hash(value)
|
329
|
+
end
|
330
|
+
end
|
331
|
+
|
332
|
+
# Returns the string representation of the object
|
333
|
+
# @return [String] String presentation of the object
|
334
|
+
def to_s
|
335
|
+
to_hash.to_s
|
336
|
+
end
|
337
|
+
|
338
|
+
# to_body is an alias to to_hash (backward compatibility)
|
339
|
+
# @return [Hash] Returns the object in the form of hash
|
340
|
+
def to_body
|
341
|
+
to_hash
|
342
|
+
end
|
343
|
+
|
344
|
+
# Returns the object in the form of hash
|
345
|
+
# @return [Hash] Returns the object in the form of hash
|
346
|
+
def to_hash
|
347
|
+
hash = {}
|
348
|
+
self.class.attribute_map.each_pair do |attr, param|
|
349
|
+
value = self.send(attr)
|
350
|
+
if value.nil?
|
351
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
352
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
353
|
+
end
|
354
|
+
|
355
|
+
hash[param] = _to_hash(value)
|
356
|
+
end
|
357
|
+
hash
|
358
|
+
end
|
359
|
+
|
360
|
+
# Outputs non-array value in the form of hash
|
361
|
+
# For object, use to_hash. Otherwise, just return the value
|
362
|
+
# @param [Object] value Any valid value
|
363
|
+
# @return [Hash] Returns the value in the form of hash
|
364
|
+
def _to_hash(value)
|
365
|
+
if value.is_a?(Array)
|
366
|
+
value.compact.map { |v| _to_hash(v) }
|
367
|
+
elsif value.is_a?(Hash)
|
368
|
+
{}.tap do |hash|
|
369
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
370
|
+
end
|
371
|
+
elsif value.respond_to? :to_hash
|
372
|
+
value.to_hash
|
373
|
+
else
|
374
|
+
value
|
375
|
+
end
|
376
|
+
end
|
377
|
+
end
|
378
|
+
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
|
-
#
|
17
|
-
class
|
16
|
+
# Serializer for the version information of Pulp components
|
17
|
+
class VersionResponse
|
18
18
|
# Name of a versioned component of Pulp
|
19
19
|
attr_accessor :component
|
20
20
|
|
@@ -47,13 +47,13 @@ module PulpcoreClient
|
|
47
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
48
|
def initialize(attributes = {})
|
49
49
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::VersionResponse` initialize method"
|
51
51
|
end
|
52
52
|
|
53
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
54
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::VersionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
57
|
end
|
58
58
|
h[k.to_sym] = v
|
59
59
|
}
|
@@ -75,18 +75,10 @@ module PulpcoreClient
|
|
75
75
|
invalid_properties.push('invalid value for "component", component cannot be nil.')
|
76
76
|
end
|
77
77
|
|
78
|
-
if @component.to_s.length < 1
|
79
|
-
invalid_properties.push('invalid value for "component", the character length must be great than or equal to 1.')
|
80
|
-
end
|
81
|
-
|
82
78
|
if @version.nil?
|
83
79
|
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
84
80
|
end
|
85
81
|
|
86
|
-
if @version.to_s.length < 1
|
87
|
-
invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
|
88
|
-
end
|
89
|
-
|
90
82
|
invalid_properties
|
91
83
|
end
|
92
84
|
|
@@ -94,40 +86,10 @@ module PulpcoreClient
|
|
94
86
|
# @return true if the model is valid
|
95
87
|
def valid?
|
96
88
|
return false if @component.nil?
|
97
|
-
return false if @component.to_s.length < 1
|
98
89
|
return false if @version.nil?
|
99
|
-
return false if @version.to_s.length < 1
|
100
90
|
true
|
101
91
|
end
|
102
92
|
|
103
|
-
# Custom attribute writer method with validation
|
104
|
-
# @param [Object] component Value to be assigned
|
105
|
-
def component=(component)
|
106
|
-
if component.nil?
|
107
|
-
fail ArgumentError, 'component cannot be nil'
|
108
|
-
end
|
109
|
-
|
110
|
-
if component.to_s.length < 1
|
111
|
-
fail ArgumentError, 'invalid value for "component", the character length must be great than or equal to 1.'
|
112
|
-
end
|
113
|
-
|
114
|
-
@component = component
|
115
|
-
end
|
116
|
-
|
117
|
-
# Custom attribute writer method with validation
|
118
|
-
# @param [Object] version Value to be assigned
|
119
|
-
def version=(version)
|
120
|
-
if version.nil?
|
121
|
-
fail ArgumentError, 'version cannot be nil'
|
122
|
-
end
|
123
|
-
|
124
|
-
if version.to_s.length < 1
|
125
|
-
fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
|
126
|
-
end
|
127
|
-
|
128
|
-
@version = version
|
129
|
-
end
|
130
|
-
|
131
93
|
# Checks equality by comparing each attribute.
|
132
94
|
# @param [Object] Object to be compared
|
133
95
|
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,8 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpcoreClient
|
16
|
-
#
|
17
|
-
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 WorkerResponse
|
18
18
|
attr_accessor :pulp_href
|
19
19
|
|
20
20
|
# Timestamp of creation.
|
@@ -56,13 +56,13 @@ module PulpcoreClient
|
|
56
56
|
# @param [Hash] attributes Model attributes in the form of hash
|
57
57
|
def initialize(attributes = {})
|
58
58
|
if (!attributes.is_a?(Hash))
|
59
|
-
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::WorkerResponse` initialize method"
|
60
60
|
end
|
61
61
|
|
62
62
|
# check to see if the attribute exists and convert string to symbol for hash key
|
63
63
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
64
64
|
if (!self.class.attribute_map.key?(k.to_sym))
|
65
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::WorkerResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
66
66
|
end
|
67
67
|
h[k.to_sym] = v
|
68
68
|
}
|
@@ -88,30 +88,15 @@ module PulpcoreClient
|
|
88
88
|
# @return Array for valid properties with the reasons
|
89
89
|
def list_invalid_properties
|
90
90
|
invalid_properties = Array.new
|
91
|
-
if !@name.nil? && @name.to_s.length < 1
|
92
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
93
|
-
end
|
94
|
-
|
95
91
|
invalid_properties
|
96
92
|
end
|
97
93
|
|
98
94
|
# Check to see if the all the properties in the model are valid
|
99
95
|
# @return true if the model is valid
|
100
96
|
def valid?
|
101
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
102
97
|
true
|
103
98
|
end
|
104
99
|
|
105
|
-
# Custom attribute writer method with validation
|
106
|
-
# @param [Object] name Value to be assigned
|
107
|
-
def name=(name)
|
108
|
-
if !name.nil? && name.to_s.length < 1
|
109
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
110
|
-
end
|
111
|
-
|
112
|
-
@name = name
|
113
|
-
end
|
114
|
-
|
115
100
|
# Checks equality by comparing each attribute.
|
116
101
|
# @param [Object] Object to be compared
|
117
102
|
def ==(o)
|
@@ -1,15 +1,15 @@
|
|
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
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module PulpcoreClient
|
14
|
-
VERSION = '3.
|
14
|
+
VERSION = '3.6.0'
|
15
15
|
end
|
data/lib/pulpcore_client.rb
CHANGED
@@ -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
|
|
@@ -17,14 +17,26 @@ require 'pulpcore_client/version'
|
|
17
17
|
require 'pulpcore_client/configuration'
|
18
18
|
|
19
19
|
# Models
|
20
|
+
require 'pulpcore_client/models/access_policy'
|
21
|
+
require 'pulpcore_client/models/access_policy_response'
|
20
22
|
require 'pulpcore_client/models/artifact'
|
23
|
+
require 'pulpcore_client/models/artifact_response'
|
21
24
|
require 'pulpcore_client/models/async_operation_response'
|
22
|
-
require 'pulpcore_client/models/
|
23
|
-
require 'pulpcore_client/models/
|
24
|
-
require 'pulpcore_client/models/
|
25
|
-
require 'pulpcore_client/models/
|
25
|
+
require 'pulpcore_client/models/content_app_status_response'
|
26
|
+
require 'pulpcore_client/models/database_connection_response'
|
27
|
+
require 'pulpcore_client/models/group'
|
28
|
+
require 'pulpcore_client/models/group_progress_report_response'
|
29
|
+
require 'pulpcore_client/models/group_response'
|
30
|
+
require 'pulpcore_client/models/group_user'
|
31
|
+
require 'pulpcore_client/models/group_user_response'
|
32
|
+
require 'pulpcore_client/models/import_response'
|
26
33
|
require 'pulpcore_client/models/inline_response200'
|
27
34
|
require 'pulpcore_client/models/inline_response2001'
|
35
|
+
require 'pulpcore_client/models/inline_response20010'
|
36
|
+
require 'pulpcore_client/models/inline_response20011'
|
37
|
+
require 'pulpcore_client/models/inline_response20012'
|
38
|
+
require 'pulpcore_client/models/inline_response20013'
|
39
|
+
require 'pulpcore_client/models/inline_response20014'
|
28
40
|
require 'pulpcore_client/models/inline_response2002'
|
29
41
|
require 'pulpcore_client/models/inline_response2003'
|
30
42
|
require 'pulpcore_client/models/inline_response2004'
|
@@ -33,29 +45,46 @@ require 'pulpcore_client/models/inline_response2006'
|
|
33
45
|
require 'pulpcore_client/models/inline_response2007'
|
34
46
|
require 'pulpcore_client/models/inline_response2008'
|
35
47
|
require 'pulpcore_client/models/inline_response2009'
|
36
|
-
require 'pulpcore_client/models/
|
48
|
+
require 'pulpcore_client/models/patched_access_policy'
|
49
|
+
require 'pulpcore_client/models/patched_group'
|
50
|
+
require 'pulpcore_client/models/patched_pulp_exporter'
|
51
|
+
require 'pulpcore_client/models/patched_pulp_importer'
|
52
|
+
require 'pulpcore_client/models/patched_task_cancel'
|
53
|
+
require 'pulpcore_client/models/permission_response'
|
54
|
+
require 'pulpcore_client/models/progress_report_response'
|
37
55
|
require 'pulpcore_client/models/pulp_export'
|
56
|
+
require 'pulpcore_client/models/pulp_export_response'
|
38
57
|
require 'pulpcore_client/models/pulp_exporter'
|
58
|
+
require 'pulpcore_client/models/pulp_exporter_response'
|
39
59
|
require 'pulpcore_client/models/pulp_import'
|
40
60
|
require 'pulpcore_client/models/pulp_importer'
|
41
|
-
require 'pulpcore_client/models/
|
42
|
-
require 'pulpcore_client/models/
|
43
|
-
require 'pulpcore_client/models/
|
44
|
-
require 'pulpcore_client/models/
|
45
|
-
require 'pulpcore_client/models/
|
46
|
-
require 'pulpcore_client/models/
|
47
|
-
require 'pulpcore_client/models/
|
61
|
+
require 'pulpcore_client/models/pulp_importer_response'
|
62
|
+
require 'pulpcore_client/models/redis_connection_response'
|
63
|
+
require 'pulpcore_client/models/signing_service_response'
|
64
|
+
require 'pulpcore_client/models/status_response'
|
65
|
+
require 'pulpcore_client/models/storage_response'
|
66
|
+
require 'pulpcore_client/models/task_group_response'
|
67
|
+
require 'pulpcore_client/models/task_response'
|
48
68
|
require 'pulpcore_client/models/upload'
|
49
69
|
require 'pulpcore_client/models/upload_chunk'
|
70
|
+
require 'pulpcore_client/models/upload_chunk_response'
|
50
71
|
require 'pulpcore_client/models/upload_commit'
|
51
|
-
require 'pulpcore_client/models/
|
52
|
-
require 'pulpcore_client/models/
|
53
|
-
require 'pulpcore_client/models/
|
72
|
+
require 'pulpcore_client/models/upload_detail_response'
|
73
|
+
require 'pulpcore_client/models/upload_response'
|
74
|
+
require 'pulpcore_client/models/user_group_response'
|
75
|
+
require 'pulpcore_client/models/user_response'
|
76
|
+
require 'pulpcore_client/models/version_response'
|
77
|
+
require 'pulpcore_client/models/worker_response'
|
54
78
|
|
55
79
|
# APIs
|
80
|
+
require 'pulpcore_client/api/access_policies_api'
|
56
81
|
require 'pulpcore_client/api/artifacts_api'
|
57
82
|
require 'pulpcore_client/api/exporters_core_exports_api'
|
58
83
|
require 'pulpcore_client/api/exporters_pulp_api'
|
84
|
+
require 'pulpcore_client/api/groups_api'
|
85
|
+
require 'pulpcore_client/api/groups_model_permissions_api'
|
86
|
+
require 'pulpcore_client/api/groups_object_permissions_api'
|
87
|
+
require 'pulpcore_client/api/groups_users_api'
|
59
88
|
require 'pulpcore_client/api/importers_core_imports_api'
|
60
89
|
require 'pulpcore_client/api/importers_pulp_api'
|
61
90
|
require 'pulpcore_client/api/orphans_api'
|
@@ -64,6 +93,7 @@ require 'pulpcore_client/api/status_api'
|
|
64
93
|
require 'pulpcore_client/api/task_groups_api'
|
65
94
|
require 'pulpcore_client/api/tasks_api'
|
66
95
|
require 'pulpcore_client/api/uploads_api'
|
96
|
+
require 'pulpcore_client/api/users_api'
|
67
97
|
require 'pulpcore_client/api/workers_api'
|
68
98
|
|
69
99
|
module PulpcoreClient
|