pulp_ansible_client 0.19.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +44 -32
  3. data/docs/AnsibleAnsibleRepositoryResponse.md +1 -1
  4. data/docs/AnsibleCollectionRemoteResponse.md +1 -1
  5. data/docs/AnsibleCollectionVersion.md +2 -2
  6. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  7. data/docs/AnsibleCollectionsApi.md +15 -9
  8. data/docs/AnsibleCopyApi.md +1 -1
  9. data/docs/AnsibleGitRemote.md +23 -23
  10. data/docs/AnsibleGitRemoteResponse.md +21 -21
  11. data/docs/AnsibleRole.md +3 -3
  12. data/docs/AnsibleRoleResponse.md +4 -4
  13. data/docs/ApiCollectionsApi.md +1 -1
  14. data/docs/ApiRolesApi.md +1 -1
  15. data/docs/CollectionImportApi.md +1 -1
  16. data/docs/CollectionVersionListResponse.md +1 -1
  17. data/docs/CollectionVersionResponse.md +1 -1
  18. data/docs/ContentCollectionDeprecationsApi.md +3 -1
  19. data/docs/ContentCollectionMarksApi.md +4 -2
  20. data/docs/ContentCollectionSignaturesApi.md +5 -3
  21. data/docs/ContentCollectionVersionsApi.md +3 -3
  22. data/docs/ContentNamespacesApi.md +19 -1
  23. data/docs/ContentRolesApi.md +3 -1
  24. data/docs/DistributionsAnsibleApi.md +136 -10
  25. data/docs/GalaxyDetailApi.md +1 -1
  26. data/docs/PatchedansibleGitRemote.md +23 -23
  27. data/docs/PulpAnsibleApiApi.md +1 -1
  28. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
  29. data/docs/PulpAnsibleApiV3Api.md +1 -1
  30. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  31. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  32. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +3 -1
  33. data/docs/PulpAnsibleApiV3CollectionsApi.md +3 -1
  34. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
  35. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  36. data/docs/PulpAnsibleApiV3NamespacesApi.md +19 -1
  37. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  38. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +3 -1
  39. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  40. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  41. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  42. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +3 -1
  43. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  44. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  45. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +23 -5
  46. data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +1 -1
  47. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  48. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  49. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  50. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  51. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  52. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +3 -1
  53. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +3 -1
  54. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
  55. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  56. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +19 -1
  57. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  58. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +3 -1
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  60. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +3 -1
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +23 -5
  66. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +1 -1
  67. data/docs/PulpAnsibleTagsApi.md +1 -1
  68. data/docs/RemotesCollectionApi.md +135 -9
  69. data/docs/RemotesGitApi.md +135 -9
  70. data/docs/RemotesRoleApi.md +135 -9
  71. data/docs/RepositoriesAnsibleApi.md +136 -10
  72. data/docs/RepositoriesAnsibleVersionsApi.md +3 -1
  73. data/docs/SetLabel.md +19 -0
  74. data/docs/SetLabelResponse.md +19 -0
  75. data/docs/UnpaginatedCollectionVersionResponse.md +1 -1
  76. data/docs/UnsetLabel.md +17 -0
  77. data/docs/UnsetLabelResponse.md +19 -0
  78. data/docs/VersionsApi.md +1 -1
  79. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +11 -0
  80. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +3 -0
  81. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +3 -0
  82. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +3 -0
  83. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
  84. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +27 -0
  85. data/lib/pulp_ansible_client/api/content_roles_api.rb +3 -0
  86. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +163 -0
  87. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +3 -0
  88. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +3 -0
  89. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +27 -0
  90. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +3 -0
  91. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +3 -0
  92. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +35 -8
  93. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +3 -0
  94. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +3 -0
  95. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +27 -0
  96. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +3 -0
  97. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +3 -0
  98. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +35 -8
  99. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +163 -0
  100. data/lib/pulp_ansible_client/api/remotes_git_api.rb +163 -0
  101. data/lib/pulp_ansible_client/api/remotes_role_api.rb +163 -0
  102. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +163 -0
  103. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +3 -0
  104. data/lib/pulp_ansible_client/configuration.rb +2 -2
  105. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +1 -1
  106. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +1 -1
  107. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  108. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
  109. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +203 -203
  110. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +111 -111
  111. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  112. data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
  113. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +24 -0
  114. data/lib/pulp_ansible_client/models/collection_version_response.rb +24 -0
  115. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +198 -198
  116. data/lib/pulp_ansible_client/models/{progress_report_response.rb → set_label.rb} +52 -59
  117. data/lib/pulp_ansible_client/models/set_label_response.rb +243 -0
  118. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +24 -0
  119. data/lib/pulp_ansible_client/models/{task.rb → unset_label.rb} +31 -55
  120. data/lib/pulp_ansible_client/models/unset_label_response.rb +242 -0
  121. data/lib/pulp_ansible_client/version.rb +1 -1
  122. data/lib/pulp_ansible_client.rb +4 -3
  123. data/spec/api/ansible_collections_api_spec.rb +5 -0
  124. data/spec/api/content_collection_deprecations_api_spec.rb +1 -0
  125. data/spec/api/content_collection_marks_api_spec.rb +1 -0
  126. data/spec/api/content_collection_signatures_api_spec.rb +1 -0
  127. data/spec/api/content_collection_versions_api_spec.rb +1 -1
  128. data/spec/api/content_namespaces_api_spec.rb +9 -0
  129. data/spec/api/content_roles_api_spec.rb +1 -0
  130. data/spec/api/distributions_ansible_api_spec.rb +35 -0
  131. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -0
  132. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -0
  133. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +9 -0
  134. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -0
  135. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -0
  136. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +13 -4
  137. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +1 -0
  138. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -0
  139. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +9 -0
  140. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -0
  141. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -0
  142. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +13 -4
  143. data/spec/api/remotes_collection_api_spec.rb +35 -0
  144. data/spec/api/remotes_git_api_spec.rb +35 -0
  145. data/spec/api/remotes_role_api_spec.rb +35 -0
  146. data/spec/api/repositories_ansible_api_spec.rb +35 -0
  147. data/spec/api/repositories_ansible_versions_api_spec.rb +1 -0
  148. data/spec/configuration_spec.rb +3 -3
  149. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  150. data/spec/models/ansible_collection_version_spec.rb +2 -2
  151. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  152. data/spec/models/ansible_git_remote_spec.rb +19 -19
  153. data/spec/models/ansible_role_response_spec.rb +2 -2
  154. data/spec/models/ansible_role_spec.rb +2 -2
  155. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  156. data/spec/models/set_label_response_spec.rb +47 -0
  157. data/spec/models/{task_spec.rb → set_label_spec.rb} +8 -8
  158. data/spec/models/unset_label_response_spec.rb +47 -0
  159. data/spec/models/unset_label_spec.rb +41 -0
  160. metadata +147 -143
  161. data/docs/ProgressReportResponse.md +0 -27
  162. data/docs/Task.md +0 -19
  163. data/docs/TaskResponse.md +0 -47
  164. data/lib/pulp_ansible_client/models/task_response.rb +0 -376
  165. data/spec/models/progress_report_response_spec.rb +0 -71
  166. data/spec/models/task_response_spec.rb +0 -131
