pulp_ansible_client 0.2.0b5 → 0.2.0b6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +43 -23
- data/docs/{AnsibleDistribution.md → AnsibleAnsibleDistribution.md} +6 -6
- data/docs/AnsibleAnsibleRemote.md +39 -0
- data/docs/AnsibleAnsibleRepository.md +27 -0
- data/docs/AnsibleCollection.md +19 -0
- data/docs/AnsibleCollectionRemote.md +41 -0
- data/docs/AnsibleCollectionVersion.md +67 -0
- data/docs/AnsibleCollectionsApi.md +80 -18
- data/docs/AnsibleRole.md +27 -0
- data/docs/AnsibleTag.md +17 -0
- data/docs/Collection.md +31 -0
- data/docs/CollectionImportDetail.md +2 -2
- data/docs/CollectionMetadata.md +9 -9
- data/docs/{TagNested.md → CollectionNamespace.md} +3 -3
- data/docs/CollectionRef.md +21 -0
- data/docs/CollectionVersion.md +19 -59
- data/docs/ContentCollectionVersionsApi.md +25 -27
- data/docs/ContentRolesApi.md +17 -25
- data/docs/ContentSummary.md +21 -0
- data/docs/DistributionsAnsibleApi.md +16 -12
- data/docs/GalaxyCollection.md +2 -2
- data/docs/GalaxyCollectionVersion.md +4 -4
- data/docs/GalaxyRole.md +1 -1
- data/docs/GalaxyRoleVersion.md +1 -1
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse20010.md +23 -0
- data/docs/InlineResponse20011.md +23 -0
- data/docs/InlineResponse20012.md +23 -0
- data/docs/InlineResponse20013.md +23 -0
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/PulpAnsibleApiApi.md +3 -1
- data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +16 -9
- data/docs/PulpAnsibleGalaxyApiRolesApi.md +5 -3
- data/docs/PulpAnsibleGalaxyApiV1VersionsApi.md +5 -3
- data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +5 -3
- data/docs/PulpAnsibleGalaxyApiV3CollectionsApi.md +28 -10
- data/docs/PulpAnsibleTagsApi.md +5 -3
- data/docs/RemotesAnsibleApi.md +30 -81
- data/docs/RemotesCollectionApi.md +30 -81
- data/docs/RepositoriesAnsibleApi.md +409 -0
- data/docs/RepositoriesAnsibleVersionsApi.md +214 -0
- data/docs/RepositorySyncURL.md +2 -2
- data/docs/RepositoryVersion.md +25 -0
- data/docs/Tag.md +1 -1
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +103 -35
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +40 -57
- data/lib/pulp_ansible_client/api/content_roles_api.rb +28 -58
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +19 -13
- data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +4 -1
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +20 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_roles_api.rb +7 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v1_versions_api.rb +7 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +7 -4
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +59 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +7 -4
- data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +40 -102
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +40 -102
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +498 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +268 -0
- data/lib/pulp_ansible_client/api_client.rb +1 -1
- data/lib/pulp_ansible_client/api_error.rb +1 -1
- data/lib/pulp_ansible_client/configuration.rb +1 -1
- data/lib/pulp_ansible_client/models/{ansible_distribution.rb → ansible_ansible_distribution.rb} +31 -36
- data/lib/pulp_ansible_client/models/{ansible_remote.rb → ansible_ansible_remote.rb} +87 -147
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +294 -0
- data/lib/pulp_ansible_client/models/ansible_collection.rb +265 -0
- data/lib/pulp_ansible_client/models/{collection_remote.rb → ansible_collection_remote.rb} +88 -147
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +816 -0
- data/lib/pulp_ansible_client/models/{role.rb → ansible_role.rb} +31 -60
- data/lib/pulp_ansible_client/models/{tag_nested.rb → ansible_tag.rb} +15 -5
- data/lib/pulp_ansible_client/models/async_operation_response.rb +12 -2
- data/lib/pulp_ansible_client/models/collection.rb +314 -0
- data/lib/pulp_ansible_client/models/collection_import_detail.rb +14 -4
- data/lib/pulp_ansible_client/models/collection_metadata.rb +14 -4
- data/lib/pulp_ansible_client/models/collection_namespace.rb +230 -0
- data/lib/pulp_ansible_client/models/collection_ref.rb +272 -0
- data/lib/pulp_ansible_client/models/collection_version.rb +109 -536
- data/lib/pulp_ansible_client/models/content_summary.rb +246 -0
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +12 -2
- data/lib/pulp_ansible_client/models/galaxy_collection_version.rb +12 -2
- data/lib/pulp_ansible_client/models/galaxy_role.rb +12 -2
- data/lib/pulp_ansible_client/models/galaxy_role_version.rb +12 -2
- data/lib/pulp_ansible_client/models/inline_response200.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2001.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response20010.rb +247 -0
- data/lib/pulp_ansible_client/models/inline_response20011.rb +247 -0
- data/lib/pulp_ansible_client/models/inline_response20012.rb +247 -0
- data/lib/pulp_ansible_client/models/inline_response20013.rb +247 -0
- data/lib/pulp_ansible_client/models/inline_response2002.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2003.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2004.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2005.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2006.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2007.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2008.rb +15 -3
- data/lib/pulp_ansible_client/models/inline_response2009.rb +15 -3
- data/lib/pulp_ansible_client/models/repository_sync_url.rb +22 -12
- data/lib/pulp_ansible_client/models/repository_version.rb +244 -0
- data/lib/pulp_ansible_client/models/tag.rb +12 -2
- data/lib/pulp_ansible_client/version.rb +2 -2
- data/lib/pulp_ansible_client.rb +20 -6
- data/pulp_ansible_client.gemspec +1 -1
- data/spec/api/ansible_collections_api_spec.rb +25 -10
- data/spec/api/content_collection_versions_api_spec.rb +12 -12
- data/spec/api/content_roles_api_spec.rb +8 -11
- data/spec/api/distributions_ansible_api_spec.rb +5 -3
- data/spec/api/pulp_ansible_api_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +6 -3
- data/spec/api/pulp_ansible_galaxy_api_roles_api_spec.rb +3 -2
- data/spec/api/pulp_ansible_galaxy_api_v1_versions_api_spec.rb +3 -2
- data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +3 -2
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +12 -4
- data/spec/api/pulp_ansible_tags_api_spec.rb +3 -2
- data/spec/api/remotes_ansible_api_spec.rb +12 -22
- data/spec/api/remotes_collection_api_spec.rb +12 -22
- data/spec/api/repositories_ansible_api_spec.rb +128 -0
- data/spec/api/repositories_ansible_versions_api_spec.rb +91 -0
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/{ansible_distribution_spec.rb → ansible_ansible_distribution_spec.rb} +9 -9
- data/spec/models/{collection_remote_spec.rb → ansible_ansible_remote_spec.rb} +14 -38
- data/spec/models/ansible_ansible_repository_spec.rb +71 -0
- data/spec/models/{ansible_remote_spec.rb → ansible_collection_remote_spec.rb} +20 -32
- data/spec/models/ansible_collection_spec.rb +47 -0
- data/spec/models/ansible_collection_version_spec.rb +191 -0
- data/spec/models/ansible_role_spec.rb +71 -0
- data/spec/models/{tag_nested_spec.rb → ansible_tag_spec.rb} +7 -7
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/collection_import_detail_spec.rb +1 -1
- data/spec/models/collection_metadata_spec.rb +1 -1
- data/spec/models/collection_namespace_spec.rb +41 -0
- data/spec/models/collection_ref_spec.rb +53 -0
- data/spec/models/{role_spec.rb → collection_spec.rb} +15 -21
- data/spec/models/collection_version_spec.rb +14 -130
- data/spec/models/content_summary_spec.rb +53 -0
- data/spec/models/galaxy_collection_spec.rb +1 -1
- data/spec/models/galaxy_collection_version_spec.rb +1 -1
- data/spec/models/galaxy_role_spec.rb +1 -1
- data/spec/models/galaxy_role_version_spec.rb +1 -1
- data/spec/models/inline_response20010_spec.rb +59 -0
- data/spec/models/inline_response20011_spec.rb +59 -0
- data/spec/models/inline_response20012_spec.rb +59 -0
- data/spec/models/inline_response20013_spec.rb +59 -0
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response2006_spec.rb +1 -1
- data/spec/models/inline_response2007_spec.rb +1 -1
- data/spec/models/inline_response2008_spec.rb +1 -1
- data/spec/models/inline_response2009_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_spec.rb +65 -0
- data/spec/models/tag_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +78 -22
- data/docs/AnsibleRemote.md +0 -45
- data/docs/CollectionRemote.md +0 -47
- data/docs/Role.md +0 -33
@@ -6,20 +6,18 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.2.2-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
|
-
class
|
17
|
-
attr_accessor :
|
16
|
+
class AnsibleAnsibleRemote
|
17
|
+
attr_accessor :pulp_href
|
18
18
|
|
19
19
|
# Timestamp of creation.
|
20
|
-
attr_accessor :
|
21
|
-
|
22
|
-
attr_accessor :_type
|
20
|
+
attr_accessor :pulp_created
|
23
21
|
|
24
22
|
# A unique name for this remote.
|
25
23
|
attr_accessor :name
|
@@ -28,28 +26,22 @@ module PulpAnsibleClient
|
|
28
26
|
attr_accessor :url
|
29
27
|
|
30
28
|
# A string containing the PEM encoded CA certificate used to validate the server certificate presented by the remote server. All new line characters must be escaped. Returns SHA256 sum on GET.
|
31
|
-
attr_accessor :
|
29
|
+
attr_accessor :ca_cert
|
32
30
|
|
33
31
|
# A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped. Returns SHA256 sum on GET.
|
34
|
-
attr_accessor :
|
32
|
+
attr_accessor :client_cert
|
35
33
|
|
36
34
|
# A PEM encoded private key used for authentication. Returns SHA256 sum on GET.
|
37
|
-
attr_accessor :
|
35
|
+
attr_accessor :client_key
|
38
36
|
|
39
|
-
# If True,
|
40
|
-
attr_accessor :
|
37
|
+
# If True, TLS peer validation must be performed.
|
38
|
+
attr_accessor :tls_validation
|
41
39
|
|
42
40
|
# The proxy URL. Format: scheme://user:password@host:port
|
43
41
|
attr_accessor :proxy_url
|
44
42
|
|
45
|
-
# The username to be used for authentication when syncing.
|
46
|
-
attr_accessor :username
|
47
|
-
|
48
|
-
# The password to be used for authentication when syncing.
|
49
|
-
attr_accessor :password
|
50
|
-
|
51
43
|
# Timestamp of the most recent update of the remote.
|
52
|
-
attr_accessor :
|
44
|
+
attr_accessor :pulp_last_updated
|
53
45
|
|
54
46
|
# Total number of simultaneous connections.
|
55
47
|
attr_accessor :download_concurrency
|
@@ -82,19 +74,16 @@ module PulpAnsibleClient
|
|
82
74
|
# Attribute mapping from ruby-style variable name to JSON key.
|
83
75
|
def self.attribute_map
|
84
76
|
{
|
85
|
-
:'
|
86
|
-
:'
|
87
|
-
:'_type' => :'_type',
|
77
|
+
:'pulp_href' => :'pulp_href',
|
78
|
+
:'pulp_created' => :'pulp_created',
|
88
79
|
:'name' => :'name',
|
89
80
|
:'url' => :'url',
|
90
|
-
:'
|
91
|
-
:'
|
92
|
-
:'
|
93
|
-
:'
|
81
|
+
:'ca_cert' => :'ca_cert',
|
82
|
+
:'client_cert' => :'client_cert',
|
83
|
+
:'client_key' => :'client_key',
|
84
|
+
:'tls_validation' => :'tls_validation',
|
94
85
|
:'proxy_url' => :'proxy_url',
|
95
|
-
:'
|
96
|
-
:'password' => :'password',
|
97
|
-
:'_last_updated' => :'_last_updated',
|
86
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
98
87
|
:'download_concurrency' => :'download_concurrency',
|
99
88
|
:'policy' => :'policy'
|
100
89
|
}
|
@@ -103,49 +92,52 @@ module PulpAnsibleClient
|
|
103
92
|
# Attribute type mapping.
|
104
93
|
def self.openapi_types
|
105
94
|
{
|
106
|
-
:'
|
107
|
-
:'
|
108
|
-
:'_type' => :'String',
|
95
|
+
:'pulp_href' => :'String',
|
96
|
+
:'pulp_created' => :'DateTime',
|
109
97
|
:'name' => :'String',
|
110
98
|
:'url' => :'String',
|
111
|
-
:'
|
112
|
-
:'
|
113
|
-
:'
|
114
|
-
:'
|
99
|
+
:'ca_cert' => :'String',
|
100
|
+
:'client_cert' => :'String',
|
101
|
+
:'client_key' => :'String',
|
102
|
+
:'tls_validation' => :'Boolean',
|
115
103
|
:'proxy_url' => :'String',
|
116
|
-
:'
|
117
|
-
:'password' => :'String',
|
118
|
-
:'_last_updated' => :'DateTime',
|
104
|
+
:'pulp_last_updated' => :'DateTime',
|
119
105
|
:'download_concurrency' => :'Integer',
|
120
106
|
:'policy' => :'String'
|
121
107
|
}
|
122
108
|
end
|
123
109
|
|
110
|
+
# List of attributes with nullable: true
|
111
|
+
def self.openapi_nullable
|
112
|
+
Set.new([
|
113
|
+
:'ca_cert',
|
114
|
+
:'client_cert',
|
115
|
+
:'client_key',
|
116
|
+
:'proxy_url',
|
117
|
+
])
|
118
|
+
end
|
119
|
+
|
124
120
|
# Initializes the object
|
125
121
|
# @param [Hash] attributes Model attributes in the form of hash
|
126
122
|
def initialize(attributes = {})
|
127
123
|
if (!attributes.is_a?(Hash))
|
128
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::
|
124
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleAnsibleRemote` initialize method"
|
129
125
|
end
|
130
126
|
|
131
127
|
# check to see if the attribute exists and convert string to symbol for hash key
|
132
128
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
133
129
|
if (!self.class.attribute_map.key?(k.to_sym))
|
134
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::
|
130
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleAnsibleRemote`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
135
131
|
end
|
136
132
|
h[k.to_sym] = v
|
137
133
|
}
|
138
134
|
|
139
|
-
if attributes.key?(:'
|
140
|
-
self.
|
135
|
+
if attributes.key?(:'pulp_href')
|
136
|
+
self.pulp_href = attributes[:'pulp_href']
|
141
137
|
end
|
142
138
|
|
143
|
-
if attributes.key?(:'
|
144
|
-
self.
|
145
|
-
end
|
146
|
-
|
147
|
-
if attributes.key?(:'_type')
|
148
|
-
self._type = attributes[:'_type']
|
139
|
+
if attributes.key?(:'pulp_created')
|
140
|
+
self.pulp_created = attributes[:'pulp_created']
|
149
141
|
end
|
150
142
|
|
151
143
|
if attributes.key?(:'name')
|
@@ -156,36 +148,28 @@ module PulpAnsibleClient
|
|
156
148
|
self.url = attributes[:'url']
|
157
149
|
end
|
158
150
|
|
159
|
-
if attributes.key?(:'
|
160
|
-
self.
|
151
|
+
if attributes.key?(:'ca_cert')
|
152
|
+
self.ca_cert = attributes[:'ca_cert']
|
161
153
|
end
|
162
154
|
|
163
|
-
if attributes.key?(:'
|
164
|
-
self.
|
155
|
+
if attributes.key?(:'client_cert')
|
156
|
+
self.client_cert = attributes[:'client_cert']
|
165
157
|
end
|
166
158
|
|
167
|
-
if attributes.key?(:'
|
168
|
-
self.
|
159
|
+
if attributes.key?(:'client_key')
|
160
|
+
self.client_key = attributes[:'client_key']
|
169
161
|
end
|
170
162
|
|
171
|
-
if attributes.key?(:'
|
172
|
-
self.
|
163
|
+
if attributes.key?(:'tls_validation')
|
164
|
+
self.tls_validation = attributes[:'tls_validation']
|
173
165
|
end
|
174
166
|
|
175
167
|
if attributes.key?(:'proxy_url')
|
176
168
|
self.proxy_url = attributes[:'proxy_url']
|
177
169
|
end
|
178
170
|
|
179
|
-
if attributes.key?(:'
|
180
|
-
self.
|
181
|
-
end
|
182
|
-
|
183
|
-
if attributes.key?(:'password')
|
184
|
-
self.password = attributes[:'password']
|
185
|
-
end
|
186
|
-
|
187
|
-
if attributes.key?(:'_last_updated')
|
188
|
-
self._last_updated = attributes[:'_last_updated']
|
171
|
+
if attributes.key?(:'pulp_last_updated')
|
172
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
189
173
|
end
|
190
174
|
|
191
175
|
if attributes.key?(:'download_concurrency')
|
@@ -203,10 +187,6 @@ module PulpAnsibleClient
|
|
203
187
|
# @return Array for valid properties with the reasons
|
204
188
|
def list_invalid_properties
|
205
189
|
invalid_properties = Array.new
|
206
|
-
if !@_type.nil? && @_type.to_s.length < 1
|
207
|
-
invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
|
208
|
-
end
|
209
|
-
|
210
190
|
if @name.nil?
|
211
191
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
212
192
|
end
|
@@ -223,30 +203,22 @@ module PulpAnsibleClient
|
|
223
203
|
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
224
204
|
end
|
225
205
|
|
226
|
-
if !@
|
227
|
-
invalid_properties.push('invalid value for "
|
206
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
207
|
+
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
228
208
|
end
|
229
209
|
|
230
|
-
if !@
|
231
|
-
invalid_properties.push('invalid value for "
|
210
|
+
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
211
|
+
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
232
212
|
end
|
233
213
|
|
234
|
-
if !@
|
235
|
-
invalid_properties.push('invalid value for "
|
214
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
215
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
236
216
|
end
|
237
217
|
|
238
218
|
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
239
219
|
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
240
220
|
end
|
241
221
|
|
242
|
-
if !@username.nil? && @username.to_s.length < 1
|
243
|
-
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
244
|
-
end
|
245
|
-
|
246
|
-
if !@password.nil? && @password.to_s.length < 1
|
247
|
-
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
248
|
-
end
|
249
|
-
|
250
222
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
251
223
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
252
224
|
end
|
@@ -257,33 +229,20 @@ module PulpAnsibleClient
|
|
257
229
|
# Check to see if the all the properties in the model are valid
|
258
230
|
# @return true if the model is valid
|
259
231
|
def valid?
|
260
|
-
return false if !@_type.nil? && @_type.to_s.length < 1
|
261
232
|
return false if @name.nil?
|
262
233
|
return false if @name.to_s.length < 1
|
263
234
|
return false if @url.nil?
|
264
235
|
return false if @url.to_s.length < 1
|
265
|
-
return false if !@
|
266
|
-
return false if !@
|
267
|
-
return false if !@
|
236
|
+
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
237
|
+
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
238
|
+
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
268
239
|
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
269
|
-
return false if !@username.nil? && @username.to_s.length < 1
|
270
|
-
return false if !@password.nil? && @password.to_s.length < 1
|
271
240
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
272
241
|
policy_validator = EnumAttributeValidator.new('String', ["immediate", "When syncing, download all metadata and content now."])
|
273
242
|
return false unless policy_validator.valid?(@policy)
|
274
243
|
true
|
275
244
|
end
|
276
245
|
|
277
|
-
# Custom attribute writer method with validation
|
278
|
-
# @param [Object] _type Value to be assigned
|
279
|
-
def _type=(_type)
|
280
|
-
if !_type.nil? && _type.to_s.length < 1
|
281
|
-
fail ArgumentError, 'invalid value for "_type", the character length must be great than or equal to 1.'
|
282
|
-
end
|
283
|
-
|
284
|
-
@_type = _type
|
285
|
-
end
|
286
|
-
|
287
246
|
# Custom attribute writer method with validation
|
288
247
|
# @param [Object] name Value to be assigned
|
289
248
|
def name=(name)
|
@@ -313,33 +272,33 @@ module PulpAnsibleClient
|
|
313
272
|
end
|
314
273
|
|
315
274
|
# Custom attribute writer method with validation
|
316
|
-
# @param [Object]
|
317
|
-
def
|
318
|
-
if !
|
319
|
-
fail ArgumentError, 'invalid value for "
|
275
|
+
# @param [Object] ca_cert Value to be assigned
|
276
|
+
def ca_cert=(ca_cert)
|
277
|
+
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
278
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
320
279
|
end
|
321
280
|
|
322
|
-
@
|
281
|
+
@ca_cert = ca_cert
|
323
282
|
end
|
324
283
|
|
325
284
|
# Custom attribute writer method with validation
|
326
|
-
# @param [Object]
|
327
|
-
def
|
328
|
-
if !
|
329
|
-
fail ArgumentError, 'invalid value for "
|
285
|
+
# @param [Object] client_cert Value to be assigned
|
286
|
+
def client_cert=(client_cert)
|
287
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
288
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
330
289
|
end
|
331
290
|
|
332
|
-
@
|
291
|
+
@client_cert = client_cert
|
333
292
|
end
|
334
293
|
|
335
294
|
# Custom attribute writer method with validation
|
336
|
-
# @param [Object]
|
337
|
-
def
|
338
|
-
if !
|
339
|
-
fail ArgumentError, 'invalid value for "
|
295
|
+
# @param [Object] client_key Value to be assigned
|
296
|
+
def client_key=(client_key)
|
297
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
298
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
340
299
|
end
|
341
300
|
|
342
|
-
@
|
301
|
+
@client_key = client_key
|
343
302
|
end
|
344
303
|
|
345
304
|
# Custom attribute writer method with validation
|
@@ -352,26 +311,6 @@ module PulpAnsibleClient
|
|
352
311
|
@proxy_url = proxy_url
|
353
312
|
end
|
354
313
|
|
355
|
-
# Custom attribute writer method with validation
|
356
|
-
# @param [Object] username Value to be assigned
|
357
|
-
def username=(username)
|
358
|
-
if !username.nil? && username.to_s.length < 1
|
359
|
-
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
360
|
-
end
|
361
|
-
|
362
|
-
@username = username
|
363
|
-
end
|
364
|
-
|
365
|
-
# Custom attribute writer method with validation
|
366
|
-
# @param [Object] password Value to be assigned
|
367
|
-
def password=(password)
|
368
|
-
if !password.nil? && password.to_s.length < 1
|
369
|
-
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
370
|
-
end
|
371
|
-
|
372
|
-
@password = password
|
373
|
-
end
|
374
|
-
|
375
314
|
# Custom attribute writer method with validation
|
376
315
|
# @param [Object] download_concurrency Value to be assigned
|
377
316
|
def download_concurrency=(download_concurrency)
|
@@ -397,19 +336,16 @@ module PulpAnsibleClient
|
|
397
336
|
def ==(o)
|
398
337
|
return true if self.equal?(o)
|
399
338
|
self.class == o.class &&
|
400
|
-
|
401
|
-
|
402
|
-
_type == o._type &&
|
339
|
+
pulp_href == o.pulp_href &&
|
340
|
+
pulp_created == o.pulp_created &&
|
403
341
|
name == o.name &&
|
404
342
|
url == o.url &&
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
343
|
+
ca_cert == o.ca_cert &&
|
344
|
+
client_cert == o.client_cert &&
|
345
|
+
client_key == o.client_key &&
|
346
|
+
tls_validation == o.tls_validation &&
|
409
347
|
proxy_url == o.proxy_url &&
|
410
|
-
|
411
|
-
password == o.password &&
|
412
|
-
_last_updated == o._last_updated &&
|
348
|
+
pulp_last_updated == o.pulp_last_updated &&
|
413
349
|
download_concurrency == o.download_concurrency &&
|
414
350
|
policy == o.policy
|
415
351
|
end
|
@@ -423,7 +359,7 @@ module PulpAnsibleClient
|
|
423
359
|
# Calculates hash code according to all attributes.
|
424
360
|
# @return [Integer] Hash code
|
425
361
|
def hash
|
426
|
-
[
|
362
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, pulp_last_updated, download_concurrency, policy].hash
|
427
363
|
end
|
428
364
|
|
429
365
|
# Builds the object from hash
|
@@ -512,7 +448,11 @@ module PulpAnsibleClient
|
|
512
448
|
hash = {}
|
513
449
|
self.class.attribute_map.each_pair do |attr, param|
|
514
450
|
value = self.send(attr)
|
515
|
-
|
451
|
+
if value.nil?
|
452
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
453
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
454
|
+
end
|
455
|
+
|
516
456
|
hash[param] = _to_hash(value)
|
517
457
|
end
|
518
458
|
hash
|