pulp_ansible_client 0.6.2 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -6
  3. data/docs/AnsibleAnsibleRepository.md +6 -2
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +5 -1
  5. data/docs/AnsibleCollectionRemote.md +4 -0
  6. data/docs/AnsibleCollectionRemoteResponse.md +4 -0
  7. data/docs/AnsibleCollectionVersion.md +7 -1
  8. data/docs/AnsibleCollectionVersionResponse.md +10 -4
  9. data/docs/{RepositorySyncURL.md → AnsibleRepositorySyncURL.md} +5 -3
  10. data/docs/AnsibleRoleRemote.md +5 -1
  11. data/docs/AnsibleRoleRemoteResponse.md +5 -1
  12. data/docs/AnsibleRoleResponse.md +3 -3
  13. data/docs/CollectionResponse.md +1 -1
  14. data/docs/CollectionVersionResponse.md +6 -0
  15. data/docs/DistributionsAnsibleApi.md +8 -0
  16. data/docs/PatchedansibleAnsibleRepository.md +6 -2
  17. data/docs/PatchedansibleCollectionRemote.md +4 -0
  18. data/docs/PatchedansibleRoleRemote.md +5 -1
  19. data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +6 -4
  20. data/docs/PulpAnsibleGalaxyApiV3AllApi.md +138 -0
  21. data/docs/PulpAnsibleGalaxyV3Api.md +61 -0
  22. data/docs/RemotesCollectionApi.md +8 -0
  23. data/docs/RemotesRoleApi.md +8 -0
  24. data/docs/{PatchedCollection.md → RepoMetadataResponse.md} +3 -3
  25. data/docs/RepositoriesAnsibleApi.md +12 -4
  26. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +12 -0
  27. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +12 -9
  28. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_all_api.rb +190 -0
  29. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_v3_api.rb +88 -0
  30. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +12 -0
  31. data/lib/pulp_ansible_client/api/remotes_role_api.rb +12 -0
  32. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +21 -9
  33. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +25 -5
  34. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +25 -5
  35. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +21 -1
  36. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +21 -1
  37. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +60 -4
  38. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +69 -13
  39. data/lib/pulp_ansible_client/models/{repository_sync_url.rb → ansible_repository_sync_url.rb} +20 -8
  40. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +25 -5
  41. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +25 -5
  42. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  43. data/lib/pulp_ansible_client/models/collection_response.rb +0 -5
  44. data/lib/pulp_ansible_client/models/collection_version_response.rb +56 -1
  45. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +25 -5
  46. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +21 -1
  47. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +25 -5
  48. data/lib/pulp_ansible_client/models/{patched_collection.rb → repo_metadata_response.rb} +16 -11
  49. data/lib/pulp_ansible_client/version.rb +1 -1
  50. data/lib/pulp_ansible_client.rb +4 -2
  51. data/spec/api/distributions_ansible_api_spec.rb +4 -0
  52. data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +2 -1
  53. data/spec/api/pulp_ansible_galaxy_api_v3_all_api_spec.rb +73 -0
  54. data/spec/api/pulp_ansible_galaxy_v3_api_spec.rb +48 -0
  55. data/spec/api/remotes_collection_api_spec.rb +4 -0
  56. data/spec/api/remotes_role_api_spec.rb +4 -0
  57. data/spec/api/repositories_ansible_api_spec.rb +5 -1
  58. data/spec/models/ansible_ansible_repository_response_spec.rb +12 -0
  59. data/spec/models/ansible_ansible_repository_spec.rb +12 -0
  60. data/spec/models/ansible_collection_remote_response_spec.rb +12 -0
  61. data/spec/models/ansible_collection_remote_spec.rb +12 -0
  62. data/spec/models/ansible_collection_version_response_spec.rb +21 -3
  63. data/spec/models/ansible_collection_version_spec.rb +18 -0
  64. data/spec/models/{repository_sync_url_spec.rb → ansible_repository_sync_url_spec.rb} +12 -6
  65. data/spec/models/ansible_role_remote_response_spec.rb +12 -0
  66. data/spec/models/ansible_role_remote_spec.rb +12 -0
  67. data/spec/models/ansible_role_response_spec.rb +3 -3
  68. data/spec/models/collection_version_response_spec.rb +18 -0
  69. data/spec/models/patchedansible_ansible_repository_spec.rb +12 -0
  70. data/spec/models/patchedansible_collection_remote_spec.rb +12 -0
  71. data/spec/models/patchedansible_role_remote_spec.rb +12 -0
  72. data/spec/models/{patched_collection_spec.rb → repo_metadata_response_spec.rb} +7 -7
  73. metadata +18 -10
