pulp_ansible_client 0.16.2 → 0.17.0.dev1676344220

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 +5 -5
  8. data/docs/AnsibleCollectionVersionResponse.md +4 -4
  9. data/docs/AnsibleCollectionsApi.md +2 -6
  10. data/docs/AnsibleGitRemote.md +28 -28
  11. data/docs/AnsibleGitRemoteResponse.md +27 -27
  12. data/docs/AnsibleRoleRemote.md +1 -1
  13. data/docs/AnsibleRoleRemoteResponse.md +1 -1
  14. data/docs/AnsibleRoleResponse.md +4 -4
  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 +6 -10
  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 +28 -28
  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 +8 -14
  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 +18 -18
  82. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +15 -15
  83. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +246 -246
  84. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +148 -148
  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 +15 -15
  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 +237 -237
  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 +3 -5
  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 +3 -3
  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.sock_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 :sock_connect_timeout
18
+ attr_accessor :pulp_labels
20
19
 
21
- # A unique name for this remote.
22
- attr_accessor :name
20
+ # The URL of an external content source.
21
+ attr_accessor :url
23
22
 
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
23
+ # Limits requests per second for each concurrent downloader
24
+ attr_accessor :rate_limit
25
+
26
+ # The proxy URL. Format: scheme://host:port
27
+ attr_accessor :proxy_url
26
28
 
27
29
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
28
30
  attr_accessor :ca_cert
29
31
 
30
- # Timestamp of the most recent update of the remote.
31
- attr_accessor :pulp_last_updated
32
+ # 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.
33
+ attr_accessor :sock_read_timeout
32
34
 
33
35
  # Headers for aiohttp.Clientsession
34
36
  attr_accessor :headers
35
37
 
36
- # Timestamp of creation.
37
- attr_accessor :pulp_created
38
+ attr_accessor :pulp_href
38
39
 
39
- # The proxy URL. Format: scheme://host:port
40
- attr_accessor :proxy_url
40
+ # 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.
41
+ attr_accessor :sock_connect_timeout
41
42
 
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
43
+ # List of hidden (write only) fields
44
+ attr_accessor :hidden_fields
44
45
 
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
46
+ # A unique name for this remote.
47
+ attr_accessor :name
47
48
 
48
- # Total number of simultaneous connections. If not set then the default value will be used.
49
- attr_accessor :download_concurrency
49
+ # A PEM encoded client certificate used for authentication.
50
+ attr_accessor :client_cert
50
51
 
51
- attr_accessor :pulp_href
52
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
53
+ attr_accessor :total_timeout
52
54
 
53
- # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
54
- attr_accessor :max_retries
55
+ # Total number of simultaneous connections. If not set then the default value will be used.
56
+ attr_accessor :download_concurrency
55
57
 
56
- # List of hidden (write only) fields
57
- attr_accessor :hidden_fields
58
+ # Timestamp of the most recent update of the remote.
59
+ attr_accessor :pulp_last_updated
58
60
 
59
61
  # If True, TLS peer validation must be performed.
60
62
  attr_accessor :tls_validation
61
63
 
62
- # The URL of an external content source.
63
- attr_accessor :url
64
-
65
- # A PEM encoded client certificate used for authentication.
66
- attr_accessor :client_cert
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
67
66
 
68
- # Limits requests per second for each concurrent downloader
69
- attr_accessor :rate_limit
67
+ # Timestamp of creation.
68
+ attr_accessor :pulp_created
70
69
 
71
- attr_accessor :pulp_labels
70
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
71
+ attr_accessor :max_retries
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
+ :'url' => :'url',
84
+ :'rate_limit' => :'rate_limit',
85
+ :'proxy_url' => :'proxy_url',
86
+ :'ca_cert' => :'ca_cert',
87
+ :'sock_read_timeout' => :'sock_read_timeout',
88
+ :'headers' => :'headers',
89
+ :'pulp_href' => :'pulp_href',
82
90
  :'sock_connect_timeout' => :'sock_connect_timeout',
91
+ :'hidden_fields' => :'hidden_fields',
83
92
  :'name' => :'name',
93
+ :'client_cert' => :'client_cert',
84
94
  :'total_timeout' => :'total_timeout',
85
- :'ca_cert' => :'ca_cert',
95
+ :'download_concurrency' => :'download_concurrency',
86
96
  :'pulp_last_updated' => :'pulp_last_updated',
