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.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +28 -4
  3. data/docs/ContentGenericContentsApi.md +10 -8
  4. data/docs/ContentInstallerFileIndicesApi.md +10 -8
  5. data/docs/ContentInstallerPackagesApi.md +10 -8
  6. data/docs/ContentPackageIndicesApi.md +10 -8
  7. data/docs/ContentPackageReleaseComponentsApi.md +10 -8
  8. data/docs/ContentPackagesApi.md +10 -8
  9. data/docs/ContentReleaseArchitecturesApi.md +10 -8
  10. data/docs/ContentReleaseComponentsApi.md +10 -8
  11. data/docs/ContentReleaseFilesApi.md +10 -8
  12. data/docs/ContentReleasesApi.md +10 -8
  13. data/docs/ContentSourceIndicesApi.md +10 -8
  14. data/docs/ContentSourcePackagesApi.md +10 -8
  15. data/docs/ContentSourceReleaseComponentsApi.md +10 -8
  16. data/docs/DebAptDistributionResponse.md +4 -0
  17. data/docs/DebAptPublicationResponse.md +2 -0
  18. data/docs/DebAptRemoteResponse.md +2 -0
  19. data/docs/DebAptRepositoryResponse.md +2 -0
  20. data/docs/DebGenericContentResponse.md +2 -0
  21. data/docs/DebInstallerFileIndexResponse.md +2 -0
  22. data/docs/DebInstallerPackageResponse.md +2 -0
  23. data/docs/DebPackageIndexResponse.md +2 -0
  24. data/docs/DebPackageReleaseComponentResponse.md +2 -0
  25. data/docs/DebPackageResponse.md +2 -0
  26. data/docs/DebReleaseArchitectureResponse.md +2 -0
  27. data/docs/DebReleaseComponentResponse.md +5 -1
  28. data/docs/DebReleaseFileResponse.md +2 -0
  29. data/docs/DebReleaseResponse.md +2 -0
  30. data/docs/DebSourceIndexResponse.md +2 -0
  31. data/docs/DebSourcePackageReleaseComponentResponse.md +2 -0
  32. data/docs/DebSourcePackageResponse.md +4 -0
  33. data/docs/DebVerbatimPublicationResponse.md +2 -0
  34. data/docs/DistributionsAptApi.md +236 -2
  35. data/docs/MyPermissionsResponse.md +17 -0
  36. data/docs/NestedRole.md +21 -0
  37. data/docs/NestedRoleResponse.md +21 -0
  38. data/docs/ObjectRolesResponse.md +17 -0
  39. data/docs/PublicationsAptApi.md +244 -10
  40. data/docs/PublicationsVerbatimApi.md +244 -10
  41. data/docs/RemotesAptApi.md +236 -2
  42. data/docs/RepositoriesAptApi.md +240 -6
  43. data/docs/RepositoriesAptVersionsApi.md +8 -6
  44. data/docs/RepositoryVersionResponse.md +2 -0
  45. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +11 -8
  46. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +11 -8
  47. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +11 -8
  48. data/lib/pulp_deb_client/api/content_package_indices_api.rb +11 -8
  49. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +11 -8
  50. data/lib/pulp_deb_client/api/content_packages_api.rb +11 -8
  51. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +11 -8
  52. data/lib/pulp_deb_client/api/content_release_components_api.rb +11 -8
  53. data/lib/pulp_deb_client/api/content_release_files_api.rb +11 -8
  54. data/lib/pulp_deb_client/api/content_releases_api.rb +11 -8
  55. data/lib/pulp_deb_client/api/content_source_indices_api.rb +11 -8
  56. data/lib/pulp_deb_client/api/content_source_packages_api.rb +11 -8
  57. data/lib/pulp_deb_client/api/content_source_release_components_api.rb +11 -8
  58. data/lib/pulp_deb_client/api/distributions_apt_api.rb +281 -2
  59. data/lib/pulp_deb_client/api/publications_apt_api.rb +290 -11
  60. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +290 -11
  61. data/lib/pulp_deb_client/api/remotes_apt_api.rb +281 -2
  62. data/lib/pulp_deb_client/api/repositories_apt_api.rb +285 -6
  63. data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +10 -7
  64. data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +21 -1
  65. data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +11 -1
  66. data/lib/pulp_deb_client/models/deb_apt_remote.rb +20 -20
  67. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +31 -21
  68. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +11 -1
  69. data/lib/pulp_deb_client/models/deb_generic_content_response.rb +11 -1
  70. data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +11 -1
  71. data/lib/pulp_deb_client/models/deb_installer_package_response.rb +11 -1
  72. data/lib/pulp_deb_client/models/deb_package_index_response.rb +11 -1
  73. data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +11 -1
  74. data/lib/pulp_deb_client/models/deb_package_response.rb +11 -1
  75. data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +11 -1
  76. data/lib/pulp_deb_client/models/deb_release_component_response.rb +24 -4
  77. data/lib/pulp_deb_client/models/deb_release_file_response.rb +11 -1
  78. data/lib/pulp_deb_client/models/deb_release_response.rb +11 -1
  79. data/lib/pulp_deb_client/models/deb_source_index_response.rb +11 -1
  80. data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +11 -1
  81. data/lib/pulp_deb_client/models/deb_source_package_response.rb +21 -1
  82. data/lib/pulp_deb_client/models/deb_verbatim_publication_response.rb +11 -1
  83. data/lib/pulp_deb_client/models/my_permissions_response.rb +213 -0
  84. data/lib/pulp_deb_client/models/nested_role.rb +253 -0
  85. data/lib/pulp_deb_client/models/nested_role_response.rb +234 -0
  86. data/lib/pulp_deb_client/models/object_roles_response.rb +213 -0
  87. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +20 -20
  88. data/lib/pulp_deb_client/models/repository_add_remove_content.rb +1 -1
  89. data/lib/pulp_deb_client/models/repository_version_response.rb +12 -2
  90. data/lib/pulp_deb_client/version.rb +1 -1
  91. data/lib/pulp_deb_client.rb +4 -0
  92. data/spec/api/content_generic_contents_api_spec.rb +5 -4
  93. data/spec/api/content_installer_file_indices_api_spec.rb +5 -4
  94. data/spec/api/content_installer_packages_api_spec.rb +5 -4
  95. data/spec/api/content_package_indices_api_spec.rb +5 -4
  96. data/spec/api/content_package_release_components_api_spec.rb +5 -4
  97. data/spec/api/content_packages_api_spec.rb +5 -4
  98. data/spec/api/content_release_architectures_api_spec.rb +5 -4
  99. data/spec/api/content_release_components_api_spec.rb +5 -4
  100. data/spec/api/content_release_files_api_spec.rb +5 -4
  101. data/spec/api/content_releases_api_spec.rb +5 -4
  102. data/spec/api/content_source_indices_api_spec.rb +5 -4
  103. data/spec/api/content_source_packages_api_spec.rb +5 -4
  104. data/spec/api/content_source_release_components_api_spec.rb +5 -4
  105. data/spec/api/distributions_apt_api_spec.rb +56 -1
  106. data/spec/api/publications_apt_api_spec.rb +60 -5
  107. data/spec/api/publications_verbatim_api_spec.rb +60 -5
  108. data/spec/api/remotes_apt_api_spec.rb +56 -1
  109. data/spec/api/repositories_apt_api_spec.rb +58 -3
  110. data/spec/api/repositories_apt_versions_api_spec.rb +4 -3
  111. data/spec/models/deb_apt_distribution_response_spec.rb +12 -0
  112. data/spec/models/deb_apt_publication_response_spec.rb +6 -0
  113. data/spec/models/deb_apt_remote_response_spec.rb +6 -0
  114. data/spec/models/deb_apt_repository_response_spec.rb +6 -0
  115. data/spec/models/deb_generic_content_response_spec.rb +6 -0
  116. data/spec/models/deb_installer_file_index_response_spec.rb +6 -0
  117. data/spec/models/deb_installer_package_response_spec.rb +6 -0
  118. data/spec/models/deb_package_index_response_spec.rb +6 -0
  119. data/spec/models/deb_package_release_component_response_spec.rb +6 -0
  120. data/spec/models/deb_package_response_spec.rb +6 -0
  121. data/spec/models/deb_release_architecture_response_spec.rb +6 -0
  122. data/spec/models/deb_release_component_response_spec.rb +12 -0
  123. data/spec/models/deb_release_file_response_spec.rb +6 -0
  124. data/spec/models/deb_release_response_spec.rb +6 -0
  125. data/spec/models/deb_source_index_response_spec.rb +6 -0
  126. data/spec/models/deb_source_package_release_component_response_spec.rb +6 -0
  127. data/spec/models/deb_source_package_response_spec.rb +12 -0
  128. data/spec/models/deb_verbatim_publication_response_spec.rb +6 -0
  129. data/spec/models/my_permissions_response_spec.rb +41 -0
  130. data/spec/models/nested_role_response_spec.rb +53 -0
  131. data/spec/models/nested_role_spec.rb +53 -0
  132. data/spec/models/object_roles_response_spec.rb +41 -0
  133. data/spec/models/repository_version_response_spec.rb +6 -0
  134. metadata +91 -75