@@ -0,0 +1,88 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpAnsibleClient
16
+ class PulpAnsibleGalaxyV3Api
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # ViewSet for Repository Metadata.
23
+ # @param path [String]
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :fields A list of fields to include in the response.
26
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
27
+ # @return [RepoMetadataResponse]
28
+ def read(path, opts = {})
29
+ data, _status_code, _headers = read_with_http_info(path, opts)
30
+ data
31
+ end
32
+
33
+ # ViewSet for Repository Metadata.
34
+ # @param path [String]
35
+ # @param [Hash] opts the optional parameters
36
+ # @option opts [String] :fields A list of fields to include in the response.
37
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
38
+ # @return [Array<(RepoMetadataResponse, Integer, Hash)>] RepoMetadataResponse data, response status code and response headers
39
+ def read_with_http_info(path, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleGalaxyV3Api.read ...'
42
+ end
43
+ # verify the required parameter 'path' is set
44
+ if @api_client.config.client_side_validation && path.nil?
45
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleGalaxyV3Api.read"
46
+ end
47
+ # resource path
48
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
49
+
50
+ # query parameters
51
+ query_params = opts[:query_params] || {}
52
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
53
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
54
+
55
+ # header parameters
56
+ header_params = opts[:header_params] || {}
57
+ # HTTP header 'Accept' (if needed)
58
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
59
+
60
+ # form parameters
61
+ form_params = opts[:form_params] || {}
62
+
63
+ # http body (model)
64
+ post_body = opts[:body]
65
+
66
+ # return_type
67
+ return_type = opts[:return_type] || 'RepoMetadataResponse'
68
+
69
+ # auth_names
70
+ auth_names = opts[:auth_names] || []
71
+
72
+ new_options = opts.merge(
73
+ :header_params => header_params,
74
+ :query_params => query_params,
75
+ :form_params => form_params,
76
+ :body => post_body,
77
+ :auth_names => auth_names,
78
+ :return_type => return_type
79
+ )
80
+
81
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
82
+ if @api_client.config.debugging
83
+ @api_client.config.logger.debug "API called: PulpAnsibleGalaxyV3Api#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
+ end
85
+ return data, status_code, headers
86
+ end
87
+ end
88
+ end
@@ -150,9 +150,13 @@ module PulpAnsibleClient
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [Integer] :limit Number of results to return per page.
152
152
  # @option opts [String] :name name
153
+ # @option opts [String] :name__contains name__contains
154
+ # @option opts [String] :name__icontains name__icontains
153
155
  # @option opts [String] :name__in name__in
156
+ # @option opts [String] :name__startswith name__startswith
154
157
  # @option opts [Integer] :offset The initial index from which to return the results.
155
158
  # @option opts [String] :ordering Which field to use when ordering the results.
159
+ # @option opts [String] :pulp_label_select pulp_label_select
156
160
  # @option opts [String] :pulp_last_updated pulp_last_updated
157
161
  # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
158
162
  # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
@@ -172,9 +176,13 @@ module PulpAnsibleClient
172
176
  # @param [Hash] opts the optional parameters
173
177
  # @option opts [Integer] :limit Number of results to return per page.
174
178
  # @option opts [String] :name name
179
+ # @option opts [String] :name__contains name__contains
180
+ # @option opts [String] :name__icontains name__icontains
175
181
  # @option opts [String] :name__in name__in
182
+ # @option opts [String] :name__startswith name__startswith
176
183
  # @option opts [Integer] :offset The initial index from which to return the results.
177
184
  # @option opts [String] :ordering Which field to use when ordering the results.
185
+ # @option opts [String] :pulp_label_select pulp_label_select
178
186
  # @option opts [String] :pulp_last_updated pulp_last_updated
179
187
  # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
180
188
  # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
@@ -195,9 +203,13 @@ module PulpAnsibleClient
195
203
  query_params = opts[:query_params] || {}
196
204
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
197
205
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
206
+ query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
207
+ query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
198
208
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
209
+ query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
199
210
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
200
211
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
212
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
201
213
  query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
202
214
  query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
203
215
  query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
@@ -150,9 +150,13 @@ module PulpAnsibleClient
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [Integer] :limit Number of results to return per page.
152
152
  # @option opts [String] :name name
153
+ # @option opts [String] :name__contains name__contains
154
+ # @option opts [String] :name__icontains name__icontains
153
155
  # @option opts [String] :name__in name__in
156
+ # @option opts [String] :name__startswith name__startswith
154
157
  # @option opts [Integer] :offset The initial index from which to return the results.
155
158
  # @option opts [String] :ordering Which field to use when ordering the results.
159
+ # @option opts [String] :pulp_label_select pulp_label_select
156
160
  # @option opts [String] :pulp_last_updated pulp_last_updated
157
161
  # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
158
162
  # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
@@ -172,9 +176,13 @@ module PulpAnsibleClient
172
176
  # @param [Hash] opts the optional parameters
173
177
  # @option opts [Integer] :limit Number of results to return per page.
174
178
  # @option opts [String] :name name
179
+ # @option opts [String] :name__contains name__contains
180
+ # @option opts [String] :name__icontains name__icontains
175
181
  # @option opts [String] :name__in name__in
182
+ # @option opts [String] :name__startswith name__startswith
176
183
  # @option opts [Integer] :offset The initial index from which to return the results.
177
184
  # @option opts [String] :ordering Which field to use when ordering the results.
185
+ # @option opts [String] :pulp_label_select pulp_label_select
178
186
  # @option opts [String] :pulp_last_updated pulp_last_updated
179
187
  # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
180
188
  # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
@@ -195,9 +203,13 @@ module PulpAnsibleClient
195
203
  query_params = opts[:query_params] || {}
196
204
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
197
205
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
206
+ query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
207
+ query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
198
208
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
209
+ query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
199
210
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
200
211
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
212
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
201
213
  query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
202
214
  query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
203
215
  query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
@@ -150,9 +150,13 @@ module PulpAnsibleClient
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [Integer] :limit Number of results to return per page.
152
152
  # @option opts [String] :name name
153
+ # @option opts [String] :name__contains name__contains
154
+ # @option opts [String] :name__icontains name__icontains
153
155
  # @option opts [String] :name__in name__in
156
+ # @option opts [String] :name__startswith name__startswith
154
157
  # @option opts [Integer] :offset The initial index from which to return the results.
155
158
  # @option opts [String] :ordering Which field to use when ordering the results.
159
+ # @option opts [String] :pulp_label_select pulp_label_select
156
160
  # @option opts [String] :fields A list of fields to include in the response.
157
161
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
158
162
  # @return [PaginatedansibleAnsibleRepositoryResponseList]
@@ -166,9 +170,13 @@ module PulpAnsibleClient
166
170
  # @param [Hash] opts the optional parameters
167
171
  # @option opts [Integer] :limit Number of results to return per page.
168
172
  # @option opts [String] :name name
173
+ # @option opts [String] :name__contains name__contains
174
+ # @option opts [String] :name__icontains name__icontains
169
175
  # @option opts [String] :name__in name__in
176
+ # @option opts [String] :name__startswith name__startswith
170
177
  # @option opts [Integer] :offset The initial index from which to return the results.
171
178
  # @option opts [String] :ordering Which field to use when ordering the results.
179
+ # @option opts [String] :pulp_label_select pulp_label_select
172
180
  # @option opts [String] :fields A list of fields to include in the response.
173
181
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
174
182
  # @return [Array<(PaginatedansibleAnsibleRepositoryResponseList, Integer, Hash)>] PaginatedansibleAnsibleRepositoryResponseList data, response status code and response headers
@@ -183,9 +191,13 @@ module PulpAnsibleClient
183
191
  query_params = opts[:query_params] || {}
184
192
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
185
193
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
194
+ query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
195
+ query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
186
196
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
197
+ query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
187
198
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
188
199
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
200
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
189
201
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
190
202
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
191
203
 
@@ -432,20 +444,20 @@ module PulpAnsibleClient
432
444
 
433
445
  # Trigger an asynchronous task to sync Ansible content.
434
446
  # @param ansible_ansible_repository_href [String]
435
- # @param repository_sync_url [RepositorySyncURL]
447
+ # @param ansible_repository_sync_url [AnsibleRepositorySyncURL]
436
448
  # @param [Hash] opts the optional parameters
437
449
  # @return [AsyncOperationResponse]
438
- def sync(ansible_ansible_repository_href, repository_sync_url, opts = {})
439
- data, _status_code, _headers = sync_with_http_info(ansible_ansible_repository_href, repository_sync_url, opts)
450
+ def sync(ansible_ansible_repository_href, ansible_repository_sync_url, opts = {})
451
+ data, _status_code, _headers = sync_with_http_info(ansible_ansible_repository_href, ansible_repository_sync_url, opts)
440
452
  data
441
453
  end
442
454
 
443
455
  # Trigger an asynchronous task to sync Ansible content.
444
456
  # @param ansible_ansible_repository_href [String]
445
- # @param repository_sync_url [RepositorySyncURL]
457
+ # @param ansible_repository_sync_url [AnsibleRepositorySyncURL]
446
458
  # @param [Hash] opts the optional parameters
447
459
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
448
- def sync_with_http_info(ansible_ansible_repository_href, repository_sync_url, opts = {})
460
+ def sync_with_http_info(ansible_ansible_repository_href, ansible_repository_sync_url, opts = {})
449
461
  if @api_client.config.debugging
450
462
  @api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.sync ...'
451
463
  end
@@ -453,9 +465,9 @@ module PulpAnsibleClient
453
465
  if @api_client.config.client_side_validation && ansible_ansible_repository_href.nil?
454
466
  fail ArgumentError, "Missing the required parameter 'ansible_ansible_repository_href' when calling RepositoriesAnsibleApi.sync"
455
467
  end
456
- # verify the required parameter 'repository_sync_url' is set
457
- if @api_client.config.client_side_validation && repository_sync_url.nil?
458
- fail ArgumentError, "Missing the required parameter 'repository_sync_url' when calling RepositoriesAnsibleApi.sync"
468
+ # verify the required parameter 'ansible_repository_sync_url' is set
469
+ if @api_client.config.client_side_validation && ansible_repository_sync_url.nil?
470
+ fail ArgumentError, "Missing the required parameter 'ansible_repository_sync_url' when calling RepositoriesAnsibleApi.sync"
459
471
  end
460
472
  # resource path
461
473
  local_var_path = '{ansible_ansible_repository_href}sync/'.sub('{' + 'ansible_ansible_repository_href' + '}', CGI.escape(ansible_ansible_repository_href.to_s).gsub('%2F', '/'))
@@ -474,7 +486,7 @@ module PulpAnsibleClient
474
486
  form_params = opts[:form_params] || {}
475
487
 
476
488
  # http body (model)
477
- post_body = opts[:body] || @api_client.object_to_http_body(repository_sync_url)
489
+ post_body = opts[:body] || @api_client.object_to_http_body(ansible_repository_sync_url)
478
490
 
479
491
  # return_type
480
492
  return_type = opts[:return_type] || 'AsyncOperationResponse'
@@ -15,6 +15,8 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # Serializer for Ansible Repositories.
17
17
  class AnsibleAnsibleRepository
18
+ attr_accessor :pulp_labels
19
+
18
20
  # A unique name for this repository.
19
21
  attr_accessor :name
20
22
 
@@ -23,21 +25,28 @@ module PulpAnsibleClient
23
25
 
24
26
  attr_accessor :remote
25
27
 
28
+ # Last synced metadata time.
29
+ attr_accessor :last_synced_metadata_time
30
+
26
31
  # Attribute mapping from ruby-style variable name to JSON key.
27
32
  def self.attribute_map
28
33
  {
34
+ :'pulp_labels' => :'pulp_labels',
29
35
  :'name' => :'name',
30
36
  :'description' => :'description',
31
- :'remote' => :'remote'
37
+ :'remote' => :'remote',
38
+ :'last_synced_metadata_time' => :'last_synced_metadata_time'
32
39
  }
33
40
  end
34
41
 
35
42
  # Attribute type mapping.
36
43
  def self.openapi_types
37
44
  {
45
+ :'pulp_labels' => :'Object',
38
46
  :'name' => :'String',
39
47
  :'description' => :'String',
40
- :'remote' => :'String'
48
+ :'remote' => :'String',
49
+ :'last_synced_metadata_time' => :'DateTime'
41
50
  }
42
51
  end
43
52
 
@@ -45,7 +54,8 @@ module PulpAnsibleClient
45
54
  def self.openapi_nullable
46
55
  Set.new([
47
56
  :'description',
48
- :'remote'
57
+ :'remote',
58
+ :'last_synced_metadata_time'
49
59
  ])
50
60
  end
51
61
 
@@ -64,6 +74,10 @@ module PulpAnsibleClient
64
74
  h[k.to_sym] = v
65
75
  }
