pulp_container_client 2.22.1 → 2.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (244) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -14
  3. data/docs/AsyncOperationResponse.md +8 -7
  4. data/docs/ContainerBlobResponse.md +18 -17
  5. data/docs/ContainerContainerDistribution.md +24 -23
  6. data/docs/ContainerContainerDistributionResponse.md +40 -39
  7. data/docs/ContainerContainerNamespace.md +8 -7
  8. data/docs/ContainerContainerNamespaceResponse.md +16 -15
  9. data/docs/ContainerContainerPullThroughDistribution.md +26 -25
  10. data/docs/ContainerContainerPullThroughDistributionResponse.md +38 -37
  11. data/docs/ContainerContainerPullThroughRemote.md +52 -51
  12. data/docs/ContainerContainerPullThroughRemoteResponse.md +52 -51
  13. data/docs/ContainerContainerPullThroughRemoteResponseHiddenFieldsInner.md +20 -0
  14. data/docs/ContainerContainerPushRepository.md +16 -15
  15. data/docs/ContainerContainerPushRepositoryResponse.md +28 -27
  16. data/docs/ContainerContainerRemote.md +56 -55
  17. data/docs/ContainerContainerRemoteResponse.md +56 -55
  18. data/docs/ContainerContainerRepository.md +18 -17
  19. data/docs/ContainerContainerRepositoryResponse.md +30 -29
  20. data/docs/ContainerManifestResponse.md +42 -41
  21. data/docs/ContainerManifestSignatureResponse.md +28 -27
  22. data/docs/ContainerRepositorySyncURL.md +12 -11
  23. data/docs/ContainerTagResponse.md +18 -17
  24. data/docs/ContentBlobsApi.md +82 -49
  25. data/docs/ContentManifestsApi.md +86 -53
  26. data/docs/ContentSignaturesApi.md +97 -64
  27. data/docs/ContentSummaryResponse.md +12 -11
  28. data/docs/ContentTagsApi.md +86 -53
  29. data/docs/DistributionsContainerApi.md +386 -183
  30. data/docs/DistributionsPullThroughApi.md +385 -182
  31. data/docs/ManifestCopy.md +14 -13
  32. data/docs/MediaTypesEnum.md +4 -5
  33. data/docs/MyPermissionsResponse.md +8 -7
  34. data/docs/NestedRole.md +12 -11
  35. data/docs/NestedRoleResponse.md +12 -11
  36. data/docs/ObjectRolesResponse.md +8 -7
  37. data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
  38. data/docs/PaginatedcontainerBlobResponseList.md +14 -13
  39. data/docs/PaginatedcontainerContainerDistributionResponseList.md +14 -13
  40. data/docs/PaginatedcontainerContainerNamespaceResponseList.md +14 -13
  41. data/docs/PaginatedcontainerContainerPullThroughDistributionResponseList.md +14 -13
  42. data/docs/PaginatedcontainerContainerPullThroughRemoteResponseList.md +14 -13
  43. data/docs/PaginatedcontainerContainerPushRepositoryResponseList.md +14 -13
  44. data/docs/PaginatedcontainerContainerRemoteResponseList.md +14 -13
  45. data/docs/PaginatedcontainerContainerRepositoryResponseList.md +14 -13
  46. data/docs/PaginatedcontainerManifestResponseList.md +14 -13
  47. data/docs/PaginatedcontainerManifestSignatureResponseList.md +14 -13
  48. data/docs/PaginatedcontainerTagResponseList.md +14 -13
  49. data/docs/PatchedcontainerContainerDistribution.md +24 -23
  50. data/docs/PatchedcontainerContainerPullThroughDistribution.md +26 -25
  51. data/docs/PatchedcontainerContainerPullThroughRemote.md +52 -51
  52. data/docs/PatchedcontainerContainerPushRepository.md +16 -15
  53. data/docs/PatchedcontainerContainerRemote.md +56 -55
  54. data/docs/PatchedcontainerContainerRepository.md +18 -17
  55. data/docs/Policy692Enum.md +4 -5
  56. data/docs/Policy7e0Enum.md +4 -5
  57. data/docs/PulpContainerNamespacesApi.md +259 -124
  58. data/docs/RecursiveManage.md +8 -7
  59. data/docs/RemotesContainerApi.md +389 -184
  60. data/docs/RemotesPullThroughApi.md +389 -184
  61. data/docs/RemoveImage.md +8 -7
  62. data/docs/RemoveSignatures.md +8 -7
  63. data/docs/RemoveSignaturesResponse.md +8 -7
  64. data/docs/Repair.md +8 -7
  65. data/docs/RepositoriesContainerApi.md +647 -291
  66. data/docs/RepositoriesContainerPushApi.md +419 -198
  67. data/docs/RepositoriesContainerPushVersionsApi.md +152 -82
  68. data/docs/RepositoriesContainerVersionsApi.md +152 -82
  69. data/docs/RepositorySign.md +12 -11
  70. data/docs/RepositoryVersionResponse.md +22 -21
  71. data/docs/SetLabel.md +10 -9
  72. data/docs/SetLabelResponse.md +10 -9
  73. data/docs/TagCopy.md +12 -11
  74. data/docs/TagImage.md +10 -9
  75. data/docs/TokenApi.md +25 -7
  76. data/docs/UnTagImage.md +8 -7
  77. data/docs/UnsetLabel.md +8 -7
  78. data/docs/UnsetLabelResponse.md +10 -9
  79. data/lib/pulp_container_client/api/content_blobs_api.rb +11 -9
  80. data/lib/pulp_container_client/api/content_manifests_api.rb +11 -9
  81. data/lib/pulp_container_client/api/content_signatures_api.rb +11 -9
  82. data/lib/pulp_container_client/api/content_tags_api.rb +11 -9
  83. data/lib/pulp_container_client/api/distributions_container_api.rb +89 -56
  84. data/lib/pulp_container_client/api/distributions_pull_through_api.rb +89 -56
  85. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +53 -36
  86. data/lib/pulp_container_client/api/remotes_container_api.rb +104 -68
  87. data/lib/pulp_container_client/api/remotes_pull_through_api.rb +104 -68
  88. data/lib/pulp_container_client/api/repositories_container_api.rb +171 -102
  89. data/lib/pulp_container_client/api/repositories_container_push_api.rb +102 -62
  90. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +40 -30
  91. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +40 -30
  92. data/lib/pulp_container_client/api/token_api.rb +5 -4
  93. data/lib/pulp_container_client/api_client.rb +137 -102
  94. data/lib/pulp_container_client/api_error.rb +2 -1
  95. data/lib/pulp_container_client/configuration.rb +162 -21
  96. data/lib/pulp_container_client/models/async_operation_response.rb +32 -22
  97. data/lib/pulp_container_client/models/container_blob_response.rb +37 -29
  98. data/lib/pulp_container_client/models/container_container_distribution.rb +86 -74
  99. data/lib/pulp_container_client/models/container_container_distribution_response.rb +95 -83
  100. data/lib/pulp_container_client/models/container_container_namespace.rb +32 -22
  101. data/lib/pulp_container_client/models/container_container_namespace_response.rb +34 -24
  102. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +88 -74
  103. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +97 -83
  104. data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +56 -22
  105. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +59 -25
  106. data/lib/pulp_container_client/models/{container_container_pull_through_remote_response_hidden_fields.rb → container_container_pull_through_remote_response_hidden_fields_inner.rb} +37 -25
  107. data/lib/pulp_container_client/models/container_container_push_repository.rb +83 -73
  108. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +91 -81
  109. data/lib/pulp_container_client/models/container_container_remote.rb +63 -23
  110. data/lib/pulp_container_client/models/container_container_remote_response.rb +61 -25
  111. data/lib/pulp_container_client/models/container_container_repository.rb +32 -22
  112. data/lib/pulp_container_client/models/container_container_repository_response.rb +34 -24
  113. data/lib/pulp_container_client/models/container_manifest_response.rb +42 -24
  114. data/lib/pulp_container_client/models/container_manifest_signature_response.rb +46 -24
  115. data/lib/pulp_container_client/models/container_repository_sync_url.rb +30 -22
  116. data/lib/pulp_container_client/models/container_tag_response.rb +36 -24
  117. data/lib/pulp_container_client/models/content_summary_response.rb +36 -22
  118. data/lib/pulp_container_client/models/manifest_copy.rb +31 -23
  119. data/lib/pulp_container_client/models/media_types_enum.rb +8 -4
  120. data/lib/pulp_container_client/models/my_permissions_response.rb +32 -22
  121. data/lib/pulp_container_client/models/nested_role.rb +32 -22
  122. data/lib/pulp_container_client/models/nested_role_response.rb +32 -22
  123. data/lib/pulp_container_client/models/object_roles_response.rb +32 -22
  124. data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +34 -22
  125. data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +34 -22
  126. data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +34 -22
  127. data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +34 -22
  128. data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list.rb +34 -22
  129. data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list.rb +34 -22
  130. data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +34 -22
  131. data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +34 -22
  132. data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +34 -22
  133. data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +34 -22
  134. data/lib/pulp_container_client/models/paginatedcontainer_manifest_signature_response_list.rb +34 -22
  135. data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +34 -22
  136. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +81 -65
  137. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +81 -65
  138. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +62 -24
  139. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +77 -65
  140. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +72 -26
  141. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +35 -23
  142. data/lib/pulp_container_client/models/policy692_enum.rb +8 -4
  143. data/lib/pulp_container_client/models/policy7e0_enum.rb +8 -4
  144. data/lib/pulp_container_client/models/recursive_manage.rb +31 -23
  145. data/lib/pulp_container_client/models/remove_image.rb +32 -22
  146. data/lib/pulp_container_client/models/remove_signatures.rb +32 -22
  147. data/lib/pulp_container_client/models/remove_signatures_response.rb +32 -22
  148. data/lib/pulp_container_client/models/repair.rb +30 -22
  149. data/lib/pulp_container_client/models/repository_sign.rb +36 -24
  150. data/lib/pulp_container_client/models/repository_version_response.rb +32 -24
  151. data/lib/pulp_container_client/models/set_label.rb +34 -22
  152. data/lib/pulp_container_client/models/set_label_response.rb +34 -22
  153. data/lib/pulp_container_client/models/tag_copy.rb +31 -23
  154. data/lib/pulp_container_client/models/tag_image.rb +34 -22
  155. data/lib/pulp_container_client/models/un_tag_image.rb +32 -22
  156. data/lib/pulp_container_client/models/unset_label.rb +32 -22
  157. data/lib/pulp_container_client/models/unset_label_response.rb +32 -22
  158. data/lib/pulp_container_client/version.rb +2 -2
  159. data/lib/pulp_container_client.rb +2 -3
  160. data/pulp_container_client.gemspec +9 -6
  161. data/spec/api/content_blobs_api_spec.rb +3 -3
  162. data/spec/api/content_manifests_api_spec.rb +3 -3
  163. data/spec/api/content_signatures_api_spec.rb +3 -3
  164. data/spec/api/content_tags_api_spec.rb +3 -3
  165. data/spec/api/distributions_container_api_spec.rb +13 -13
  166. data/spec/api/distributions_pull_through_api_spec.rb +13 -13
  167. data/spec/api/pulp_container_namespaces_api_spec.rb +9 -9
  168. data/spec/api/remotes_container_api_spec.rb +20 -19
  169. data/spec/api/remotes_pull_through_api_spec.rb +20 -19
  170. data/spec/api/repositories_container_api_spec.rb +22 -22
  171. data/spec/api/repositories_container_push_api_spec.rb +14 -14
  172. data/spec/api/repositories_container_push_versions_api_spec.rb +12 -11
  173. data/spec/api/repositories_container_versions_api_spec.rb +12 -11
  174. data/spec/api/token_api_spec.rb +2 -2
  175. data/spec/models/async_operation_response_spec.rb +7 -12
  176. data/spec/models/container_blob_response_spec.rb +12 -17
  177. data/spec/models/container_container_distribution_response_spec.rb +34 -39
  178. data/spec/models/container_container_distribution_spec.rb +20 -25
  179. data/spec/models/container_container_namespace_response_spec.rb +11 -16
  180. data/spec/models/container_container_namespace_spec.rb +7 -12
  181. data/spec/models/container_container_pull_through_distribution_response_spec.rb +33 -38
  182. data/spec/models/container_container_pull_through_distribution_spec.rb +21 -26
  183. data/spec/models/{container_container_pull_through_remote_response_hidden_fields_spec.rb → container_container_pull_through_remote_response_hidden_fields_inner_spec.rb} +11 -16
  184. data/spec/models/container_container_pull_through_remote_response_spec.rb +29 -34
  185. data/spec/models/container_container_pull_through_remote_spec.rb +29 -34
  186. data/spec/models/container_container_push_repository_response_spec.rb +28 -33
  187. data/spec/models/container_container_push_repository_spec.rb +15 -20
  188. data/spec/models/container_container_remote_response_spec.rb +31 -36
  189. data/spec/models/container_container_remote_spec.rb +31 -36
  190. data/spec/models/container_container_repository_response_spec.rb +18 -23
  191. data/spec/models/container_container_repository_spec.rb +12 -17
  192. data/spec/models/container_manifest_response_spec.rb +24 -29
  193. data/spec/models/container_manifest_signature_response_spec.rb +17 -22
  194. data/spec/models/container_repository_sync_url_spec.rb +9 -14
  195. data/spec/models/container_tag_response_spec.rb +12 -17
  196. data/spec/models/content_summary_response_spec.rb +9 -14
  197. data/spec/models/manifest_copy_spec.rb +10 -15
  198. data/spec/models/media_types_enum_spec.rb +6 -11
  199. data/spec/models/my_permissions_response_spec.rb +7 -12
  200. data/spec/models/nested_role_response_spec.rb +9 -14
  201. data/spec/models/nested_role_spec.rb +9 -14
  202. data/spec/models/object_roles_response_spec.rb +7 -12
  203. data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
  204. data/spec/models/paginatedcontainer_blob_response_list_spec.rb +10 -15
  205. data/spec/models/paginatedcontainer_container_distribution_response_list_spec.rb +10 -15
  206. data/spec/models/paginatedcontainer_container_namespace_response_list_spec.rb +10 -15
  207. data/spec/models/paginatedcontainer_container_pull_through_distribution_response_list_spec.rb +10 -15
  208. data/spec/models/paginatedcontainer_container_pull_through_remote_response_list_spec.rb +10 -15
  209. data/spec/models/paginatedcontainer_container_push_repository_response_list_spec.rb +10 -15
  210. data/spec/models/paginatedcontainer_container_remote_response_list_spec.rb +10 -15
  211. data/spec/models/paginatedcontainer_container_repository_response_list_spec.rb +10 -15
  212. data/spec/models/paginatedcontainer_manifest_response_list_spec.rb +10 -15
  213. data/spec/models/paginatedcontainer_manifest_signature_response_list_spec.rb +10 -15
  214. data/spec/models/paginatedcontainer_tag_response_list_spec.rb +10 -15
  215. data/spec/models/patchedcontainer_container_distribution_spec.rb +20 -25
  216. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +21 -26
  217. data/spec/models/patchedcontainer_container_pull_through_remote_spec.rb +29 -34
  218. data/spec/models/patchedcontainer_container_push_repository_spec.rb +15 -20
  219. data/spec/models/patchedcontainer_container_remote_spec.rb +31 -36
  220. data/spec/models/patchedcontainer_container_repository_spec.rb +12 -17
  221. data/spec/models/policy692_enum_spec.rb +6 -11
  222. data/spec/models/policy7e0_enum_spec.rb +6 -11
  223. data/spec/models/recursive_manage_spec.rb +7 -12
  224. data/spec/models/remove_image_spec.rb +7 -12
  225. data/spec/models/remove_signatures_response_spec.rb +7 -12
  226. data/spec/models/remove_signatures_spec.rb +7 -12
  227. data/spec/models/repair_spec.rb +7 -12
  228. data/spec/models/repository_sign_spec.rb +9 -14
  229. data/spec/models/repository_version_response_spec.rb +14 -19
  230. data/spec/models/set_label_response_spec.rb +8 -13
  231. data/spec/models/set_label_spec.rb +8 -13
  232. data/spec/models/tag_copy_spec.rb +9 -14
  233. data/spec/models/tag_image_spec.rb +8 -13
  234. data/spec/models/un_tag_image_spec.rb +7 -12
  235. data/spec/models/unset_label_response_spec.rb +8 -13
  236. data/spec/models/unset_label_spec.rb +7 -12
  237. data/spec/spec_helper.rb +1 -1
  238. metadata +105 -85
  239. data/docs/ContainerContainerPullThroughRemoteResponseHiddenFields.md +0 -19
  240. data/docs/OCIBuildImage.md +0 -23
  241. data/lib/pulp_container_client/models/oci_build_image.rb +0 -256
  242. data/spec/api_client_spec.rb +0 -188
  243. data/spec/configuration_spec.rb +0 -42
  244. data/spec/models/oci_build_image_spec.rb +0 -59
