pulpcore_client 3.28.29 → 3.28.30

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 +157 -155
  3. data/docs/AccessPoliciesApi.md +26 -26
  4. data/docs/ArtifactDistributionResponse.md +9 -9
  5. data/docs/ArtifactsApi.md +21 -21
  6. data/docs/ContentApi.md +8 -8
  7. data/docs/ContentguardsApi.md +8 -8
  8. data/docs/ContentguardsContentRedirectApi.md +51 -51
  9. data/docs/ContentguardsRbacApi.md +51 -51
  10. data/docs/DistributionsApi.md +8 -8
  11. data/docs/DistributionsArtifactsApi.md +11 -11
  12. data/docs/DocsApiJsonApi.md +61 -0
  13. data/docs/DocsApiYamlApi.md +61 -0
  14. data/docs/DomainsApi.md +31 -31
  15. data/docs/ExportersFilesystemApi.md +31 -31
  16. data/docs/ExportersFilesystemExportsApi.md +21 -21
  17. data/docs/ExportersPulpApi.md +31 -31
  18. data/docs/ExportersPulpExportsApi.md +21 -21
  19. data/docs/GroupsApi.md +51 -51
  20. data/docs/GroupsRolesApi.md +21 -21
  21. data/docs/GroupsUsersApi.md +16 -16
  22. data/docs/ImportersPulpApi.md +31 -31
  23. data/docs/ImportersPulpImportCheckApi.md +1 -1
  24. data/docs/ImportersPulpImportsApi.md +21 -21
  25. data/docs/OrphansApi.md +6 -6
  26. data/docs/OrphansCleanupApi.md +6 -6
  27. data/docs/PublicationsApi.md +8 -8
  28. data/docs/RemoteResponseHiddenFields.md +2 -2
  29. data/docs/RemotesApi.md +8 -8
  30. data/docs/RepairApi.md +6 -6
  31. data/docs/RepositoriesApi.md +8 -8
  32. data/docs/RepositoriesReclaimSpaceApi.md +6 -6
  33. data/docs/RepositoryVersionsApi.md +6 -6
  34. data/docs/RolesApi.md +31 -31
  35. data/docs/SigningServicesApi.md +11 -11
  36. data/docs/StatusApi.md +1 -1
  37. data/docs/TaskGroupsApi.md +11 -11
  38. data/docs/TaskSchedulesApi.md +31 -31
  39. data/docs/TasksApi.md +96 -96
  40. data/docs/UploadsApi.md +51 -51
  41. data/docs/UpstreamPulpsApi.md +36 -36
  42. data/docs/UsersApi.md +31 -31
  43. data/docs/UsersRolesApi.md +21 -21
  44. data/docs/WorkersApi.md +11 -11
  45. data/lib/pulpcore_client/api/access_policies_api.rb +31 -31
  46. data/lib/pulpcore_client/api/artifacts_api.rb +29 -29
  47. data/lib/pulpcore_client/api/content_api.rb +8 -8
  48. data/lib/pulpcore_client/api/contentguards_api.rb +8 -8
  49. data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +63 -63
  50. data/lib/pulpcore_client/api/contentguards_rbac_api.rb +63 -63
  51. data/lib/pulpcore_client/api/distributions_api.rb +8 -8
  52. data/lib/pulpcore_client/api/distributions_artifacts_api.rb +11 -11
  53. data/lib/pulpcore_client/api/docs_api_json_api.rb +89 -0
  54. data/lib/pulpcore_client/api/docs_api_yaml_api.rb +89 -0
  55. data/lib/pulpcore_client/api/domains_api.rb +37 -37
  56. data/lib/pulpcore_client/api/exporters_filesystem_api.rb +37 -37
  57. data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +25 -25
  58. data/lib/pulpcore_client/api/exporters_pulp_api.rb +37 -37
  59. data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +25 -25
  60. data/lib/pulpcore_client/api/groups_api.rb +63 -63
  61. data/lib/pulpcore_client/api/groups_roles_api.rb +25 -25
  62. data/lib/pulpcore_client/api/groups_users_api.rb +19 -19
  63. data/lib/pulpcore_client/api/importers_pulp_api.rb +37 -37
  64. data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +25 -25
  65. data/lib/pulpcore_client/api/orphans_api.rb +5 -5
  66. data/lib/pulpcore_client/api/orphans_cleanup_api.rb +6 -6
  67. data/lib/pulpcore_client/api/publications_api.rb +7 -11
  68. data/lib/pulpcore_client/api/remotes_api.rb +7 -11
  69. data/lib/pulpcore_client/api/repair_api.rb +6 -6
  70. data/lib/pulpcore_client/api/repositories_api.rb +7 -11
  71. data/lib/pulpcore_client/api/repositories_reclaim_space_api.rb +6 -6
  72. data/lib/pulpcore_client/api/repository_versions_api.rb +5 -5
  73. data/lib/pulpcore_client/api/roles_api.rb +37 -37
  74. data/lib/pulpcore_client/api/signing_services_api.rb +11 -11
  75. data/lib/pulpcore_client/api/task_groups_api.rb +11 -11
  76. data/lib/pulpcore_client/api/task_schedules_api.rb +37 -37
  77. data/lib/pulpcore_client/api/tasks_api.rb +119 -119
  78. data/lib/pulpcore_client/api/uploads_api.rb +65 -65
  79. data/lib/pulpcore_client/api/upstream_pulps_api.rb +43 -43
  80. data/lib/pulpcore_client/api/users_api.rb +37 -37
  81. data/lib/pulpcore_client/api/users_roles_api.rb +25 -25
  82. data/lib/pulpcore_client/api/workers_api.rb +11 -11
  83. data/lib/pulpcore_client/configuration.rb +3 -3
  84. data/lib/pulpcore_client/models/artifact_distribution_response.rb +48 -48
  85. data/lib/pulpcore_client/models/remote_response.rb +20 -20
  86. data/lib/pulpcore_client/models/remote_response_hidden_fields.rb +10 -0
  87. data/lib/pulpcore_client/version.rb +1 -1
  88. data/lib/pulpcore_client.rb +2 -0
  89. data/spec/api/access_policies_api_spec.rb +10 -10
  90. data/spec/api/artifacts_api_spec.rb +8 -8
  91. data/spec/api/content_api_spec.rb +3 -3
  92. data/spec/api/contentguards_api_spec.rb +3 -3
  93. data/spec/api/contentguards_content_redirect_api_spec.rb +20 -20
  94. data/spec/api/contentguards_rbac_api_spec.rb +20 -20
  95. data/spec/api/distributions_api_spec.rb +3 -3
  96. data/spec/api/distributions_artifacts_api_spec.rb +4 -4
  97. data/spec/api/docs_api_json_api_spec.rb +48 -0
  98. data/spec/api/docs_api_yaml_api_spec.rb +48 -0
  99. data/spec/api/domains_api_spec.rb +12 -12
  100. data/spec/api/exporters_filesystem_api_spec.rb +12 -12
  101. data/spec/api/exporters_filesystem_exports_api_spec.rb +8 -8
  102. data/spec/api/exporters_pulp_api_spec.rb +12 -12
  103. data/spec/api/exporters_pulp_exports_api_spec.rb +8 -8
  104. data/spec/api/groups_api_spec.rb +20 -20
  105. data/spec/api/groups_roles_api_spec.rb +8 -8
  106. data/spec/api/groups_users_api_spec.rb +6 -6
  107. data/spec/api/importers_pulp_api_spec.rb +12 -12
  108. data/spec/api/importers_pulp_imports_api_spec.rb +8 -8
  109. data/spec/api/orphans_api_spec.rb +2 -2
  110. data/spec/api/orphans_cleanup_api_spec.rb +2 -2
  111. data/spec/api/publications_api_spec.rb +3 -3
  112. data/spec/api/remotes_api_spec.rb +3 -3
  113. data/spec/api/repair_api_spec.rb +2 -2
  114. data/spec/api/repositories_api_spec.rb +3 -3
  115. data/spec/api/repositories_reclaim_space_api_spec.rb +2 -2
  116. data/spec/api/repository_versions_api_spec.rb +2 -2
  117. data/spec/api/roles_api_spec.rb +12 -12
  118. data/spec/api/signing_services_api_spec.rb +4 -4
  119. data/spec/api/task_groups_api_spec.rb +4 -4
  120. data/spec/api/task_schedules_api_spec.rb +12 -12
  121. data/spec/api/tasks_api_spec.rb +29 -29
  122. data/spec/api/uploads_api_spec.rb +20 -20
  123. data/spec/api/upstream_pulps_api_spec.rb +14 -14
  124. data/spec/api/users_api_spec.rb +12 -12
  125. data/spec/api/users_roles_api_spec.rb +8 -8
  126. data/spec/api/workers_api_spec.rb +4 -4
  127. data/spec/configuration_spec.rb +3 -3
  128. data/spec/models/artifact_distribution_response_spec.rb +7 -7
  129. metadata +163 -155