66
76
 
77
+ if attributes.key?(:'pulp_labels')
78
+ self.pulp_labels = attributes[:'pulp_labels']
79
+ end
80
+
67
81
  if attributes.key?(:'name')
68
82
  self.name = attributes[:'name']
69
83
  end
@@ -75,6 +89,10 @@ module PulpAnsibleClient
75
89
  if attributes.key?(:'remote')
76
90
  self.remote = attributes[:'remote']
77
91
  end
92
+
93
+ if attributes.key?(:'last_synced_metadata_time')
94
+ self.last_synced_metadata_time = attributes[:'last_synced_metadata_time']
95
+ end
78
96
  end
79
97
 
80
98
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -100,9 +118,11 @@ module PulpAnsibleClient
100
118
  def ==(o)
101
119
  return true if self.equal?(o)
102
120
  self.class == o.class &&
121
+ pulp_labels == o.pulp_labels &&
103
122
  name == o.name &&
104
123
  description == o.description &&
105
- remote == o.remote
124
+ remote == o.remote &&
125
+ last_synced_metadata_time == o.last_synced_metadata_time
106
126
  end
107
127
 
108
128
  # @see the `==` method
@@ -114,7 +134,7 @@ module PulpAnsibleClient
114
134
  # Calculates hash code according to all attributes.