87
- :'headers' => :'headers',
88
- :'pulp_created' => :'pulp_created',
89
- :'proxy_url' => :'proxy_url',
97
+ :'tls_validation' => :'tls_validation',
90
98
  :'connect_timeout' => :'connect_timeout',
91
- :'sock_read_timeout' => :'sock_read_timeout',
92
- :'download_concurrency' => :'download_concurrency',
93
- :'pulp_href' => :'pulp_href',
99
+ :'pulp_created' => :'pulp_created',
94
100
  :'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
- :'pulp_labels' => :'pulp_labels',
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
+ :'url' => :'String',
111
+ :'rate_limit' => :'Integer',
112
+ :'proxy_url' => :'String',
113
+ :'ca_cert' => :'String',
114
+ :'sock_read_timeout' => :'Float',
115
+ :'headers' => :'Array<Object>',
116
+ :'pulp_href' => :'String',
109
117
  :'sock_connect_timeout' => :'Float',
118
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
110
119
  :'name' => :'String',
120
+ :'client_cert' => :'String',
111
121
  :'total_timeout' => :'Float',
112
- :'ca_cert' => :'String',
122
+ :'download_concurrency' => :'Integer',
113
123
  :'pulp_last_updated' => :'DateTime',
114
- :'headers' => :'Array<Object>',
115
- :'pulp_created' => :'DateTime',
116
- :'proxy_url' => :'String',
124
+ :'tls_validation' => :'Boolean',
117
125
  :'connect_timeout' => :'Float',
118
- :'sock_read_timeout' => :'Float',
119
- :'download_concurrency' => :'Integer',
120
- :'pulp_href' => :'String',
126
+ :'pulp_created' => :'DateTime',
121
127
  :'max_retries' => :'Integer',
122
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
123
- :'tls_validation' => :'Boolean',
124
- :'url' => :'String',
125
- :'client_cert' => :'String',
126
- :'rate_limit' => :'Integer',
127
- :'pulp_labels' => :'Hash<String, String>',
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
- :'sock_connect_timeout',
137
- :'total_timeout',
138
- :'ca_cert',
136
+ :'rate_limit',
139
137
  :'proxy_url',
140
- :'connect_timeout',
138
+ :'ca_cert',
141
139
  :'sock_read_timeout',
140
+ :'sock_connect_timeout',
141
+ :'client_cert',
142
+ :'total_timeout',
142
143
  :'download_concurrency',
144
+ :'connect_timeout',
143
145
  :'max_retries',
144
- :'client_cert',
145
- :'rate_limit',
146
146
  ])
147
147
  end
148
148
 
@@ -161,24 +161,30 @@ 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']
164
+ if attributes.key?(:'pulp_labels')
165
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
166
+ self.pulp_labels = value
167
+ end
166
168
  end
167
169
 
168
- if attributes.key?(:'name')
169
- self.name = attributes[:'name']
170
+ if attributes.key?(:'url')
171
+ self.url = attributes[:'url']
170
172
  end
171
173
 
172
- if attributes.key?(:'total_timeout')
173
- self.total_timeout = attributes[:'total_timeout']
174
+ if attributes.key?(:'rate_limit')
175
+ self.rate_limit = attributes[:'rate_limit']
176
+ end
177
+
178
+ if attributes.key?(:'proxy_url')
179
+ self.proxy_url = attributes[:'proxy_url']
174
180
  end
175
181
 
176
182
  if attributes.key?(:'ca_cert')
177
183
  self.ca_cert = attributes[:'ca_cert']
178
184
  end
179
185
 
180
- if attributes.key?(:'pulp_last_updated')
181
- self.pulp_last_updated = attributes[:'pulp_last_updated']
186
+ if attributes.key?(:'sock_read_timeout')
187
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
182
188
  end
183
189
 
184
190
  if attributes.key?(:'headers')
@@ -187,60 +193,54 @@ module PulpAnsibleClient
187
193
  end
188
194
  end
189
195
 
190
- if attributes.key?(:'pulp_created')
191
- self.pulp_created = attributes[:'pulp_created']
196
+ if attributes.key?(:'pulp_href')
197
+ self.pulp_href = attributes[:'pulp_href']
192
198
  end
193
199
 
194
- if attributes.key?(:'proxy_url')
195
- self.proxy_url = attributes[:'proxy_url']
200
+ if attributes.key?(:'sock_connect_timeout')
201
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
196
202
  end
197
203
 
