pulp_ansible_client 0.2.0b12 → 0.2.0b13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -11
  3. data/docs/AnsibleAnsibleDistributionRead.md +31 -0
  4. data/docs/AnsibleAnsibleRemote.md +7 -3
  5. data/docs/AnsibleAnsibleRemoteRead.md +43 -0
  6. data/docs/AnsibleAnsibleRepositoryRead.md +27 -0
  7. data/docs/{AnsibleCollection.md → AnsibleCollectionRead.md} +2 -2
  8. data/docs/AnsibleCollectionRemote.md +7 -3
  9. data/docs/AnsibleCollectionRemoteRead.md +45 -0
  10. data/docs/AnsibleCollectionVersion.md +4 -4
  11. data/docs/AnsibleCollectionVersionRead.md +67 -0
  12. data/docs/AnsibleCollectionsApi.md +1 -1
  13. data/docs/AnsibleRole.md +4 -4
  14. data/docs/AnsibleRoleRead.md +27 -0
  15. data/docs/{CollectionImportDetail.md → CollectionImportDetailRead.md} +2 -2
  16. data/docs/CollectionRead.md +31 -0
  17. data/docs/CollectionVersionRead.md +37 -0
  18. data/docs/ContentCollectionVersionsApi.md +5 -5
  19. data/docs/ContentRolesApi.md +5 -5
  20. data/docs/DistributionsAnsibleApi.md +3 -3
  21. data/docs/GalaxyCollectionRead.md +23 -0
  22. data/docs/{GalaxyCollectionVersion.md → GalaxyCollectionVersionRead.md} +2 -2
  23. data/docs/{GalaxyRole.md → GalaxyRoleRead.md} +2 -2
  24. data/docs/{GalaxyRoleVersion.md → GalaxyRoleVersionRead.md} +2 -2
  25. data/docs/InlineResponse200.md +1 -1
  26. data/docs/InlineResponse2001.md +1 -1
  27. data/docs/InlineResponse20010.md +1 -1
  28. data/docs/InlineResponse20011.md +1 -1
  29. data/docs/InlineResponse20012.md +1 -1
  30. data/docs/InlineResponse20013.md +1 -1
  31. data/docs/InlineResponse2002.md +1 -1
  32. data/docs/InlineResponse2003.md +1 -1
  33. data/docs/InlineResponse2004.md +1 -1
  34. data/docs/InlineResponse2005.md +1 -1
  35. data/docs/InlineResponse2006.md +1 -1
  36. data/docs/InlineResponse2007.md +1 -1
  37. data/docs/InlineResponse2008.md +1 -1
  38. data/docs/InlineResponse2009.md +1 -1
  39. data/docs/PulpAnsibleApiApi.md +1 -1
  40. data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +5 -5
  41. data/docs/PulpAnsibleGalaxyApiRolesApi.md +1 -1
  42. data/docs/PulpAnsibleGalaxyApiV1VersionsApi.md +1 -1
  43. data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +1 -1
  44. data/docs/PulpAnsibleGalaxyApiV3CollectionsApi.md +3 -3
  45. data/docs/PulpAnsibleTagsApi.md +1 -1
  46. data/docs/RemotesAnsibleApi.md +5 -5
  47. data/docs/RemotesCollectionApi.md +5 -5
  48. data/docs/RepositoriesAnsibleApi.md +10 -10
  49. data/docs/RepositoriesAnsibleVersionsApi.md +3 -3
  50. data/docs/RepositoryVersionRead.md +25 -0
  51. data/docs/{Tag.md → TagRead.md} +2 -2
  52. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  53. data/lib/pulp_ansible_client/api/content_roles_api.rb +6 -6
  54. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +3 -3
  55. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +6 -6
  56. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +3 -3
  57. data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +6 -6
  58. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +6 -6
  59. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +15 -15
  60. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +3 -3
  61. data/lib/pulp_ansible_client/configuration.rb +2 -2
  62. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_read.rb +327 -0
  63. data/lib/pulp_ansible_client/models/ansible_ansible_remote.rb +56 -4
  64. data/lib/pulp_ansible_client/models/ansible_ansible_remote_read.rb +531 -0
  65. data/lib/pulp_ansible_client/models/ansible_ansible_repository_read.rb +294 -0
  66. data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_collection_read.rb} +3 -3
  67. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +56 -4
  68. data/lib/pulp_ansible_client/models/ansible_collection_remote_read.rb +557 -0
  69. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +35 -35
  70. data/lib/pulp_ansible_client/models/ansible_collection_version_read.rb +816 -0
  71. data/lib/pulp_ansible_client/models/ansible_role.rb +15 -15
  72. data/lib/pulp_ansible_client/models/ansible_role_read.rb +330 -0
  73. data/lib/pulp_ansible_client/models/{collection_import_detail.rb → collection_import_detail_read.rb} +3 -3
  74. data/lib/pulp_ansible_client/models/collection_read.rb +314 -0
  75. data/lib/pulp_ansible_client/models/collection_version_read.rb +370 -0
  76. data/lib/pulp_ansible_client/models/galaxy_collection_read.rb +281 -0
  77. data/lib/pulp_ansible_client/models/{galaxy_collection_version.rb → galaxy_collection_version_read.rb} +3 -3
  78. data/lib/pulp_ansible_client/models/{galaxy_role.rb → galaxy_role_read.rb} +3 -3
  79. data/lib/pulp_ansible_client/models/{galaxy_role_version.rb → galaxy_role_version_read.rb} +3 -3
  80. data/lib/pulp_ansible_client/models/inline_response200.rb +1 -1
  81. data/lib/pulp_ansible_client/models/inline_response2001.rb +1 -1
  82. data/lib/pulp_ansible_client/models/inline_response20010.rb +1 -1
  83. data/lib/pulp_ansible_client/models/inline_response20011.rb +1 -1
  84. data/lib/pulp_ansible_client/models/inline_response20012.rb +1 -1
  85. data/lib/pulp_ansible_client/models/inline_response20013.rb +1 -1
  86. data/lib/pulp_ansible_client/models/inline_response2002.rb +1 -1
  87. data/lib/pulp_ansible_client/models/inline_response2003.rb +1 -1
  88. data/lib/pulp_ansible_client/models/inline_response2004.rb +1 -1
  89. data/lib/pulp_ansible_client/models/inline_response2005.rb +1 -1
  90. data/lib/pulp_ansible_client/models/inline_response2006.rb +1 -1
  91. data/lib/pulp_ansible_client/models/inline_response2007.rb +1 -1
  92. data/lib/pulp_ansible_client/models/inline_response2008.rb +1 -1
  93. data/lib/pulp_ansible_client/models/inline_response2009.rb +1 -1
  94. data/lib/pulp_ansible_client/models/repository_version_read.rb +244 -0
  95. data/lib/pulp_ansible_client/models/{tag.rb → tag_read.rb} +3 -3
  96. data/lib/pulp_ansible_client/version.rb +1 -1
  97. data/lib/pulp_ansible_client.rb +16 -6
  98. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  99. data/spec/api/content_roles_api_spec.rb +2 -2
  100. data/spec/api/distributions_ansible_api_spec.rb +1 -1
  101. data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +2 -2
  102. data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +1 -1
  103. data/spec/api/remotes_ansible_api_spec.rb +2 -2
  104. data/spec/api/remotes_collection_api_spec.rb +2 -2
  105. data/spec/api/repositories_ansible_api_spec.rb +6 -6
  106. data/spec/api/repositories_ansible_versions_api_spec.rb +1 -1
  107. data/spec/configuration_spec.rb +3 -3
  108. data/spec/models/ansible_ansible_distribution_read_spec.rb +83 -0
  109. data/spec/models/ansible_ansible_remote_read_spec.rb +123 -0
  110. data/spec/models/ansible_ansible_remote_spec.rb +12 -0
  111. data/spec/models/ansible_ansible_repository_read_spec.rb +71 -0
  112. data/spec/models/{ansible_collection_spec.rb → ansible_collection_read_spec.rb} +6 -6
  113. data/spec/models/ansible_collection_remote_read_spec.rb +129 -0
  114. data/spec/models/ansible_collection_remote_spec.rb +12 -0
  115. data/spec/models/ansible_collection_version_read_spec.rb +191 -0
  116. data/spec/models/ansible_collection_version_spec.rb +2 -2
  117. data/spec/models/ansible_role_read_spec.rb +71 -0
  118. data/spec/models/ansible_role_spec.rb +2 -2
  119. data/spec/models/{collection_import_detail_spec.rb → collection_import_detail_read_spec.rb} +6 -6
  120. data/spec/models/collection_read_spec.rb +83 -0
  121. data/spec/models/collection_version_read_spec.rb +105 -0
  122. data/spec/models/galaxy_collection_read_spec.rb +59 -0
  123. data/spec/models/{galaxy_collection_version_spec.rb → galaxy_collection_version_read_spec.rb} +6 -6
  124. data/spec/models/{galaxy_role_spec.rb → galaxy_role_read_spec.rb} +6 -6
  125. data/spec/models/{galaxy_role_version_spec.rb → galaxy_role_version_read_spec.rb} +6 -6
  126. data/spec/models/repository_version_read_spec.rb +65 -0
  127. data/spec/models/{tag_spec.rb → tag_read_spec.rb} +6 -6
  128. metadata +66 -26