115
135
  # @return [Integer] Hash code
116
136
  def hash
117
- [name, description, remote].hash
137
+ [pulp_labels, name, description, remote, last_synced_metadata_time].hash
118
138
  end
119
139
 
120
140
  # Builds the object from hash
@@ -22,6 +22,8 @@ module PulpAnsibleClient
22
22
 
23
23
  attr_accessor :versions_href
24
24
 
25
+ attr_accessor :pulp_labels
26
+
25
27
  attr_accessor :latest_version_href
26
28
 
27
29
  # A unique name for this repository.
@@ -32,16 +34,21 @@ module PulpAnsibleClient
32
34
 
33
35
  attr_accessor :remote
34
36
 
37
+ # Last synced metadata time.
38
+ attr_accessor :last_synced_metadata_time
39
+
35
40
  # Attribute mapping from ruby-style variable name to JSON key.
36
41
  def self.attribute_map
37
42
  {
38
43
  :'pulp_href' => :'pulp_href',
39
44
  :'pulp_created' => :'pulp_created',
40
45
  :'versions_href' => :'versions_href',
46
+ :'pulp_labels' => :'pulp_labels',
41
47
  :'latest_version_href' => :'latest_version_href',
42
48
  :'name' => :'name',
43
49
  :'description' => :'description',
44
- :'remote' => :'remote'
50
+ :'remote' => :'remote',
51
+ :'last_synced_metadata_time' => :'last_synced_metadata_time'
45
52
  }
