pulp_container_client 2.1.3 → 2.2.0.post0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +20 -13
  4. data/docs/ContainerContainerDistribution.md +7 -7
  5. data/docs/ContainerContainerDistributionResponse.md +9 -7
  6. data/docs/ContainerContainerNamespace.md +17 -0
  7. data/docs/ContainerContainerNamespaceResponse.md +21 -0
  8. data/docs/ContainerContainerRemote.md +8 -0
  9. data/docs/ContainerContainerRemoteResponse.md +8 -0
  10. data/docs/ContentBlobsApi.md +2 -2
  11. data/docs/ContentManifestsApi.md +2 -2
  12. data/docs/ContentTagsApi.md +2 -2
  13. data/docs/ContentguardsContentRedirectApi.md +2 -2
  14. data/docs/DistributionsContainerApi.md +4 -2
  15. data/docs/ManifestCopy.md +1 -1
  16. data/docs/{InlineResponse2008.md → PaginatedRepositoryVersionResponseList.md} +4 -4
  17. data/docs/{InlineResponse200.md → PaginatedcontainerBlobResponseList.md} +4 -4
  18. data/docs/{InlineResponse2004.md → PaginatedcontainerContainerDistributionResponseList.md} +4 -4
  19. data/docs/PaginatedcontainerContainerNamespaceResponseList.md +23 -0
  20. data/docs/{InlineResponse2007.md → PaginatedcontainerContainerPushRepositoryResponseList.md} +4 -4
  21. data/docs/{InlineResponse2005.md → PaginatedcontainerContainerRemoteResponseList.md} +4 -4
  22. data/docs/{InlineResponse2006.md → PaginatedcontainerContainerRepositoryResponseList.md} +4 -4
  23. data/docs/{InlineResponse2003.md → PaginatedcontainerContentRedirectContentGuardResponseList.md} +4 -4
  24. data/docs/{InlineResponse2001.md → PaginatedcontainerManifestResponseList.md} +4 -4
  25. data/docs/{InlineResponse2002.md → PaginatedcontainerTagResponseList.md} +4 -4
  26. data/docs/PatchedcontainerContainerDistribution.md +7 -7
  27. data/docs/PatchedcontainerContainerRemote.md +8 -0
  28. data/docs/PulpContainerNamespacesApi.md +239 -0
  29. data/docs/RecursiveManage.md +1 -1
  30. data/docs/RemotesContainerApi.md +2 -2
  31. data/docs/RepositoriesContainerApi.md +2 -2
  32. data/docs/RepositoriesContainerPushApi.md +2 -2
  33. data/docs/RepositoriesContainerVersionsApi.md +8 -8
  34. data/docs/TagCopy.md +1 -1
  35. data/lib/pulp_container_client/api/content_blobs_api.rb +4 -4
  36. data/lib/pulp_container_client/api/content_manifests_api.rb +4 -4
  37. data/lib/pulp_container_client/api/content_tags_api.rb +4 -4
  38. data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +4 -4
  39. data/lib/pulp_container_client/api/distributions_container_api.rb +7 -4
  40. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +285 -0
  41. data/lib/pulp_container_client/api/remotes_container_api.rb +4 -4
  42. data/lib/pulp_container_client/api/repositories_container_api.rb +4 -4
  43. data/lib/pulp_container_client/api/repositories_container_push_api.rb +4 -4
  44. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +15 -15
  45. data/lib/pulp_container_client/api/token_api.rb +1 -1
  46. data/lib/pulp_container_client/api_client.rb +12 -13
  47. data/lib/pulp_container_client/api_error.rb +1 -1
  48. data/lib/pulp_container_client/configuration.rb +1 -9
  49. data/lib/pulp_container_client/models/async_operation_response.rb +1 -1
  50. data/lib/pulp_container_client/models/container_blob_response.rb +1 -1
  51. data/lib/pulp_container_client/models/container_container_distribution.rb +31 -31
  52. data/lib/pulp_container_client/models/container_container_distribution_response.rb +42 -32
  53. data/lib/pulp_container_client/models/container_container_namespace.rb +231 -0
  54. data/lib/pulp_container_client/models/container_container_namespace_response.rb +250 -0
  55. data/lib/pulp_container_client/models/container_container_push_repository.rb +1 -1
  56. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +1 -1
  57. data/lib/pulp_container_client/models/container_container_remote.rb +106 -2
  58. data/lib/pulp_container_client/models/container_container_remote_response.rb +106 -2
  59. data/lib/pulp_container_client/models/container_container_repository.rb +1 -1
  60. data/lib/pulp_container_client/models/container_container_repository_response.rb +1 -1
  61. data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +1 -1
  62. data/lib/pulp_container_client/models/container_content_redirect_content_guard_response.rb +1 -1
  63. data/lib/pulp_container_client/models/container_manifest_response.rb +1 -1
  64. data/lib/pulp_container_client/models/container_tag_response.rb +1 -1
  65. data/lib/pulp_container_client/models/content_summary.rb +1 -1
  66. data/lib/pulp_container_client/models/content_summary_response.rb +1 -1
  67. data/lib/pulp_container_client/models/manifest_copy.rb +2 -2
  68. data/lib/pulp_container_client/models/oci_build_image.rb +1 -1
  69. data/lib/pulp_container_client/models/{inline_response2008.rb → paginated_repository_version_response_list.rb} +4 -4
  70. data/lib/pulp_container_client/models/{inline_response200.rb → paginatedcontainer_blob_response_list.rb} +4 -4
  71. data/lib/pulp_container_client/models/{inline_response2004.rb → paginatedcontainer_container_distribution_response_list.rb} +4 -4
  72. data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +237 -0
  73. data/lib/pulp_container_client/models/{inline_response2007.rb → paginatedcontainer_container_push_repository_response_list.rb} +4 -4
  74. data/lib/pulp_container_client/models/{inline_response2005.rb → paginatedcontainer_container_remote_response_list.rb} +4 -4
  75. data/lib/pulp_container_client/models/{inline_response2006.rb → paginatedcontainer_container_repository_response_list.rb} +4 -4
  76. data/lib/pulp_container_client/models/{inline_response2003.rb → paginatedcontainer_content_redirect_content_guard_response_list.rb} +4 -4
  77. data/lib/pulp_container_client/models/{inline_response2001.rb → paginatedcontainer_manifest_response_list.rb} +4 -4
  78. data/lib/pulp_container_client/models/{inline_response2002.rb → paginatedcontainer_tag_response_list.rb} +4 -4
  79. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +31 -31
  80. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +106 -2
  81. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +1 -1
  82. data/lib/pulp_container_client/models/patchedcontainer_content_redirect_content_guard.rb +1 -1
  83. data/lib/pulp_container_client/models/policy_enum.rb +1 -1
  84. data/lib/pulp_container_client/models/recursive_manage.rb +2 -2
  85. data/lib/pulp_container_client/models/repository_sync_url.rb +1 -1
  86. data/lib/pulp_container_client/models/repository_version.rb +1 -1
  87. data/lib/pulp_container_client/models/repository_version_response.rb +1 -1
  88. data/lib/pulp_container_client/models/tag_copy.rb +2 -2
  89. data/lib/pulp_container_client/models/tag_image.rb +22 -1
  90. data/lib/pulp_container_client/models/un_tag_image.rb +22 -1
  91. data/lib/pulp_container_client/version.rb +2 -2
  92. data/lib/pulp_container_client.rb +14 -10
  93. data/pulp_container_client.gemspec +2 -2
  94. data/spec/api/content_blobs_api_spec.rb +2 -2
  95. data/spec/api/content_manifests_api_spec.rb +2 -2
  96. data/spec/api/content_tags_api_spec.rb +2 -2
  97. data/spec/api/contentguards_content_redirect_api_spec.rb +2 -2
  98. data/spec/api/distributions_container_api_spec.rb +3 -2
  99. data/spec/api/pulp_container_namespaces_api_spec.rb +89 -0
  100. data/spec/api/remotes_container_api_spec.rb +2 -2
  101. data/spec/api/repositories_container_api_spec.rb +2 -2
  102. data/spec/api/repositories_container_push_api_spec.rb +2 -2
  103. data/spec/api/repositories_container_versions_api_spec.rb +7 -7
  104. data/spec/api/token_api_spec.rb +1 -1
  105. data/spec/api_client_spec.rb +2 -2
  106. data/spec/configuration_spec.rb +1 -1
  107. data/spec/models/async_operation_response_spec.rb +1 -1
  108. data/spec/models/container_blob_response_spec.rb +1 -1
  109. data/spec/models/container_container_distribution_response_spec.rb +13 -7
  110. data/spec/models/container_container_distribution_spec.rb +5 -5
  111. data/spec/models/{inline_response200_spec.rb → container_container_namespace_response_spec.rb} +10 -16
  112. data/spec/models/container_container_namespace_spec.rb +41 -0
  113. data/spec/models/container_container_push_repository_response_spec.rb +1 -1
  114. data/spec/models/container_container_push_repository_spec.rb +1 -1
  115. data/spec/models/container_container_remote_response_spec.rb +25 -1
  116. data/spec/models/container_container_remote_spec.rb +25 -1
  117. data/spec/models/container_container_repository_response_spec.rb +1 -1
  118. data/spec/models/container_container_repository_spec.rb +1 -1
  119. data/spec/models/container_content_redirect_content_guard_response_spec.rb +1 -1
  120. data/spec/models/container_content_redirect_content_guard_spec.rb +1 -1
  121. data/spec/models/container_manifest_response_spec.rb +1 -1
  122. data/spec/models/container_tag_response_spec.rb +1 -1
  123. data/spec/models/content_summary_response_spec.rb +1 -1
  124. data/spec/models/content_summary_spec.rb +1 -1
  125. data/spec/models/manifest_copy_spec.rb +1 -1
  126. data/spec/models/oci_build_image_spec.rb +1 -1
  127. data/spec/models/{inline_response2003_spec.rb → paginated_repository_version_response_list_spec.rb} +7 -7
  128. data/spec/models/{inline_response2002_spec.rb → paginatedcontainer_blob_response_list_spec.rb} +7 -7
  129. data/spec/models/paginatedcontainer_container_distribution_response_list_spec.rb +59 -0
  130. data/spec/models/paginatedcontainer_container_namespace_response_list_spec.rb +59 -0
  131. data/spec/models/paginatedcontainer_container_push_repository_response_list_spec.rb +59 -0
  132. data/spec/models/paginatedcontainer_container_remote_response_list_spec.rb +59 -0
  133. data/spec/models/paginatedcontainer_container_repository_response_list_spec.rb +59 -0
  134. data/spec/models/paginatedcontainer_content_redirect_content_guard_response_list_spec.rb +59 -0
  135. data/spec/models/{inline_response2004_spec.rb → paginatedcontainer_manifest_response_list_spec.rb} +7 -7
  136. data/spec/models/{inline_response2001_spec.rb → paginatedcontainer_tag_response_list_spec.rb} +7 -7
  137. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  138. data/spec/models/patchedcontainer_container_remote_spec.rb +25 -1
  139. data/spec/models/patchedcontainer_container_repository_spec.rb +1 -1
  140. data/spec/models/patchedcontainer_content_redirect_content_guard_spec.rb +1 -1
  141. data/spec/models/policy_enum_spec.rb +1 -1
  142. data/spec/models/recursive_manage_spec.rb +1 -1
  143. data/spec/models/repository_sync_url_spec.rb +1 -1
  144. data/spec/models/repository_version_response_spec.rb +1 -1
  145. data/spec/models/repository_version_spec.rb +1 -1
  146. data/spec/models/tag_copy_spec.rb +1 -1
  147. data/spec/models/tag_image_spec.rb +1 -1
  148. data/spec/models/un_tag_image_spec.rb +1 -1
  149. data/spec/spec_helper.rb +1 -1
  150. metadata +87 -77
  151. data/spec/models/inline_response2005_spec.rb +0 -59
  152. data/spec/models/inline_response2006_spec.rb +0 -59
  153. data/spec/models/inline_response2007_spec.rb +0 -59
  154. data/spec/models/inline_response2008_spec.rb +0 -59
