pulp_rpm_client 3.9.1 → 3.10.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 +5 -4
- data/docs/ContentAdvisoriesApi.md +28 -28
- data/docs/ContentDistributionTreesApi.md +6 -6
- data/docs/ContentModulemdDefaultsApi.md +16 -16
- data/docs/ContentModulemdsApi.md +16 -16
- data/docs/ContentPackagecategoriesApi.md +6 -6
- data/docs/ContentPackageenvironmentsApi.md +6 -6
- data/docs/ContentPackagegroupsApi.md +6 -6
- data/docs/ContentPackagelangpacksApi.md +6 -6
- data/docs/ContentPackagesApi.md +48 -48
- data/docs/ContentRepoMetadataFilesApi.md +6 -6
- data/docs/DistributionsRpmApi.md +20 -20
- data/docs/PatchedrpmRpmRemote.md +7 -1
- data/docs/PublicationsRpmApi.md +14 -14
- data/docs/RemotesRpmApi.md +24 -24
- data/docs/RepositoriesRpmApi.md +12 -12
- data/docs/RepositoriesRpmVersionsApi.md +28 -28
- data/docs/RpmRepositorySyncURL.md +1 -1
- data/docs/RpmRpmRemote.md +7 -1
- data/docs/RpmRpmRemoteResponse.md +3 -7
- data/docs/SkipTypesEnum.md +16 -0
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +32 -32
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +6 -6
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +18 -18
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +18 -18
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +6 -6
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +6 -6
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +6 -6
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +6 -6
- data/lib/pulp_rpm_client/api/content_packages_api.rb +64 -56
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +6 -6
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +22 -22
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +15 -15
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +26 -26
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +13 -13
- data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +50 -30
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +36 -2
- data/lib/pulp_rpm_client/models/rpm_repository_sync_url.rb +1 -23
- data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +36 -2
- data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +14 -35
- data/lib/pulp_rpm_client/models/skip_types_enum.rb +35 -0
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/lib/pulp_rpm_client.rb +1 -0
- data/spec/api/content_advisories_api_spec.rb +14 -14
- data/spec/api/content_distribution_trees_api_spec.rb +3 -3
- data/spec/api/content_modulemd_defaults_api_spec.rb +8 -8
- data/spec/api/content_modulemds_api_spec.rb +8 -8
- data/spec/api/content_packagecategories_api_spec.rb +3 -3
- data/spec/api/content_packageenvironments_api_spec.rb +3 -3
- data/spec/api/content_packagegroups_api_spec.rb +3 -3
- data/spec/api/content_packagelangpacks_api_spec.rb +3 -3
- data/spec/api/content_packages_api_spec.rb +24 -24
- data/spec/api/content_repo_metadata_files_api_spec.rb +3 -3
- data/spec/api/distributions_rpm_api_spec.rb +10 -10
- data/spec/api/publications_rpm_api_spec.rb +7 -7
- data/spec/api/remotes_rpm_api_spec.rb +12 -12
- data/spec/api/repositories_rpm_api_spec.rb +6 -6
- data/spec/api/repositories_rpm_versions_api_spec.rb +14 -14
- data/spec/models/patchedrpm_rpm_remote_spec.rb +18 -0
- data/spec/models/rpm_repository_sync_url_spec.rb +0 -4
- data/spec/models/rpm_rpm_remote_response_spec.rb +6 -18
- data/spec/models/rpm_rpm_remote_spec.rb +18 -0
- data/spec/models/skip_types_enum_spec.rb +35 -0
- metadata +64 -60
@@ -149,14 +149,14 @@ module PulpRpmClient
|
|
149
149
|
# A ViewSet for RpmRepository.
|
150
150
|
# @param [Hash] opts the optional parameters
|
151
151
|
# @option opts [Integer] :limit Number of results to return per page.
|
152
|
-
# @option opts [String] :name
|
153
|
-
# @option opts [String] :name__contains
|
154
|
-
# @option opts [String] :name__icontains
|
155
|
-
# @option opts [String] :name__in
|
156
|
-
# @option opts [String] :name__startswith
|
152
|
+
# @option opts [String] :name
|
153
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
154
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
155
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
156
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
157
157
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
158
158
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
159
|
-
# @option opts [String] :pulp_label_select
|
159
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
160
160
|
# @option opts [String] :fields A list of fields to include in the response.
|
161
161
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
162
162
|
# @return [PaginatedrpmRpmRepositoryResponseList]
|
@@ -169,14 +169,14 @@ module PulpRpmClient
|
|
169
169
|
# A ViewSet for RpmRepository.
|
170
170
|
# @param [Hash] opts the optional parameters
|
171
171
|
# @option opts [Integer] :limit Number of results to return per page.
|
172
|
-
# @option opts [String] :name
|
173
|
-
# @option opts [String] :name__contains
|
174
|
-
# @option opts [String] :name__icontains
|
175
|
-
# @option opts [String] :name__in
|
176
|
-
# @option opts [String] :name__startswith
|
172
|
+
# @option opts [String] :name
|
173
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
174
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
175
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
176
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
177
177
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
178
178
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
179
|
-
# @option opts [String] :pulp_label_select
|
179
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
180
180
|
# @option opts [String] :fields A list of fields to include in the response.
|
181
181
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
182
182
|
# @return [Array<(PaginatedrpmRpmRepositoryResponseList, Integer, Hash)>] PaginatedrpmRpmRepositoryResponseList data, response status code and response headers
|
@@ -193,7 +193,7 @@ module PulpRpmClient
|
|
193
193
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
194
194
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
195
195
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
196
|
-
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
196
|
+
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
197
197
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
198
198
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
199
199
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
@@ -85,23 +85,23 @@ module PulpRpmClient
|
|
85
85
|
# RpmRepositoryVersion represents a single rpm repository version.
|
86
86
|
# @param rpm_rpm_repository_href [String]
|
87
87
|
# @param [Hash] opts the optional parameters
|
88
|
-
# @option opts [String] :content
|
89
|
-
# @option opts [String] :content__in
|
88
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
89
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
90
90
|
# @option opts [Integer] :limit Number of results to return per page.
|
91
|
-
# @option opts [
|
92
|
-
# @option opts [
|
93
|
-
# @option opts [
|
94
|
-
# @option opts [
|
95
|
-
# @option opts [
|
96
|
-
# @option opts [
|
91
|
+
# @option opts [Integer] :number
|
92
|
+
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
93
|
+
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
94
|
+
# @option opts [Integer] :number__lt Filter results where number is less than value
|
95
|
+
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
96
|
+
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
97
97
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
98
98
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
99
|
-
# @option opts [
|
100
|
-
# @option opts [
|
101
|
-
# @option opts [
|
102
|
-
# @option opts [
|
103
|
-
# @option opts [
|
104
|
-
# @option opts [
|
99
|
+
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
100
|
+
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
101
|
+
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
102
|
+
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
103
|
+
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
104
|
+
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
105
105
|
# @option opts [String] :fields A list of fields to include in the response.
|
106
106
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
107
107
|
# @return [PaginatedRepositoryVersionResponseList]
|
@@ -114,23 +114,23 @@ module PulpRpmClient
|
|
114
114
|
# RpmRepositoryVersion represents a single rpm repository version.
|
115
115
|
# @param rpm_rpm_repository_href [String]
|
116
116
|
# @param [Hash] opts the optional parameters
|
117
|
-
# @option opts [String] :content
|
118
|
-
# @option opts [String] :content__in
|
117
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
118
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
119
119
|
# @option opts [Integer] :limit Number of results to return per page.
|
120
|
-
# @option opts [
|
121
|
-
# @option opts [
|
122
|
-
# @option opts [
|
123
|
-
# @option opts [
|
124
|
-
# @option opts [
|
125
|
-
# @option opts [
|
120
|
+
# @option opts [Integer] :number
|
121
|
+
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
122
|
+
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
123
|
+
# @option opts [Integer] :number__lt Filter results where number is less than value
|
124
|
+
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
125
|
+
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
126
126
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
127
127
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
128
|
-
# @option opts [
|
129
|
-
# @option opts [
|
130
|
-
# @option opts [
|
131
|
-
# @option opts [
|
132
|
-
# @option opts [
|
133
|
-
# @option opts [
|
128
|
+
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
129
|
+
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
130
|
+
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
131
|
+
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
132
|
+
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
133
|
+
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
134
134
|
# @option opts [String] :fields A list of fields to include in the response.
|
135
135
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
136
136
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
@@ -142,6 +142,26 @@ module PulpRpmClient
|
|
142
142
|
if @api_client.config.client_side_validation && rpm_rpm_repository_href.nil?
|
143
143
|
fail ArgumentError, "Missing the required parameter 'rpm_rpm_repository_href' when calling RepositoriesRpmVersionsApi.list"
|
144
144
|
end
|
145
|
+
if @api_client.config.client_side_validation && !opts[:'number'].nil? && opts[:'number'] > 2147483647
|
146
|
+
fail ArgumentError, 'invalid value for "opts[:"number"]" when calling RepositoriesRpmVersionsApi.list, must be smaller than or equal to 2147483647.'
|
147
|
+
end
|
148
|
+
|
149
|
+
if @api_client.config.client_side_validation && !opts[:'number__gt'].nil? && opts[:'number__gt'] > 2147483647
|
150
|
+
fail ArgumentError, 'invalid value for "opts[:"number__gt"]" when calling RepositoriesRpmVersionsApi.list, must be smaller than or equal to 2147483647.'
|
151
|
+
end
|
152
|
+
|
153
|
+
if @api_client.config.client_side_validation && !opts[:'number__gte'].nil? && opts[:'number__gte'] > 2147483647
|
154
|
+
fail ArgumentError, 'invalid value for "opts[:"number__gte"]" when calling RepositoriesRpmVersionsApi.list, must be smaller than or equal to 2147483647.'
|
155
|
+
end
|
156
|
+
|
157
|
+
if @api_client.config.client_side_validation && !opts[:'number__lt'].nil? && opts[:'number__lt'] > 2147483647
|
158
|
+
fail ArgumentError, 'invalid value for "opts[:"number__lt"]" when calling RepositoriesRpmVersionsApi.list, must be smaller than or equal to 2147483647.'
|
159
|
+
end
|
160
|
+
|
161
|
+
if @api_client.config.client_side_validation && !opts[:'number__lte'].nil? && opts[:'number__lte'] > 2147483647
|
162
|
+
fail ArgumentError, 'invalid value for "opts[:"number__lte"]" when calling RepositoriesRpmVersionsApi.list, must be smaller than or equal to 2147483647.'
|
163
|
+
end
|
164
|
+
|
145
165
|
# resource path
|
146
166
|
local_var_path = '{rpm_rpm_repository_href}versions/'.sub('{' + 'rpm_rpm_repository_href' + '}', CGI.escape(rpm_rpm_repository_href.to_s).gsub('%2F', '/'))
|
147
167
|
|
@@ -155,7 +175,7 @@ module PulpRpmClient
|
|
155
175
|
query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
|
156
176
|
query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
|
157
177
|
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
158
|
-
query_params[:'number__range'] = opts[:'number__range'] if !opts[:'number__range'].nil?
|
178
|
+
query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
|
159
179
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
160
180
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
161
181
|
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
@@ -163,7 +183,7 @@ module PulpRpmClient
|
|
163
183
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
164
184
|
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
165
185
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
166
|
-
query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
|
186
|
+
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
167
187
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
168
188
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
169
189
|
|
@@ -33,9 +33,15 @@ module PulpRpmClient
|
|
33
33
|
# If True, TLS peer validation must be performed.
|
34
34
|
attr_accessor :tls_validation
|
35
35
|
|
36
|
-
# The proxy URL. Format: scheme://
|
36
|
+
# The proxy URL. Format: scheme://host:port
|
37
37
|
attr_accessor :proxy_url
|
38
38
|
|
39
|
+
# The username to authenticte to the proxy.
|
40
|
+
attr_accessor :proxy_username
|
41
|
+
|
42
|
+
# The password to authenticte to the proxy.
|
43
|
+
attr_accessor :proxy_password
|
44
|
+
|
39
45
|
# The username to be used for authentication when syncing.
|
40
46
|
attr_accessor :username
|
41
47
|
|
@@ -62,6 +68,9 @@ module PulpRpmClient
|
|
62
68
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
63
69
|
attr_accessor :sock_read_timeout
|
64
70
|
|
71
|
+
# Headers for aiohttp.Clientsession
|
72
|
+
attr_accessor :headers
|
73
|
+
|
65
74
|
# Limits total download rate in requests per second
|
66
75
|
attr_accessor :rate_limit
|
67
76
|
|
@@ -78,6 +87,8 @@ module PulpRpmClient
|
|
78
87
|
:'client_key' => :'client_key',
|
79
88
|
:'tls_validation' => :'tls_validation',
|
80
89
|
:'proxy_url' => :'proxy_url',
|
90
|
+
:'proxy_username' => :'proxy_username',
|
91
|
+
:'proxy_password' => :'proxy_password',
|
81
92
|
:'username' => :'username',
|
82
93
|
:'password' => :'password',
|
83
94
|
:'pulp_labels' => :'pulp_labels',
|
@@ -87,6 +98,7 @@ module PulpRpmClient
|
|
87
98
|
:'connect_timeout' => :'connect_timeout',
|
88
99
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
89
100
|
:'sock_read_timeout' => :'sock_read_timeout',
|
101
|
+
:'headers' => :'headers',
|
90
102
|
:'rate_limit' => :'rate_limit',
|
91
103
|
:'sles_auth_token' => :'sles_auth_token'
|
92
104
|
}
|
@@ -102,6 +114,8 @@ module PulpRpmClient
|
|
102
114
|
:'client_key' => :'String',
|
103
115
|
:'tls_validation' => :'Boolean',
|
104
116
|
:'proxy_url' => :'String',
|
117
|
+
:'proxy_username' => :'String',
|
118
|
+
:'proxy_password' => :'String',
|
105
119
|
:'username' => :'String',
|
106
120
|
:'password' => :'String',
|
107
121
|
:'pulp_labels' => :'Object',
|
@@ -111,6 +125,7 @@ module PulpRpmClient
|
|
111
125
|
:'connect_timeout' => :'Float',
|
112
126
|
:'sock_connect_timeout' => :'Float',
|
113
127
|
:'sock_read_timeout' => :'Float',
|
128
|
+
:'headers' => :'Array<Object>',
|
114
129
|
:'rate_limit' => :'Integer',
|
115
130
|
:'sles_auth_token' => :'String'
|
116
131
|
}
|
@@ -123,6 +138,8 @@ module PulpRpmClient
|
|
123
138
|
:'client_cert',
|
124
139
|
:'client_key',
|
125
140
|
:'proxy_url',
|
141
|
+
:'proxy_username',
|
142
|
+
:'proxy_password',
|
126
143
|
:'username',
|
127
144
|
:'password',
|
128
145
|
:'total_timeout',
|
@@ -177,6 +194,14 @@ module PulpRpmClient
|
|
177
194
|
self.proxy_url = attributes[:'proxy_url']
|
178
195
|
end
|
179
196
|
|
197
|
+
if attributes.key?(:'proxy_username')
|
198
|
+
self.proxy_username = attributes[:'proxy_username']
|
199
|
+
end
|
200
|
+
|
201
|
+
if attributes.key?(:'proxy_password')
|
202
|
+
self.proxy_password = attributes[:'proxy_password']
|
203
|
+
end
|
204
|
+
|
180
205
|
if attributes.key?(:'username')
|
181
206
|
self.username = attributes[:'username']
|
182
207
|
end
|
@@ -213,6 +238,12 @@ module PulpRpmClient
|
|
213
238
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
214
239
|
end
|
215
240
|
|
241
|
+
if attributes.key?(:'headers')
|
242
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
243
|
+
self.headers = value
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
216
247
|
if attributes.key?(:'rate_limit')
|
217
248
|
self.rate_limit = attributes[:'rate_limit']
|
218
249
|
end
|
@@ -322,6 +353,8 @@ module PulpRpmClient
|
|
322
353
|
client_key == o.client_key &&
|
323
354
|
tls_validation == o.tls_validation &&
|
324
355
|
proxy_url == o.proxy_url &&
|
356
|
+
proxy_username == o.proxy_username &&
|
357
|
+
proxy_password == o.proxy_password &&
|
325
358
|
username == o.username &&
|
326
359
|
password == o.password &&
|
327
360
|
pulp_labels == o.pulp_labels &&
|
@@ -331,6 +364,7 @@ module PulpRpmClient
|
|
331
364
|
connect_timeout == o.connect_timeout &&
|
332
365
|
sock_connect_timeout == o.sock_connect_timeout &&
|
333
366
|
sock_read_timeout == o.sock_read_timeout &&
|
367
|
+
headers == o.headers &&
|
334
368
|
rate_limit == o.rate_limit &&
|
335
369
|
sles_auth_token == o.sles_auth_token
|
336
370
|
end
|
@@ -344,7 +378,7 @@ module PulpRpmClient
|
|
344
378
|
# Calculates hash code according to all attributes.
|
345
379
|
# @return [Integer] Hash code
|
346
380
|
def hash
|
347
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, sles_auth_token].hash
|
381
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, sles_auth_token].hash
|
348
382
|
end
|
349
383
|
|
350
384
|
# Builds the object from hash
|
@@ -27,28 +27,6 @@ module PulpRpmClient
|
|
27
27
|
# Whether or not to optimize sync.
|
28
28
|
attr_accessor :optimize
|
29
29
|
|
30
|
-
class EnumAttributeValidator
|
31
|
-
attr_reader :datatype
|
32
|
-
attr_reader :allowable_values
|
33
|
-
|
34
|
-
def initialize(datatype, allowable_values)
|
35
|
-
@allowable_values = allowable_values.map do |value|
|
36
|
-
case datatype.to_s
|
37
|
-
when /Integer/i
|
38
|
-
value.to_i
|
39
|
-
when /Float/i
|
40
|
-
value.to_f
|
41
|
-
else
|
42
|
-
value
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
def valid?(value)
|
48
|
-
!value || allowable_values.include?(value)
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
31
|
def self.attribute_map
|
54
32
|
{
|
@@ -64,7 +42,7 @@ module PulpRpmClient
|
|
64
42
|
{
|
65
43
|
:'remote' => :'String',
|
66
44
|
:'mirror' => :'Boolean',
|
67
|
-
:'skip_types' => :'Array<
|
45
|
+
:'skip_types' => :'Array<SkipTypesEnum>',
|
68
46
|
:'optimize' => :'Boolean'
|
69
47
|
}
|
70
48
|
end
|
@@ -33,9 +33,15 @@ module PulpRpmClient
|
|
33
33
|
# If True, TLS peer validation must be performed.
|
34
34
|
attr_accessor :tls_validation
|
35
35
|
|
36
|
-
# The proxy URL. Format: scheme://
|
36
|
+
# The proxy URL. Format: scheme://host:port
|
37
37
|
attr_accessor :proxy_url
|
38
38
|
|
39
|
+
# The username to authenticte to the proxy.
|
40
|
+
attr_accessor :proxy_username
|
41
|
+
|
42
|
+
# The password to authenticte to the proxy.
|
43
|
+
attr_accessor :proxy_password
|
44
|
+
|
39
45
|
# The username to be used for authentication when syncing.
|
40
46
|
attr_accessor :username
|
41
47
|
|
@@ -62,6 +68,9 @@ module PulpRpmClient
|
|
62
68
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
63
69
|
attr_accessor :sock_read_timeout
|
64
70
|
|
71
|
+
# Headers for aiohttp.Clientsession
|
72
|
+
attr_accessor :headers
|
73
|
+
|
65
74
|
# Limits total download rate in requests per second
|
66
75
|
attr_accessor :rate_limit
|
67
76
|
|
@@ -78,6 +87,8 @@ module PulpRpmClient
|
|
78
87
|
:'client_key' => :'client_key',
|
79
88
|
:'tls_validation' => :'tls_validation',
|
80
89
|
:'proxy_url' => :'proxy_url',
|
90
|
+
:'proxy_username' => :'proxy_username',
|
91
|
+
:'proxy_password' => :'proxy_password',
|
81
92
|
:'username' => :'username',
|
82
93
|
:'password' => :'password',
|
83
94
|
:'pulp_labels' => :'pulp_labels',
|
@@ -87,6 +98,7 @@ module PulpRpmClient
|
|
87
98
|
:'connect_timeout' => :'connect_timeout',
|
88
99
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
89
100
|
:'sock_read_timeout' => :'sock_read_timeout',
|
101
|
+
:'headers' => :'headers',
|
90
102
|
:'rate_limit' => :'rate_limit',
|
91
103
|
:'sles_auth_token' => :'sles_auth_token'
|
92
104
|
}
|
@@ -102,6 +114,8 @@ module PulpRpmClient
|
|
102
114
|
:'client_key' => :'String',
|
103
115
|
:'tls_validation' => :'Boolean',
|
104
116
|
:'proxy_url' => :'String',
|
117
|
+
:'proxy_username' => :'String',
|
118
|
+
:'proxy_password' => :'String',
|
105
119
|
:'username' => :'String',
|
106
120
|
:'password' => :'String',
|
107
121
|
:'pulp_labels' => :'Object',
|
@@ -111,6 +125,7 @@ module PulpRpmClient
|
|
111
125
|
:'connect_timeout' => :'Float',
|
112
126
|
:'sock_connect_timeout' => :'Float',
|
113
127
|
:'sock_read_timeout' => :'Float',
|
128
|
+
:'headers' => :'Array<Object>',
|
114
129
|
:'rate_limit' => :'Integer',
|
115
130
|
:'sles_auth_token' => :'String'
|
116
131
|
}
|
@@ -123,6 +138,8 @@ module PulpRpmClient
|
|
123
138
|
:'client_cert',
|
124
139
|
:'client_key',
|
125
140
|
:'proxy_url',
|
141
|
+
:'proxy_username',
|
142
|
+
:'proxy_password',
|
126
143
|
:'username',
|
127
144
|
:'password',
|
128
145
|
:'total_timeout',
|
@@ -177,6 +194,14 @@ module PulpRpmClient
|
|
177
194
|
self.proxy_url = attributes[:'proxy_url']
|
178
195
|
end
|
179
196
|
|
197
|
+
if attributes.key?(:'proxy_username')
|
198
|
+
self.proxy_username = attributes[:'proxy_username']
|
199
|
+
end
|
200
|
+
|
201
|
+
if attributes.key?(:'proxy_password')
|
202
|
+
self.proxy_password = attributes[:'proxy_password']
|
203
|
+
end
|
204
|
+
|
180
205
|
if attributes.key?(:'username')
|
181
206
|
self.username = attributes[:'username']
|
182
207
|
end
|
@@ -213,6 +238,12 @@ module PulpRpmClient
|
|
213
238
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
214
239
|
end
|
215
240
|
|
241
|
+
if attributes.key?(:'headers')
|
242
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
243
|
+
self.headers = value
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
216
247
|
if attributes.key?(:'rate_limit')
|
217
248
|
self.rate_limit = attributes[:'rate_limit']
|
218
249
|
end
|
@@ -332,6 +363,8 @@ module PulpRpmClient
|
|
332
363
|
client_key == o.client_key &&
|
333
364
|
tls_validation == o.tls_validation &&
|
334
365
|
proxy_url == o.proxy_url &&
|
366
|
+
proxy_username == o.proxy_username &&
|
367
|
+
proxy_password == o.proxy_password &&
|
335
368
|
username == o.username &&
|
336
369
|
password == o.password &&
|
337
370
|
pulp_labels == o.pulp_labels &&
|
@@ -341,6 +374,7 @@ module PulpRpmClient
|
|
341
374
|
connect_timeout == o.connect_timeout &&
|
342
375
|
sock_connect_timeout == o.sock_connect_timeout &&
|
343
376
|
sock_read_timeout == o.sock_read_timeout &&
|
377
|
+
headers == o.headers &&
|
344
378
|
rate_limit == o.rate_limit &&
|
345
379
|
sles_auth_token == o.sles_auth_token
|
346
380
|
end
|
@@ -354,7 +388,7 @@ module PulpRpmClient
|
|
354
388
|
# Calculates hash code according to all attributes.
|
355
389
|
# @return [Integer] Hash code
|
356
390
|
def hash
|
357
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, sles_auth_token].hash
|
391
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, sles_auth_token].hash
|
358
392
|
end
|
359
393
|
|
360
394
|
# Builds the object from hash
|
@@ -32,21 +32,12 @@ module PulpRpmClient
|
|
32
32
|
# A PEM encoded client certificate used for authentication.
|
33
33
|
attr_accessor :client_cert
|
34
34
|
|
35
|
-
# A PEM encoded private key used for authentication.
|
36
|
-
attr_accessor :client_key
|
37
|
-
|
38
35
|
# If True, TLS peer validation must be performed.
|
39
36
|
attr_accessor :tls_validation
|
40
37
|
|
41
|
-
# The proxy URL. Format: scheme://
|
38
|
+
# The proxy URL. Format: scheme://host:port
|
42
39
|
attr_accessor :proxy_url
|
43
40
|
|
44
|
-
# The username to be used for authentication when syncing.
|
45
|
-
attr_accessor :username
|
46
|
-
|
47
|
-
# The password to be used for authentication when syncing.
|
48
|
-
attr_accessor :password
|
49
|
-
|
50
41
|
attr_accessor :pulp_labels
|
51
42
|
|
52
43
|
# Timestamp of the most recent update of the remote.
|
@@ -70,6 +61,9 @@ module PulpRpmClient
|
|
70
61
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
71
62
|
attr_accessor :sock_read_timeout
|
72
63
|
|
64
|
+
# Headers for aiohttp.Clientsession
|
65
|
+
attr_accessor :headers
|
66
|
+
|
73
67
|
# Limits total download rate in requests per second
|
74
68
|
attr_accessor :rate_limit
|
75
69
|
|
@@ -85,11 +79,8 @@ module PulpRpmClient
|
|
85
79
|
:'url' => :'url',
|
86
80
|
:'ca_cert' => :'ca_cert',
|
87
81
|
:'client_cert' => :'client_cert',
|
88
|
-
:'client_key' => :'client_key',
|
89
82
|
:'tls_validation' => :'tls_validation',
|
90
83
|
:'proxy_url' => :'proxy_url',
|
91
|
-
:'username' => :'username',
|
92
|
-
:'password' => :'password',
|
93
84
|
:'pulp_labels' => :'pulp_labels',
|
94
85
|
:'pulp_last_updated' => :'pulp_last_updated',
|
95
86
|
:'download_concurrency' => :'download_concurrency',
|
@@ -98,6 +89,7 @@ module PulpRpmClient
|
|
98
89
|
:'connect_timeout' => :'connect_timeout',
|
99
90
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
100
91
|
:'sock_read_timeout' => :'sock_read_timeout',
|
92
|
+
:'headers' => :'headers',
|
101
93
|
:'rate_limit' => :'rate_limit',
|
102
94
|
:'sles_auth_token' => :'sles_auth_token'
|
103
95
|
}
|
@@ -112,11 +104,8 @@ module PulpRpmClient
|
|
112
104
|
:'url' => :'String',
|
113
105
|
:'ca_cert' => :'String',
|
114
106
|
:'client_cert' => :'String',
|
115
|
-
:'client_key' => :'String',
|
116
107
|
:'tls_validation' => :'Boolean',
|
117
108
|
:'proxy_url' => :'String',
|
118
|
-
:'username' => :'String',
|
119
|
-
:'password' => :'String',
|
120
109
|
:'pulp_labels' => :'Object',
|
121
110
|
:'pulp_last_updated' => :'DateTime',
|
122
111
|
:'download_concurrency' => :'Integer',
|
@@ -125,6 +114,7 @@ module PulpRpmClient
|
|
125
114
|
:'connect_timeout' => :'Float',
|
126
115
|
:'sock_connect_timeout' => :'Float',
|
127
116
|
:'sock_read_timeout' => :'Float',
|
117
|
+
:'headers' => :'Array<Object>',
|
128
118
|
:'rate_limit' => :'Integer',
|
129
119
|
:'sles_auth_token' => :'String'
|
130
120
|
}
|
@@ -135,10 +125,7 @@ module PulpRpmClient
|
|
135
125
|
Set.new([
|
136
126
|
:'ca_cert',
|
137
127
|
:'client_cert',
|
138
|
-
:'client_key',
|
139
128
|
:'proxy_url',
|
140
|
-
:'username',
|
141
|
-
:'password',
|
142
129
|
:'total_timeout',
|
143
130
|
:'connect_timeout',
|
144
131
|
:'sock_connect_timeout',
|
@@ -187,10 +174,6 @@ module PulpRpmClient
|
|
187
174
|
self.client_cert = attributes[:'client_cert']
|
188
175
|
end
|
189
176
|
|
190
|
-
if attributes.key?(:'client_key')
|
191
|
-
self.client_key = attributes[:'client_key']
|
192
|
-
end
|
193
|
-
|
194
177
|
if attributes.key?(:'tls_validation')
|
195
178
|
self.tls_validation = attributes[:'tls_validation']
|
196
179
|
end
|
@@ -199,14 +182,6 @@ module PulpRpmClient
|
|
199
182
|
self.proxy_url = attributes[:'proxy_url']
|
200
183
|
end
|
201
184
|
|
202
|
-
if attributes.key?(:'username')
|
203
|
-
self.username = attributes[:'username']
|
204
|
-
end
|
205
|
-
|
206
|
-
if attributes.key?(:'password')
|
207
|
-
self.password = attributes[:'password']
|
208
|
-
end
|
209
|
-
|
210
185
|
if attributes.key?(:'pulp_labels')
|
211
186
|
self.pulp_labels = attributes[:'pulp_labels']
|
212
187
|
end
|
@@ -239,6 +214,12 @@ module PulpRpmClient
|
|
239
214
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
240
215
|
end
|
241
216
|
|
217
|
+
if attributes.key?(:'headers')
|
218
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
219
|
+
self.headers = value
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
242
223
|
if attributes.key?(:'rate_limit')
|
243
224
|
self.rate_limit = attributes[:'rate_limit']
|
244
225
|
end
|
@@ -357,11 +338,8 @@ module PulpRpmClient
|
|
357
338
|
url == o.url &&
|
358
339
|
ca_cert == o.ca_cert &&
|
359
340
|
client_cert == o.client_cert &&
|
360
|
-
client_key == o.client_key &&
|
361
341
|
tls_validation == o.tls_validation &&
|
362
342
|
proxy_url == o.proxy_url &&
|
363
|
-
username == o.username &&
|
364
|
-
password == o.password &&
|
365
343
|
pulp_labels == o.pulp_labels &&
|
366
344
|
pulp_last_updated == o.pulp_last_updated &&
|
367
345
|
download_concurrency == o.download_concurrency &&
|
@@ -370,6 +348,7 @@ module PulpRpmClient
|
|
370
348
|
connect_timeout == o.connect_timeout &&
|
371
349
|
sock_connect_timeout == o.sock_connect_timeout &&
|
372
350
|
sock_read_timeout == o.sock_read_timeout &&
|
351
|
+
headers == o.headers &&
|
373
352
|
rate_limit == o.rate_limit &&
|
374
353
|
sles_auth_token == o.sles_auth_token
|
375
354
|
end
|
@@ -383,7 +362,7 @@ module PulpRpmClient
|
|
383
362
|
# Calculates hash code according to all attributes.
|
384
363
|
# @return [Integer] Hash code
|
385
364
|
def hash
|
386
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert,
|
365
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, sles_auth_token].hash
|
387
366
|
end
|
388
367
|
|
389
368
|
# Builds the object from hash
|
@@ -0,0 +1,35 @@
|
|
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 PulpRpmClient
|
16
|
+
class SkipTypesEnum
|
17
|
+
SRPM = "srpm".freeze
|
18
|
+
|
19
|
+
# Builds the enum from string
|
20
|
+
# @param [String] The enum value in the form of the string
|
21
|
+
# @return [String] The enum value
|
22
|
+
def self.build_from_hash(value)
|
23
|
+
new.build_from_hash(value)
|
24
|
+
end
|
25
|
+
|
26
|
+
# Builds the enum from string
|
27
|
+
# @param [String] The enum value in the form of the string
|
28
|
+
# @return [String] The enum value
|
29
|
+
def build_from_hash(value)
|
30
|
+
constantValues = SkipTypesEnum.constants.select { |c| SkipTypesEnum::const_get(c) == value }
|
31
|
+
raise "Invalid ENUM value #{value} for class #SkipTypesEnum" if constantValues.empty?
|
32
|
+
value
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
data/lib/pulp_rpm_client.rb
CHANGED
@@ -74,6 +74,7 @@ require 'pulp_rpm_client/models/rpm_update_collection'
|
|
74
74
|
require 'pulp_rpm_client/models/rpm_update_collection_response'
|
75
75
|
require 'pulp_rpm_client/models/rpm_update_record'
|
76
76
|
require 'pulp_rpm_client/models/rpm_update_record_response'
|
77
|
+
require 'pulp_rpm_client/models/skip_types_enum'
|
77
78
|
require 'pulp_rpm_client/models/variant_response'
|
78
79
|
|
79
80
|
# APIs
|