46
53
  end
47
54
 
@@ -51,10 +58,12 @@ module PulpAnsibleClient
51
58
  :'pulp_href' => :'String',
52
59
  :'pulp_created' => :'DateTime',
53
60
  :'versions_href' => :'String',
61
+ :'pulp_labels' => :'Object',
54
62
  :'latest_version_href' => :'String',
55
63
  :'name' => :'String',
56
64
  :'description' => :'String',
57
- :'remote' => :'String'
65
+ :'remote' => :'String',
66
+ :'last_synced_metadata_time' => :'DateTime'
58
67
  }
59
68
  end
60
69
 
@@ -62,7 +71,8 @@ module PulpAnsibleClient
62
71
  def self.openapi_nullable
63
72
  Set.new([
64
73
  :'description',
65
- :'remote'
74
+ :'remote',
75
+ :'last_synced_metadata_time'
66
76
  ])
67
77
  end
68
78
 
@@ -93,6 +103,10 @@ module PulpAnsibleClient
93
103
  self.versions_href = attributes[:'versions_href']
94
104
  end
95
105
 
106
+ if attributes.key?(:'pulp_labels')
107
+ self.pulp_labels = attributes[:'pulp_labels']
108
+ end
109
+
96
110
  if attributes.key?(:'latest_version_href')