@@ -6,7 +6,7 @@
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
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
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
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
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
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -64,7 +64,7 @@ module PulpContainerClient
64
64
  {
65
65
  :'source_repository' => :'String',
66
66
  :'source_repository_version' => :'String',
67
- :'digests' => :'Array<AnyType>',
67
+ :'digests' => :'Array<Object>',
68
68
  :'media_types' => :'Array<String>'
69
69
  }
70
70
  end
@@ -6,7 +6,7 @@
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
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,14 +6,14 @@
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
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpContainerClient
16
- class InlineResponse2008
16
+ class PaginatedRepositoryVersionResponseList
17
17
  attr_accessor :count
18
18
 
19
19
  attr_accessor :_next
@@ -54,13 +54,13 @@ module PulpContainerClient
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::InlineResponse2008` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::PaginatedRepositoryVersionResponseList` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::InlineResponse2008`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::PaginatedRepositoryVersionResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }
@@ -6,14 +6,14 @@
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
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpContainerClient
16
- class InlineResponse200
16
+ class PaginatedcontainerBlobResponseList
17
17
  attr_accessor :count
18
18
 
19
19
  attr_accessor :_next
@@ -54,13 +54,13 @@ module PulpContainerClient
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::InlineResponse200` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::PaginatedcontainerBlobResponseList` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::InlineResponse200`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::PaginatedcontainerBlobResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }
@@ -6,14 +6,14 @@
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
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpContainerClient
16
- class InlineResponse2004
16
+ class PaginatedcontainerContainerDistributionResponseList
17
17
  attr_accessor :count
