pulp_deb_client 3.3.1 → 3.5.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 +28 -4
- data/docs/ContentGenericContentsApi.md +10 -8
- data/docs/ContentInstallerFileIndicesApi.md +10 -8
- data/docs/ContentInstallerPackagesApi.md +10 -8
- data/docs/ContentPackageIndicesApi.md +10 -8
- data/docs/ContentPackageReleaseComponentsApi.md +10 -8
- data/docs/ContentPackagesApi.md +10 -8
- data/docs/ContentReleaseArchitecturesApi.md +10 -8
- data/docs/ContentReleaseComponentsApi.md +10 -8
- data/docs/ContentReleaseFilesApi.md +10 -8
- data/docs/ContentReleasesApi.md +10 -8
- data/docs/ContentSourceIndicesApi.md +10 -8
- data/docs/ContentSourcePackagesApi.md +10 -8
- data/docs/ContentSourceReleaseComponentsApi.md +10 -8
- data/docs/DebAptDistributionResponse.md +4 -0
- data/docs/DebAptPublicationResponse.md +2 -0
- data/docs/DebAptRemoteResponse.md +2 -0
- data/docs/DebAptRepositoryResponse.md +2 -0
- data/docs/DebGenericContentResponse.md +2 -0
- data/docs/DebInstallerFileIndexResponse.md +2 -0
- data/docs/DebInstallerPackageResponse.md +2 -0
- data/docs/DebPackageIndexResponse.md +2 -0
- data/docs/DebPackageReleaseComponentResponse.md +2 -0
- data/docs/DebPackageResponse.md +2 -0
- data/docs/DebReleaseArchitectureResponse.md +2 -0
- data/docs/DebReleaseComponentResponse.md +5 -1
- data/docs/DebReleaseFileResponse.md +2 -0
- data/docs/DebReleaseResponse.md +2 -0
- data/docs/DebSourceIndexResponse.md +2 -0
- data/docs/DebSourcePackageReleaseComponentResponse.md +2 -0
- data/docs/DebSourcePackageResponse.md +4 -0
- data/docs/DebVerbatimPublicationResponse.md +2 -0
- data/docs/DistributionsAptApi.md +236 -2
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/PublicationsAptApi.md +244 -10
- data/docs/PublicationsVerbatimApi.md +244 -10
- data/docs/RemotesAptApi.md +236 -2
- data/docs/RepositoriesAptApi.md +240 -6
- data/docs/RepositoriesAptVersionsApi.md +8 -6
- data/docs/RepositoryVersionResponse.md +2 -0
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +11 -8
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +11 -8
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +11 -8
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +11 -8
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +11 -8
- data/lib/pulp_deb_client/api/content_packages_api.rb +11 -8
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +11 -8
- data/lib/pulp_deb_client/api/content_release_components_api.rb +11 -8
- data/lib/pulp_deb_client/api/content_release_files_api.rb +11 -8
- data/lib/pulp_deb_client/api/content_releases_api.rb +11 -8
- data/lib/pulp_deb_client/api/content_source_indices_api.rb +11 -8
- data/lib/pulp_deb_client/api/content_source_packages_api.rb +11 -8
- data/lib/pulp_deb_client/api/content_source_release_components_api.rb +11 -8
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +281 -2
- data/lib/pulp_deb_client/api/publications_apt_api.rb +290 -11
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +290 -11
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +281 -2
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +285 -6
- data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +10 -7
- data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +21 -1
- data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +11 -1
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +20 -20
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +31 -21
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +11 -1
- data/lib/pulp_deb_client/models/deb_generic_content_response.rb +11 -1
- data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +11 -1
- data/lib/pulp_deb_client/models/deb_installer_package_response.rb +11 -1
- data/lib/pulp_deb_client/models/deb_package_index_response.rb +11 -1
- data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +11 -1
- data/lib/pulp_deb_client/models/deb_package_response.rb +11 -1
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +11 -1
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +24 -4
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +11 -1
- data/lib/pulp_deb_client/models/deb_release_response.rb +11 -1
- data/lib/pulp_deb_client/models/deb_source_index_response.rb +11 -1
- data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +11 -1
- data/lib/pulp_deb_client/models/deb_source_package_response.rb +21 -1
- data/lib/pulp_deb_client/models/deb_verbatim_publication_response.rb +11 -1
- data/lib/pulp_deb_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_deb_client/models/nested_role.rb +253 -0
- data/lib/pulp_deb_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_deb_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +20 -20
- data/lib/pulp_deb_client/models/repository_add_remove_content.rb +1 -1
- data/lib/pulp_deb_client/models/repository_version_response.rb +12 -2
- data/lib/pulp_deb_client/version.rb +1 -1
- data/lib/pulp_deb_client.rb +4 -0
- data/spec/api/content_generic_contents_api_spec.rb +5 -4
- data/spec/api/content_installer_file_indices_api_spec.rb +5 -4
- data/spec/api/content_installer_packages_api_spec.rb +5 -4
- data/spec/api/content_package_indices_api_spec.rb +5 -4
- data/spec/api/content_package_release_components_api_spec.rb +5 -4
- data/spec/api/content_packages_api_spec.rb +5 -4
- data/spec/api/content_release_architectures_api_spec.rb +5 -4
- data/spec/api/content_release_components_api_spec.rb +5 -4
- data/spec/api/content_release_files_api_spec.rb +5 -4
- data/spec/api/content_releases_api_spec.rb +5 -4
- data/spec/api/content_source_indices_api_spec.rb +5 -4
- data/spec/api/content_source_packages_api_spec.rb +5 -4
- data/spec/api/content_source_release_components_api_spec.rb +5 -4
- data/spec/api/distributions_apt_api_spec.rb +56 -1
- data/spec/api/publications_apt_api_spec.rb +60 -5
- data/spec/api/publications_verbatim_api_spec.rb +60 -5
- data/spec/api/remotes_apt_api_spec.rb +56 -1
- data/spec/api/repositories_apt_api_spec.rb +58 -3
- data/spec/api/repositories_apt_versions_api_spec.rb +4 -3
- data/spec/models/deb_apt_distribution_response_spec.rb +12 -0
- data/spec/models/deb_apt_publication_response_spec.rb +6 -0
- data/spec/models/deb_apt_remote_response_spec.rb +6 -0
- data/spec/models/deb_apt_repository_response_spec.rb +6 -0
- data/spec/models/deb_generic_content_response_spec.rb +6 -0
- data/spec/models/deb_installer_file_index_response_spec.rb +6 -0
- data/spec/models/deb_installer_package_response_spec.rb +6 -0
- data/spec/models/deb_package_index_response_spec.rb +6 -0
- data/spec/models/deb_package_release_component_response_spec.rb +6 -0
- data/spec/models/deb_package_response_spec.rb +6 -0
- data/spec/models/deb_release_architecture_response_spec.rb +6 -0
- data/spec/models/deb_release_component_response_spec.rb +12 -0
- data/spec/models/deb_release_file_response_spec.rb +6 -0
- data/spec/models/deb_release_response_spec.rb +6 -0
- data/spec/models/deb_source_index_response_spec.rb +6 -0
- data/spec/models/deb_source_package_release_component_response_spec.rb +6 -0
- data/spec/models/deb_source_package_response_spec.rb +12 -0
- data/spec/models/deb_verbatim_publication_response_spec.rb +6 -0
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/nested_role_spec.rb +53 -0
- data/spec/models/object_roles_response_spec.rb +41 -0
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +91 -75
@@ -19,6 +19,76 @@ module PulpDebClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add a role
|
23
|
+
# Add a role for this object to users/groups.
|
24
|
+
# @param deb_apt_repository_href [String]
|
25
|
+
# @param nested_role [NestedRole]
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [NestedRoleResponse]
|
28
|
+
def add_role(deb_apt_repository_href, nested_role, opts = {})
|
29
|
+
data, _status_code, _headers = add_role_with_http_info(deb_apt_repository_href, nested_role, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Add a role
|
34
|
+
# Add a role for this object to users/groups.
|
35
|
+
# @param deb_apt_repository_href [String]
|
36
|
+
# @param nested_role [NestedRole]
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
39
|
+
def add_role_with_http_info(deb_apt_repository_href, nested_role, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAptApi.add_role ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'deb_apt_repository_href' is set
|
44
|
+
if @api_client.config.client_side_validation && deb_apt_repository_href.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'deb_apt_repository_href' when calling RepositoriesAptApi.add_role"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'nested_role' is set
|
48
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling RepositoriesAptApi.add_role"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '{deb_apt_repository_href}add_role/'.sub('{' + 'deb_apt_repository_href' + '}', CGI.escape(deb_apt_repository_href.to_s).gsub('%2F', '/'))
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = opts[:query_params] || {}
|
56
|
+
|
57
|
+
# header parameters
|
58
|
+
header_params = opts[:header_params] || {}
|
59
|
+
# HTTP header 'Accept' (if needed)
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
|
+
# HTTP header 'Content-Type'
|
62
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
63
|
+
|
64
|
+
# form parameters
|
65
|
+
form_params = opts[:form_params] || {}
|
66
|
+
|
67
|
+
# http body (model)
|
68
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
69
|
+
|
70
|
+
# return_type
|
71
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
72
|
+
|
73
|
+
# auth_names
|
74
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
75
|
+
|
76
|
+
new_options = opts.merge(
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:form_params => form_params,
|
80
|
+
:body => post_body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => return_type
|
83
|
+
)
|
84
|
+
|
85
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug "API called: RepositoriesAptApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
|
22
92
|
# Create an apt repository
|
23
93
|
# An AptRepository is the locally stored, Pulp-internal representation of a APT repository. It may be filled with content via synchronization or content upload to create an AptRepositoryVersion.
|
24
94
|
# @param deb_apt_repository [DebAptRepository]
|
@@ -148,7 +218,7 @@ module PulpDebClient
|
|
148
218
|
# List apt repositorys
|
149
219
|
# An AptRepository is the locally stored, Pulp-internal representation of a APT repository. It may be filled with content via synchronization or content upload to create an AptRepositoryVersion.
|
150
220
|
# @param [Hash] opts the optional parameters
|
151
|
-
# @option opts [String] :latest_with_content Content Unit referenced by HREF
|
221
|
+
# @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
|
152
222
|
# @option opts [Integer] :limit Number of results to return per page.
|
153
223
|
# @option opts [String] :name Filter results where name matches value
|
154
224
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -161,10 +231,11 @@ module PulpDebClient
|
|
161
231
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
162
232
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
163
233
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
234
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
164
235
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
165
236
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
166
237
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
167
|
-
# @option opts [String] :q
|
238
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
168
239
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
169
240
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
170
241
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -174,7 +245,7 @@ module PulpDebClient
|
|
174
245
|
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
175
246
|
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
176
247
|
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
177
|
-
# @option opts [String] :with_content Content Unit referenced by HREF
|
248
|
+
# @option opts [String] :with_content Content Unit referenced by HREF/PRN
|
178
249
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
179
250
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
180
251
|
# @return [PaginateddebAptRepositoryResponseList]
|
@@ -186,7 +257,7 @@ module PulpDebClient
|
|
186
257
|
# List apt repositorys
|
187
258
|
# An AptRepository is the locally stored, Pulp-internal representation of a APT repository. It may be filled with content via synchronization or content upload to create an AptRepositoryVersion.
|
188
259
|
# @param [Hash] opts the optional parameters
|
189
|
-
# @option opts [String] :latest_with_content Content Unit referenced by HREF
|
260
|
+
# @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
|
190
261
|
# @option opts [Integer] :limit Number of results to return per page.
|
191
262
|
# @option opts [String] :name Filter results where name matches value
|
192
263
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -199,10 +270,11 @@ module PulpDebClient
|
|
199
270
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
200
271
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
201
272
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
273
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
202
274
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
203
275
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
204
276
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
205
|
-
# @option opts [String] :q
|
277
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
206
278
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
207
279
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
208
280
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -212,7 +284,7 @@ module PulpDebClient
|
|
212
284
|
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
213
285
|
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
214
286
|
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
215
|
-
# @option opts [String] :with_content Content Unit referenced by HREF
|
287
|
+
# @option opts [String] :with_content Content Unit referenced by HREF/PRN
|
216
288
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
217
289
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
218
290
|
# @return [Array<(PaginateddebAptRepositoryResponseList, Integer, Hash)>] PaginateddebAptRepositoryResponseList data, response status code and response headers
|
@@ -242,6 +314,7 @@ module PulpDebClient
|
|
242
314
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
243
315
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
244
316
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
317
|
+
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
245
318
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
246
319
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
247
320
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
@@ -292,6 +365,74 @@ module PulpDebClient
|
|
292
365
|
return data, status_code, headers
|
293
366
|
end
|
294
367
|
|
368
|
+
# List roles
|
369
|
+
# List roles assigned to this object.
|
370
|
+
# @param deb_apt_repository_href [String]
|
371
|
+
# @param [Hash] opts the optional parameters
|
372
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
373
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
374
|
+
# @return [ObjectRolesResponse]
|
375
|
+
def list_roles(deb_apt_repository_href, opts = {})
|
376
|
+
data, _status_code, _headers = list_roles_with_http_info(deb_apt_repository_href, opts)
|
377
|
+
data
|
378
|
+
end
|
379
|
+
|
380
|
+
# List roles
|
381
|
+
# List roles assigned to this object.
|
382
|
+
# @param deb_apt_repository_href [String]
|
383
|
+
# @param [Hash] opts the optional parameters
|
384
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
385
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
386
|
+
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
387
|
+
def list_roles_with_http_info(deb_apt_repository_href, opts = {})
|
388
|
+
if @api_client.config.debugging
|
389
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAptApi.list_roles ...'
|
390
|
+
end
|
391
|
+
# verify the required parameter 'deb_apt_repository_href' is set
|
392
|
+
if @api_client.config.client_side_validation && deb_apt_repository_href.nil?
|
393
|
+
fail ArgumentError, "Missing the required parameter 'deb_apt_repository_href' when calling RepositoriesAptApi.list_roles"
|
394
|
+
end
|
395
|
+
# resource path
|
396
|
+
local_var_path = '{deb_apt_repository_href}list_roles/'.sub('{' + 'deb_apt_repository_href' + '}', CGI.escape(deb_apt_repository_href.to_s).gsub('%2F', '/'))
|
397
|
+
|
398
|
+
# query parameters
|
399
|
+
query_params = opts[:query_params] || {}
|
400
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
401
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
402
|
+
|
403
|
+
# header parameters
|
404
|
+
header_params = opts[:header_params] || {}
|
405
|
+
# HTTP header 'Accept' (if needed)
|
406
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
407
|
+
|
408
|
+
# form parameters
|
409
|
+
form_params = opts[:form_params] || {}
|
410
|
+
|
411
|
+
# http body (model)
|
412
|
+
post_body = opts[:body]
|
413
|
+
|
414
|
+
# return_type
|
415
|
+
return_type = opts[:return_type] || 'ObjectRolesResponse'
|
416
|
+
|
417
|
+
# auth_names
|
418
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
419
|
+
|
420
|
+
new_options = opts.merge(
|
421
|
+
:header_params => header_params,
|
422
|
+
:query_params => query_params,
|
423
|
+
:form_params => form_params,
|
424
|
+
:body => post_body,
|
425
|
+
:auth_names => auth_names,
|
426
|
+
:return_type => return_type
|
427
|
+
)
|
428
|
+
|
429
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
430
|
+
if @api_client.config.debugging
|
431
|
+
@api_client.config.logger.debug "API called: RepositoriesAptApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
432
|
+
end
|
433
|
+
return data, status_code, headers
|
434
|
+
end
|
435
|
+
|
295
436
|
# Modify Repository Content
|
296
437
|
# Trigger an asynchronous task to create a new repository version.
|
297
438
|
# @param deb_apt_repository_href [String]
|
@@ -362,6 +503,74 @@ module PulpDebClient
|
|
362
503
|
return data, status_code, headers
|
363
504
|
end
|
364
505
|
|
506
|
+
# List user permissions
|
507
|
+
# List permissions available to the current user on this object.
|
508
|
+
# @param deb_apt_repository_href [String]
|
509
|
+
# @param [Hash] opts the optional parameters
|
510
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
511
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
512
|
+
# @return [MyPermissionsResponse]
|
513
|
+
def my_permissions(deb_apt_repository_href, opts = {})
|
514
|
+
data, _status_code, _headers = my_permissions_with_http_info(deb_apt_repository_href, opts)
|
515
|
+
data
|
516
|
+
end
|
517
|
+
|
518
|
+
# List user permissions
|
519
|
+
# List permissions available to the current user on this object.
|
520
|
+
# @param deb_apt_repository_href [String]
|
521
|
+
# @param [Hash] opts the optional parameters
|
522
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
523
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
524
|
+
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
525
|
+
def my_permissions_with_http_info(deb_apt_repository_href, opts = {})
|
526
|
+
if @api_client.config.debugging
|
527
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAptApi.my_permissions ...'
|
528
|
+
end
|
529
|
+
# verify the required parameter 'deb_apt_repository_href' is set
|
530
|
+
if @api_client.config.client_side_validation && deb_apt_repository_href.nil?
|
531
|
+
fail ArgumentError, "Missing the required parameter 'deb_apt_repository_href' when calling RepositoriesAptApi.my_permissions"
|
532
|
+
end
|
533
|
+
# resource path
|
534
|
+
local_var_path = '{deb_apt_repository_href}my_permissions/'.sub('{' + 'deb_apt_repository_href' + '}', CGI.escape(deb_apt_repository_href.to_s).gsub('%2F', '/'))
|
535
|
+
|
536
|
+
# query parameters
|
537
|
+
query_params = opts[:query_params] || {}
|
538
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
539
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
540
|
+
|
541
|
+
# header parameters
|
542
|
+
header_params = opts[:header_params] || {}
|
543
|
+
# HTTP header 'Accept' (if needed)
|
544
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
545
|
+
|
546
|
+
# form parameters
|
547
|
+
form_params = opts[:form_params] || {}
|
548
|
+
|
549
|
+
# http body (model)
|
550
|
+
post_body = opts[:body]
|
551
|
+
|
552
|
+
# return_type
|
553
|
+
return_type = opts[:return_type] || 'MyPermissionsResponse'
|
554
|
+
|
555
|
+
# auth_names
|
556
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
557
|
+
|
558
|
+
new_options = opts.merge(
|
559
|
+
:header_params => header_params,
|
560
|
+
:query_params => query_params,
|
561
|
+
:form_params => form_params,
|
562
|
+
:body => post_body,
|
563
|
+
:auth_names => auth_names,
|
564
|
+
:return_type => return_type
|
565
|
+
)
|
566
|
+
|
567
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
568
|
+
if @api_client.config.debugging
|
569
|
+
@api_client.config.logger.debug "API called: RepositoriesAptApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
570
|
+
end
|
571
|
+
return data, status_code, headers
|
572
|
+
end
|
573
|
+
|
365
574
|
# Update an apt repository
|
366
575
|
# Trigger an asynchronous partial update task
|
367
576
|
# @param deb_apt_repository_href [String]
|
@@ -500,6 +709,76 @@ module PulpDebClient
|
|
500
709
|
return data, status_code, headers
|
501
710
|
end
|
502
711
|
|
712
|
+
# Remove a role
|
713
|
+
# Remove a role for this object from users/groups.
|
714
|
+
# @param deb_apt_repository_href [String]
|
715
|
+
# @param nested_role [NestedRole]
|
716
|
+
# @param [Hash] opts the optional parameters
|
717
|
+
# @return [NestedRoleResponse]
|
718
|
+
def remove_role(deb_apt_repository_href, nested_role, opts = {})
|
719
|
+
data, _status_code, _headers = remove_role_with_http_info(deb_apt_repository_href, nested_role, opts)
|
720
|
+
data
|
721
|
+
end
|
722
|
+
|
723
|
+
# Remove a role
|
724
|
+
# Remove a role for this object from users/groups.
|
725
|
+
# @param deb_apt_repository_href [String]
|
726
|
+
# @param nested_role [NestedRole]
|
727
|
+
# @param [Hash] opts the optional parameters
|
728
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
729
|
+
def remove_role_with_http_info(deb_apt_repository_href, nested_role, opts = {})
|
730
|
+
if @api_client.config.debugging
|
731
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesAptApi.remove_role ...'
|
732
|
+
end
|
733
|
+
# verify the required parameter 'deb_apt_repository_href' is set
|
734
|
+
if @api_client.config.client_side_validation && deb_apt_repository_href.nil?
|
735
|
+
fail ArgumentError, "Missing the required parameter 'deb_apt_repository_href' when calling RepositoriesAptApi.remove_role"
|
736
|
+
end
|
737
|
+
# verify the required parameter 'nested_role' is set
|
738
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
739
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling RepositoriesAptApi.remove_role"
|
740
|
+
end
|
741
|
+
# resource path
|
742
|
+
local_var_path = '{deb_apt_repository_href}remove_role/'.sub('{' + 'deb_apt_repository_href' + '}', CGI.escape(deb_apt_repository_href.to_s).gsub('%2F', '/'))
|
743
|
+
|
744
|
+
# query parameters
|
745
|
+
query_params = opts[:query_params] || {}
|
746
|
+
|
747
|
+
# header parameters
|
748
|
+
header_params = opts[:header_params] || {}
|
749
|
+
# HTTP header 'Accept' (if needed)
|
750
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
751
|
+
# HTTP header 'Content-Type'
|
752
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
753
|
+
|
754
|
+
# form parameters
|
755
|
+
form_params = opts[:form_params] || {}
|
756
|
+
|
757
|
+
# http body (model)
|
758
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
759
|
+
|
760
|
+
# return_type
|
761
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
762
|
+
|
763
|
+
# auth_names
|
764
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
765
|
+
|
766
|
+
new_options = opts.merge(
|
767
|
+
:header_params => header_params,
|
768
|
+
:query_params => query_params,
|
769
|
+
:form_params => form_params,
|
770
|
+
:body => post_body,
|
771
|
+
:auth_names => auth_names,
|
772
|
+
:return_type => return_type
|
773
|
+
)
|
774
|
+
|
775
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
776
|
+
if @api_client.config.debugging
|
777
|
+
@api_client.config.logger.debug "API called: RepositoriesAptApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
778
|
+
end
|
779
|
+
return data, status_code, headers
|
780
|
+
end
|
781
|
+
|
503
782
|
# Set a label
|
504
783
|
# Set a single pulp_label on the object to a specific value or null.
|
505
784
|
# @param deb_apt_repository_href [String]
|
@@ -85,8 +85,8 @@ module PulpDebClient
|
|
85
85
|
# An AptRepositoryVersion represents a single APT repository version as stored by Pulp. It may be used as the basis for the creation of Pulp distributions in order to actually serve the content contained within the repository version.
|
86
86
|
# @param deb_apt_repository_href [String]
|
87
87
|
# @param [Hash] opts the optional parameters
|
88
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
89
|
-
# @option opts [String] :content__in
|
88
|
+
# @option opts [String] :content Content Unit referenced by HREF/PRN
|
89
|
+
# @option opts [Array<String>] :content__in Multiple values may be separated by commas.
|
90
90
|
# @option opts [Integer] :limit Number of results to return per page.
|
91
91
|
# @option opts [Integer] :number Filter results where number matches value
|
92
92
|
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
@@ -96,6 +96,7 @@ module PulpDebClient
|
|
96
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 [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
99
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
99
100
|
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
100
101
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
101
102
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
@@ -103,7 +104,7 @@ module PulpDebClient
|
|
103
104
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
104
105
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
105
106
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
106
|
-
# @option opts [String] :q
|
107
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
107
108
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
108
109
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
109
110
|
# @return [PaginatedRepositoryVersionResponseList]
|
@@ -116,8 +117,8 @@ module PulpDebClient
|
|
116
117
|
# An AptRepositoryVersion represents a single APT repository version as stored by Pulp. It may be used as the basis for the creation of Pulp distributions in order to actually serve the content contained within the repository version.
|
117
118
|
# @param deb_apt_repository_href [String]
|
118
119
|
# @param [Hash] opts the optional parameters
|
119
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
120
|
-
# @option opts [String] :content__in
|
120
|
+
# @option opts [String] :content Content Unit referenced by HREF/PRN
|
121
|
+
# @option opts [Array<String>] :content__in Multiple values may be separated by commas.
|
121
122
|
# @option opts [Integer] :limit Number of results to return per page.
|
122
123
|
# @option opts [Integer] :number Filter results where number matches value
|
123
124
|
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
@@ -127,6 +128,7 @@ module PulpDebClient
|
|
127
128
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
128
129
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
129
130
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
131
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
130
132
|
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
131
133
|
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
132
134
|
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
@@ -134,7 +136,7 @@ module PulpDebClient
|
|
134
136
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
135
137
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
136
138
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
137
|
-
# @option opts [String] :q
|
139
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
138
140
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
139
141
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
140
142
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
@@ -156,7 +158,7 @@ module PulpDebClient
|
|
156
158
|
# query parameters
|
157
159
|
query_params = opts[:query_params] || {}
|
158
160
|
query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
|
159
|
-
query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
|
161
|
+
query_params[:'content__in'] = @api_client.build_collection_param(opts[:'content__in'], :csv) if !opts[:'content__in'].nil?
|
160
162
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
161
163
|
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
162
164
|
query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
|
@@ -166,6 +168,7 @@ module PulpDebClient
|
|
166
168
|
query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
|
167
169
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
168
170
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
171
|
+
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
169
172
|
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
170
173
|
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
171
174
|
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
@@ -17,6 +17,9 @@ module PulpDebClient
|
|
17
17
|
class DebAptDistributionResponse
|
18
18
|
attr_accessor :pulp_href
|
19
19
|
|
20
|
+
# The Pulp Resource Name (PRN).
|
21
|
+
attr_accessor :prn
|
22
|
+
|
20
23
|
# Timestamp of creation.
|
21
24
|
attr_accessor :pulp_created
|
22
25
|
|
@@ -32,6 +35,9 @@ module PulpDebClient
|
|
32
35
|
# An optional content-guard.
|
33
36
|
attr_accessor :content_guard
|
34
37
|
|
38
|
+
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
39
|
+
attr_accessor :no_content_change_since
|
40
|
+
|
35
41
|
# Whether this distribution should be shown in the content app.
|
36
42
|
attr_accessor :hidden
|
37
43
|
|
@@ -50,11 +56,13 @@ module PulpDebClient
|
|
50
56
|
def self.attribute_map
|
51
57
|
{
|
52
58
|
:'pulp_href' => :'pulp_href',
|
59
|
+
:'prn' => :'prn',
|
53
60
|
:'pulp_created' => :'pulp_created',
|
54
61
|
:'pulp_last_updated' => :'pulp_last_updated',
|
55
62
|
:'base_path' => :'base_path',
|
56
63
|
:'base_url' => :'base_url',
|
57
64
|
:'content_guard' => :'content_guard',
|
65
|
+
:'no_content_change_since' => :'no_content_change_since',
|
58
66
|
:'hidden' => :'hidden',
|
59
67
|
:'pulp_labels' => :'pulp_labels',
|
60
68
|
:'name' => :'name',
|
@@ -67,11 +75,13 @@ module PulpDebClient
|
|
67
75
|
def self.openapi_types
|
68
76
|
{
|
69
77
|
:'pulp_href' => :'String',
|
78
|
+
:'prn' => :'String',
|
70
79
|
:'pulp_created' => :'DateTime',
|
71
80
|
:'pulp_last_updated' => :'DateTime',
|
72
81
|
:'base_path' => :'String',
|
73
82
|
:'base_url' => :'String',
|
74
83
|
:'content_guard' => :'String',
|
84
|
+
:'no_content_change_since' => :'String',
|
75
85
|
:'hidden' => :'Boolean',
|
76
86
|
:'pulp_labels' => :'Hash<String, String>',
|
77
87
|
:'name' => :'String',
|
@@ -108,6 +118,10 @@ module PulpDebClient
|
|
108
118
|
self.pulp_href = attributes[:'pulp_href']
|
109
119
|
end
|
110
120
|
|
121
|
+
if attributes.key?(:'prn')
|
122
|
+
self.prn = attributes[:'prn']
|
123
|
+
end
|
124
|
+
|
111
125
|
if attributes.key?(:'pulp_created')
|
112
126
|
self.pulp_created = attributes[:'pulp_created']
|
113
127
|
end
|
@@ -128,6 +142,10 @@ module PulpDebClient
|
|
128
142
|
self.content_guard = attributes[:'content_guard']
|
129
143
|
end
|
130
144
|
|
145
|
+
if attributes.key?(:'no_content_change_since')
|
146
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
147
|
+
end
|
148
|
+
|
131
149
|
if attributes.key?(:'hidden')
|
132
150
|
self.hidden = attributes[:'hidden']
|
133
151
|
else
|
@@ -182,11 +200,13 @@ module PulpDebClient
|
|
182
200
|
return true if self.equal?(o)
|
183
201
|
self.class == o.class &&
|
184
202
|
pulp_href == o.pulp_href &&
|
203
|
+
prn == o.prn &&
|
185
204
|
pulp_created == o.pulp_created &&
|
186
205
|
pulp_last_updated == o.pulp_last_updated &&
|
187
206
|
base_path == o.base_path &&
|
188
207
|
base_url == o.base_url &&
|
189
208
|
content_guard == o.content_guard &&
|
209
|
+
no_content_change_since == o.no_content_change_since &&
|
190
210
|
hidden == o.hidden &&
|
191
211
|
pulp_labels == o.pulp_labels &&
|
192
212
|
name == o.name &&
|
@@ -203,7 +223,7 @@ module PulpDebClient
|
|
203
223
|
# Calculates hash code according to all attributes.
|
204
224
|
# @return [Integer] Hash code
|
205
225
|
def hash
|
206
|
-
[pulp_href, pulp_created, pulp_last_updated, base_path, base_url, content_guard, hidden, pulp_labels, name, repository, publication].hash
|
226
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, no_content_change_since, hidden, pulp_labels, name, repository, publication].hash
|
207
227
|
end
|
208
228
|
|
209
229
|
# Builds the object from hash
|
@@ -17,6 +17,9 @@ module PulpDebClient
|
|
17
17
|
class DebAptPublicationResponse
|
18
18
|
attr_accessor :pulp_href
|
19
19
|
|
20
|
+
# The Pulp Resource Name (PRN).
|
21
|
+
attr_accessor :prn
|
22
|
+
|
20
23
|
# Timestamp of creation.
|
21
24
|
attr_accessor :pulp_created
|
22
25
|
|
@@ -43,6 +46,7 @@ module PulpDebClient
|
|
43
46
|
def self.attribute_map
|
44
47
|
{
|
45
48
|
:'pulp_href' => :'pulp_href',
|
49
|
+
:'prn' => :'prn',
|
46
50
|
:'pulp_created' => :'pulp_created',
|
47
51
|
:'pulp_last_updated' => :'pulp_last_updated',
|
48
52
|
:'repository_version' => :'repository_version',
|
@@ -58,6 +62,7 @@ module PulpDebClient
|
|
58
62
|
def self.openapi_types
|
59
63
|
{
|
60
64
|
:'pulp_href' => :'String',
|
65
|
+
:'prn' => :'String',
|
61
66
|
:'pulp_created' => :'DateTime',
|
62
67
|
:'pulp_last_updated' => :'DateTime',
|
63
68
|
:'repository_version' => :'String',
|
@@ -94,6 +99,10 @@ module PulpDebClient
|
|
94
99
|
self.pulp_href = attributes[:'pulp_href']
|
95
100
|
end
|
96
101
|
|
102
|
+
if attributes.key?(:'prn')
|
103
|
+
self.prn = attributes[:'prn']
|
104
|
+
end
|
105
|
+
|
97
106
|
if attributes.key?(:'pulp_created')
|
98
107
|
self.pulp_created = attributes[:'pulp_created']
|
99
108
|
end
|
@@ -150,6 +159,7 @@ module PulpDebClient
|
|
150
159
|
return true if self.equal?(o)
|
151
160
|
self.class == o.class &&
|
152
161
|
pulp_href == o.pulp_href &&
|
162
|
+
prn == o.prn &&
|
153
163
|
pulp_created == o.pulp_created &&
|
154
164
|
pulp_last_updated == o.pulp_last_updated &&
|
155
165
|
repository_version == o.repository_version &&
|
@@ -169,7 +179,7 @@ module PulpDebClient
|
|
169
179
|
# Calculates hash code according to all attributes.
|
170
180
|
# @return [Integer] Hash code
|
171
181
|
def hash
|
172
|
-
[pulp_href, pulp_created, pulp_last_updated, repository_version, repository, simple, structured, signing_service, publish_upstream_release_fields].hash
|
182
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, repository_version, repository, simple, structured, signing_service, publish_upstream_release_fields].hash
|
173
183
|
end
|
174
184
|
|
175
185
|
# Builds the object from hash
|