97
111
  self.latest_version_href = attributes[:'latest_version_href']
98
112
  end
@@ -108,6 +122,10 @@ module PulpAnsibleClient
108
122
  if attributes.key?(:'remote')
109
123
  self.remote = attributes[:'remote']
110
124
  end
125
+
126
+ if attributes.key?(:'last_synced_metadata_time')
127
+ self.last_synced_metadata_time = attributes[:'last_synced_metadata_time']
128
+ end
111
129
  end
112
130
 
113
131
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -136,10 +154,12 @@ module PulpAnsibleClient
136
154
  pulp_href == o.pulp_href &&
137
155
  pulp_created == o.pulp_created &&
138
156
  versions_href == o.versions_href &&
157
+ pulp_labels == o.pulp_labels &&
139
158
  latest_version_href == o.latest_version_href &&
140
159
  name == o.name &&
141
160
  description == o.description &&
142
- remote == o.remote
161
+ remote == o.remote &&
162
+ last_synced_metadata_time == o.last_synced_metadata_time
143
163
  end
144
164
 
145
165
  # @see the `==` method
@@ -151,7 +171,7 @@ module PulpAnsibleClient
151
171
  # Calculates hash code according to all attributes.
152
172
  # @return [Integer] Hash code
153
173
  def hash
154
- [pulp_href, pulp_created, versions_href, latest_version_href, name, description, remote].hash
174
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, remote, last_synced_metadata_time].hash
155
175
  end
156
176
 
157
177
  # Builds the object from hash
@@ -42,6 +42,8 @@ module PulpAnsibleClient
42
42
  # The password to be used for authentication when syncing.
43
43
  attr_accessor :password
44
44
 
45
+ attr_accessor :pulp_labels
46
+
45
47
  # Total number of simultaneous connections.
46
48
  attr_accessor :download_concurrency
47
49
 
@@ -60,6 +62,9 @@ module PulpAnsibleClient
60
62
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
61
63
  attr_accessor :sock_read_timeout
62
64
 
65
+ # Limits total download rate in requests per second
66
+ attr_accessor :rate_limit
67
+
63
68
  # The string version of Collection requirements yaml.
64
69
  attr_accessor :requirements_file
65
70
 
@@ -81,12 +86,14 @@ module PulpAnsibleClient
81
86
  :'proxy_url' => :'proxy_url',
82
87
  :'username' => :'username',
83
88
  :'password' => :'password',
89
+ :'pulp_labels' => :'pulp_labels',
84
90
  :'download_concurrency' => :'download_concurrency',
85
91
  :'policy' => :'policy',
86
92
  :'total_timeout' => :'total_timeout',
87
93
  :'connect_timeout' => :'connect_timeout',
88
94
  :'sock_connect_timeout' => :'sock_connect_timeout',
89
95
  :'sock_read_timeout' => :'sock_read_timeout',