@@ -17,6 +17,9 @@ module PulpDebClient
17
17
  class DebReleaseComponentResponse
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
 
@@ -29,14 +32,19 @@ module PulpDebClient
29
32
  # Name of the distribution.
30
33
  attr_accessor :distribution
31
34
 
35
+ # Name of the component without any path prefixes.
36
+ attr_accessor :plain_component
37
+
32
38
  # Attribute mapping from ruby-style variable name to JSON key.
33
39
  def self.attribute_map
34
40
  {
35
41
  :'pulp_href' => :'pulp_href',
42
+ :'prn' => :'prn',
36
43
  :'pulp_created' => :'pulp_created',
37
44
  :'pulp_last_updated' => :'pulp_last_updated',
38
45
  :'component' => :'component',
39
- :'distribution' => :'distribution'
46
+ :'distribution' => :'distribution',
47
+ :'plain_component' => :'plain_component'
40
48
  }
41
49
  end
42
50
 
@@ -44,10 +52,12 @@ module PulpDebClient
44
52
  def self.openapi_types
45
53
  {
46
54
  :'pulp_href' => :'String',
55
+ :'prn' => :'String',
47
56
  :'pulp_created' => :'DateTime',
48
57
  :'pulp_last_updated' => :'DateTime',
49
58
  :'component' => :'String',
50
- :'distribution' => :'String'
59
+ :'distribution' => :'String',
60
+ :'plain_component' => :'String'
51
61
  }