@@ -24,8 +24,8 @@ module PulpcoreClient
24
24
  # @param user [User]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [UserResponse]
27
- def create(user, opts = {})
28
- data, _status_code, _headers = create_with_http_info(user, opts)
27
+ def users_create(user, opts = {})
28
+ data, _status_code, _headers = users_create_with_http_info(user, opts)
29
29
  data
30
30
  end
31
31
 
@@ -34,13 +34,13 @@ module PulpcoreClient
34
34
  # @param user [User]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
37
- def create_with_http_info(user, opts = {})
37
+ def users_create_with_http_info(user, opts = {})
38
38
  if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: UsersApi.create ...'
39
+ @api_client.config.logger.debug 'Calling API: UsersApi.users_create ...'
40
40
  end
41
41
  # verify the required parameter 'user' is set
42
42
  if @api_client.config.client_side_validation && user.nil?
43
- fail ArgumentError, "Missing the required parameter 'user' when calling UsersApi.create"
43
+ fail ArgumentError, "Missing the required parameter 'user' when calling UsersApi.users_create"
44
44
  end
45
45
  # resource path
46
46
  local_var_path = '/pulp/api/v3/users/'
@@ -78,7 +78,7 @@ module PulpcoreClient
78
78
 
79
79
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
80
  if @api_client.config.debugging
81
- @api_client.config.logger.debug "API called: UsersApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
+ @api_client.config.logger.debug "API called: UsersApi#users_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
82
  end
83
83
  return data, status_code, headers
84
84
  end
@@ -88,8 +88,8 @@ module PulpcoreClient
88
88
  # @param auth_user_href [String]
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @return [nil]
91
- def delete(auth_user_href, opts = {})
92
- delete_with_http_info(auth_user_href, opts)
91
+ def users_delete(auth_user_href, opts = {})
92
+ users_delete_with_http_info(auth_user_href, opts)
93
93
  nil
94
94
  end
95
95
 
@@ -98,13 +98,13 @@ module PulpcoreClient
98
98
  # @param auth_user_href [String]
99
99
  # @param [Hash] opts the optional parameters
100
100
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
101
- def delete_with_http_info(auth_user_href, opts = {})
101
+ def users_delete_with_http_info(auth_user_href, opts = {})
102
102
  if @api_client.config.debugging
103
- @api_client.config.logger.debug 'Calling API: UsersApi.delete ...'
103
+ @api_client.config.logger.debug 'Calling API: UsersApi.users_delete ...'
104
104
  end
105
105
  # verify the required parameter 'auth_user_href' is set
106
106
  if @api_client.config.client_side_validation && auth_user_href.nil?
107
- fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.delete"
107
+ fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.users_delete"
108
108
  end
109
109
  # resource path
110
110
  local_var_path = '{auth_user_href}'.sub('{' + 'auth_user_href' + '}', CGI.escape(auth_user_href.to_s).gsub('%2F', '/'))
@@ -138,7 +138,7 @@ module PulpcoreClient
138
138
 
139
139
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
140
140
  if @api_client.config.debugging
141
- @api_client.config.logger.debug "API called: UsersApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
141
+ @api_client.config.logger.debug "API called: UsersApi#users_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
142
142
  end
143
143
  return data, status_code, headers
144
144
  end
@@ -176,8 +176,8 @@ module PulpcoreClient
176
176
  # @option opts [Array<String>] :fields A list of fields to include in the response.
177
177
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
178
178
  # @return [PaginatedUserResponseList]
179
- def list(opts = {})
180
- data, _status_code, _headers = list_with_http_info(opts)
179
+ def users_list(opts = {})
180
+ data, _status_code, _headers = users_list_with_http_info(opts)
181
181
  data
182
182
  end
183
183
 
@@ -214,9 +214,9 @@ module PulpcoreClient
214
214
  # @option opts [Array<String>] :fields A list of fields to include in the response.
215
215
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
216
216
  # @return [Array<(PaginatedUserResponseList, Integer, Hash)>] PaginatedUserResponseList data, response status code and response headers
217
- def list_with_http_info(opts = {})
217
+ def users_list_with_http_info(opts = {})
218
218
  if @api_client.config.debugging
219
- @api_client.config.logger.debug 'Calling API: UsersApi.list ...'
219
+ @api_client.config.logger.debug 'Calling API: UsersApi.users_list ...'
220
220
  end
221
221
  allowable_values = ["-date_joined", "-email", "-first_name", "-id", "-is_active", "-is_staff", "-is_superuser", "-last_login", "-last_name", "-password", "-pk", "-username", "date_joined", "email", "first_name", "id", "is_active", "is_staff", "is_superuser", "last_login", "last_name", "password", "pk", "username"]
222
222
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
@@ -285,7 +285,7 @@ module PulpcoreClient
285
285
 
286
286
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
287
287
  if @api_client.config.debugging
288
- @api_client.config.logger.debug "API called: UsersApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
288
+ @api_client.config.logger.debug "API called: UsersApi#users_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
289
289
  end
290
290
  return data, status_code, headers
291
291
  end
@@ -296,8 +296,8 @@ module PulpcoreClient
296
296
  # @param patched_user [PatchedUser]
297
297
  # @param [Hash] opts the optional parameters
298
298
  # @return [UserResponse]
299
- def partial_update(auth_user_href, patched_user, opts = {})
300
- data, _status_code, _headers = partial_update_with_http_info(auth_user_href, patched_user, opts)
299
+ def users_partial_update(auth_user_href, patched_user, opts = {})
300
+ data, _status_code, _headers = users_partial_update_with_http_info(auth_user_href, patched_user, opts)
301
301
  data
302
302
  end
303
303
 
@@ -307,17 +307,17 @@ module PulpcoreClient
307
307
  # @param patched_user [PatchedUser]
308
308
  # @param [Hash] opts the optional parameters
309
309
  # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
