pulp_ansible_client 0.18.4 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +34 -47
  3. data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
  4. data/docs/AnsibleCollectionVersion.md +4 -4
  5. data/docs/AnsibleCollectionVersionResponse.md +4 -4
  6. data/docs/AnsibleCollectionsApi.md +9 -15
  7. data/docs/AnsibleCopyApi.md +1 -1
  8. data/docs/AnsibleGitRemote.md +26 -26
  9. data/docs/AnsibleGitRemoteResponse.md +24 -24
  10. data/docs/AnsibleRoleResponse.md +4 -4
  11. data/docs/ApiCollectionsApi.md +1 -1
  12. data/docs/ApiRolesApi.md +1 -1
  13. data/docs/CollectionImportApi.md +1 -1
  14. data/docs/CollectionNamespaceResponse.md +1 -1
  15. data/docs/CollectionResponse.md +5 -3
  16. data/docs/CollectionVersionResponse.md +1 -1
  17. data/docs/CollectionVersionSignatureResponse.md +23 -0
  18. data/docs/ContentCollectionDeprecationsApi.md +1 -3
  19. data/docs/ContentCollectionMarksApi.md +2 -4
  20. data/docs/ContentCollectionSignaturesApi.md +3 -5
  21. data/docs/ContentCollectionVersionsApi.md +7 -7
  22. data/docs/ContentNamespacesApi.md +1 -19
  23. data/docs/ContentRolesApi.md +1 -3
  24. data/docs/DistributionsAnsibleApi.md +10 -136
  25. data/docs/GalaxyDetailApi.md +1 -1
  26. data/docs/{UnsetLabel.md → PatchedCollection.md} +3 -3
  27. data/docs/PatchedansibleGitRemote.md +26 -26
  28. data/docs/PulpAnsibleApiApi.md +1 -1
  29. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
  30. data/docs/PulpAnsibleApiV3Api.md +1 -1
  31. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  32. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  33. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -3
  34. data/docs/PulpAnsibleApiV3CollectionsApi.md +5 -7
  35. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +3 -3
  36. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  37. data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -19
  38. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  39. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -3
  40. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  41. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  42. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  43. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +5 -7
  44. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +3 -3
  45. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  46. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +5 -23
  47. data/docs/{ApiPluginAnsibleSearchCollectionVersionsApi.md → PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md} +17 -18
  48. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  49. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  50. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  51. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  52. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  53. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -3
  54. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +5 -7
  55. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +3 -3
  56. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  57. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -19
  58. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -3
  60. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +5 -7
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +3 -3
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  66. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +5 -23
  67. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +3 -4
  68. data/docs/PulpAnsibleTagsApi.md +1 -1
  69. data/docs/RemotesCollectionApi.md +9 -135
  70. data/docs/RemotesGitApi.md +9 -135
  71. data/docs/RemotesRoleApi.md +9 -135
  72. data/docs/RepositoriesAnsibleApi.md +10 -136
  73. data/docs/RepositoriesAnsibleVersionsApi.md +1 -3
  74. data/docs/UnpaginatedCollectionVersionResponse.md +1 -1
  75. data/docs/VersionsApi.md +1 -1
  76. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +0 -11
  77. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +0 -3
  78. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +0 -3
  79. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +0 -3
  80. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
  81. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +0 -27
  82. data/lib/pulp_ansible_client/api/content_roles_api.rb +0 -3
  83. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +0 -163
  84. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +0 -3
  85. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +9 -12
  86. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +3 -3
  87. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +0 -27
  88. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +0 -3
  89. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +9 -12
  90. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -3
  91. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +8 -35
  92. data/lib/pulp_ansible_client/api/{api_plugin_ansible_search_collection_versions_api.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb} +24 -26
  93. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +0 -3
  94. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +9 -12
  95. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +3 -3
  96. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +0 -27
  97. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +0 -3
  98. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +9 -12
  99. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -3
  100. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +8 -35
  101. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +0 -2
  102. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +0 -163
  103. data/lib/pulp_ansible_client/api/remotes_git_api.rb +0 -163
  104. data/lib/pulp_ansible_client/api/remotes_role_api.rb +0 -163
  105. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +0 -163
  106. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +0 -3
  107. data/lib/pulp_ansible_client/configuration.rb +3 -3
  108. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -10
  109. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +15 -15
  110. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -14
  111. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +232 -232
  112. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +149 -149
  113. data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
  114. data/lib/pulp_ansible_client/models/collection_namespace_response.rb +1 -0
  115. data/lib/pulp_ansible_client/models/collection_response.rb +19 -6
  116. data/lib/pulp_ansible_client/models/collection_version_response.rb +9 -2
  117. data/lib/pulp_ansible_client/models/{set_label.rb → collection_version_signature_response.rb} +49 -42
  118. data/lib/pulp_ansible_client/models/{unset_label_response.rb → patched_collection.rb} +11 -46
  119. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +228 -228
  120. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +9 -2
  121. data/lib/pulp_ansible_client/version.rb +1 -1
  122. data/lib/pulp_ansible_client.rb +3 -5
  123. data/spec/api/ansible_collections_api_spec.rb +0 -5
  124. data/spec/api/content_collection_deprecations_api_spec.rb +0 -1
  125. data/spec/api/content_collection_marks_api_spec.rb +0 -1
  126. data/spec/api/content_collection_signatures_api_spec.rb +0 -1
  127. data/spec/api/content_collection_versions_api_spec.rb +3 -3
  128. data/spec/api/content_namespaces_api_spec.rb +0 -9
  129. data/spec/api/content_roles_api_spec.rb +0 -1
  130. data/spec/api/distributions_ansible_api_spec.rb +0 -35
  131. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +0 -1
  132. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -2
  133. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -1
  134. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +0 -9
  135. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +0 -1
  136. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -2
  137. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -1
  138. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +4 -13
  139. data/spec/api/{api_plugin_ansible_search_collection_versions_api_spec.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb} +8 -9
  140. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +0 -1
  141. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -2
  142. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -1
  143. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +0 -9
  144. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +0 -1
  145. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -2
  146. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -1
  147. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +4 -13
  148. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +0 -1
  149. data/spec/api/remotes_collection_api_spec.rb +0 -35
  150. data/spec/api/remotes_git_api_spec.rb +0 -35
  151. data/spec/api/remotes_role_api_spec.rb +0 -35
  152. data/spec/api/repositories_ansible_api_spec.rb +0 -35
  153. data/spec/api/repositories_ansible_versions_api_spec.rb +0 -1
  154. data/spec/configuration_spec.rb +3 -3
  155. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  156. data/spec/models/ansible_collection_version_spec.rb +2 -2
  157. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  158. data/spec/models/ansible_git_remote_spec.rb +19 -19
  159. data/spec/models/ansible_role_response_spec.rb +2 -2
  160. data/spec/models/collection_response_spec.rb +6 -0
  161. data/spec/models/collection_version_signature_response_spec.rb +59 -0
  162. data/spec/models/{unset_label_spec.rb → patched_collection_spec.rb} +7 -7
  163. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  164. metadata +158 -166
  165. data/docs/SetLabel.md +0 -19
  166. data/docs/SetLabelResponse.md +0 -19
  167. data/docs/UnsetLabelResponse.md +0 -19
  168. data/lib/pulp_ansible_client/models/set_label_response.rb +0 -243
  169. data/lib/pulp_ansible_client/models/unset_label.rb +0 -242
  170. data/spec/models/set_label_response_spec.rb +0 -47
  171. data/spec/models/set_label_spec.rb +0 -47
  172. data/spec/models/unset_label_response_spec.rb +0 -47