@@ -19,6 +19,7 @@ module PulpAnsibleClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Add a role
22
23
  # Add a role for this object to users/groups.
23
24
  # @param ansible_ansible_repository_href [String]
24
25
  # @param nested_role [NestedRole]
@@ -29,6 +30,7 @@ module PulpAnsibleClient
29
30
  data
30
31
  end
31
32
 
33
+ # Add a role
32
34
  # Add a role for this object to users/groups.
33
35
  # @param ansible_ansible_repository_href [String]
34
36
  # @param nested_role [NestedRole]
@@ -289,13 +291,18 @@ module PulpAnsibleClient
289
291
  # @option opts [String] :name Filter results where name matches value
290
292
  # @option opts [String] :name__contains Filter results where name contains value
291
293
  # @option opts [String] :name__icontains Filter results where name contains value
294
+ # @option opts [String] :name__iexact Filter results where name matches value
292
295
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
296
+ # @option opts [String] :name__iregex Filter results where name matches regex value
297
+ # @option opts [String] :name__istartswith Filter results where name starts with value
298
+ # @option opts [String] :name__regex Filter results where name matches regex value
293
299
  # @option opts [String] :name__startswith Filter results where name starts with value
294
300
  # @option opts [Integer] :offset The initial index from which to return the results.