52
62
  end
53
63
 
@@ -76,6 +86,10 @@ module PulpDebClient
76
86
  self.pulp_href = attributes[:'pulp_href']
77
87
  end
78
88
 
89
+ if attributes.key?(:'prn')
90
+ self.prn = attributes[:'prn']
91
+ end
92
+
79
93
  if attributes.key?(:'pulp_created')
80
94
  self.pulp_created = attributes[:'pulp_created']
81
95
  end
@@ -91,6 +105,10 @@ module PulpDebClient
91
105
  if attributes.key?(:'distribution')
92
106
  self.distribution = attributes[:'distribution']
93
107
  end
108
+
109
+ if attributes.key?(:'plain_component')
110
+ self.plain_component = attributes[:'plain_component']
111
+ end
94
112
  end
95
113
 
96
114
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -122,10 +140,12 @@ module PulpDebClient
122
140
  return true if self.equal?(o)
123
141
  self.class == o.class &&
124
142
  pulp_href == o.pulp_href &&
143
+ prn == o.prn &&
125
144
  pulp_created == o.pulp_created &&
126
145
  pulp_last_updated == o.pulp_last_updated &&
127
146
  component == o.component &&
128
- distribution == o.distribution
147
+ distribution == o.distribution &&
148
+ plain_component == o.plain_component
129
149
  end
130
150
 
131
151
  # @see the `==` method
@@ -137,7 +157,7 @@ module PulpDebClient
137
157
  # Calculates hash code according to all attributes.
138
158
  # @return [Integer] Hash code
139
159
  def hash
140
- [pulp_href, pulp_created, pulp_last_updated, component, distribution].hash
160
+ [pulp_href, prn, pulp_created, pulp_last_updated, component, distribution, plain_component].hash
141
161
  end
142
162
 
143
163
  # Builds the object from hash