@@ -6,84 +6,90 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module PulpContainerClient
16
17
  # Serializer for Container Push Repositories.
17
18
  class ContainerContainerPushRepositoryResponse
18
- attr_accessor :versions_href
19
-
20
- # A unique name for this repository.
21
- attr_accessor :name
19
+ # Retain X versions of the repository. Default is null which retains all versions.
20
+ attr_accessor :retain_repo_versions
22
21
 
23
22
  # A reference to an associated signing service.
24
23
  attr_accessor :manifest_signing_service
25
24
 
26
- # An optional description.
27
- attr_accessor :description
28
-
29
- # Retain X versions of the repository. Default is null which retains all versions.
30
- attr_accessor :retain_repo_versions
25
+ attr_accessor :versions_href
31
26
 
32
27
  attr_accessor :pulp_labels
33
28
 
34
- attr_accessor :pulp_href
29
+ # An optional description.
30
+ attr_accessor :description
35
31
 
36
32
  attr_accessor :latest_version_href
37
33
 
38
- # Timestamp of creation.
39
- attr_accessor :pulp_created
40
-
41
34
  # The Pulp Resource Name (PRN).
42
35
  attr_accessor :prn
43
36
 
37
+ attr_accessor :pulp_href
38
+
44
39
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
45
40
  attr_accessor :pulp_last_updated
