pulp_ansible_client 0.16.2 → 0.17.0.dev1676430674

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulp_ansible_client might be problematic. Click here for more details.

Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -7
  3. data/docs/AnsibleAnsibleRepository.md +1 -1
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +4 -2
  5. data/docs/AnsibleCollectionRemote.md +1 -1
  6. data/docs/AnsibleCollectionRemoteResponse.md +4 -2
  7. data/docs/AnsibleCollectionVersion.md +3 -3
  8. data/docs/AnsibleCollectionVersionResponse.md +2 -2
  9. data/docs/AnsibleCollectionsApi.md +2 -6
  10. data/docs/AnsibleGitRemote.md +25 -25
  11. data/docs/AnsibleGitRemoteResponse.md +25 -25
  12. data/docs/AnsibleRoleRemote.md +1 -1
  13. data/docs/AnsibleRoleRemoteResponse.md +1 -1
  14. data/docs/AnsibleRoleResponse.md +2 -2
  15. data/docs/CollectionRefResponse.md +1 -1
  16. data/docs/CollectionResponse.md +6 -6
  17. data/docs/CollectionVersionListResponse.md +1 -1
  18. data/docs/CollectionVersionResponse.md +4 -4
  19. data/docs/ContentCollectionDeprecationsApi.md +2 -6
  20. data/docs/ContentCollectionSignaturesApi.md +2 -6
  21. data/docs/ContentCollectionVersionsApi.md +4 -8
  22. data/docs/ContentRolesApi.md +2 -6
  23. data/docs/DistributionsAnsibleApi.md +2 -6
  24. data/docs/GalaxyCollectionResponse.md +4 -4
  25. data/docs/GalaxyCollectionVersionResponse.md +4 -4
  26. data/docs/GalaxyRoleResponse.md +1 -1
  27. data/docs/GalaxyRoleVersionResponse.md +1 -1
  28. data/docs/PatchedansibleAnsibleRepository.md +1 -1
  29. data/docs/PatchedansibleCollectionRemote.md +1 -1
  30. data/docs/PatchedansibleGitRemote.md +25 -25
  31. data/docs/PatchedansibleRoleRemote.md +1 -1
  32. data/docs/ProgressReportResponse.md +27 -0
  33. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +2 -6
  34. data/docs/PulpAnsibleApiV3CollectionsApi.md +2 -6
  35. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +2 -6
  36. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +2 -6
  37. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +2 -6
  38. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -6
  39. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +2 -6
  40. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +2 -6
  41. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +2 -6
  42. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +2 -6
  43. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +2 -6
  44. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -6
  45. data/docs/RemotesCollectionApi.md +10 -6
  46. data/docs/RemotesGitApi.md +2 -6
  47. data/docs/RemotesRoleApi.md +2 -6
  48. data/docs/RepositoriesAnsibleApi.md +2 -6
  49. data/docs/RepositoriesAnsibleVersionsApi.md +2 -4
  50. data/docs/RepositoryAddRemoveContent.md +2 -2
  51. data/docs/Task.md +19 -0
  52. data/docs/TaskResponse.md +45 -0
  53. data/docs/UnpaginatedCollectionVersionResponse.md +4 -4
  54. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +2 -8
  55. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +2 -8
  56. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +2 -8
  57. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +5 -11
  58. data/lib/pulp_ansible_client/api/content_roles_api.rb +2 -8
  59. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +2 -8
  60. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +2 -8
  61. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +2 -8
  62. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +2 -8
  63. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +2 -8
  64. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +2 -8
  65. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +2 -8
  66. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +2 -8
  67. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +2 -8
  68. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +2 -8
  69. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +2 -8
  70. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +2 -8
  71. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +2 -8
  72. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +15 -9
  73. data/lib/pulp_ansible_client/api/remotes_git_api.rb +2 -8
  74. data/lib/pulp_ansible_client/api/remotes_role_api.rb +2 -8
  75. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +2 -8
  76. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +2 -5
  77. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +1 -1
  78. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +15 -6
  79. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +1 -1
  80. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +14 -5
  81. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  82. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
  83. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +230 -230
  84. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +149 -149
  85. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +1 -1
  86. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +1 -1
  87. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  88. data/lib/pulp_ansible_client/models/collection_ref_response.rb +0 -1
  89. data/lib/pulp_ansible_client/models/collection_response.rb +0 -6
  90. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +0 -1
  91. data/lib/pulp_ansible_client/models/collection_version_response.rb +0 -4
  92. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -4
  93. data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +0 -4
  94. data/lib/pulp_ansible_client/models/galaxy_role_response.rb +0 -1
  95. data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +0 -1
  96. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +1 -1
  97. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +1 -1
  98. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +215 -215
  99. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +1 -1
  100. data/lib/pulp_ansible_client/models/progress_report_response.rb +259 -0
  101. data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +2 -2
  102. data/lib/pulp_ansible_client/models/task.rb +266 -0
  103. data/lib/pulp_ansible_client/models/task_response.rb +366 -0
  104. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +0 -4
  105. data/lib/pulp_ansible_client/version.rb +1 -1
  106. data/lib/pulp_ansible_client.rb +3 -0
  107. data/spec/api/ansible_collections_api_spec.rb +1 -3
  108. data/spec/api/content_collection_deprecations_api_spec.rb +1 -3
  109. data/spec/api/content_collection_signatures_api_spec.rb +1 -3
  110. data/spec/api/content_collection_versions_api_spec.rb +2 -4
  111. data/spec/api/content_roles_api_spec.rb +1 -3
  112. data/spec/api/distributions_ansible_api_spec.rb +1 -3
  113. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -3
  114. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -3
  115. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -3
  116. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -3
  117. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -3
  118. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -3
  119. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +1 -3
  120. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -3
  121. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -3
  122. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -3
  123. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -3
  124. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -3
  125. data/spec/api/remotes_collection_api_spec.rb +5 -3
  126. data/spec/api/remotes_git_api_spec.rb +1 -3
  127. data/spec/api/remotes_role_api_spec.rb +1 -3
  128. data/spec/api/repositories_ansible_api_spec.rb +1 -3
  129. data/spec/api/repositories_ansible_versions_api_spec.rb +1 -2
  130. data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
  131. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  132. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  133. data/spec/models/ansible_collection_version_spec.rb +2 -2
  134. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  135. data/spec/models/ansible_git_remote_spec.rb +19 -19
  136. data/spec/models/ansible_role_response_spec.rb +2 -2
  137. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  138. data/spec/models/progress_report_response_spec.rb +71 -0
  139. data/spec/models/task_response_spec.rb +125 -0
  140. data/spec/models/task_spec.rb +47 -0
  141. metadata +114 -102
