pulp_ansible_client 0.15.2 → 0.15.4

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