pulp_ansible_client 0.21.5 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -15
  3. data/docs/{AnsibleCollection.md → AnsibleAnsibleCollectionDeprecated.md} +4 -2
  4. data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +25 -0
  5. data/docs/AnsibleAnsibleRepositoryResponse.md +2 -0
  6. data/docs/AnsibleCollectionRemoteResponse.md +2 -2
  7. data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
  8. data/docs/AnsibleCollectionVersionResponse.md +11 -9
  9. data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
  10. data/docs/AnsibleCollectionsApi.md +60 -0
  11. data/docs/AnsibleGitRemote.md +28 -28
  12. data/docs/AnsibleGitRemoteResponse.md +26 -26
  13. data/docs/AnsibleRoleRemoteResponse.md +2 -2
  14. data/docs/AnsibleRoleResponse.md +6 -4
  15. data/docs/CollectionImportDetailResponse.md +2 -2
  16. data/docs/CollectionMetadataResponse.md +2 -2
  17. data/docs/CollectionSummaryResponse.md +2 -2
  18. data/docs/CollectionVersionDocsResponse.md +1 -1
  19. data/docs/CollectionVersionResponse.md +2 -2
  20. data/docs/ContentCollectionDeprecationsApi.md +10 -10
  21. data/docs/Copy.md +1 -1
  22. data/docs/PaginatedGalaxyRoleResponseList.md +2 -2
  23. data/docs/PaginatedGalaxyRoleVersionResponseList.md +2 -2
  24. data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
  25. data/docs/PaginatedTagResponseList.md +2 -2
  26. data/docs/PaginatedansibleAnsibleCollectionDeprecatedResponseList.md +23 -0
  27. data/docs/PaginatedansibleAnsibleDistributionResponseList.md +2 -2
  28. data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +2 -2
  29. data/docs/PaginatedansibleAnsibleRepositoryResponseList.md +2 -2
  30. data/docs/PaginatedansibleCollectionRemoteResponseList.md +2 -2
  31. data/docs/PaginatedansibleCollectionResponseList.md +2 -2
  32. data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +2 -2
  33. data/docs/PaginatedansibleCollectionVersionResponseList.md +2 -2
  34. data/docs/PaginatedansibleCollectionVersionSignatureResponseList.md +2 -2
  35. data/docs/PaginatedansibleGitRemoteResponseList.md +2 -2
  36. data/docs/PaginatedansibleRoleRemoteResponseList.md +2 -2
  37. data/docs/PaginatedansibleRoleResponseList.md +2 -2
  38. data/docs/PatchedansibleGitRemote.md +28 -28
  39. data/docs/RepositoryResponse.md +2 -0
  40. data/docs/RepositoryVersionResponse.md +2 -0
  41. data/docs/VersionsApi.md +0 -55
  42. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +68 -0
  43. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -20
  44. data/lib/pulp_ansible_client/api/versions_api.rb +0 -69
  45. data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_ansible_collection_deprecated.rb} +15 -5
  46. data/lib/pulp_ansible_client/models/{galaxy_collection_version_response.rb → ansible_ansible_collection_deprecated_response.rb} +45 -54
  47. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +11 -1
  48. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +11 -11
  49. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +10 -0
  50. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +30 -20
  51. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +11 -1
  52. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +232 -232
  53. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +153 -153
  54. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +11 -11
  55. data/lib/pulp_ansible_client/models/ansible_role_response.rb +25 -15
  56. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
  57. data/lib/pulp_ansible_client/models/collection_metadata_response.rb +2 -2
  58. data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
  59. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  60. data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
  61. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  62. data/lib/pulp_ansible_client/models/paginated_galaxy_role_response_list.rb +10 -0
  63. data/lib/pulp_ansible_client/models/paginated_galaxy_role_version_response_list.rb +10 -0
  64. data/lib/pulp_ansible_client/models/paginated_repository_version_response_list.rb +10 -0
  65. data/lib/pulp_ansible_client/models/paginated_tag_response_list.rb +10 -0
  66. data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_response_list.rb → paginatedansible_ansible_collection_deprecated_response_list.rb} +14 -4
  67. data/lib/pulp_ansible_client/models/paginatedansible_ansible_distribution_response_list.rb +10 -0
  68. data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +10 -0
  69. data/lib/pulp_ansible_client/models/paginatedansible_ansible_repository_response_list.rb +10 -0
  70. data/lib/pulp_ansible_client/models/paginatedansible_collection_remote_response_list.rb +10 -0
  71. data/lib/pulp_ansible_client/models/paginatedansible_collection_response_list.rb +10 -0
  72. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +10 -0
  73. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_response_list.rb +10 -0
  74. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_signature_response_list.rb +10 -0
  75. data/lib/pulp_ansible_client/models/paginatedansible_git_remote_response_list.rb +10 -0
  76. data/lib/pulp_ansible_client/models/paginatedansible_role_remote_response_list.rb +10 -0
  77. data/lib/pulp_ansible_client/models/paginatedansible_role_response_list.rb +10 -0
  78. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +226 -226
  79. data/lib/pulp_ansible_client/models/repository_response.rb +11 -1
  80. data/lib/pulp_ansible_client/models/repository_version_response.rb +11 -1
  81. data/lib/pulp_ansible_client/version.rb +1 -1
  82. data/lib/pulp_ansible_client.rb +3 -9
  83. data/spec/api/ansible_collections_api_spec.rb +14 -0
  84. data/spec/api/content_collection_deprecations_api_spec.rb +5 -5
  85. data/spec/api/versions_api_spec.rb +0 -14
  86. data/spec/models/{galaxy_collection_version_response_spec.rb → ansible_ansible_collection_deprecated_response_spec.rb} +11 -17
  87. data/spec/models/{ansible_collection_spec.rb → ansible_ansible_collection_deprecated_spec.rb} +12 -6
  88. data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
  89. data/spec/models/ansible_collection_remote_response_spec.rb +6 -6
  90. data/spec/models/ansible_collection_version_response_spec.rb +8 -2
  91. data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
  92. data/spec/models/ansible_git_remote_response_spec.rb +17 -17
  93. data/spec/models/ansible_git_remote_spec.rb +20 -20
  94. data/spec/models/ansible_role_remote_response_spec.rb +6 -6
  95. data/spec/models/ansible_role_response_spec.rb +8 -2
  96. data/spec/models/{paginated_galaxy_collection_version_response_list_spec.rb → paginatedansible_ansible_collection_deprecated_response_list_spec.rb} +6 -6
  97. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  98. data/spec/models/repository_response_spec.rb +6 -0
  99. data/spec/models/repository_version_response_spec.rb +6 -0
  100. metadata +135 -159
  101. data/docs/ApiCollectionsApi.md +0 -112
  102. data/docs/GalaxyCollection.md +0 -23
  103. data/docs/GalaxyCollectionResponse.md +0 -31
  104. data/docs/GalaxyCollectionVersionResponse.md +0 -27
  105. data/docs/GalaxyDetailApi.md +0 -61
  106. data/docs/PaginatedGalaxyCollectionResponseList.md +0 -23
  107. data/docs/PaginatedGalaxyCollectionVersionResponseList.md +0 -23
  108. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +0 -66
  109. data/lib/pulp_ansible_client/api/api_collections_api.rb +0 -159
  110. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +0 -88
  111. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +0 -104
  112. data/lib/pulp_ansible_client/models/galaxy_collection.rb +0 -292
  113. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -294
  114. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_version_response_list.rb +0 -237
  115. data/spec/api/api_collections_api_spec.rb +0 -61
  116. data/spec/api/galaxy_detail_api_spec.rb +0 -48
  117. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +0 -51
  118. data/spec/models/galaxy_collection_response_spec.rb +0 -83
  119. data/spec/models/galaxy_collection_spec.rb +0 -59
  120. data/spec/models/paginated_galaxy_collection_response_list_spec.rb +0 -59