18
18
 
19
19
  attr_accessor :_next
@@ -54,13 +54,13 @@ module PulpContainerClient
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::InlineResponse2004` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::PaginatedcontainerContainerDistributionResponseList` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::InlineResponse2004`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::PaginatedcontainerContainerDistributionResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }
@@ -0,0 +1,237 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpContainerClient
16
+ class PaginatedcontainerContainerNamespaceResponseList
17
+ attr_accessor :count
18
+
19
+ attr_accessor :_next
20
+
21
+ attr_accessor :previous
22
+
23
+ attr_accessor :results
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'count' => :'count',
29
+ :'_next' => :'next',
30
+ :'previous' => :'previous',
31
+ :'results' => :'results'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'count' => :'Integer',
39
+ :'_next' => :'String',
40
+ :'previous' => :'String',
41
+ :'results' => :'Array<ContainerContainerNamespaceResponse>'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ :'_next',
49
+ :'previous',
50
+ ])
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ if (!attributes.is_a?(Hash))
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::PaginatedcontainerContainerNamespaceResponseList` initialize method"
58
+ end
59
+
60
+ # check to see if the attribute exists and convert string to symbol for hash key
61
+ attributes = attributes.each_with_object({}) { |(k, v), h|
62
+ if (!self.class.attribute_map.key?(k.to_sym))
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::PaginatedcontainerContainerNamespaceResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
+ end
65
+ h[k.to_sym] = v
66
+ }
67
+
68
+ if attributes.key?(:'count')
69
+ self.count = attributes[:'count']
70
+ end
71
+
72
+ if attributes.key?(:'_next')
73
+ self._next = attributes[:'_next']
74
+ end
75
+
76
+ if attributes.key?(:'previous')
77
+ self.previous = attributes[:'previous']
78
+ end
79
+
80
+ if attributes.key?(:'results')
81
+ if (value = attributes[:'results']).is_a?(Array)
82
+ self.results = value
83
+ end
84
+ end
85
+ end
86
+
87
+ # Show invalid properties with the reasons. Usually used together with valid?
88
+ # @return Array for valid properties with the reasons
89
+ def list_invalid_properties
90
+ invalid_properties = Array.new
91
+ invalid_properties
92
+ end
93
+
94
+ # Check to see if the all the properties in the model are valid
95
+ # @return true if the model is valid
96
+ def valid?
97
+ true
98
+ end
99
+
100
+ # Checks equality by comparing each attribute.
101
+ # @param [Object] Object to be compared
102
+ def ==(o)
103
+ return true if self.equal?(o)
104
+ self.class == o.class &&
105
+ count == o.count &&
106
+ _next == o._next &&
107
+ previous == o.previous &&
108
+ results == o.results
109
+ end
110
+
111
+ # @see the `==` method
112
+ # @param [Object] Object to be compared
113
+ def eql?(o)
114
+ self == o
115
+ end
116
+
117
+ # Calculates hash code according to all attributes.
118
+ # @return [Integer] Hash code
119
+ def hash
120
+ [count, _next, previous, results].hash
121
+ end
122
+
123
+ # Builds the object from hash
124
+ # @param [Hash] attributes Model attributes in the form of hash
125
+ # @return [Object] Returns the model itself
126
+ def self.build_from_hash(attributes)
127
+ new.build_from_hash(attributes)
128
+ end
129
+
130
+ # Builds the object from hash
131
+ # @param [Hash] attributes Model attributes in the form of hash
132
+ # @return [Object] Returns the model itself
133
+ def build_from_hash(attributes)
134
+ return nil unless attributes.is_a?(Hash)
135
+ self.class.openapi_types.each_pair do |key, type|
136
+ if type =~ /\AArray<(.*)>/i
137
+ # check to ensure the input is an array given that the attribute
138
+ # is documented as an array but the input is not
139
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
140
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
141
+ end
142
+ elsif !attributes[self.class.attribute_map[key]].nil?
143
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
144
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
145
+ end
146
+
147
+ self
148
+ end
149
+
150
+ # Deserializes the data based on type
151
+ # @param string type Data type
152
+ # @param string value Value to be deserialized
153
+ # @return [Object] Deserialized data
154
+ def _deserialize(type, value)
155
+ case type.to_sym
156
+ when :DateTime
157
+ DateTime.parse(value)
158
+ when :Date
159
+ Date.parse(value)
160
+ when :String
161
+ value.to_s
162
+ when :Integer
163
+ value.to_i
164
+ when :Float
165
+ value.to_f
166
+ when :Boolean
167
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
168
+ true
169
+ else
170
+ false
171
+ end
172
+ when :Object
173
+ # generic object (usually a Hash), return directly
174
+ value
175
+ when /\AArray<(?<inner_type>.+)>\z/
176
+ inner_type = Regexp.last_match[:inner_type]
177
+ value.map { |v| _deserialize(inner_type, v) }
178
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
179
+ k_type = Regexp.last_match[:k_type]
180
+ v_type = Regexp.last_match[:v_type]
181
+ {}.tap do |hash|
182
+ value.each do |k, v|
183
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
184
+ end
185
+ end
186
+ else # model
187
+ PulpContainerClient.const_get(type).build_from_hash(value)
188
+ end
189
+ end
190
+
191
+ # Returns the string representation of the object
192
+ # @return [String] String presentation of the object
193
+ def to_s
194
+ to_hash.to_s
195
+ end
196
+
197
+ # to_body is an alias to to_hash (backward compatibility)
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_body
200
+ to_hash
201
+ end
202
+
203
+ # Returns the object in the form of hash
204
+ # @return [Hash] Returns the object in the form of hash
205
+ def to_hash
206
+ hash = {}
207
+ self.class.attribute_map.each_pair do |attr, param|
208
+ value = self.send(attr)
209
+ if value.nil?
210
+ is_nullable = self.class.openapi_nullable.include?(attr)
211
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
212
+ end
213
+
214
+ hash[param] = _to_hash(value)
215
+ end
216
+ hash
217
+ end
218
+
219
+ # Outputs non-array value in the form of hash
220
+ # For object, use to_hash. Otherwise, just return the value
221
+ # @param [Object] value Any valid value
222
+ # @return [Hash] Returns the value in the form of hash
223
+ def _to_hash(value)
224
+ if value.is_a?(Array)
225
+ value.compact.map { |v| _to_hash(v) }
226
+ elsif value.is_a?(Hash)
227
+ {}.tap do |hash|
228
+ value.each { |k, v| hash[k] = _to_hash(v) }
229
+ end
230
+ elsif value.respond_to? :to_hash
231
+ value.to_hash
232
+ else
233
+ value
234
+ end
235
+ end
236
+ end
237
+ end
@@ -6,14 +6,14 @@
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
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpContainerClient
16
- class InlineResponse2007
16
+ class PaginatedcontainerContainerPushRepositoryResponseList
17
17
  attr_accessor :count
