pulp_ansible_client 0.18.0 → 0.18.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +44 -29
  3. data/docs/AnsibleCollectionVersion.md +2 -2
  4. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  5. data/docs/AnsibleCollectionVersionSignature.md +3 -3
  6. data/docs/AnsibleCollectionsApi.md +15 -9
  7. data/docs/AnsibleCopyApi.md +1 -1
  8. data/docs/AnsibleGitRemote.md +26 -26
  9. data/docs/AnsibleGitRemoteResponse.md +26 -26
  10. data/docs/AnsibleRole.md +2 -0
  11. data/docs/AnsibleRoleResponse.md +3 -3
  12. data/docs/ApiCollectionsApi.md +1 -1
  13. data/docs/ApiRolesApi.md +1 -1
  14. data/docs/CollectionImportApi.md +1 -1
  15. data/docs/ContentCollectionDeprecationsApi.md +3 -1
  16. data/docs/ContentCollectionMarksApi.md +4 -2
  17. data/docs/ContentCollectionSignaturesApi.md +5 -3
  18. data/docs/ContentCollectionVersionsApi.md +3 -3
  19. data/docs/ContentNamespacesApi.md +19 -1
  20. data/docs/ContentRolesApi.md +3 -1
  21. data/docs/DistributionsAnsibleApi.md +138 -12
  22. data/docs/GalaxyDetailApi.md +1 -1
  23. data/docs/PatchedansibleGitRemote.md +26 -26
  24. data/docs/PulpAnsibleApiApi.md +1 -1
  25. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
  26. data/docs/PulpAnsibleApiV3Api.md +1 -1
  27. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  28. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  29. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +3 -1
  30. data/docs/PulpAnsibleApiV3CollectionsApi.md +3 -1
  31. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
  32. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  33. data/docs/PulpAnsibleApiV3NamespacesApi.md +19 -1
  34. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  35. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +3 -1
  36. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  37. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  38. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  39. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +3 -1
  40. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  41. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  42. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +23 -5
  43. data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +1 -1
  44. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  45. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  46. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  47. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  48. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  49. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +3 -1
  50. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +3 -1
  51. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
  52. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  53. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +19 -1
  54. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  55. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +3 -1
  56. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  57. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  58. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +3 -1
  60. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +23 -5
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +1 -1
  64. data/docs/PulpAnsibleTagsApi.md +1 -1
  65. data/docs/RemotesCollectionApi.md +135 -9
  66. data/docs/RemotesGitApi.md +135 -9
  67. data/docs/RemotesRoleApi.md +135 -9
  68. data/docs/RepositoriesAnsibleApi.md +136 -10
  69. data/docs/RepositoriesAnsibleVersionsApi.md +3 -1
  70. data/docs/SetLabel.md +19 -0
  71. data/docs/SetLabelResponse.md +19 -0
  72. data/docs/TaskResponse.md +2 -0
  73. data/docs/UnsetLabel.md +17 -0
  74. data/docs/UnsetLabelResponse.md +19 -0
  75. data/docs/VersionsApi.md +1 -1
  76. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +11 -0
  77. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +3 -0
  78. data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +3 -0
  79. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +3 -0
  80. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
  81. data/lib/pulp_ansible_client/api/content_namespaces_api.rb +27 -0
  82. data/lib/pulp_ansible_client/api/content_roles_api.rb +3 -0
  83. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +166 -3
  84. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +3 -0
  85. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +3 -0
  86. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +27 -0
  87. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +3 -0
  88. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +3 -0
  89. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +35 -8
  90. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +3 -0
  91. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +3 -0
  92. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +27 -0
  93. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +3 -0
  94. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +3 -0
  95. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +35 -8
  96. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +163 -0
  97. data/lib/pulp_ansible_client/api/remotes_git_api.rb +163 -0
  98. data/lib/pulp_ansible_client/api/remotes_role_api.rb +163 -0
  99. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +163 -0
  100. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +3 -0
  101. data/lib/pulp_ansible_client/configuration.rb +2 -2
  102. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  103. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
  104. data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +11 -11
  105. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +218 -218
  106. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +152 -152
  107. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -1
  108. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  109. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +209 -209
  110. data/lib/pulp_ansible_client/models/set_label.rb +252 -0
  111. data/lib/pulp_ansible_client/models/set_label_response.rb +243 -0
  112. data/lib/pulp_ansible_client/models/task_response.rb +11 -1
  113. data/lib/pulp_ansible_client/models/unset_label.rb +242 -0
  114. data/lib/pulp_ansible_client/models/unset_label_response.rb +242 -0
  115. data/lib/pulp_ansible_client/version.rb +1 -1
  116. data/lib/pulp_ansible_client.rb +4 -0
  117. data/spec/api/ansible_collections_api_spec.rb +5 -0
  118. data/spec/api/content_collection_deprecations_api_spec.rb +1 -0
  119. data/spec/api/content_collection_marks_api_spec.rb +1 -0
  120. data/spec/api/content_collection_signatures_api_spec.rb +1 -0
  121. data/spec/api/content_collection_versions_api_spec.rb +1 -1
  122. data/spec/api/content_namespaces_api_spec.rb +9 -0
  123. data/spec/api/content_roles_api_spec.rb +1 -0
  124. data/spec/api/distributions_ansible_api_spec.rb +36 -1
  125. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -0
  126. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -0
  127. data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +9 -0
  128. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -0
  129. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -0
  130. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +13 -4
  131. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +1 -0
  132. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -0
  133. data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +9 -0
  134. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -0
  135. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -0
  136. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +13 -4
  137. data/spec/api/remotes_collection_api_spec.rb +35 -0
  138. data/spec/api/remotes_git_api_spec.rb +35 -0
  139. data/spec/api/remotes_role_api_spec.rb +35 -0
  140. data/spec/api/repositories_ansible_api_spec.rb +35 -0
  141. data/spec/api/repositories_ansible_versions_api_spec.rb +1 -0
  142. data/spec/configuration_spec.rb +3 -3
  143. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  144. data/spec/models/ansible_collection_version_signature_spec.rb +2 -2
  145. data/spec/models/ansible_collection_version_spec.rb +3 -3
  146. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  147. data/spec/models/ansible_git_remote_spec.rb +17 -17
  148. data/spec/models/ansible_role_response_spec.rb +3 -3
  149. data/spec/models/ansible_role_spec.rb +6 -0
  150. data/spec/models/patchedansible_git_remote_spec.rb +17 -17
  151. data/spec/models/set_label_response_spec.rb +47 -0
  152. data/spec/models/set_label_spec.rb +47 -0
  153. data/spec/models/task_response_spec.rb +6 -0
  154. data/spec/models/unset_label_response_spec.rb +47 -0
  155. data/spec/models/unset_label_spec.rb +41 -0
  156. metadata +142 -126