@@ -93,7 +93,7 @@ module PulpAnsibleClient
93
93
  :'download_url' => :'String',
94
94
  :'name' => :'String',
95
95
  :'namespace' => :'CollectionNamespaceResponse',
96
- :'signatures' => :'String',
96
+ :'signatures' => :'Array<CollectionVersionSignatureResponse>',
97
97
  :'metadata' => :'CollectionMetadataResponse',
98
98
  :'git_url' => :'String',
99
99
  :'git_commit_sha' => :'String',
@@ -171,7 +171,9 @@ module PulpAnsibleClient
171
171
  end
172
172
 
173
173
  if attributes.key?(:'signatures')
174
- self.signatures = attributes[:'signatures']
174
+ if (value = attributes[:'signatures']).is_a?(Array)
175
+ self.signatures = value
176
+ end
175
177
  end
176
178
 
177
179
  if attributes.key?(:'metadata')
@@ -211,6 +213,10 @@ module PulpAnsibleClient
211
213
  invalid_properties.push('invalid value for "requires_ansible", the character length must be smaller than or equal to 255.')
212
214
  end
213
215
 
216
+ if @signatures.nil?
217
+ invalid_properties.push('invalid value for "signatures", signatures cannot be nil.')
218
+ end
219
+
214
220
  invalid_properties
215
221
  end
216
222
 
@@ -220,6 +226,7 @@ module PulpAnsibleClient
220
226
  return false if @created_at.nil?
221
227
  return false if @updated_at.nil?
222
228
  return false if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
229
+ return false if @signatures.nil?
223
230
  true
224
231
  end
225
232
 
@@ -13,32 +13,40 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
- # Serializer for synchronously setting a label.
17
- class SetLabel
18
- attr_accessor :key
16
+ # A serializer for the signatures on a Collection Version.
17
+ class CollectionVersionSignatureResponse
18
+ attr_accessor :signature
19
19
 