18
18
 
19
19
  attr_accessor :_next
@@ -54,13 +54,13 @@ module PulpContainerClient
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::InlineResponse2007` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::PaginatedcontainerContainerPushRepositoryResponseList` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::InlineResponse2007`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::PaginatedcontainerContainerPushRepositoryResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }
@@ -6,14 +6,14 @@
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
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpContainerClient
16
- class InlineResponse2005
16
+ class PaginatedcontainerContainerRemoteResponseList
17
17
  attr_accessor :count
18
18
 
19
19
  attr_accessor :_next
@@ -54,13 +54,13 @@ module PulpContainerClient
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::InlineResponse2005` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::PaginatedcontainerContainerRemoteResponseList` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::InlineResponse2005`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::PaginatedcontainerContainerRemoteResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }
@@ -6,14 +6,14 @@
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
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpContainerClient
16
- class InlineResponse2006
16
+ class PaginatedcontainerContainerRepositoryResponseList
17
17
  attr_accessor :count
18
18
 
19
19
  attr_accessor :_next
@@ -54,13 +54,13 @@ module PulpContainerClient
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::InlineResponse2006` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::PaginatedcontainerContainerRepositoryResponseList` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::InlineResponse2006`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::PaginatedcontainerContainerRepositoryResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }
@@ -6,14 +6,14 @@
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
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpContainerClient
16
- class InlineResponse2003
16
+ class PaginatedcontainerContentRedirectContentGuardResponseList
17
17
  attr_accessor :count
18
18
 
19
19
  attr_accessor :_next
@@ -54,13 +54,13 @@ module PulpContainerClient
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::InlineResponse2003` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::PaginatedcontainerContentRedirectContentGuardResponseList` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::InlineResponse2003`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::PaginatedcontainerContentRedirectContentGuardResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }
@@ -6,14 +6,14 @@
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
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpContainerClient
16
- class InlineResponse2001
16
+ class PaginatedcontainerManifestResponseList
17
17
  attr_accessor :count
18
18
 
19
19
  attr_accessor :_next
@@ -54,13 +54,13 @@ module PulpContainerClient
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::InlineResponse2001` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::PaginatedcontainerManifestResponseList` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::InlineResponse2001`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::PaginatedcontainerManifestResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }
@@ -6,14 +6,14 @@
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
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpContainerClient
16
- class InlineResponse2002
16
+ class PaginatedcontainerTagResponseList
17
17
  attr_accessor :count
18
18
 
19
19
  attr_accessor :_next
@@ -54,13 +54,13 @@ module PulpContainerClient
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::InlineResponse2002` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::PaginatedcontainerTagResponseList` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::InlineResponse2002`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::PaginatedcontainerTagResponseList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }