pulp_ansible_client 0.15.6 → 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 -8
- data/docs/AnsibleAnsibleDistribution.md +1 -1
- data/docs/AnsibleAnsibleDistributionResponse.md +1 -1
- data/docs/AnsibleAnsibleRepository.md +1 -1
- data/docs/AnsibleAnsibleRepositoryResponse.md +1 -1
- data/docs/AnsibleCollectionRemote.md +1 -1
- data/docs/AnsibleCollectionRemoteResponse.md +1 -3
- data/docs/AnsibleCollectionVersion.md +10 -8
- data/docs/AnsibleCollectionVersionResponse.md +23 -23
- data/docs/AnsibleCollectionsApi.md +5 -5
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +24 -26
- data/docs/AnsibleRoleRemote.md +1 -1
- data/docs/AnsibleRoleRemoteResponse.md +2 -4
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/ApiCollectionsApi.md +5 -5
- data/docs/ApiRolesApi.md +5 -5
- data/docs/CollectionImportApi.md +5 -5
- data/docs/ContentCollectionDeprecationsApi.md +9 -9
- data/docs/ContentCollectionSignaturesApi.md +11 -11
- data/docs/ContentCollectionVersionsApi.md +22 -20
- data/docs/ContentRolesApi.md +9 -9
- data/docs/DistributionsAnsibleApi.md +13 -13
- data/docs/GalaxyDetailApi.md +5 -5
- data/docs/PatchedansibleAnsibleDistribution.md +1 -1
- data/docs/PatchedansibleAnsibleRepository.md +1 -1
- data/docs/PatchedansibleCollectionRemote.md +1 -1
- data/docs/PatchedansibleGitRemote.md +28 -28
- data/docs/PatchedansibleRoleRemote.md +1 -1
- data/docs/PulpAnsibleApiApi.md +5 -5
- data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +5 -5
- data/docs/PulpAnsibleApiV3Api.md +5 -5
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +5 -5
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +5 -5
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +5 -5
- data/docs/PulpAnsibleApiV3CollectionsApi.md +9 -9
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +9 -9
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +5 -5
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +5 -5
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +5 -5
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +5 -5
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +5 -5
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +5 -5
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +9 -9
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +9 -9
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +5 -5
- data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +5 -5
- data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +5 -5
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +9 -9
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +9 -9
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +5 -5
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +5 -5
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +5 -5
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +5 -5
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +5 -5
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +9 -9
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +9 -9
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +5 -5
- data/docs/PulpAnsibleTagsApi.md +5 -5
- data/docs/RemotesCollectionApi.md +13 -13
- data/docs/RemotesGitApi.md +13 -13
- data/docs/RemotesRoleApi.md +13 -13
- data/docs/RepositoriesAnsibleApi.md +12 -12
- data/docs/RepositoriesAnsibleVersionsApi.md +13 -13
- data/docs/VersionsApi.md +9 -9
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +7 -7
- 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 +12 -12
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +13 -13
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +43 -52
- data/lib/pulp_ansible_client/api/content_roles_api.rb +13 -13
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +17 -17
- 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 +7 -7
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +13 -13
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +13 -13
- 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 +7 -7
- 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 +13 -13
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +13 -13
- 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 +7 -7
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +13 -13
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +13 -13
- 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 +7 -7
- 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 +13 -13
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +13 -13
- 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 +17 -17
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +17 -17
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +17 -17
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +15 -15
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +17 -17
- data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
- data/lib/pulp_ansible_client/configuration.rb +3 -3
- 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 +2 -4
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +2 -4
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +22 -24
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +23 -37
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +75 -92
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +52 -160
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +248 -250
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +145 -159
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +22 -24
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +27 -41
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +2 -4
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +2 -4
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +22 -24
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +236 -238
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +22 -24
- 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 +2 -2
- 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 +4 -4
- data/spec/api/content_collection_signatures_api_spec.rb +4 -4
- data/spec/api/content_collection_versions_api_spec.rb +9 -8
- data/spec/api/content_roles_api_spec.rb +4 -4
- data/spec/api/distributions_ansible_api_spec.rb +6 -6
- 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 +2 -2
- data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +4 -4
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +4 -4
- 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 +2 -2
- 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 +4 -4
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -4
- 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 +2 -2
- data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +4 -4
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +4 -4
- 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 +2 -2
- 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 +4 -4
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -4
- 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 +6 -6
- data/spec/api/remotes_git_api_spec.rb +6 -6
- data/spec/api/remotes_role_api_spec.rb +6 -6
- data/spec/api/repositories_ansible_api_spec.rb +5 -5
- data/spec/api/repositories_ansible_versions_api_spec.rb +6 -6
- data/spec/api/versions_api_spec.rb +4 -4
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/ansible_collection_remote_response_spec.rb +0 -6
- data/spec/models/ansible_collection_version_response_spec.rb +8 -8
- data/spec/models/ansible_collection_version_spec.rb +10 -4
- 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 +2 -2
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +111 -115
- data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +0 -19
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -225
- data/spec/models/ansible_collection_remote_response_hidden_fields_spec.rb +0 -47
@@ -127,8 +127,8 @@ module PulpAnsibleClient
|
|
127
127
|
attr_accessor :force_ending_format
|
128
128
|
|
129
129
|
def initialize
|
130
|
-
@scheme = '
|
131
|
-
@host = '
|
130
|
+
@scheme = 'https'
|
131
|
+
@host = 'pulp'
|
132
132
|
@base_path = ''
|
133
133
|
@api_key = {}
|
134
134
|
@api_key_prefix = {}
|
@@ -210,7 +210,7 @@ module PulpAnsibleClient
|
|
210
210
|
def server_settings
|
211
211
|
[
|
212
212
|
{
|
213
|
-
url: "
|
213
|
+
url: "https://pulp/",
|
214
214
|
description: "No description provided",
|
215
215
|
}
|
216
216
|
]
|
@@ -52,7 +52,7 @@ module PulpAnsibleClient
|
|
52
52
|
:'name' => :'String',
|
53
53
|
:'repository' => :'String',
|
54
54
|
:'repository_version' => :'String',
|
55
|
-
:'pulp_labels' => :'
|
55
|
+
:'pulp_labels' => :'Object'
|
56
56
|
}
|
57
57
|
end
|
58
58
|
|
@@ -101,9 +101,7 @@ module PulpAnsibleClient
|
|
101
101
|
end
|
102
102
|
|
103
103
|
if attributes.key?(:'pulp_labels')
|
104
|
-
|
105
|
-
self.pulp_labels = value
|
106
|
-
end
|
104
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
107
105
|
end
|
108
106
|
end
|
109
107
|
|
@@ -66,7 +66,7 @@ module PulpAnsibleClient
|
|
66
66
|
:'repository' => :'String',
|
67
67
|
:'repository_version' => :'String',
|
68
68
|
:'client_url' => :'String',
|
69
|
-
:'pulp_labels' => :'
|
69
|
+
:'pulp_labels' => :'Object'
|
70
70
|
}
|
71
71
|
end
|
72
72
|
|
@@ -127,9 +127,7 @@ module PulpAnsibleClient
|
|
127
127
|
end
|
128
128
|
|
129
129
|
if attributes.key?(:'pulp_labels')
|
130
|
-
|
131
|
-
self.pulp_labels = value
|
132
|
-
end
|
130
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
133
131
|
end
|
134
132
|
end
|
135
133
|
|
@@ -51,7 +51,7 @@ module PulpAnsibleClient
|
|
51
51
|
# Attribute type mapping.
|
52
52
|
def self.openapi_types
|
53
53
|
{
|
54
|
-
:'pulp_labels' => :'
|
54
|
+
:'pulp_labels' => :'Object',
|
55
55
|
:'name' => :'String',
|
56
56
|
:'description' => :'String',
|
57
57
|
:'retain_repo_versions' => :'Integer',
|
@@ -88,9 +88,7 @@ module PulpAnsibleClient
|
|
88
88
|
}
|
89
89
|
|
90
90
|
if attributes.key?(:'pulp_labels')
|
91
|
-
|
92
|
-
self.pulp_labels = value
|
93
|
-
end
|
91
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
94
92
|
end
|
95
93
|
|
96
94
|
if attributes.key?(:'name')
|
@@ -67,7 +67,7 @@ module PulpAnsibleClient
|
|
67
67
|
:'pulp_href' => :'String',
|
68
68
|
:'pulp_created' => :'DateTime',
|
69
69
|
:'versions_href' => :'String',
|
70
|
-
:'pulp_labels' => :'
|
70
|
+
:'pulp_labels' => :'Object',
|
71
71
|
:'latest_version_href' => :'String',
|
72
72
|
:'name' => :'String',
|
73
73
|
:'description' => :'String',
|
@@ -117,9 +117,7 @@ module PulpAnsibleClient
|
|
117
117
|
end
|
118
118
|
|
119
119
|
if attributes.key?(:'pulp_labels')
|
120
|
-
|
121
|
-
self.pulp_labels = value
|
122
|
-
end
|
120
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
123
121
|
end
|
124
122
|
|
125
123
|
if attributes.key?(:'latest_version_href')
|
@@ -138,7 +138,7 @@ module PulpAnsibleClient
|
|
138
138
|
:'proxy_password' => :'String',
|
139
139
|
:'username' => :'String',
|
140
140
|
:'password' => :'String',
|
141
|
-
:'pulp_labels' => :'
|
141
|
+
:'pulp_labels' => :'Object',
|
142
142
|
:'download_concurrency' => :'Integer',
|
143
143
|
:'max_retries' => :'Integer',
|
144
144
|
:'policy' => :'PolicyEnum',
|
@@ -240,9 +240,7 @@ module PulpAnsibleClient
|
|
240
240
|
end
|
241
241
|
|
242
242
|
if attributes.key?(:'pulp_labels')
|
243
|
-
|
244
|
-
self.pulp_labels = value
|
245
|
-
end
|
243
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
246
244
|
end
|
247
245
|
|
248
246
|
if attributes.key?(:'download_concurrency')
|
@@ -364,20 +362,20 @@ module PulpAnsibleClient
|
|
364
362
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
365
363
|
end
|
366
364
|
|
367
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
368
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
365
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
366
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
369
367
|
end
|
370
368
|
|
371
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
372
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
369
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
370
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
373
371
|
end
|
374
372
|
|
375
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
376
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
373
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
374
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
377
375
|
end
|
378
376
|
|
379
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
380
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
377
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
378
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
381
379
|
end
|
382
380
|
|
383
381
|
if !@requirements_file.nil? && @requirements_file.to_s.length < 1
|
@@ -419,10 +417,10 @@ module PulpAnsibleClient
|
|
419
417
|
return false if !@username.nil? && @username.to_s.length < 1
|
420
418
|
return false if !@password.nil? && @password.to_s.length < 1
|
421
419
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
422
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
423
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
424
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
425
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
420
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
421
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
422
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
423
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
426
424
|
return false if !@requirements_file.nil? && @requirements_file.to_s.length < 1
|
427
425
|
return false if !@auth_url.nil? && @auth_url.to_s.length > 255
|
428
426
|
return false if !@auth_url.nil? && @auth_url.to_s.length < 1
|
@@ -552,8 +550,8 @@ module PulpAnsibleClient
|
|
552
550
|
# Custom attribute writer method with validation
|
553
551
|
# @param [Object] total_timeout Value to be assigned
|
554
552
|
def total_timeout=(total_timeout)
|
555
|
-
if !total_timeout.nil? && total_timeout < 0
|
556
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
553
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
554
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
557
555
|
end
|
558
556
|
|
559
557
|
@total_timeout = total_timeout
|
@@ -562,8 +560,8 @@ module PulpAnsibleClient
|
|
562
560
|
# Custom attribute writer method with validation
|
563
561
|
# @param [Object] connect_timeout Value to be assigned
|
564
562
|
def connect_timeout=(connect_timeout)
|
565
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
566
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
563
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
564
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
567
565
|
end
|
568
566
|
|
569
567
|
@connect_timeout = connect_timeout
|
@@ -572,8 +570,8 @@ module PulpAnsibleClient
|
|
572
570
|
# Custom attribute writer method with validation
|
573
571
|
# @param [Object] sock_connect_timeout Value to be assigned
|
574
572
|
def sock_connect_timeout=(sock_connect_timeout)
|
575
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
576
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
573
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
574
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
577
575
|
end
|
578
576
|
|
579
577
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -582,8 +580,8 @@ module PulpAnsibleClient
|
|
582
580
|
# Custom attribute writer method with validation
|
583
581
|
# @param [Object] sock_read_timeout Value to be assigned
|
584
582
|
def sock_read_timeout=(sock_read_timeout)
|
585
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
586
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
583
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
584
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
587
585
|
end
|
588
586
|
|
589
587
|
@sock_read_timeout = sock_read_timeout
|
@@ -70,9 +70,6 @@ module PulpAnsibleClient
|
|
70
70
|
# Limits requests per second for each concurrent downloader
|
71
71
|
attr_accessor :rate_limit
|
72
72
|
|
73
|
-
# List of hidden (write only) fields
|
74
|
-
attr_accessor :hidden_fields
|
75
|
-
|
76
73
|
# The string version of Collection requirements yaml.
|
77
74
|
attr_accessor :requirements_file
|
78
75
|
|
@@ -107,7 +104,6 @@ module PulpAnsibleClient
|
|
107
104
|
:'sock_read_timeout' => :'sock_read_timeout',
|
108
105
|
:'headers' => :'headers',
|
109
106
|
:'rate_limit' => :'rate_limit',
|
110
|
-
:'hidden_fields' => :'hidden_fields',
|
111
107
|
:'requirements_file' => :'requirements_file',
|
112
108
|
:'auth_url' => :'auth_url',
|
113
109
|
:'sync_dependencies' => :'sync_dependencies',
|
@@ -126,7 +122,7 @@ module PulpAnsibleClient
|
|
126
122
|
:'client_cert' => :'String',
|
127
123
|
:'tls_validation' => :'Boolean',
|
128
124
|
:'proxy_url' => :'String',
|
129
|
-
:'pulp_labels' => :'
|
125
|
+
:'pulp_labels' => :'Object',
|
130
126
|
:'pulp_last_updated' => :'DateTime',
|
131
127
|
:'download_concurrency' => :'Integer',
|
132
128
|
:'max_retries' => :'Integer',
|
@@ -137,7 +133,6 @@ module PulpAnsibleClient
|
|
137
133
|
:'sock_read_timeout' => :'Float',
|
138
134
|
:'headers' => :'Array<Object>',
|
139
135
|
:'rate_limit' => :'Integer',
|
140
|
-
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
|
141
136
|
:'requirements_file' => :'String',
|
142
137
|
:'auth_url' => :'String',
|
143
138
|
:'sync_dependencies' => :'Boolean',
|
@@ -211,9 +206,7 @@ module PulpAnsibleClient
|
|
211
206
|
end
|
212
207
|
|
213
208
|
if attributes.key?(:'pulp_labels')
|
214
|
-
|
215
|
-
self.pulp_labels = value
|
216
|
-
end
|
209
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
217
210
|
end
|
218
211
|
|
219
212
|
if attributes.key?(:'pulp_last_updated')
|
@@ -258,12 +251,6 @@ module PulpAnsibleClient
|
|
258
251
|
self.rate_limit = attributes[:'rate_limit']
|
259
252
|
end
|
260
253
|
|
261
|
-
if attributes.key?(:'hidden_fields')
|
262
|
-
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
263
|
-
self.hidden_fields = value
|
264
|
-
end
|
265
|
-
end
|
266
|
-
|
267
254
|
if attributes.key?(:'requirements_file')
|
268
255
|
self.requirements_file = attributes[:'requirements_file']
|
269
256
|
end
|
@@ -301,20 +288,20 @@ module PulpAnsibleClient
|
|
301
288
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
302
289
|
end
|
303
290
|
|
304
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
305
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
291
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
292
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
306
293
|
end
|
307
294
|
|
308
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
309
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
295
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
296
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
310
297
|
end
|
311
298
|
|
312
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
313
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
299
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
300
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
314
301
|
end
|
315
302
|
|
316
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
317
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
303
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
304
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
318
305
|
end
|
319
306
|
|
320
307
|
if !@auth_url.nil? && @auth_url.to_s.length > 255
|
@@ -330,10 +317,10 @@ module PulpAnsibleClient
|
|
330
317
|
return false if @name.nil?
|
331
318
|
return false if @url.nil?
|
332
319
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
333
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
334
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
335
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
336
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
320
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
321
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
322
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
323
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
337
324
|
return false if !@auth_url.nil? && @auth_url.to_s.length > 255
|
338
325
|
true
|
339
326
|
end
|
@@ -351,8 +338,8 @@ module PulpAnsibleClient
|
|
351
338
|
# Custom attribute writer method with validation
|
352
339
|
# @param [Object] total_timeout Value to be assigned
|
353
340
|
def total_timeout=(total_timeout)
|
354
|
-
if !total_timeout.nil? && total_timeout < 0
|
355
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
341
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
342
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
356
343
|
end
|
357
344
|
|
358
345
|
@total_timeout = total_timeout
|
@@ -361,8 +348,8 @@ module PulpAnsibleClient
|
|
361
348
|
# Custom attribute writer method with validation
|
362
349
|
# @param [Object] connect_timeout Value to be assigned
|
363
350
|
def connect_timeout=(connect_timeout)
|
364
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
365
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
351
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
352
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
366
353
|
end
|
367
354
|
|
368
355
|
@connect_timeout = connect_timeout
|
@@ -371,8 +358,8 @@ module PulpAnsibleClient
|
|
371
358
|
# Custom attribute writer method with validation
|
372
359
|
# @param [Object] sock_connect_timeout Value to be assigned
|
373
360
|
def sock_connect_timeout=(sock_connect_timeout)
|
374
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
375
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
361
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
362
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
376
363
|
end
|
377
364
|
|
378
365
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -381,8 +368,8 @@ module PulpAnsibleClient
|
|
381
368
|
# Custom attribute writer method with validation
|
382
369
|
# @param [Object] sock_read_timeout Value to be assigned
|
383
370
|
def sock_read_timeout=(sock_read_timeout)
|
384
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
385
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
371
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
372
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
386
373
|
end
|
387
374
|
|
388
375
|
@sock_read_timeout = sock_read_timeout
|
@@ -422,7 +409,6 @@ module PulpAnsibleClient
|
|
422
409
|
sock_read_timeout == o.sock_read_timeout &&
|
423
410
|
headers == o.headers &&
|
424
411
|
rate_limit == o.rate_limit &&
|
425
|
-
hidden_fields == o.hidden_fields &&
|
426
412
|
requirements_file == o.requirements_file &&
|
427
413
|
auth_url == o.auth_url &&
|
428
414
|
sync_dependencies == o.sync_dependencies &&
|
@@ -438,7 +424,7 @@ module PulpAnsibleClient
|
|
438
424
|
# Calculates hash code according to all attributes.
|
439
425
|
# @return [Integer] Hash code
|
440
426
|
def hash
|
441
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit,
|
427
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, requirements_file, auth_url, sync_dependencies, signed_only].hash
|
442
428
|
end
|
443
429
|
|
444
430
|
# Builds the object from hash
|
@@ -15,45 +15,50 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for CollectionVersion Content.
|
17
17
|
class AnsibleCollectionVersion
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# Artifact file representing the physical content
|
19
|
+
attr_accessor :artifact
|
20
20
|
|
21
21
|
# An uploaded file that may be turned into the artifact of the content unit.
|
22
22
|
attr_accessor :file
|
23
23
|
|
24
|
+
# A URI of a repository the new content unit should be associated with.
|
25
|
+
attr_accessor :repository
|
26
|
+
|
24
27
|
# An uncommitted upload that may be turned into the artifact of the content unit.
|
25
28
|
attr_accessor :upload
|
26
29
|
|
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
|
{
|
39
|
-
:'
|
42
|
+
:'artifact' => :'artifact',
|
40
43
|
:'file' => :'file',
|
44
|
+
:'repository' => :'repository',
|
41
45
|
:'upload' => :'upload',
|
42
|
-
:'
|
43
|
-
:'
|
44
|
-
:'
|
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
|
{
|
51
|
-
:'
|
55
|
+
:'artifact' => :'String',
|
52
56
|
:'file' => :'File',
|
57
|
+
:'repository' => :'String',
|
53
58
|
:'upload' => :'String',
|
54
|
-
:'
|
55
|
-
:'
|
56
|
-
:'
|
59
|
+
:'expected_name' => :'String',
|
60
|
+
:'expected_namespace' => :'String',
|
61
|
+
:'expected_version' => :'String'
|
57
62
|
}
|
58
63
|
end
|
59
64
|
|
@@ -78,28 +83,32 @@ module PulpAnsibleClient
|
|
78
83
|
h[k.to_sym] = v
|
79
84
|
}
|
80
85
|
|
81
|
-
if attributes.key?(:'
|
82
|
-
self.
|
86
|
+
if attributes.key?(:'artifact')
|
87
|
+
self.artifact = attributes[:'artifact']
|
83
88
|
end
|
84
89
|
|
85
90
|
if attributes.key?(:'file')
|
86
91
|
self.file = attributes[:'file']
|
87
92
|
end
|
88
93
|
|
94
|
+
if attributes.key?(:'repository')
|
95
|
+
self.repository = attributes[:'repository']
|
96
|
+
end
|
97
|
+
|
89
98
|
if attributes.key?(:'upload')
|
90
99
|
self.upload = attributes[:'upload']
|
91
100
|
end
|
92
101
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
self.
|
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 "
|
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.')
|
112
121
|
end
|
113
122
|
|
114
|
-
if @
|
115
|
-
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.')
|
116
125
|
end
|
117
126
|
|
118
|
-
if @
|
119
|
-
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.')
|
120
129
|
end
|
121
130
|
|
122
|
-
if
|
123
|
-
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.')
|
124
133
|
end
|
125
134
|
|
126
|
-
if @
|
127
|
-
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.')
|
128
137
|
end
|
129
138
|
|
130
|
-
if @
|
131
|
-
invalid_properties.push('invalid value for "
|
132
|
-
end
|
133
|
-
|
134
|
-
if @version.nil?
|
135
|
-
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
136
|
-
end
|
137
|
-
|
138
|
-
if @version.to_s.length > 128
|
139
|
-
invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 128.')
|
140
|
-
end
|
141
|
-
|
142
|
-
if @version.to_s.length < 1
|
143
|
-
invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
|
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, '
|
169
|
-
end
|
170
|
-
|
171
|
-
if name.to_s.length > 64
|
172
|
-
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 64.'
|
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.'
|
173
163
|
end
|
174
164
|
|
175
|
-
if
|
176
|
-
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.'
|
177
167
|
end
|
178
168
|
|
179
|
-
@
|
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 &&
|
223
|
-
|
205
|
+
artifact == o.artifact &&
|
224
206
|
file == o.file &&
|
207
|
+
repository == o.repository &&
|
225
208
|
upload == o.upload &&
|
226
|
-
|
227
|
-
|
228
|
-
|
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
|
-
[
|
223
|
+
[artifact, file, repository, upload, expected_name, expected_namespace, expected_version].hash
|
241
224
|
end
|
242
225
|
|
243
226
|
# Builds the object from hash
|