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.
- checksums.yaml +4 -4
- data/README.md +34 -47
- data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
- data/docs/AnsibleCollectionVersion.md +4 -4
- data/docs/AnsibleCollectionVersionResponse.md +4 -4
- data/docs/AnsibleCollectionsApi.md +9 -15
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +24 -24
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/ApiCollectionsApi.md +1 -1
- data/docs/ApiRolesApi.md +1 -1
- data/docs/CollectionImportApi.md +1 -1
- data/docs/CollectionNamespaceResponse.md +1 -1
- data/docs/CollectionResponse.md +5 -3
- data/docs/CollectionVersionResponse.md +1 -1
- data/docs/CollectionVersionSignatureResponse.md +23 -0
- data/docs/ContentCollectionDeprecationsApi.md +1 -3
- data/docs/ContentCollectionMarksApi.md +2 -4
- data/docs/ContentCollectionSignaturesApi.md +3 -5
- data/docs/ContentCollectionVersionsApi.md +7 -7
- data/docs/ContentNamespacesApi.md +1 -19
- data/docs/ContentRolesApi.md +1 -3
- data/docs/DistributionsAnsibleApi.md +10 -136
- data/docs/GalaxyDetailApi.md +1 -1
- data/docs/{UnsetLabel.md → PatchedCollection.md} +3 -3
- data/docs/PatchedansibleGitRemote.md +26 -26
- data/docs/PulpAnsibleApiApi.md +1 -1
- data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3Api.md +1 -1
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -3
- data/docs/PulpAnsibleApiV3CollectionsApi.md +5 -7
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +3 -3
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -19
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -3
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +5 -7
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +3 -3
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +5 -23
- data/docs/{ApiPluginAnsibleSearchCollectionVersionsApi.md → PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md} +17 -18
- data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -3
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +5 -7
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +3 -3
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -19
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -3
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +5 -7
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +3 -3
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +5 -23
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +3 -4
- data/docs/PulpAnsibleTagsApi.md +1 -1
- data/docs/RemotesCollectionApi.md +9 -135
- data/docs/RemotesGitApi.md +9 -135
- data/docs/RemotesRoleApi.md +9 -135
- data/docs/RepositoriesAnsibleApi.md +10 -136
- data/docs/RepositoriesAnsibleVersionsApi.md +1 -3
- data/docs/UnpaginatedCollectionVersionResponse.md +1 -1
- data/docs/VersionsApi.md +1 -1
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +0 -11
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +0 -3
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +0 -3
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +0 -3
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +0 -27
- data/lib/pulp_ansible_client/api/content_roles_api.rb +0 -3
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +0 -163
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +9 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +0 -27
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +9 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +8 -35
- 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
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +9 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +0 -27
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +9 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +8 -35
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +0 -2
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +0 -163
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +0 -163
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +0 -163
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +0 -163
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +0 -3
- data/lib/pulp_ansible_client/configuration.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -10
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +15 -15
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -14
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +232 -232
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +149 -149
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
- data/lib/pulp_ansible_client/models/collection_namespace_response.rb +1 -0
- data/lib/pulp_ansible_client/models/collection_response.rb +19 -6
- data/lib/pulp_ansible_client/models/collection_version_response.rb +9 -2
- data/lib/pulp_ansible_client/models/{set_label.rb → collection_version_signature_response.rb} +49 -42
- data/lib/pulp_ansible_client/models/{unset_label_response.rb → patched_collection.rb} +11 -46
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +228 -228
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +9 -2
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +3 -5
- data/spec/api/ansible_collections_api_spec.rb +0 -5
- data/spec/api/content_collection_deprecations_api_spec.rb +0 -1
- data/spec/api/content_collection_marks_api_spec.rb +0 -1
- data/spec/api/content_collection_signatures_api_spec.rb +0 -1
- data/spec/api/content_collection_versions_api_spec.rb +3 -3
- data/spec/api/content_namespaces_api_spec.rb +0 -9
- data/spec/api/content_roles_api_spec.rb +0 -1
- data/spec/api/distributions_ansible_api_spec.rb +0 -35
- data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -2
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +0 -9
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +4 -13
- 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
- data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -2
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +0 -9
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +4 -13
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +0 -1
- data/spec/api/remotes_collection_api_spec.rb +0 -35
- data/spec/api/remotes_git_api_spec.rb +0 -35
- data/spec/api/remotes_role_api_spec.rb +0 -35
- data/spec/api/repositories_ansible_api_spec.rb +0 -35
- data/spec/api/repositories_ansible_versions_api_spec.rb +0 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/ansible_collection_version_response_spec.rb +2 -2
- data/spec/models/ansible_collection_version_spec.rb +2 -2
- data/spec/models/ansible_git_remote_response_spec.rb +19 -19
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/collection_response_spec.rb +6 -0
- data/spec/models/collection_version_signature_response_spec.rb +59 -0
- data/spec/models/{unset_label_spec.rb → patched_collection_spec.rb} +7 -7
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +158 -166
- data/docs/SetLabel.md +0 -19
- data/docs/SetLabelResponse.md +0 -19
- data/docs/UnsetLabelResponse.md +0 -19
- data/lib/pulp_ansible_client/models/set_label_response.rb +0 -243
- data/lib/pulp_ansible_client/models/unset_label.rb +0 -242
- data/spec/models/set_label_response_spec.rb +0 -47
- data/spec/models/set_label_spec.rb +0 -47
- 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' => :'
|
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
|
-
|
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
|
|
data/lib/pulp_ansible_client/models/{set_label.rb → collection_version_signature_response.rb}
RENAMED
@@ -13,32 +13,40 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
|
-
#
|
17
|
-
class
|
18
|
-
attr_accessor :
|
16
|
+
# A serializer for the signatures on a Collection Version.
|
17
|
+
class CollectionVersionSignatureResponse
|
18
|
+
attr_accessor :signature
|
19
19
|
|
20
|
-
attr_accessor :
|
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
|
-
:'
|
26
|
-
:'
|
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
|
-
:'
|
34
|
-
:'
|
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
|
-
:'
|
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::
|
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::
|
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?(:'
|
61
|
-
self.
|
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?(:'
|
65
|
-
self.
|
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 @
|
74
|
-
invalid_properties.push('invalid value for "
|
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
|
-
|
82
|
-
|
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 @
|
93
|
-
return false if @
|
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]
|
100
|
-
def
|
101
|
-
if
|
102
|
-
fail ArgumentError, '
|
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
|
-
|
110
|
-
|
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
|
-
@
|
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
|
-
|
123
|
-
|
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
|
-
[
|
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
|
-
#
|
17
|
-
class
|
18
|
-
attr_accessor :
|
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
|
-
:'
|
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
|
-
:'
|
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::
|
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::
|
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?(:'
|
60
|
-
self.
|
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
|
-
|
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
|
-
[
|
90
|
+
[deprecated].hash
|
126
91
|
end
|
127
92
|
|
128
93
|
# Builds the object from hash
|