@@ -15,60 +15,60 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # A unique name for this remote.
19
- attr_accessor :name
20
-
21
- # If True, TLS peer validation must be performed.
22
- attr_accessor :tls_validation
23
-
24
- # Total number of simultaneous connections. If not set then the default value will be used.
25
- attr_accessor :download_concurrency
26
-
27
18
  # Timestamp of the most recent update of the remote.
28
19
  attr_accessor :pulp_last_updated
29
20
 
30
- # Timestamp of creation.
31
- attr_accessor :pulp_created
32
-
33
- # The proxy URL. Format: scheme://host:port
34
- attr_accessor :proxy_url
21
+ # The URL of an external content source.
22
+ attr_accessor :url
35
23
 
36
24
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
37
25
  attr_accessor :max_retries
38
26
 
39
- # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
40
- attr_accessor :sock_connect_timeout
27
+ # A PEM encoded client certificate used for authentication.
28
+ attr_accessor :client_cert
41
29
 
42
- # The URL of an external content source.
43
- attr_accessor :url
30
+ # If True, TLS peer validation must be performed.
31
+ attr_accessor :tls_validation
32
+
33
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
34
+ attr_accessor :total_timeout
35
+
36
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
37
+ attr_accessor :connect_timeout
38
+
39
+ # Limits requests per second for each concurrent downloader
40
+ attr_accessor :rate_limit
44
41
 