@@ -15,60 +15,60 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
19
+ attr_accessor :connect_timeout
20
+
21
+ # Timestamp of creation.
22
+ attr_accessor :pulp_created
23
+
24
+ # Timestamp of the most recent update of the remote.
25
+ attr_accessor :pulp_last_updated
26
+
18
27
  # 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.
19
28
  attr_accessor :sock_connect_timeout
20
29
 
30
+ # Headers for aiohttp.Clientsession
31
+ attr_accessor :headers
32
+
33
+ # Limits requests per second for each concurrent downloader
34
+ attr_accessor :rate_limit
35
+
36
+ # A PEM encoded client certificate used for authentication.
37
+ attr_accessor :client_cert
38
+
39
+ # List of hidden (write only) fields
40
+ attr_accessor :hidden_fields
41
+
21
42
  # A unique name for this remote.
22
43
  attr_accessor :name
23
44
 
24
- # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
25
- attr_accessor :total_timeout
26
-
27
45
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
28
46
  attr_accessor :ca_cert
29
47
 
30
- # Timestamp of the most recent update of the remote.
31
- attr_accessor :pulp_last_updated
32
-
33
- # Headers for aiohttp.Clientsession
34
- attr_accessor :headers
35
-
36
- # Timestamp of creation.
37
- attr_accessor :pulp_created
48
+ # The URL of an external content source.
49
+ attr_accessor :url
38
50
 
39
51
  # The proxy URL. Format: scheme://host:port
40
52
  attr_accessor :proxy_url
41
53
 
42
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
43
- attr_accessor :connect_timeout
44
-
45
- # 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
- attr_accessor :sock_read_timeout
47
-
48
54
  # Total number of simultaneous connections. If not set then the default value will be used.
49
55
  attr_accessor :download_concurrency
50
56
 
51
- attr_accessor :pulp_href
52
-
53
57
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
54
58
  attr_accessor :max_retries
55
59
 