46
41
 
42
+ # Timestamp of creation.
43
+ attr_accessor :pulp_created
44
+
45
+ # A unique name for this repository.
46
+ attr_accessor :name
47
+
47
48
  # Attribute mapping from ruby-style variable name to JSON key.
48
49
  def self.attribute_map
49
50
  {
50
- :'versions_href' => :'versions_href',
51
- :'name' => :'name',
52
- :'manifest_signing_service' => :'manifest_signing_service',
53
- :'description' => :'description',
54
51
  :'retain_repo_versions' => :'retain_repo_versions',
52
+ :'manifest_signing_service' => :'manifest_signing_service',
53
+ :'versions_href' => :'versions_href',
55
54
  :'pulp_labels' => :'pulp_labels',
56
- :'pulp_href' => :'pulp_href',
55
+ :'description' => :'description',
57
56
  :'latest_version_href' => :'latest_version_href',
58
- :'pulp_created' => :'pulp_created',
59
57
  :'prn' => :'prn',
60
- :'pulp_last_updated' => :'pulp_last_updated'
58
+ :'pulp_href' => :'pulp_href',
59
+ :'pulp_last_updated' => :'pulp_last_updated',
60
+ :'pulp_created' => :'pulp_created',
61
+ :'name' => :'name'
61
62
  }
