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 CollectionRemote
17
- attr_accessor :_href
16
+ class AnsibleCollectionRemote
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
@@ -85,19 +77,16 @@ module PulpAnsibleClient
85
77
  # Attribute mapping from ruby-style variable name to JSON key.
86
78
  def self.attribute_map
87
79
  {
88
- :'_href' => :'_href',
89
- :'_created' => :'_created',
90
- :'_type' => :'_type',
80
+ :'pulp_href' => :'pulp_href',
81
+ :'pulp_created' => :'pulp_created',
91
82
  :'name' => :'name',
92
83
  :'url' => :'url',
93
- :'ssl_ca_certificate' => :'ssl_ca_certificate',
94
- :'ssl_client_certificate' => :'ssl_client_certificate',
95
- :'ssl_client_key' => :'ssl_client_key',
96
- :'ssl_validation' => :'ssl_validation',
84
+ :'ca_cert' => :'ca_cert',
85
+ :'client_cert' => :'client_cert',
86
+ :'client_key' => :'client_key',
87
+ :'tls_validation' => :'tls_validation',
97
88
  :'proxy_url' => :'proxy_url',
98
- :'username' => :'username',
99
- :'password' => :'password',
100
- :'_last_updated' => :'_last_updated',
89
+ :'pulp_last_updated' => :'pulp_last_updated',
101
90
  :'download_concurrency' => :'download_concurrency',
102
91
  :'policy' => :'policy',
103
92
  :'requirements_file' => :'requirements_file'
@@ -107,50 +96,54 @@ module PulpAnsibleClient
107
96
  # Attribute type mapping.
108
97
  def self.openapi_types
109
98
  {
110
- :'_href' => :'String',
111
- :'_created' => :'DateTime',
112
- :'_type' => :'String',
99
+ :'pulp_href' => :'String',
100
+ :'pulp_created' => :'DateTime',
113
101
  :'name' => :'String',
114
102
  :'url' => :'String',
115
- :'ssl_ca_certificate' => :'String',
116
- :'ssl_client_certificate' => :'String',
117
- :'ssl_client_key' => :'String',
118
- :'ssl_validation' => :'Boolean',
103
+ :'ca_cert' => :'String',
104
+ :'client_cert' => :'String',
105
+ :'client_key' => :'String',
106
+ :'tls_validation' => :'Boolean',
119
107
  :'proxy_url' => :'String',
120
- :'username' => :'String',
121
- :'password' => :'String',
122
- :'_last_updated' => :'DateTime',
108
+ :'pulp_last_updated' => :'DateTime',
123
109
  :'download_concurrency' => :'Integer',
124
110
  :'policy' => :'String',
125
111
  :'requirements_file' => :'String'
126
112
  }
127
113
  end
128
114
 
115
+ # List of attributes with nullable: true
116
+ def self.openapi_nullable
117
+ Set.new([
118
+ :'ca_cert',
119
+ :'client_cert',
120
+ :'client_key',
121
+ :'proxy_url',
122
+ :'requirements_file'
123
+ ])
124
+ end
125
+
129
126
  # Initializes the object
130
127
  # @param [Hash] attributes Model attributes in the form of hash
131
128
  def initialize(attributes = {})
132
129
  if (!attributes.is_a?(Hash))
133
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::CollectionRemote` initialize method"
130
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleCollectionRemote` initialize method"
134
131
  end
135
132
 
136
133
  # check to see if the attribute exists and convert string to symbol for hash key
137
134
  attributes = attributes.each_with_object({}) { |(k, v), h|
138
135
  if (!self.class.attribute_map.key?(k.to_sym))
139
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::CollectionRemote`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
136
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleCollectionRemote`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
140
137
  end
141
138
  h[k.to_sym] = v
142
139
  }
143
140
 
144
- if attributes.key?(:'_href')
145
- self._href = attributes[:'_href']
141
+ if attributes.key?(:'pulp_href')
142
+ self.pulp_href = attributes[:'pulp_href']
146
143
  end
147
144
 
148
- if attributes.key?(:'_created')
149
- self._created = attributes[:'_created']
150
- end
151
-
152
- if attributes.key?(:'_type')
153
- self._type = attributes[:'_type']
145
+ if attributes.key?(:'pulp_created')
146
+ self.pulp_created = attributes[:'pulp_created']
154
147
  end
155
148
 
156
149
  if attributes.key?(:'name')
@@ -161,36 +154,28 @@ module PulpAnsibleClient
161
154
  self.url = attributes[:'url']
162
155
  end
163
156
 
164
- if attributes.key?(:'ssl_ca_certificate')
165
- self.ssl_ca_certificate = attributes[:'ssl_ca_certificate']
157
+ if attributes.key?(:'ca_cert')
158
+ self.ca_cert = attributes[:'ca_cert']
166
159
  end
167
160
 
168
- if attributes.key?(:'ssl_client_certificate')
169
- self.ssl_client_certificate = attributes[:'ssl_client_certificate']
161
+ if attributes.key?(:'client_cert')
162
+ self.client_cert = attributes[:'client_cert']
170
163
  end
171
164
 
172
- if attributes.key?(:'ssl_client_key')
173
- self.ssl_client_key = attributes[:'ssl_client_key']
165
+ if attributes.key?(:'client_key')
166
+ self.client_key = attributes[:'client_key']
174
167
  end
175
168
 
176
- if attributes.key?(:'ssl_validation')
177
- self.ssl_validation = attributes[:'ssl_validation']
169
+ if attributes.key?(:'tls_validation')
170
+ self.tls_validation = attributes[:'tls_validation']
178
171
  end
179
172
 
180
173
  if attributes.key?(:'proxy_url')
181
174
  self.proxy_url = attributes[:'proxy_url']
182
175
  end
183
176
 
184
- if attributes.key?(:'username')
185
- self.username = attributes[:'username']
186
- end
187
-
188
- if attributes.key?(:'password')
189
- self.password = attributes[:'password']
190
- end
191
-
192
- if attributes.key?(:'_last_updated')
193
- self._last_updated = attributes[:'_last_updated']
177
+ if attributes.key?(:'pulp_last_updated')
178
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
194
179
  end
195
180
 
196
181
  if attributes.key?(:'download_concurrency')
@@ -212,10 +197,6 @@ module PulpAnsibleClient
212
197
  # @return Array for valid properties with the reasons
213
198
  def list_invalid_properties
214
199
  invalid_properties = Array.new
215
- if !@_type.nil? && @_type.to_s.length < 1
216
- invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
217
- end
218
-
219
200
  if @name.nil?
220
201
  invalid_properties.push('invalid value for "name", name cannot be nil.')
221
202
  end
@@ -232,30 +213,22 @@ module PulpAnsibleClient
232
213
  invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
233
214
  end
234
215
 
235
- if !@ssl_ca_certificate.nil? && @ssl_ca_certificate.to_s.length < 1
236
- invalid_properties.push('invalid value for "ssl_ca_certificate", the character length must be great than or equal to 1.')
216
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
217
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
237
218
  end
238
219
 
239
- if !@ssl_client_certificate.nil? && @ssl_client_certificate.to_s.length < 1
240
- invalid_properties.push('invalid value for "ssl_client_certificate", the character length must be great than or equal to 1.')
220
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
221
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
241
222
  end
242
223
 
243
- if !@ssl_client_key.nil? && @ssl_client_key.to_s.length < 1
244
- invalid_properties.push('invalid value for "ssl_client_key", the character length must be great than or equal to 1.')
224
+ if !@client_key.nil? && @client_key.to_s.length < 1
225
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
245
226
  end
246
227
 
247
228
  if !@proxy_url.nil? && @proxy_url.to_s.length < 1
248
229
  invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
249
230
  end
250
231
 
251
- if !@username.nil? && @username.to_s.length < 1
252
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
253
- end
254
-
255
- if !@password.nil? && @password.to_s.length < 1
256
- invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
257
- end
258
-
259
232
  if !@download_concurrency.nil? && @download_concurrency < 1
260
233
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
261
234
  end
@@ -270,17 +243,14 @@ module PulpAnsibleClient
270
243
  # Check to see if the all the properties in the model are valid
271
244
  # @return true if the model is valid
272
245
  def valid?
273
- return false if !@_type.nil? && @_type.to_s.length < 1
274
246
  return false if @name.nil?
275
247
  return false if @name.to_s.length < 1
276
248
  return false if @url.nil?
277
249
  return false if @url.to_s.length < 1
278
- return false if !@ssl_ca_certificate.nil? && @ssl_ca_certificate.to_s.length < 1
279
- return false if !@ssl_client_certificate.nil? && @ssl_client_certificate.to_s.length < 1
280
- return false if !@ssl_client_key.nil? && @ssl_client_key.to_s.length < 1
250
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
251
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
252
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
281
253
  return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
282
- return false if !@username.nil? && @username.to_s.length < 1
283
- return false if !@password.nil? && @password.to_s.length < 1
284
254
  return false if !@download_concurrency.nil? && @download_concurrency < 1
285
255
  policy_validator = EnumAttributeValidator.new('String', ["immediate", "When syncing, download all metadata and content now."])
286
256
  return false unless policy_validator.valid?(@policy)
@@ -288,16 +258,6 @@ module PulpAnsibleClient
288
258
  true
289
259
  end
290
260
 
291
- # Custom attribute writer method with validation
292
- # @param [Object] _type Value to be assigned
293
- def _type=(_type)
294
- if !_type.nil? && _type.to_s.length < 1
295
- fail ArgumentError, 'invalid value for "_type", the character length must be great than or equal to 1.'
296
- end
297
-
298
- @_type = _type
299
- end
300
-
301
261
  # Custom attribute writer method with validation
302
262
  # @param [Object] name Value to be assigned
303
263
  def name=(name)
@@ -327,33 +287,33 @@ module PulpAnsibleClient
327
287
  end
328
288
 
329
289
  # Custom attribute writer method with validation
330
- # @param [Object] ssl_ca_certificate Value to be assigned
331
- def ssl_ca_certificate=(ssl_ca_certificate)
332
- if !ssl_ca_certificate.nil? && ssl_ca_certificate.to_s.length < 1
333
- fail ArgumentError, 'invalid value for "ssl_ca_certificate", the character length must be great than or equal to 1.'
290
+ # @param [Object] ca_cert Value to be assigned
291
+ def ca_cert=(ca_cert)
292
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
293
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
334
294
  end
335
295
 
336
- @ssl_ca_certificate = ssl_ca_certificate
296
+ @ca_cert = ca_cert
337
297
  end
338
298
 
339
299
  # Custom attribute writer method with validation
340
- # @param [Object] ssl_client_certificate Value to be assigned
341
- def ssl_client_certificate=(ssl_client_certificate)
342
- if !ssl_client_certificate.nil? && ssl_client_certificate.to_s.length < 1
343
- fail ArgumentError, 'invalid value for "ssl_client_certificate", the character length must be great than or equal to 1.'
300
+ # @param [Object] client_cert Value to be assigned
301
+ def client_cert=(client_cert)
302
+ if !client_cert.nil? && client_cert.to_s.length < 1
303
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
344
304
  end
345
305
 
346
- @ssl_client_certificate = ssl_client_certificate
306
+ @client_cert = client_cert
347
307
  end
348
308
 
349
309
  # Custom attribute writer method with validation
350
- # @param [Object] ssl_client_key Value to be assigned
351
- def ssl_client_key=(ssl_client_key)
352
- if !ssl_client_key.nil? && ssl_client_key.to_s.length < 1
353
- fail ArgumentError, 'invalid value for "ssl_client_key", the character length must be great than or equal to 1.'
310
+ # @param [Object] client_key Value to be assigned
311
+ def client_key=(client_key)
312
+ if !client_key.nil? && client_key.to_s.length < 1
313
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
354
314
  end
355
315
 
356
- @ssl_client_key = ssl_client_key
316
+ @client_key = client_key
357
317
  end
358
318
 
359
319
  # Custom attribute writer method with validation
@@ -366,26 +326,6 @@ module PulpAnsibleClient
366
326
  @proxy_url = proxy_url
367
327
  end
368
328
 
369
- # Custom attribute writer method with validation
370
- # @param [Object] username Value to be assigned
371
- def username=(username)
372
- if !username.nil? && username.to_s.length < 1
373
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
374
- end
375
-
376
- @username = username
377
- end
378
-
379
- # Custom attribute writer method with validation
380
- # @param [Object] password Value to be assigned
381
- def password=(password)
382
- if !password.nil? && password.to_s.length < 1
383
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
384
- end
385
-
386
- @password = password
387
- end
388
-
389
329
  # Custom attribute writer method with validation
390
330
  # @param [Object] download_concurrency Value to be assigned
391
331
  def download_concurrency=(download_concurrency)
@@ -421,19 +361,16 @@ module PulpAnsibleClient
421
361
  def ==(o)
422
362
  return true if self.equal?(o)
423
363
  self.class == o.class &&
424
- _href == o._href &&
425
- _created == o._created &&
426
- _type == o._type &&
364
+ pulp_href == o.pulp_href &&
365
+ pulp_created == o.pulp_created &&
427
366
  name == o.name &&
428
367
  url == o.url &&
429
- ssl_ca_certificate == o.ssl_ca_certificate &&
430
- ssl_client_certificate == o.ssl_client_certificate &&
431
- ssl_client_key == o.ssl_client_key &&
432
- ssl_validation == o.ssl_validation &&
368
+ ca_cert == o.ca_cert &&
369
+ client_cert == o.client_cert &&
370
+ client_key == o.client_key &&
371
+ tls_validation == o.tls_validation &&
433
372
  proxy_url == o.proxy_url &&
434
- username == o.username &&
435
- password == o.password &&
436
- _last_updated == o._last_updated &&
373
+ pulp_last_updated == o.pulp_last_updated &&
437
374
  download_concurrency == o.download_concurrency &&
438
375
  policy == o.policy &&
439
376
  requirements_file == o.requirements_file
@@ -448,7 +385,7 @@ module PulpAnsibleClient
448
385
  # Calculates hash code according to all attributes.
449
386
  # @return [Integer] Hash code
450
387
  def hash
451
- [_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, requirements_file].hash
388
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, pulp_last_updated, download_concurrency, policy, requirements_file].hash
452
389
  end
453
390
 
454
391
  # Builds the object from hash
@@ -537,7 +474,11 @@ module PulpAnsibleClient
537
474
  hash = {}
538
475
  self.class.attribute_map.each_pair do |attr, param|
539
476
  value = self.send(attr)
540
- next if value.nil?
477
+ if value.nil?
478
+ is_nullable = self.class.openapi_nullable.include?(attr)
479
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
480
+ end
481
+
541
482
  hash[param] = _to_hash(value)
542
483
  end
543
484
  hash