56
- # List of hidden (write only) fields
57
- attr_accessor :hidden_fields
58
-
59
- # If True, TLS peer validation must be performed.
60
- attr_accessor :tls_validation
60
+ attr_accessor :pulp_labels
61
61
 
62
- # The URL of an external content source.
63
- attr_accessor :url
62
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
63
+ attr_accessor :total_timeout
64
64
 
65
- # A PEM encoded client certificate used for authentication.
66
- attr_accessor :client_cert
65
+ # 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.
66
+ attr_accessor :sock_read_timeout
67
67
 
68
- # Limits requests per second for each concurrent downloader
69
- attr_accessor :rate_limit
68
+ attr_accessor :pulp_href
70
69
 
71
- attr_accessor :pulp_labels
70
+ # If True, TLS peer validation must be performed.
71
+ attr_accessor :tls_validation
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
+ :'connect_timeout' => :'connect_timeout',
83
+ :'pulp_created' => :'pulp_created',
84
+ :'pulp_last_updated' => :'pulp_last_updated',
82
85
  :'sock_connect_timeout' => :'sock_connect_timeout',
86
+ :'headers' => :'headers',
87
+ :'rate_limit' => :'rate_limit',
88
+ :'client_cert' => :'client_cert',
89
+ :'hidden_fields' => :'hidden_fields',
83
90
  :'name' => :'name',
84
- :'total_timeout' => :'total_timeout',
85
91
  :'ca_cert' => :'ca_cert',
86
- :'pulp_last_updated' => :'pulp_last_updated',
87
- :'headers' => :'headers',
88
- :'pulp_created' => :'pulp_created',
92
+ :'url' => :'url',
89
93
  :'proxy_url' => :'proxy_url',
90
- :'connect_timeout' => :'connect_timeout',
91
- :'sock_read_timeout' => :'sock_read_timeout',
92
94
  :'download_concurrency' => :'download_concurrency',
93
- :'pulp_href' => :'pulp_href',
94
95
  :'max_retries' => :'max_retries',
95
- :'hidden_fields' => :'hidden_fields',
96
- :'tls_validation' => :'tls_validation',
97
- :'url' => :'url',
98
- :'client_cert' => :'client_cert',
99
- :'rate_limit' => :'rate_limit',
100
96
  :'pulp_labels' => :'pulp_labels',
97
+ :'total_timeout' => :'total_timeout',
98
+ :'sock_read_timeout' => :'sock_read_timeout',
99
+ :'pulp_href' => :'pulp_href',
100
+ :'tls_validation' => :'tls_validation',
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
+ :'connect_timeout' => :'Float',
110
+ :'pulp_created' => :'DateTime',
111
+ :'pulp_last_updated' => :'DateTime',
109
112
  :'sock_connect_timeout' => :'Float',
113
+ :'headers' => :'Array<Object>',
114
+ :'rate_limit' => :'Integer',
115
+ :'client_cert' => :'String',
116
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
110
117
  :'name' => :'String',
111
- :'total_timeout' => :'Float',
112
118
  :'ca_cert' => :'String',
113
- :'pulp_last_updated' => :'DateTime',
114
- :'headers' => :'Array<Object>',
115
- :'pulp_created' => :'DateTime',
119
+ :'url' => :'String',
116
120
  :'proxy_url' => :'String',
117
- :'connect_timeout' => :'Float',
118
- :'sock_read_timeout' => :'Float',
119
121
  :'download_concurrency' => :'Integer',
120
- :'pulp_href' => :'String',
121
122
  :'max_retries' => :'Integer',
122
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
123
- :'tls_validation' => :'Boolean',
124
- :'url' => :'String',
125
- :'client_cert' => :'String',
126
- :'rate_limit' => :'Integer',
127
123
  :'pulp_labels' => :'Hash<String, String>',
124
+ :'total_timeout' => :'Float',
125
+ :'sock_read_timeout' => :'Float',
126
+ :'pulp_href' => :'String',
127
+ :'tls_validation' => :'Boolean',
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
+ :'connect_timeout',
136
137
  :'sock_connect_timeout',
137
- :'total_timeout',
138
+ :'rate_limit',
139
+ :'client_cert',
138
140
  :'ca_cert',
139
141
  :'proxy_url',
140
- :'connect_timeout',
141
- :'sock_read_timeout',
142
142
  :'download_concurrency',
143
143
  :'max_retries',