62
63
  end
63
64
 
65
+ # Returns all the JSON keys this model knows about
66
+ def self.acceptable_attributes
67
+ attribute_map.values
68
+ end
69
+
64
70
  # Attribute type mapping.
65
71
  def self.openapi_types
66
72
  {
67
- :'versions_href' => :'String',
68
- :'name' => :'String',
69
- :'manifest_signing_service' => :'String',
70
- :'description' => :'String',
71
73
  :'retain_repo_versions' => :'Integer',
74
+ :'manifest_signing_service' => :'String',
75
+ :'versions_href' => :'String',
72
76
  :'pulp_labels' => :'Hash<String, String>',
73
- :'pulp_href' => :'String',
77
+ :'description' => :'String',
74
78
  :'latest_version_href' => :'String',
75
- :'pulp_created' => :'DateTime',
76
79
  :'prn' => :'String',
77
- :'pulp_last_updated' => :'DateTime'
80
+ :'pulp_href' => :'String',
81
+ :'pulp_last_updated' => :'Time',
82
+ :'pulp_created' => :'Time',
83
+ :'name' => :'String'
78
84
  }
79
85
  end
80
86
 
81
87
  # List of attributes with nullable: true
82
88
  def self.openapi_nullable
83
89
  Set.new([
90
+ :'retain_repo_versions',
84
91
  :'manifest_signing_service',
85
92
  :'description',
86
- :'retain_repo_versions',
87
93
  ])