45
42
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
46
43
  attr_accessor :sock_read_timeout
47
44
 
45
+ # Total number of simultaneous connections. If not set then the default value will be used.
46
+ attr_accessor :download_concurrency
47
+
48
48
  # Headers for aiohttp.Clientsession
49
49
  attr_accessor :headers
50
50
 
51
- attr_accessor :pulp_labels
51
+ # The proxy URL. Format: scheme://host:port
52
+ attr_accessor :proxy_url
52
53
 
53
54
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
54
55
  attr_accessor :ca_cert
55
56
 
56
- attr_accessor :pulp_href
57
-
58
- # Limits requests per second for each concurrent downloader
59
- attr_accessor :rate_limit
60
-
61
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
62
- attr_accessor :total_timeout
57
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
58
+ attr_accessor :sock_connect_timeout
63
59
 
64
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
65
- attr_accessor :connect_timeout
60
+ attr_accessor :pulp_labels
66
61
 
67
62
  # List of hidden (write only) fields
68
63
  attr_accessor :hidden_fields
69
64
 
70
- # A PEM encoded client certificate used for authentication.
71
- attr_accessor :client_cert
65
+ # A unique name for this remote.
66
+ attr_accessor :name
67
+
68
+ attr_accessor :pulp_href
69
+
70
+ # Timestamp of creation.
71
+ attr_accessor :pulp_created
72
72
 
73
73
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
74
74
  attr_accessor :metadata_only
@@ -79,25 +79,25 @@ module PulpAnsibleClient
79
79
  # Attribute mapping from ruby-style variable name to JSON key.
80
80
  def self.attribute_map
