pulp_ansible_client 0.21.6 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) 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/AnsibleCollectionVersion.md +4 -4
  9. data/docs/AnsibleCollectionVersionResponse.md +10 -8
  10. data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
  11. data/docs/AnsibleCollectionsApi.md +60 -0
  12. data/docs/AnsibleGitRemote.md +26 -26
  13. data/docs/AnsibleGitRemoteResponse.md +26 -26
  14. data/docs/AnsibleRoleRemoteResponse.md +2 -2
  15. data/docs/AnsibleRoleResponse.md +4 -2
  16. data/docs/CollectionImportDetailResponse.md +2 -2
  17. data/docs/CollectionMetadataResponse.md +2 -2
  18. data/docs/CollectionSummaryResponse.md +2 -2
  19. data/docs/CollectionVersionDocsResponse.md +1 -1
  20. data/docs/CollectionVersionResponse.md +2 -2
  21. data/docs/ContentCollectionDeprecationsApi.md +10 -10
  22. data/docs/ContentCollectionVersionsApi.md +4 -4
  23. data/docs/Copy.md +1 -1
  24. data/docs/PaginatedGalaxyRoleResponseList.md +2 -2
  25. data/docs/PaginatedGalaxyRoleVersionResponseList.md +2 -2
  26. data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
  27. data/docs/PaginatedTagResponseList.md +2 -2
  28. data/docs/PaginatedansibleAnsibleCollectionDeprecatedResponseList.md +23 -0
  29. data/docs/PaginatedansibleAnsibleDistributionResponseList.md +2 -2
  30. data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +2 -2
  31. data/docs/PaginatedansibleAnsibleRepositoryResponseList.md +2 -2
  32. data/docs/PaginatedansibleCollectionRemoteResponseList.md +2 -2
  33. data/docs/PaginatedansibleCollectionResponseList.md +2 -2
  34. data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +2 -2
  35. data/docs/PaginatedansibleCollectionVersionResponseList.md +2 -2
  36. data/docs/PaginatedansibleCollectionVersionSignatureResponseList.md +2 -2
  37. data/docs/PaginatedansibleGitRemoteResponseList.md +2 -2
  38. data/docs/PaginatedansibleRoleRemoteResponseList.md +2 -2
  39. data/docs/PaginatedansibleRoleResponseList.md +2 -2
  40. data/docs/PatchedansibleGitRemote.md +26 -26
  41. data/docs/RepositoryResponse.md +2 -0
  42. data/docs/RepositoryVersionResponse.md +2 -0
  43. data/docs/VersionsApi.md +0 -55
  44. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +68 -0
  45. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -20
  46. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  47. data/lib/pulp_ansible_client/api/versions_api.rb +0 -69
  48. data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_ansible_collection_deprecated.rb} +15 -5
  49. data/lib/pulp_ansible_client/models/{galaxy_collection_version_response.rb → ansible_ansible_collection_deprecated_response.rb} +45 -54
  50. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +11 -1
  51. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +11 -11
  52. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +10 -0
  53. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -18
  54. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +25 -15
  55. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +11 -1
  56. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +233 -233
  57. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +141 -141
  58. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +11 -11
  59. data/lib/pulp_ansible_client/models/ansible_role_response.rb +18 -8
  60. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
  61. data/lib/pulp_ansible_client/models/collection_metadata_response.rb +2 -2
  62. data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
  63. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  64. data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
  65. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  66. data/lib/pulp_ansible_client/models/paginated_galaxy_role_response_list.rb +10 -0
  67. data/lib/pulp_ansible_client/models/paginated_galaxy_role_version_response_list.rb +10 -0
  68. data/lib/pulp_ansible_client/models/paginated_repository_version_response_list.rb +10 -0
  69. data/lib/pulp_ansible_client/models/paginated_tag_response_list.rb +10 -0
  70. data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_response_list.rb → paginatedansible_ansible_collection_deprecated_response_list.rb} +14 -4
  71. data/lib/pulp_ansible_client/models/paginatedansible_ansible_distribution_response_list.rb +10 -0
  72. data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +10 -0
  73. data/lib/pulp_ansible_client/models/paginatedansible_ansible_repository_response_list.rb +10 -0
  74. data/lib/pulp_ansible_client/models/paginatedansible_collection_remote_response_list.rb +10 -0
  75. data/lib/pulp_ansible_client/models/paginatedansible_collection_response_list.rb +10 -0
  76. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +10 -0
  77. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_response_list.rb +10 -0
  78. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_signature_response_list.rb +10 -0
  79. data/lib/pulp_ansible_client/models/paginatedansible_git_remote_response_list.rb +10 -0
  80. data/lib/pulp_ansible_client/models/paginatedansible_role_remote_response_list.rb +10 -0
  81. data/lib/pulp_ansible_client/models/paginatedansible_role_response_list.rb +10 -0
  82. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +222 -222
  83. data/lib/pulp_ansible_client/models/repository_response.rb +11 -1
  84. data/lib/pulp_ansible_client/models/repository_version_response.rb +11 -1
  85. data/lib/pulp_ansible_client/version.rb +1 -1
  86. data/lib/pulp_ansible_client.rb +3 -9
  87. data/spec/api/ansible_collections_api_spec.rb +14 -0
  88. data/spec/api/content_collection_deprecations_api_spec.rb +5 -5
  89. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  90. data/spec/api/versions_api_spec.rb +0 -14
  91. data/spec/models/{galaxy_collection_version_response_spec.rb → ansible_ansible_collection_deprecated_response_spec.rb} +11 -17
  92. data/spec/models/{ansible_collection_spec.rb → ansible_ansible_collection_deprecated_spec.rb} +12 -6
  93. data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
  94. data/spec/models/ansible_collection_remote_response_spec.rb +6 -6
  95. data/spec/models/ansible_collection_version_response_spec.rb +8 -2
  96. data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
  97. data/spec/models/ansible_collection_version_spec.rb +3 -3
  98. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  99. data/spec/models/ansible_git_remote_spec.rb +18 -18
  100. data/spec/models/ansible_role_remote_response_spec.rb +6 -6
  101. data/spec/models/ansible_role_response_spec.rb +7 -1
  102. data/spec/models/{paginated_galaxy_collection_version_response_list_spec.rb → paginatedansible_ansible_collection_deprecated_response_list_spec.rb} +6 -6
  103. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  104. data/spec/models/repository_response_spec.rb +6 -0
  105. data/spec/models/repository_version_response_spec.rb +6 -0
  106. metadata +140 -164
  107. data/docs/ApiCollectionsApi.md +0 -112
  108. data/docs/GalaxyCollection.md +0 -23
  109. data/docs/GalaxyCollectionResponse.md +0 -31
  110. data/docs/GalaxyCollectionVersionResponse.md +0 -27
  111. data/docs/GalaxyDetailApi.md +0 -61
  112. data/docs/PaginatedGalaxyCollectionResponseList.md +0 -23
  113. data/docs/PaginatedGalaxyCollectionVersionResponseList.md +0 -23
  114. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +0 -66
  115. data/lib/pulp_ansible_client/api/api_collections_api.rb +0 -159
  116. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +0 -88
  117. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +0 -104
  118. data/lib/pulp_ansible_client/models/galaxy_collection.rb +0 -292
  119. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -294
  120. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_version_response_list.rb +0 -237
  121. data/spec/api/api_collections_api_spec.rb +0 -61
  122. data/spec/api/galaxy_detail_api_spec.rb +0 -48
  123. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +0 -51
  124. data/spec/models/galaxy_collection_response_spec.rb +0 -83
  125. data/spec/models/galaxy_collection_spec.rb +0 -59
  126. 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