295
301
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
296
302
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
297
303
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
298
304
  # @option opts [String] :pulp_label_select Filter labels by search string
305
+ # @option opts [String] :q
299
306
  # @option opts [String] :remote Foreign Key referenced by HREF
300
307
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
301
308
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -322,13 +329,18 @@ module PulpAnsibleClient
322
329
  # @option opts [String] :name Filter results where name matches value
323
330
  # @option opts [String] :name__contains Filter results where name contains value
324
331
  # @option opts [String] :name__icontains Filter results where name contains value
332
+ # @option opts [String] :name__iexact Filter results where name matches value
325
333
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
334
+ # @option opts [String] :name__iregex Filter results where name matches regex value
335
+ # @option opts [String] :name__istartswith Filter results where name starts with value
336
+ # @option opts [String] :name__regex Filter results where name matches regex value
326
337
  # @option opts [String] :name__startswith Filter results where name starts with value
327
338
  # @option opts [Integer] :offset The initial index from which to return the results.
328
339
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
329
340
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
330
341
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
331
342
  # @option opts [String] :pulp_label_select Filter labels by search string
343
+ # @option opts [String] :q
332
344
  # @option opts [String] :remote Foreign Key referenced by HREF
333
345
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
334
346
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
@@ -360,13 +372,18 @@ module PulpAnsibleClient
360
372
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
361
373
  query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
362
374
  query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
375
+ query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
363
376
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
377
+ query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
378
+ query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
379
+ query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
364
380
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
365
381
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
366
382
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
367
383
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
368
384
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
369
385
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
386
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
370
387
  query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
371
388
  query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
372
389
  query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
@@ -413,6 +430,7 @@ module PulpAnsibleClient
413
430
  return data, status_code, headers
414
431
  end
415
432
 
433
+ # List roles
416
434
  # List roles assigned to this object.
417
435
  # @param ansible_ansible_repository_href [String]
418
436
  # @param [Hash] opts the optional parameters
@@ -424,6 +442,7 @@ module PulpAnsibleClient
424
442
  data
425
443
  end
426
444
 
445
+ # List roles
427
446
  # List roles assigned to this object.
428
447
  # @param ansible_ansible_repository_href [String]
429
448
  # @param [Hash] opts the optional parameters
@@ -685,6 +704,7 @@ module PulpAnsibleClient
685
704
  return data, status_code, headers
686
705
  end
687
706
 
707
+ # List user permissions
688
708
  # List permissions available to the current user on this object.
689
709
  # @param ansible_ansible_repository_href [String]
690
710
  # @param [Hash] opts the optional parameters
@@ -696,6 +716,7 @@ module PulpAnsibleClient
696
716
  data
697
717
  end
698
718
 
719
+ # List user permissions
699
720
  # List permissions available to the current user on this object.
700
721
  # @param ansible_ansible_repository_href [String]
701
722
  # @param [Hash] opts the optional parameters
@@ -957,6 +978,7 @@ module PulpAnsibleClient
957
978
  return data, status_code, headers
958
979
  end
959
980
 
981
+ # Remove a role
960
982
  # Remove a role for this object from users/groups.
961
983
  # @param ansible_ansible_repository_href [String]
