pulp_ansible_client 0.15.3 → 0.15.5

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