- attr_accessor :pulp_labels
19
-
20
- # A unique name for this remote.
21
- attr_accessor :name
22
-
23
- # A PEM encoded client certificate used for authentication.
24
- attr_accessor :client_cert
18
+ # Timestamp of the most recent update of the remote.
19
+ attr_accessor :pulp_last_updated
25
20
 
26
- # Timestamp of creation.
27
- attr_accessor :pulp_created
21
+ # The URL of an external content source.
22
+ attr_accessor :url
28
23
 
29
24
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
30
25
  attr_accessor :max_retries
31
26
 
32
- # Timestamp of the most recent update of the remote.
33
- attr_accessor :pulp_last_updated
27
+ # A PEM encoded client certificate used for authentication.
28
+ attr_accessor :client_cert
34
29
 
35
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
36
- attr_accessor :ca_cert
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
37
35
 
38
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.
39
37
  attr_accessor :connect_timeout
40
38
 
41
- # If True, TLS peer validation must be performed.
42
- attr_accessor :tls_validation
39
+ # Limits requests per second for each concurrent downloader
40
+ attr_accessor :rate_limit
41
+
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.
43
+ attr_accessor :sock_read_timeout
44
+
45
+ # Total number of simultaneous connections. If not set then the default value will be used.
46
+ attr_accessor :download_concurrency
43
47
 