96
+ :'rate_limit' => :'rate_limit',
90
97
  :'requirements_file' => :'requirements_file',
91
98
  :'auth_url' => :'auth_url',
92
99
  :'token' => :'token'
@@ -105,12 +112,14 @@ module PulpAnsibleClient
105
112
  :'proxy_url' => :'String',
106
113
  :'username' => :'String',
107
114
  :'password' => :'String',
115
+ :'pulp_labels' => :'Object',
108
116
  :'download_concurrency' => :'Integer',
109
117
  :'policy' => :'PolicyEnum',
110
118
  :'total_timeout' => :'Float',
111
119
  :'connect_timeout' => :'Float',
112
120
  :'sock_connect_timeout' => :'Float',
113
121
  :'sock_read_timeout' => :'Float',
122
+ :'rate_limit' => :'Integer',
114
123
  :'requirements_file' => :'String',
115
124
  :'auth_url' => :'String',
116
125
  :'token' => :'String'
@@ -130,6 +139,7 @@ module PulpAnsibleClient
130
139
  :'connect_timeout',
131
140
  :'sock_connect_timeout',
132
141
  :'sock_read_timeout',
142
+ :'rate_limit',
133
143
  :'requirements_file',
134
144
  :'auth_url',
135
145
  :'token'
@@ -187,6 +197,10 @@ module PulpAnsibleClient
187
197
  self.password = attributes[:'password']
188
198
  end
189
199
 
200
+ if attributes.key?(:'pulp_labels')
201
+ self.pulp_labels = attributes[:'pulp_labels']
202
+ end
203
+
190
204
  if attributes.key?(:'download_concurrency')
191
205
  self.download_concurrency = attributes[:'download_concurrency']
192
206
  end
@@ -211,6 +225,10 @@ module PulpAnsibleClient
211
225
  self.sock_read_timeout = attributes[:'sock_read_timeout']
212
226
  end
213
227
 
228
+ if attributes.key?(:'rate_limit')
229
+ self.rate_limit = attributes[:'rate_limit']
230
+ end
231
+
214
232
  if attributes.key?(:'requirements_file')
215
233
  self.requirements_file = attributes[:'requirements_file']
216
234
  end
@@ -366,12 +384,14 @@ module PulpAnsibleClient
366
384
  proxy_url == o.proxy_url &&
367
385
  username == o.username &&
368
386
  password == o.password &&
387
+ pulp_labels == o.pulp_labels &&
369
388
  download_concurrency == o.download_concurrency &&
370
389
  policy == o.policy &&
371
390
  total_timeout == o.total_timeout &&
372
391
  connect_timeout == o.connect_timeout &&
373
392
  sock_connect_timeout == o.sock_connect_timeout &&
374
393
  sock_read_timeout == o.sock_read_timeout &&
394
+ rate_limit == o.rate_limit &&
375
395
  requirements_file == o.requirements_file &&
376
396
  auth_url == o.auth_url &&
377
397
  token == o.token
@@ -386,7 +406,7 @@ module PulpAnsibleClient
386
406
  # Calculates hash code according to all attributes.
387
407
  # @return [Integer] Hash code
388
408
  def hash
389
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, requirements_file, auth_url, token].hash
409
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, requirements_file, auth_url, token].hash
390
410
  end
391
411
 
392
412
  # Builds the object from hash
@@ -47,6 +47,8 @@ module PulpAnsibleClient
47
47
  # The password to be used for authentication when syncing.
48
48
  attr_accessor :password
49
49
 
50
+ attr_accessor :pulp_labels
51
+
50
52
  # Timestamp of the most recent update of the remote.
51
53
  attr_accessor :pulp_last_updated
52
54
 
@@ -68,6 +70,9 @@ module PulpAnsibleClient
68
70
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
69
71
  attr_accessor :sock_read_timeout
70
72
 
73
+ # Limits total download rate in requests per second
74
+ attr_accessor :rate_limit
75
+
71
76
  # The string version of Collection requirements yaml.
72
77
  attr_accessor :requirements_file
73
78
 
@@ -91,6 +96,7 @@ module PulpAnsibleClient
91
96
  :'proxy_url' => :'proxy_url',
