pulp_ansible_client 0.15.3 → 0.15.4
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 +2 -2
- data/docs/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleCollectionsApi.md +6 -2
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +26 -26
- 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 +9 -5
- 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 +26 -26
- 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 +11 -5
- 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 +11 -11
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +230 -230
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +141 -141
- 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 +10 -10
- 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 +221 -221
- 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 +4 -2
- 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 +2 -2
- 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 +19 -19
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +99 -99
@@ -15,60 +15,60 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Git Collection Remotes.
|
17
17
|
class AnsibleGitRemoteResponse
|
18
|
-
|
19
|
-
|
20
|
-
# Headers for aiohttp.Clientsession
|
21
|
-
attr_accessor :headers
|
18
|
+
# The proxy URL. Format: scheme://host:port
|
19
|
+
attr_accessor :proxy_url
|
22
20
|
|
23
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.
|
24
22
|
attr_accessor :sock_read_timeout
|
25
23
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
24
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
25
|
+
attr_accessor :ca_cert
|
26
|
+
|
27
|
+
# A PEM encoded client certificate used for authentication.
|
28
|
+
attr_accessor :client_cert
|
29
|
+
|
30
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
31
|
+
attr_accessor :connect_timeout
|
28
32
|
|
29
33
|
# Timestamp of creation.
|
30
34
|
attr_accessor :pulp_created
|
31
35
|
|
32
|
-
#
|
33
|
-
attr_accessor :
|
34
|
-
|
35
|
-
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
36
|
-
attr_accessor :ca_cert
|
36
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
37
|
+
attr_accessor :max_retries
|
37
38
|
|
38
|
-
#
|
39
|
-
attr_accessor :
|
39
|
+
# List of hidden (write only) fields
|
40
|
+
attr_accessor :hidden_fields
|
40
41
|
|
41
|
-
#
|
42
|
-
attr_accessor :
|
42
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
43
|
+
attr_accessor :total_timeout
|
43
44
|
|
44
45
|
# Limits requests per second for each concurrent downloader
|
45
46
|
attr_accessor :rate_limit
|
46
47
|
|
47
|
-
# aiohttp.ClientTimeout.
|
48
|
-
attr_accessor :
|
48
|
+
# 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.
|
49
|
+
attr_accessor :sock_connect_timeout
|
49
50
|
|
50
|
-
|
51
|
-
attr_accessor :connect_timeout
|
51
|
+
attr_accessor :pulp_href
|
52
52
|
|
53
|
-
|
53
|
+
# Timestamp of the most recent update of the remote.
|
54
|
+
attr_accessor :pulp_last_updated
|
55
|
+
|
56
|
+
# Headers for aiohttp.Clientsession
|
57
|
+
attr_accessor :headers
|
58
|
+
|
59
|
+
# The URL of an external content source.
|
60
|
+
attr_accessor :url
|
54
61
|
|
55
62
|
# Total number of simultaneous connections. If not set then the default value will be used.
|
56
63
|
attr_accessor :download_concurrency
|
57
64
|
|
58
|
-
#
|
59
|
-
attr_accessor :
|
65
|
+
# If True, TLS peer validation must be performed.
|
66
|
+
attr_accessor :tls_validation
|
60
67
|
|
61
68
|
# A unique name for this remote.
|
62
69
|
attr_accessor :name
|
63
70
|
|
64
|
-
|
65
|
-
attr_accessor :pulp_last_updated
|
66
|
-
|
67
|
-
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
68
|
-
attr_accessor :max_retries
|
69
|
-
|
70
|
-
# 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.
|
71
|
-
attr_accessor :sock_connect_timeout
|
71
|
+
attr_accessor :pulp_labels
|
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
|
-
:'pulp_href' => :'pulp_href',
|
83
|
-
:'headers' => :'headers',
|
84
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
85
|
-
:'tls_validation' => :'tls_validation',
|
86
|
-
:'pulp_created' => :'pulp_created',
|
87
82
|
:'proxy_url' => :'proxy_url',
|
83
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
88
84
|
:'ca_cert' => :'ca_cert',
|
89
|
-
:'url' => :'url',
|
90
85
|
:'client_cert' => :'client_cert',
|
91
|
-
:'rate_limit' => :'rate_limit',
|
92
|
-
:'total_timeout' => :'total_timeout',
|
93
86
|
:'connect_timeout' => :'connect_timeout',
|
94
|
-
:'
|
95
|
-
:'download_concurrency' => :'download_concurrency',
|
96
|
-
:'hidden_fields' => :'hidden_fields',
|
97
|
-
:'name' => :'name',
|
98
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
87
|
+
:'pulp_created' => :'pulp_created',
|
99
88
|
:'max_retries' => :'max_retries',
|
89
|
+
:'hidden_fields' => :'hidden_fields',
|
90
|
+
:'total_timeout' => :'total_timeout',
|
91
|
+
:'rate_limit' => :'rate_limit',
|
100
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',
|
99
|
+
:'name' => :'name',
|
100
|
+
:'pulp_labels' => :'pulp_labels',
|
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
|
-
:'pulp_href' => :'String',
|
110
|
-
:'headers' => :'Array<Object>',
|
111
|
-
:'sock_read_timeout' => :'Float',
|
112
|
-
:'tls_validation' => :'Boolean',
|
113
|
-
:'pulp_created' => :'DateTime',
|
114
109
|
:'proxy_url' => :'String',
|
110
|
+
:'sock_read_timeout' => :'Float',
|
115
111
|
:'ca_cert' => :'String',
|
116
|
-
:'url' => :'String',
|
117
112
|
:'client_cert' => :'String',
|
118
|
-
:'rate_limit' => :'Integer',
|
119
|
-
:'total_timeout' => :'Float',
|
120
113
|
:'connect_timeout' => :'Float',
|
121
|
-
:'
|
122
|
-
:'download_concurrency' => :'Integer',
|
123
|
-
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
|
124
|
-
:'name' => :'String',
|
125
|
-
:'pulp_last_updated' => :'DateTime',
|
114
|
+
:'pulp_created' => :'DateTime',
|
126
115
|
:'max_retries' => :'Integer',
|
116
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
|
117
|
+
:'total_timeout' => :'Float',
|
118
|
+
:'rate_limit' => :'Integer',
|
127
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',
|
126
|
+
:'name' => :'String',
|
127
|
+
:'pulp_labels' => :'Hash<String, String>',
|
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
|
-
:'sock_read_timeout',
|
137
136
|
:'proxy_url',
|
137
|
+
:'sock_read_timeout',
|
138
138
|
:'ca_cert',
|
139
139
|
:'client_cert',
|
140
|
-
:'rate_limit',
|
141
|
-
:'total_timeout',
|
142
140
|
:'connect_timeout',
|
143
|
-
:'download_concurrency',
|
144
141
|
:'max_retries',
|
142
|
+
:'total_timeout',
|
143
|
+
:'rate_limit',
|
145
144
|
:'sock_connect_timeout',
|
145
|
+
:'download_concurrency',
|
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
|
-
self.
|
166
|
-
end
|
167
|
-
|
168
|
-
if attributes.key?(:'headers')
|
169
|
-
if (value = attributes[:'headers']).is_a?(Array)
|
170
|
-
self.headers = value
|
171
|
-
end
|
164
|
+
if attributes.key?(:'proxy_url')
|
165
|
+
self.proxy_url = attributes[:'proxy_url']
|
172
166
|
end
|
173
167
|
|
174
168
|
if attributes.key?(:'sock_read_timeout')
|
175
169
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
176
170
|
end
|
177
171
|
|
178
|
-
if attributes.key?(:'
|
179
|
-
self.
|
172
|
+
if attributes.key?(:'ca_cert')
|
173
|
+
self.ca_cert = attributes[:'ca_cert']
|
180
174
|
end
|
181
175
|
|
182
|
-
if attributes.key?(:'
|
183
|
-
self.
|
176
|
+
if attributes.key?(:'client_cert')
|
177
|
+
self.client_cert = attributes[:'client_cert']
|
184
178
|
end
|
185
179
|
|
186
|
-
if attributes.key?(:'
|
187
|
-
self.
|
180
|
+
if attributes.key?(:'connect_timeout')
|
181
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
188
182
|
end
|
189
183
|
|
190
|
-
if attributes.key?(:'
|
191
|
-
self.
|
184
|
+
if attributes.key?(:'pulp_created')
|
185
|
+
self.pulp_created = attributes[:'pulp_created']
|
192
186
|
end
|
193
187
|
|
194
|
-
if attributes.key?(:'
|
195
|
-
self.
|
188
|
+
if attributes.key?(:'max_retries')
|
189
|
+
self.max_retries = attributes[:'max_retries']
|
196
190
|
end
|
197
191
|
|
198
|
-
if attributes.key?(:'
|
199
|
-
|
192
|
+
if attributes.key?(:'hidden_fields')
|
193
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
194
|
+
self.hidden_fields = value
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
if attributes.key?(:'total_timeout')
|
199
|
+
self.total_timeout = attributes[:'total_timeout']
|
200
200
|
end
|
201
201
|
|
202
202
|
if attributes.key?(:'rate_limit')
|
203
203
|
self.rate_limit = attributes[:'rate_limit']
|
204
204
|
end
|
205
205
|
|
206
|
-
if attributes.key?(:'
|
207
|
-
self.
|
206
|
+
if attributes.key?(:'sock_connect_timeout')
|
207
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
208
208
|
end
|
209
209
|
|
210
|
-
if attributes.key?(:'
|
211
|
-
self.
|
210
|
+
if attributes.key?(:'pulp_href')
|
211
|
+
self.pulp_href = attributes[:'pulp_href']
|
212
212
|
end
|
213
213
|
|
214
|
-
if attributes.key?(:'
|
215
|
-
|
216
|
-
|
214
|
+
if attributes.key?(:'pulp_last_updated')
|
215
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
216
|
+
end
|
217
|
+
|
218
|
+
if attributes.key?(:'headers')
|
219
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
220
|
+
self.headers = value
|
217
221
|
end
|
218
222
|
end
|
219
223
|
|
224
|
+
if attributes.key?(:'url')
|
225
|
+
self.url = attributes[:'url']
|
226
|
+
end
|
227
|
+
|
220
228
|
if attributes.key?(:'download_concurrency')
|
221
229
|
self.download_concurrency = attributes[:'download_concurrency']
|
222
230
|
end
|
223
231
|
|
224
|
-
if attributes.key?(:'
|
225
|
-
|
226
|
-
self.hidden_fields = value
|
227
|
-
end
|
232
|
+
if attributes.key?(:'tls_validation')
|
233
|
+
self.tls_validation = attributes[:'tls_validation']
|
228
234
|
end
|
229
235
|
|
230
236
|
if attributes.key?(:'name')
|
231
237
|
self.name = attributes[:'name']
|
232
238
|
end
|
233
239
|
|
234
|
-
if attributes.key?(:'
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
if attributes.key?(:'max_retries')
|
239
|
-
self.max_retries = attributes[:'max_retries']
|
240
|
-
end
|
241
|
-
|
242
|
-
if attributes.key?(:'sock_connect_timeout')
|
243
|
-
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
240
|
+
if attributes.key?(:'pulp_labels')
|
241
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
242
|
+
self.pulp_labels = value
|
243
|
+
end
|
244
244
|
end
|
245
245
|
|
246
246
|
if attributes.key?(:'metadata_only')
|
@@ -260,16 +260,20 @@ module PulpAnsibleClient
|
|
260
260
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
261
261
|
end
|
262
262
|
|
263
|
-
if
|
264
|
-
invalid_properties.push('invalid value for "
|
263
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
264
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
265
265
|
end
|
266
266
|
|
267
267
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
268
268
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
269
269
|
end
|
270
270
|
|
271
|
-
if !@
|
272
|
-
invalid_properties.push('invalid value for "
|
271
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
272
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
273
|
+
end
|
274
|
+
|
275
|
+
if @url.nil?
|
276
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
273
277
|
end
|
274
278
|
|
275
279
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
@@ -280,10 +284,6 @@ module PulpAnsibleClient
|
|
280
284
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
281
285
|
end
|
282
286
|
|
283
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
284
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
285
|
-
end
|
286
|
-
|
287
287
|
invalid_properties
|
288
288
|
end
|
289
289
|
|
@@ -291,12 +291,12 @@ module PulpAnsibleClient
|
|
291
291
|
# @return true if the model is valid
|
292
292
|
def valid?
|
293
293
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
294
|
-
return false if @url.nil?
|
295
|
-
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
296
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
|
+
return false if @url.nil?
|
297
298
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
298
299
|
return false if @name.nil?
|
299
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
300
300
|
true
|
301
301
|
end
|
302
302
|
|
@@ -310,16 +310,6 @@ module PulpAnsibleClient
|
|
310
310
|
@sock_read_timeout = sock_read_timeout
|
311
311
|
end
|
312
312
|
|
313
|
-
# Custom attribute writer method with validation
|
314
|
-
# @param [Object] total_timeout Value to be assigned
|
315
|
-
def total_timeout=(total_timeout)
|
316
|
-
if !total_timeout.nil? && total_timeout < 0.0
|
317
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
318
|
-
end
|
319
|
-
|
320
|
-
@total_timeout = total_timeout
|
321
|
-
end
|
322
|
-
|
323
313
|
# Custom attribute writer method with validation
|
324
314
|
# @param [Object] connect_timeout Value to be assigned
|
325
315
|
def connect_timeout=(connect_timeout)
|
@@ -331,13 +321,13 @@ module PulpAnsibleClient
|
|
331
321
|
end
|
332
322
|
|
333
323
|
# Custom attribute writer method with validation
|
334
|
-
# @param [Object]
|
335
|
-
def
|
336
|
-
if !
|
337
|
-
fail ArgumentError, 'invalid value for "
|
324
|
+
# @param [Object] total_timeout Value to be assigned
|
325
|
+
def total_timeout=(total_timeout)
|
326
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
327
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
338
328
|
end
|
339
329
|
|
340
|
-
@
|
330
|
+
@total_timeout = total_timeout
|
341
331
|
end
|
342
332
|
|
343
333
|
# Custom attribute writer method with validation
|
@@ -350,30 +340,40 @@ module PulpAnsibleClient
|
|
350
340
|
@sock_connect_timeout = sock_connect_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
|
-
pulp_href == o.pulp_href &&
|
359
|
-
headers == o.headers &&
|
360
|
-
sock_read_timeout == o.sock_read_timeout &&
|
361
|
-
tls_validation == o.tls_validation &&
|
362
|
-
pulp_created == o.pulp_created &&
|
363
358
|
proxy_url == o.proxy_url &&
|
359
|
+
sock_read_timeout == o.sock_read_timeout &&
|
364
360
|
ca_cert == o.ca_cert &&
|
365
|
-
url == o.url &&
|
366
361
|
client_cert == o.client_cert &&
|
367
|
-
rate_limit == o.rate_limit &&
|
368
|
-
total_timeout == o.total_timeout &&
|
369
362
|
connect_timeout == o.connect_timeout &&
|
370
|
-
|
371
|
-
download_concurrency == o.download_concurrency &&
|
372
|
-
hidden_fields == o.hidden_fields &&
|
373
|
-
name == o.name &&
|
374
|
-
pulp_last_updated == o.pulp_last_updated &&
|
363
|
+
pulp_created == o.pulp_created &&
|
375
364
|
max_retries == o.max_retries &&
|
365
|
+
hidden_fields == o.hidden_fields &&
|
366
|
+
total_timeout == o.total_timeout &&
|
367
|
+
rate_limit == o.rate_limit &&
|
376
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 &&
|
375
|
+
name == o.name &&
|
376
|
+
pulp_labels == o.pulp_labels &&
|
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
|
+
[proxy_url, sock_read_timeout, ca_cert, client_cert, connect_timeout, pulp_created, max_retries, hidden_fields, total_timeout, rate_limit, sock_connect_timeout, pulp_href, pulp_last_updated, headers, url, download_concurrency, tls_validation, name, pulp_labels, 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,11 +15,11 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Role versions.
|
17
17
|
class AnsibleRoleResponse
|
18
|
-
attr_accessor :pulp_href
|
19
|
-
|
20
18
|
# Artifact file representing the physical content
|
21
19
|
attr_accessor :artifact
|
22
20
|
|
21
|
+
attr_accessor :pulp_href
|
22
|
+
|
23
23
|
# Timestamp of creation.
|
24
24
|
attr_accessor :pulp_created
|
25
25
|
|
@@ -32,8 +32,8 @@ module PulpAnsibleClient
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'pulp_href' => :'pulp_href',
|
36
35
|
:'artifact' => :'artifact',
|
36
|
+
:'pulp_href' => :'pulp_href',
|
37
37
|
:'pulp_created' => :'pulp_created',
|
38
38
|
:'version' => :'version',
|
39
39
|
:'name' => :'name',
|
@@ -44,8 +44,8 @@ module PulpAnsibleClient
|
|
44
44
|
# Attribute type mapping.
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
|
-
:'pulp_href' => :'String',
|
48
47
|
:'artifact' => :'String',
|
48
|
+
:'pulp_href' => :'String',
|
49
49
|
:'pulp_created' => :'DateTime',
|
50
50
|
:'version' => :'String',
|
51
51
|
:'name' => :'String',
|
@@ -74,14 +74,14 @@ module PulpAnsibleClient
|
|
74
74
|
h[k.to_sym] = v
|
75
75
|
}
|
76
76
|
|
77
|
-
if attributes.key?(:'pulp_href')
|
78
|
-
self.pulp_href = attributes[:'pulp_href']
|
79
|
-
end
|
80
|
-
|
81
77
|
if attributes.key?(:'artifact')
|
82
78
|
self.artifact = attributes[:'artifact']
|
83
79
|
end
|
84
80
|
|
81
|
+
if attributes.key?(:'pulp_href')
|
82
|
+
self.pulp_href = attributes[:'pulp_href']
|
83
|
+
end
|
84
|
+
|
85
85
|
if attributes.key?(:'pulp_created')
|
86
86
|
self.pulp_created = attributes[:'pulp_created']
|
87
87
|
end
|
@@ -137,8 +137,8 @@ module PulpAnsibleClient
|
|
137
137
|
def ==(o)
|
138
138
|
return true if self.equal?(o)
|
139
139
|
self.class == o.class &&
|
140
|
-
pulp_href == o.pulp_href &&
|
141
140
|
artifact == o.artifact &&
|
141
|
+
pulp_href == o.pulp_href &&
|
142
142
|
pulp_created == o.pulp_created &&
|
143
143
|
version == o.version &&
|
144
144
|
name == o.name &&
|
@@ -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
|
-
[
|
157
|
+
[artifact, pulp_href, pulp_created, 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
|