310
- def partial_update_with_http_info(auth_user_href, patched_user, opts = {})
310
+ def users_partial_update_with_http_info(auth_user_href, patched_user, opts = {})
311
311
  if @api_client.config.debugging
312
- @api_client.config.logger.debug 'Calling API: UsersApi.partial_update ...'
312
+ @api_client.config.logger.debug 'Calling API: UsersApi.users_partial_update ...'
313
313
  end
314
314
  # verify the required parameter 'auth_user_href' is set
315
315
  if @api_client.config.client_side_validation && auth_user_href.nil?
316
- fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.partial_update"
316
+ fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.users_partial_update"
317
317
  end
318
318
  # verify the required parameter 'patched_user' is set
319
319
  if @api_client.config.client_side_validation && patched_user.nil?
320
- fail ArgumentError, "Missing the required parameter 'patched_user' when calling UsersApi.partial_update"
320
+ fail ArgumentError, "Missing the required parameter 'patched_user' when calling UsersApi.users_partial_update"
321
321
  end
322
322
  # resource path
323
323
  local_var_path = '{auth_user_href}'.sub('{' + 'auth_user_href' + '}', CGI.escape(auth_user_href.to_s).gsub('%2F', '/'))
@@ -355,7 +355,7 @@ module PulpcoreClient
355
355
 
356
356
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
357
357
  if @api_client.config.debugging
358
- @api_client.config.logger.debug "API called: UsersApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
358
+ @api_client.config.logger.debug "API called: UsersApi#users_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
359
359
  end
360
360
  return data, status_code, headers
361
361
  end
@@ -367,8 +367,8 @@ module PulpcoreClient
367
367
  # @option opts [Array<String>] :fields A list of fields to include in the response.
368
368
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
369
369
  # @return [UserResponse]
370
- def read(auth_user_href, opts = {})
371
- data, _status_code, _headers = read_with_http_info(auth_user_href, opts)
370
+ def users_read(auth_user_href, opts = {})
371
+ data, _status_code, _headers = users_read_with_http_info(auth_user_href, opts)
372
372
  data
373
373
  end
374
374
 
@@ -379,13 +379,13 @@ module PulpcoreClient
379
379
  # @option opts [Array<String>] :fields A list of fields to include in the response.
380
380
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
381
381
  # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
382
- def read_with_http_info(auth_user_href, opts = {})
382
+ def users_read_with_http_info(auth_user_href, opts = {})
383
383
  if @api_client.config.debugging
384
- @api_client.config.logger.debug 'Calling API: UsersApi.read ...'
384
+ @api_client.config.logger.debug 'Calling API: UsersApi.users_read ...'
385
385
  end
386
386
  # verify the required parameter 'auth_user_href' is set
387
387
  if @api_client.config.client_side_validation && auth_user_href.nil?
388
- fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.read"
388
+ fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.users_read"
389
389
  end
390
390
  # resource path
391
391
  local_var_path = '{auth_user_href}'.sub('{' + 'auth_user_href' + '}', CGI.escape(auth_user_href.to_s).gsub('%2F', '/'))
@@ -423,7 +423,7 @@ module PulpcoreClient
423
423
 
424
424
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
425
425
  if @api_client.config.debugging
426
- @api_client.config.logger.debug "API called: UsersApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
426
+ @api_client.config.logger.debug "API called: UsersApi#users_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
427
427
  end
428
428
  return data, status_code, headers
429
429
  end
@@ -434,8 +434,8 @@ module PulpcoreClient
434
434
  # @param user [User]
435
435
  # @param [Hash] opts the optional parameters
436
436
  # @return [UserResponse]
437
- def update(auth_user_href, user, opts = {})
438
- data, _status_code, _headers = update_with_http_info(auth_user_href, user, opts)
437
+ def users_update(auth_user_href, user, opts = {})
438
+ data, _status_code, _headers = users_update_with_http_info(auth_user_href, user, opts)
439
439
  data
440
440
  end
441
441
 
@@ -445,17 +445,17 @@ module PulpcoreClient
445
445
  # @param user [User]
446
446
  # @param [Hash] opts the optional parameters
447
447
  # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
448
- def update_with_http_info(auth_user_href, user, opts = {})
448
+ def users_update_with_http_info(auth_user_href, user, opts = {})
449
449
  if @api_client.config.debugging
450
- @api_client.config.logger.debug 'Calling API: UsersApi.update ...'
450
+ @api_client.config.logger.debug 'Calling API: UsersApi.users_update ...'
451
451
  end
452
452
  # verify the required parameter 'auth_user_href' is set
453
453
  if @api_client.config.client_side_validation && auth_user_href.nil?
454
- fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.update"
454
+ fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersApi.users_update"
455
455
  end
456
456
  # verify the required parameter 'user' is set
457
457
  if @api_client.config.client_side_validation && user.nil?
458
- fail ArgumentError, "Missing the required parameter 'user' when calling UsersApi.update"
458
+ fail ArgumentError, "Missing the required parameter 'user' when calling UsersApi.users_update"
459
459
  end
460
460
  # resource path