81
81
  {
82
- :'name' => :'name',
83
- :'tls_validation' => :'tls_validation',
84
- :'download_concurrency' => :'download_concurrency',
85
82
  :'pulp_last_updated' => :'pulp_last_updated',
86
- :'pulp_created' => :'pulp_created',
87
- :'proxy_url' => :'proxy_url',
88
- :'max_retries' => :'max_retries',
89
- :'sock_connect_timeout' => :'sock_connect_timeout',
90
83
  :'url' => :'url',
84
+ :'max_retries' => :'max_retries',
85
+ :'client_cert' => :'client_cert',
86
+ :'tls_validation' => :'tls_validation',
87
+ :'total_timeout' => :'total_timeout',
88
+ :'connect_timeout' => :'connect_timeout',
89
+ :'rate_limit' => :'rate_limit',
91
90
  :'sock_read_timeout' => :'sock_read_timeout',
91
+ :'download_concurrency' => :'download_concurrency',
92
92
  :'headers' => :'headers',
93
- :'pulp_labels' => :'pulp_labels',
93
+ :'proxy_url' => :'proxy_url',
94
94
  :'ca_cert' => :'ca_cert',
95
- :'pulp_href' => :'pulp_href',
96
- :'rate_limit' => :'rate_limit',
97
- :'total_timeout' => :'total_timeout',
98
- :'connect_timeout' => :'connect_timeout',
95
+ :'sock_connect_timeout' => :'sock_connect_timeout',
96
+ :'pulp_labels' => :'pulp_labels',
99
97
  :'hidden_fields' => :'hidden_fields',
100
- :'client_cert' => :'client_cert',
98
+ :'name' => :'name',
99
+ :'pulp_href' => :'pulp_href',
100
+ :'pulp_created' => :'pulp_created',
101
101
  :'metadata_only' => :'metadata_only',
102
102
  :'git_ref' => :'git_ref'
103
103
  }
@@ -106,25 +106,25 @@ module PulpAnsibleClient
106
106
  # Attribute type mapping.
107
107
  def self.openapi_types
108
108
  {
109
- :'name' => :'String',
110
- :'tls_validation' => :'Boolean',
111
- :'download_concurrency' => :'Integer',
112
109
  :'pulp_last_updated' => :'DateTime',
113
- :'pulp_created' => :'DateTime',
114
- :'proxy_url' => :'String',
115
- :'max_retries' => :'Integer',
116
- :'sock_connect_timeout' => :'Float',
117
110
  :'url' => :'String',
111
+ :'max_retries' => :'Integer',
112
+ :'client_cert' => :'String',
113
+ :'tls_validation' => :'Boolean',
114
+ :'total_timeout' => :'Float',
115
+ :'connect_timeout' => :'Float',
116
+ :'rate_limit' => :'Integer',
118
117
  :'sock_read_timeout' => :'Float',
118
+ :'download_concurrency' => :'Integer',
119
119
  :'headers' => :'Array<Object>',
120
- :'pulp_labels' => :'Hash<String, String>',
120
+ :'proxy_url' => :'String',
121
121
  :'ca_cert' => :'String',
122
- :'pulp_href' => :'String',
123
- :'rate_limit' => :'Integer',
124
- :'total_timeout' => :'Float',
125
- :'connect_timeout' => :'Float',
122
+ :'sock_connect_timeout' => :'Float',
123
+ :'pulp_labels' => :'Hash<String, String>',
126
124
  :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
127
- :'client_cert' => :'String',
125
+ :'name' => :'String',
126
+ :'pulp_href' => :'String',
127
+ :'pulp_created' => :'DateTime',
128
128
  :'metadata_only' => :'Boolean',
129
129
  :'git_ref' => :'String'
130
130
  }
@@ -133,16 +133,16 @@ module PulpAnsibleClient
133
133
  # List of attributes with nullable: true
134
134
  def self.openapi_nullable
135
135
  Set.new([
136
- :'download_concurrency',
137
- :'proxy_url',
138
136
  :'max_retries',
139
- :'sock_connect_timeout',
140
- :'sock_read_timeout',
141
- :'ca_cert',
142
- :'rate_limit',
137
+ :'client_cert',
143
138
  :'total_timeout',
144
139
  :'connect_timeout',
145
- :'client_cert',
140
+ :'rate_limit',
141
+ :'sock_read_timeout',
142
+ :'download_concurrency',
143
+ :'proxy_url',
144
+ :'ca_cert',
145
+ :'sock_connect_timeout',
146
146
  ])
147
147
  end
148
148
 
@@ -161,76 +161,68 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
- if attributes.key?(:'name')
165
- self.name = attributes[:'name']
166
- end
167
-
168
- if attributes.key?(:'tls_validation')
169
- self.tls_validation = attributes[:'tls_validation']
164
+ if attributes.key?(:'pulp_last_updated')
165
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
170
166
  end