@@ -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
  ]
@@ -18,15 +18,15 @@ module PulpAnsibleClient
18
18
  # Artifact file representing the physical content
19
19
  attr_accessor :artifact
20
20
 
21
- # An uncommitted upload that may be turned into the artifact of the content unit.
22
- attr_accessor :upload
23
-
24
21
  # An uploaded file that may be turned into the artifact of the content unit.
25
22
  attr_accessor :file
26
23
 
27
24
  # A URI of a repository the new content unit should be associated with.
28
25
  attr_accessor :repository
29
26
 
27
+ # An uncommitted upload that may be turned into the artifact of the content unit.
28
+ attr_accessor :upload
29
+
30
30
  # The name of the collection.
31
31
  attr_accessor :expected_name
32
32
 
@@ -40,9 +40,9 @@ module PulpAnsibleClient
40
40
  def self.attribute_map
41
41
  {
42
42
  :'artifact' => :'artifact',
43
- :'upload' => :'upload',
44
43
  :'file' => :'file',
45
44
  :'repository' => :'repository',
45
+ :'upload' => :'upload',
46
46
  :'expected_name' => :'expected_name',
47
47
  :'expected_namespace' => :'expected_namespace',
48
48
  :'expected_version' => :'expected_version'
@@ -53,9 +53,9 @@ module PulpAnsibleClient
53
53
  def self.openapi_types
54
54
  {
55
55
  :'artifact' => :'String',
56
- :'upload' => :'String',
57
56
  :'file' => :'File',
58
57
  :'repository' => :'String',
58
+ :'upload' => :'String',
59
59
  :'expected_name' => :'String',
60
60
  :'expected_namespace' => :'String',
61
61
  :'expected_version' => :'String'
@@ -87,10 +87,6 @@ module PulpAnsibleClient
87
87
  self.artifact = attributes[:'artifact']
88
88
  end
89
89
 
90
- if attributes.key?(:'upload')
91
- self.upload = attributes[:'upload']
92
- end
93
-
94
90
  if attributes.key?(:'file')
95
91
  self.file = attributes[:'file']
96
92
  end
@@ -99,6 +95,10 @@ module PulpAnsibleClient
99
95
  self.repository = attributes[:'repository']
100
96
  end
101
97
 
98
+ if attributes.key?(:'upload')
99
+ self.upload = attributes[:'upload']
100
+ end
101
+
102
102
  if attributes.key?(:'expected_name')
103
103
  self.expected_name = attributes[:'expected_name']
104
104
  end
@@ -203,9 +203,9 @@ module PulpAnsibleClient
203
203
  return true if self.equal?(o)
204
204
  self.class == o.class &&
205
205
  artifact == o.artifact &&
206
- upload == o.upload &&
207
206
  file == o.file &&
208
207
  repository == o.repository &&
208
+ upload == o.upload &&
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
- [artifact, upload, file, repository, expected_name, expected_namespace, expected_version].hash
223
+ [artifact, file, repository, upload, expected_name, expected_namespace, expected_version].hash
224
224
  end
225
225
 
226
226
  # Builds the object from hash
@@ -15,11 +15,11 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersionResponse
18
- attr_accessor :pulp_href
19
-
20
18
  # Artifact file representing the physical content
21
19
  attr_accessor :artifact
22
20
 
21
+ attr_accessor :pulp_href
22
+
23
23
  # Timestamp of creation.
24
24
  attr_accessor :pulp_created
25
25
 
@@ -97,8 +97,8 @@ 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',
101
100
  :'artifact' => :'artifact',
101
+ :'pulp_href' => :'pulp_href',
102
102
  :'pulp_created' => :'pulp_created',
103
103
  :'sha256' => :'sha256',
104
104
  :'md5' => :'md5',
@@ -130,8 +130,8 @@ module PulpAnsibleClient
130
130
  # Attribute type mapping.
131
131
  def self.openapi_types
132
132
  {
133
- :'pulp_href' => :'String',
134
133
  :'artifact' => :'String',
134
+ :'pulp_href' => :'String',
135
135
  :'pulp_created' => :'DateTime',
136
136
  :'sha256' => :'String',
137
137
  :'md5' => :'String',
@@ -182,14 +182,14 @@ 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
-
189
185
  if attributes.key?(:'artifact')
190
186
  self.artifact = attributes[:'artifact']
191
187
  end
192
188
 
189
+ if attributes.key?(:'pulp_href')
190
+ self.pulp_href = attributes[:'pulp_href']
191
+ end
192
+
193
193
  if attributes.key?(:'pulp_created')
194
194
  self.pulp_created = attributes[:'pulp_created']
195
195
  end
@@ -435,8 +435,8 @@ 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 &&
439
438
  artifact == o.artifact &&
439
+ pulp_href == o.pulp_href &&
440
440
  pulp_created == o.pulp_created &&
441
441
  sha256 == o.sha256 &&
442
442
  md5 == o.md5 &&
@@ -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_href, artifact, pulp_created, 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
+ [artifact, pulp_href, pulp_created, 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
@@ -15,20 +15,20 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for signature models.
17
17
  class AnsibleCollectionVersionSignature
18
- # An uploaded file that may be turned into the artifact of the content unit.
19
- attr_accessor :file
20
-
21
18
  # A URI of a repository the new content unit should be associated with.
22
19
  attr_accessor :repository
23
20
 
21
+ # An uploaded file that may be turned into the artifact of the content unit.
22
+ attr_accessor :file
23
+
24
24
  # The content this signature is pointing to.
25
25
  attr_accessor :signed_collection
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
28
28
  def self.attribute_map
29
29
  {
30
- :'file' => :'file',
31
30
  :'repository' => :'repository',
31
+ :'file' => :'file',
32
32
  :'signed_collection' => :'signed_collection'
33
33
  }
34
34
  end
@@ -36,8 +36,8 @@ module PulpAnsibleClient
36
36
  # Attribute type mapping.
37
37
  def self.openapi_types
38
38
  {
39
- :'file' => :'File',
40
39
  :'repository' => :'String',
40
+ :'file' => :'File',
41
41
  :'signed_collection' => :'String'
42
42
  }
43
43
  end
@@ -63,14 +63,14 @@ module PulpAnsibleClient
63
63
  h[k.to_sym] = v
64
64
  }
65
65
 
66
- if attributes.key?(:'file')
67
- self.file = attributes[:'file']
68
- end
69
-
70
66
  if attributes.key?(:'repository')
71
67
  self.repository = attributes[:'repository']
72
68
  end
73
69
 
70
+ if attributes.key?(:'file')
71
+ self.file = attributes[:'file']
72
+ end
73
+
74
74
  if attributes.key?(:'signed_collection')
75
75
  self.signed_collection = attributes[:'signed_collection']
76
76
  end
@@ -104,8 +104,8 @@ module PulpAnsibleClient
104
104
  def ==(o)
105
105
  return true if self.equal?(o)
106
106
  self.class == o.class &&
107
- file == o.file &&
108
107
  repository == o.repository &&
108
+ file == o.file &&
109
109
  signed_collection == o.signed_collection
110
110
  end
111
111
 
@@ -118,7 +118,7 @@ module PulpAnsibleClient
118
118
  # Calculates hash code according to all attributes.
119
119
  # @return [Integer] Hash code
120
120
  def hash
121
- [file, repository, signed_collection].hash
121
+ [repository, file, signed_collection].hash
122
122
  end
123
123
 
124
124
  # Builds the object from hash