88
94
  end
89
95
 
@@ -102,24 +108,16 @@ module PulpContainerClient
102
108
  h[k.to_sym] = v
103
109
  }
104
110
 
105
- if attributes.key?(:'versions_href')
106
- self.versions_href = attributes[:'versions_href']
107
- end
108
-
109
- if attributes.key?(:'name')
110
- self.name = attributes[:'name']
111
+ if attributes.key?(:'retain_repo_versions')
112
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
111
113
  end
112
114
 
113
115
  if attributes.key?(:'manifest_signing_service')
114
116
  self.manifest_signing_service = attributes[:'manifest_signing_service']
115
117
  end
116
118
 
117
- if attributes.key?(:'description')
118
- self.description = attributes[:'description']
119
- end
120
-
121
- if attributes.key?(:'retain_repo_versions')
122
- self.retain_repo_versions = attributes[:'retain_repo_versions']
119
+ if attributes.key?(:'versions_href')
120
+ self.versions_href = attributes[:'versions_href']
123
121
  end
124
122
 
125
123
  if attributes.key?(:'pulp_labels')
@@ -128,47 +126,59 @@ module PulpContainerClient
128
126
  end
129
127
  end
130
128
 
131
- if attributes.key?(:'pulp_href')
132
- self.pulp_href = attributes[:'pulp_href']
129
+ if attributes.key?(:'description')
130
+ self.description = attributes[:'description']
133
131
  end