144
- :'client_cert',
145
- :'rate_limit',
144
+ :'total_timeout',
145
+ :'sock_read_timeout',
146
146
  ])
147
147
  end
148
148
 
@@ -161,86 +161,86 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
- if attributes.key?(:'sock_connect_timeout')
165
- self.sock_connect_timeout = attributes[:'sock_connect_timeout']
166
- end
167
-
168
- if attributes.key?(:'name')
169
- self.name = attributes[:'name']
170
- end
171
-
172
- if attributes.key?(:'total_timeout')
173
- self.total_timeout = attributes[:'total_timeout']
164
+ if attributes.key?(:'connect_timeout')
165
+ self.connect_timeout = attributes[:'connect_timeout']
174
166
  end
175
167
 
176
- if attributes.key?(:'ca_cert')
177
- self.ca_cert = attributes[:'ca_cert']
168
+ if attributes.key?(:'pulp_created')
169
+ self.pulp_created = attributes[:'pulp_created']
178
170
  end
179
171
 
180
172
  if attributes.key?(:'pulp_last_updated')
181
173
  self.pulp_last_updated = attributes[:'pulp_last_updated']
182
174
  end
183
175
 
176
+ if attributes.key?(:'sock_connect_timeout')
177
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
178
+ end
179
+
184
180
  if attributes.key?(:'headers')
185
181
  if (value = attributes[:'headers']).is_a?(Array)
186
182
  self.headers = value
187
183
  end
188
184
  end
189
185
 
190
- if attributes.key?(:'pulp_created')
191
- self.pulp_created = attributes[:'pulp_created']
186
+ if attributes.key?(:'rate_limit')
187
+ self.rate_limit = attributes[:'rate_limit']
192
188
  end
193
189
 
194
- if attributes.key?(:'proxy_url')
195
- self.proxy_url = attributes[:'proxy_url']
190
+ if attributes.key?(:'client_cert')
191
+ self.client_cert = attributes[:'client_cert']
196
192
  end
197
193
 
198
- if attributes.key?(:'connect_timeout')
199
- self.connect_timeout = attributes[:'connect_timeout']
194
+ if attributes.key?(:'hidden_fields')
195
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
196
+ self.hidden_fields = value
197
+ end
200
198
  end
201
199
 
202
- if attributes.key?(:'sock_read_timeout')
203
- self.sock_read_timeout = attributes[:'sock_read_timeout']
200
+ if attributes.key?(:'name')
201
+ self.name = attributes[:'name']
204
202
  end
205
203
 
206
- if attributes.key?(:'download_concurrency')
207
- self.download_concurrency = attributes[:'download_concurrency']
204
+ if attributes.key?(:'ca_cert')
205
+ self.ca_cert = attributes[:'ca_cert']
208
206
  end
209
207
 
210
- if attributes.key?(:'pulp_href')
211
- self.pulp_href = attributes[:'pulp_href']
208
+ if attributes.key?(:'url')
209
+ self.url = attributes[:'url']
210
+ end
211
+
212
+ if attributes.key?(:'proxy_url')
213
+ self.proxy_url = attributes[:'proxy_url']
214
+ end
215
+
216
+ if attributes.key?(:'download_concurrency')
217
+ self.download_concurrency = attributes[:'download_concurrency']
212
218
  end
213
219
 
214
220
  if attributes.key?(:'max_retries')
215
221
  self.max_retries = attributes[:'max_retries']
216
222
  end
217
223
 
218
- if attributes.key?(:'hidden_fields')
219
- if (value = attributes[:'hidden_fields']).is_a?(Array)
220
- self.hidden_fields = value
224
+ if attributes.key?(:'pulp_labels')
225
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
226
+ self.pulp_labels = value
221
227
  end
222
228
  end
223
229
 
224
- if attributes.key?(:'tls_validation')
225
- self.tls_validation = attributes[:'tls_validation']
226
- end
227
-
228
- if attributes.key?(:'url')
229
- self.url = attributes[:'url']
230
+ if attributes.key?(:'total_timeout')
231
+ self.total_timeout = attributes[:'total_timeout']
230
232
  end
231
233
 
232
- if attributes.key?(:'client_cert')
233
- self.client_cert = attributes[:'client_cert']
234
+ if attributes.key?(:'sock_read_timeout')
235
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
234
236
  end
235
237
 
