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.
Files changed (170) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +43 -23
  3. data/docs/{AnsibleDistribution.md → AnsibleAnsibleDistribution.md} +6 -6
  4. data/docs/AnsibleAnsibleRemote.md +39 -0
  5. data/docs/AnsibleAnsibleRepository.md +27 -0
  6. data/docs/AnsibleCollection.md +19 -0
  7. data/docs/AnsibleCollectionRemote.md +41 -0
  8. data/docs/AnsibleCollectionVersion.md +67 -0
  9. data/docs/AnsibleCollectionsApi.md +80 -18
  10. data/docs/AnsibleRole.md +27 -0
  11. data/docs/AnsibleTag.md +17 -0
  12. data/docs/Collection.md +31 -0
  13. data/docs/CollectionImportDetail.md +2 -2
  14. data/docs/CollectionMetadata.md +9 -9
  15. data/docs/{TagNested.md → CollectionNamespace.md} +3 -3
  16. data/docs/CollectionRef.md +21 -0
  17. data/docs/CollectionVersion.md +19 -59
  18. data/docs/ContentCollectionVersionsApi.md +25 -27
  19. data/docs/ContentRolesApi.md +17 -25
  20. data/docs/ContentSummary.md +21 -0
  21. data/docs/DistributionsAnsibleApi.md +16 -12
  22. data/docs/GalaxyCollection.md +2 -2
  23. data/docs/GalaxyCollectionVersion.md +4 -4
  24. data/docs/GalaxyRole.md +1 -1
  25. data/docs/GalaxyRoleVersion.md +1 -1
  26. data/docs/InlineResponse200.md +1 -1
  27. data/docs/InlineResponse2001.md +1 -1
  28. data/docs/InlineResponse20010.md +23 -0
  29. data/docs/InlineResponse20011.md +23 -0
  30. data/docs/InlineResponse20012.md +23 -0
  31. data/docs/InlineResponse20013.md +23 -0
  32. data/docs/InlineResponse2002.md +1 -1
  33. data/docs/InlineResponse2003.md +1 -1
  34. data/docs/InlineResponse2004.md +1 -1
  35. data/docs/InlineResponse2005.md +1 -1
  36. data/docs/InlineResponse2006.md +1 -1
  37. data/docs/InlineResponse2007.md +1 -1
  38. data/docs/InlineResponse2008.md +1 -1
  39. data/docs/InlineResponse2009.md +1 -1
  40. data/docs/PulpAnsibleApiApi.md +3 -1
  41. data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +16 -9
  42. data/docs/PulpAnsibleGalaxyApiRolesApi.md +5 -3
  43. data/docs/PulpAnsibleGalaxyApiV1VersionsApi.md +5 -3
  44. data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +5 -3
  45. data/docs/PulpAnsibleGalaxyApiV3CollectionsApi.md +28 -10
  46. data/docs/PulpAnsibleTagsApi.md +5 -3
  47. data/docs/RemotesAnsibleApi.md +30 -81
  48. data/docs/RemotesCollectionApi.md +30 -81
  49. data/docs/RepositoriesAnsibleApi.md +409 -0
  50. data/docs/RepositoriesAnsibleVersionsApi.md +214 -0
  51. data/docs/RepositorySyncURL.md +2 -2
  52. data/docs/RepositoryVersion.md +25 -0
  53. data/docs/Tag.md +1 -1
  54. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +103 -35
  55. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +40 -57
  56. data/lib/pulp_ansible_client/api/content_roles_api.rb +28 -58
  57. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +19 -13
  58. data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +4 -1
  59. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +20 -9
  60. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_roles_api.rb +7 -4
  61. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v1_versions_api.rb +7 -4
  62. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +7 -4
  63. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +59 -12
  64. data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +7 -4
  65. data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +40 -102
  66. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +40 -102
  67. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +498 -0
  68. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +268 -0
  69. data/lib/pulp_ansible_client/api_client.rb +1 -1
  70. data/lib/pulp_ansible_client/api_error.rb +1 -1
  71. data/lib/pulp_ansible_client/configuration.rb +1 -1
  72. data/lib/pulp_ansible_client/models/{ansible_distribution.rb → ansible_ansible_distribution.rb} +31 -36
  73. data/lib/pulp_ansible_client/models/{ansible_remote.rb → ansible_ansible_remote.rb} +87 -147
  74. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +294 -0
  75. data/lib/pulp_ansible_client/models/ansible_collection.rb +265 -0
  76. data/lib/pulp_ansible_client/models/{collection_remote.rb → ansible_collection_remote.rb} +88 -147
  77. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +816 -0
  78. data/lib/pulp_ansible_client/models/{role.rb → ansible_role.rb} +31 -60
  79. data/lib/pulp_ansible_client/models/{tag_nested.rb → ansible_tag.rb} +15 -5
  80. data/lib/pulp_ansible_client/models/async_operation_response.rb +12 -2
  81. data/lib/pulp_ansible_client/models/collection.rb +314 -0
  82. data/lib/pulp_ansible_client/models/collection_import_detail.rb +14 -4
  83. data/lib/pulp_ansible_client/models/collection_metadata.rb +14 -4
  84. data/lib/pulp_ansible_client/models/collection_namespace.rb +230 -0
  85. data/lib/pulp_ansible_client/models/collection_ref.rb +272 -0
  86. data/lib/pulp_ansible_client/models/collection_version.rb +109 -536
  87. data/lib/pulp_ansible_client/models/content_summary.rb +246 -0
  88. data/lib/pulp_ansible_client/models/galaxy_collection.rb +12 -2
  89. data/lib/pulp_ansible_client/models/galaxy_collection_version.rb +12 -2
  90. data/lib/pulp_ansible_client/models/galaxy_role.rb +12 -2
  91. data/lib/pulp_ansible_client/models/galaxy_role_version.rb +12 -2
  92. data/lib/pulp_ansible_client/models/inline_response200.rb +15 -3
  93. data/lib/pulp_ansible_client/models/inline_response2001.rb +15 -3
  94. data/lib/pulp_ansible_client/models/inline_response20010.rb +247 -0
  95. data/lib/pulp_ansible_client/models/inline_response20011.rb +247 -0
  96. data/lib/pulp_ansible_client/models/inline_response20012.rb +247 -0
  97. data/lib/pulp_ansible_client/models/inline_response20013.rb +247 -0
  98. data/lib/pulp_ansible_client/models/inline_response2002.rb +15 -3
  99. data/lib/pulp_ansible_client/models/inline_response2003.rb +15 -3
  100. data/lib/pulp_ansible_client/models/inline_response2004.rb +15 -3
  101. data/lib/pulp_ansible_client/models/inline_response2005.rb +15 -3
  102. data/lib/pulp_ansible_client/models/inline_response2006.rb +15 -3
  103. data/lib/pulp_ansible_client/models/inline_response2007.rb +15 -3
  104. data/lib/pulp_ansible_client/models/inline_response2008.rb +15 -3
  105. data/lib/pulp_ansible_client/models/inline_response2009.rb +15 -3
  106. data/lib/pulp_ansible_client/models/repository_sync_url.rb +22 -12
  107. data/lib/pulp_ansible_client/models/repository_version.rb +244 -0
  108. data/lib/pulp_ansible_client/models/tag.rb +12 -2
  109. data/lib/pulp_ansible_client/version.rb +2 -2
  110. data/lib/pulp_ansible_client.rb +20 -6
  111. data/pulp_ansible_client.gemspec +1 -1
  112. data/spec/api/ansible_collections_api_spec.rb +25 -10
  113. data/spec/api/content_collection_versions_api_spec.rb +12 -12
  114. data/spec/api/content_roles_api_spec.rb +8 -11
  115. data/spec/api/distributions_ansible_api_spec.rb +5 -3
  116. data/spec/api/pulp_ansible_api_api_spec.rb +2 -1
  117. data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +6 -3
  118. data/spec/api/pulp_ansible_galaxy_api_roles_api_spec.rb +3 -2
  119. data/spec/api/pulp_ansible_galaxy_api_v1_versions_api_spec.rb +3 -2
  120. data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +3 -2
  121. data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +12 -4
  122. data/spec/api/pulp_ansible_tags_api_spec.rb +3 -2
  123. data/spec/api/remotes_ansible_api_spec.rb +12 -22
  124. data/spec/api/remotes_collection_api_spec.rb +12 -22
  125. data/spec/api/repositories_ansible_api_spec.rb +128 -0
  126. data/spec/api/repositories_ansible_versions_api_spec.rb +91 -0
  127. data/spec/api_client_spec.rb +2 -2
  128. data/spec/configuration_spec.rb +1 -1
  129. data/spec/models/{ansible_distribution_spec.rb → ansible_ansible_distribution_spec.rb} +9 -9
  130. data/spec/models/{collection_remote_spec.rb → ansible_ansible_remote_spec.rb} +14 -38
  131. data/spec/models/ansible_ansible_repository_spec.rb +71 -0
  132. data/spec/models/{ansible_remote_spec.rb → ansible_collection_remote_spec.rb} +20 -32
  133. data/spec/models/ansible_collection_spec.rb +47 -0
  134. data/spec/models/ansible_collection_version_spec.rb +191 -0
  135. data/spec/models/ansible_role_spec.rb +71 -0
  136. data/spec/models/{tag_nested_spec.rb → ansible_tag_spec.rb} +7 -7
  137. data/spec/models/async_operation_response_spec.rb +1 -1
  138. data/spec/models/collection_import_detail_spec.rb +1 -1
  139. data/spec/models/collection_metadata_spec.rb +1 -1
  140. data/spec/models/collection_namespace_spec.rb +41 -0
  141. data/spec/models/collection_ref_spec.rb +53 -0
  142. data/spec/models/{role_spec.rb → collection_spec.rb} +15 -21
  143. data/spec/models/collection_version_spec.rb +14 -130
  144. data/spec/models/content_summary_spec.rb +53 -0
  145. data/spec/models/galaxy_collection_spec.rb +1 -1
  146. data/spec/models/galaxy_collection_version_spec.rb +1 -1
  147. data/spec/models/galaxy_role_spec.rb +1 -1
  148. data/spec/models/galaxy_role_version_spec.rb +1 -1
  149. data/spec/models/inline_response20010_spec.rb +59 -0
  150. data/spec/models/inline_response20011_spec.rb +59 -0
  151. data/spec/models/inline_response20012_spec.rb +59 -0
  152. data/spec/models/inline_response20013_spec.rb +59 -0
  153. data/spec/models/inline_response2001_spec.rb +1 -1
  154. data/spec/models/inline_response2002_spec.rb +1 -1
  155. data/spec/models/inline_response2003_spec.rb +1 -1
  156. data/spec/models/inline_response2004_spec.rb +1 -1
  157. data/spec/models/inline_response2005_spec.rb +1 -1
  158. data/spec/models/inline_response2006_spec.rb +1 -1
  159. data/spec/models/inline_response2007_spec.rb +1 -1
  160. data/spec/models/inline_response2008_spec.rb +1 -1
  161. data/spec/models/inline_response2009_spec.rb +1 -1
  162. data/spec/models/inline_response200_spec.rb +1 -1
  163. data/spec/models/repository_sync_url_spec.rb +2 -2
  164. data/spec/models/repository_version_spec.rb +65 -0
  165. data/spec/models/tag_spec.rb +1 -1
  166. data/spec/spec_helper.rb +1 -1
  167. metadata +78 -22
  168. data/docs/AnsibleRemote.md +0 -45
  169. data/docs/CollectionRemote.md +0 -47
  170. 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.1.3-SNAPSHOT
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 AnsibleRemote
17
- attr_accessor :_href
16
+ class AnsibleAnsibleRemote
17
+ attr_accessor :pulp_href
18
18
 