962
984
  # @param nested_role [NestedRole]
@@ -967,6 +989,7 @@ module PulpAnsibleClient
967
989
  data
968
990
  end
969
991
 
992
+ # Remove a role
970
993
  # Remove a role for this object from users/groups.
971
994
  # @param ansible_ansible_repository_href [String]
972
995
  # @param nested_role [NestedRole]
@@ -1025,6 +1048,76 @@ module PulpAnsibleClient
1025
1048
  return data, status_code, headers
1026
1049
  end
1027
1050
 
1051
+ # Set a label
1052
+ # Set a single pulp_label on the object to a specific value or null.
1053
+ # @param ansible_ansible_repository_href [String]
1054
+ # @param set_label [SetLabel]
1055
+ # @param [Hash] opts the optional parameters
1056
+ # @return [SetLabelResponse]
1057
+ def set_label(ansible_ansible_repository_href, set_label, opts = {})
1058
+ data, _status_code, _headers = set_label_with_http_info(ansible_ansible_repository_href, set_label, opts)
1059
+ data
1060
+ end
1061
+
1062
+ # Set a label
1063
+ # Set a single pulp_label on the object to a specific value or null.
1064
+ # @param ansible_ansible_repository_href [String]
1065
+ # @param set_label [SetLabel]
1066
+ # @param [Hash] opts the optional parameters
1067
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
1068
+ def set_label_with_http_info(ansible_ansible_repository_href, set_label, opts = {})
1069
+ if @api_client.config.debugging
1070
+ @api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.set_label ...'
1071
+ end
1072
+ # verify the required parameter 'ansible_ansible_repository_href' is set
1073
+ if @api_client.config.client_side_validation && ansible_ansible_repository_href.nil?
1074
+ fail ArgumentError, "Missing the required parameter 'ansible_ansible_repository_href' when calling RepositoriesAnsibleApi.set_label"
1075
+ end
1076
+ # verify the required parameter 'set_label' is set
1077
+ if @api_client.config.client_side_validation && set_label.nil?
1078
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling RepositoriesAnsibleApi.set_label"
1079
+ end
1080
+ # resource path
1081
+ local_var_path = '{ansible_ansible_repository_href}set_label/'.sub('{' + 'ansible_ansible_repository_href' + '}', CGI.escape(ansible_ansible_repository_href.to_s).gsub('%2F', '/'))
1082
+
1083
+ # query parameters
1084
+ query_params = opts[:query_params] || {}
1085
+
1086
+ # header parameters
1087
+ header_params = opts[:header_params] || {}
1088
+ # HTTP header 'Accept' (if needed)
1089
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1090
+ # HTTP header 'Content-Type'
1091
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
1092
+
1093
+ # form parameters
1094
+ form_params = opts[:form_params] || {}
1095
+
1096
+ # http body (model)
1097
+ post_body = opts[:body] || @api_client.object_to_http_body(set_label)
1098
+
1099
+ # return_type
1100
+ return_type = opts[:return_type] || 'SetLabelResponse'
1101
+
1102
+ # auth_names
1103
+ auth_names = opts[:auth_names] || ['basicAuth']
1104
+
1105
+ new_options = opts.merge(
1106
+ :header_params => header_params,
1107
+ :query_params => query_params,
1108
+ :form_params => form_params,
1109
+ :body => post_body,
1110
+ :auth_names => auth_names,
1111
+ :return_type => return_type
1112
+ )
1113
+
1114
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1115
+ if @api_client.config.debugging
1116
+ @api_client.config.logger.debug "API called: RepositoriesAnsibleApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1117
+ end
1118
+ return data, status_code, headers
1119
+ end
1120
+
1028
1121
  # Trigger an asynchronous task to sign Ansible content.
1029
1122
  # @param ansible_ansible_repository_href [String]
1030
1123
  # @param ansible_repository_signature [AnsibleRepositorySignature]
@@ -1229,6 +1322,76 @@ module PulpAnsibleClient
1229
1322
  return data, status_code, headers