236
- if attributes.key?(:'rate_limit')
237
- self.rate_limit = attributes[:'rate_limit']
238
+ if attributes.key?(:'pulp_href')
239
+ self.pulp_href = attributes[:'pulp_href']
238
240
  end
239
241
 
240
- if attributes.key?(:'pulp_labels')
241
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
242
- self.pulp_labels = value
243
- end
242
+ if attributes.key?(:'tls_validation')
243
+ self.tls_validation = attributes[:'tls_validation']
244
244
  end
245
245
 
246
246
  if attributes.key?(:'metadata_only')
@@ -256,6 +256,10 @@ 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 !@connect_timeout.nil? && @connect_timeout < 0.0
260
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
261
+ end
262
+
259
263
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
260
264
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
261
265
  end
@@ -264,24 +268,20 @@ module PulpAnsibleClient
264
268
  invalid_properties.push('invalid value for "name", name cannot be nil.')
265
269
  end
266
270
 
267
- if !@total_timeout.nil? && @total_timeout < 0.0
268
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
269
- end
270
-
271
- if !@connect_timeout.nil? && @connect_timeout < 0.0
272
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
273
- end
274
-
275
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
276
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
271
+ if @url.nil?
272
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
277
273
  end
278
274
 
279
275
  if !@download_concurrency.nil? && @download_concurrency < 1
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 @url.nil?
284
- invalid_properties.push('invalid value for "url", url cannot be nil.')
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.')
281
+ end
282
+
283
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
284
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
285
285
  end
286
286
 
287
287
  invalid_properties
@@ -290,16 +290,26 @@ 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 !@connect_timeout.nil? && @connect_timeout < 0.0
293
294
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
294
295
  return false if @name.nil?
296
+ return false if @url.nil?
297
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
295
298
  return false if !@total_timeout.nil? && @total_timeout < 0.0
296
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
297
299
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
298
- return false if !@download_concurrency.nil? && @download_concurrency < 1
299
- return false if @url.nil?
300
300
  true
301
301
  end
302
302
 
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.'
308
+ end
309
+
310
+ @connect_timeout = connect_timeout
311
+ end
312
+
303
313
  # Custom attribute writer method with validation
304
314
  # @param [Object] sock_connect_timeout Value to be assigned
305
315
  def sock_connect_timeout=(sock_connect_timeout)
@@ -311,23 +321,23 @@ module PulpAnsibleClient
311
321
  end
312
322
 
313
323
  # Custom attribute writer method with validation
314
- # @param [Object] total_timeout Value to be assigned
315
- def total_timeout=(total_timeout)
316
- if !total_timeout.nil? && total_timeout < 0.0
317
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
324
+ # @param [Object] download_concurrency Value to be assigned
325
+ def download_concurrency=(download_concurrency)
326
+ if !download_concurrency.nil? && download_concurrency < 1
327
+ fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
318
328
  end
319
329
 
320
- @total_timeout = total_timeout
330
+ @download_concurrency = download_concurrency
321
331
  end
322
332
 
323
333
  # Custom attribute writer method with validation
324
- # @param [Object] connect_timeout Value to be assigned
325
- def connect_timeout=(connect_timeout)
326
- if !connect_timeout.nil? && connect_timeout < 0.0
327
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
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.'
328
338
  end
329
339
 
330
- @connect_timeout = connect_timeout
340
+ @total_timeout = total_timeout
331
341
  end
332
342
 
333
343
  # Custom attribute writer method with validation
@@ -340,40 +350,30 @@ module PulpAnsibleClient
340
350
  @sock_read_timeout = sock_read_timeout
341
351
  end
342
352
 
343
- # Custom attribute writer method with validation
344
- # @param [Object] download_concurrency Value to be assigned
345
- def download_concurrency=(download_concurrency)
346
- if !download_concurrency.nil? && download_concurrency < 1
347
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
348
- end
349
-
350
- @download_concurrency = download_concurrency
351
- end
352
-
353
353
  # Checks equality by comparing each attribute.
354
354
  # @param [Object] Object to be compared
355
355
  def ==(o)
356
356
  return true if self.equal?(o)
357
357
  self.class == o.class &&
358
+ connect_timeout == o.connect_timeout &&
359
+ pulp_created == o.pulp_created &&
360
+ pulp_last_updated == o.pulp_last_updated &&
358
361
  sock_connect_timeout == o.sock_connect_timeout &&