19
19
  # Timestamp of creation.
20
- attr_accessor :_created
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 :ssl_ca_certificate
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 :ssl_client_certificate
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 :ssl_client_key
35
+ attr_accessor :client_key
38
36
 
39
- # If True, SSL peer validation must be performed.
40
- attr_accessor :ssl_validation
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 :_last_updated
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
- :'_href' => :'_href',
86
- :'_created' => :'_created',
87
- :'_type' => :'_type',
77
+ :'pulp_href' => :'pulp_href',
78
+ :'pulp_created' => :'pulp_created',
88
79
  :'name' => :'name',
89
80
  :'url' => :'url',
90
- :'ssl_ca_certificate' => :'ssl_ca_certificate',
91
- :'ssl_client_certificate' => :'ssl_client_certificate',
92
- :'ssl_client_key' => :'ssl_client_key',
93
- :'ssl_validation' => :'ssl_validation',
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
- :'username' => :'username',
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
- :'_href' => :'String',
107
- :'_created' => :'DateTime',
108
- :'_type' => :'String',
95
+ :'pulp_href' => :'String',
96
+ :'pulp_created' => :'DateTime',
109
97
  :'name' => :'String',
110
98
  :'url' => :'String',
111
- :'ssl_ca_certificate' => :'String',
112
- :'ssl_client_certificate' => :'String',
113
- :'ssl_client_key' => :'String',
114
- :'ssl_validation' => :'Boolean',
99
+ :'ca_cert' => :'String',
100
+ :'client_cert' => :'String',
101
+ :'client_key' => :'String',
102
+ :'tls_validation' => :'Boolean',
115
103
  :'proxy_url' => :'String',
