pulp_ansible_client 0.15.5 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -10
- data/docs/AnsibleAnsibleDistribution.md +1 -1
- data/docs/AnsibleAnsibleDistributionResponse.md +1 -1
- data/docs/AnsibleAnsibleRepository.md +2 -2
- data/docs/AnsibleAnsibleRepositoryResponse.md +2 -2
- data/docs/AnsibleCollectionRemote.md +2 -2
- data/docs/AnsibleCollectionRemoteResponse.md +2 -4
- data/docs/AnsibleCollectionVersion.md +11 -9
- data/docs/AnsibleCollectionVersionResponse.md +23 -23
- data/docs/AnsibleCollectionsApi.md +6 -10
- data/docs/AnsibleGitRemote.md +30 -30
- data/docs/AnsibleGitRemoteResponse.md +26 -28
- data/docs/AnsibleRoleRemote.md +2 -2
- data/docs/AnsibleRoleRemoteResponse.md +3 -5
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/ApiCollectionsApi.md +4 -4
- data/docs/ApiRolesApi.md +4 -4
- data/docs/CollectionImportApi.md +4 -4
- data/docs/CollectionRefResponse.md +1 -1
- data/docs/CollectionResponse.md +6 -6
- data/docs/CollectionVersionListResponse.md +1 -1
- data/docs/CollectionVersionResponse.md +4 -4
- data/docs/ContentCollectionDeprecationsApi.md +10 -14
- data/docs/ContentCollectionSignaturesApi.md +12 -16
- data/docs/ContentCollectionVersionsApi.md +22 -24
- data/docs/ContentRolesApi.md +10 -14
- data/docs/DistributionsAnsibleApi.md +14 -22
- data/docs/GalaxyCollectionResponse.md +4 -4
- data/docs/GalaxyCollectionVersionResponse.md +4 -4
- data/docs/GalaxyDetailApi.md +4 -4
- data/docs/GalaxyRoleResponse.md +1 -1
- data/docs/GalaxyRoleVersionResponse.md +1 -1
- data/docs/PatchedansibleAnsibleDistribution.md +1 -1
- data/docs/PatchedansibleAnsibleRepository.md +2 -2
- data/docs/PatchedansibleCollectionRemote.md +2 -2
- data/docs/PatchedansibleGitRemote.md +30 -30
- data/docs/PatchedansibleRoleRemote.md +2 -2
- data/docs/PulpAnsibleApiApi.md +4 -4
- data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +4 -4
- data/docs/PulpAnsibleApiV3Api.md +4 -4
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +4 -4
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +4 -4
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +6 -10
- data/docs/PulpAnsibleApiV3CollectionsApi.md +10 -14
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +10 -14
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +4 -4
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +4 -4
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +6 -10
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +4 -4
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +4 -4
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +4 -4
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +10 -14
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +10 -14
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +4 -4
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +4 -4
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +6 -10
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +10 -14
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +10 -14
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +4 -4
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +6 -10
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +4 -4
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +4 -4
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +4 -4
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +10 -14
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +10 -14
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +4 -4
- data/docs/PulpAnsibleTagsApi.md +4 -4
- data/docs/RemotesCollectionApi.md +14 -18
- data/docs/RemotesGitApi.md +14 -18
- data/docs/RemotesRoleApi.md +14 -18
- data/docs/RepositoriesAnsibleApi.md +13 -33
- data/docs/RepositoriesAnsibleVersionsApi.md +14 -16
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/UnpaginatedCollectionVersionResponse.md +4 -4
- data/docs/VersionsApi.md +8 -8
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +9 -15
- data/lib/pulp_ansible_client/api/api_collections_api.rb +6 -6
- data/lib/pulp_ansible_client/api/api_roles_api.rb +6 -6
- data/lib/pulp_ansible_client/api/collection_import_api.rb +6 -6
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +14 -20
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +15 -21
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +45 -60
- data/lib/pulp_ansible_client/api/content_roles_api.rb +15 -21
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +19 -31
- data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_artifacts_collections_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +9 -15
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +15 -21
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +15 -21
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_docs_blob_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +9 -15
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +15 -21
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +15 -21
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_artifacts_collections_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +9 -15
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +15 -21
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +15 -21
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +9 -15
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +15 -21
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +15 -21
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +6 -6
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +19 -25
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +19 -25
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +19 -25
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +17 -47
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +19 -22
- data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +2 -4
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +2 -4
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +3 -5
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +3 -5
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +3 -5
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +4 -18
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +78 -95
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +53 -161
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +249 -251
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +141 -155
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +3 -5
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +8 -22
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
- data/lib/pulp_ansible_client/models/collection_ref_response.rb +0 -1
- data/lib/pulp_ansible_client/models/collection_response.rb +0 -6
- data/lib/pulp_ansible_client/models/collection_version_list_response.rb +0 -1
- data/lib/pulp_ansible_client/models/collection_version_response.rb +0 -4
- data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -4
- data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +0 -4
- data/lib/pulp_ansible_client/models/galaxy_role_response.rb +0 -1
- data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +0 -1
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +2 -4
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +3 -5
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +3 -5
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +249 -251
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +3 -5
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +2 -2
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +0 -4
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +0 -1
- data/spec/api/ansible_collections_api_spec.rb +3 -5
- data/spec/api/api_collections_api_spec.rb +2 -2
- data/spec/api/api_roles_api_spec.rb +2 -2
- data/spec/api/collection_import_api_spec.rb +2 -2
- data/spec/api/content_collection_deprecations_api_spec.rb +5 -7
- data/spec/api/content_collection_signatures_api_spec.rb +5 -7
- data/spec/api/content_collection_versions_api_spec.rb +10 -11
- data/spec/api/content_roles_api_spec.rb +5 -7
- data/spec/api/distributions_ansible_api_spec.rb +7 -11
- data/spec/api/galaxy_detail_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_artifacts_collections_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +3 -5
- data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +5 -7
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +5 -7
- data/spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +3 -5
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +5 -7
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +5 -7
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_artifacts_collections_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +3 -5
- data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +5 -7
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +5 -7
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +3 -5
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +5 -7
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +5 -7
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +2 -2
- data/spec/api/pulp_ansible_tags_api_spec.rb +2 -2
- data/spec/api/remotes_collection_api_spec.rb +7 -9
- data/spec/api/remotes_git_api_spec.rb +7 -9
- data/spec/api/remotes_role_api_spec.rb +7 -9
- data/spec/api/repositories_ansible_api_spec.rb +6 -16
- data/spec/api/repositories_ansible_versions_api_spec.rb +7 -8
- data/spec/api/versions_api_spec.rb +4 -4
- data/spec/models/ansible_collection_remote_response_spec.rb +0 -6
- data/spec/models/ansible_collection_version_response_spec.rb +7 -7
- data/spec/models/ansible_collection_version_spec.rb +12 -6
- data/spec/models/ansible_git_remote_response_spec.rb +16 -22
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_remote_response_spec.rb +0 -6
- data/spec/models/ansible_role_response_spec.rb +3 -3
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +102 -106
- data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +0 -19
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -215
- data/spec/models/ansible_collection_remote_response_hidden_fields_spec.rb +0 -47
@@ -15,45 +15,50 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for CollectionVersion Content.
|
17
17
|
class AnsibleCollectionVersion
|
18
|
+
# Artifact file representing the physical content
|
19
|
+
attr_accessor :artifact
|
20
|
+
|
21
|
+
# An uploaded file that may be turned into the artifact of the content unit.
|
22
|
+
attr_accessor :file
|
23
|
+
|
18
24
|
# A URI of a repository the new content unit should be associated with.
|
19
25
|
attr_accessor :repository
|
20
26
|
|
21
27
|
# An uncommitted upload that may be turned into the artifact of the content unit.
|
22
28
|
attr_accessor :upload
|
23
29
|
|
24
|
-
# An uploaded file that may be turned into the artifact of the content unit.
|
25
|
-
attr_accessor :file
|
26
|
-
|
27
30
|
# The name of the collection.
|
28
|
-
attr_accessor :
|
31
|
+
attr_accessor :expected_name
|
29
32
|
|
30
33
|
# The namespace of the collection.
|
31
|
-
attr_accessor :
|
34
|
+
attr_accessor :expected_namespace
|
32
35
|
|
33
36
|
# The version of the collection.
|
34
|
-
attr_accessor :
|
37
|
+
attr_accessor :expected_version
|
35
38
|
|
36
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
40
|
def self.attribute_map
|
38
41
|
{
|
42
|
+
:'artifact' => :'artifact',
|
43
|
+
:'file' => :'file',
|
39
44
|
:'repository' => :'repository',
|
40
45
|
:'upload' => :'upload',
|
41
|
-
:'
|
42
|
-
:'
|
43
|
-
:'
|
44
|
-
:'version' => :'version'
|
46
|
+
:'expected_name' => :'expected_name',
|
47
|
+
:'expected_namespace' => :'expected_namespace',
|
48
|
+
:'expected_version' => :'expected_version'
|
45
49
|
}
|
46
50
|
end
|
47
51
|
|
48
52
|
# Attribute type mapping.
|
49
53
|
def self.openapi_types
|
50
54
|
{
|
55
|
+
:'artifact' => :'String',
|
56
|
+
:'file' => :'File',
|
51
57
|
:'repository' => :'String',
|
52
58
|
:'upload' => :'String',
|
53
|
-
:'
|
54
|
-
:'
|
55
|
-
:'
|
56
|
-
:'version' => :'String'
|
59
|
+
:'expected_name' => :'String',
|
60
|
+
:'expected_namespace' => :'String',
|
61
|
+
:'expected_version' => :'String'
|
57
62
|
}
|
58
63
|
end
|
59
64
|
|
@@ -78,6 +83,14 @@ module PulpAnsibleClient
|
|
78
83
|
h[k.to_sym] = v
|
79
84
|
}
|
80
85
|
|
86
|
+
if attributes.key?(:'artifact')
|
87
|
+
self.artifact = attributes[:'artifact']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'file')
|
91
|
+
self.file = attributes[:'file']
|
92
|
+
end
|
93
|
+
|
81
94
|
if attributes.key?(:'repository')
|
82
95
|
self.repository = attributes[:'repository']
|
83
96
|
end
|
@@ -86,20 +99,16 @@ module PulpAnsibleClient
|
|
86
99
|
self.upload = attributes[:'upload']
|
87
100
|
end
|
88
101
|
|
89
|
-
if attributes.key?(:'
|
90
|
-
self.
|
91
|
-
end
|
92
|
-
|
93
|
-
if attributes.key?(:'name')
|
94
|
-
self.name = attributes[:'name']
|
102
|
+
if attributes.key?(:'expected_name')
|
103
|
+
self.expected_name = attributes[:'expected_name']
|
95
104
|
end
|
96
105
|
|
97
|
-
if attributes.key?(:'
|
98
|
-
self.
|
106
|
+
if attributes.key?(:'expected_namespace')
|
107
|
+
self.expected_namespace = attributes[:'expected_namespace']
|
99
108
|
end
|
100
109
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
self.
|
110
|
+
if attributes.key?(:'expected_version')
|
111
|
+
self.expected_version = attributes[:'expected_version']
|
103
112
|
end
|
104
113
|
end
|
105
114
|
|
@@ -107,40 +116,28 @@ module PulpAnsibleClient
|
|
107
116
|
# @return Array for valid properties with the reasons
|
108
117
|
def list_invalid_properties
|
109
118
|
invalid_properties = Array.new
|
110
|
-
if
|
111
|
-
invalid_properties.push('invalid value for "
|
112
|
-
end
|
113
|
-
|
114
|
-
if @name.to_s.length > 64
|
115
|
-
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 64.')
|
116
|
-
end
|
117
|
-
|
118
|
-
if @name.to_s.length < 1
|
119
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
120
|
-
end
|
121
|
-
|
122
|
-
if @namespace.nil?
|
123
|
-
invalid_properties.push('invalid value for "namespace", namespace cannot be nil.')
|
119
|
+
if !@expected_name.nil? && @expected_name.to_s.length > 64
|
120
|
+
invalid_properties.push('invalid value for "expected_name", the character length must be smaller than or equal to 64.')
|
124
121
|
end
|
125
122
|
|
126
|
-
if @
|
127
|
-
invalid_properties.push('invalid value for "
|
123
|
+
if !@expected_name.nil? && @expected_name.to_s.length < 1
|
124
|
+
invalid_properties.push('invalid value for "expected_name", the character length must be great than or equal to 1.')
|
128
125
|
end
|
129
126
|
|
130
|
-
if @
|
131
|
-
invalid_properties.push('invalid value for "
|
127
|
+
if !@expected_namespace.nil? && @expected_namespace.to_s.length > 64
|
128
|
+
invalid_properties.push('invalid value for "expected_namespace", the character length must be smaller than or equal to 64.')
|
132
129
|
end
|
133
130
|
|
134
|
-
if
|
135
|
-
invalid_properties.push('invalid value for "
|
131
|
+
if !@expected_namespace.nil? && @expected_namespace.to_s.length < 1
|
132
|
+
invalid_properties.push('invalid value for "expected_namespace", the character length must be great than or equal to 1.')
|
136
133
|
end
|
137
134
|
|
138
|
-
if @
|
139
|
-
invalid_properties.push('invalid value for "
|
135
|
+
if !@expected_version.nil? && @expected_version.to_s.length > 128
|
136
|
+
invalid_properties.push('invalid value for "expected_version", the character length must be smaller than or equal to 128.')
|
140
137
|
end
|
141
138
|
|
142
|
-
if @
|
143
|
-
invalid_properties.push('invalid value for "
|
139
|
+
if !@expected_version.nil? && @expected_version.to_s.length < 1
|
140
|
+
invalid_properties.push('invalid value for "expected_version", the character length must be great than or equal to 1.')
|
144
141
|
end
|
145
142
|
|
146
143
|
invalid_properties
|
@@ -149,70 +146,55 @@ module PulpAnsibleClient
|
|
149
146
|
# Check to see if the all the properties in the model are valid
|
150
147
|
# @return true if the model is valid
|
151
148
|
def valid?
|
152
|
-
return false if
|
153
|
-
return false if @
|
154
|
-
return false if @
|
155
|
-
return false if
|
156
|
-
return false if @
|
157
|
-
return false if @
|
158
|
-
return false if @version.nil?
|
159
|
-
return false if @version.to_s.length > 128
|
160
|
-
return false if @version.to_s.length < 1
|
149
|
+
return false if !@expected_name.nil? && @expected_name.to_s.length > 64
|
150
|
+
return false if !@expected_name.nil? && @expected_name.to_s.length < 1
|
151
|
+
return false if !@expected_namespace.nil? && @expected_namespace.to_s.length > 64
|
152
|
+
return false if !@expected_namespace.nil? && @expected_namespace.to_s.length < 1
|
153
|
+
return false if !@expected_version.nil? && @expected_version.to_s.length > 128
|
154
|
+
return false if !@expected_version.nil? && @expected_version.to_s.length < 1
|
161
155
|
true
|
162
156
|
end
|
163
157
|
|
164
158
|
# Custom attribute writer method with validation
|
165
|
-
# @param [Object]
|
166
|
-
def
|
167
|
-
if
|
168
|
-
fail ArgumentError, '
|
159
|
+
# @param [Object] expected_name Value to be assigned
|
160
|
+
def expected_name=(expected_name)
|
161
|
+
if !expected_name.nil? && expected_name.to_s.length > 64
|
162
|
+
fail ArgumentError, 'invalid value for "expected_name", the character length must be smaller than or equal to 64.'
|
169
163
|
end
|
170
164
|
|
171
|
-
if
|
172
|
-
fail ArgumentError, 'invalid value for "
|
165
|
+
if !expected_name.nil? && expected_name.to_s.length < 1
|
166
|
+
fail ArgumentError, 'invalid value for "expected_name", the character length must be great than or equal to 1.'
|
173
167
|
end
|
174
168
|
|
175
|
-
|
176
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
177
|
-
end
|
178
|
-
|
179
|
-
@name = name
|
169
|
+
@expected_name = expected_name
|
180
170
|
end
|
181
171
|
|
182
172
|
# Custom attribute writer method with validation
|
183
|
-
# @param [Object]
|
184
|
-
def
|
185
|
-
if
|
186
|
-
fail ArgumentError, '
|
187
|
-
end
|
188
|
-
|
189
|
-
if namespace.to_s.length > 64
|
190
|
-
fail ArgumentError, 'invalid value for "namespace", the character length must be smaller than or equal to 64.'
|
173
|
+
# @param [Object] expected_namespace Value to be assigned
|
174
|
+
def expected_namespace=(expected_namespace)
|
175
|
+
if !expected_namespace.nil? && expected_namespace.to_s.length > 64
|
176
|
+
fail ArgumentError, 'invalid value for "expected_namespace", the character length must be smaller than or equal to 64.'
|
191
177
|
end
|
192
178
|
|
193
|
-
if
|
194
|
-
fail ArgumentError, 'invalid value for "
|
179
|
+
if !expected_namespace.nil? && expected_namespace.to_s.length < 1
|
180
|
+
fail ArgumentError, 'invalid value for "expected_namespace", the character length must be great than or equal to 1.'
|
195
181
|
end
|
196
182
|
|
197
|
-
@
|
183
|
+
@expected_namespace = expected_namespace
|
198
184
|
end
|
199
185
|
|
200
186
|
# Custom attribute writer method with validation
|
201
|
-
# @param [Object]
|
202
|
-
def
|
203
|
-
if
|
204
|
-
fail ArgumentError, '
|
187
|
+
# @param [Object] expected_version Value to be assigned
|
188
|
+
def expected_version=(expected_version)
|
189
|
+
if !expected_version.nil? && expected_version.to_s.length > 128
|
190
|
+
fail ArgumentError, 'invalid value for "expected_version", the character length must be smaller than or equal to 128.'
|
205
191
|
end
|
206
192
|
|
207
|
-
if
|
208
|
-
fail ArgumentError, 'invalid value for "
|
193
|
+
if !expected_version.nil? && expected_version.to_s.length < 1
|
194
|
+
fail ArgumentError, 'invalid value for "expected_version", the character length must be great than or equal to 1.'
|
209
195
|
end
|
210
196
|
|
211
|
-
|
212
|
-
fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
|
213
|
-
end
|
214
|
-
|
215
|
-
@version = version
|
197
|
+
@expected_version = expected_version
|
216
198
|
end
|
217
199
|
|
218
200
|
# Checks equality by comparing each attribute.
|
@@ -220,12 +202,13 @@ module PulpAnsibleClient
|
|
220
202
|
def ==(o)
|
221
203
|
return true if self.equal?(o)
|
222
204
|
self.class == o.class &&
|
205
|
+
artifact == o.artifact &&
|
206
|
+
file == o.file &&
|
223
207
|
repository == o.repository &&
|
224
208
|
upload == o.upload &&
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
version == o.version
|
209
|
+
expected_name == o.expected_name &&
|
210
|
+
expected_namespace == o.expected_namespace &&
|
211
|
+
expected_version == o.expected_version
|
229
212
|
end
|
230
213
|
|
231
214
|
# @see the `==` method
|
@@ -237,7 +220,7 @@ module PulpAnsibleClient
|
|
237
220
|
# Calculates hash code according to all attributes.
|
238
221
|
# @return [Integer] Hash code
|
239
222
|
def hash
|
240
|
-
[repository, upload,
|
223
|
+
[artifact, file, repository, upload, expected_name, expected_namespace, expected_version].hash
|
241
224
|
end
|
242
225
|
|
243
226
|
# Builds the object from hash
|