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,294 @@
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 AnsibleAnsibleRepositoryRead
17
+ attr_accessor :pulp_href
18
+
19
+ # Timestamp of creation.
20
+ attr_accessor :pulp_created
21
+
22
+ attr_accessor :versions_href
23
+
24
+ attr_accessor :latest_version_href
25
+
26
+ # A unique name for this repository.
27
+ attr_accessor :name
28
+
29
+ # An optional description.
30
+ attr_accessor :description
31
+
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ def self.attribute_map
34
+ {
35
+ :'pulp_href' => :'pulp_href',
36
+ :'pulp_created' => :'pulp_created',
37
+ :'versions_href' => :'versions_href',
38
+ :'latest_version_href' => :'latest_version_href',
39
+ :'name' => :'name',
40
+ :'description' => :'description'
41
+ }
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.openapi_types
46
+ {
47
+ :'pulp_href' => :'String',
48
+ :'pulp_created' => :'DateTime',
49
+ :'versions_href' => :'String',
50
+ :'latest_version_href' => :'String',
51
+ :'name' => :'String',
52
+ :'description' => :'String'
53
+ }
54
+ end
55
+
56
+ # List of attributes with nullable: true
57
+ def self.openapi_nullable
58
+ Set.new([
59
+ :'description'
60
+ ])
61
+ end
62
+
63
+ # Initializes the object
64
+ # @param [Hash] attributes Model attributes in the form of hash
65
+ def initialize(attributes = {})
66
+ if (!attributes.is_a?(Hash))
67
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleAnsibleRepositoryRead` initialize method"
68
+ end
69
+
70
+ # check to see if the attribute exists and convert string to symbol for hash key
71
+ attributes = attributes.each_with_object({}) { |(k, v), h|
72
+ if (!self.class.attribute_map.key?(k.to_sym))
73
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleAnsibleRepositoryRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
74
+ end
75
+ h[k.to_sym] = v
76
+ }
77
+
78
+ if attributes.key?(:'pulp_href')
79
+ self.pulp_href = attributes[:'pulp_href']
80
+ end
81
+
82
+ if attributes.key?(:'pulp_created')
83
+ self.pulp_created = attributes[:'pulp_created']
84
+ end
85
+
86
+ if attributes.key?(:'versions_href')
87
+ self.versions_href = attributes[:'versions_href']
88
+ end
89
+
90
+ if attributes.key?(:'latest_version_href')
91
+ self.latest_version_href = attributes[:'latest_version_href']
92
+ end
93
+
94
+ if attributes.key?(:'name')
95
+ self.name = attributes[:'name']
96
+ end
97
+
98
+ if attributes.key?(:'description')
99
+ self.description = attributes[:'description']
100
+ end
101
+ end
102
+
103
+ # Show invalid properties with the reasons. Usually used together with valid?
104
+ # @return Array for valid properties with the reasons
105
+ def list_invalid_properties
106
+ invalid_properties = Array.new
107
+ if @name.nil?
108
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
109
+ end
110
+
111
+ if @name.to_s.length < 1
112
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
113
+ end
114
+
115
+ if !@description.nil? && @description.to_s.length < 1
116
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
117
+ end
118
+
119
+ invalid_properties
120
+ end
121
+
122
+ # Check to see if the all the properties in the model are valid
123
+ # @return true if the model is valid
124
+ def valid?
125
+ return false if @name.nil?
126
+ return false if @name.to_s.length < 1
127
+ return false if !@description.nil? && @description.to_s.length < 1
128
+ true
129
+ end
130
+
131
+ # Custom attribute writer method with validation
132
+ # @param [Object] name Value to be assigned
133
+ def name=(name)
134
+ if name.nil?
135
+ fail ArgumentError, 'name cannot be nil'
136
+ end
137
+
138
+ if name.to_s.length < 1
139
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
140
+ end
141
+
142
+ @name = name
143
+ end
144
+
145
+ # Custom attribute writer method with validation
146
+ # @param [Object] description Value to be assigned
147
+ def description=(description)
148
+ if !description.nil? && description.to_s.length < 1
149
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
150
+ end
151
+
152
+ @description = description
153
+ end
154
+
155
+ # Checks equality by comparing each attribute.
156
+ # @param [Object] Object to be compared
157
+ def ==(o)
158
+ return true if self.equal?(o)
159
+ self.class == o.class &&
160
+ pulp_href == o.pulp_href &&
161
+ pulp_created == o.pulp_created &&
162
+ versions_href == o.versions_href &&
163
+ latest_version_href == o.latest_version_href &&
164
+ name == o.name &&
165
+ description == o.description
166
+ end
167
+
168
+ # @see the `==` method
169
+ # @param [Object] Object to be compared
170
+ def eql?(o)
171
+ self == o
172
+ end
173
+
174
+ # Calculates hash code according to all attributes.
175
+ # @return [Integer] Hash code
176
+ def hash
177
+ [pulp_href, pulp_created, versions_href, latest_version_href, name, description].hash
178
+ end
179
+
180
+ # Builds the object from hash
181
+ # @param [Hash] attributes Model attributes in the form of hash
182
+ # @return [Object] Returns the model itself
183
+ def self.build_from_hash(attributes)
184
+ new.build_from_hash(attributes)
185
+ end
186
+
187
+ # Builds the object from hash
188
+ # @param [Hash] attributes Model attributes in the form of hash
189
+ # @return [Object] Returns the model itself
190
+ def build_from_hash(attributes)
191
+ return nil unless attributes.is_a?(Hash)
192
+ self.class.openapi_types.each_pair do |key, type|
193
+ if type =~ /\AArray<(.*)>/i
194
+ # check to ensure the input is an array given that the attribute
195
+ # is documented as an array but the input is not
196
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
197
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
198
+ end
199
+ elsif !attributes[self.class.attribute_map[key]].nil?
200
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
201
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
202
+ end
203
+
204
+ self
205
+ end
206
+
207
+ # Deserializes the data based on type
208
+ # @param string type Data type
209
+ # @param string value Value to be deserialized
210
+ # @return [Object] Deserialized data
211
+ def _deserialize(type, value)
212
+ case type.to_sym
213
+ when :DateTime
214
+ DateTime.parse(value)
215
+ when :Date
216
+ Date.parse(value)
217
+ when :String
218
+ value.to_s
219
+ when :Integer
220
+ value.to_i
221
+ when :Float
222
+ value.to_f
223
+ when :Boolean
224
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
225
+ true
226
+ else
227
+ false
228
+ end
229
+ when :Object
230
+ # generic object (usually a Hash), return directly
231
+ value
232
+ when /\AArray<(?<inner_type>.+)>\z/
233
+ inner_type = Regexp.last_match[:inner_type]
234
+ value.map { |v| _deserialize(inner_type, v) }
235
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
236
+ k_type = Regexp.last_match[:k_type]
237
+ v_type = Regexp.last_match[:v_type]
238
+ {}.tap do |hash|
239
+ value.each do |k, v|
240
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
241
+ end
242
+ end
243
+ else # model
244
+ PulpAnsibleClient.const_get(type).build_from_hash(value)
245
+ end
246
+ end
247
+
248
+ # Returns the string representation of the object
249
+ # @return [String] String presentation of the object
250
+ def to_s
251
+ to_hash.to_s
252
+ end
253
+
254
+ # to_body is an alias to to_hash (backward compatibility)
255
+ # @return [Hash] Returns the object in the form of hash
256
+ def to_body
257
+ to_hash
258
+ end
259
+
260
+ # Returns the object in the form of hash
261
+ # @return [Hash] Returns the object in the form of hash
262
+ def to_hash
263
+ hash = {}
264
+ self.class.attribute_map.each_pair do |attr, param|
265
+ value = self.send(attr)
266
+ if value.nil?
267
+ is_nullable = self.class.openapi_nullable.include?(attr)
268
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
269
+ end
270
+
271
+ hash[param] = _to_hash(value)
272
+ end
273
+ hash
274
+ end
275
+
276
+ # Outputs non-array value in the form of hash
277
+ # For object, use to_hash. Otherwise, just return the value
278
+ # @param [Object] value Any valid value
279
+ # @return [Hash] Returns the value in the form of hash
280
+ def _to_hash(value)
281
+ if value.is_a?(Array)
282
+ value.compact.map { |v| _to_hash(v) }
283
+ elsif value.is_a?(Hash)
284
+ {}.tap do |hash|
285
+ value.each { |k, v| hash[k] = _to_hash(v) }
286
+ end
287
+ elsif value.respond_to? :to_hash
288
+ value.to_hash
289
+ else
290
+ value
291
+ end
292
+ end
293
+ end
294
+ end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
- class AnsibleCollection
16
+ class AnsibleCollectionRead
17
17
  # The name of the Collection.
18
18
  attr_accessor :name
19
19
 
@@ -46,13 +46,13 @@ module PulpAnsibleClient
46
46
  # @param [Hash] attributes Model attributes in the form of hash
47
47
  def initialize(attributes = {})
48
48
  if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleCollection` initialize method"
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleCollectionRead` initialize method"
50
50
  end
51
51
 
52
52
  # check to see if the attribute exists and convert string to symbol for hash key
53
53
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
54
  if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleCollection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleCollectionRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
56
  end
57
57
  h[k.to_sym] = v
58
58
  }
@@ -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
 
@@ -86,6 +92,8 @@ module PulpAnsibleClient
86
92
  :'client_key' => :'client_key',
87
93
  :'tls_validation' => :'tls_validation',
88
94
  :'proxy_url' => :'proxy_url',
95
+ :'username' => :'username',
96
+ :'password' => :'password',
89
97
  :'pulp_last_updated' => :'pulp_last_updated',
90
98
  :'download_concurrency' => :'download_concurrency',
91
99
  :'policy' => :'policy',
@@ -105,6 +113,8 @@ module PulpAnsibleClient
105
113
  :'client_key' => :'String',
106
114
  :'tls_validation' => :'Boolean',
107
115
  :'proxy_url' => :'String',
116
+ :'username' => :'String',
117
+ :'password' => :'String',
108
118
  :'pulp_last_updated' => :'DateTime',
109
119
  :'download_concurrency' => :'Integer',
110
120
  :'policy' => :'String',
@@ -119,6 +129,8 @@ module PulpAnsibleClient
119
129
  :'client_cert',
120
130
  :'client_key',
121
131
  :'proxy_url',
132
+ :'username',
133
+ :'password',
122
134
  :'requirements_file'
123
135
  ])
124
136
  end
@@ -174,6 +186,14 @@ module PulpAnsibleClient
174
186
  self.proxy_url = attributes[:'proxy_url']
175
187
  end
176
188
 
189
+ if attributes.key?(:'username')
190
+ self.username = attributes[:'username']
191
+ end
192
+
193
+ if attributes.key?(:'password')
194
+ self.password = attributes[:'password']
195
+ end
196
+
177
197
  if attributes.key?(:'pulp_last_updated')
178
198
  self.pulp_last_updated = attributes[:'pulp_last_updated']
179
199
  end
@@ -229,6 +249,14 @@ module PulpAnsibleClient
229
249
  invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
230
250
  end
231
251
 
252
+ if !@username.nil? && @username.to_s.length < 1
253
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
254
+ end
255
+
256
+ if !@password.nil? && @password.to_s.length < 1
257
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
258
+ end
259
+
232
260
  if !@download_concurrency.nil? && @download_concurrency < 1
233
261
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
234
262
  end
@@ -251,6 +279,8 @@ module PulpAnsibleClient
251
279
  return false if !@client_cert.nil? && @client_cert.to_s.length < 1
252
280
  return false if !@client_key.nil? && @client_key.to_s.length < 1
253
281
  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
254
284
  return false if !@download_concurrency.nil? && @download_concurrency < 1
255
285
  policy_validator = EnumAttributeValidator.new('String', ["immediate", "When syncing, download all metadata and content now."])
256
286
  return false unless policy_validator.valid?(@policy)
@@ -326,6 +356,26 @@ module PulpAnsibleClient
326
356
  @proxy_url = proxy_url
327
357
  end
328
358
 
359
+ # Custom attribute writer method with validation
360
+ # @param [Object] username Value to be assigned
361
+ def username=(username)
362
+ if !username.nil? && username.to_s.length < 1
363
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
364
+ end
365
+
366
+ @username = username
367
+ end
368
+
369
+ # Custom attribute writer method with validation
370
+ # @param [Object] password Value to be assigned
371
+ def password=(password)
372
+ if !password.nil? && password.to_s.length < 1
373
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
374
+ end
375
+
376
+ @password = password
377
+ end
378
+
329
379
  # Custom attribute writer method with validation
330
380
  # @param [Object] download_concurrency Value to be assigned
331
381
  def download_concurrency=(download_concurrency)
@@ -370,6 +420,8 @@ module PulpAnsibleClient
370
420
  client_key == o.client_key &&
371
421
  tls_validation == o.tls_validation &&
372
422
  proxy_url == o.proxy_url &&
423
+ username == o.username &&
424
+ password == o.password &&
373
425
  pulp_last_updated == o.pulp_last_updated &&
374
426
  download_concurrency == o.download_concurrency &&
375
427
  policy == o.policy &&
@@ -385,7 +437,7 @@ module PulpAnsibleClient
385
437
  # Calculates hash code according to all attributes.
386
438
  # @return [Integer] Hash code
387
439
  def 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
440
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, requirements_file].hash
389
441
  end
390
442
 
391
443
  # Builds the object from hash