171
167
 
172
- if attributes.key?(:'download_concurrency')
173
- self.download_concurrency = attributes[:'download_concurrency']
168
+ if attributes.key?(:'url')
169
+ self.url = attributes[:'url']
174
170
  end
175
171
 
176
- if attributes.key?(:'pulp_last_updated')
177
- self.pulp_last_updated = attributes[:'pulp_last_updated']
172
+ if attributes.key?(:'max_retries')
173
+ self.max_retries = attributes[:'max_retries']
178
174
  end
179
175
 
180
- if attributes.key?(:'pulp_created')
181
- self.pulp_created = attributes[:'pulp_created']
176
+ if attributes.key?(:'client_cert')
177
+ self.client_cert = attributes[:'client_cert']
182
178
  end
183
179
 
184
- if attributes.key?(:'proxy_url')
185
- self.proxy_url = attributes[:'proxy_url']
180
+ if attributes.key?(:'tls_validation')
181
+ self.tls_validation = attributes[:'tls_validation']
186
182
  end
187
183
 
188
- if attributes.key?(:'max_retries')
189
- self.max_retries = attributes[:'max_retries']
184
+ if attributes.key?(:'total_timeout')
185
+ self.total_timeout = attributes[:'total_timeout']
190
186
  end
191
187
 
192
- if attributes.key?(:'sock_connect_timeout')
193
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
188
+ if attributes.key?(:'connect_timeout')
189
+ self.connect_timeout = attributes[:'connect_timeout']
194
190
  end
195
191
 
196
- if attributes.key?(:'url')
197
- self.url = attributes[:'url']
192
+ if attributes.key?(:'rate_limit')
193
+ self.rate_limit = attributes[:'rate_limit']
198
194
  end
199
195
 
200
196
  if attributes.key?(:'sock_read_timeout')
201
197
  self.sock_read_timeout = attributes[:'sock_read_timeout']
202
198
  end
203
199
 
200
+ if attributes.key?(:'download_concurrency')
201
+ self.download_concurrency = attributes[:'download_concurrency']
202
+ end
203
+
204
204
  if attributes.key?(:'headers')
205
205
  if (value = attributes[:'headers']).is_a?(Array)
206
206
  self.headers = value
207
207
  end
208
208
  end
209
209
 
210
- if attributes.key?(:'pulp_labels')
211
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
212
- self.pulp_labels = value
213
- end
210
+ if attributes.key?(:'proxy_url')
211
+ self.proxy_url = attributes[:'proxy_url']
214
212
  end
215
213
 
216
214
  if attributes.key?(:'ca_cert')
217
215
  self.ca_cert = attributes[:'ca_cert']
218
216
  end
219
217
 
220
- if attributes.key?(:'pulp_href')
221
- self.pulp_href = attributes[:'pulp_href']
222
- end
223
-
224
- if attributes.key?(:'rate_limit')
225
- self.rate_limit = attributes[:'rate_limit']
226
- end
227
-
228
- if attributes.key?(:'total_timeout')
229
- self.total_timeout = attributes[:'total_timeout']
218
+ if attributes.key?(:'sock_connect_timeout')
219
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
230
220
  end
231
221
 
232
- if attributes.key?(:'connect_timeout')
233
- self.connect_timeout = attributes[:'connect_timeout']
222
+ if attributes.key?(:'pulp_labels')
223
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
224
+ self.pulp_labels = value
225
+ end
234
226
  end
235
227
 
236
228
  if attributes.key?(:'hidden_fields')
@@ -239,8 +231,16 @@ module PulpAnsibleClient
239
231
  end
240
232
  end
241
233
 
242
- if attributes.key?(:'client_cert')
243
- self.client_cert = attributes[:'client_cert']
234
+ if attributes.key?(:'name')
235
+ self.name = attributes[:'name']
236
+ end
237
+
238
+ if attributes.key?(:'pulp_href')
239
+ self.pulp_href = attributes[:'pulp_href']
240
+ end
241
+
242
+ if attributes.key?(:'pulp_created')
243
+ self.pulp_created = attributes[:'pulp_created']
244
244
  end