461
461
  local_var_path = '{auth_user_href}'.sub('{' + 'auth_user_href' + '}', CGI.escape(auth_user_href.to_s).gsub('%2F', '/'))
@@ -493,7 +493,7 @@ module PulpcoreClient
493
493
 
494
494
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
495
495
  if @api_client.config.debugging
496
- @api_client.config.logger.debug "API called: UsersApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
496
+ @api_client.config.logger.debug "API called: UsersApi#users_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
497
497
  end
498
498
  return data, status_code, headers
499
499
  end
@@ -25,8 +25,8 @@ module PulpcoreClient
25
25
  # @param user_role [UserRole]
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [UserRoleResponse]
28
- def create(auth_user_href, user_role, opts = {})
29
- data, _status_code, _headers = create_with_http_info(auth_user_href, user_role, opts)
28
+ def users_roles_create(auth_user_href, user_role, opts = {})
29
+ data, _status_code, _headers = users_roles_create_with_http_info(auth_user_href, user_role, opts)
30
30
  data
31
31
  end
32
32
 
@@ -36,17 +36,17 @@ module PulpcoreClient
36
36
  # @param user_role [UserRole]
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @return [Array<(UserRoleResponse, Integer, Hash)>] UserRoleResponse data, response status code and response headers
39
- def create_with_http_info(auth_user_href, user_role, opts = {})
39
+ def users_roles_create_with_http_info(auth_user_href, user_role, opts = {})
40
40
  if @api_client.config.debugging
41
- @api_client.config.logger.debug 'Calling API: UsersRolesApi.create ...'
41
+ @api_client.config.logger.debug 'Calling API: UsersRolesApi.users_roles_create ...'
42
42
  end
43
43
  # verify the required parameter 'auth_user_href' is set
44
44
  if @api_client.config.client_side_validation && auth_user_href.nil?
45
- fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersRolesApi.create"
45
+ fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersRolesApi.users_roles_create"
46
46
  end
47
47
  # verify the required parameter 'user_role' is set
48
48
  if @api_client.config.client_side_validation && user_role.nil?
49
- fail ArgumentError, "Missing the required parameter 'user_role' when calling UsersRolesApi.create"
49
+ fail ArgumentError, "Missing the required parameter 'user_role' when calling UsersRolesApi.users_roles_create"
50
50
  end
51
51
  # resource path
52
52
  local_var_path = '{auth_user_href}roles/'.sub('{' + 'auth_user_href' + '}', CGI.escape(auth_user_href.to_s).gsub('%2F', '/'))
@@ -84,7 +84,7 @@ module PulpcoreClient
84
84
 
85
85
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
86
86
  if @api_client.config.debugging
87
- @api_client.config.logger.debug "API called: UsersRolesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
+ @api_client.config.logger.debug "API called: UsersRolesApi#users_roles_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
88
  end
89
89
  return data, status_code, headers
90
90
  end
@@ -94,8 +94,8 @@ module PulpcoreClient
94
94
  # @param auth_users_user_role_href [String]
95
95
  # @param [Hash] opts the optional parameters
96
96
  # @return [nil]
97
- def delete(auth_users_user_role_href, opts = {})
98
- delete_with_http_info(auth_users_user_role_href, opts)
97
+ def users_roles_delete(auth_users_user_role_href, opts = {})
98
+ users_roles_delete_with_http_info(auth_users_user_role_href, opts)
99
99
  nil
100
100
  end
101
101
 
@@ -104,13 +104,13 @@ module PulpcoreClient
104
104
  # @param auth_users_user_role_href [String]
105
105
  # @param [Hash] opts the optional parameters
106
106
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
107
- def delete_with_http_info(auth_users_user_role_href, opts = {})
107
+ def users_roles_delete_with_http_info(auth_users_user_role_href, opts = {})
108
108
  if @api_client.config.debugging
109
- @api_client.config.logger.debug 'Calling API: UsersRolesApi.delete ...'
109
+ @api_client.config.logger.debug 'Calling API: UsersRolesApi.users_roles_delete ...'
110
110
  end
111
111
  # verify the required parameter 'auth_users_user_role_href' is set
112
112
  if @api_client.config.client_side_validation && auth_users_user_role_href.nil?
113
- fail ArgumentError, "Missing the required parameter 'auth_users_user_role_href' when calling UsersRolesApi.delete"
113
+ fail ArgumentError, "Missing the required parameter 'auth_users_user_role_href' when calling UsersRolesApi.users_roles_delete"
114
114
  end
115
115
  # resource path
116
116
  local_var_path = '{auth_users_user_role_href}'.sub('{' + 'auth_users_user_role_href' + '}', CGI.escape(auth_users_user_role_href.to_s).gsub('%2F', '/'))
@@ -144,7 +144,7 @@ module PulpcoreClient
144
144
 
145
145
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
146
146
  if @api_client.config.debugging
147
- @api_client.config.logger.debug "API called: UsersRolesApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
147
+ @api_client.config.logger.debug "API called: UsersRolesApi#users_roles_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
148
148
  end