198
- if attributes.key?(:'connect_timeout')
199
- self.connect_timeout = attributes[:'connect_timeout']
204
+ if attributes.key?(:'hidden_fields')
205
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
206
+ self.hidden_fields = value
207
+ end
200
208
  end
201
209
 
202
- if attributes.key?(:'sock_read_timeout')
203
- self.sock_read_timeout = attributes[:'sock_read_timeout']
210
+ if attributes.key?(:'name')
211
+ self.name = attributes[:'name']
204
212
  end
205
213
 
206
- if attributes.key?(:'download_concurrency')
207
- self.download_concurrency = attributes[:'download_concurrency']
214
+ if attributes.key?(:'client_cert')
215
+ self.client_cert = attributes[:'client_cert']
208
216
  end
209
217
 
210
- if attributes.key?(:'pulp_href')
211
- self.pulp_href = attributes[:'pulp_href']
218
+ if attributes.key?(:'total_timeout')
219
+ self.total_timeout = attributes[:'total_timeout']
212
220
  end
213
221
 
214
- if attributes.key?(:'max_retries')
215
- self.max_retries = attributes[:'max_retries']
222
+ if attributes.key?(:'download_concurrency')
223
+ self.download_concurrency = attributes[:'download_concurrency']
216
224
  end
217
225
 
218
- if attributes.key?(:'hidden_fields')
219
- if (value = attributes[:'hidden_fields']).is_a?(Array)
220
- self.hidden_fields = value
221
- end
226
+ if attributes.key?(:'pulp_last_updated')
227
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
222
228
  end
223
229
 
224
230
  if attributes.key?(:'tls_validation')
225
231
  self.tls_validation = attributes[:'tls_validation']
226
232
  end
227
233
 
228
- if attributes.key?(:'url')
229
- self.url = attributes[:'url']
230
- end
231
-
232
- if attributes.key?(:'client_cert')
233
- self.client_cert = attributes[:'client_cert']
234
+ if attributes.key?(:'connect_timeout')
235
+ self.connect_timeout = attributes[:'connect_timeout']
234
236
  end
235
237
 
236
- if attributes.key?(:'rate_limit')
237
- self.rate_limit = attributes[:'rate_limit']
238
+ if attributes.key?(:'pulp_created')
239
+ self.pulp_created = attributes[:'pulp_created']
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?(:'max_retries')
243
+ self.max_retries = attributes[:'max_retries']
244
244
  end
245
245
 
246
246
  if attributes.key?(:'metadata_only')
@@ -256,6 +256,14 @@ 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 @url.nil?
260
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
261
+ end
262
+
263
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
264
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
265
+ end
266
+
259
267
  if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
260
268
  invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
261
269
  end
@@ -268,20 +276,12 @@ module PulpAnsibleClient
268
276
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
269
277
  end
270
278
 
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.')
277
- end
278
-
279
279
  if !@download_concurrency.nil? && @download_concurrency < 1
280
280
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
281
281
  end
282
282
 
283
- if @url.nil?
284
- invalid_properties.push('invalid value for "url", url cannot be nil.')
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.')
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 @url.nil?
294
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
293
295
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
294
296
  return false if @name.nil?
295
297
  return false if !@total_timeout.nil? && @total_timeout < 0.0
296
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
297
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
298
298
  return false if !@download_concurrency.nil? && @download_concurrency < 1
299
- return false if @url.nil?
299
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
300
300
  true
301
301
  end
302
302
 
303
+ # Custom attribute writer method with validation
304
+ # @param [Object] sock_read_timeout Value to be assigned
305
+ def sock_read_timeout=(sock_read_timeout)
306
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
307
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
308
+ end
309
+
310
+ @sock_read_timeout = sock_read_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)
@@ -320,26 +330,6 @@ module PulpAnsibleClient
320
330
  @total_timeout = total_timeout
321
331
  end
322
332
 
323
- # 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.'
328
- end
329
-
330
- @connect_timeout = connect_timeout
331
- end
332
-
333
- # Custom attribute writer method with validation
334
- # @param [Object] sock_read_timeout Value to be assigned
335
- def sock_read_timeout=(sock_read_timeout)
336
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
337
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
338
- end
339
-
340
- @sock_read_timeout = sock_read_timeout
341
- end
342
-
343
333
  # Custom attribute writer method with validation
344
334
  # @param [Object] download_concurrency Value to be assigned
345
335
  def download_concurrency=(download_concurrency)
@@ -350,30 +340,40 @@ module PulpAnsibleClient
350
340
  @download_concurrency = download_concurrency