116
- :'username' => :'String',
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::AnsibleRemote` initialize method"
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::AnsibleRemote`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
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?(:'_href')
140
- self._href = attributes[:'_href']
135
+ if attributes.key?(:'pulp_href')
136
+ self.pulp_href = attributes[:'pulp_href']
141
137
  end
142
138
 
143
- if attributes.key?(:'_created')
144
- self._created = attributes[:'_created']
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?(:'ssl_ca_certificate')
160
- self.ssl_ca_certificate = attributes[:'ssl_ca_certificate']
151
+ if attributes.key?(:'ca_cert')
152
+ self.ca_cert = attributes[:'ca_cert']
161
153
  end
162
154
 
163
- if attributes.key?(:'ssl_client_certificate')
164
- self.ssl_client_certificate = attributes[:'ssl_client_certificate']
155
+ if attributes.key?(:'client_cert')
156
+ self.client_cert = attributes[:'client_cert']
165
157
  end
166
158
 
167
- if attributes.key?(:'ssl_client_key')
168
- self.ssl_client_key = attributes[:'ssl_client_key']
159
+ if attributes.key?(:'client_key')
160
+ self.client_key = attributes[:'client_key']
169
161
  end
170
162
 
171
- if attributes.key?(:'ssl_validation')
172
- self.ssl_validation = attributes[:'ssl_validation']
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?(:'username')
180
- self.username = attributes[:'username']
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 !@ssl_ca_certificate.nil? && @ssl_ca_certificate.to_s.length < 1
227
- invalid_properties.push('invalid value for "ssl_ca_certificate", the character length must be great than or equal to 1.')
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 !@ssl_client_certificate.nil? && @ssl_client_certificate.to_s.length < 1
231
- invalid_properties.push('invalid value for "ssl_client_certificate", the character length must be great than or equal to 1.')
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 !@ssl_client_key.nil? && @ssl_client_key.to_s.length < 1
235
- invalid_properties.push('invalid value for "ssl_client_key", the character length must be great than or equal to 1.')
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 !@ssl_ca_certificate.nil? && @ssl_ca_certificate.to_s.length < 1
266
- return false if !@ssl_client_certificate.nil? && @ssl_client_certificate.to_s.length < 1
267
- return false if !@ssl_client_key.nil? && @ssl_client_key.to_s.length < 1
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] ssl_ca_certificate Value to be assigned
317
- def ssl_ca_certificate=(ssl_ca_certificate)
318
- if !ssl_ca_certificate.nil? && ssl_ca_certificate.to_s.length < 1
319
- fail ArgumentError, 'invalid value for "ssl_ca_certificate", the character length must be great than or equal to 1.'
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
- @ssl_ca_certificate = ssl_ca_certificate
281
+ @ca_cert = ca_cert
323
282
  end