149
149
  return data, status_code, headers
150
150
  end
@@ -168,8 +168,8 @@ module PulpcoreClient
168
168
  # @option opts [Array<String>] :fields A list of fields to include in the response.
169
169
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
170
170
  # @return [PaginatedUserRoleResponseList]
171
- def list(auth_user_href, opts = {})
172
- data, _status_code, _headers = list_with_http_info(auth_user_href, opts)
171
+ def users_roles_list(auth_user_href, opts = {})
172
+ data, _status_code, _headers = users_roles_list_with_http_info(auth_user_href, opts)
173
173
  data
174
174
  end
175
175
 
@@ -192,13 +192,13 @@ module PulpcoreClient
192
192
  # @option opts [Array<String>] :fields A list of fields to include in the response.
193
193
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
194
194
  # @return [Array<(PaginatedUserRoleResponseList, Integer, Hash)>] PaginatedUserRoleResponseList data, response status code and response headers
195
- def list_with_http_info(auth_user_href, opts = {})
195
+ def users_roles_list_with_http_info(auth_user_href, opts = {})
196
196
  if @api_client.config.debugging
197
- @api_client.config.logger.debug 'Calling API: UsersRolesApi.list ...'
197
+ @api_client.config.logger.debug 'Calling API: UsersRolesApi.users_roles_list ...'
198
198
  end
199
199
  # verify the required parameter 'auth_user_href' is set
200
200
  if @api_client.config.client_side_validation && auth_user_href.nil?
201
- fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersRolesApi.list"
201
+ fail ArgumentError, "Missing the required parameter 'auth_user_href' when calling UsersRolesApi.users_roles_list"
202
202
  end
203
203
  allowable_values = ["-description", "-pk", "-pulp_created", "-role", "description", "pk", "pulp_created", "role"]
204
204
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
@@ -252,7 +252,7 @@ module PulpcoreClient
252
252
 
253
253
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
254
254
  if @api_client.config.debugging
255
- @api_client.config.logger.debug "API called: UsersRolesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
255
+ @api_client.config.logger.debug "API called: UsersRolesApi#users_roles_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
256
256
  end
257
257
  return data, status_code, headers
258
258
  end
@@ -264,8 +264,8 @@ module PulpcoreClient
264
264
  # @option opts [Array<String>] :fields A list of fields to include in the response.
265
265
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
266
266
  # @return [UserRoleResponse]
267
- def read(auth_users_user_role_href, opts = {})
268
- data, _status_code, _headers = read_with_http_info(auth_users_user_role_href, opts)
267
+ def users_roles_read(auth_users_user_role_href, opts = {})
268
+ data, _status_code, _headers = users_roles_read_with_http_info(auth_users_user_role_href, opts)
269
269
  data
270
270
  end
271
271
 
@@ -276,13 +276,13 @@ module PulpcoreClient
276
276
  # @option opts [Array<String>] :fields A list of fields to include in the response.
277
277
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
278
278
  # @return [Array<(UserRoleResponse, Integer, Hash)>] UserRoleResponse data, response status code and response headers
279
- def read_with_http_info(auth_users_user_role_href, opts = {})
279
+ def users_roles_read_with_http_info(auth_users_user_role_href, opts = {})
280
280
  if @api_client.config.debugging
281
- @api_client.config.logger.debug 'Calling API: UsersRolesApi.read ...'
281
+ @api_client.config.logger.debug 'Calling API: UsersRolesApi.users_roles_read ...'
282
282
  end
283
283
  # verify the required parameter 'auth_users_user_role_href' is set
284
284
  if @api_client.config.client_side_validation && auth_users_user_role_href.nil?
285
- fail ArgumentError, "Missing the required parameter 'auth_users_user_role_href' when calling UsersRolesApi.read"
285
+ fail ArgumentError, "Missing the required parameter 'auth_users_user_role_href' when calling UsersRolesApi.users_roles_read"
286
286
  end
287
287
  # resource path
288
288
  local_var_path = '{auth_users_user_role_href}'.sub('{' + 'auth_users_user_role_href' + '}', CGI.escape(auth_users_user_role_href.to_s).gsub('%2F', '/'))
@@ -320,7 +320,7 @@ module PulpcoreClient
320
320
 
321
321
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
322
322
  if @api_client.config.debugging
323
- @api_client.config.logger.debug "API called: UsersRolesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
323
+ @api_client.config.logger.debug "API called: UsersRolesApi#users_roles_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
324
324
  end
325
325
  return data, status_code, headers
326
326
  end
@@ -43,8 +43,8 @@ module PulpcoreClient
43
43
  # @option opts [Array<String>] :fields A list of fields to include in the response.
44
44
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
45
45
  # @return [PaginatedWorkerResponseList]
46
- def list(opts = {})
47
- data, _status_code, _headers = list_with_http_info(opts)
46
+ def workers_list(opts = {})
47
+ data, _status_code, _headers = workers_list_with_http_info(opts)
48
48
  data
49
49
  end
50
50
 