20
- attr_accessor :value
20
+ attr_accessor :pubkey_fingerprint
21
+
22
+ attr_accessor :signing_service
23
+
24
+ attr_accessor :pulp_created
21
25
 
22
26
  # Attribute mapping from ruby-style variable name to JSON key.
23
27
  def self.attribute_map
24
28
  {
25
- :'key' => :'key',
26
- :'value' => :'value'
29
+ :'signature' => :'signature',
30
+ :'pubkey_fingerprint' => :'pubkey_fingerprint',
31
+ :'signing_service' => :'signing_service',
32
+ :'pulp_created' => :'pulp_created'
27
33
  }
28
34
  end
29
35
 
30
36
  # Attribute type mapping.
31
37
  def self.openapi_types
32
38
  {
33
- :'key' => :'String',
34
- :'value' => :'String'
39
+ :'signature' => :'String',
40
+ :'pubkey_fingerprint' => :'String',
41
+ :'signing_service' => :'String',
42
+ :'pulp_created' => :'DateTime'
35
43
  }
36
44
  end
37
45
 
38
46
  # List of attributes with nullable: true
39
47
  def self.openapi_nullable
40
48
  Set.new([
41
- :'value'
49
+ :'signing_service',
42
50
  ])
43
51
  end
44
52
 
@@ -46,23 +54,31 @@ module PulpAnsibleClient
46
54
  # @param [Hash] attributes Model attributes in the form of hash
47
55
  def initialize(attributes = {})
48
56
  if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::SetLabel` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::CollectionVersionSignatureResponse` initialize method"
50
58
  end
51
59
 
52
60
  # check to see if the attribute exists and convert string to symbol for hash key
53
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
62
  if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::SetLabel`. 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 `PulpAnsibleClient::CollectionVersionSignatureResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
64
  end
57
65
  h[k.to_sym] = v
58
66
  }
59
67
 
60
- if attributes.key?(:'key')
61
- self.key = attributes[:'key']
68
+ if attributes.key?(:'signature')
69
+ self.signature = attributes[:'signature']
70
+ end
71
+
72
+ if attributes.key?(:'pubkey_fingerprint')
73
+ self.pubkey_fingerprint = attributes[:'pubkey_fingerprint']
74
+ end
75
+
76
+ if attributes.key?(:'signing_service')
77
+ self.signing_service = attributes[:'signing_service']
62
78
  end
63
79
 
64
- if attributes.key?(:'value')
65
- self.value = attributes[:'value']
80
+ if attributes.key?(:'pulp_created')
81
+ self.pulp_created = attributes[:'pulp_created']
66
82
  end
67
83
  end
68
84
 
@@ -70,17 +86,12 @@ module PulpAnsibleClient
70
86
  # @return Array for valid properties with the reasons
71
87
  def list_invalid_properties
72
88
  invalid_properties = Array.new
73
- if @key.nil?
74
- invalid_properties.push('invalid value for "key", key cannot be nil.')
75
- end
76
-
77
- if @key.to_s.length < 1
78
- invalid_properties.push('invalid value for "key", the character length must be great than or equal to 1.')
89
+ if @pubkey_fingerprint.nil?
90
+ invalid_properties.push('invalid value for "pubkey_fingerprint", pubkey_fingerprint cannot be nil.')
79
91
  end
80
92
 
81
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
82
- if @key !~ pattern
83
- invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
93
+ if @pubkey_fingerprint.to_s.length > 64
94
+ invalid_properties.push('invalid value for "pubkey_fingerprint", the character length must be smaller than or equal to 64.')
84
95
  end
85
96
 
86
97
  invalid_properties
@@ -89,29 +100,23 @@ module PulpAnsibleClient
89
100
  # Check to see if the all the properties in the model are valid
90
101
  # @return true if the model is valid
91
102
  def valid?
92
- return false if @key.nil?
93
- return false if @key.to_s.length < 1
94
- return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
103
+ return false if @pubkey_fingerprint.nil?
104
+ return false if @pubkey_fingerprint.to_s.length > 64
95
105
  true
96
106
  end
97
107
 
98
108
  # Custom attribute writer method with validation
99
- # @param [Object] key Value to be assigned
100
- def key=(key)
101
- if key.nil?
102
- fail ArgumentError, 'key cannot be nil'
103
- end
104
-
105
- if key.to_s.length < 1
106
- fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 1.'
109
+ # @param [Object] pubkey_fingerprint Value to be assigned
110
+ def pubkey_fingerprint=(pubkey_fingerprint)
111
+ if pubkey_fingerprint.nil?
112
+ fail ArgumentError, 'pubkey_fingerprint cannot be nil'
107
113
  end
108
114
 
109
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
110
- if key !~ pattern
111
- fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
115
+ if pubkey_fingerprint.to_s.length > 64
116
+ fail ArgumentError, 'invalid value for "pubkey_fingerprint", the character length must be smaller than or equal to 64.'
112
117
  end
