pulp_ansible_client 0.16.1 → 0.16.2

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