134
132
 
135
133
  if attributes.key?(:'latest_version_href')
136
134
  self.latest_version_href = attributes[:'latest_version_href']
137
135
  end
138
136
 
139
- if attributes.key?(:'pulp_created')
140
- self.pulp_created = attributes[:'pulp_created']
141
- end
142
-
143
137
  if attributes.key?(:'prn')
144
138
  self.prn = attributes[:'prn']
145
139
  end
146
140
 
141
+ if attributes.key?(:'pulp_href')
142
+ self.pulp_href = attributes[:'pulp_href']
143
+ end
144
+
147
145
  if attributes.key?(:'pulp_last_updated')
148
146
  self.pulp_last_updated = attributes[:'pulp_last_updated']
149
147
  end
148
+
149
+ if attributes.key?(:'pulp_created')
150
+ self.pulp_created = attributes[:'pulp_created']
151
+ end
152
+
153
+ if attributes.key?(:'name')
154
+ self.name = attributes[:'name']
155
+ else
156
+ self.name = nil
157
+ end
150
158
  end
151
159
 
152
160
  # Show invalid properties with the reasons. Usually used together with valid?
153
161
  # @return Array for valid properties with the reasons
154
162
  def list_invalid_properties
163
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
155
164
  invalid_properties = Array.new
156
- if @name.nil?
157
- invalid_properties.push('invalid value for "name", name cannot be nil.')
158
- end
159
-
160
165
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
161
166
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
162
167
  end
163
168
 
169
+ if @name.nil?
170
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
171
+ end
172
+
164
173
  invalid_properties
165
174
  end
166
175
 
167
176
  # Check to see if the all the properties in the model are valid
168
177
  # @return true if the model is valid
169
178
  def valid?
170
- return false if @name.nil?
179
+ warn '[DEPRECATED] the `valid?` method is obsolete'
171
180
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
181
+ return false if @name.nil?
172
182
  true
173
183
  end
174
184
 
@@ -187,17 +197,17 @@ module PulpContainerClient
187
197
  def ==(o)
188
198
  return true if self.equal?(o)
189
199
  self.class == o.class &&
190
- versions_href == o.versions_href &&
191
- name == o.name &&
192
- manifest_signing_service == o.manifest_signing_service &&
193
- description == o.description &&
194
200
  retain_repo_versions == o.retain_repo_versions &&
201
+ manifest_signing_service == o.manifest_signing_service &&
202
+ versions_href == o.versions_href &&
195
203
  pulp_labels == o.pulp_labels &&
196
- pulp_href == o.pulp_href &&
204
+ description == o.description &&
197
205
  latest_version_href == o.latest_version_href &&
198
- pulp_created == o.pulp_created &&
199
206
  prn == o.prn &&
200
- pulp_last_updated == o.pulp_last_updated
207
+ pulp_href == o.pulp_href &&
208
+ pulp_last_updated == o.pulp_last_updated &&
209
+ pulp_created == o.pulp_created &&
210
+ name == o.name
201
211
  end
202
212
 
203
213
  # @see the `==` method
@@ -209,44 +219,40 @@ module PulpContainerClient
209
219
  # Calculates hash code according to all attributes.
210
220
  # @return [Integer] Hash code
211
221
  def hash
212
- [versions_href, name, manifest_signing_service, description, retain_repo_versions, pulp_labels, pulp_href, latest_version_href, pulp_created, prn, pulp_last_updated].hash
222
+ [retain_repo_versions, manifest_signing_service, versions_href, pulp_labels, description, latest_version_href, prn, pulp_href, pulp_last_updated, pulp_created, name].hash
213
223
  end
214
224
 
215
225
  # Builds the object from hash
216
226
  # @param [Hash] attributes Model attributes in the form of hash
217
227
  # @return [Object] Returns the model itself
218
228
  def self.build_from_hash(attributes)
