pulp_ansible_client 0.22.1 → 0.22.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 +4 -4
- data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +2 -0
- data/docs/AnsibleAnsibleRepositoryResponse.md +2 -0
- data/docs/AnsibleCollectionRemoteResponse.md +2 -0
- data/docs/AnsibleCollectionVersion.md +6 -4
- data/docs/AnsibleCollectionVersionResponse.md +12 -10
- data/docs/AnsibleCollectionVersionSignature.md +2 -0
- data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
- data/docs/AnsibleCollectionsApi.md +4 -2
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +24 -22
- data/docs/AnsibleRole.md +3 -3
- data/docs/AnsibleRoleRemoteResponse.md +2 -0
- data/docs/AnsibleRoleResponse.md +7 -5
- data/docs/CollectionImportDetailResponse.md +2 -2
- data/docs/CollectionSummaryResponse.md +2 -2
- data/docs/CollectionVersionDocsResponse.md +1 -1
- data/docs/CollectionVersionResponse.md +2 -2
- data/docs/CollectionVersionSearchList.md +0 -2
- data/docs/ContentCollectionDeprecationsApi.md +10 -8
- data/docs/ContentCollectionMarksApi.md +10 -8
- data/docs/ContentCollectionSignaturesApi.md +13 -9
- data/docs/ContentCollectionVersionsApi.md +14 -10
- data/docs/ContentNamespacesApi.md +10 -8
- data/docs/ContentRolesApi.md +10 -8
- data/docs/Copy.md +1 -1
- data/docs/DistributionsAnsibleApi.md +4 -2
- data/docs/PatchedansibleGitRemote.md +26 -26
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +4 -2
- data/docs/PulpAnsibleApiV3CollectionsApi.md +4 -2
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +8 -6
- data/docs/PulpAnsibleApiV3NamespacesApi.md +4 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +4 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +4 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +8 -6
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +4 -2
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +4 -2
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +4 -2
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +8 -6
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +4 -2
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +4 -2
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +4 -2
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +8 -6
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +4 -2
- data/docs/RemotesCollectionApi.md +4 -2
- data/docs/RemotesGitApi.md +4 -2
- data/docs/RemotesRoleApi.md +4 -2
- data/docs/RepositoriesAnsibleApi.md +8 -6
- data/docs/RepositoriesAnsibleVersionsApi.md +8 -6
- data/docs/RepositoryResponse.md +2 -0
- data/docs/RepositoryVersionResponse.md +2 -0
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +5 -2
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +11 -8
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +11 -8
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +18 -8
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +22 -12
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +11 -8
- data/lib/pulp_ansible_client/api/content_roles_api.rb +11 -8
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +5 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +5 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +5 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +9 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +5 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +5 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +5 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +9 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +5 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +5 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +5 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +9 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +5 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +5 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +5 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +9 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +5 -2
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +5 -2
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +5 -2
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +5 -2
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +9 -6
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +10 -7
- data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated_response.rb +11 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +11 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +11 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +40 -15
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +33 -23
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +26 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +11 -1
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +218 -218
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +146 -136
- data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +11 -1
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +28 -18
- data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
- data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
- data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
- data/lib/pulp_ansible_client/models/collection_version_search_list.rb +1 -16
- data/lib/pulp_ansible_client/models/copy.rb +1 -1
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +218 -218
- data/lib/pulp_ansible_client/models/repository.rb +1 -1
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +1 -1
- data/lib/pulp_ansible_client/models/repository_response.rb +12 -2
- data/lib/pulp_ansible_client/models/repository_version_response.rb +12 -2
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/ansible_collections_api_spec.rb +2 -1
- data/spec/api/content_collection_deprecations_api_spec.rb +5 -4
- data/spec/api/content_collection_marks_api_spec.rb +5 -4
- data/spec/api/content_collection_signatures_api_spec.rb +6 -4
- data/spec/api/content_collection_versions_api_spec.rb +7 -5
- data/spec/api/content_namespaces_api_spec.rb +5 -4
- data/spec/api/content_roles_api_spec.rb +5 -4
- data/spec/api/distributions_ansible_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +4 -3
- data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -3
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +4 -3
- data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +4 -3
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +2 -1
- data/spec/api/remotes_collection_api_spec.rb +2 -1
- data/spec/api/remotes_git_api_spec.rb +2 -1
- data/spec/api/remotes_role_api_spec.rb +2 -1
- data/spec/api/repositories_ansible_api_spec.rb +4 -3
- data/spec/api/repositories_ansible_versions_api_spec.rb +4 -3
- data/spec/models/ansible_ansible_collection_deprecated_response_spec.rb +6 -0
- data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
- data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
- data/spec/models/ansible_collection_version_response_spec.rb +10 -4
- data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
- data/spec/models/ansible_collection_version_signature_spec.rb +6 -0
- data/spec/models/ansible_collection_version_spec.rb +8 -2
- data/spec/models/ansible_git_remote_response_spec.rb +24 -18
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_remote_response_spec.rb +6 -0
- data/spec/models/ansible_role_response_spec.rb +10 -4
- data/spec/models/ansible_role_spec.rb +2 -2
- data/spec/models/collection_version_search_list_spec.rb +0 -6
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- data/spec/models/repository_response_spec.rb +6 -0
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +127 -127
@@ -15,40 +15,45 @@ 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.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
22
|
-
attr_accessor :connect_timeout
|
23
|
-
|
24
|
-
# 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.
|
25
|
-
attr_accessor :sock_connect_timeout
|
26
|
-
|
27
|
-
attr_accessor :pulp_href
|
18
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
19
|
+
attr_accessor :download_concurrency
|
28
20
|
|
29
21
|
# If True, TLS peer validation must be performed.
|
30
22
|
attr_accessor :tls_validation
|
31
23
|
|
32
|
-
|
33
|
-
|
24
|
+
attr_accessor :pulp_labels
|
25
|
+
|
26
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
27
|
+
attr_accessor :ca_cert
|
28
|
+
|
29
|
+
# Timestamp of the most recent update of the remote.
|
30
|
+
attr_accessor :pulp_last_updated
|
34
31
|
|
35
32
|
# 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.
|
36
33
|
attr_accessor :sock_read_timeout
|
37
34
|
|
35
|
+
# List of hidden (write only) fields
|
36
|
+
attr_accessor :hidden_fields
|
37
|
+
|
38
38
|
# A unique name for this remote.
|
39
39
|
attr_accessor :name
|
40
40
|
|
41
|
+
attr_accessor :pulp_href
|
42
|
+
|
43
|
+
# The proxy URL. Format: scheme://host:port
|
44
|
+
attr_accessor :proxy_url
|
45
|
+
|
46
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
47
|
+
attr_accessor :connect_timeout
|
48
|
+
|
41
49
|
# The URL of an external content source.
|
42
50
|
attr_accessor :url
|
43
51
|
|
44
52
|
# Limits requests per second for each concurrent downloader
|
45
53
|
attr_accessor :rate_limit
|
46
54
|
|
47
|
-
#
|
48
|
-
attr_accessor :
|
49
|
-
|
50
|
-
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
51
|
-
attr_accessor :ca_cert
|
55
|
+
# 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.
|
56
|
+
attr_accessor :sock_connect_timeout
|
52
57
|
|
53
58
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
54
59
|
attr_accessor :total_timeout
|
@@ -56,20 +61,18 @@ module PulpAnsibleClient
|
|
56
61
|
# Timestamp of creation.
|
57
62
|
attr_accessor :pulp_created
|
58
63
|
|
59
|
-
#
|
60
|
-
attr_accessor :
|
64
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
65
|
+
attr_accessor :max_retries
|
61
66
|
|
62
|
-
|
67
|
+
# A PEM encoded client certificate used for authentication.
|
68
|
+
attr_accessor :client_cert
|
69
|
+
|
70
|
+
# The Pulp Resource Name (PRN).
|
71
|
+
attr_accessor :prn
|
63
72
|
|
64
73
|
# Headers for aiohttp.Clientsession
|
65
74
|
attr_accessor :headers
|
66
75
|
|
67
|
-
# List of hidden (write only) fields
|
68
|
-
attr_accessor :hidden_fields
|
69
|
-
|
70
|
-
# Timestamp of the most recent update of the remote.
|
71
|
-
attr_accessor :pulp_last_updated
|
72
|
-
|
73
76
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
74
77
|
attr_accessor :metadata_only
|
75
78
|
|
@@ -79,25 +82,26 @@ module PulpAnsibleClient
|
|
79
82
|
# Attribute mapping from ruby-style variable name to JSON key.
|
80
83
|
def self.attribute_map
|
81
84
|
{
|
82
|
-
:'
|
83
|
-
:'connect_timeout' => :'connect_timeout',
|
84
|
-
:'sock_connect_timeout' => :'sock_connect_timeout',
|
85
|
-
:'pulp_href' => :'pulp_href',
|
85
|
+
:'download_concurrency' => :'download_concurrency',
|
86
86
|
:'tls_validation' => :'tls_validation',
|
87
|
-
:'
|
87
|
+
:'pulp_labels' => :'pulp_labels',
|
88
|
+
:'ca_cert' => :'ca_cert',
|
89
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
88
90
|
:'sock_read_timeout' => :'sock_read_timeout',
|
91
|
+
:'hidden_fields' => :'hidden_fields',
|
89
92
|
:'name' => :'name',
|
93
|
+
:'pulp_href' => :'pulp_href',
|
94
|
+
:'proxy_url' => :'proxy_url',
|
95
|
+
:'connect_timeout' => :'connect_timeout',
|
90
96
|
:'url' => :'url',
|
91
97
|
:'rate_limit' => :'rate_limit',
|
92
|
-
:'
|
93
|
-
:'ca_cert' => :'ca_cert',
|
98
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
94
99
|
:'total_timeout' => :'total_timeout',
|
95
100
|
:'pulp_created' => :'pulp_created',
|
96
|
-
:'
|
97
|
-
:'
|
101
|
+
:'max_retries' => :'max_retries',
|
102
|
+
:'client_cert' => :'client_cert',
|
103
|
+
:'prn' => :'prn',
|
98
104
|
:'headers' => :'headers',
|
99
|
-
:'hidden_fields' => :'hidden_fields',
|
100
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
101
105
|
:'metadata_only' => :'metadata_only',
|
102
106
|
:'git_ref' => :'git_ref'
|
103
107
|
}
|
@@ -106,25 +110,26 @@ module PulpAnsibleClient
|
|
106
110
|
# Attribute type mapping.
|
107
111
|
def self.openapi_types
|
108
112
|
{
|
109
|
-
:'
|
110
|
-
:'connect_timeout' => :'Float',
|
111
|
-
:'sock_connect_timeout' => :'Float',
|
112
|
-
:'pulp_href' => :'String',
|
113
|
+
:'download_concurrency' => :'Integer',
|
113
114
|
:'tls_validation' => :'Boolean',
|
114
|
-
:'
|
115
|
+
:'pulp_labels' => :'Hash<String, String>',
|
116
|
+
:'ca_cert' => :'String',
|
117
|
+
:'pulp_last_updated' => :'DateTime',
|
115
118
|
:'sock_read_timeout' => :'Float',
|
119
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
|
116
120
|
:'name' => :'String',
|
121
|
+
:'pulp_href' => :'String',
|
122
|
+
:'proxy_url' => :'String',
|
123
|
+
:'connect_timeout' => :'Float',
|
117
124
|
:'url' => :'String',
|
118
125
|
:'rate_limit' => :'Integer',
|
119
|
-
:'
|
120
|
-
:'ca_cert' => :'String',
|
126
|
+
:'sock_connect_timeout' => :'Float',
|
121
127
|
:'total_timeout' => :'Float',
|
122
128
|
:'pulp_created' => :'DateTime',
|
123
|
-
:'
|
124
|
-
:'
|
129
|
+
:'max_retries' => :'Integer',
|
130
|
+
:'client_cert' => :'String',
|
131
|
+
:'prn' => :'String',
|
125
132
|
:'headers' => :'Array<Object>',
|
126
|
-
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
|
127
|
-
:'pulp_last_updated' => :'DateTime',
|
128
133
|
:'metadata_only' => :'Boolean',
|
129
134
|
:'git_ref' => :'String'
|
130
135
|
}
|
@@ -133,16 +138,16 @@ module PulpAnsibleClient
|
|
133
138
|
# List of attributes with nullable: true
|
134
139
|
def self.openapi_nullable
|
135
140
|
Set.new([
|
136
|
-
:'
|
137
|
-
:'
|
138
|
-
:'sock_connect_timeout',
|
139
|
-
:'proxy_url',
|
141
|
+
:'download_concurrency',
|
142
|
+
:'ca_cert',
|
140
143
|
:'sock_read_timeout',
|
144
|
+
:'proxy_url',
|
145
|
+
:'connect_timeout',
|
141
146
|
:'rate_limit',
|
142
|
-
:'
|
143
|
-
:'ca_cert',
|
147
|
+
:'sock_connect_timeout',
|
144
148
|
:'total_timeout',
|
145
|
-
:'
|
149
|
+
:'max_retries',
|
150
|
+
:'client_cert',
|
146
151
|
])
|
147
152
|
end
|
148
153
|
|
@@ -161,38 +166,54 @@ module PulpAnsibleClient
|
|
161
166
|
h[k.to_sym] = v
|
162
167
|
}
|
163
168
|
|
164
|
-
if attributes.key?(:'
|
165
|
-
self.
|
166
|
-
end
|
167
|
-
|
168
|
-
if attributes.key?(:'connect_timeout')
|
169
|
-
self.connect_timeout = attributes[:'connect_timeout']
|
169
|
+
if attributes.key?(:'download_concurrency')
|
170
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
170
171
|
end
|
171
172
|
|
172
|
-
if attributes.key?(:'
|
173
|
-
self.
|
173
|
+
if attributes.key?(:'tls_validation')
|
174
|
+
self.tls_validation = attributes[:'tls_validation']
|
174
175
|
end
|
175
176
|
|
176
|
-
if attributes.key?(:'
|
177
|
-
|
177
|
+
if attributes.key?(:'pulp_labels')
|
178
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
179
|
+
self.pulp_labels = value
|
180
|
+
end
|
178
181
|
end
|
179
182
|
|
180
|
-
if attributes.key?(:'
|
181
|
-
self.
|
183
|
+
if attributes.key?(:'ca_cert')
|
184
|
+
self.ca_cert = attributes[:'ca_cert']
|
182
185
|
end
|
183
186
|
|
184
|
-
if attributes.key?(:'
|
185
|
-
self.
|
187
|
+
if attributes.key?(:'pulp_last_updated')
|
188
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
186
189
|
end
|
187
190
|
|
188
191
|
if attributes.key?(:'sock_read_timeout')
|
189
192
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
190
193
|
end
|
191
194
|
|
195
|
+
if attributes.key?(:'hidden_fields')
|
196
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
197
|
+
self.hidden_fields = value
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
192
201
|
if attributes.key?(:'name')
|
193
202
|
self.name = attributes[:'name']
|
194
203
|
end
|
195
204
|
|
205
|
+
if attributes.key?(:'pulp_href')
|
206
|
+
self.pulp_href = attributes[:'pulp_href']
|
207
|
+
end
|
208
|
+
|
209
|
+
if attributes.key?(:'proxy_url')
|
210
|
+
self.proxy_url = attributes[:'proxy_url']
|
211
|
+
end
|
212
|
+
|
213
|
+
if attributes.key?(:'connect_timeout')
|
214
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
215
|
+
end
|
216
|
+
|
196
217
|
if attributes.key?(:'url')
|
197
218
|
self.url = attributes[:'url']
|
198
219
|
end
|
@@ -201,12 +222,8 @@ module PulpAnsibleClient
|
|
201
222
|
self.rate_limit = attributes[:'rate_limit']
|
202
223
|
end
|
203
224
|
|
204
|
-
if attributes.key?(:'
|
205
|
-
self.
|
206
|
-
end
|
207
|
-
|
208
|
-
if attributes.key?(:'ca_cert')
|
209
|
-
self.ca_cert = attributes[:'ca_cert']
|
225
|
+
if attributes.key?(:'sock_connect_timeout')
|
226
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
210
227
|
end
|
211
228
|
|
212
229
|
if attributes.key?(:'total_timeout')
|
@@ -217,14 +234,16 @@ module PulpAnsibleClient
|
|
217
234
|
self.pulp_created = attributes[:'pulp_created']
|
218
235
|
end
|
219
236
|
|
220
|
-
if attributes.key?(:'
|
221
|
-
self.
|
237
|
+
if attributes.key?(:'max_retries')
|
238
|
+
self.max_retries = attributes[:'max_retries']
|
222
239
|
end
|
223
240
|
|
224
|
-
if attributes.key?(:'
|
225
|
-
|
226
|
-
|
227
|
-
|
241
|
+
if attributes.key?(:'client_cert')
|
242
|
+
self.client_cert = attributes[:'client_cert']
|
243
|
+
end
|
244
|
+
|
245
|
+
if attributes.key?(:'prn')
|
246
|
+
self.prn = attributes[:'prn']
|
228
247
|
end
|
229
248
|
|
230
249
|
if attributes.key?(:'headers')
|
@@ -233,16 +252,6 @@ module PulpAnsibleClient
|
|
233
252
|
end
|
234
253
|
end
|
235
254
|
|
236
|
-
if attributes.key?(:'hidden_fields')
|
237
|
-
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
238
|
-
self.hidden_fields = value
|
239
|
-
end
|
240
|
-
end
|
241
|
-
|
242
|
-
if attributes.key?(:'pulp_last_updated')
|
243
|
-
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
244
|
-
end
|
245
|
-
|
246
255
|
if attributes.key?(:'metadata_only')
|
247
256
|
self.metadata_only = attributes[:'metadata_only']
|
248
257
|
end
|
@@ -256,12 +265,8 @@ module PulpAnsibleClient
|
|
256
265
|
# @return Array for valid properties with the reasons
|
257
266
|
def list_invalid_properties
|
258
267
|
invalid_properties = Array.new
|
259
|
-
if !@
|
260
|
-
invalid_properties.push('invalid value for "
|
261
|
-
end
|
262
|
-
|
263
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
264
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
268
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
269
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
265
270
|
end
|
266
271
|
|
267
272
|
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
@@ -272,16 +277,20 @@ module PulpAnsibleClient
|
|
272
277
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
273
278
|
end
|
274
279
|
|
280
|
+
if !@connect_timeout.nil? && @connect_timeout < 0
|
281
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
282
|
+
end
|
283
|
+
|
275
284
|
if @url.nil?
|
276
285
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
277
286
|
end
|
278
287
|
|
279
|
-
if !@
|
280
|
-
invalid_properties.push('invalid value for "
|
288
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
289
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
281
290
|
end
|
282
291
|
|
283
|
-
if !@
|
284
|
-
invalid_properties.push('invalid value for "
|
292
|
+
if !@total_timeout.nil? && @total_timeout < 0
|
293
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
285
294
|
end
|
286
295
|
|
287
296
|
invalid_properties
|
@@ -290,16 +299,36 @@ module PulpAnsibleClient
|
|
290
299
|
# Check to see if the all the properties in the model are valid
|
291
300
|
# @return true if the model is valid
|
292
301
|
def valid?
|
293
|
-
return false if !@
|
294
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
302
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
295
303
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
296
304
|
return false if @name.nil?
|
305
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
297
306
|
return false if @url.nil?
|
307
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
298
308
|
return false if !@total_timeout.nil? && @total_timeout < 0
|
299
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
300
309
|
true
|
301
310
|
end
|
302
311
|
|
312
|
+
# Custom attribute writer method with validation
|
313
|
+
# @param [Object] download_concurrency Value to be assigned
|
314
|
+
def download_concurrency=(download_concurrency)
|
315
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
316
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
317
|
+
end
|
318
|
+
|
319
|
+
@download_concurrency = download_concurrency
|
320
|
+
end
|
321
|
+
|
322
|
+
# Custom attribute writer method with validation
|
323
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
324
|
+
def sock_read_timeout=(sock_read_timeout)
|
325
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
326
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
327
|
+
end
|
328
|
+
|
329
|
+
@sock_read_timeout = sock_read_timeout
|
330
|
+
end
|
331
|
+
|
303
332
|
# Custom attribute writer method with validation
|
304
333
|
# @param [Object] connect_timeout Value to be assigned
|
305
334
|
def connect_timeout=(connect_timeout)
|
@@ -320,16 +349,6 @@ module PulpAnsibleClient
|
|
320
349
|
@sock_connect_timeout = sock_connect_timeout
|
321
350
|
end
|
322
351
|
|
323
|
-
# Custom attribute writer method with validation
|
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
|
-
end
|
329
|
-
|
330
|
-
@sock_read_timeout = sock_read_timeout
|
331
|
-
end
|
332
|
-
|
333
352
|
# Custom attribute writer method with validation
|
334
353
|
# @param [Object] total_timeout Value to be assigned
|
335
354
|
def total_timeout=(total_timeout)
|
@@ -340,40 +359,31 @@ module PulpAnsibleClient
|
|
340
359
|
@total_timeout = total_timeout
|
341
360
|
end
|
342
361
|
|
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
362
|
# Checks equality by comparing each attribute.
|
354
363
|
# @param [Object] Object to be compared
|
355
364
|
def ==(o)
|
356
365
|
return true if self.equal?(o)
|
357
366
|
self.class == o.class &&
|
358
|
-
|
359
|
-
connect_timeout == o.connect_timeout &&
|
360
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
361
|
-
pulp_href == o.pulp_href &&
|
367
|
+
download_concurrency == o.download_concurrency &&
|
362
368
|
tls_validation == o.tls_validation &&
|
363
|
-
|
369
|
+
pulp_labels == o.pulp_labels &&
|
370
|
+
ca_cert == o.ca_cert &&
|
371
|
+
pulp_last_updated == o.pulp_last_updated &&
|
364
372
|
sock_read_timeout == o.sock_read_timeout &&
|
373
|
+
hidden_fields == o.hidden_fields &&
|
365
374
|
name == o.name &&
|
375
|
+
pulp_href == o.pulp_href &&
|
376
|
+
proxy_url == o.proxy_url &&
|
377
|
+
connect_timeout == o.connect_timeout &&
|
366
378
|
url == o.url &&
|
367
379
|
rate_limit == o.rate_limit &&
|
368
|
-
|
369
|
-
ca_cert == o.ca_cert &&
|
380
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
370
381
|
total_timeout == o.total_timeout &&
|
371
382
|
pulp_created == o.pulp_created &&
|
372
|
-
|
373
|
-
|
383
|
+
max_retries == o.max_retries &&
|
384
|
+
client_cert == o.client_cert &&
|
385
|
+
prn == o.prn &&
|
374
386
|
headers == o.headers &&
|
375
|
-
hidden_fields == o.hidden_fields &&
|
376
|
-
pulp_last_updated == o.pulp_last_updated &&
|
377
387
|
metadata_only == o.metadata_only &&
|
378
388
|
git_ref == o.git_ref
|
379
389
|
end
|
@@ -387,7 +397,7 @@ module PulpAnsibleClient
|
|
387
397
|
# Calculates hash code according to all attributes.
|
388
398
|
# @return [Integer] Hash code
|
389
399
|
def hash
|
390
|
-
[
|
400
|
+
[download_concurrency, tls_validation, pulp_labels, ca_cert, pulp_last_updated, sock_read_timeout, hidden_fields, name, pulp_href, proxy_url, connect_timeout, url, rate_limit, sock_connect_timeout, total_timeout, pulp_created, max_retries, client_cert, prn, headers, metadata_only, git_ref].hash
|
391
401
|
end
|
392
402
|
|
393
403
|
# Builds the object from hash
|
@@ -15,12 +15,12 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Role versions.
|
17
17
|
class AnsibleRole
|
18
|
-
# A URI of a repository the new content unit should be associated with.
|
19
|
-
attr_accessor :repository
|
20
|
-
|
21
18
|
# Artifact file representing the physical content
|
22
19
|
attr_accessor :artifact
|
23
20
|
|
21
|
+
# A URI of a repository the new content unit should be associated with.
|
22
|
+
attr_accessor :repository
|
23
|
+
|
24
24
|
attr_accessor :version
|
25
25
|
|
26
26
|
attr_accessor :name
|
@@ -30,8 +30,8 @@ module PulpAnsibleClient
|
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
33
|
-
:'repository' => :'repository',
|
34
33
|
:'artifact' => :'artifact',
|
34
|
+
:'repository' => :'repository',
|
35
35
|
:'version' => :'version',
|
36
36
|
:'name' => :'name',
|
37
37
|
:'namespace' => :'namespace'
|
@@ -41,8 +41,8 @@ module PulpAnsibleClient
|
|
41
41
|
# Attribute type mapping.
|
42
42
|
def self.openapi_types
|
43
43
|
{
|
44
|
-
:'repository' => :'String',
|
45
44
|
:'artifact' => :'String',
|
45
|
+
:'repository' => :'String',
|
46
46
|
:'version' => :'String',
|
47
47
|
:'name' => :'String',
|
48
48
|
:'namespace' => :'String'
|
@@ -70,14 +70,14 @@ module PulpAnsibleClient
|
|
70
70
|
h[k.to_sym] = v
|
71
71
|
}
|
72
72
|
|
73
|
-
if attributes.key?(:'repository')
|
74
|
-
self.repository = attributes[:'repository']
|
75
|
-
end
|
76
|
-
|
77
73
|
if attributes.key?(:'artifact')
|
78
74
|
self.artifact = attributes[:'artifact']
|
79
75
|
end
|
80
76
|
|
77
|
+
if attributes.key?(:'repository')
|
78
|
+
self.repository = attributes[:'repository']
|
79
|
+
end
|
80
|
+
|
81
81
|
if attributes.key?(:'version')
|
82
82
|
self.version = attributes[:'version']
|
83
83
|
end
|
@@ -186,8 +186,8 @@ module PulpAnsibleClient
|
|
186
186
|
def ==(o)
|
187
187
|
return true if self.equal?(o)
|
188
188
|
self.class == o.class &&
|
189
|
-
repository == o.repository &&
|
190
189
|
artifact == o.artifact &&
|
190
|
+
repository == o.repository &&
|
191
191
|
version == o.version &&
|
192
192
|
name == o.name &&
|
193
193
|
namespace == o.namespace
|
@@ -202,7 +202,7 @@ module PulpAnsibleClient
|
|
202
202
|
# Calculates hash code according to all attributes.
|
203
203
|
# @return [Integer] Hash code
|
204
204
|
def hash
|
205
|
-
[
|
205
|
+
[artifact, repository, version, name, namespace].hash
|
206
206
|
end
|
207
207
|
|
208
208
|
# Builds the object from hash
|
@@ -17,6 +17,9 @@ module PulpAnsibleClient
|
|
17
17
|
class AnsibleRoleRemoteResponse
|
18
18
|
attr_accessor :pulp_href
|
19
19
|
|
20
|
+
# The Pulp Resource Name (PRN).
|
21
|
+
attr_accessor :prn
|
22
|
+
|
20
23
|
# Timestamp of creation.
|
21
24
|
attr_accessor :pulp_created
|
22
25
|
|
@@ -77,6 +80,7 @@ module PulpAnsibleClient
|
|
77
80
|
def self.attribute_map
|
78
81
|
{
|
79
82
|
:'pulp_href' => :'pulp_href',
|
83
|
+
:'prn' => :'prn',
|
80
84
|
:'pulp_created' => :'pulp_created',
|
81
85
|
:'pulp_last_updated' => :'pulp_last_updated',
|
82
86
|
:'name' => :'name',
|
@@ -103,6 +107,7 @@ module PulpAnsibleClient
|
|
103
107
|
def self.openapi_types
|
104
108
|
{
|
105
109
|
:'pulp_href' => :'String',
|
110
|
+
:'prn' => :'String',
|
106
111
|
:'pulp_created' => :'DateTime',
|
107
112
|
:'pulp_last_updated' => :'DateTime',
|
108
113
|
:'name' => :'String',
|
@@ -160,6 +165,10 @@ module PulpAnsibleClient
|
|
160
165
|
self.pulp_href = attributes[:'pulp_href']
|
161
166
|
end
|
162
167
|
|
168
|
+
if attributes.key?(:'prn')
|
169
|
+
self.prn = attributes[:'prn']
|
170
|
+
end
|
171
|
+
|
163
172
|
if attributes.key?(:'pulp_created')
|
164
173
|
self.pulp_created = attributes[:'pulp_created']
|
165
174
|
end
|
@@ -347,6 +356,7 @@ module PulpAnsibleClient
|
|
347
356
|
return true if self.equal?(o)
|
348
357
|
self.class == o.class &&
|
349
358
|
pulp_href == o.pulp_href &&
|
359
|
+
prn == o.prn &&
|
350
360
|
pulp_created == o.pulp_created &&
|
351
361
|
pulp_last_updated == o.pulp_last_updated &&
|
352
362
|
name == o.name &&
|
@@ -377,7 +387,7 @@ module PulpAnsibleClient
|
|
377
387
|
# Calculates hash code according to all attributes.
|
378
388
|
# @return [Integer] Hash code
|
379
389
|
def hash
|
380
|
-
[pulp_href, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields].hash
|
390
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields].hash
|
381
391
|
end
|
382
392
|
|
383
393
|
# Builds the object from hash
|