113
118
 
114
- @key = key
119
+ @pubkey_fingerprint = pubkey_fingerprint
115
120
  end
116
121
 
117
122
  # Checks equality by comparing each attribute.
@@ -119,8 +124,10 @@ module PulpAnsibleClient
119
124
  def ==(o)
120
125
  return true if self.equal?(o)
121
126
  self.class == o.class &&
122
- key == o.key &&
123
- value == o.value
127
+ signature == o.signature &&
128
+ pubkey_fingerprint == o.pubkey_fingerprint &&
129
+ signing_service == o.signing_service &&
130
+ pulp_created == o.pulp_created
124
131
  end
125
132
 
126
133
  # @see the `==` method
@@ -132,7 +139,7 @@ module PulpAnsibleClient
132
139
  # Calculates hash code according to all attributes.
133
140
  # @return [Integer] Hash code
134
141
  def hash
135
- [key, value].hash
142
+ [signature, pubkey_fingerprint, signing_service, pulp_created].hash
136
143
  end
137
144
 
138
145
  # Builds the object from hash
@@ -13,25 +13,21 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
- # Serializer for synchronously setting a label.
17
- class UnsetLabelResponse
18
- attr_accessor :key
19
-
20
- attr_accessor :value
16
+ # A serializer for a Collection.
17
+ class PatchedCollection
18
+ attr_accessor :deprecated
21
19
 
22
20
  # Attribute mapping from ruby-style variable name to JSON key.
23
21
  def self.attribute_map
24
22
  {
25
- :'key' => :'key',
26
- :'value' => :'value'
23
+ :'deprecated' => :'deprecated'
27
24
  }
28
25
  end
29
26
 
30
27
  # Attribute type mapping.
31
28
  def self.openapi_types
32
29
  {
33
- :'key' => :'String',
34
- :'value' => :'String'
30
+ :'deprecated' => :'Boolean'
35
31
  }
36
32
  end
37
33
 
@@ -45,23 +41,19 @@ module PulpAnsibleClient
45
41
  # @param [Hash] attributes Model attributes in the form of hash
46
42
  def initialize(attributes = {})
47
43
  if (!attributes.is_a?(Hash))
48
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::UnsetLabelResponse` initialize method"
44
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::PatchedCollection` initialize method"
49
45
  end
50
46
 
51
47
  # check to see if the attribute exists and convert string to symbol for hash key
52
48
  attributes = attributes.each_with_object({}) { |(k, v), h|
53
49
  if (!self.class.attribute_map.key?(k.to_sym))
54
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::UnsetLabelResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::PatchedCollection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
51
  end
56
52
  h[k.to_sym] = v
57
53
  }
58
54
 
59
- if attributes.key?(:'key')
60
- self.key = attributes[:'key']
61
- end
62
-
63
- if attributes.key?(:'value')
64
- self.value = attributes[:'value']
55
+ if attributes.key?(:'deprecated')
56
+ self.deprecated = attributes[:'deprecated']
65
57
  end
66
58
  end
67
59
 
@@ -69,48 +61,21 @@ module PulpAnsibleClient
69
61
  # @return Array for valid properties with the reasons
70
62
  def list_invalid_properties
71
63
  invalid_properties = Array.new
72
- if @key.nil?
73
- invalid_properties.push('invalid value for "key", key cannot be nil.')
74
- end
75
-
76
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
77
- if @key !~ pattern
78
- invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
79
- end
80
-
81
64
  invalid_properties
82
65
  end
83
66
 
84
67
  # Check to see if the all the properties in the model are valid
85
68
  # @return true if the model is valid
86
69
  def valid?
87
- return false if @key.nil?
88
- return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
89
70
  true
90
71
  end
91
72
 
92
- # Custom attribute writer method with validation
93
- # @param [Object] key Value to be assigned
94
- def key=(key)
95
- if key.nil?
96
- fail ArgumentError, 'key cannot be nil'
97
- end
98
-
99
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
100
- if key !~ pattern
101
- fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
102
- end
103
-
104
- @key = key
105
- end
106
-
107
73
  # Checks equality by comparing each attribute.
108
74
  # @param [Object] Object to be compared
109
75
  def ==(o)
110
76
  return true if self.equal?(o)
111
77
  self.class == o.class &&
112
- key == o.key &&
113
- value == o.value
78
+ deprecated == o.deprecated
114
79
  end
115
80
 
116
81
  # @see the `==` method
@@ -122,7 +87,7 @@ module PulpAnsibleClient
122
87
  # Calculates hash code according to all attributes.
123
88
  # @return [Integer] Hash code
124
89
  def hash
125
- [key, value].hash
90
+ [deprecated].hash
126
91
  end
127
92
 
128
93
  # Builds the object from hash