219
- new.build_from_hash(attributes)
220
- end
221
-
222
- # Builds the object from hash
223
- # @param [Hash] attributes Model attributes in the form of hash
224
- # @return [Object] Returns the model itself
225
- def build_from_hash(attributes)
226
229
  return nil unless attributes.is_a?(Hash)
227
- self.class.openapi_types.each_pair do |key, type|
228
- if type =~ /\AArray<(.*)>/i
230
+ attributes = attributes.transform_keys(&:to_sym)
231
+ transformed_hash = {}
232
+ openapi_types.each_pair do |key, type|
233
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
234
+ transformed_hash["#{key}"] = nil
235
+ elsif type =~ /\AArray<(.*)>/i
229
236
  # check to ensure the input is an array given that the attribute
230
237
  # is documented as an array but the input is not
231
- if attributes[self.class.attribute_map[key]].is_a?(Array)
232
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
238
+ if attributes[attribute_map[key]].is_a?(Array)
239
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
233
240
  end
234
- elsif !attributes[self.class.attribute_map[key]].nil?
235
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
236
- end # or else data not found in attributes(hash), not an issue as the data can be optional
241
+ elsif !attributes[attribute_map[key]].nil?
242
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
243
+ end
237
244
  end
238
-
239
- self
245
+ new(transformed_hash)
240
246
  end
241
247
 
242
248
  # Deserializes the data based on type
243
249
  # @param string type Data type
244
250
  # @param string value Value to be deserialized
245
251
  # @return [Object] Deserialized data
246
- def _deserialize(type, value)
252
+ def self._deserialize(type, value)
247
253
  case type.to_sym
248
- when :DateTime
249
- DateTime.parse(value)
254
+ when :Time
255
+ Time.parse(value)
250
256
  when :Date
251
257
  Date.parse(value)
252
258
  when :String
@@ -276,7 +282,9 @@ module PulpContainerClient
276
282
  end
277
283
  end
278
284
  else # model
279
- PulpContainerClient.const_get(type).build_from_hash(value)
285
+ # models (e.g. Pet) or oneOf
286
+ klass = PulpContainerClient.const_get(type)
287
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
280
288
  end
281
289
  end
282
290
 
@@ -302,7 +310,7 @@ module PulpContainerClient
302
310
  is_nullable = self.class.openapi_nullable.include?(attr)
303
311
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
304
312
  end
305
-
313
+
306
314
  hash[param] = _to_hash(value)
307
315
  end
308
316
  hash
@@ -325,5 +333,7 @@ module PulpContainerClient
325
333
  value
326
334
  end
327
335
  end
336
+
328
337
  end
338
+
329
339
  end
@@ -6,11 +6,12 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module PulpContainerClient
16
17
  # A Serializer for ContainerRemote.
@@ -89,6 +90,28 @@ module PulpContainerClient
89
90
  # A URL to a sigstore to download image signatures from
90
91
  attr_accessor :sigstore
91
92
 
93
+ class EnumAttributeValidator
94
+ attr_reader :datatype
95
+ attr_reader :allowable_values
96
+
97
+ def initialize(datatype, allowable_values)
98
+ @allowable_values = allowable_values.map do |value|
99
+ case datatype.to_s
100
+ when /Integer/i
101
+ value.to_i
102
+ when /Float/i
103
+ value.to_f
104
+ else
105
+ value
106
+ end
107
+ end
108
+ end
109
+
110
+ def valid?(value)
111
+ !value || allowable_values.include?(value)
112
+ end
113
+ end
114
+
92
115
  # Attribute mapping from ruby-style variable name to JSON key.
93
116
  def self.attribute_map
94
117
  {
@@ -120,6 +143,11 @@ module PulpContainerClient
120
143
  }
121
144
  end
122
145
 
146
+ # Returns all the JSON keys this model knows about
147
+ def self.acceptable_attributes
148
+ attribute_map.values
149
+ end
150
+
123
151
  # Attribute type mapping.
124
152
  def self.openapi_types