245
245
 
246
246
  if attributes.key?(:'metadata_only')
@@ -256,32 +256,32 @@ module PulpAnsibleClient
256
256
  # @return Array for valid properties with the reasons
257
257
  def list_invalid_properties
258
258
  invalid_properties = Array.new
259
- if @name.nil?
260
- invalid_properties.push('invalid value for "name", name cannot be nil.')
261
- end
262
-
263
- if !@download_concurrency.nil? && @download_concurrency < 1
264
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
259
+ if @url.nil?
260
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
265
261
  end
266
262
 
267
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
268
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
263
+ if !@total_timeout.nil? && @total_timeout < 0.0
264
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
269
265
  end
270
266
 
271
- if @url.nil?
272
- invalid_properties.push('invalid value for "url", url cannot be nil.')
267
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
268
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
273
269
  end
274
270
 
275
271
  if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
276
272
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
277
273
  end
278
274
 
279
- if !@total_timeout.nil? && @total_timeout < 0.0
280
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
275
+ if !@download_concurrency.nil? && @download_concurrency < 1
276
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
281
277
  end
282
278
 
283
- if !@connect_timeout.nil? && @connect_timeout < 0.0
284
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
279
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
280
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
281
+ end
282
+
283
+ if @name.nil?
284
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
285
285
  end
286
286
 
287
287
  invalid_properties
@@ -290,34 +290,34 @@ module PulpAnsibleClient
290
290
  # Check to see if the all the properties in the model are valid
291
291
  # @return true if the model is valid
292
292
  def valid?
293
- return false if @name.nil?
294
- return false if !@download_concurrency.nil? && @download_concurrency < 1
295
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
296
293
  return false if @url.nil?
297
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
298
294
  return false if !@total_timeout.nil? && @total_timeout < 0.0
299
295
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
296
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
297
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
298
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
299
+ return false if @name.nil?
300
300
  true
301
301
  end
302
302
 
303
303
  # Custom attribute writer method with validation
304
- # @param [Object] download_concurrency Value to be assigned
305
- def download_concurrency=(download_concurrency)
306
- if !download_concurrency.nil? && download_concurrency < 1
307
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
304
+ # @param [Object] total_timeout Value to be assigned
305
+ def total_timeout=(total_timeout)
306
+ if !total_timeout.nil? && total_timeout < 0.0
307
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
308
308
  end
309
309
 
310
- @download_concurrency = download_concurrency
310
+ @total_timeout = total_timeout
311
311
  end
312
312
 
313
313
  # Custom attribute writer method with validation
314
- # @param [Object] sock_connect_timeout Value to be assigned
315
- def sock_connect_timeout=(sock_connect_timeout)
316
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
317
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
314
+ # @param [Object] connect_timeout Value to be assigned
315
+ def connect_timeout=(connect_timeout)
316
+ if !connect_timeout.nil? && connect_timeout < 0.0
317
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
318
318
  end
319
319
 
320
- @sock_connect_timeout = sock_connect_timeout
320
+ @connect_timeout = connect_timeout
321
321
  end
322
322
 
323
323
  # Custom attribute writer method with validation
@@ -331,23 +331,23 @@ module PulpAnsibleClient
331
331
  end
332
332
 
333
333
  # Custom attribute writer method with validation
334
- # @param [Object] total_timeout Value to be assigned
335
- def total_timeout=(total_timeout)
336
- if !total_timeout.nil? && total_timeout < 0.0
337
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
334
+ # @param [Object] download_concurrency Value to be assigned
335
+ def download_concurrency=(download_concurrency)
336
+ if !download_concurrency.nil? && download_concurrency < 1
337
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
338
338
  end
339
339
 
340
- @total_timeout = total_timeout
340
+ @download_concurrency = download_concurrency
341
341
  end
342
342
 