@@ -17,6 +17,9 @@ module PulpDebClient
17
17
  class DebReleaseFileResponse
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
 
@@ -42,6 +45,7 @@ module PulpDebClient
42
45
  def self.attribute_map
43
46
  {
44
47
  :'pulp_href' => :'pulp_href',
48
+ :'prn' => :'prn',
45
49
  :'pulp_created' => :'pulp_created',
46
50
  :'pulp_last_updated' => :'pulp_last_updated',
47
51
  :'artifacts' => :'artifacts',
@@ -56,6 +60,7 @@ module PulpDebClient
56
60
  def self.openapi_types
57
61
  {
58
62
  :'pulp_href' => :'String',
63
+ :'prn' => :'String',
59
64
  :'pulp_created' => :'DateTime',
60
65
  :'pulp_last_updated' => :'DateTime',
61
66
  :'artifacts' => :'Object',
@@ -91,6 +96,10 @@ module PulpDebClient
91
96
  self.pulp_href = attributes[:'pulp_href']
92
97
  end
93
98
 
99
+ if attributes.key?(:'prn')
100
+ self.prn = attributes[:'prn']
101
+ end
102
+
94
103
  if attributes.key?(:'pulp_created')
95
104
  self.pulp_created = attributes[:'pulp_created']
96
105
  end
@@ -149,6 +158,7 @@ module PulpDebClient
149
158
  return true if self.equal?(o)
150
159
  self.class == o.class &&
151
160
  pulp_href == o.pulp_href &&
161
+ prn == o.prn &&
152
162
  pulp_created == o.pulp_created &&
153
163
  pulp_last_updated == o.pulp_last_updated &&
154
164
  artifacts == o.artifacts &&
@@ -167,7 +177,7 @@ module PulpDebClient
167
177
  # Calculates hash code according to all attributes.
168
178
  # @return [Integer] Hash code
169
179
  def hash
170
- [pulp_href, pulp_created, pulp_last_updated, artifacts, codename, suite, distribution, relative_path].hash
180
+ [pulp_href, prn, pulp_created, pulp_last_updated, artifacts, codename, suite, distribution, relative_path].hash
171
181
  end
172
182
 
173
183
  # Builds the object from hash
@@ -17,6 +17,9 @@ module PulpDebClient
17
17
  class DebReleaseResponse
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
 
@@ -45,6 +48,7 @@ module PulpDebClient
45
48
  def self.attribute_map
46
49
  {
47
50
  :'pulp_href' => :'pulp_href',
51
+ :'prn' => :'prn',
48
52
  :'pulp_created' => :'pulp_created',
49
53
  :'pulp_last_updated' => :'pulp_last_updated',
50
54
  :'codename' => :'codename',
@@ -63,6 +67,7 @@ module PulpDebClient
63
67
  def self.openapi_types
64
68
  {
65
69
  :'pulp_href' => :'String',
70
+ :'prn' => :'String',
66
71
  :'pulp_created' => :'DateTime',
67
72
  :'pulp_last_updated' => :'DateTime',
68
73
  :'codename' => :'String',
@@ -106,6 +111,10 @@ module PulpDebClient
106
111
  self.pulp_href = attributes[:'pulp_href']
107
112
  end
108
113
 
114
+ if attributes.key?(:'prn')
115
+ self.prn = attributes[:'prn']
116
+ end
117
+
109
118
  if attributes.key?(:'pulp_created')
110
119
  self.pulp_created = attributes[:'pulp_created']
111
120
  end
@@ -189,6 +198,7 @@ module PulpDebClient
189
198
  return true if self.equal?(o)
190
199
  self.class == o.class &&
191
200
  pulp_href == o.pulp_href &&
201
+ prn == o.prn &&
192
202
  pulp_created == o.pulp_created &&
193
203
  pulp_last_updated == o.pulp_last_updated &&
194
204
  codename == o.codename &&
@@ -211,7 +221,7 @@ module PulpDebClient
211
221
  # Calculates hash code according to all attributes.
212
222
  # @return [Integer] Hash code
213
223
  def hash
214
- [pulp_href, pulp_created, pulp_last_updated, codename, suite, distribution, version, origin, label, description, architectures, components].hash
224
+ [pulp_href, prn, pulp_created, pulp_last_updated, codename, suite, distribution, version, origin, label, description, architectures, components].hash
215
225
  end
216
226
 
217
227
  # Builds the object from hash
@@ -17,6 +17,9 @@ module PulpDebClient
17
17
  class DebSourceIndexResponse
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
 
@@ -39,6 +42,7 @@ module PulpDebClient
39
42
  def self.attribute_map
40
43
  {
41
44
  :'pulp_href' => :'pulp_href',
45
+ :'prn' => :'prn',
42
46
  :'pulp_created' => :'pulp_created',
43
47
  :'pulp_last_updated' => :'pulp_last_updated',
44
48
  :'artifacts' => :'artifacts',
@@ -52,6 +56,7 @@ module PulpDebClient
52
56
  def self.openapi_types
53
57
  {
54
58
  :'pulp_href' => :'String',
59
+ :'prn' => :'String',
55
60
  :'pulp_created' => :'DateTime',
56
61
  :'pulp_last_updated' => :'DateTime',
57
62
  :'artifacts' => :'Object',
@@ -86,6 +91,10 @@ module PulpDebClient
86
91
  self.pulp_href = attributes[:'pulp_href']
87
92
  end
88
93
 
94
+ if attributes.key?(:'prn')
95
+ self.prn = attributes[:'prn']
96
+ end
97
+
89
98
  if attributes.key?(:'pulp_created')
90
99
  self.pulp_created = attributes[:'pulp_created']
91
100
  end
@@ -145,6 +154,7 @@ module PulpDebClient
145
154
  return true if self.equal?(o)
146
155
  self.class == o.class &&
147
156
  pulp_href == o.pulp_href &&
157
+ prn == o.prn &&
148
158
  pulp_created == o.pulp_created &&
149
159
  pulp_last_updated == o.pulp_last_updated &&
150
160
  artifacts == o.artifacts &&
@@ -162,7 +172,7 @@ module PulpDebClient
162
172
  # Calculates hash code according to all attributes.
163
173
  # @return [Integer] Hash code
164
174
  def hash
165
- [pulp_href, pulp_created, pulp_last_updated, artifacts, release, component, relative_path].hash
175
+ [pulp_href, prn, pulp_created, pulp_last_updated, artifacts, release, component, relative_path].hash
166
176
  end
167
177
 
168
178
  # Builds the object from hash
@@ -17,6 +17,9 @@ module PulpDebClient
17
17
  class DebSourcePackageReleaseComponentResponse
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
 
@@ -33,6 +36,7 @@ module PulpDebClient
33
36
  def self.attribute_map
34
37
  {
35
38
  :'pulp_href' => :'pulp_href',
39
+ :'prn' => :'prn',
36
40
  :'pulp_created' => :'pulp_created',
37
41
  :'pulp_last_updated' => :'pulp_last_updated',
38
42
  :'source_package' => :'source_package',
@@ -44,6 +48,7 @@ module PulpDebClient
44
48
  def self.openapi_types
45
49
  {
46
50
  :'pulp_href' => :'String',
51
+ :'prn' => :'String',
47
52
  :'pulp_created' => :'DateTime',
48
53
  :'pulp_last_updated' => :'DateTime',
49
54
  :'source_package' => :'String',
@@ -76,6 +81,10 @@ module PulpDebClient
76
81
  self.pulp_href = attributes[:'pulp_href']
77
82
  end
78
83
 
84
+ if attributes.key?(:'prn')
85
+ self.prn = attributes[:'prn']
86
+ end
87
+
79
88
  if attributes.key?(:'pulp_created')
80
89
  self.pulp_created = attributes[:'pulp_created']
81
90
  end
@@ -122,6 +131,7 @@ module PulpDebClient
122
131
  return true if self.equal?(o)
123
132
  self.class == o.class &&
124
133
  pulp_href == o.pulp_href &&
134
+ prn == o.prn &&
125
135
  pulp_created == o.pulp_created &&
126
136
  pulp_last_updated == o.pulp_last_updated &&
127
137
  source_package == o.source_package &&
@@ -137,7 +147,7 @@ module PulpDebClient
137
147
  # Calculates hash code according to all attributes.
138
148
  # @return [Integer] Hash code
139
149
  def hash
140
- [pulp_href, pulp_created, pulp_last_updated, source_package, release_component].hash
150
+ [pulp_href, prn, pulp_created, pulp_last_updated, source_package, release_component].hash
141
151
  end
142
152
 
143
153
  # Builds the object from hash
@@ -17,6 +17,9 @@ module PulpDebClient
17
17
  class DebSourcePackageResponse
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
 
@@ -29,6 +32,9 @@ module PulpDebClient
29
32
  # Relative path of the Debian Source Control (dsc) file.It is normally advised to let Pulp generate this.
30
33
  attr_accessor :relative_path
31
34
 
35
+ # sha256 digest of the dsc file.
36
+ attr_accessor :sha256
37
+
32
38
  attr_accessor :format
33
39
 
34
40
  attr_accessor :source
@@ -87,10 +93,12 @@ module PulpDebClient
87
93
  def self.attribute_map
88
94
  {
89
95
  :'pulp_href' => :'pulp_href',
96
+ :'prn' => :'prn',
90
97
  :'pulp_created' => :'pulp_created',
91
98
  :'pulp_last_updated' => :'pulp_last_updated',
92
99
  :'artifacts' => :'artifacts',
93
100
  :'relative_path' => :'relative_path',
101
+ :'sha256' => :'sha256',
94
102
  :'format' => :'format',
95
103
  :'source' => :'source',
96
104
  :'binary' => :'binary',
@@ -125,10 +133,12 @@ module PulpDebClient
125
133
  def self.openapi_types
126
134
  {
127
135
  :'pulp_href' => :'String',
136
+ :'prn' => :'String',
128
137
  :'pulp_created' => :'DateTime',
129
138
  :'pulp_last_updated' => :'DateTime',
130
139
  :'artifacts' => :'Object',
131
140
  :'relative_path' => :'String',
141
+ :'sha256' => :'String',
132
142
  :'format' => :'String',
133
143
  :'source' => :'String',
134
144
  :'binary' => :'String',
@@ -184,6 +194,10 @@ module PulpDebClient
184
194
  self.pulp_href = attributes[:'pulp_href']
185
195
  end
186
196
 
197
+ if attributes.key?(:'prn')
198
+ self.prn = attributes[:'prn']
199
+ end
200
+
187
201
  if attributes.key?(:'pulp_created')
188
202
  self.pulp_created = attributes[:'pulp_created']
189
203
  end
@@ -200,6 +214,10 @@ module PulpDebClient
200
214
  self.relative_path = attributes[:'relative_path']
201
215
  end
202
216
 
217
+ if attributes.key?(:'sha256')
218
+ self.sha256 = attributes[:'sha256']
219
+ end
220
+
203
221
  if attributes.key?(:'format')
204
222
  self.format = attributes[:'format']
205
223
  end
@@ -333,10 +351,12 @@ module PulpDebClient
333
351
  return true if self.equal?(o)
334
352
  self.class == o.class &&
335
353
  pulp_href == o.pulp_href &&
354
+ prn == o.prn &&
336
355
  pulp_created == o.pulp_created &&
337
356
  pulp_last_updated == o.pulp_last_updated &&
338
357
  artifacts == o.artifacts &&
339
358
  relative_path == o.relative_path &&
359
+ sha256 == o.sha256 &&
340
360
  format == o.format &&
341
361
  source == o.source &&
342
362
  binary == o.binary &&
@@ -375,7 +395,7 @@ module PulpDebClient
375
395
  # Calculates hash code according to all attributes.
376
396
  # @return [Integer] Hash code
377
397
  def hash
378
- [pulp_href, pulp_created, pulp_last_updated, artifacts, relative_path, format, source, binary, architecture, version, maintainer, uploaders, homepage, vcs_browser, vcs_arch, vcs_bzr, vcs_cvs, vcs_darcs, vcs_git, vcs_hg, vcs_mtn, vcs_snv, testsuite, dgit, standards_version, build_depends, build_depends_indep, build_depends_arch, build_conflicts, build_conflicts_indep, build_conflicts_arch, package_list].hash
398
+ [pulp_href, prn, pulp_created, pulp_last_updated, artifacts, relative_path, sha256, format, source, binary, architecture, version, maintainer, uploaders, homepage, vcs_browser, vcs_arch, vcs_bzr, vcs_cvs, vcs_darcs, vcs_git, vcs_hg, vcs_mtn, vcs_snv, testsuite, dgit, standards_version, build_depends, build_depends_indep, build_depends_arch, build_conflicts, build_conflicts_indep, build_conflicts_arch, package_list].hash
379
399
  end
380
400
 
381
401
  # Builds the object from hash
@@ -17,6 +17,9 @@ module PulpDebClient
17
17
  class DebVerbatimPublicationResponse
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,7 @@ module PulpDebClient
32
35
  def self.attribute_map
33
36
  {
34
37
  :'pulp_href' => :'pulp_href',
38
+ :'prn' => :'prn',
35
39
  :'pulp_created' => :'pulp_created',
36
40
  :'pulp_last_updated' => :'pulp_last_updated',
37
41
  :'repository_version' => :'repository_version',
@@ -43,6 +47,7 @@ module PulpDebClient
43
47
  def self.openapi_types
44
48
  {
45
49
  :'pulp_href' => :'String',
50
+ :'prn' => :'String',
46
51
  :'pulp_created' => :'DateTime',
47
52
  :'pulp_last_updated' => :'DateTime',
48
53
  :'repository_version' => :'String',
@@ -75,6 +80,10 @@ module PulpDebClient
75
80
  self.pulp_href = attributes[:'pulp_href']
76
81
  end
77
82
 
83
+ if attributes.key?(:'prn')
84
+ self.prn = attributes[:'prn']
85
+ end
86
+
78
87
  if attributes.key?(:'pulp_created')
79
88
  self.pulp_created = attributes[:'pulp_created']
80
89
  end
@@ -111,6 +120,7 @@ module PulpDebClient
111
120
  return true if self.equal?(o)
112
121
  self.class == o.class &&
113
122
  pulp_href == o.pulp_href &&
123
+ prn == o.prn &&
114
124
  pulp_created == o.pulp_created &&
115
125
  pulp_last_updated == o.pulp_last_updated &&
116
126
  repository_version == o.repository_version &&
@@ -126,7 +136,7 @@ module PulpDebClient
126
136
  # Calculates hash code according to all attributes.
127
137
  # @return [Integer] Hash code
128
138
  def hash
129
- [pulp_href, pulp_created, pulp_last_updated, repository_version, repository].hash
139
+ [pulp_href, prn, pulp_created, pulp_last_updated, repository_version, repository].hash
130
140
  end
131
141
 
132
142
  # Builds the object from hash
@@ -0,0 +1,213 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpDebClient
16
+ class MyPermissionsResponse
17
+ attr_accessor :permissions
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'permissions' => :'permissions'
23
+ }
24
+ end
25
+
26
+ # Attribute type mapping.
27
+ def self.openapi_types
28
+ {
29
+ :'permissions' => :'Array<String>'
30
+ }
31
+ end
32
+
33
+ # List of attributes with nullable: true
34
+ def self.openapi_nullable
35
+ Set.new([
36
+ ])
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ if (!attributes.is_a?(Hash))
43
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::MyPermissionsResponse` initialize method"
44
+ end
45
+
46
+ # check to see if the attribute exists and convert string to symbol for hash key
47
+ attributes = attributes.each_with_object({}) { |(k, v), h|
48
+ if (!self.class.attribute_map.key?(k.to_sym))
49
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::MyPermissionsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
+ end
51
+ h[k.to_sym] = v
52
+ }
53
+
54
+ if attributes.key?(:'permissions')
55
+ if (value = attributes[:'permissions']).is_a?(Array)
56
+ self.permissions = value
57
+ end
58
+ end
59
+ end
60
+
61
+ # Show invalid properties with the reasons. Usually used together with valid?
62
+ # @return Array for valid properties with the reasons
63
+ def list_invalid_properties
64
+ invalid_properties = Array.new
65
+ if @permissions.nil?
66
+ invalid_properties.push('invalid value for "permissions", permissions cannot be nil.')
67
+ end
68
+
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ return false if @permissions.nil?
76
+ true
77
+ end
78
+
79
+ # Checks equality by comparing each attribute.
80
+ # @param [Object] Object to be compared
81
+ def ==(o)
82
+ return true if self.equal?(o)
83
+ self.class == o.class &&
84
+ permissions == o.permissions
85
+ end
86
+
87
+ # @see the `==` method
88
+ # @param [Object] Object to be compared
89
+ def eql?(o)
90
+ self == o
91
+ end
92
+
93
+ # Calculates hash code according to all attributes.
94
+ # @return [Integer] Hash code
95
+ def hash
96
+ [permissions].hash
97
+ end
98
+
99
+ # Builds the object from hash
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ # @return [Object] Returns the model itself
102
+ def self.build_from_hash(attributes)
103
+ new.build_from_hash(attributes)
104
+ end
105
+
106
+ # Builds the object from hash
107
+ # @param [Hash] attributes Model attributes in the form of hash
108
+ # @return [Object] Returns the model itself
109
+ def build_from_hash(attributes)
110
+ return nil unless attributes.is_a?(Hash)
111
+ self.class.openapi_types.each_pair do |key, type|
112
+ if type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the attribute
114
+ # is documented as an array but the input is not
115
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
116
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
117
+ end
118
+ elsif !attributes[self.class.attribute_map[key]].nil?
119
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
120
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
121
+ end
122
+
123
+ self
124
+ end
125
+
126
+ # Deserializes the data based on type
127
+ # @param string type Data type
128
+ # @param string value Value to be deserialized
129
+ # @return [Object] Deserialized data
130
+ def _deserialize(type, value)
131
+ case type.to_sym
132
+ when :DateTime
133
+ DateTime.parse(value)
134
+ when :Date
135
+ Date.parse(value)
136
+ when :String
137
+ value.to_s
138
+ when :Integer
139
+ value.to_i
140
+ when :Float
141
+ value.to_f
142
+ when :Boolean
143
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
144
+ true
145
+ else
146
+ false
147
+ end
148
+ when :Object
149
+ # generic object (usually a Hash), return directly
150
+ value
151
+ when /\AArray<(?<inner_type>.+)>\z/
152
+ inner_type = Regexp.last_match[:inner_type]
153
+ value.map { |v| _deserialize(inner_type, v) }
154
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
155
+ k_type = Regexp.last_match[:k_type]
156
+ v_type = Regexp.last_match[:v_type]
157
+ {}.tap do |hash|
158
+ value.each do |k, v|
159
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
160
+ end
161
+ end
162
+ else # model
163
+ PulpDebClient.const_get(type).build_from_hash(value)
164
+ end
165
+ end
166
+
167
+ # Returns the string representation of the object
168
+ # @return [String] String presentation of the object
169
+ def to_s
170
+ to_hash.to_s
171
+ end
172
+
173
+ # to_body is an alias to to_hash (backward compatibility)
174
+ # @return [Hash] Returns the object in the form of hash
175
+ def to_body
176
+ to_hash
177
+ end
178
+
179
+ # Returns the object in the form of hash
180
+ # @return [Hash] Returns the object in the form of hash
181
+ def to_hash
182
+ hash = {}
183
+ self.class.attribute_map.each_pair do |attr, param|
184
+ value = self.send(attr)
185
+ if value.nil?
186
+ is_nullable = self.class.openapi_nullable.include?(attr)
187
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
188
+ end
189
+
190
+ hash[param] = _to_hash(value)
191
+ end
192
+ hash
193
+ end
194
+
195
+ # Outputs non-array value in the form of hash
196
+ # For object, use to_hash. Otherwise, just return the value
197
+ # @param [Object] value Any valid value
198
+ # @return [Hash] Returns the value in the form of hash
199
+ def _to_hash(value)
200
+ if value.is_a?(Array)
201
+ value.compact.map { |v| _to_hash(v) }
202
+ elsif value.is_a?(Hash)
203
+ {}.tap do |hash|
204
+ value.each { |k, v| hash[k] = _to_hash(v) }
205
+ end
206
+ elsif value.respond_to? :to_hash
207
+ value.to_hash
208
+ else
209
+ value
210
+ end
211
+ end
212
+ end
213
+ end