362
+ headers == o.headers &&
363
+ rate_limit == o.rate_limit &&
364
+ client_cert == o.client_cert &&
365
+ hidden_fields == o.hidden_fields &&
359
366
  name == o.name &&
360
- total_timeout == o.total_timeout &&
361
367
  ca_cert == o.ca_cert &&
362
- pulp_last_updated == o.pulp_last_updated &&
363
- headers == o.headers &&
364
- pulp_created == o.pulp_created &&
368
+ url == o.url &&
365
369
  proxy_url == o.proxy_url &&
366
- connect_timeout == o.connect_timeout &&
367
- sock_read_timeout == o.sock_read_timeout &&
368
370
  download_concurrency == o.download_concurrency &&
369
- pulp_href == o.pulp_href &&
370
371
  max_retries == o.max_retries &&
371
- hidden_fields == o.hidden_fields &&
372
- tls_validation == o.tls_validation &&
373
- url == o.url &&
374
- client_cert == o.client_cert &&
375
- rate_limit == o.rate_limit &&
376
372
  pulp_labels == o.pulp_labels &&
373
+ total_timeout == o.total_timeout &&
374
+ sock_read_timeout == o.sock_read_timeout &&
375
+ pulp_href == o.pulp_href &&
376
+ tls_validation == o.tls_validation &&
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
- [sock_connect_timeout, name, total_timeout, ca_cert, pulp_last_updated, headers, pulp_created, proxy_url, connect_timeout, sock_read_timeout, download_concurrency, pulp_href, max_retries, hidden_fields, tls_validation, url, client_cert, rate_limit, pulp_labels, metadata_only, git_ref].hash
390
+ [connect_timeout, pulp_created, pulp_last_updated, sock_connect_timeout, headers, rate_limit, client_cert, hidden_fields, name, ca_cert, url, proxy_url, download_concurrency, max_retries, pulp_labels, total_timeout, sock_read_timeout, pulp_href, tls_validation, metadata_only, git_ref].hash
391
391
  end
392
392
 
393
393
  # Builds the object from hash
@@ -56,7 +56,7 @@ module PulpAnsibleClient
56
56
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
57
57
  attr_accessor :max_retries
58
58
 
59
- # The policy to use when downloading content. * `immediate` - immediate * `When syncing, download all metadata and content now.` - When syncing, download all metadata and content now.
59
+ # The policy to use when downloading content.
60
60
  attr_accessor :policy
61
61
 
62
62
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
@@ -49,7 +49,7 @@ module PulpAnsibleClient
49
49
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
50
50
  attr_accessor :max_retries
51
51
 
52
- # The policy to use when downloading content. * `immediate` - immediate * `When syncing, download all metadata and content now.` - When syncing, download all metadata and content now.
52
+ # The policy to use when downloading content.
53
53
  attr_accessor :policy
54
54
 
55
55
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
@@ -18,11 +18,11 @@ module PulpAnsibleClient
18
18
  # Artifact file representing the physical content
19
19
  attr_accessor :artifact
20
20
 
21
- attr_accessor :pulp_href
22
-
23
21
  # Timestamp of creation.
24
22
  attr_accessor :pulp_created
25
23
 
24
+ attr_accessor :pulp_href
25
+
26
26
  attr_accessor :version
27
27
 
28
28
  attr_accessor :name
@@ -33,8 +33,8 @@ module PulpAnsibleClient
33
33
  def self.attribute_map