44
48
  # Headers for aiohttp.Clientsession
45
49
  attr_accessor :headers
46
50
 
51
+ # The proxy URL. Format: scheme://host:port
52
+ attr_accessor :proxy_url
53
+
54
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
55
+ attr_accessor :ca_cert
56
+
47
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.
48
58
  attr_accessor :sock_connect_timeout
49
59
 
50
- # The URL of an external content source.
51
- attr_accessor :url
60
+ attr_accessor :pulp_labels
52
61
 
53
62
  # List of hidden (write only) fields
54
63
  attr_accessor :hidden_fields
55
64
 
56
- # Limits requests per second for each concurrent downloader
57
- attr_accessor :rate_limit
58
-
59
- # 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.
60
- attr_accessor :sock_read_timeout
65
+ # A unique name for this remote.
66
+ attr_accessor :name
61
67
 
62
68
  attr_accessor :pulp_href
63
69
 
64
- # Total number of simultaneous connections. If not set then the default value will be used.
65
- attr_accessor :download_concurrency
66
-
67
- # The proxy URL. Format: scheme://host:port
68
- attr_accessor :proxy_url
69
-
70
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
71
- attr_accessor :total_timeout
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
- :'pulp_labels' => :'pulp_labels',
83
- :'name' => :'name',
84
- :'client_cert' => :'client_cert',
85
- :'pulp_created' => :'pulp_created',
86
- :'max_retries' => :'max_retries',
87
82
  :'pulp_last_updated' => :'pulp_last_updated',
88
- :'ca_cert' => :'ca_cert',
89
- :'connect_timeout' => :'connect_timeout',
90
- :'tls_validation' => :'tls_validation',
91
- :'headers' => :'headers',
92
- :'sock_connect_timeout' => :'sock_connect_timeout',
93
83
  :'url' => :'url',
94
- :'hidden_fields' => :'hidden_fields',
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',
95
89
  :'rate_limit' => :'rate_limit',
96
90
  :'sock_read_timeout' => :'sock_read_timeout',
97
- :'pulp_href' => :'pulp_href',
98
91
  :'download_concurrency' => :'download_concurrency',
92
+ :'headers' => :'headers',
99
93
  :'proxy_url' => :'proxy_url',
100
- :'total_timeout' => :'total_timeout',
94
+ :'ca_cert' => :'ca_cert',
95
+ :'sock_connect_timeout' => :'sock_connect_timeout',
96
+ :'pulp_labels' => :'pulp_labels',
97
+ :'hidden_fields' => :'hidden_fields',
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
- :'pulp_labels' => :'Hash<String, String>',
110
- :'name' => :'String',
111
- :'client_cert' => :'String',
112
- :'pulp_created' => :'DateTime',
113
- :'max_retries' => :'Integer',
114
109
  :'pulp_last_updated' => :'DateTime',
115
- :'ca_cert' => :'String',
116
- :'connect_timeout' => :'Float',
117
- :'tls_validation' => :'Boolean',
118
- :'headers' => :'Array<Object>',
119
- :'sock_connect_timeout' => :'Float',
120
110
  :'url' => :'String',
121
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
111
+ :'max_retries' => :'Integer',
112
+ :'client_cert' => :'String',
113
+ :'tls_validation' => :'Boolean',
114
+ :'total_timeout' => :'Float',
115
+ :'connect_timeout' => :'Float',
122
116
  :'rate_limit' => :'Integer',