125
153
  {
@@ -191,10 +219,14 @@ module PulpContainerClient
191
219
 
192
220
  if attributes.key?(:'name')
193
221
  self.name = attributes[:'name']
222
+ else
223
+ self.name = nil
194
224
  end
195
225
 
196
226
  if attributes.key?(:'url')
197
227
  self.url = attributes[:'url']
228
+ else
229
+ self.url = nil
198
230
  end
199
231
 
200
232
  if attributes.key?(:'ca_cert')
@@ -279,6 +311,8 @@ module PulpContainerClient
279
311
 
280
312
  if attributes.key?(:'upstream_name')
281
313
  self.upstream_name = attributes[:'upstream_name']
314
+ else
315
+ self.upstream_name = nil
282
316
  end
283
317
 
284
318
  if attributes.key?(:'include_tags')
@@ -301,6 +335,7 @@ module PulpContainerClient
301
335
  # Show invalid properties with the reasons. Usually used together with valid?
302
336
  # @return Array for valid properties with the reasons
303
337
  def list_invalid_properties
338
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
304
339
  invalid_properties = Array.new
305
340
  if @name.nil?
306
341
  invalid_properties.push('invalid value for "name", name cannot be nil.')
@@ -388,6 +423,7 @@ module PulpContainerClient
388
423
  # Check to see if the all the properties in the model are valid
389
424
  # @return true if the model is valid
390
425
  def valid?
426
+ warn '[DEPRECATED] the `valid?` method is obsolete'
391
427
  return false if @name.nil?
392
428
  return false if @name.to_s.length < 1
393
429
  return false if @url.nil?
@@ -586,7 +622,11 @@ module PulpContainerClient
586
622
  # Custom attribute writer method with validation
587
623
  # @param [Object] sigstore Value to be assigned
588
624
  def sigstore=(sigstore)
589
- if !sigstore.nil? && sigstore.to_s.length < 1
625
+ if sigstore.nil?
626
+ fail ArgumentError, 'sigstore cannot be nil'
627
+ end
628
+
629
+ if sigstore.to_s.length < 1
590
630
  fail ArgumentError, 'invalid value for "sigstore", the character length must be great than or equal to 1.'
591
631
  end
592
632
 
@@ -641,37 +681,33 @@ module PulpContainerClient
641
681
  # @param [Hash] attributes Model attributes in the form of hash
642
682
  # @return [Object] Returns the model itself
643
683
  def self.build_from_hash(attributes)
644
- new.build_from_hash(attributes)
645
- end
646
-
647
- # Builds the object from hash
648
- # @param [Hash] attributes Model attributes in the form of hash
649
- # @return [Object] Returns the model itself
650
- def build_from_hash(attributes)
651
684
  return nil unless attributes.is_a?(Hash)
652
- self.class.openapi_types.each_pair do |key, type|
653
- if type =~ /\AArray<(.*)>/i
685
+ attributes = attributes.transform_keys(&:to_sym)
686
+ transformed_hash = {}
687
+ openapi_types.each_pair do |key, type|
688
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
689
+ transformed_hash["#{key}"] = nil
690
+ elsif type =~ /\AArray<(.*)>/i
654
691
  # check to ensure the input is an array given that the attribute
655
692
  # is documented as an array but the input is not
656
- if attributes[self.class.attribute_map[key]].is_a?(Array)
657
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
693
+ if attributes[attribute_map[key]].is_a?(Array)
694
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
658
695
  end
659
- elsif !attributes[self.class.attribute_map[key]].nil?
660
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
661
- end # or else data not found in attributes(hash), not an issue as the data can be optional
696
+ elsif !attributes[attribute_map[key]].nil?
697
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
698
+ end
662
699
  end
663
-
664
- self
700
+ new(transformed_hash)
665
701
  end
666
702
 
667
703
  # Deserializes the data based on type
668
704
  # @param string type Data type
669
705
  # @param string value Value to be deserialized
670
706
  # @return [Object] Deserialized data
671
- def _deserialize(type, value)
707
+ def self._deserialize(type, value)
672
708
  case type.to_sym
673
- when :DateTime
674
- DateTime.parse(value)
709
+ when :Time
710
+ Time.parse(value)
675
711
  when :Date
676
712
  Date.parse(value)
677
713
  when :String
@@ -701,7 +737,9 @@ module PulpContainerClient
701
737
  end
702
738
  end
703
739
  else # model
704
- PulpContainerClient.const_get(type).build_from_hash(value)
740
+ # models (e.g. Pet) or oneOf
741
+ klass = PulpContainerClient.const_get(type)
742
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
705
743
  end
706
744
  end
707
745
 
@@ -727,7 +765,7 @@ module PulpContainerClient
727
765
  is_nullable = self.class.openapi_nullable.include?(attr)
728
766
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
729
767
  end
730
-
768
+
731
769
  hash[param] = _to_hash(value)
732
770
  end
733
771
  hash
@@ -750,5 +788,7 @@ module PulpContainerClient
750
788
  value
751
789
  end
752
790
  end
791
+
753
792
  end
793
+
754
794
  end