pulp_ansible_client 0.25.8 → 0.26.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 +5 -8
- data/docs/AnsibleAnsibleDistribution.md +3 -5
- data/docs/AnsibleAnsibleDistributionResponse.md +4 -12
- data/docs/AnsibleCollectionVersionResponse.md +12 -4
- data/docs/AnsibleCollectionsApi.md +8 -26
- data/docs/AnsibleCopyApi.md +4 -8
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +22 -22
- data/docs/AnsibleRole.md +2 -2
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/ApiPluginAnsibleSearchCollectionVersionsApi.md +4 -10
- data/docs/ApiRolesApi.md +0 -2
- data/docs/CollectionImportApi.md +0 -2
- data/docs/ContentCollectionDeprecationsApi.md +12 -28
- data/docs/ContentCollectionMarksApi.md +12 -28
- data/docs/ContentCollectionSignaturesApi.md +8 -22
- data/docs/ContentCollectionVersionsApi.md +16 -30
- data/docs/ContentNamespacesApi.md +8 -22
- data/docs/ContentRolesApi.md +12 -28
- data/docs/DistributionsAnsibleApi.md +32 -72
- data/docs/PatchedansibleAnsibleDistribution.md +3 -5
- data/docs/PatchedansibleGitRemote.md +26 -26
- data/docs/PulpAnsibleApiApi.md +0 -2
- data/docs/PulpAnsibleApiV3Api.md +0 -2
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +0 -2
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +0 -2
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +0 -2
- data/docs/PulpAnsibleApiV3CollectionsApi.md +8 -20
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +6 -14
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +0 -2
- data/docs/PulpAnsibleApiV3NamespacesApi.md +0 -4
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +0 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +0 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +0 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +0 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +0 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +8 -20
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +6 -14
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +0 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +4 -16
- data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +0 -8
- data/docs/PulpAnsibleDefaultApiApi.md +5 -14
- data/docs/PulpAnsibleDefaultApiV3Api.md +5 -14
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +0 -2
- data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +5 -14
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +0 -2
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +8 -20
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +6 -14
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +0 -2
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +0 -4
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +5 -14
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +0 -2
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +0 -2
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +0 -2
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +0 -2
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +8 -20
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +6 -14
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +0 -2
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +4 -16
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +4 -10
- data/docs/PulpAnsibleTagsApi.md +0 -2
- data/docs/RemotesCollectionApi.md +32 -72
- data/docs/RemotesGitApi.md +32 -72
- data/docs/RemotesRoleApi.md +32 -72
- data/docs/RepositoriesAnsibleApi.md +64 -136
- data/docs/RepositoriesAnsibleVersionsApi.md +14 -30
- data/docs/TagResponse.md +1 -1
- data/docs/VersionsApi.md +0 -2
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +0 -21
- data/lib/pulp_ansible_client/api/ansible_copy_api.rb +0 -3
- data/lib/pulp_ansible_client/api/api_plugin_ansible_search_collection_versions_api.rb +0 -6
- data/lib/pulp_ansible_client/api/api_roles_api.rb +0 -3
- data/lib/pulp_ansible_client/api/collection_import_api.rb +0 -3
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +0 -15
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +0 -15
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +0 -15
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -27
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +0 -15
- data/lib/pulp_ansible_client/api/content_roles_api.rb +0 -15
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +0 -36
- data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_artifacts_collections_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +0 -3
- 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 +0 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +3 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_docs_blob_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +0 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +0 -3
- 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_all_versions_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +0 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +2 -17
- data/lib/pulp_ansible_client/api/pulp_ansible_artifacts_collections_v3_api.rb +0 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_api.rb +0 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_api.rb +0 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_artifacts_collections_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collection_versions_all_api.rb +0 -9
- 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 +0 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +3 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +0 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api.rb +0 -9
- 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_all_versions_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +0 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +2 -17
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +0 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +0 -3
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +0 -36
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +0 -36
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +0 -36
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +0 -60
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +3 -18
- data/lib/pulp_ansible_client/api/versions_api.rb +0 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +16 -28
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +20 -62
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +63 -21
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +213 -213
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +132 -132
- data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +21 -21
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +16 -28
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +207 -207
- data/lib/pulp_ansible_client/models/tag_response.rb +1 -0
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/ansible_collections_api_spec.rb +0 -7
- data/spec/api/ansible_copy_api_spec.rb +0 -1
- data/spec/api/api_plugin_ansible_search_collection_versions_api_spec.rb +0 -2
- data/spec/api/api_roles_api_spec.rb +0 -1
- data/spec/api/collection_import_api_spec.rb +0 -1
- data/spec/api/content_collection_deprecations_api_spec.rb +0 -5
- data/spec/api/content_collection_marks_api_spec.rb +0 -5
- data/spec/api/content_collection_signatures_api_spec.rb +0 -5
- data/spec/api/content_collection_versions_api_spec.rb +4 -9
- data/spec/api/content_namespaces_api_spec.rb +0 -5
- data/spec/api/content_roles_api_spec.rb +0 -5
- data/spec/api/distributions_ansible_api_spec.rb +0 -12
- data/spec/api/pulp_ansible_api_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_api_v3_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_api_v3_artifacts_collections_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +0 -1
- 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 +0 -4
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -4
- data/spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +0 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +0 -1
- 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_all_versions_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +0 -4
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -4
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +0 -5
- data/spec/api/pulp_ansible_artifacts_collections_v3_api_spec.rb +0 -4
- data/spec/api/pulp_ansible_default_api_api_spec.rb +0 -3
- data/spec/api/pulp_ansible_default_api_v3_api_spec.rb +0 -3
- data/spec/api/pulp_ansible_default_api_v3_artifacts_collections_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_default_api_v3_collection_versions_all_api_spec.rb +0 -3
- 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 +0 -4
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -4
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +0 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api_spec.rb +0 -3
- 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_all_versions_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +0 -4
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -4
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +0 -5
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +0 -2
- data/spec/api/pulp_ansible_tags_api_spec.rb +0 -1
- data/spec/api/remotes_collection_api_spec.rb +0 -12
- data/spec/api/remotes_git_api_spec.rb +0 -12
- data/spec/api/remotes_role_api_spec.rb +0 -12
- data/spec/api/repositories_ansible_api_spec.rb +0 -20
- data/spec/api/repositories_ansible_versions_api_spec.rb +1 -6
- data/spec/api/versions_api_spec.rb +0 -1
- data/spec/models/ansible_ansible_distribution_response_spec.rb +4 -28
- data/spec/models/ansible_ansible_distribution_spec.rb +4 -10
- data/spec/models/ansible_collection_version_response_spec.rb +30 -6
- data/spec/models/ansible_git_remote_response_spec.rb +17 -17
- data/spec/models/ansible_git_remote_spec.rb +18 -18
- data/spec/models/ansible_role_response_spec.rb +6 -6
- data/spec/models/ansible_role_spec.rb +2 -2
- data/spec/models/patchedansible_ansible_distribution_spec.rb +4 -10
- data/spec/models/patchedansible_git_remote_spec.rb +18 -18
- metadata +123 -123
|
@@ -16,29 +16,20 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for Git Collection Remotes.
|
|
18
18
|
class AnsibleGitRemoteResponse
|
|
19
|
-
# A PEM encoded client certificate used for authentication.
|
|
20
|
-
attr_accessor :client_cert
|
|
21
|
-
|
|
22
|
-
# Limits requests per second for each concurrent downloader
|
|
23
|
-
attr_accessor :rate_limit
|
|
24
|
-
|
|
25
19
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
|
26
20
|
attr_accessor :ca_cert
|
|
27
21
|
|
|
28
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
29
|
-
attr_accessor :sock_connect_timeout
|
|
30
|
-
|
|
31
22
|
# The URL of an external content source.
|
|
32
23
|
attr_accessor :url
|
|
33
24
|
|
|
34
|
-
#
|
|
35
|
-
attr_accessor :
|
|
25
|
+
# A PEM encoded client certificate used for authentication.
|
|
26
|
+
attr_accessor :client_cert
|
|
36
27
|
|
|
37
28
|
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
38
29
|
attr_accessor :download_concurrency
|
|
39
30
|
|
|
40
|
-
# The
|
|
41
|
-
attr_accessor :
|
|
31
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
32
|
+
attr_accessor :sock_connect_timeout
|
|
42
33
|
|
|
43
34
|
# Timestamp of creation.
|
|
44
35
|
attr_accessor :pulp_created
|
|
@@ -46,17 +37,25 @@ module PulpAnsibleClient
|
|
|
46
37
|
# The proxy URL. Format: scheme://host:port
|
|
47
38
|
attr_accessor :proxy_url
|
|
48
39
|
|
|
49
|
-
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
50
|
-
attr_accessor :max_retries
|
|
51
|
-
|
|
52
|
-
# A unique name for this remote.
|
|
53
|
-
attr_accessor :name
|
|
54
|
-
|
|
55
40
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
56
41
|
attr_accessor :sock_read_timeout
|
|
57
42
|
|
|
58
|
-
#
|
|
59
|
-
attr_accessor :
|
|
43
|
+
# The Pulp Resource Name (PRN).
|
|
44
|
+
attr_accessor :prn
|
|
45
|
+
|
|
46
|
+
attr_accessor :pulp_href
|
|
47
|
+
|
|
48
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
49
|
+
attr_accessor :connect_timeout
|
|
50
|
+
|
|
51
|
+
# If True, TLS peer validation must be performed.
|
|
52
|
+
attr_accessor :tls_validation
|
|
53
|
+
|
|
54
|
+
# Headers for aiohttp.Clientsession
|
|
55
|
+
attr_accessor :headers
|
|
56
|
+
|
|
57
|
+
# A unique name for this remote.
|
|
58
|
+
attr_accessor :name
|
|
60
59
|
|
|
61
60
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
62
61
|
attr_accessor :total_timeout
|
|
@@ -64,13 +63,14 @@ module PulpAnsibleClient
|
|
|
64
63
|
# List of hidden (write only) fields
|
|
65
64
|
attr_accessor :hidden_fields
|
|
66
65
|
|
|
67
|
-
#
|
|
68
|
-
attr_accessor :
|
|
66
|
+
# Timestamp of the most recent update of the remote.
|
|
67
|
+
attr_accessor :pulp_last_updated
|
|
69
68
|
|
|
70
|
-
|
|
69
|
+
# Limits requests per second for each concurrent downloader
|
|
70
|
+
attr_accessor :rate_limit
|
|
71
71
|
|
|
72
|
-
# If
|
|
73
|
-
attr_accessor :
|
|
72
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
73
|
+
attr_accessor :max_retries
|
|
74
74
|
|
|
75
75
|
attr_accessor :pulp_labels
|
|
76
76
|
|
|
@@ -83,25 +83,25 @@ module PulpAnsibleClient
|
|
|
83
83
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
84
84
|
def self.attribute_map
|
|
85
85
|
{
|
|
86
|
-
:'client_cert' => :'client_cert',
|
|
87
|
-
:'rate_limit' => :'rate_limit',
|
|
88
86
|
:'ca_cert' => :'ca_cert',
|
|
89
|
-
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
90
87
|
:'url' => :'url',
|
|
91
|
-
:'
|
|
88
|
+
:'client_cert' => :'client_cert',
|
|
92
89
|
:'download_concurrency' => :'download_concurrency',
|
|
93
|
-
:'
|
|
90
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
94
91
|
:'pulp_created' => :'pulp_created',
|
|
95
92
|
:'proxy_url' => :'proxy_url',
|
|
96
|
-
:'max_retries' => :'max_retries',
|
|
97
|
-
:'name' => :'name',
|
|
98
93
|
:'sock_read_timeout' => :'sock_read_timeout',
|
|
99
|
-
:'
|
|
100
|
-
:'total_timeout' => :'total_timeout',
|
|
101
|
-
:'hidden_fields' => :'hidden_fields',
|
|
102
|
-
:'headers' => :'headers',
|
|
94
|
+
:'prn' => :'prn',
|
|
103
95
|
:'pulp_href' => :'pulp_href',
|
|
96
|
+
:'connect_timeout' => :'connect_timeout',
|
|
104
97
|
:'tls_validation' => :'tls_validation',
|
|
98
|
+
:'headers' => :'headers',
|
|
99
|
+
:'name' => :'name',
|
|
100
|
+
:'total_timeout' => :'total_timeout',
|
|
101
|
+
:'hidden_fields' => :'hidden_fields',
|
|
102
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
103
|
+
:'rate_limit' => :'rate_limit',
|
|
104
|
+
:'max_retries' => :'max_retries',
|
|
105
105
|
:'pulp_labels' => :'pulp_labels',
|
|
106
106
|
:'metadata_only' => :'metadata_only',
|
|
107
107
|
:'git_ref' => :'git_ref'
|
|
@@ -116,25 +116,25 @@ module PulpAnsibleClient
|
|
|
116
116
|
# Attribute type mapping.
|
|
117
117
|
def self.openapi_types
|
|
118
118
|
{
|
|
119
|
-
:'client_cert' => :'String',
|
|
120
|
-
:'rate_limit' => :'Integer',
|
|
121
119
|
:'ca_cert' => :'String',
|
|
122
|
-
:'sock_connect_timeout' => :'Float',
|
|
123
120
|
:'url' => :'String',
|
|
124
|
-
:'
|
|
121
|
+
:'client_cert' => :'String',
|
|
125
122
|
:'download_concurrency' => :'Integer',
|
|
126
|
-
:'
|
|
123
|
+
:'sock_connect_timeout' => :'Float',
|
|
127
124
|
:'pulp_created' => :'Time',
|
|
128
125
|
:'proxy_url' => :'String',
|
|
129
|
-
:'max_retries' => :'Integer',
|
|
130
|
-
:'name' => :'String',
|
|
131
126
|
:'sock_read_timeout' => :'Float',
|
|
132
|
-
:'
|
|
133
|
-
:'total_timeout' => :'Float',
|
|
134
|
-
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
|
135
|
-
:'headers' => :'Array<Object>',
|
|
127
|
+
:'prn' => :'String',
|
|
136
128
|
:'pulp_href' => :'String',
|
|
129
|
+
:'connect_timeout' => :'Float',
|
|
137
130
|
:'tls_validation' => :'Boolean',
|
|
131
|
+
:'headers' => :'Array<Object>',
|
|
132
|
+
:'name' => :'String',
|
|
133
|
+
:'total_timeout' => :'Float',
|
|
134
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
|
135
|
+
:'pulp_last_updated' => :'Time',
|
|
136
|
+
:'rate_limit' => :'Integer',
|
|
137
|
+
:'max_retries' => :'Integer',
|
|
138
138
|
:'pulp_labels' => :'Hash<String, String>',
|
|
139
139
|
:'metadata_only' => :'Boolean',
|
|
140
140
|
:'git_ref' => :'String'
|
|
@@ -144,16 +144,16 @@ module PulpAnsibleClient
|
|
|
144
144
|
# List of attributes with nullable: true
|
|
145
145
|
def self.openapi_nullable
|
|
146
146
|
Set.new([
|
|
147
|
-
:'client_cert',
|
|
148
|
-
:'rate_limit',
|
|
149
147
|
:'ca_cert',
|
|
150
|
-
:'
|
|
151
|
-
:'connect_timeout',
|
|
148
|
+
:'client_cert',
|
|
152
149
|
:'download_concurrency',
|
|
150
|
+
:'sock_connect_timeout',
|
|
153
151
|
:'proxy_url',
|
|
154
|
-
:'max_retries',
|
|
155
152
|
:'sock_read_timeout',
|
|
153
|
+
:'connect_timeout',
|
|
156
154
|
:'total_timeout',
|
|
155
|
+
:'rate_limit',
|
|
156
|
+
:'max_retries',
|
|
157
157
|
])
|
|
158
158
|
end
|
|
159
159
|
|
|
@@ -172,38 +172,26 @@ module PulpAnsibleClient
|
|
|
172
172
|
h[k.to_sym] = v
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
if attributes.key?(:'client_cert')
|
|
176
|
-
self.client_cert = attributes[:'client_cert']
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
if attributes.key?(:'rate_limit')
|
|
180
|
-
self.rate_limit = attributes[:'rate_limit']
|
|
181
|
-
end
|
|
182
|
-
|
|
183
175
|
if attributes.key?(:'ca_cert')
|
|
184
176
|
self.ca_cert = attributes[:'ca_cert']
|
|
185
177
|
end
|
|
186
178
|
|
|
187
|
-
if attributes.key?(:'sock_connect_timeout')
|
|
188
|
-
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
189
|
-
end
|
|
190
|
-
|
|
191
179
|
if attributes.key?(:'url')
|
|
192
180
|
self.url = attributes[:'url']
|
|
193
181
|
else
|
|
194
182
|
self.url = nil
|
|
195
183
|
end
|
|
196
184
|
|
|
197
|
-
if attributes.key?(:'
|
|
198
|
-
self.
|
|
185
|
+
if attributes.key?(:'client_cert')
|
|
186
|
+
self.client_cert = attributes[:'client_cert']
|
|
199
187
|
end
|
|
200
188
|
|
|
201
189
|
if attributes.key?(:'download_concurrency')
|
|
202
190
|
self.download_concurrency = attributes[:'download_concurrency']
|
|
203
191
|
end
|
|
204
192
|
|
|
205
|
-
if attributes.key?(:'
|
|
206
|
-
self.
|
|
193
|
+
if attributes.key?(:'sock_connect_timeout')
|
|
194
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
207
195
|
end
|
|
208
196
|
|
|
209
197
|
if attributes.key?(:'pulp_created')
|
|
@@ -214,22 +202,36 @@ module PulpAnsibleClient
|
|
|
214
202
|
self.proxy_url = attributes[:'proxy_url']
|
|
215
203
|
end
|
|
216
204
|
|
|
217
|
-
if attributes.key?(:'
|
|
218
|
-
self.
|
|
205
|
+
if attributes.key?(:'sock_read_timeout')
|
|
206
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
219
207
|
end
|
|
220
208
|
|
|
221
|
-
if attributes.key?(:'
|
|
222
|
-
self.
|
|
223
|
-
else
|
|
224
|
-
self.name = nil
|
|
209
|
+
if attributes.key?(:'prn')
|
|
210
|
+
self.prn = attributes[:'prn']
|
|
225
211
|
end
|
|
226
212
|
|
|
227
|
-
if attributes.key?(:'
|
|
228
|
-
self.
|
|
213
|
+
if attributes.key?(:'pulp_href')
|
|
214
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
229
215
|
end
|
|
230
216
|
|
|
231
|
-
if attributes.key?(:'
|
|
232
|
-
self.
|
|
217
|
+
if attributes.key?(:'connect_timeout')
|
|
218
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
if attributes.key?(:'tls_validation')
|
|
222
|
+
self.tls_validation = attributes[:'tls_validation']
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
if attributes.key?(:'headers')
|
|
226
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
|
227
|
+
self.headers = value
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
if attributes.key?(:'name')
|
|
232
|
+
self.name = attributes[:'name']
|
|
233
|
+
else
|
|
234
|
+
self.name = nil
|
|
233
235
|
end
|
|
234
236
|
|
|
235
237
|
if attributes.key?(:'total_timeout')
|
|
@@ -242,18 +244,16 @@ module PulpAnsibleClient
|
|
|
242
244
|
end
|
|
243
245
|
end
|
|
244
246
|
|
|
245
|
-
if attributes.key?(:'
|
|
246
|
-
|
|
247
|
-
self.headers = value
|
|
248
|
-
end
|
|
247
|
+
if attributes.key?(:'pulp_last_updated')
|
|
248
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
249
249
|
end
|
|
250
250
|
|
|
251
|
-
if attributes.key?(:'
|
|
252
|
-
self.
|
|
251
|
+
if attributes.key?(:'rate_limit')
|
|
252
|
+
self.rate_limit = attributes[:'rate_limit']
|
|
253
253
|
end
|
|
254
254
|
|
|
255
|
-
if attributes.key?(:'
|
|
256
|
-
self.
|
|
255
|
+
if attributes.key?(:'max_retries')
|
|
256
|
+
self.max_retries = attributes[:'max_retries']
|
|
257
257
|
end
|
|
258
258
|
|
|
259
259
|
if attributes.key?(:'pulp_labels')
|
|
@@ -276,30 +276,30 @@ module PulpAnsibleClient
|
|
|
276
276
|
def list_invalid_properties
|
|
277
277
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
278
278
|
invalid_properties = Array.new
|
|
279
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
280
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
281
|
-
end
|
|
282
|
-
|
|
283
279
|
if @url.nil?
|
|
284
280
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
285
281
|
end
|
|
286
282
|
|
|
287
|
-
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
288
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
|
289
|
-
end
|
|
290
|
-
|
|
291
283
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
292
284
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
293
285
|
end
|
|
294
286
|
|
|
295
|
-
if
|
|
296
|
-
invalid_properties.push('invalid value for "
|
|
287
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
288
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
297
289
|
end
|
|
298
290
|
|
|
299
291
|
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
300
292
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
301
293
|
end
|
|
302
294
|
|
|
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.')
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
if @name.nil?
|
|
300
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
301
|
+
end
|
|
302
|
+
|
|
303
303
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
304
304
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
305
305
|
end
|
|
@@ -311,36 +311,16 @@ module PulpAnsibleClient
|
|
|
311
311
|
# @return true if the model is valid
|
|
312
312
|
def valid?
|
|
313
313
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
314
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
315
314
|
return false if @url.nil?
|
|
316
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
317
315
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
318
|
-
return false if
|
|
316
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
319
317
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
318
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
319
|
+
return false if @name.nil?
|
|
320
320
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
321
321
|
true
|
|
322
322
|
end
|
|
323
323
|
|
|
324
|
-
# Custom attribute writer method with validation
|
|
325
|
-
# @param [Object] sock_connect_timeout Value to be assigned
|
|
326
|
-
def sock_connect_timeout=(sock_connect_timeout)
|
|
327
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
|
328
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
|
329
|
-
end
|
|
330
|
-
|
|
331
|
-
@sock_connect_timeout = sock_connect_timeout
|
|
332
|
-
end
|
|
333
|
-
|
|
334
|
-
# Custom attribute writer method with validation
|
|
335
|
-
# @param [Object] connect_timeout Value to be assigned
|
|
336
|
-
def connect_timeout=(connect_timeout)
|
|
337
|
-
if !connect_timeout.nil? && connect_timeout < 0.0
|
|
338
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
|
339
|
-
end
|
|
340
|
-
|
|
341
|
-
@connect_timeout = connect_timeout
|
|
342
|
-
end
|
|
343
|
-
|
|
344
324
|
# Custom attribute writer method with validation
|
|
345
325
|
# @param [Object] download_concurrency Value to be assigned
|
|
346
326
|
def download_concurrency=(download_concurrency)
|
|
@@ -351,6 +331,16 @@ module PulpAnsibleClient
|
|
|
351
331
|
@download_concurrency = download_concurrency
|
|
352
332
|
end
|
|
353
333
|
|
|
334
|
+
# Custom attribute writer method with validation
|
|
335
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
|
336
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
|
337
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
|
338
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
@sock_connect_timeout = sock_connect_timeout
|
|
342
|
+
end
|
|
343
|
+
|
|
354
344
|
# Custom attribute writer method with validation
|
|
355
345
|
# @param [Object] sock_read_timeout Value to be assigned
|
|
356
346
|
def sock_read_timeout=(sock_read_timeout)
|
|
@@ -361,6 +351,16 @@ module PulpAnsibleClient
|
|
|
361
351
|
@sock_read_timeout = sock_read_timeout
|
|
362
352
|
end
|
|
363
353
|
|
|
354
|
+
# Custom attribute writer method with validation
|
|
355
|
+
# @param [Object] connect_timeout Value to be assigned
|
|
356
|
+
def connect_timeout=(connect_timeout)
|
|
357
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
|
358
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
@connect_timeout = connect_timeout
|
|
362
|
+
end
|
|
363
|
+
|
|
364
364
|
# Custom attribute writer method with validation
|
|
365
365
|
# @param [Object] total_timeout Value to be assigned
|
|
366
366
|
def total_timeout=(total_timeout)
|
|
@@ -376,25 +376,25 @@ module PulpAnsibleClient
|
|
|
376
376
|
def ==(o)
|
|
377
377
|
return true if self.equal?(o)
|
|
378
378
|
self.class == o.class &&
|
|
379
|
-
client_cert == o.client_cert &&
|
|
380
|
-
rate_limit == o.rate_limit &&
|
|
381
379
|
ca_cert == o.ca_cert &&
|
|
382
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
|
383
380
|
url == o.url &&
|
|
384
|
-
|
|
381
|
+
client_cert == o.client_cert &&
|
|
385
382
|
download_concurrency == o.download_concurrency &&
|
|
386
|
-
|
|
383
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
|
387
384
|
pulp_created == o.pulp_created &&
|
|
388
385
|
proxy_url == o.proxy_url &&
|
|
389
|
-
max_retries == o.max_retries &&
|
|
390
|
-
name == o.name &&
|
|
391
386
|
sock_read_timeout == o.sock_read_timeout &&
|
|
392
|
-
|
|
393
|
-
total_timeout == o.total_timeout &&
|
|
394
|
-
hidden_fields == o.hidden_fields &&
|
|
395
|
-
headers == o.headers &&
|
|
387
|
+
prn == o.prn &&
|
|
396
388
|
pulp_href == o.pulp_href &&
|
|
389
|
+
connect_timeout == o.connect_timeout &&
|
|
397
390
|
tls_validation == o.tls_validation &&
|
|
391
|
+
headers == o.headers &&
|
|
392
|
+
name == o.name &&
|
|
393
|
+
total_timeout == o.total_timeout &&
|
|
394
|
+
hidden_fields == o.hidden_fields &&
|
|
395
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
396
|
+
rate_limit == o.rate_limit &&
|
|
397
|
+
max_retries == o.max_retries &&
|
|
398
398
|
pulp_labels == o.pulp_labels &&
|
|
399
399
|
metadata_only == o.metadata_only &&
|
|
400
400
|
git_ref == o.git_ref
|
|
@@ -409,7 +409,7 @@ module PulpAnsibleClient
|
|
|
409
409
|
# Calculates hash code according to all attributes.
|
|
410
410
|
# @return [Integer] Hash code
|
|
411
411
|
def hash
|
|
412
|
-
[
|
|
412
|
+
[ca_cert, url, client_cert, download_concurrency, sock_connect_timeout, pulp_created, proxy_url, sock_read_timeout, prn, pulp_href, connect_timeout, tls_validation, headers, name, total_timeout, hidden_fields, pulp_last_updated, rate_limit, max_retries, pulp_labels, metadata_only, git_ref].hash
|
|
413
413
|
end
|
|
414
414
|
|
|
415
415
|
# Builds the object from hash
|
|
@@ -16,12 +16,12 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for Role versions.
|
|
18
18
|
class AnsibleRole
|
|
19
|
-
# Artifact file representing the physical content
|
|
20
|
-
attr_accessor :artifact
|
|
21
|
-
|
|
22
19
|
# A URI of a repository the new content unit should be associated with.
|
|
23
20
|
attr_accessor :repository
|
|
24
21
|
|
|
22
|
+
# Artifact file representing the physical content
|
|
23
|
+
attr_accessor :artifact
|
|
24
|
+
|
|
25
25
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
26
26
|
attr_accessor :pulp_labels
|
|
27
27
|
|
|
@@ -34,8 +34,8 @@ module PulpAnsibleClient
|
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
35
|
def self.attribute_map
|
|
36
36
|
{
|
|
37
|
-
:'artifact' => :'artifact',
|
|
38
37
|
:'repository' => :'repository',
|
|
38
|
+
:'artifact' => :'artifact',
|
|
39
39
|
:'pulp_labels' => :'pulp_labels',
|
|
40
40
|
:'version' => :'version',
|
|
41
41
|
:'name' => :'name',
|
|
@@ -51,8 +51,8 @@ module PulpAnsibleClient
|
|
|
51
51
|
# Attribute type mapping.
|
|
52
52
|
def self.openapi_types
|
|
53
53
|
{
|
|
54
|
-
:'artifact' => :'String',
|
|
55
54
|
:'repository' => :'String',
|
|
55
|
+
:'artifact' => :'String',
|
|
56
56
|
:'pulp_labels' => :'Hash<String, String>',
|
|
57
57
|
:'version' => :'String',
|
|
58
58
|
:'name' => :'String',
|
|
@@ -81,16 +81,16 @@ module PulpAnsibleClient
|
|
|
81
81
|
h[k.to_sym] = v
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
if attributes.key?(:'repository')
|
|
85
|
+
self.repository = attributes[:'repository']
|
|
86
|
+
end
|
|
87
|
+
|
|
84
88
|
if attributes.key?(:'artifact')
|
|
85
89
|
self.artifact = attributes[:'artifact']
|
|
86
90
|
else
|
|
87
91
|
self.artifact = nil
|
|
88
92
|
end
|
|
89
93
|
|
|
90
|
-
if attributes.key?(:'repository')
|
|
91
|
-
self.repository = attributes[:'repository']
|
|
92
|
-
end
|
|
93
|
-
|
|
94
94
|
if attributes.key?(:'pulp_labels')
|
|
95
95
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
96
96
|
self.pulp_labels = value
|
|
@@ -213,8 +213,8 @@ module PulpAnsibleClient
|
|
|
213
213
|
def ==(o)
|
|
214
214
|
return true if self.equal?(o)
|
|
215
215
|
self.class == o.class &&
|
|
216
|
-
artifact == o.artifact &&
|
|
217
216
|
repository == o.repository &&
|
|
217
|
+
artifact == o.artifact &&
|
|
218
218
|
pulp_labels == o.pulp_labels &&
|
|
219
219
|
version == o.version &&
|
|
220
220
|
name == o.name &&
|
|
@@ -230,7 +230,7 @@ module PulpAnsibleClient
|
|
|
230
230
|
# Calculates hash code according to all attributes.
|
|
231
231
|
# @return [Integer] Hash code
|
|
232
232
|
def hash
|
|
233
|
-
[
|
|
233
|
+
[repository, artifact, pulp_labels, version, name, namespace].hash
|
|
234
234
|
end
|
|
235
235
|
|
|
236
236
|
# Builds the object from hash
|
|
@@ -16,23 +16,23 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for Role versions.
|
|
18
18
|
class AnsibleRoleResponse
|
|
19
|
-
# Timestamp of creation.
|
|
20
|
-
attr_accessor :pulp_created
|
|
21
|
-
|
|
22
19
|
# Artifact file representing the physical content
|
|
23
20
|
attr_accessor :artifact
|
|
24
21
|
|
|
25
22
|
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
26
23
|
attr_accessor :pulp_last_updated
|
|
27
24
|
|
|
25
|
+
# Timestamp of creation.
|
|
26
|
+
attr_accessor :pulp_created
|
|
27
|
+
|
|
28
|
+
# The Pulp Resource Name (PRN).
|
|
29
|
+
attr_accessor :prn
|
|
30
|
+
|
|
28
31
|
attr_accessor :pulp_href
|
|
29
32
|
|
|
30
33
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
31
34
|
attr_accessor :pulp_labels
|
|
32
35
|
|
|
33
|
-
# The Pulp Resource Name (PRN).
|
|
34
|
-
attr_accessor :prn
|
|
35
|
-
|
|
36
36
|
attr_accessor :version
|
|
37
37
|
|
|
38
38
|
attr_accessor :name
|
|
@@ -42,12 +42,12 @@ module PulpAnsibleClient
|
|
|
42
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
43
|
def self.attribute_map
|
|
44
44
|
{
|
|
45
|
-
:'pulp_created' => :'pulp_created',
|
|
46
45
|
:'artifact' => :'artifact',
|
|
47
46
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
47
|
+
:'pulp_created' => :'pulp_created',
|
|
48
|
+
:'prn' => :'prn',
|
|
48
49
|
:'pulp_href' => :'pulp_href',
|
|
49
50
|
:'pulp_labels' => :'pulp_labels',
|
|
50
|
-
:'prn' => :'prn',
|
|
51
51
|
:'version' => :'version',
|
|
52
52
|
:'name' => :'name',
|
|
53
53
|
:'namespace' => :'namespace'
|
|
@@ -62,12 +62,12 @@ module PulpAnsibleClient
|
|
|
62
62
|
# Attribute type mapping.
|
|
63
63
|
def self.openapi_types
|
|
64
64
|
{
|
|
65
|
-
:'pulp_created' => :'Time',
|
|
66
65
|
:'artifact' => :'String',
|
|
67
66
|
:'pulp_last_updated' => :'Time',
|
|
67
|
+
:'pulp_created' => :'Time',
|
|
68
|
+
:'prn' => :'String',
|
|
68
69
|
:'pulp_href' => :'String',
|
|
69
70
|
:'pulp_labels' => :'Hash<String, String>',
|
|
70
|
-
:'prn' => :'String',
|
|
71
71
|
:'version' => :'String',
|
|
72
72
|
:'name' => :'String',
|
|
73
73
|
:'namespace' => :'String'
|
|
@@ -95,10 +95,6 @@ module PulpAnsibleClient
|
|
|
95
95
|
h[k.to_sym] = v
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
if attributes.key?(:'pulp_created')
|
|
99
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
100
|
-
end
|
|
101
|
-
|
|
102
98
|
if attributes.key?(:'artifact')
|
|
103
99
|
self.artifact = attributes[:'artifact']
|
|
104
100
|
else
|
|
@@ -109,6 +105,14 @@ module PulpAnsibleClient
|
|
|
109
105
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
110
106
|
end
|
|
111
107
|
|
|
108
|
+
if attributes.key?(:'pulp_created')
|
|
109
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'prn')
|
|
113
|
+
self.prn = attributes[:'prn']
|
|
114
|
+
end
|
|
115
|
+
|
|
112
116
|
if attributes.key?(:'pulp_href')
|
|
113
117
|
self.pulp_href = attributes[:'pulp_href']
|
|
114
118
|
end
|
|
@@ -119,10 +123,6 @@ module PulpAnsibleClient
|
|
|
119
123
|
end
|
|
120
124
|
end
|
|
121
125
|
|
|
122
|
-
if attributes.key?(:'prn')
|
|
123
|
-
self.prn = attributes[:'prn']
|
|
124
|
-
end
|
|
125
|
-
|
|
126
126
|
if attributes.key?(:'version')
|
|
127
127
|
self.version = attributes[:'version']
|
|
128
128
|
else
|
|
@@ -182,12 +182,12 @@ module PulpAnsibleClient
|
|
|
182
182
|
def ==(o)
|
|
183
183
|
return true if self.equal?(o)
|
|
184
184
|
self.class == o.class &&
|
|
185
|
-
pulp_created == o.pulp_created &&
|
|
186
185
|
artifact == o.artifact &&
|
|
187
186
|
pulp_last_updated == o.pulp_last_updated &&
|
|
187
|
+
pulp_created == o.pulp_created &&
|
|
188
|
+
prn == o.prn &&
|
|
188
189
|
pulp_href == o.pulp_href &&
|
|
189
190
|
pulp_labels == o.pulp_labels &&
|
|
190
|
-
prn == o.prn &&
|
|
191
191
|
version == o.version &&
|
|
192
192
|
name == o.name &&
|
|
193
193
|
namespace == o.namespace
|
|
@@ -202,7 +202,7 @@ module PulpAnsibleClient
|
|
|
202
202
|
# Calculates hash code according to all attributes.
|
|
203
203
|
# @return [Integer] Hash code
|
|
204
204
|
def hash
|
|
205
|
-
[
|
|
205
|
+
[artifact, pulp_last_updated, pulp_created, prn, pulp_href, pulp_labels, version, name, namespace].hash
|
|
206
206
|
end
|
|
207
207
|
|
|
208
208
|
# Builds the object from hash
|