92
97
  :'username' => :'username',
93
98
  :'password' => :'password',
99
+ :'pulp_labels' => :'pulp_labels',
94
100
  :'pulp_last_updated' => :'pulp_last_updated',
95
101
  :'download_concurrency' => :'download_concurrency',
96
102
  :'policy' => :'policy',
@@ -98,6 +104,7 @@ module PulpAnsibleClient
98
104
  :'connect_timeout' => :'connect_timeout',
99
105
  :'sock_connect_timeout' => :'sock_connect_timeout',
100
106
  :'sock_read_timeout' => :'sock_read_timeout',
107
+ :'rate_limit' => :'rate_limit',
101
108
  :'requirements_file' => :'requirements_file',
102
109
  :'auth_url' => :'auth_url',
103
110
  :'token' => :'token'
@@ -118,6 +125,7 @@ module PulpAnsibleClient
118
125
  :'proxy_url' => :'String',
119
126
  :'username' => :'String',
120
127
  :'password' => :'String',
128
+ :'pulp_labels' => :'Object',
121
129
  :'pulp_last_updated' => :'DateTime',
122
130
  :'download_concurrency' => :'Integer',
123
131
  :'policy' => :'PolicyEnum',
@@ -125,6 +133,7 @@ module PulpAnsibleClient
125
133
  :'connect_timeout' => :'Float',
126
134
  :'sock_connect_timeout' => :'Float',
127
135
  :'sock_read_timeout' => :'Float',
136
+ :'rate_limit' => :'Integer',
128
137
  :'requirements_file' => :'String',
129
138
  :'auth_url' => :'String',
130
139
  :'token' => :'String'
@@ -144,6 +153,7 @@ module PulpAnsibleClient
144
153
  :'connect_timeout',
145
154
  :'sock_connect_timeout',
146
155
  :'sock_read_timeout',
156
+ :'rate_limit',
147
157
  :'requirements_file',
148
158
  :'auth_url',
149
159
  :'token'
@@ -209,6 +219,10 @@ module PulpAnsibleClient
209
219
  self.password = attributes[:'password']
210
220
  end
211
221
 
222
+ if attributes.key?(:'pulp_labels')
223
+ self.pulp_labels = attributes[:'pulp_labels']
224
+ end
225
+
212
226
  if attributes.key?(:'pulp_last_updated')
213
227
  self.pulp_last_updated = attributes[:'pulp_last_updated']
214
228
  end
@@ -237,6 +251,10 @@ module PulpAnsibleClient
237
251
  self.sock_read_timeout = attributes[:'sock_read_timeout']
238
252
  end
239
253
 
254
+ if attributes.key?(:'rate_limit')
255
+ self.rate_limit = attributes[:'rate_limit']
256
+ end
257
+
240
258
  if attributes.key?(:'requirements_file')
241
259
  self.requirements_file = attributes[:'requirements_file']
242
260
  end
@@ -394,6 +412,7 @@ module PulpAnsibleClient
394
412
  proxy_url == o.proxy_url &&
395
413
  username == o.username &&
396
414
  password == o.password &&
415
+ pulp_labels == o.pulp_labels &&
397
416
  pulp_last_updated == o.pulp_last_updated &&
398
417
  download_concurrency == o.download_concurrency &&
399
418
  policy == o.policy &&
@@ -401,6 +420,7 @@ module PulpAnsibleClient
401
420
  connect_timeout == o.connect_timeout &&
402
421
  sock_connect_timeout == o.sock_connect_timeout &&
403
422
  sock_read_timeout == o.sock_read_timeout &&
423
+ rate_limit == o.rate_limit &&
404
424
  requirements_file == o.requirements_file &&
405
425
  auth_url == o.auth_url &&
406
426
  token == o.token
@@ -415,7 +435,7 @@ module PulpAnsibleClient
415
435
  # Calculates hash code according to all attributes.
416
436
  # @return [Integer] Hash code
417
437
  def hash
418
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, requirements_file, auth_url, token].hash
438
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, requirements_file, auth_url, token].hash
419
439
  end
420
440
 
421
441
  # Builds the object from hash