@@ -0,0 +1,327 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpAnsibleClient
16
+ class AnsibleAnsibleDistributionRead
17
+ attr_accessor :pulp_href
18
+
19
+ # Timestamp of creation.
20
+ attr_accessor :pulp_created
21
+
22
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
23
+ attr_accessor :base_path
24
+
25
+ # An optional content-guard.
26
+ attr_accessor :content_guard
27
+
28
+ # A unique name. Ex, `rawhide` and `stable`.
29
+ attr_accessor :name
30
+
31
+ # The latest RepositoryVersion for this Repository will be served.
32
+ attr_accessor :repository
33
+
34
+ # RepositoryVersion to be served
35
+ attr_accessor :repository_version
36
+
37
+ # The URL of a Collection content source.
38
+ attr_accessor :client_url
39
+
40
+ # Attribute mapping from ruby-style variable name to JSON key.
41
+ def self.attribute_map
42
+ {
43
+ :'pulp_href' => :'pulp_href',
44
+ :'pulp_created' => :'pulp_created',
45
+ :'base_path' => :'base_path',
46
+ :'content_guard' => :'content_guard',
47
+ :'name' => :'name',
48
+ :'repository' => :'repository',
49
+ :'repository_version' => :'repository_version',
50
+ :'client_url' => :'client_url'
51
+ }
52
+ end
53
+
54
+ # Attribute type mapping.
55
+ def self.openapi_types
56
+ {
57
+ :'pulp_href' => :'String',
58
+ :'pulp_created' => :'DateTime',
59
+ :'base_path' => :'String',
60
+ :'content_guard' => :'String',
61
+ :'name' => :'String',
62
+ :'repository' => :'String',
63
+ :'repository_version' => :'String',
64
+ :'client_url' => :'String'
65
+ }
66
+ end
67
+
68
+ # List of attributes with nullable: true
69
+ def self.openapi_nullable
70
+ Set.new([
71
+ :'content_guard',
72
+ :'repository',
73
+ :'repository_version',
74
+ ])
75
+ end
76
+
77
+ # Initializes the object
78
+ # @param [Hash] attributes Model attributes in the form of hash
79
+ def initialize(attributes = {})
80
+ if (!attributes.is_a?(Hash))
81
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleAnsibleDistributionRead` initialize method"
82
+ end
83
+
84
+ # check to see if the attribute exists and convert string to symbol for hash key
85
+ attributes = attributes.each_with_object({}) { |(k, v), h|
86
+ if (!self.class.attribute_map.key?(k.to_sym))
87
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleAnsibleDistributionRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
88
+ end
89
+ h[k.to_sym] = v
90
+ }
91
+
92
+ if attributes.key?(:'pulp_href')
93
+ self.pulp_href = attributes[:'pulp_href']
94
+ end
95
+
96
+ if attributes.key?(:'pulp_created')
97
+ self.pulp_created = attributes[:'pulp_created']
98
+ end
99
+
100
+ if attributes.key?(:'base_path')
101
+ self.base_path = attributes[:'base_path']
102
+ end
103
+
104
+ if attributes.key?(:'content_guard')
105
+ self.content_guard = attributes[:'content_guard']
106
+ end
107
+
108
+ if attributes.key?(:'name')
109
+ self.name = attributes[:'name']
110
+ end
111
+
112
+ if attributes.key?(:'repository')
113
+ self.repository = attributes[:'repository']
114
+ end
115
+
116
+ if attributes.key?(:'repository_version')
117
+ self.repository_version = attributes[:'repository_version']
118
+ end
119
+
120
+ if attributes.key?(:'client_url')
121
+ self.client_url = attributes[:'client_url']
122
+ end
123
+ end
124
+
125
+ # Show invalid properties with the reasons. Usually used together with valid?
126
+ # @return Array for valid properties with the reasons
127
+ def list_invalid_properties
128
+ invalid_properties = Array.new
129
+ if @base_path.nil?
130
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
131
+ end
132
+
133
+ if @base_path.to_s.length < 1
134
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
135
+ end
136
+
137
+ if @name.nil?
138
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
139
+ end
140
+
141
+ if @name.to_s.length < 1
142
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
143
+ end
144
+
145
+ invalid_properties
146
+ end
147
+
148
+ # Check to see if the all the properties in the model are valid
149
+ # @return true if the model is valid
150
+ def valid?
151
+ return false if @base_path.nil?
152
+ return false if @base_path.to_s.length < 1
153
+ return false if @name.nil?
154
+ return false if @name.to_s.length < 1
155
+ true
156
+ end
157
+
158
+ # Custom attribute writer method with validation
159
+ # @param [Object] base_path Value to be assigned
160
+ def base_path=(base_path)
161
+ if base_path.nil?
162
+ fail ArgumentError, 'base_path cannot be nil'
163
+ end
164
+
165
+ if base_path.to_s.length < 1
166
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
167
+ end
168
+
169
+ @base_path = base_path
170
+ end
171
+
172
+ # Custom attribute writer method with validation
173
+ # @param [Object] name Value to be assigned
174
+ def name=(name)
175
+ if name.nil?
176
+ fail ArgumentError, 'name cannot be nil'
177
+ end
178
+
179
+ if name.to_s.length < 1
180
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
181
+ end
182
+
183
+ @name = name
184
+ end
185
+
186
+ # Checks equality by comparing each attribute.
187
+ # @param [Object] Object to be compared
188
+ def ==(o)
189
+ return true if self.equal?(o)
190
+ self.class == o.class &&
191
+ pulp_href == o.pulp_href &&
192
+ pulp_created == o.pulp_created &&
193
+ base_path == o.base_path &&
194
+ content_guard == o.content_guard &&
195
+ name == o.name &&
196
+ repository == o.repository &&
197
+ repository_version == o.repository_version &&
198
+ client_url == o.client_url
199
+ end
200
+
201
+ # @see the `==` method
202
+ # @param [Object] Object to be compared
203
+ def eql?(o)
204
+ self == o
205
+ end
206
+
207
+ # Calculates hash code according to all attributes.
208
+ # @return [Integer] Hash code
209
+ def hash
210
+ [pulp_href, pulp_created, base_path, content_guard, name, repository, repository_version, client_url].hash
211
+ end
212
+
213
+ # Builds the object from hash
214
+ # @param [Hash] attributes Model attributes in the form of hash
215
+ # @return [Object] Returns the model itself
216
+ def self.build_from_hash(attributes)
217
+ new.build_from_hash(attributes)
218
+ end
219
+
220
+ # Builds the object from hash
221
+ # @param [Hash] attributes Model attributes in the form of hash
222
+ # @return [Object] Returns the model itself
223
+ def build_from_hash(attributes)
224
+ return nil unless attributes.is_a?(Hash)
225
+ self.class.openapi_types.each_pair do |key, type|
226
+ if type =~ /\AArray<(.*)>/i
227
+ # check to ensure the input is an array given that the attribute
228
+ # is documented as an array but the input is not
229
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
230
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
231
+ end
232
+ elsif !attributes[self.class.attribute_map[key]].nil?
233
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
234
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
235
+ end
236
+
237
+ self
238
+ end
239
+
240
+ # Deserializes the data based on type
241
+ # @param string type Data type
242
+ # @param string value Value to be deserialized
243
+ # @return [Object] Deserialized data
244
+ def _deserialize(type, value)
245
+ case type.to_sym
246
+ when :DateTime
247
+ DateTime.parse(value)
248
+ when :Date
249
+ Date.parse(value)
250
+ when :String
251
+ value.to_s
252
+ when :Integer
253
+ value.to_i
254
+ when :Float
255
+ value.to_f
256
+ when :Boolean
257
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
258
+ true
259
+ else
260
+ false
261
+ end
262
+ when :Object
263
+ # generic object (usually a Hash), return directly
264
+ value
265
+ when /\AArray<(?<inner_type>.+)>\z/
266
+ inner_type = Regexp.last_match[:inner_type]
267
+ value.map { |v| _deserialize(inner_type, v) }
268
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
269
+ k_type = Regexp.last_match[:k_type]
270
+ v_type = Regexp.last_match[:v_type]
271
+ {}.tap do |hash|
272
+ value.each do |k, v|
273
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
274
+ end
275
+ end
276
+ else # model
277
+ PulpAnsibleClient.const_get(type).build_from_hash(value)
278
+ end
279
+ end
280
+
281
+ # Returns the string representation of the object
282
+ # @return [String] String presentation of the object
283
+ def to_s
284
+ to_hash.to_s
285
+ end
286
+
287
+ # to_body is an alias to to_hash (backward compatibility)
288
+ # @return [Hash] Returns the object in the form of hash
289
+ def to_body
290
+ to_hash
291
+ end
292
+
293
+ # Returns the object in the form of hash
294
+ # @return [Hash] Returns the object in the form of hash
295
+ def to_hash
296
+ hash = {}
297
+ self.class.attribute_map.each_pair do |attr, param|
298
+ value = self.send(attr)
299
+ if value.nil?
300
+ is_nullable = self.class.openapi_nullable.include?(attr)
301
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
302
+ end
303
+
304
+ hash[param] = _to_hash(value)
305
+ end
306
+ hash
307
+ end
308
+
309
+ # Outputs non-array value in the form of hash
310
+ # For object, use to_hash. Otherwise, just return the value
311
+ # @param [Object] value Any valid value
312
+ # @return [Hash] Returns the value in the form of hash
313
+ def _to_hash(value)
314
+ if value.is_a?(Array)
315
+ value.compact.map { |v| _to_hash(v) }
316
+ elsif value.is_a?(Hash)
317
+ {}.tap do |hash|
318
+ value.each { |k, v| hash[k] = _to_hash(v) }
319
+ end
320
+ elsif value.respond_to? :to_hash
321
+ value.to_hash
322
+ else
323
+ value
324
+ end
325
+ end
326
+ end
327
+ end
@@ -25,13 +25,13 @@ module PulpAnsibleClient
25
25
  # The URL of an external content source.
26
26
  attr_accessor :url
27
27
 
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 checksum of the certificate file on GET.
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.
29
29
  attr_accessor :ca_cert
30
30
 
31
- # A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped. Returns SHA256 checksum of the certificate file on GET.
31
+ # A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped.
32
32
  attr_accessor :client_cert
33
33
 
34
- # A PEM encoded private key used for authentication. Returns SHA256 checksum of the certificate file on GET.
34
+ # A PEM encoded private key used for authentication.
35
35
  attr_accessor :client_key
36
36
 
37
37
  # If True, TLS peer validation must be performed.
@@ -40,6 +40,12 @@ module PulpAnsibleClient
40
40
  # The proxy URL. Format: scheme://user:password@host:port
41
41
  attr_accessor :proxy_url
42
42
 
43
+ # The username to be used for authentication when syncing.
44
+ attr_accessor :username
45
+
46
+ # The password to be used for authentication when syncing.
47
+ attr_accessor :password
48
+
43
49
  # Timestamp of the most recent update of the remote.
44
50
  attr_accessor :pulp_last_updated
45
51
 
@@ -83,6 +89,8 @@ module PulpAnsibleClient
83
89
  :'client_key' => :'client_key',
84
90
  :'tls_validation' => :'tls_validation',
85
91
  :'proxy_url' => :'proxy_url',
92
+ :'username' => :'username',
93
+ :'password' => :'password',
86
94
  :'pulp_last_updated' => :'pulp_last_updated',
87
95
  :'download_concurrency' => :'download_concurrency',
88
96
  :'policy' => :'policy'
@@ -101,6 +109,8 @@ module PulpAnsibleClient
101
109
  :'client_key' => :'String',
102
110
  :'tls_validation' => :'Boolean',
103
111
  :'proxy_url' => :'String',
112
+ :'username' => :'String',
113
+ :'password' => :'String',
104
114
  :'pulp_last_updated' => :'DateTime',
105
115
  :'download_concurrency' => :'Integer',
106
116
  :'policy' => :'String'
@@ -114,6 +124,8 @@ module PulpAnsibleClient
114
124
  :'client_cert',
115
125
  :'client_key',
116
126
  :'proxy_url',
127
+ :'username',
128
+ :'password',
117
129
  ])
118
130
  end
119
131
 
@@ -168,6 +180,14 @@ module PulpAnsibleClient
168
180
  self.proxy_url = attributes[:'proxy_url']
169
181
  end
170
182
 
183
+ if attributes.key?(:'username')
184
+ self.username = attributes[:'username']
185
+ end
186
+
187
+ if attributes.key?(:'password')
188
+ self.password = attributes[:'password']
189
+ end
190
+
171
191
  if attributes.key?(:'pulp_last_updated')
172
192
  self.pulp_last_updated = attributes[:'pulp_last_updated']
173
193
  end
@@ -219,6 +239,14 @@ module PulpAnsibleClient
219
239
  invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
220
240
  end
221
241
 
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
+
222
250
  if !@download_concurrency.nil? && @download_concurrency < 1
223
251
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
224
252
  end
@@ -237,6 +265,8 @@ module PulpAnsibleClient
237
265
  return false if !@client_cert.nil? && @client_cert.to_s.length < 1
238
266
  return false if !@client_key.nil? && @client_key.to_s.length < 1
239
267
  return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
268
+ return false if !@username.nil? && @username.to_s.length < 1
269
+ return false if !@password.nil? && @password.to_s.length < 1
240
270
  return false if !@download_concurrency.nil? && @download_concurrency < 1
241
271
  policy_validator = EnumAttributeValidator.new('String', ["immediate", "When syncing, download all metadata and content now."])
242
272
  return false unless policy_validator.valid?(@policy)
@@ -311,6 +341,26 @@ module PulpAnsibleClient
311
341
  @proxy_url = proxy_url
312
342
  end
313
343
 
344
+ # Custom attribute writer method with validation
345
+ # @param [Object] username Value to be assigned
346
+ def username=(username)
347
+ if !username.nil? && username.to_s.length < 1
348
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
349
+ end
350
+
351
+ @username = username
352
+ end
353
+
354
+ # Custom attribute writer method with validation
355
+ # @param [Object] password Value to be assigned
356
+ def password=(password)
357
+ if !password.nil? && password.to_s.length < 1
358
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
359
+ end
360
+
361
+ @password = password
362
+ end
363
+
314
364
  # Custom attribute writer method with validation
315
365
  # @param [Object] download_concurrency Value to be assigned
316
366
  def download_concurrency=(download_concurrency)
@@ -345,6 +395,8 @@ module PulpAnsibleClient
345
395
  client_key == o.client_key &&
346
396
  tls_validation == o.tls_validation &&
347
397
  proxy_url == o.proxy_url &&
398
+ username == o.username &&
399
+ password == o.password &&
348
400
  pulp_last_updated == o.pulp_last_updated &&
349
401
  download_concurrency == o.download_concurrency &&
350
402
  policy == o.policy
@@ -359,7 +411,7 @@ module PulpAnsibleClient
359
411
  # Calculates hash code according to all attributes.
360
412
  # @return [Integer] Hash code
361
413
  def 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
414
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy].hash
363
415
  end
364
416
 
365
417
  # Builds the object from hash