1230
1323
  end
1231
1324
 
1325
+ # Unset a label
1326
+ # Unset a single pulp_label on the object.
1327
+ # @param ansible_ansible_repository_href [String]
1328
+ # @param unset_label [UnsetLabel]
1329
+ # @param [Hash] opts the optional parameters
1330
+ # @return [UnsetLabelResponse]
1331
+ def unset_label(ansible_ansible_repository_href, unset_label, opts = {})
1332
+ data, _status_code, _headers = unset_label_with_http_info(ansible_ansible_repository_href, unset_label, opts)
1333
+ data
1334
+ end
1335
+
1336
+ # Unset a label
1337
+ # Unset a single pulp_label on the object.
1338
+ # @param ansible_ansible_repository_href [String]
1339
+ # @param unset_label [UnsetLabel]
1340
+ # @param [Hash] opts the optional parameters
1341
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
1342
+ def unset_label_with_http_info(ansible_ansible_repository_href, unset_label, opts = {})
1343
+ if @api_client.config.debugging
1344
+ @api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.unset_label ...'
1345
+ end
1346
+ # verify the required parameter 'ansible_ansible_repository_href' is set
1347
+ if @api_client.config.client_side_validation && ansible_ansible_repository_href.nil?
1348
+ fail ArgumentError, "Missing the required parameter 'ansible_ansible_repository_href' when calling RepositoriesAnsibleApi.unset_label"
1349
+ end
1350
+ # verify the required parameter 'unset_label' is set
1351
+ if @api_client.config.client_side_validation && unset_label.nil?
1352
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling RepositoriesAnsibleApi.unset_label"
1353
+ end
1354
+ # resource path
1355
+ local_var_path = '{ansible_ansible_repository_href}unset_label/'.sub('{' + 'ansible_ansible_repository_href' + '}', CGI.escape(ansible_ansible_repository_href.to_s).gsub('%2F', '/'))
1356
+
1357
+ # query parameters
1358
+ query_params = opts[:query_params] || {}
1359
+
1360
+ # header parameters
1361
+ header_params = opts[:header_params] || {}
1362
+ # HTTP header 'Accept' (if needed)
1363
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1364
+ # HTTP header 'Content-Type'
1365
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
1366
+
1367
+ # form parameters
1368
+ form_params = opts[:form_params] || {}
1369
+
1370
+ # http body (model)
1371
+ post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
1372
+
1373
+ # return_type
1374
+ return_type = opts[:return_type] || 'UnsetLabelResponse'
1375
+
1376
+ # auth_names
1377
+ auth_names = opts[:auth_names] || ['basicAuth']
1378
+
1379
+ new_options = opts.merge(
1380
+ :header_params => header_params,
1381
+ :query_params => query_params,
1382
+ :form_params => form_params,
1383
+ :body => post_body,
1384
+ :auth_names => auth_names,
1385
+ :return_type => return_type
1386
+ )
1387
+
1388
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1389
+ if @api_client.config.debugging
1390
+ @api_client.config.logger.debug "API called: RepositoriesAnsibleApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1391
+ end
1392
+ return data, status_code, headers
1393
+ end
1394
+
1232
1395
  # Update an ansible repository
1233
1396
  # Trigger an asynchronous update task
1234
1397
  # @param ansible_ansible_repository_href [String]
@@ -103,6 +103,7 @@ module PulpAnsibleClient
103
103
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
104
104
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
105
105
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
106
+ # @option opts [String] :q
106
107
  # @option opts [Array<String>] :fields A list of fields to include in the response.
107
108
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
108
109
  # @return [PaginatedRepositoryVersionResponseList]
@@ -133,6 +134,7 @@ module PulpAnsibleClient
133
134
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
134
135
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
135
136
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
137
+ # @option opts [String] :q
136
138
  # @option opts [Array<String>] :fields A list of fields to include in the response.
137
139
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
138
140
  # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