123
117
  :'sock_read_timeout' => :'Float',
124
- :'pulp_href' => :'String',
125
118
  :'download_concurrency' => :'Integer',
119
+ :'headers' => :'Array<Object>',
126
120
  :'proxy_url' => :'String',
127
- :'total_timeout' => :'Float',
121
+ :'ca_cert' => :'String',
122
+ :'sock_connect_timeout' => :'Float',
123
+ :'pulp_labels' => :'Hash<String, String>',
124
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
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
- :'client_cert',
137
136
  :'max_retries',
138
- :'ca_cert',
137
+ :'client_cert',
138
+ :'total_timeout',
139
139
  :'connect_timeout',
140
- :'sock_connect_timeout',
141
140
  :'rate_limit',
142
141
  :'sock_read_timeout',
143
142
  :'download_concurrency',
144
143
  :'proxy_url',
145
- :'total_timeout',
144
+ :'ca_cert',
145
+ :'sock_connect_timeout',
146
146
  ])
147
147
  end
148
148
 
@@ -161,42 +161,44 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
- if attributes.key?(:'pulp_labels')
165
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
166
- self.pulp_labels = value
167
- end
164
+ if attributes.key?(:'pulp_last_updated')
165
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
168
166
  end
169
167
 
170
- if attributes.key?(:'name')
171
- self.name = attributes[:'name']
168
+ if attributes.key?(:'url')
169
+ self.url = attributes[:'url']
170
+ end
171
+
172
+ if attributes.key?(:'max_retries')
173
+ self.max_retries = attributes[:'max_retries']
172
174
  end
173
175
 
174
176
  if attributes.key?(:'client_cert')
175
177
  self.client_cert = attributes[:'client_cert']
176
178
  end
177
179
 
178
- if attributes.key?(:'pulp_created')
179
- self.pulp_created = attributes[:'pulp_created']
180
+ if attributes.key?(:'tls_validation')
181
+ self.tls_validation = attributes[:'tls_validation']
180
182
  end
181
183
 
182
- if attributes.key?(:'max_retries')
183
- self.max_retries = attributes[:'max_retries']
184
+ if attributes.key?(:'total_timeout')
185
+ self.total_timeout = attributes[:'total_timeout']
184
186
  end
185
187
 
186
- if attributes.key?(:'pulp_last_updated')
187
- self.pulp_last_updated = attributes[:'pulp_last_updated']
188
+ if attributes.key?(:'connect_timeout')
189
+ self.connect_timeout = attributes[:'connect_timeout']
188
190
  end
189
191
 
190
- if attributes.key?(:'ca_cert')
191
- self.ca_cert = attributes[:'ca_cert']
192
+ if attributes.key?(:'rate_limit')
193
+ self.rate_limit = attributes[:'rate_limit']
192
194
  end
193
195
 
194
- if attributes.key?(:'connect_timeout')
195
- self.connect_timeout = attributes[:'connect_timeout']
196
+ if attributes.key?(:'sock_read_timeout')
197
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
196
198
  end
197
199
 
198
- if attributes.key?(:'tls_validation')
199
- self.tls_validation = attributes[:'tls_validation']
200
+ if attributes.key?(:'download_concurrency')
201
+ self.download_concurrency = attributes[:'download_concurrency']
200
202
  end
201
203
 
202
204
  if attributes.key?(:'headers')
@@ -205,12 +207,22 @@ module PulpAnsibleClient
205
207
  end
206
208
  end
207
209
 
210
+ if attributes.key?(:'proxy_url')
211
+ self.proxy_url = attributes[:'proxy_url']
212
+ end
213
+
214
+ if attributes.key?(:'ca_cert')
215
+ self.ca_cert = attributes[:'ca_cert']
216
+ end
217
+
208
218
  if attributes.key?(:'sock_connect_timeout')
209
219
  self.sock_connect_timeout = attributes[:'sock_connect_timeout']
210
220
  end
211
221
 
212
- if attributes.key?(:'url')
213
- self.url = attributes[:'url']
222
+ if attributes.key?(:'pulp_labels')
223
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
224
+ self.pulp_labels = value
225
+ end
214
226
  end
215
227
 
