pulp_ansible_client 0.15.4 → 0.15.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -8
- data/docs/AnsibleAnsibleRepository.md +1 -1
- data/docs/AnsibleAnsibleRepositoryResponse.md +1 -1
- data/docs/AnsibleCollectionRemote.md +1 -1
- data/docs/AnsibleCollectionRemoteResponse.md +1 -1
- data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
- data/docs/AnsibleCollectionVersion.md +3 -3
- data/docs/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleCollectionsApi.md +3 -7
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +30 -30
- data/docs/AnsibleGitRemoteResponse.md +28 -28
- data/docs/AnsibleRoleRemote.md +1 -1
- data/docs/AnsibleRoleRemoteResponse.md +1 -1
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/ApiCollectionsApi.md +1 -1
- data/docs/ApiRolesApi.md +1 -1
- data/docs/CollectionImportApi.md +1 -1
- 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 +3 -7
- data/docs/ContentCollectionSignaturesApi.md +3 -7
- data/docs/ContentCollectionVersionsApi.md +5 -9
- data/docs/ContentRolesApi.md +3 -7
- data/docs/DistributionsAnsibleApi.md +3 -11
- data/docs/GalaxyCollectionResponse.md +4 -4
- data/docs/GalaxyCollectionVersionResponse.md +4 -4
- data/docs/GalaxyDetailApi.md +1 -1
- data/docs/GalaxyRoleResponse.md +1 -1
- data/docs/GalaxyRoleVersionResponse.md +1 -1
- data/docs/PatchedansibleAnsibleRepository.md +1 -1
- data/docs/PatchedansibleCollectionRemote.md +1 -1
- data/docs/PatchedansibleGitRemote.md +30 -30
- data/docs/PatchedansibleRoleRemote.md +1 -1
- data/docs/PulpAnsibleApiApi.md +1 -1
- data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3Api.md +1 -1
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +3 -7
- data/docs/PulpAnsibleApiV3CollectionsApi.md +3 -7
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +3 -7
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +3 -7
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +3 -7
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +3 -7
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +3 -7
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +3 -7
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +3 -7
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +3 -7
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +3 -7
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +3 -7
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleTagsApi.md +1 -1
- data/docs/RemotesCollectionApi.md +3 -7
- data/docs/RemotesGitApi.md +3 -7
- data/docs/RemotesRoleApi.md +3 -7
- data/docs/RepositoriesAnsibleApi.md +3 -23
- data/docs/RepositoriesAnsibleVersionsApi.md +3 -5
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/UnpaginatedCollectionVersionResponse.md +4 -4
- data/docs/VersionsApi.md +1 -1
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +2 -8
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +2 -8
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +2 -8
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +5 -11
- data/lib/pulp_ansible_client/api/content_roles_api.rb +2 -8
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +2 -14
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +2 -8
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +2 -8
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +2 -8
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +2 -8
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +2 -32
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +2 -5
- data/lib/pulp_ansible_client/configuration.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +21 -21
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +21 -21
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +10 -0
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +244 -244
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +157 -157
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +21 -21
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +21 -21
- 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_repository.rb +1 -1
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +21 -21
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +236 -236
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +21 -21
- 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/spec/api/ansible_collections_api_spec.rb +1 -3
- data/spec/api/content_collection_deprecations_api_spec.rb +1 -3
- data/spec/api/content_collection_signatures_api_spec.rb +1 -3
- data/spec/api/content_collection_versions_api_spec.rb +2 -4
- data/spec/api/content_roles_api_spec.rb +1 -3
- data/spec/api/distributions_ansible_api_spec.rb +1 -5
- data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -3
- data/spec/api/remotes_collection_api_spec.rb +1 -3
- data/spec/api/remotes_git_api_spec.rb +1 -3
- data/spec/api/remotes_role_api_spec.rb +1 -3
- data/spec/api/repositories_ansible_api_spec.rb +1 -11
- data/spec/api/repositories_ansible_versions_api_spec.rb +1 -2
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/ansible_collection_version_response_spec.rb +3 -3
- data/spec/models/ansible_collection_version_spec.rb +2 -2
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +17 -17
- data/spec/models/ansible_role_response_spec.rb +3 -3
- data/spec/models/patchedansible_git_remote_spec.rb +17 -17
- metadata +111 -111
@@ -15,60 +15,60 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Git Collection Remotes.
|
17
17
|
class AnsibleGitRemoteResponse
|
18
|
-
#
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
# 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.
|
22
|
-
attr_accessor :sock_read_timeout
|
23
|
-
|
24
|
-
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
25
|
-
attr_accessor :ca_cert
|
18
|
+
# Headers for aiohttp.Clientsession
|
19
|
+
attr_accessor :headers
|
26
20
|
|
27
21
|
# A PEM encoded client certificate used for authentication.
|
28
22
|
attr_accessor :client_cert
|
29
23
|
|
30
|
-
#
|
31
|
-
attr_accessor :
|
32
|
-
|
33
|
-
# Timestamp of creation.
|
34
|
-
attr_accessor :pulp_created
|
24
|
+
# The URL of an external content source.
|
25
|
+
attr_accessor :url
|
35
26
|
|
36
27
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
37
28
|
attr_accessor :max_retries
|
38
29
|
|
30
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
31
|
+
attr_accessor :ca_cert
|
32
|
+
|
39
33
|
# List of hidden (write only) fields
|
40
34
|
attr_accessor :hidden_fields
|
41
35
|
|
42
|
-
# aiohttp.ClientTimeout.
|
43
|
-
attr_accessor :
|
36
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
37
|
+
attr_accessor :connect_timeout
|
44
38
|
|
45
|
-
#
|
46
|
-
attr_accessor :
|
39
|
+
# Timestamp of creation.
|
40
|
+
attr_accessor :pulp_created
|
47
41
|
|
48
|
-
#
|
49
|
-
attr_accessor :
|
42
|
+
# A unique name for this remote.
|
43
|
+
attr_accessor :name
|
50
44
|
|
51
|
-
|
45
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
46
|
+
attr_accessor :download_concurrency
|
52
47
|
|
53
48
|
# Timestamp of the most recent update of the remote.
|
54
49
|
attr_accessor :pulp_last_updated
|
55
50
|
|
56
|
-
|
57
|
-
attr_accessor :headers
|
51
|
+
attr_accessor :pulp_href
|
58
52
|
|
59
|
-
|
60
|
-
attr_accessor :url
|
53
|
+
attr_accessor :pulp_labels
|
61
54
|
|
62
|
-
#
|
63
|
-
attr_accessor :
|
55
|
+
# 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
|
+
attr_accessor :sock_read_timeout
|
57
|
+
|
58
|
+
# The proxy URL. Format: scheme://host:port
|
59
|
+
attr_accessor :proxy_url
|
64
60
|
|
65
61
|
# If True, TLS peer validation must be performed.
|
66
62
|
attr_accessor :tls_validation
|
67
63
|
|
68
|
-
#
|
69
|
-
attr_accessor :
|
64
|
+
# 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.
|
65
|
+
attr_accessor :sock_connect_timeout
|
70
66
|
|
71
|
-
|
67
|
+
# Limits requests per second for each concurrent downloader
|
68
|
+
attr_accessor :rate_limit
|
69
|
+
|
70
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
71
|
+
attr_accessor :total_timeout
|
72
72
|
|
73
73
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
74
74
|
attr_accessor :metadata_only
|
@@ -79,25 +79,25 @@ module PulpAnsibleClient
|
|
79
79
|
# Attribute mapping from ruby-style variable name to JSON key.
|
80
80
|
def self.attribute_map
|
81
81
|
{
|
82
|
-
:'
|
83
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
84
|
-
:'ca_cert' => :'ca_cert',
|
82
|
+
:'headers' => :'headers',
|
85
83
|
:'client_cert' => :'client_cert',
|
86
|
-
:'
|
87
|
-
:'pulp_created' => :'pulp_created',
|
84
|
+
:'url' => :'url',
|
88
85
|
:'max_retries' => :'max_retries',
|
86
|
+
:'ca_cert' => :'ca_cert',
|
89
87
|
:'hidden_fields' => :'hidden_fields',
|
90
|
-
:'
|
91
|
-
:'
|
92
|
-
:'sock_connect_timeout' => :'sock_connect_timeout',
|
93
|
-
:'pulp_href' => :'pulp_href',
|
94
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
95
|
-
:'headers' => :'headers',
|
96
|
-
:'url' => :'url',
|
97
|
-
:'download_concurrency' => :'download_concurrency',
|
98
|
-
:'tls_validation' => :'tls_validation',
|
88
|
+
:'connect_timeout' => :'connect_timeout',
|
89
|
+
:'pulp_created' => :'pulp_created',
|
99
90
|
:'name' => :'name',
|
91
|
+
:'download_concurrency' => :'download_concurrency',
|
92
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
93
|
+
:'pulp_href' => :'pulp_href',
|
100
94
|
:'pulp_labels' => :'pulp_labels',
|
95
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
96
|
+
:'proxy_url' => :'proxy_url',
|
97
|
+
:'tls_validation' => :'tls_validation',
|
98
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
99
|
+
:'rate_limit' => :'rate_limit',
|
100
|
+
:'total_timeout' => :'total_timeout',
|
101
101
|
:'metadata_only' => :'metadata_only',
|
102
102
|
:'git_ref' => :'git_ref'
|
103
103
|
}
|
@@ -106,25 +106,25 @@ module PulpAnsibleClient
|
|
106
106
|
# Attribute type mapping.
|
107
107
|
def self.openapi_types
|
108
108
|
{
|
109
|
-
:'
|
110
|
-
:'sock_read_timeout' => :'Float',
|
111
|
-
:'ca_cert' => :'String',
|
109
|
+
:'headers' => :'Array<Object>',
|
112
110
|
:'client_cert' => :'String',
|
113
|
-
:'
|
114
|
-
:'pulp_created' => :'DateTime',
|
111
|
+
:'url' => :'String',
|
115
112
|
:'max_retries' => :'Integer',
|
113
|
+
:'ca_cert' => :'String',
|
116
114
|
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
|
117
|
-
:'
|
118
|
-
:'
|
119
|
-
:'sock_connect_timeout' => :'Float',
|
120
|
-
:'pulp_href' => :'String',
|
121
|
-
:'pulp_last_updated' => :'DateTime',
|
122
|
-
:'headers' => :'Array<Object>',
|
123
|
-
:'url' => :'String',
|
124
|
-
:'download_concurrency' => :'Integer',
|
125
|
-
:'tls_validation' => :'Boolean',
|
115
|
+
:'connect_timeout' => :'Float',
|
116
|
+
:'pulp_created' => :'DateTime',
|
126
117
|
:'name' => :'String',
|
118
|
+
:'download_concurrency' => :'Integer',
|
119
|
+
:'pulp_last_updated' => :'DateTime',
|
120
|
+
:'pulp_href' => :'String',
|
127
121
|
:'pulp_labels' => :'Hash<String, String>',
|
122
|
+
:'sock_read_timeout' => :'Float',
|
123
|
+
:'proxy_url' => :'String',
|
124
|
+
:'tls_validation' => :'Boolean',
|
125
|
+
:'sock_connect_timeout' => :'Float',
|
126
|
+
:'rate_limit' => :'Integer',
|
127
|
+
:'total_timeout' => :'Float',
|
128
128
|
:'metadata_only' => :'Boolean',
|
129
129
|
:'git_ref' => :'String'
|
130
130
|
}
|
@@ -133,16 +133,16 @@ module PulpAnsibleClient
|
|
133
133
|
# List of attributes with nullable: true
|
134
134
|
def self.openapi_nullable
|
135
135
|
Set.new([
|
136
|
-
:'proxy_url',
|
137
|
-
:'sock_read_timeout',
|
138
|
-
:'ca_cert',
|
139
136
|
:'client_cert',
|
140
|
-
:'connect_timeout',
|
141
137
|
:'max_retries',
|
142
|
-
:'
|
143
|
-
:'
|
144
|
-
:'sock_connect_timeout',
|
138
|
+
:'ca_cert',
|
139
|
+
:'connect_timeout',
|
145
140
|
:'download_concurrency',
|
141
|
+
:'sock_read_timeout',
|
142
|
+
:'proxy_url',
|
143
|
+
:'sock_connect_timeout',
|
144
|
+
:'rate_limit',
|
145
|
+
:'total_timeout',
|
146
146
|
])
|
147
147
|
end
|
148
148
|
|
@@ -161,86 +161,86 @@ module PulpAnsibleClient
|
|
161
161
|
h[k.to_sym] = v
|
162
162
|
}
|
163
163
|
|
164
|
-
if attributes.key?(:'
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
if attributes.key?(:'sock_read_timeout')
|
169
|
-
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
170
|
-
end
|
171
|
-
|
172
|
-
if attributes.key?(:'ca_cert')
|
173
|
-
self.ca_cert = attributes[:'ca_cert']
|
164
|
+
if attributes.key?(:'headers')
|
165
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
166
|
+
self.headers = value
|
167
|
+
end
|
174
168
|
end
|
175
169
|
|
176
170
|
if attributes.key?(:'client_cert')
|
177
171
|
self.client_cert = attributes[:'client_cert']
|
178
172
|
end
|
179
173
|
|
180
|
-
if attributes.key?(:'
|
181
|
-
self.
|
182
|
-
end
|
183
|
-
|
184
|
-
if attributes.key?(:'pulp_created')
|
185
|
-
self.pulp_created = attributes[:'pulp_created']
|
174
|
+
if attributes.key?(:'url')
|
175
|
+
self.url = attributes[:'url']
|
186
176
|
end
|
187
177
|
|
188
178
|
if attributes.key?(:'max_retries')
|
189
179
|
self.max_retries = attributes[:'max_retries']
|
190
180
|
end
|
191
181
|
|
182
|
+
if attributes.key?(:'ca_cert')
|
183
|
+
self.ca_cert = attributes[:'ca_cert']
|
184
|
+
end
|
185
|
+
|
192
186
|
if attributes.key?(:'hidden_fields')
|
193
187
|
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
194
188
|
self.hidden_fields = value
|
195
189
|
end
|
196
190
|
end
|
197
191
|
|
198
|
-
if attributes.key?(:'
|
199
|
-
self.
|
192
|
+
if attributes.key?(:'connect_timeout')
|
193
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
200
194
|
end
|
201
195
|
|
202
|
-
if attributes.key?(:'
|
203
|
-
self.
|
196
|
+
if attributes.key?(:'pulp_created')
|
197
|
+
self.pulp_created = attributes[:'pulp_created']
|
204
198
|
end
|
205
199
|
|
206
|
-
if attributes.key?(:'
|
207
|
-
self.
|
200
|
+
if attributes.key?(:'name')
|
201
|
+
self.name = attributes[:'name']
|
208
202
|
end
|
209
203
|
|
210
|
-
if attributes.key?(:'
|
211
|
-
self.
|
204
|
+
if attributes.key?(:'download_concurrency')
|
205
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
212
206
|
end
|
213
207
|
|
214
208
|
if attributes.key?(:'pulp_last_updated')
|
215
209
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
216
210
|
end
|
217
211
|
|
218
|
-
if attributes.key?(:'
|
219
|
-
|
220
|
-
|
212
|
+
if attributes.key?(:'pulp_href')
|
213
|
+
self.pulp_href = attributes[:'pulp_href']
|
214
|
+
end
|
215
|
+
|
216
|
+
if attributes.key?(:'pulp_labels')
|
217
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
218
|
+
self.pulp_labels = value
|
221
219
|
end
|
222
220
|
end
|
223
221
|
|
224
|
-
if attributes.key?(:'
|
225
|
-
self.
|
222
|
+
if attributes.key?(:'sock_read_timeout')
|
223
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
226
224
|
end
|
227
225
|
|
228
|
-
if attributes.key?(:'
|
229
|
-
self.
|
226
|
+
if attributes.key?(:'proxy_url')
|
227
|
+
self.proxy_url = attributes[:'proxy_url']
|
230
228
|
end
|
231
229
|
|
232
230
|
if attributes.key?(:'tls_validation')
|
233
231
|
self.tls_validation = attributes[:'tls_validation']
|
234
232
|
end
|
235
233
|
|
236
|
-
if attributes.key?(:'
|
237
|
-
self.
|
234
|
+
if attributes.key?(:'sock_connect_timeout')
|
235
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
238
236
|
end
|
239
237
|
|
240
|
-
if attributes.key?(:'
|
241
|
-
|
242
|
-
|
243
|
-
|
238
|
+
if attributes.key?(:'rate_limit')
|
239
|
+
self.rate_limit = attributes[:'rate_limit']
|
240
|
+
end
|
241
|
+
|
242
|
+
if attributes.key?(:'total_timeout')
|
243
|
+
self.total_timeout = attributes[:'total_timeout']
|
244
244
|
end
|
245
245
|
|
246
246
|
if attributes.key?(:'metadata_only')
|
@@ -256,32 +256,32 @@ module PulpAnsibleClient
|
|
256
256
|
# @return Array for valid properties with the reasons
|
257
257
|
def list_invalid_properties
|
258
258
|
invalid_properties = Array.new
|
259
|
-
if
|
260
|
-
invalid_properties.push('invalid value for "
|
259
|
+
if @url.nil?
|
260
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
261
261
|
end
|
262
262
|
|
263
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
264
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.
|
263
|
+
if !@connect_timeout.nil? && @connect_timeout < 0
|
264
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
265
265
|
end
|
266
266
|
|
267
|
-
if
|
268
|
-
invalid_properties.push('invalid value for "
|
267
|
+
if @name.nil?
|
268
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
269
269
|
end
|
270
270
|
|
271
|
-
if !@
|
272
|
-
invalid_properties.push('invalid value for "
|
271
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
272
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
273
273
|
end
|
274
274
|
|
275
|
-
if
|
276
|
-
invalid_properties.push('invalid value for "
|
275
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
276
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
277
277
|
end
|
278
278
|
|
279
|
-
if !@
|
280
|
-
invalid_properties.push('invalid value for "
|
279
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
280
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
281
281
|
end
|
282
282
|
|
283
|
-
if
|
284
|
-
invalid_properties.push('invalid value for "
|
283
|
+
if !@total_timeout.nil? && @total_timeout < 0
|
284
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
285
285
|
end
|
286
286
|
|
287
287
|
invalid_properties
|
@@ -290,64 +290,64 @@ module PulpAnsibleClient
|
|
290
290
|
# Check to see if the all the properties in the model are valid
|
291
291
|
# @return true if the model is valid
|
292
292
|
def valid?
|
293
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
294
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
295
|
-
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
296
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
297
293
|
return false if @url.nil?
|
298
|
-
return false if !@
|
294
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
299
295
|
return false if @name.nil?
|
296
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
297
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
298
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
299
|
+
return false if !@total_timeout.nil? && @total_timeout < 0
|
300
300
|
true
|
301
301
|
end
|
302
302
|
|
303
303
|
# Custom attribute writer method with validation
|
304
|
-
# @param [Object]
|
305
|
-
def
|
306
|
-
if !
|
307
|
-
fail ArgumentError, 'invalid value for "
|
304
|
+
# @param [Object] connect_timeout Value to be assigned
|
305
|
+
def connect_timeout=(connect_timeout)
|
306
|
+
if !connect_timeout.nil? && connect_timeout < 0
|
307
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
308
308
|
end
|
309
309
|
|
310
|
-
@
|
310
|
+
@connect_timeout = connect_timeout
|
311
311
|
end
|
312
312
|
|
313
313
|
# Custom attribute writer method with validation
|
314
|
-
# @param [Object]
|
315
|
-
def
|
316
|
-
if !
|
317
|
-
fail ArgumentError, 'invalid value for "
|
314
|
+
# @param [Object] download_concurrency Value to be assigned
|
315
|
+
def download_concurrency=(download_concurrency)
|
316
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
317
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
318
318
|
end
|
319
319
|
|
320
|
-
@
|
320
|
+
@download_concurrency = download_concurrency
|
321
321
|
end
|
322
322
|
|
323
323
|
# Custom attribute writer method with validation
|
324
|
-
# @param [Object]
|
325
|
-
def
|
326
|
-
if !
|
327
|
-
fail ArgumentError, 'invalid value for "
|
324
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
325
|
+
def sock_read_timeout=(sock_read_timeout)
|
326
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
327
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
328
328
|
end
|
329
329
|
|
330
|
-
@
|
330
|
+
@sock_read_timeout = sock_read_timeout
|
331
331
|
end
|
332
332
|
|
333
333
|
# Custom attribute writer method with validation
|
334
334
|
# @param [Object] sock_connect_timeout Value to be assigned
|
335
335
|
def sock_connect_timeout=(sock_connect_timeout)
|
336
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
337
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
336
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
337
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
338
338
|
end
|
339
339
|
|
340
340
|
@sock_connect_timeout = sock_connect_timeout
|
341
341
|
end
|
342
342
|
|
343
343
|
# Custom attribute writer method with validation
|
344
|
-
# @param [Object]
|
345
|
-
def
|
346
|
-
if !
|
347
|
-
fail ArgumentError, 'invalid value for "
|
344
|
+
# @param [Object] total_timeout Value to be assigned
|
345
|
+
def total_timeout=(total_timeout)
|
346
|
+
if !total_timeout.nil? && total_timeout < 0
|
347
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
348
348
|
end
|
349
349
|
|
350
|
-
@
|
350
|
+
@total_timeout = total_timeout
|
351
351
|
end
|
352
352
|
|
353
353
|
# Checks equality by comparing each attribute.
|
@@ -355,25 +355,25 @@ module PulpAnsibleClient
|
|
355
355
|
def ==(o)
|
356
356
|
return true if self.equal?(o)
|
357
357
|
self.class == o.class &&
|
358
|
-
|
359
|
-
sock_read_timeout == o.sock_read_timeout &&
|
360
|
-
ca_cert == o.ca_cert &&
|
358
|
+
headers == o.headers &&
|
361
359
|
client_cert == o.client_cert &&
|
362
|
-
|
363
|
-
pulp_created == o.pulp_created &&
|
360
|
+
url == o.url &&
|
364
361
|
max_retries == o.max_retries &&
|
362
|
+
ca_cert == o.ca_cert &&
|
365
363
|
hidden_fields == o.hidden_fields &&
|
366
|
-
|
367
|
-
|
368
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
369
|
-
pulp_href == o.pulp_href &&
|
370
|
-
pulp_last_updated == o.pulp_last_updated &&
|
371
|
-
headers == o.headers &&
|
372
|
-
url == o.url &&
|
373
|
-
download_concurrency == o.download_concurrency &&
|
374
|
-
tls_validation == o.tls_validation &&
|
364
|
+
connect_timeout == o.connect_timeout &&
|
365
|
+
pulp_created == o.pulp_created &&
|
375
366
|
name == o.name &&
|
367
|
+
download_concurrency == o.download_concurrency &&
|
368
|
+
pulp_last_updated == o.pulp_last_updated &&
|
369
|
+
pulp_href == o.pulp_href &&
|
376
370
|
pulp_labels == o.pulp_labels &&
|
371
|
+
sock_read_timeout == o.sock_read_timeout &&
|
372
|
+
proxy_url == o.proxy_url &&
|
373
|
+
tls_validation == o.tls_validation &&
|
374
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
375
|
+
rate_limit == o.rate_limit &&
|
376
|
+
total_timeout == o.total_timeout &&
|
377
377
|
metadata_only == o.metadata_only &&
|
378
378
|
git_ref == o.git_ref
|
379
379
|
end
|
@@ -387,7 +387,7 @@ module PulpAnsibleClient
|
|
387
387
|
# Calculates hash code according to all attributes.
|
388
388
|
# @return [Integer] Hash code
|
389
389
|
def hash
|
390
|
-
[
|
390
|
+
[headers, client_cert, url, max_retries, ca_cert, hidden_fields, connect_timeout, pulp_created, name, download_concurrency, pulp_last_updated, pulp_href, pulp_labels, sock_read_timeout, proxy_url, tls_validation, sock_connect_timeout, rate_limit, total_timeout, metadata_only, git_ref].hash
|
391
391
|
end
|
392
392
|
|
393
393
|
# Builds the object from hash
|
@@ -56,7 +56,7 @@ module PulpAnsibleClient
|
|
56
56
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
57
57
|
attr_accessor :max_retries
|
58
58
|
|
59
|
-
# The policy to use when downloading content.
|
59
|
+
# The policy to use when downloading content.
|
60
60
|
attr_accessor :policy
|
61
61
|
|
62
62
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
@@ -312,20 +312,20 @@ module PulpAnsibleClient
|
|
312
312
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
313
313
|
end
|
314
314
|
|
315
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
316
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.
|
315
|
+
if !@total_timeout.nil? && @total_timeout < 0
|
316
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
317
317
|
end
|
318
318
|
|
319
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
320
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.
|
319
|
+
if !@connect_timeout.nil? && @connect_timeout < 0
|
320
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
321
321
|
end
|
322
322
|
|
323
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
324
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
323
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
324
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
325
325
|
end
|
326
326
|
|
327
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
328
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
327
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
328
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
329
329
|
end
|
330
330
|
|
331
331
|
invalid_properties
|
@@ -347,10 +347,10 @@ module PulpAnsibleClient
|
|
347
347
|
return false if !@username.nil? && @username.to_s.length < 1
|
348
348
|
return false if !@password.nil? && @password.to_s.length < 1
|
349
349
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
350
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
351
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
352
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
353
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
350
|
+
return false if !@total_timeout.nil? && @total_timeout < 0
|
351
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
352
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
353
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
354
354
|
true
|
355
355
|
end
|
356
356
|
|
@@ -475,8 +475,8 @@ module PulpAnsibleClient
|
|
475
475
|
# Custom attribute writer method with validation
|
476
476
|
# @param [Object] total_timeout Value to be assigned
|
477
477
|
def total_timeout=(total_timeout)
|
478
|
-
if !total_timeout.nil? && total_timeout < 0
|
479
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.
|
478
|
+
if !total_timeout.nil? && total_timeout < 0
|
479
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
480
480
|
end
|
481
481
|
|
482
482
|
@total_timeout = total_timeout
|
@@ -485,8 +485,8 @@ module PulpAnsibleClient
|
|
485
485
|
# Custom attribute writer method with validation
|
486
486
|
# @param [Object] connect_timeout Value to be assigned
|
487
487
|
def connect_timeout=(connect_timeout)
|
488
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
489
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.
|
488
|
+
if !connect_timeout.nil? && connect_timeout < 0
|
489
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
490
490
|
end
|
491
491
|
|
492
492
|
@connect_timeout = connect_timeout
|
@@ -495,8 +495,8 @@ module PulpAnsibleClient
|
|
495
495
|
# Custom attribute writer method with validation
|
496
496
|
# @param [Object] sock_connect_timeout Value to be assigned
|
497
497
|
def sock_connect_timeout=(sock_connect_timeout)
|
498
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
499
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
498
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
499
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
500
500
|
end
|
501
501
|
|
502
502
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -505,8 +505,8 @@ module PulpAnsibleClient
|
|
505
505
|
# Custom attribute writer method with validation
|
506
506
|
# @param [Object] sock_read_timeout Value to be assigned
|
507
507
|
def sock_read_timeout=(sock_read_timeout)
|
508
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
509
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
508
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
509
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
510
510
|
end
|
511
511
|
|
512
512
|
@sock_read_timeout = sock_read_timeout
|