@@ -72,9 +72,9 @@ module PulpcoreClient
72
72
  # @option opts [Array<String>] :fields A list of fields to include in the response.
73
73
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
74
74
  # @return [Array<(PaginatedWorkerResponseList, Integer, Hash)>] PaginatedWorkerResponseList data, response status code and response headers
75
- def list_with_http_info(opts = {})
75
+ def workers_list_with_http_info(opts = {})
76
76
  if @api_client.config.debugging
77
- @api_client.config.logger.debug 'Calling API: WorkersApi.list ...'
77
+ @api_client.config.logger.debug 'Calling API: WorkersApi.workers_list ...'
78
78
  end
79
79
  allowable_values = ["-last_heartbeat", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-versions", "last_heartbeat", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "versions"]
80
80
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
@@ -134,7 +134,7 @@ module PulpcoreClient
134
134
 
135
135
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
136
136
  if @api_client.config.debugging
137
- @api_client.config.logger.debug "API called: WorkersApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
137
+ @api_client.config.logger.debug "API called: WorkersApi#workers_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
138
138
  end
139
139
  return data, status_code, headers
140
140
  end
@@ -146,8 +146,8 @@ module PulpcoreClient
146
146
  # @option opts [Array<String>] :fields A list of fields to include in the response.
147
147
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
148
148
  # @return [WorkerResponse]
149
- def read(worker_href, opts = {})
150
- data, _status_code, _headers = read_with_http_info(worker_href, opts)
149
+ def workers_read(worker_href, opts = {})
150
+ data, _status_code, _headers = workers_read_with_http_info(worker_href, opts)
151
151
  data
152
152
  end
153
153
 
@@ -158,13 +158,13 @@ module PulpcoreClient
158
158
  # @option opts [Array<String>] :fields A list of fields to include in the response.
159
159
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
160
160
  # @return [Array<(WorkerResponse, Integer, Hash)>] WorkerResponse data, response status code and response headers
161
- def read_with_http_info(worker_href, opts = {})
161
+ def workers_read_with_http_info(worker_href, opts = {})
162
162
  if @api_client.config.debugging
163
- @api_client.config.logger.debug 'Calling API: WorkersApi.read ...'
163
+ @api_client.config.logger.debug 'Calling API: WorkersApi.workers_read ...'
164
164
  end
165
165
  # verify the required parameter 'worker_href' is set
166
166
  if @api_client.config.client_side_validation && worker_href.nil?
167
- fail ArgumentError, "Missing the required parameter 'worker_href' when calling WorkersApi.read"
167
+ fail ArgumentError, "Missing the required parameter 'worker_href' when calling WorkersApi.workers_read"
168
168
  end
169
169
  # resource path
170
170
  local_var_path = '{worker_href}'.sub('{' + 'worker_href' + '}', CGI.escape(worker_href.to_s).gsub('%2F', '/'))
@@ -202,7 +202,7 @@ module PulpcoreClient
202
202
 
203
203
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
204
204
  if @api_client.config.debugging
205
- @api_client.config.logger.debug "API called: WorkersApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
205
+ @api_client.config.logger.debug "API called: WorkersApi#workers_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
206
206
  end
207
207
  return data, status_code, headers
208
208
  end
@@ -127,8 +127,8 @@ module PulpcoreClient
127
127
  attr_accessor :force_ending_format
128
128
 
129
129
  def initialize
130
- @scheme = 'https'
131
- @host = 'pulp'
130
+ @scheme = 'http'
131
+ @host = 'localhost'
132
132
  @base_path = ''
133
133
  @api_key = {}
134
134
  @api_key_prefix = {}
@@ -210,7 +210,7 @@ module PulpcoreClient
210
210
  def server_settings
211
211
  [
212
212
  {
213
- url: "https://pulp/",
213
+ url: "http://localhost:24817/",
214
214
  description: "No description provided",
215
215
  }
216
216
  ]
@@ -18,36 +18,36 @@ module PulpcoreClient
18
18
  # Timestamp of creation.
19
19
  attr_accessor :pulp_created
20
20
 
21
- # A unique name. Ex, `rawhide` and `stable`.
22
- attr_accessor :name
23
-
24
- attr_accessor :pulp_labels
21
+ # An optional content-guard.
22
+ attr_accessor :content_guard
25
23
 
26
- # Whether this distribution should be shown in the content app.
27
- attr_accessor :hidden
24
+ attr_accessor :pulp_href
28
25
 
29
26
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
30
27
  attr_accessor :base_path
31
28
 
32
- attr_accessor :pulp_href
33
-
34
- # An optional content-guard.
35
- attr_accessor :content_guard
36
-
37
29
  # The URL for accessing the publication as defined by this distribution.
38
30
  attr_accessor :base_url
39
31
 
32
+ # A unique name. Ex, `rawhide` and `stable`.
33
+ attr_accessor :name
34
+
35
+ attr_accessor :pulp_labels
36
+
37
+ # Whether this distribution should be shown in the content app.
38
+ attr_accessor :hidden
39
+
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
41
41
  def self.attribute_map
42
42
  {
43
43
  :'pulp_created' => :'pulp_created',
44
+ :'content_guard' => :'content_guard',
45
+ :'pulp_href' => :'pulp_href',
46
+ :'base_path' => :'base_path',
47
+ :'base_url' => :'base_url',
44
48
  :'name' => :'name',
45
49
  :'pulp_labels' => :'pulp_labels',
46
- :'hidden' => :'hidden',
47
- :'base_path' => :'base_path',
48
- :'pulp_href' => :'pulp_href',
49
- :'content_guard' => :'content_guard',
50
- :'base_url' => :'base_url'
50
+ :'hidden' => :'hidden'
51
51
  }
52
52
  end
53
53
 
@@ -55,13 +55,13 @@ module PulpcoreClient
55
55
  def self.openapi_types
56
56
  {
57
57
  :'pulp_created' => :'DateTime',
58
+ :'content_guard' => :'String',
59
+ :'pulp_href' => :'String',
60
+ :'base_path' => :'String',
61
+ :'base_url' => :'String',
58
62
  :'name' => :'String',
59
63
  :'pulp_labels' => :'Hash<String, String>',
60
- :'hidden' => :'Boolean',
61
- :'base_path' => :'String',
62
- :'pulp_href' => :'String',
63
- :'content_guard' => :'String',
64
- :'base_url' => :'String'
64
+ :'hidden' => :'Boolean'
65
65
  }
66
66
  end
67
67
 
@@ -91,6 +91,22 @@ module PulpcoreClient
91
91
  self.pulp_created = attributes[:'pulp_created']
92
92
  end
93
93
 
94
+ if attributes.key?(:'content_guard')
95
+ self.content_guard = attributes[:'content_guard']
96
+ end
97
+
98
+ if attributes.key?(:'pulp_href')
99
+ self.pulp_href = attributes[:'pulp_href']
100
+ end
101
+
102
+ if attributes.key?(:'base_path')
103
+ self.base_path = attributes[:'base_path']
104
+ end
105
+
106
+ if attributes.key?(:'base_url')
107
+ self.base_url = attributes[:'base_url']
108
+ end
109
+
94
110
  if attributes.key?(:'name')
95
111
  self.name = attributes[:'name']
96
112
  end
@@ -106,44 +122,28 @@ module PulpcoreClient
106
122
  else
107
123
  self.hidden = false
108
124
  end
109
-
110
- if attributes.key?(:'base_path')
111
- self.base_path = attributes[:'base_path']
112
- end
113
-
114
- if attributes.key?(:'pulp_href')
115
- self.pulp_href = attributes[:'pulp_href']
116
- end
117
-
118
- if attributes.key?(:'content_guard')
119
- self.content_guard = attributes[:'content_guard']
120
- end
121
-
122
- if attributes.key?(:'base_url')
123
- self.base_url = attributes[:'base_url']
124
- end
125
125
  end
126
126
 
127
127
  # Show invalid properties with the reasons. Usually used together with valid?
128
128
  # @return Array for valid properties with the reasons
129
129
  def list_invalid_properties
130
130
  invalid_properties = Array.new
131
- if @name.nil?
132
- invalid_properties.push('invalid value for "name", name cannot be nil.')
133
- end
134
-
135
131
  if @base_path.nil?
136
132
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
137
133
  end
138
134
 
135
+ if @name.nil?
136
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
137
+ end
138
+
139
139
  invalid_properties
140
140
  end
141
141
 
142
142
  # Check to see if the all the properties in the model are valid
143
143
  # @return true if the model is valid
144
144
  def valid?
145
- return false if @name.nil?
146
145
  return false if @base_path.nil?
146
+ return false if @name.nil?
147
147
  true
148
148
  end
149
149
 
@@ -153,13 +153,13 @@ module PulpcoreClient
153
153
  return true if self.equal?(o)
154
154
  self.class == o.class &&
155
155
  pulp_created == o.pulp_created &&
156
+ content_guard == o.content_guard &&
157
+ pulp_href == o.pulp_href &&
158
+ base_path == o.base_path &&
159
+ base_url == o.base_url &&
156
160
  name == o.name &&
157
161
  pulp_labels == o.pulp_labels &&
158
- hidden == o.hidden &&
159
- base_path == o.base_path &&
160
- pulp_href == o.pulp_href &&
161
- content_guard == o.content_guard &&
162
- base_url == o.base_url
162
+ hidden == o.hidden
163
163
  end
164
164
 
165
165
  # @see the `==` method
@@ -171,7 +171,7 @@ module PulpcoreClient
171
171
  # Calculates hash code according to all attributes.
172
172
  # @return [Integer] Hash code
173
173
  def hash
174
- [pulp_created, name, pulp_labels, hidden, base_path, pulp_href, content_guard, base_url].hash
174
+ [pulp_created, content_guard, pulp_href, base_path, base_url, name, pulp_labels, hidden].hash
175
175
  end
176
176
 
177
177
  # Builds the object from hash