@@ -171,6 +173,7 @@ module PulpAnsibleClient
171
173
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
172
174
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
173
175
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
176
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
174
177
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
175
178
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
176
179
 
@@ -127,7 +127,7 @@ module PulpAnsibleClient
127
127
  attr_accessor :force_ending_format
128
128
 
129
129
  def initialize
130
- @scheme = 'https'
130
+ @scheme = 'http'
131
131
  @host = 'pulp'
132
132
  @base_path = ''
133
133
  @api_key = {}
@@ -210,7 +210,7 @@ module PulpAnsibleClient
210
210
  def server_settings
211
211
  [
212
212
  {
213
- url: "https://pulp/",
213
+ url: "http://pulp/",
214
214
  description: "No description provided",
215
215
  }
216
216
  ]
@@ -81,7 +81,7 @@ module PulpAnsibleClient
81
81
  :'remote' => :'String',
82
82
  :'last_synced_metadata_time' => :'DateTime',
83
83
  :'gpgkey' => :'String',
84
- :'last_sync_task' => :'TaskResponse',
84
+ :'last_sync_task' => :'String',
85
85
  :'private' => :'Boolean'
86
86
  }
87
87
  end
@@ -145,7 +145,7 @@ module PulpAnsibleClient
145
145
  :'auth_url' => :'String',
146
146
  :'sync_dependencies' => :'Boolean',
147
147
  :'signed_only' => :'Boolean',
148
- :'last_sync_task' => :'TaskResponse'
148
+ :'last_sync_task' => :'String'
149
149
  }
150
150
  end
151
151
 
@@ -21,12 +21,12 @@ module PulpAnsibleClient
21
21
  # A URI of a repository the new content unit should be associated with.
22
22
  attr_accessor :repository
23
23
 
24
- # Artifact file representing the physical content
25
- attr_accessor :artifact
26
-
27
24
  # An uploaded file that may be turned into the artifact of the content unit.
28
25
  attr_accessor :file
29
26
 
27
+ # Artifact file representing the physical content
28
+ attr_accessor :artifact
29
+
30
30
  # The name of the collection.
31
31
  attr_accessor :expected_name
32
32
 