34
34
  {
35
35
  :'artifact' => :'artifact',
36
- :'pulp_href' => :'pulp_href',
37
36
  :'pulp_created' => :'pulp_created',
37
+ :'pulp_href' => :'pulp_href',
38
38
  :'version' => :'version',
39
39
  :'name' => :'name',
40
40
  :'namespace' => :'namespace'
@@ -45,8 +45,8 @@ module PulpAnsibleClient
45
45
  def self.openapi_types
46
46
  {
47
47
  :'artifact' => :'String',
48
- :'pulp_href' => :'String',
49
48
  :'pulp_created' => :'DateTime',
49
+ :'pulp_href' => :'String',
50
50
  :'version' => :'String',
51
51
  :'name' => :'String',
52
52
  :'namespace' => :'String'
@@ -78,14 +78,14 @@ module PulpAnsibleClient
78
78
  self.artifact = attributes[:'artifact']
79
79
  end
80
80
 
81
- if attributes.key?(:'pulp_href')
82
- self.pulp_href = attributes[:'pulp_href']
83
- end
84
-
85
81
  if attributes.key?(:'pulp_created')
86
82
  self.pulp_created = attributes[:'pulp_created']
87
83
  end
88
84
 
85
+ if attributes.key?(:'pulp_href')
86
+ self.pulp_href = attributes[:'pulp_href']
87
+ end
88
+
89
89
  if attributes.key?(:'version')
90
90
  self.version = attributes[:'version']
91
91
  end
@@ -138,8 +138,8 @@ module PulpAnsibleClient
138
138
  return true if self.equal?(o)
139
139
  self.class == o.class &&
140
140
  artifact == o.artifact &&
141
- pulp_href == o.pulp_href &&
142
141
  pulp_created == o.pulp_created &&
142
+ pulp_href == o.pulp_href &&
143
143
  version == o.version &&
144
144
  name == o.name &&
145
145
  namespace == o.namespace
@@ -154,7 +154,7 @@ module PulpAnsibleClient
154
154
  # Calculates hash code according to all attributes.
155
155
  # @return [Integer] Hash code
156
156
  def hash
157
- [artifact, pulp_href, pulp_created, version, name, namespace].hash
157
+ [artifact, pulp_created, pulp_href, version, name, namespace].hash
158
158
  end
159
159
 
160
160
  # Builds the object from hash
@@ -19,7 +19,6 @@ module PulpAnsibleClient
19
19
 
20
20
  attr_accessor :name
21
21
 
22
- # Returns link to a collection.
23
22
  attr_accessor :href
24
23
 
25
24
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -15,26 +15,20 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for a Collection.
17
17
  class CollectionResponse
18
- # Get href.
19
18
  attr_accessor :href
20
19
 
21
20
  attr_accessor :namespace
22
21
 
23
22
  attr_accessor :name
24
23
 
25
- # Get deprecated.
26
24
  attr_accessor :deprecated
27
25
 
28
- # Get a link to a collection versions list.
29
26
  attr_accessor :versions_url
30
27
 
31
- # Get a highest version and its link.
32
28
  attr_accessor :highest_version
33
29
 
34
- # Get the timestamp of the lowest version CollectionVersion's created timestamp.
35
30
  attr_accessor :created_at
36
31
 
37
- # Get the timestamp of the highest version CollectionVersion's created timestamp.
38
32
  attr_accessor :updated_at
39
33
 
40
34
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -17,7 +17,6 @@ module PulpAnsibleClient
17
17
  class CollectionVersionListResponse
18
18
  attr_accessor :version
19
19
 
20
- # Get href.
21
20
  attr_accessor :href
22
21
 
23
22
  attr_accessor :created_at
@@ -17,7 +17,6 @@ module PulpAnsibleClient
17
17
  class CollectionVersionResponse
18
18
  attr_accessor :version
19
19
 
20
- # Get href.
21
20
  attr_accessor :href
22
21
 
23
22
  attr_accessor :created_at
@@ -30,7 +29,6 @@ module PulpAnsibleClient
30
29
 
31
30
  attr_accessor :collection
32
31
 
33
- # Get artifact download URL.
34
32
  attr_accessor :download_url
35
33
 
36
34
  attr_accessor :name
@@ -41,10 +39,8 @@ module PulpAnsibleClient
41
39
 
42
40
  attr_accessor :metadata
43
41
 
44
- # Get the git URL.
45
42
  attr_accessor :git_url
46
43
 
47
- # Get the git commit sha.
48
44
  attr_accessor :git_commit_sha
49
45
 
50
46
  # A JSON field holding MANIFEST.json data.
@@ -19,20 +19,16 @@ module PulpAnsibleClient
19
19
 
20
20
  attr_accessor :name
21
21
 
22
- # Create a namespace dict.
23
22
  attr_accessor :namespace
24
23
 
25
- # Get href.
26
24
  attr_accessor :href
27
25
 
28
- # Get versions_url.
29
26
  attr_accessor :versions_url
30
27
 
31
28
  attr_accessor :created
32
29
 
33
30
  attr_accessor :modified
34
31
 
35
- # Get latest version.
36
32
  attr_accessor :latest_version
37
33
 
38
34
  # Attribute mapping from ruby-style variable name to JSON key.