343
343
  # Custom attribute writer method with validation
344
- # @param [Object] connect_timeout Value to be assigned
345
- def connect_timeout=(connect_timeout)
346
- if !connect_timeout.nil? && connect_timeout < 0.0
347
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
344
+ # @param [Object] sock_connect_timeout Value to be assigned
345
+ def sock_connect_timeout=(sock_connect_timeout)
346
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
347
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
348
348
  end
349
349
 
350
- @connect_timeout = connect_timeout
350
+ @sock_connect_timeout = sock_connect_timeout
351
351
  end
352
352
 
353
353
  # Checks equality by comparing each attribute.
@@ -355,25 +355,25 @@ module PulpAnsibleClient
355
355
  def ==(o)
356
356
  return true if self.equal?(o)
357
357
  self.class == o.class &&
358
- name == o.name &&
359
- tls_validation == o.tls_validation &&
360
- download_concurrency == o.download_concurrency &&
361
358
  pulp_last_updated == o.pulp_last_updated &&
362
- pulp_created == o.pulp_created &&
363
- proxy_url == o.proxy_url &&
364
- max_retries == o.max_retries &&
365
- sock_connect_timeout == o.sock_connect_timeout &&
366
359
  url == o.url &&
360
+ max_retries == o.max_retries &&
361
+ client_cert == o.client_cert &&
362
+ tls_validation == o.tls_validation &&
363
+ total_timeout == o.total_timeout &&
364
+ connect_timeout == o.connect_timeout &&
365
+ rate_limit == o.rate_limit &&
367
366
  sock_read_timeout == o.sock_read_timeout &&
367
+ download_concurrency == o.download_concurrency &&
368
368
  headers == o.headers &&
369
- pulp_labels == o.pulp_labels &&
369
+ proxy_url == o.proxy_url &&
370
370
  ca_cert == o.ca_cert &&
371
- pulp_href == o.pulp_href &&
372
- rate_limit == o.rate_limit &&
373
- total_timeout == o.total_timeout &&
374
- connect_timeout == o.connect_timeout &&
371
+ sock_connect_timeout == o.sock_connect_timeout &&
372
+ pulp_labels == o.pulp_labels &&
375
373
  hidden_fields == o.hidden_fields &&
376
- client_cert == o.client_cert &&
374
+ name == o.name &&
375
+ pulp_href == o.pulp_href &&
376
+ pulp_created == o.pulp_created &&
377
377
  metadata_only == o.metadata_only &&
378
378
  git_ref == o.git_ref
379
379
  end
@@ -387,7 +387,7 @@ module PulpAnsibleClient
387
387
  # Calculates hash code according to all attributes.
388
388
  # @return [Integer] Hash code
389
389
  def hash
390
- [name, tls_validation, download_concurrency, pulp_last_updated, pulp_created, proxy_url, max_retries, sock_connect_timeout, url, sock_read_timeout, headers, pulp_labels, ca_cert, pulp_href, rate_limit, total_timeout, connect_timeout, hidden_fields, client_cert, metadata_only, git_ref].hash
390
+ [pulp_last_updated, url, max_retries, client_cert, tls_validation, total_timeout, connect_timeout, rate_limit, sock_read_timeout, download_concurrency, headers, proxy_url, ca_cert, sock_connect_timeout, pulp_labels, hidden_fields, name, pulp_href, pulp_created, metadata_only, git_ref].hash
391
391
  end
392
392
 
393
393
  # Builds the object from hash
@@ -20,6 +20,9 @@ module PulpAnsibleClient
20
20
  # Timestamp of creation.
21
21
  attr_accessor :pulp_created
22
22
 
23
+ # Timestamp of the most recent update of the remote.
24
+ attr_accessor :pulp_last_updated
25
+
23
26
  # A unique name for this remote.
24
27
  attr_accessor :name
25
28
 
@@ -40,9 +43,6 @@ module PulpAnsibleClient
40
43
 
41
44
  attr_accessor :pulp_labels