216
228
  if attributes.key?(:'hidden_fields')
@@ -219,28 +231,16 @@ module PulpAnsibleClient
219
231
  end
220
232
  end
221
233
 
222
- if attributes.key?(:'rate_limit')
223
- self.rate_limit = attributes[:'rate_limit']
224
- end
225
-
226
- if attributes.key?(:'sock_read_timeout')
227
- self.sock_read_timeout = attributes[:'sock_read_timeout']
234
+ if attributes.key?(:'name')
235
+ self.name = attributes[:'name']
228
236
  end
229
237
 
230
238
  if attributes.key?(:'pulp_href')
231
239
  self.pulp_href = attributes[:'pulp_href']
232
240
  end
233
241
 
234
- if attributes.key?(:'download_concurrency')
235
- self.download_concurrency = attributes[:'download_concurrency']
236
- end
237
-
238
- if attributes.key?(:'proxy_url')
239
- self.proxy_url = attributes[:'proxy_url']
240
- end
241
-
242
- if attributes.key?(:'total_timeout')
243
- self.total_timeout = attributes[:'total_timeout']
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,20 +256,16 @@ 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 !@connect_timeout.nil? && @connect_timeout < 0.0
264
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
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
@@ -280,8 +276,12 @@ module PulpAnsibleClient
280
276
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
281
277
  end
282
278
 
283
- if !@total_timeout.nil? && @total_timeout < 0.0
284
- invalid_properties.push('invalid value for "total_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 !@connect_timeout.nil? && @connect_timeout < 0.0
295
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
296
293
  return false if @url.nil?
294
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
295
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
297
296
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
298
297
  return false if !@download_concurrency.nil? && @download_concurrency < 1
299
- return false if !@total_timeout.nil? && @total_timeout < 0.0
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] connect_timeout Value to be assigned
305
- def connect_timeout=(connect_timeout)
306
- if !connect_timeout.nil? && connect_timeout < 0.0
307
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
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
- @connect_timeout = connect_timeout
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
@@ -341,13 +341,13 @@ module PulpAnsibleClient
341
341
  end
342
342
 
343
343
  # Custom attribute writer method with validation
344
- # @param [Object] total_timeout Value to be assigned
345
- def total_timeout=(total_timeout)
346
- if !total_timeout.nil? && total_timeout < 0.0
347
- fail ArgumentError, 'invalid value for "total_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
- @total_timeout = total_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
- pulp_labels == o.pulp_labels &&
359
- name == o.name &&
360
- client_cert == o.client_cert &&
361
- pulp_created == o.pulp_created &&
362
- max_retries == o.max_retries &&
363
358
  pulp_last_updated == o.pulp_last_updated &&
364
- ca_cert == o.ca_cert &&
365
- connect_timeout == o.connect_timeout &&
366
- tls_validation == o.tls_validation &&
367
- headers == o.headers &&
368
- sock_connect_timeout == o.sock_connect_timeout &&
369
359
  url == o.url &&
370
- hidden_fields == o.hidden_fields &&
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 &&
371
365
  rate_limit == o.rate_limit &&
372
366
  sock_read_timeout == o.sock_read_timeout &&
373
- pulp_href == o.pulp_href &&
374
367
  download_concurrency == o.download_concurrency &&
368
+ headers == o.headers &&
375
369
  proxy_url == o.proxy_url &&