@@ -41,8 +41,8 @@ module PulpAnsibleClient
41
41
  {
42
42
  :'upload' => :'upload',
43
43
  :'repository' => :'repository',
44
- :'artifact' => :'artifact',
45
44
  :'file' => :'file',
45
+ :'artifact' => :'artifact',
46
46
  :'expected_name' => :'expected_name',
47
47
  :'expected_namespace' => :'expected_namespace',
48
48
  :'expected_version' => :'expected_version'
@@ -54,8 +54,8 @@ module PulpAnsibleClient
54
54
  {
55
55
  :'upload' => :'String',
56
56
  :'repository' => :'String',
57
- :'artifact' => :'String',
58
57
  :'file' => :'File',
58
+ :'artifact' => :'String',
59
59
  :'expected_name' => :'String',
60
60
  :'expected_namespace' => :'String',
61
61
  :'expected_version' => :'String'
@@ -91,14 +91,14 @@ module PulpAnsibleClient
91
91
  self.repository = attributes[:'repository']
92
92
  end
93
93
 
94
- if attributes.key?(:'artifact')
95
- self.artifact = attributes[:'artifact']
96
- end
97
-
98
94
  if attributes.key?(:'file')
99
95
  self.file = attributes[:'file']
100
96
  end
101
97
 
98
+ if attributes.key?(:'artifact')
99
+ self.artifact = attributes[:'artifact']
100
+ end
101
+
102
102
  if attributes.key?(:'expected_name')
103
103
  self.expected_name = attributes[:'expected_name']
104
104
  end
@@ -204,8 +204,8 @@ module PulpAnsibleClient
204
204
  self.class == o.class &&
205
205
  upload == o.upload &&
206
206
  repository == o.repository &&
207
- artifact == o.artifact &&
208
207
  file == o.file &&
208
+ artifact == o.artifact &&
209
209
  expected_name == o.expected_name &&
210
210
  expected_namespace == o.expected_namespace &&
211
211
  expected_version == o.expected_version
@@ -220,7 +220,7 @@ module PulpAnsibleClient
220
220
  # Calculates hash code according to all attributes.
221
221
  # @return [Integer] Hash code
222
222
  def hash
223
- [upload, repository, artifact, file, expected_name, expected_namespace, expected_version].hash
223
+ [upload, repository, file, artifact, expected_name, expected_namespace, expected_version].hash
224
224
  end
225
225
 
226
226
  # Builds the object from hash
@@ -15,14 +15,14 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersionResponse
18
+ attr_accessor :pulp_href
19
+
18
20
  # Timestamp of creation.
19
21
  attr_accessor :pulp_created
20
22
 
21
23
  # Artifact file representing the physical content
22
24
  attr_accessor :artifact
23
25
 
24
- attr_accessor :pulp_href
25
-
26
26
  # The SHA-256 checksum if available.
27
27
  attr_accessor :sha256
28
28
 
@@ -97,9 +97,9 @@ module PulpAnsibleClient
97
97
  # Attribute mapping from ruby-style variable name to JSON key.
98
98
  def self.attribute_map
99
99
  {
100
+ :'pulp_href' => :'pulp_href',
100
101
  :'pulp_created' => :'pulp_created',
101
102
  :'artifact' => :'artifact',
102
- :'pulp_href' => :'pulp_href',
103
103
  :'sha256' => :'sha256',
104
104
  :'md5' => :'md5',
105
105
  :'sha1' => :'sha1',
@@ -130,9 +130,9 @@ module PulpAnsibleClient
130
130
  # Attribute type mapping.
131
131
  def self.openapi_types
132
132
  {
133
+ :'pulp_href' => :'String',
133
134
  :'pulp_created' => :'DateTime',
134
135
  :'artifact' => :'String',
135
- :'pulp_href' => :'String',
136
136
  :'sha256' => :'String',
137
137
  :'md5' => :'String',
138
138
  :'sha1' => :'String',
@@ -182,6 +182,10 @@ module PulpAnsibleClient
182
182
  h[k.to_sym] = v
183
183
  }
184
184
 
185
+ if attributes.key?(:'pulp_href')
186
+ self.pulp_href = attributes[:'pulp_href']
187
+ end
188
+
185
189
  if attributes.key?(:'pulp_created')
186
190
  self.pulp_created = attributes[:'pulp_created']
187
191
  end
@@ -190,10 +194,6 @@ module PulpAnsibleClient
190
194
  self.artifact = attributes[:'artifact']
191
195
  end
192
196
 
193
- if attributes.key?(:'pulp_href')
194
- self.pulp_href = attributes[:'pulp_href']
195
- end
196
-
197
197
  if attributes.key?(:'sha256')
198
198
  self.sha256 = attributes[:'sha256']
199
199
  end
@@ -435,9 +435,9 @@ module PulpAnsibleClient
435
435
  def ==(o)
436
436
  return true if self.equal?(o)
437
437
  self.class == o.class &&
438
+ pulp_href == o.pulp_href &&
438
439
  pulp_created == o.pulp_created &&
439
440
  artifact == o.artifact &&
440
- pulp_href == o.pulp_href &&
441
441
  sha256 == o.sha256 &&
442
442
  md5 == o.md5 &&
443
443
  sha1 == o.sha1 &&
@@ -473,7 +473,7 @@ module PulpAnsibleClient
473
473
  # Calculates hash code according to all attributes.
474
474
  # @return [Integer] Hash code
475
475
  def hash
476
- [pulp_created, artifact, pulp_href, sha256, md5, sha1, sha224, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
476
+ [pulp_href, pulp_created, artifact, sha256, md5, sha1, sha224, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
477
477
  end
478
478
 
479
479
  # Builds the object from hash