pulp_ansible_client 0.16.1 → 0.16.3
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 -5
- 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/AnsibleCollectionVersion.md +6 -6
- data/docs/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleCollectionsApi.md +6 -2
- data/docs/AnsibleGitRemote.md +27 -27
- data/docs/AnsibleGitRemoteResponse.md +22 -22
- data/docs/AnsibleRoleRemote.md +1 -1
- data/docs/AnsibleRoleRemoteResponse.md +1 -1
- data/docs/AnsibleRoleResponse.md +3 -3
- 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 +6 -2
- data/docs/ContentCollectionSignaturesApi.md +6 -2
- data/docs/ContentCollectionVersionsApi.md +12 -8
- data/docs/ContentRolesApi.md +6 -2
- data/docs/DistributionsAnsibleApi.md +10 -2
- data/docs/GalaxyCollectionResponse.md +4 -4
- data/docs/GalaxyCollectionVersionResponse.md +4 -4
- 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 +27 -27
- data/docs/PatchedansibleRoleRemote.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +6 -2
- data/docs/PulpAnsibleApiV3CollectionsApi.md +6 -2
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +6 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +6 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +6 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +6 -2
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +6 -2
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +6 -2
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +6 -2
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +6 -2
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +6 -2
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +6 -2
- data/docs/RemotesCollectionApi.md +6 -2
- data/docs/RemotesGitApi.md +6 -2
- data/docs/RemotesRoleApi.md +6 -2
- data/docs/RepositoriesAnsibleApi.md +22 -2
- data/docs/RepositoriesAnsibleVersionsApi.md +4 -2
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/UnpaginatedCollectionVersionResponse.md +4 -4
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +8 -2
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +8 -2
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +8 -2
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +17 -11
- data/lib/pulp_ansible_client/api/content_roles_api.rb +8 -2
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +14 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +8 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +8 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +8 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +8 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +8 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +8 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +8 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +8 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +8 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +8 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +8 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +8 -2
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +8 -2
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +8 -2
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +8 -2
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +32 -2
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +5 -2
- 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 +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +25 -25
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +231 -231
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +115 -115
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
- data/lib/pulp_ansible_client/models/collection_ref_response.rb +1 -0
- data/lib/pulp_ansible_client/models/collection_response.rb +6 -0
- data/lib/pulp_ansible_client/models/collection_version_list_response.rb +1 -0
- data/lib/pulp_ansible_client/models/collection_version_response.rb +4 -0
- data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +4 -0
- data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +4 -0
- data/lib/pulp_ansible_client/models/galaxy_role_response.rb +1 -0
- data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +1 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +1 -1
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +231 -231
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +2 -2
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +4 -0
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/ansible_collections_api_spec.rb +3 -1
- data/spec/api/content_collection_deprecations_api_spec.rb +3 -1
- data/spec/api/content_collection_signatures_api_spec.rb +3 -1
- data/spec/api/content_collection_versions_api_spec.rb +6 -4
- data/spec/api/content_roles_api_spec.rb +3 -1
- data/spec/api/distributions_ansible_api_spec.rb +5 -1
- data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +3 -1
- data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +3 -1
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +3 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +3 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +3 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +3 -1
- data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +3 -1
- data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +3 -1
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +3 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +3 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +3 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +3 -1
- data/spec/api/remotes_collection_api_spec.rb +3 -1
- data/spec/api/remotes_git_api_spec.rb +3 -1
- data/spec/api/remotes_role_api_spec.rb +3 -1
- data/spec/api/repositories_ansible_api_spec.rb +11 -1
- data/spec/api/repositories_ansible_versions_api_spec.rb +2 -1
- data/spec/models/ansible_collection_version_response_spec.rb +3 -3
- data/spec/models/ansible_collection_version_spec.rb +4 -4
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_response_spec.rb +3 -3
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +102 -102
@@ -15,8 +15,16 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Git Collection Remotes.
|
17
17
|
class AnsibleGitRemoteResponse
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# Headers for aiohttp.Clientsession
|
19
|
+
attr_accessor :headers
|
20
|
+
|
21
|
+
attr_accessor :pulp_labels
|
22
|
+
|
23
|
+
# Limits requests per second for each concurrent downloader
|
24
|
+
attr_accessor :rate_limit
|
25
|
+
|
26
|
+
# The proxy URL. Format: scheme://host:port
|
27
|
+
attr_accessor :proxy_url
|
20
28
|
|
21
29
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
22
30
|
attr_accessor :total_timeout
|
@@ -24,51 +32,43 @@ module PulpAnsibleClient
|
|
24
32
|
# The URL of an external content source.
|
25
33
|
attr_accessor :url
|
26
34
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
29
|
-
|
30
|
-
# Limits requests per second for each concurrent downloader
|
31
|
-
attr_accessor :rate_limit
|
35
|
+
# If True, TLS peer validation must be performed.
|
36
|
+
attr_accessor :tls_validation
|
32
37
|
|
33
38
|
# 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.
|
34
39
|
attr_accessor :sock_connect_timeout
|
35
40
|
|
36
|
-
#
|
37
|
-
attr_accessor :
|
41
|
+
# A PEM encoded client certificate used for authentication.
|
42
|
+
attr_accessor :client_cert
|
38
43
|
|
39
44
|
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
40
45
|
attr_accessor :connect_timeout
|
41
46
|
|
42
|
-
# Timestamp of creation.
|
43
|
-
attr_accessor :pulp_created
|
44
|
-
|
45
|
-
# If True, TLS peer validation must be performed.
|
46
|
-
attr_accessor :tls_validation
|
47
|
-
|
48
|
-
# The proxy URL. Format: scheme://host:port
|
49
|
-
attr_accessor :proxy_url
|
50
|
-
|
51
47
|
# 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.
|
52
48
|
attr_accessor :sock_read_timeout
|
53
49
|
|
54
|
-
#
|
55
|
-
attr_accessor :
|
50
|
+
# Timestamp of the most recent update of the remote.
|
51
|
+
attr_accessor :pulp_last_updated
|
56
52
|
|
57
53
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
58
54
|
attr_accessor :max_retries
|
59
55
|
|
56
|
+
# Timestamp of creation.
|
57
|
+
attr_accessor :pulp_created
|
58
|
+
|
60
59
|
attr_accessor :pulp_href
|
61
60
|
|
62
|
-
|
61
|
+
# A unique name for this remote.
|
62
|
+
attr_accessor :name
|
63
|
+
|
64
|
+
# List of hidden (write only) fields
|
65
|
+
attr_accessor :hidden_fields
|
63
66
|
|
64
67
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
65
68
|
attr_accessor :ca_cert
|
66
69
|
|
67
|
-
#
|
68
|
-
attr_accessor :
|
69
|
-
|
70
|
-
# A PEM encoded client certificate used for authentication.
|
71
|
-
attr_accessor :client_cert
|
70
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
71
|
+
attr_accessor :download_concurrency
|
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
|
-
:'
|
82
|
+
:'headers' => :'headers',
|
83
|
+
:'pulp_labels' => :'pulp_labels',
|
84
|
+
:'rate_limit' => :'rate_limit',
|
85
|
+
:'proxy_url' => :'proxy_url',
|
83
86
|
:'total_timeout' => :'total_timeout',
|
84
87
|
:'url' => :'url',
|
85
|
-
:'
|
86
|
-
:'rate_limit' => :'rate_limit',
|
88
|
+
:'tls_validation' => :'tls_validation',
|
87
89
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
88
|
-
:'
|
90
|
+
:'client_cert' => :'client_cert',
|
89
91
|
:'connect_timeout' => :'connect_timeout',
|
90
|
-
:'pulp_created' => :'pulp_created',
|
91
|
-
:'tls_validation' => :'tls_validation',
|
92
|
-
:'proxy_url' => :'proxy_url',
|
93
92
|
:'sock_read_timeout' => :'sock_read_timeout',
|
94
|
-
:'
|
93
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
95
94
|
:'max_retries' => :'max_retries',
|
95
|
+
:'pulp_created' => :'pulp_created',
|
96
96
|
:'pulp_href' => :'pulp_href',
|
97
|
-
:'pulp_labels' => :'pulp_labels',
|
98
|
-
:'ca_cert' => :'ca_cert',
|
99
97
|
:'name' => :'name',
|
100
|
-
:'
|
98
|
+
:'hidden_fields' => :'hidden_fields',
|
99
|
+
:'ca_cert' => :'ca_cert',
|
100
|
+
:'download_concurrency' => :'download_concurrency',
|
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
|
-
:'
|
109
|
+
:'headers' => :'Array<Object>',
|
110
|
+
:'pulp_labels' => :'Hash<String, String>',
|
111
|
+
:'rate_limit' => :'Integer',
|
112
|
+
:'proxy_url' => :'String',
|
110
113
|
:'total_timeout' => :'Float',
|
111
114
|
:'url' => :'String',
|
112
|
-
:'
|
113
|
-
:'rate_limit' => :'Integer',
|
115
|
+
:'tls_validation' => :'Boolean',
|
114
116
|
:'sock_connect_timeout' => :'Float',
|
115
|
-
:'
|
117
|
+
:'client_cert' => :'String',
|
116
118
|
:'connect_timeout' => :'Float',
|
117
|
-
:'pulp_created' => :'DateTime',
|
118
|
-
:'tls_validation' => :'Boolean',
|
119
|
-
:'proxy_url' => :'String',
|
120
119
|
:'sock_read_timeout' => :'Float',
|
121
|
-
:'
|
120
|
+
:'pulp_last_updated' => :'DateTime',
|
122
121
|
:'max_retries' => :'Integer',
|
122
|
+
:'pulp_created' => :'DateTime',
|
123
123
|
:'pulp_href' => :'String',
|
124
|
-
:'pulp_labels' => :'Hash<String, String>',
|
125
|
-
:'ca_cert' => :'String',
|
126
124
|
:'name' => :'String',
|
127
|
-
:'
|
125
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
|
126
|
+
:'ca_cert' => :'String',
|
127
|
+
:'download_concurrency' => :'Integer',
|
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
|
-
:'total_timeout',
|
137
136
|
:'rate_limit',
|
137
|
+
:'proxy_url',
|
138
|
+
:'total_timeout',
|
138
139
|
:'sock_connect_timeout',
|
139
|
-
:'
|
140
|
+
:'client_cert',
|
140
141
|
:'connect_timeout',
|
141
|
-
:'proxy_url',
|
142
142
|
:'sock_read_timeout',
|
143
143
|
:'max_retries',
|
144
144
|
:'ca_cert',
|
145
|
-
:'
|
145
|
+
:'download_concurrency',
|
146
146
|
])
|
147
147
|
end
|
148
148
|
|
@@ -161,12 +161,26 @@ module PulpAnsibleClient
|
|
161
161
|
h[k.to_sym] = v
|
162
162
|
}
|
163
163
|
|
164
|
-
if attributes.key?(:'
|
165
|
-
if (value = attributes[:'
|
166
|
-
self.
|
164
|
+
if attributes.key?(:'headers')
|
165
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
166
|
+
self.headers = value
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
if attributes.key?(:'pulp_labels')
|
171
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
172
|
+
self.pulp_labels = value
|
167
173
|
end
|
168
174
|
end
|
169
175
|
|
176
|
+
if attributes.key?(:'rate_limit')
|
177
|
+
self.rate_limit = attributes[:'rate_limit']
|
178
|
+
end
|
179
|
+
|
180
|
+
if attributes.key?(:'proxy_url')
|
181
|
+
self.proxy_url = attributes[:'proxy_url']
|
182
|
+
end
|
183
|
+
|
170
184
|
if attributes.key?(:'total_timeout')
|
171
185
|
self.total_timeout = attributes[:'total_timeout']
|
172
186
|
end
|
@@ -175,59 +189,49 @@ module PulpAnsibleClient
|
|
175
189
|
self.url = attributes[:'url']
|
176
190
|
end
|
177
191
|
|
178
|
-
if attributes.key?(:'
|
179
|
-
self.
|
180
|
-
end
|
181
|
-
|
182
|
-
if attributes.key?(:'rate_limit')
|
183
|
-
self.rate_limit = attributes[:'rate_limit']
|
192
|
+
if attributes.key?(:'tls_validation')
|
193
|
+
self.tls_validation = attributes[:'tls_validation']
|
184
194
|
end
|
185
195
|
|
186
196
|
if attributes.key?(:'sock_connect_timeout')
|
187
197
|
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
188
198
|
end
|
189
199
|
|
190
|
-
if attributes.key?(:'
|
191
|
-
self.
|
200
|
+
if attributes.key?(:'client_cert')
|
201
|
+
self.client_cert = attributes[:'client_cert']
|
192
202
|
end
|
193
203
|
|
194
204
|
if attributes.key?(:'connect_timeout')
|
195
205
|
self.connect_timeout = attributes[:'connect_timeout']
|
196
206
|
end
|
197
207
|
|
198
|
-
if attributes.key?(:'pulp_created')
|
199
|
-
self.pulp_created = attributes[:'pulp_created']
|
200
|
-
end
|
201
|
-
|
202
|
-
if attributes.key?(:'tls_validation')
|
203
|
-
self.tls_validation = attributes[:'tls_validation']
|
204
|
-
end
|
205
|
-
|
206
|
-
if attributes.key?(:'proxy_url')
|
207
|
-
self.proxy_url = attributes[:'proxy_url']
|
208
|
-
end
|
209
|
-
|
210
208
|
if attributes.key?(:'sock_read_timeout')
|
211
209
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
212
210
|
end
|
213
211
|
|
214
|
-
if attributes.key?(:'
|
215
|
-
|
216
|
-
self.headers = value
|
217
|
-
end
|
212
|
+
if attributes.key?(:'pulp_last_updated')
|
213
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
218
214
|
end
|
219
215
|
|
220
216
|
if attributes.key?(:'max_retries')
|
221
217
|
self.max_retries = attributes[:'max_retries']
|
222
218
|
end
|
223
219
|
|
220
|
+
if attributes.key?(:'pulp_created')
|
221
|
+
self.pulp_created = attributes[:'pulp_created']
|
222
|
+
end
|
223
|
+
|
224
224
|
if attributes.key?(:'pulp_href')
|
225
225
|
self.pulp_href = attributes[:'pulp_href']
|
226
226
|
end
|
227
227
|
|
228
|
-
if attributes.key?(:'
|
229
|
-
|
230
|
-
|
228
|
+
if attributes.key?(:'name')
|
229
|
+
self.name = attributes[:'name']
|
230
|
+
end
|
231
|
+
|
232
|
+
if attributes.key?(:'hidden_fields')
|
233
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
234
|
+
self.hidden_fields = value
|
231
235
|
end
|
232
236
|
end
|
233
237
|
|
@@ -235,12 +239,8 @@ module PulpAnsibleClient
|
|
235
239
|
self.ca_cert = attributes[:'ca_cert']
|
236
240
|
end
|
237
241
|
|
238
|
-
if attributes.key?(:'
|
239
|
-
self.
|
240
|
-
end
|
241
|
-
|
242
|
-
if attributes.key?(:'client_cert')
|
243
|
-
self.client_cert = attributes[:'client_cert']
|
242
|
+
if attributes.key?(:'download_concurrency')
|
243
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
244
244
|
end
|
245
245
|
|
246
246
|
if attributes.key?(:'metadata_only')
|
@@ -268,10 +268,6 @@ module PulpAnsibleClient
|
|
268
268
|
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
269
269
|
end
|
270
270
|
|
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
|
-
end
|
274
|
-
|
275
271
|
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
276
272
|
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
277
273
|
end
|
@@ -284,6 +280,10 @@ module PulpAnsibleClient
|
|
284
280
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
285
281
|
end
|
286
282
|
|
283
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
284
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
285
|
+
end
|
286
|
+
|
287
287
|
invalid_properties
|
288
288
|
end
|
289
289
|
|
@@ -293,10 +293,10 @@ module PulpAnsibleClient
|
|
293
293
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
294
294
|
return false if @url.nil?
|
295
295
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
296
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
297
296
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
298
297
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
299
298
|
return false if @name.nil?
|
299
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
300
300
|
true
|
301
301
|
end
|
302
302
|
|
@@ -320,16 +320,6 @@ module PulpAnsibleClient
|
|
320
320
|
@sock_connect_timeout = sock_connect_timeout
|
321
321
|
end
|
322
322
|
|
323
|
-
# Custom attribute writer method with validation
|
324
|
-
# @param [Object] download_concurrency Value to be assigned
|
325
|
-
def download_concurrency=(download_concurrency)
|
326
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
327
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
328
|
-
end
|
329
|
-
|
330
|
-
@download_concurrency = download_concurrency
|
331
|
-
end
|
332
|
-
|
333
323
|
# Custom attribute writer method with validation
|
334
324
|
# @param [Object] connect_timeout Value to be assigned
|
335
325
|
def connect_timeout=(connect_timeout)
|
@@ -350,30 +340,40 @@ module PulpAnsibleClient
|
|
350
340
|
@sock_read_timeout = sock_read_timeout
|
351
341
|
end
|
352
342
|
|
343
|
+
# Custom attribute writer method with validation
|
344
|
+
# @param [Object] download_concurrency Value to be assigned
|
345
|
+
def download_concurrency=(download_concurrency)
|
346
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
347
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
348
|
+
end
|
349
|
+
|
350
|
+
@download_concurrency = download_concurrency
|
351
|
+
end
|
352
|
+
|
353
353
|
# Checks equality by comparing each attribute.
|
354
354
|
# @param [Object] Object to be compared
|
355
355
|
def ==(o)
|
356
356
|
return true if self.equal?(o)
|
357
357
|
self.class == o.class &&
|
358
|
-
|
358
|
+
headers == o.headers &&
|
359
|
+
pulp_labels == o.pulp_labels &&
|
360
|
+
rate_limit == o.rate_limit &&
|
361
|
+
proxy_url == o.proxy_url &&
|
359
362
|
total_timeout == o.total_timeout &&
|
360
363
|
url == o.url &&
|
361
|
-
|
362
|
-
rate_limit == o.rate_limit &&
|
364
|
+
tls_validation == o.tls_validation &&
|
363
365
|
sock_connect_timeout == o.sock_connect_timeout &&
|
364
|
-
|
366
|
+
client_cert == o.client_cert &&
|
365
367
|
connect_timeout == o.connect_timeout &&
|
366
|
-
pulp_created == o.pulp_created &&
|
367
|
-
tls_validation == o.tls_validation &&
|
368
|
-
proxy_url == o.proxy_url &&
|
369
368
|
sock_read_timeout == o.sock_read_timeout &&
|
370
|
-
|
369
|
+
pulp_last_updated == o.pulp_last_updated &&
|
371
370
|
max_retries == o.max_retries &&
|
371
|
+
pulp_created == o.pulp_created &&
|
372
372
|
pulp_href == o.pulp_href &&
|
373
|
-
pulp_labels == o.pulp_labels &&
|
374
|
-
ca_cert == o.ca_cert &&
|
375
373
|
name == o.name &&
|
376
|
-
|
374
|
+
hidden_fields == o.hidden_fields &&
|
375
|
+
ca_cert == o.ca_cert &&
|
376
|
+
download_concurrency == o.download_concurrency &&
|
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, pulp_labels, rate_limit, proxy_url, total_timeout, url, tls_validation, sock_connect_timeout, client_cert, connect_timeout, sock_read_timeout, pulp_last_updated, max_retries, pulp_created, pulp_href, name, hidden_fields, ca_cert, download_concurrency, 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. * `immediate` - immediate * `When syncing, download all metadata and content now.` - When syncing, download all metadata and content now.
|
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.
|
@@ -49,7 +49,7 @@ module PulpAnsibleClient
|
|
49
49
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
50
50
|
attr_accessor :max_retries
|
51
51
|
|
52
|
-
# The policy to use when downloading content.
|
52
|
+
# The policy to use when downloading content. * `immediate` - immediate * `When syncing, download all metadata and content now.` - When syncing, download all metadata and content now.
|
53
53
|
attr_accessor :policy
|
54
54
|
|
55
55
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
@@ -15,14 +15,14 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Role versions.
|
17
17
|
class AnsibleRoleResponse
|
18
|
+
# Timestamp of creation.
|
19
|
+
attr_accessor :pulp_created
|
20
|
+
|
18
21
|
# Artifact file representing the physical content
|
19
22
|
attr_accessor :artifact
|
20
23
|
|
21
24
|
attr_accessor :pulp_href
|
22
25
|
|
23
|
-
# Timestamp of creation.
|
24
|
-
attr_accessor :pulp_created
|
25
|
-
|
26
26
|
attr_accessor :version
|
27
27
|
|
28
28
|
attr_accessor :name
|
@@ -32,9 +32,9 @@ module PulpAnsibleClient
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
+
:'pulp_created' => :'pulp_created',
|
35
36
|
:'artifact' => :'artifact',
|
36
37
|
:'pulp_href' => :'pulp_href',
|
37
|
-
:'pulp_created' => :'pulp_created',
|
38
38
|
:'version' => :'version',
|
39
39
|
:'name' => :'name',
|
40
40
|
:'namespace' => :'namespace'
|
@@ -44,9 +44,9 @@ module PulpAnsibleClient
|
|
44
44
|
# Attribute type mapping.
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
|
+
:'pulp_created' => :'DateTime',
|
47
48
|
:'artifact' => :'String',
|
48
49
|
:'pulp_href' => :'String',
|
49
|
-
:'pulp_created' => :'DateTime',
|
50
50
|
:'version' => :'String',
|
51
51
|
:'name' => :'String',
|
52
52
|
:'namespace' => :'String'
|
@@ -74,6 +74,10 @@ module PulpAnsibleClient
|
|
74
74
|
h[k.to_sym] = v
|
75
75
|
}
|
76
76
|
|
77
|
+
if attributes.key?(:'pulp_created')
|
78
|
+
self.pulp_created = attributes[:'pulp_created']
|
79
|
+
end
|
80
|
+
|
77
81
|
if attributes.key?(:'artifact')
|
78
82
|
self.artifact = attributes[:'artifact']
|
79
83
|
end
|
@@ -82,10 +86,6 @@ module PulpAnsibleClient
|
|
82
86
|
self.pulp_href = attributes[:'pulp_href']
|
83
87
|
end
|
84
88
|
|
85
|
-
if attributes.key?(:'pulp_created')
|
86
|
-
self.pulp_created = attributes[:'pulp_created']
|
87
|
-
end
|
88
|
-
|
89
89
|
if attributes.key?(:'version')
|
90
90
|
self.version = attributes[:'version']
|
91
91
|
end
|
@@ -137,9 +137,9 @@ module PulpAnsibleClient
|
|
137
137
|
def ==(o)
|
138
138
|
return true if self.equal?(o)
|
139
139
|
self.class == o.class &&
|
140
|
+
pulp_created == o.pulp_created &&
|
140
141
|
artifact == o.artifact &&
|
141
142
|
pulp_href == o.pulp_href &&
|
142
|
-
pulp_created == o.pulp_created &&
|
143
143
|
version == o.version &&
|
144
144
|
name == o.name &&
|
145
145
|
namespace == o.namespace
|
@@ -154,7 +154,7 @@ module PulpAnsibleClient
|
|
154
154
|
# Calculates hash code according to all attributes.
|
155
155
|
# @return [Integer] Hash code
|
156
156
|
def hash
|
157
|
-
[artifact, pulp_href,
|
157
|
+
[pulp_created, artifact, pulp_href, version, name, namespace].hash
|
158
158
|
end
|
159
159
|
|
160
160
|
# Builds the object from hash
|
@@ -15,20 +15,26 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for a Collection.
|
17
17
|
class CollectionResponse
|
18
|
+
# Get href.
|
18
19
|
attr_accessor :href
|
19
20
|
|
20
21
|
attr_accessor :namespace
|
21
22
|
|
22
23
|
attr_accessor :name
|
23
24
|
|
25
|
+
# Get deprecated.
|
24
26
|
attr_accessor :deprecated
|
25
27
|
|
28
|
+
# Get a link to a collection versions list.
|
26
29
|
attr_accessor :versions_url
|
27
30
|
|
31
|
+
# Get a highest version and its link.
|
28
32
|
attr_accessor :highest_version
|
29
33
|
|
34
|
+
# Get the timestamp of the lowest version CollectionVersion's created timestamp.
|
30
35
|
attr_accessor :created_at
|
31
36
|
|
37
|
+
# Get the timestamp of the highest version CollectionVersion's created timestamp.
|
32
38
|
attr_accessor :updated_at
|
33
39
|
|
34
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -17,6 +17,7 @@ module PulpAnsibleClient
|
|
17
17
|
class CollectionVersionResponse
|
18
18
|
attr_accessor :version
|
19
19
|
|
20
|
+
# Get href.
|
20
21
|
attr_accessor :href
|
21
22
|
|
22
23
|
attr_accessor :created_at
|
@@ -29,6 +30,7 @@ module PulpAnsibleClient
|
|
29
30
|
|
30
31
|
attr_accessor :collection
|
31
32
|
|
33
|
+
# Get artifact download URL.
|
32
34
|
attr_accessor :download_url
|
33
35
|
|
34
36
|
attr_accessor :name
|
@@ -39,8 +41,10 @@ module PulpAnsibleClient
|
|
39
41
|
|
40
42
|
attr_accessor :metadata
|
41
43
|
|
44
|
+
# Get the git URL.
|
42
45
|
attr_accessor :git_url
|
43
46
|
|
47
|
+
# Get the git commit sha.
|
44
48
|
attr_accessor :git_commit_sha
|
45
49
|
|
46
50
|
# A JSON field holding MANIFEST.json data.
|
@@ -19,16 +19,20 @@ module PulpAnsibleClient
|
|
19
19
|
|
20
20
|
attr_accessor :name
|
21
21
|
|
22
|
+
# Create a namespace dict.
|
22
23
|
attr_accessor :namespace
|
23
24
|
|
25
|
+
# Get href.
|
24
26
|
attr_accessor :href
|
25
27
|
|
28
|
+
# Get versions_url.
|
26
29
|
attr_accessor :versions_url
|
27
30
|
|
28
31
|
attr_accessor :created
|
29
32
|
|
30
33
|
attr_accessor :modified
|
31
34
|
|
35
|
+
# Get latest version.
|
32
36
|
attr_accessor :latest_version
|
33
37
|
|
34
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -17,12 +17,16 @@ module PulpAnsibleClient
|
|
17
17
|
class GalaxyCollectionVersionResponse
|
18
18
|
attr_accessor :version
|
19
19
|
|
20
|
+
# Get href.
|
20
21
|
attr_accessor :href
|
21
22
|
|
23
|
+
# Create a namespace dict.
|
22
24
|
attr_accessor :namespace
|
23
25
|
|
26
|
+
# Create a collection dict.
|
24
27
|
attr_accessor :collection
|
25
28
|
|
29
|
+
# Create an artifact dict.
|
26
30
|
attr_accessor :artifact
|
27
31
|
|
28
32
|
attr_accessor :metadata
|
@@ -23,7 +23,7 @@ module PulpAnsibleClient
|
|
23
23
|
# An optional description.
|
24
24
|
attr_accessor :description
|
25
25
|
|
26
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
26
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
27
27
|
attr_accessor :retain_repo_versions
|
28
28
|
|
29
29
|
# An optional remote to use by default when syncing.
|
@@ -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. * `immediate` - immediate * `When syncing, download all metadata and content now.` - When syncing, download all metadata and content now.
|
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.
|