pulp_ansible_client 0.18.2 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -44
  3. data/docs/AnsibleCollectionVersion.md +5 -5
  4. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  5. data/docs/AnsibleCollectionsApi.md +9 -15
  6. data/docs/AnsibleCopyApi.md +1 -1
  7. data/docs/AnsibleGitRemote.md +26 -26
  8. data/docs/AnsibleGitRemoteResponse.md +24 -24
  9. data/docs/AnsibleRoleResponse.md +2 -2
  10. data/docs/ApiCollectionsApi.md +1 -1
  11. data/docs/ApiRolesApi.md +1 -1
  12. data/docs/CollectionImportApi.md +1 -1
  13. data/docs/CollectionNamespaceResponse.md +1 -1
  14. data/docs/CollectionResponse.md +5 -3
  15. data/docs/CollectionVersionResponse.md +1 -1
  16. data/docs/CollectionVersionSignatureResponse.md +23 -0
  17. data/docs/ContentCollectionDeprecationsApi.md +1 -3
  18. data/docs/ContentCollectionMarksApi.md +2 -4
  19. data/docs/ContentCollectionSignaturesApi.md +3 -5
  20. data/docs/ContentCollectionVersionsApi.md +7 -7
  21. data/docs/ContentNamespacesApi.md +1 -19
  22. data/docs/ContentRolesApi.md +1 -3
  23. data/docs/DistributionsAnsibleApi.md +10 -136
  24. data/docs/GalaxyDetailApi.md +1 -1
  25. data/docs/{UnsetLabel.md → PatchedCollection.md} +3 -3
  26. data/docs/PatchedansibleGitRemote.md +26 -26
  27. data/docs/PulpAnsibleApiApi.md +1 -1
  28. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
  29. data/docs/PulpAnsibleApiV3Api.md +1 -1
  30. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  31. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  32. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -3
  33. data/docs/PulpAnsibleApiV3CollectionsApi.md +5 -7
  34. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +3 -3
  35. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  36. data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -19
  37. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  38. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -3
  39. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  40. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  41. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  42. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +5 -7
  43. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +3 -3
  44. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  45. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +5 -23
  46. data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +1 -1
  47. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  48. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  49. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  50. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  51. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  52. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -3
  53. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +5 -7
  54. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +3 -3
  55. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  56. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -19
  57. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  58. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -3
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  60. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +5 -7
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +3 -3
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +5 -23
  66. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +1 -1
  67. data/docs/PulpAnsibleTagsApi.md +1 -1
  68. data/docs/RemotesCollectionApi.md +9 -135
  69. data/docs/RemotesGitApi.md +9 -135
  70. data/docs/RemotesRoleApi.md +9 -135
  71. data/docs/RepositoriesAnsibleApi.md +10 -136
  72. data/docs/RepositoriesAnsibleVersionsApi.md +1 -3
  73. data/docs/UnpaginatedCollectionVersionResponse.md +1 -1
  74. data/docs/VersionsApi.md +1 -1
  75. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +0 -11
  76. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +0 -3
  77. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +0 -3
  78. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +0 -3
  79. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
  80. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +0 -27
  81. data/lib/pulp_ansible_client/api/content_roles_api.rb +0 -3
  82. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +0 -163
  83. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +0 -3
  84. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +9 -12
  85. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +3 -3
  86. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +0 -27
  87. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +0 -3
  88. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +9 -12
  89. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -3
  90. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +8 -35
  91. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +0 -3
  92. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +9 -12
  93. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +3 -3
  94. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +0 -27
  95. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +0 -3
  96. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +9 -12
  97. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -3
  98. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +8 -35
  99. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +0 -163
  100. data/lib/pulp_ansible_client/api/remotes_git_api.rb +0 -163
  101. data/lib/pulp_ansible_client/api/remotes_role_api.rb +0 -163
  102. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +0 -163
  103. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +0 -3
  104. data/lib/pulp_ansible_client/configuration.rb +2 -2
  105. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +21 -21
  106. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
  107. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +226 -226
  108. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +138 -138
  109. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  110. data/lib/pulp_ansible_client/models/collection_namespace_response.rb +1 -0
  111. data/lib/pulp_ansible_client/models/collection_response.rb +19 -6
  112. data/lib/pulp_ansible_client/models/collection_version_response.rb +9 -2
  113. data/lib/pulp_ansible_client/models/{set_label.rb → collection_version_signature_response.rb} +49 -42
  114. data/lib/pulp_ansible_client/models/{unset_label_response.rb → patched_collection.rb} +11 -46
  115. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +217 -217
  116. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +9 -2
  117. data/lib/pulp_ansible_client/version.rb +1 -1
  118. data/lib/pulp_ansible_client.rb +2 -4
  119. data/spec/api/ansible_collections_api_spec.rb +0 -5
  120. data/spec/api/content_collection_deprecations_api_spec.rb +0 -1
  121. data/spec/api/content_collection_marks_api_spec.rb +0 -1
  122. data/spec/api/content_collection_signatures_api_spec.rb +0 -1
  123. data/spec/api/content_collection_versions_api_spec.rb +3 -3
  124. data/spec/api/content_namespaces_api_spec.rb +0 -9
  125. data/spec/api/content_roles_api_spec.rb +0 -1
  126. data/spec/api/distributions_ansible_api_spec.rb +0 -35
  127. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +0 -1
  128. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -2
  129. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -1
  130. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +0 -9
  131. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +0 -1
  132. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -2
  133. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -1
  134. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +4 -13
  135. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +0 -1
  136. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -2
  137. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -1
  138. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +0 -9
  139. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +0 -1
  140. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -2
  141. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -1
  142. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +4 -13
  143. data/spec/api/remotes_collection_api_spec.rb +0 -35
  144. data/spec/api/remotes_git_api_spec.rb +0 -35
  145. data/spec/api/remotes_role_api_spec.rb +0 -35
  146. data/spec/api/repositories_ansible_api_spec.rb +0 -35
  147. data/spec/api/repositories_ansible_versions_api_spec.rb +0 -1
  148. data/spec/configuration_spec.rb +3 -3
  149. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  150. data/spec/models/ansible_collection_version_spec.rb +4 -4
  151. data/spec/models/ansible_git_remote_response_spec.rb +17 -17
  152. data/spec/models/ansible_git_remote_spec.rb +18 -18
  153. data/spec/models/ansible_role_response_spec.rb +2 -2
  154. data/spec/models/collection_response_spec.rb +6 -0
  155. data/spec/models/collection_version_signature_response_spec.rb +59 -0
  156. data/spec/models/{unset_label_spec.rb → patched_collection_spec.rb} +7 -7
  157. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  158. metadata +141 -149
  159. data/docs/SetLabel.md +0 -19
  160. data/docs/SetLabelResponse.md +0 -19
  161. data/docs/UnsetLabelResponse.md +0 -19
  162. data/lib/pulp_ansible_client/models/set_label_response.rb +0 -243
  163. data/lib/pulp_ansible_client/models/unset_label.rb +0 -242
  164. data/spec/models/set_label_response_spec.rb +0 -47
  165. data/spec/models/set_label_spec.rb +0 -47
  166. data/spec/models/unset_label_response_spec.rb +0 -47
@@ -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