376
- total_timeout == o.total_timeout &&
370
+ ca_cert == o.ca_cert &&
371
+ sock_connect_timeout == o.sock_connect_timeout &&
372
+ pulp_labels == o.pulp_labels &&
373
+ hidden_fields == o.hidden_fields &&
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
- [pulp_labels, name, client_cert, pulp_created, max_retries, pulp_last_updated, ca_cert, connect_timeout, tls_validation, headers, sock_connect_timeout, url, hidden_fields, rate_limit, sock_read_timeout, pulp_href, download_concurrency, proxy_url, total_timeout, 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
@@ -15,14 +15,17 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
18
- # Timestamp of creation.
19
- attr_accessor :pulp_created
18
+ # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
19
+ attr_accessor :pulp_last_updated
20
20
 
21
21
  # Artifact file representing the physical content
22
22
  attr_accessor :artifact
23
23
 
24
24
  attr_accessor :pulp_href
25
25
 
26
+ # Timestamp of creation.
27
+ attr_accessor :pulp_created
28
+
26
29
  attr_accessor :version
27
30
 
28
31
  attr_accessor :name
@@ -32,9 +35,10 @@ module PulpAnsibleClient
32
35
  # Attribute mapping from ruby-style variable name to JSON key.
33
36
  def self.attribute_map
34
37
  {
35
- :'pulp_created' => :'pulp_created',
38
+ :'pulp_last_updated' => :'pulp_last_updated',
36
39
  :'artifact' => :'artifact',
37
40
  :'pulp_href' => :'pulp_href',
41
+ :'pulp_created' => :'pulp_created',
38
42
  :'version' => :'version',
39
43
  :'name' => :'name',
40
44
  :'namespace' => :'namespace'
@@ -44,9 +48,10 @@ module PulpAnsibleClient
44
48
  # Attribute type mapping.
45
49
  def self.openapi_types
46
50
  {
47
- :'pulp_created' => :'DateTime',
51
+ :'pulp_last_updated' => :'DateTime',
48
52
  :'artifact' => :'String',
49
53
  :'pulp_href' => :'String',
54
+ :'pulp_created' => :'DateTime',
50
55
  :'version' => :'String',
51
56
  :'name' => :'String',
52
57
  :'namespace' => :'String'
@@ -74,8 +79,8 @@ module PulpAnsibleClient
74
79
  h[k.to_sym] = v
75
80
  }
76
81
 
77
- if attributes.key?(:'pulp_created')
78
- self.pulp_created = attributes[:'pulp_created']
82
+ if attributes.key?(:'pulp_last_updated')
83
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
79
84
  end
80
85
 
81
86
  if attributes.key?(:'artifact')
@@ -86,6 +91,10 @@ module PulpAnsibleClient
86
91
  self.pulp_href = attributes[:'pulp_href']
87
92
  end
88
93
 
94
+ if attributes.key?(:'pulp_created')
95
+ self.pulp_created = attributes[:'pulp_created']
96
+ end
97
+
89
98
  if attributes.key?(:'version')
90
99
  self.version = attributes[:'version']
91
100
  end
@@ -137,9 +146,10 @@ module PulpAnsibleClient
137
146
  def ==(o)
138
147
  return true if self.equal?(o)
139
148
  self.class == o.class &&
140
- pulp_created == o.pulp_created &&
149
+ pulp_last_updated == o.pulp_last_updated &&
141
150
  artifact == o.artifact &&
142
151
  pulp_href == o.pulp_href &&
152
+ pulp_created == o.pulp_created &&
143
153
  version == o.version &&
144
154
  name == o.name &&
145
155
  namespace == o.namespace
@@ -154,7 +164,7 @@ module PulpAnsibleClient
154
164
  # Calculates hash code according to all attributes.
155
165
  # @return [Integer] Hash code
156
166
  def hash
157
- [pulp_created, artifact, pulp_href, version, name, namespace].hash
167
+ [pulp_last_updated, artifact, pulp_href, pulp_created, version, name, namespace].hash
158
168
  end
159
169
 
160
170
  # Builds the object from hash
@@ -54,8 +54,8 @@ module PulpAnsibleClient
54
54
  :'updated_at' => :'DateTime',
55
55
  :'started_at' => :'DateTime',
56
56
  :'finished_at' => :'DateTime',
57
- :'error' => :'Object',
58
- :'messages' => :'Object'
57
+ :'error' => :'AnyType',
58
+ :'messages' => :'AnyType'
59
59
  }
60
60
  end
61
61
 
@@ -55,8 +55,8 @@ module PulpAnsibleClient
55
55
  def self.openapi_types
56
56
  {
57
57
  :'authors' => :'Array<String>',
58
- :'contents' => :'Object',
59
- :'dependencies' => :'Object',
58
+ :'contents' => :'AnyType',
59
+ :'dependencies' => :'AnyType',
60
60
  :'description' => :'String',
61
61
  :'documentation' => :'String',
62
62
  :'homepage' => :'String',