324
283
 
325
284
  # Custom attribute writer method with validation
326
- # @param [Object] ssl_client_certificate Value to be assigned
327
- def ssl_client_certificate=(ssl_client_certificate)
328
- if !ssl_client_certificate.nil? && ssl_client_certificate.to_s.length < 1
329
- fail ArgumentError, 'invalid value for "ssl_client_certificate", the character length must be great than or equal to 1.'
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
- @ssl_client_certificate = ssl_client_certificate
291
+ @client_cert = client_cert
333
292
  end
334
293
 
335
294
  # Custom attribute writer method with validation
336
- # @param [Object] ssl_client_key Value to be assigned
337
- def ssl_client_key=(ssl_client_key)
338
- if !ssl_client_key.nil? && ssl_client_key.to_s.length < 1
339
- fail ArgumentError, 'invalid value for "ssl_client_key", the character length must be great than or equal to 1.'
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
- @ssl_client_key = ssl_client_key
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
- _href == o._href &&
401
- _created == o._created &&
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
- ssl_ca_certificate == o.ssl_ca_certificate &&
406
- ssl_client_certificate == o.ssl_client_certificate &&
407
- ssl_client_key == o.ssl_client_key &&
408
- ssl_validation == o.ssl_validation &&
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
- username == o.username &&
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
- [_href, _created, _type, name, url, ssl_ca_certificate, ssl_client_certificate, ssl_client_key, ssl_validation, proxy_url, username, password, _last_updated, download_concurrency, policy].hash
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
- next if value.nil?
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