42
45
 
43
- # Timestamp of the most recent update of the remote.
44
- attr_accessor :pulp_last_updated
45
-
46
46
  # Total number of simultaneous connections. If not set then the default value will be used.
47
47
  attr_accessor :download_concurrency
48
48
 
@@ -78,6 +78,7 @@ module PulpAnsibleClient
78
78
  {
79
79
  :'pulp_href' => :'pulp_href',
80
80
  :'pulp_created' => :'pulp_created',
81
+ :'pulp_last_updated' => :'pulp_last_updated',
81
82
  :'name' => :'name',
82
83
  :'url' => :'url',
83
84
  :'ca_cert' => :'ca_cert',
@@ -85,7 +86,6 @@ module PulpAnsibleClient
85
86
  :'tls_validation' => :'tls_validation',
86
87
  :'proxy_url' => :'proxy_url',
87
88
  :'pulp_labels' => :'pulp_labels',
88
- :'pulp_last_updated' => :'pulp_last_updated',
89
89
  :'download_concurrency' => :'download_concurrency',
90
90
  :'max_retries' => :'max_retries',
91
91
  :'policy' => :'policy',
@@ -104,6 +104,7 @@ module PulpAnsibleClient
104
104
  {
105
105
  :'pulp_href' => :'String',
106
106
  :'pulp_created' => :'DateTime',
107
+ :'pulp_last_updated' => :'DateTime',
107
108
  :'name' => :'String',
108
109
  :'url' => :'String',
109
110
  :'ca_cert' => :'String',
@@ -111,7 +112,6 @@ module PulpAnsibleClient
111
112
  :'tls_validation' => :'Boolean',
112
113
  :'proxy_url' => :'String',
113
114
  :'pulp_labels' => :'Hash<String, String>',
114
- :'pulp_last_updated' => :'DateTime',
115
115
  :'download_concurrency' => :'Integer',
116
116
  :'max_retries' => :'Integer',
117
117
  :'policy' => :'PolicyEnum',
@@ -164,6 +164,10 @@ module PulpAnsibleClient
164
164
  self.pulp_created = attributes[:'pulp_created']
165
165
  end
166
166
 
167
+ if attributes.key?(:'pulp_last_updated')
168
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
169
+ end
170
+
167
171
  if attributes.key?(:'name')
168
172
  self.name = attributes[:'name']
169
173
  end
@@ -194,10 +198,6 @@ module PulpAnsibleClient
194
198
  end
195
199
  end
196
200
 
197
- if attributes.key?(:'pulp_last_updated')
198
- self.pulp_last_updated = attributes[:'pulp_last_updated']
199
- end
200
-
201
201
  if attributes.key?(:'download_concurrency')
202
202
  self.download_concurrency = attributes[:'download_concurrency']
203
203
  end
@@ -348,6 +348,7 @@ module PulpAnsibleClient
348
348
  self.class == o.class &&
349
349
  pulp_href == o.pulp_href &&
350
350
  pulp_created == o.pulp_created &&
351
+ pulp_last_updated == o.pulp_last_updated &&
351
352
  name == o.name &&
352
353
  url == o.url &&
353
354
  ca_cert == o.ca_cert &&
@@ -355,7 +356,6 @@ module PulpAnsibleClient
355
356
  tls_validation == o.tls_validation &&
356
357
  proxy_url == o.proxy_url &&
357
358
  pulp_labels == o.pulp_labels &&
358
- pulp_last_updated == o.pulp_last_updated &&
359
359
  download_concurrency == o.download_concurrency &&
360
360
  max_retries == o.max_retries &&
361
361
  policy == o.policy &&
@@ -377,7 +377,7 @@ module PulpAnsibleClient
377
377
  # Calculates hash code according to all attributes.
378
378
  # @return [Integer] Hash code
379
379
  def hash
380
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields].hash
380
+ [pulp_href, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields].hash
381
381
  end
382
382
 
383
383
  # Builds the object from hash