351
341
  end
352
342
 
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.'
348
+ end
349
+
350
+ @connect_timeout = connect_timeout
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
+ pulp_labels == o.pulp_labels &&
359
+ url == o.url &&
360
+ rate_limit == o.rate_limit &&
361
+ proxy_url == o.proxy_url &&
362
+ ca_cert == o.ca_cert &&
363
+ sock_read_timeout == o.sock_read_timeout &&
364
+ headers == o.headers &&
365
+ pulp_href == o.pulp_href &&
358
366
  sock_connect_timeout == o.sock_connect_timeout &&
367
+ hidden_fields == o.hidden_fields &&
359
368
  name == o.name &&
369
+ client_cert == o.client_cert &&
360
370
  total_timeout == o.total_timeout &&
361
- ca_cert == o.ca_cert &&
371
+ download_concurrency == o.download_concurrency &&
362
372
  pulp_last_updated == o.pulp_last_updated &&
363
- headers == o.headers &&
364
- pulp_created == o.pulp_created &&
365
- proxy_url == o.proxy_url &&
373
+ tls_validation == o.tls_validation &&
366
374
  connect_timeout == o.connect_timeout &&
367
- sock_read_timeout == o.sock_read_timeout &&
368
- download_concurrency == o.download_concurrency &&
369
- pulp_href == o.pulp_href &&
375
+ pulp_created == o.pulp_created &&
370
376
  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
- pulp_labels == o.pulp_labels &&
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
+ [pulp_labels, url, rate_limit, proxy_url, ca_cert, sock_read_timeout, headers, pulp_href, sock_connect_timeout, hidden_fields, name, client_cert, total_timeout, download_concurrency, pulp_last_updated, tls_validation, connect_timeout, pulp_created, max_retries, 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.
@@ -15,13 +15,13 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
18
- # Artifact file representing the physical content
19
- attr_accessor :artifact
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
20
20
 
21
21
  attr_accessor :pulp_href
22
22
 
23
- # Timestamp of creation.
24
- attr_accessor :pulp_created
23
+ # Artifact file representing the physical content
24
+ attr_accessor :artifact
25
25
 
26
26
  attr_accessor :version
27
27
 
@@ -32,9 +32,9 @@ module PulpAnsibleClient
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'artifact' => :'artifact',
36
- :'pulp_href' => :'pulp_href',
37
35
  :'pulp_created' => :'pulp_created',
36
+ :'pulp_href' => :'pulp_href',
37
+ :'artifact' => :'artifact',
38
38
  :'version' => :'version',
39
39
  :'name' => :'name',
40
40
  :'namespace' => :'namespace'
@@ -44,9 +44,9 @@ module PulpAnsibleClient
44
44
  # Attribute type mapping.
45
45
  def self.openapi_types
46
46
  {
47
- :'artifact' => :'String',
48
- :'pulp_href' => :'String',
49
47
  :'pulp_created' => :'DateTime',
48
+ :'pulp_href' => :'String',
49
+ :'artifact' => :'String',
50
50
  :'version' => :'String',
51
51
  :'name' => :'String',
52
52
  :'namespace' => :'String'
@@ -74,16 +74,16 @@ module PulpAnsibleClient
74
74
  h[k.to_sym] = v
75
75
  }
76
76
 
77
- if attributes.key?(:'artifact')
78
- self.artifact = attributes[:'artifact']
77
+ if attributes.key?(:'pulp_created')
78
+ self.pulp_created = attributes[:'pulp_created']
79
79
  end
80
80
 
81
81
  if attributes.key?(:'pulp_href')
82
82
  self.pulp_href = attributes[:'pulp_href']
83
83
  end
84
84
 
85
- if attributes.key?(:'pulp_created')
86
- self.pulp_created = attributes[:'pulp_created']
85
+ if attributes.key?(:'artifact')
86
+ self.artifact = attributes[:'artifact']
87
87
  end
88
88
 
89
89
  if attributes.key?(:'version')
@@ -137,9 +137,9 @@ module PulpAnsibleClient
137
137
  def ==(o)
138
138
  return true if self.equal?(o)
139
139
  self.class == o.class &&
140
- artifact == o.artifact &&
141
- pulp_href == o.pulp_href &&
142
140
  pulp_created == o.pulp_created &&
141
+ pulp_href == o.pulp_href &&
142
+ artifact == o.artifact &&
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
+ [pulp_created, pulp_href, artifact, 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.